==================================================================
BUG: KASAN: use-after-free in __post_watch_notification+0x1fe/0x900
Read of size 8 at addr ffff888020351310 by task syz-executor.3/4296

CPU: 0 PID: 4296 Comm: syz-executor.3 Not tainted 5.19.0-rc8-syzkaller-00026-ge0339f036ef4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
 <TASK>
 dump_stack_lvl+0x1e3/0x2cb
 print_report+0x139/0x660
 kasan_report+0xf8/0x130
 __post_watch_notification+0x1fe/0x900
 __key_update+0x422/0x4e0
 key_create_or_update+0x8e9/0xbf0
 __se_sys_add_key+0x33b/0x480
 do_syscall_64+0x3d/0xb0
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f1343c79a69
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f1344db10c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000f8
RAX: ffffffffffffffda RBX: 00007f1343d8bf60 RCX: 00007f1343c79a69
RDX: 00000000200000c0 RSI: 0000000020000080 RDI: 0000000020000040
RBP: 00007f1343cd5148 R08: fffffffffffffffc R09: 0000000000000000
R10: 0000000000000048 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f1343d8bf60 R15: 00007ffcf03d6158
 </TASK>

Allocated by task 4278:
 ____kasan_kmalloc+0xdb/0x110
 kmem_cache_alloc_trace+0x148/0x270
 watch_queue_init+0x4f/0x140
 create_pipe_files+0x34b/0x6f0
 __do_pipe_flags+0x46/0x200
 do_pipe2+0xd0/0x300
 __x64_sys_pipe2+0x56/0x60
 do_syscall_64+0x3d/0xb0
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

Freed by task 3603:
 kasan_set_track+0x4b/0x70
 kasan_set_free_info+0x1f/0x40
 ____kasan_slab_free+0x124/0x1d0
 slab_free_freelist_hook+0x12c/0x1a0
 kmem_cache_free_bulk+0x310/0x4a0
 kfree_rcu_work+0x332/0x7a0
 process_one_work+0x8d6/0x1220
 worker_thread+0xa5f/0x1210
 kthread+0x268/0x300
 ret_from_fork+0x1f/0x30

Last potentially related work creation:
 kasan_save_stack+0x3b/0x60
 __kasan_record_aux_stack+0xaf/0xc0
 kvfree_call_rcu+0x116/0x8a0
 free_watch+0x3a/0x130
 rcu_core+0xa13/0x16e0
 __do_softirq+0x3d1/0x9fe

Second to last potentially related work creation:
 kasan_save_stack+0x3b/0x60
 __kasan_record_aux_stack+0xaf/0xc0
 insert_work+0x54/0x3d0
 __queue_work+0xa15/0xe10
 queue_work_on+0x14b/0x250
 netdevice_event+0x8ed/0xa00
 raw_notifier_call_chain+0xd0/0x170
 __dev_notify_flags+0x304/0x610
 dev_change_flags+0xe7/0x190
 do_setlink+0xcf4/0x3e40
 rtnl_newlink+0x16f7/0x1fa0
 rtnetlink_rcv_msg+0x7c2/0xe70
 netlink_rcv_skb+0x1cf/0x410
 netlink_unicast+0x7bf/0x990
 netlink_sendmsg+0x9fe/0xd10
 __sys_sendto+0x43d/0x5c0
 __x64_sys_sendto+0xda/0xf0
 do_syscall_64+0x3d/0xb0
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

The buggy address belongs to the object at ffff888020351300
 which belongs to the cache kmalloc-192 of size 192
The buggy address is located 16 bytes inside of
 192-byte region [ffff888020351300, ffff8880203513c0)

The buggy address belongs to the physical page:
page:ffffea000080d440 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x20351
flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000200 ffffea0000845180 dead000000000005 ffff888011841a00
raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 1, tgid 1 (swapper/0), ts 6846935380, free_ts 0
 get_page_from_freelist+0x33df/0x3580
 __alloc_pages+0x28d/0x740
 alloc_page_interleave+0x22/0x1c0
 alloc_slab_page+0x3b/0xe0
 new_slab+0x84/0x340
 ___slab_alloc+0x6dd/0xe70
 kmem_cache_alloc_trace+0x1a5/0x270
 call_usermodehelper_setup+0x8a/0x260
 kobject_uevent_env+0x688/0x8c0
 net_rx_queue_update_kobjects+0x231/0x4c0
 netdev_register_kobject+0x222/0x310
 register_netdevice+0xfd3/0x1630
 cfg80211_register_netdevice+0x14e/0x2e0
 ieee80211_if_add+0xfc3/0x1df0
 ieee80211_register_hw+0x2c0a/0x3b60
 mac80211_hwsim_new_radio+0x21e3/0x3c80
page_owner free stack trace missing

Memory state around the buggy address:
 ffff888020351200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff888020351280: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888020351300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                         ^
 ffff888020351380: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
 ffff888020351400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================
