RDX: 0000000000000000 RSI: 00000000200006c0 RDI: 0000000000000003 RBP: 00007ffd0e7a1c30 R08: 0000000000000002 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff R13: 0000000000000005 R14: 0000000000000000 R15: 0000000000000000 BUG: sleeping function called from invalid context at arch/x86/mm/fault.c:1355 in_atomic(): 0, irqs_disabled(): 1, pid: 6542, name: syz-executor839 4 locks held by syz-executor839/6542: #0: 000000005b0e53d8 (cb_lock){++++}, at: genl_rcv+0x15/0x40 net/netlink/genetlink.c:637 #1: 00000000085edd05 (genl_mutex){+.+.}, at: genl_lock net/netlink/genetlink.c:33 [inline] #1: 00000000085edd05 (genl_mutex){+.+.}, at: genl_rcv_msg+0x15d/0x1b0 net/netlink/genetlink.c:625 #2: 00000000ed4f8b63 (rtnl_mutex){+.+.}, at: nl80211_pre_doit+0x34f/0x660 net/wireless/nl80211.c:13085 #3: 00000000214a26bd (&mm->mmap_sem){++++}, at: __do_page_fault+0x3e2/0xe00 arch/x86/mm/fault.c:1341 irq event stamp: 4170 hardirqs last enabled at (4169): [] kfree+0x110/0x250 mm/slab.c:3823 hardirqs last disabled at (4170): [] try_to_grab_pending+0xb5/0x720 kernel/workqueue.c:1212 softirqs last enabled at (2462): [] rollback_registered_many+0x937/0xf00 net/core/dev.c:8199 softirqs last disabled at (2460): [] spin_lock_bh include/linux/spinlock.h:334 [inline] softirqs last disabled at (2460): [] netif_addr_lock_bh include/linux/netdevice.h:3996 [inline] softirqs last disabled at (2460): [] dev_mc_flush+0x19/0x30 net/core/dev_addr_lists.c:835 CPU: 0 PID: 6542 Comm: syz-executor839 Not tainted 4.19.152-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x22c/0x33e lib/dump_stack.c:118 ___might_sleep.cold+0x6a/0x7e kernel/sched/core.c:6196 __do_page_fault+0x40d/0xe00 arch/x86/mm/fault.c:1355 page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1205 RIP: 0010:test_and_set_bit arch/x86/include/asm/bitops.h:209 [inline] RIP: 0010:try_to_grab_pending+0xcd/0x720 kernel/workqueue.c:1228 Code: 3c 02 00 0f 85 56 05 00 00 4c 89 6d 00 e8 ab 82 2d 00 31 ff 44 89 e6 e8 41 05 28 00 45 84 e4 0f 85 da 01 00 00 e8 03 04 28 00 48 0f ba 2b 00 41 0f 92 c4 31 ff 44 89 e6 e8 1f 05 28 00 45 84 RSP: 0018:ffff888084a97120 EFLAGS: 00010093 RAX: ffff8880893065c0 RBX: 0000000000000080 RCX: ffffffff8149cebf RDX: 0000000000000000 RSI: ffffffff8149cecd RDI: 0000000000000001 RBP: ffff888084a97198 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000293 R14: dffffc0000000010 R15: ffff8880893065c0 __cancel_work_timer+0xa6/0x5c0 kernel/workqueue.c:2974 rhashtable_free_and_destroy+0x2b/0xa50 lib/rhashtable.c:1145 mesh_table_free net/mac80211/mesh_pathtbl.c:72 [inline] mesh_pathtbl_unregister+0x42/0x9a net/mac80211/mesh_pathtbl.c:827 ieee80211_teardown_sdata+0x216/0x2d0 net/mac80211/iface.c:1126 rollback_registered_many+0x97d/0xf00 net/core/dev.c:8202 rollback_registered+0xe9/0x1b0 net/core/dev.c:8230 unregister_netdevice_queue+0x1de/0x400 net/core/dev.c:9292 unregister_netdevice include/linux/netdevice.h:2614 [inline] ieee80211_if_remove+0x213/0x330 net/mac80211/iface.c:1919 ieee80211_del_iface+0x12/0x20 net/mac80211/cfg.c:144 rdev_del_virtual_intf net/wireless/rdev-ops.h:57 [inline] cfg80211_destroy_ifaces+0x1f4/0x7c0 net/wireless/core.c:317 nl80211_new_interface+0x8f/0x15b0 net/wireless/nl80211.c:3222 genl_family_rcv_msg+0x6bf/0xd50 net/netlink/genetlink.c:602 genl_rcv_msg+0xdf/0x1b0 net/netlink/genetlink.c:627 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2455 genl_rcv+0x24/0x40 net/netlink/genetlink.c:638 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x717/0xcc0 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xc7/0x130 net/socket.c:632 ___sys_sendmsg+0x7bb/0x8f0 net/socket.c:2115 __sys_sendmsg net/socket.c:2153 [inline] __do_sys_sendmsg net/socket.c:2162 [inline] __se_sys_sendmsg net/socket.c:2160 [inline] __x64_sys_sendmsg+0x132/0x220 net/socket.c:2160 do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4418e9 Code: e8 5c ac 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 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 0f 83 1b 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffd0e7a1c18 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004418e9 RDX: 0000000000000000 RSI: 00000000200006c0 RDI: 0000000000000003 RBP: 00007ffd0e7a1c30 R08: 0000000000000002 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff R13: 0000000000000005 R14: 0000000000000000 R15: 0000000000000000 BUG: unable to handle kernel NULL pointer dereference at 0000000000000080 PGD a3eb8067 P4D a3eb8067 PUD 8fdc3067 PMD 0 Oops: 0002 [#1] PREEMPT SMP KASAN CPU: 0 PID: 6542 Comm: syz-executor839 Tainted: G W 4.19.152-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:test_and_set_bit arch/x86/include/asm/bitops.h:209 [inline] RIP: 0010:try_to_grab_pending+0xcd/0x720 kernel/workqueue.c:1228 Code: 3c 02 00 0f 85 56 05 00 00 4c 89 6d 00 e8 ab 82 2d 00 31 ff 44 89 e6 e8 41 05 28 00 45 84 e4 0f 85 da 01 00 00 e8 03 04 28 00 48 0f ba 2b 00 41 0f 92 c4 31 ff 44 89 e6 e8 1f 05 28 00 45 84 RSP: 0018:ffff888084a97120 EFLAGS: 00010093 RAX: ffff8880893065c0 RBX: 0000000000000080 RCX: ffffffff8149cebf RDX: 0000000000000000 RSI: ffffffff8149cecd RDI: 0000000000000001 RBP: ffff888084a97198 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000293 R14: dffffc0000000010 R15: ffff8880893065c0 FS: 0000000000c45880(0000) GS:ffff8880ae200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000080 CR3: 00000000a7700000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __cancel_work_timer+0xa6/0x5c0 kernel/workqueue.c:2974 rhashtable_free_and_destroy+0x2b/0xa50 lib/rhashtable.c:1145 mesh_table_free net/mac80211/mesh_pathtbl.c:72 [inline] mesh_pathtbl_unregister+0x42/0x9a net/mac80211/mesh_pathtbl.c:827 ieee80211_teardown_sdata+0x216/0x2d0 net/mac80211/iface.c:1126 rollback_registered_many+0x97d/0xf00 net/core/dev.c:8202 rollback_registered+0xe9/0x1b0 net/core/dev.c:8230 unregister_netdevice_queue+0x1de/0x400 net/core/dev.c:9292 unregister_netdevice include/linux/netdevice.h:2614 [inline] ieee80211_if_remove+0x213/0x330 net/mac80211/iface.c:1919 ieee80211_del_iface+0x12/0x20 net/mac80211/cfg.c:144 rdev_del_virtual_intf net/wireless/rdev-ops.h:57 [inline] cfg80211_destroy_ifaces+0x1f4/0x7c0 net/wireless/core.c:317 nl80211_new_interface+0x8f/0x15b0 net/wireless/nl80211.c:3222 genl_family_rcv_msg+0x6bf/0xd50 net/netlink/genetlink.c:602 genl_rcv_msg+0xdf/0x1b0 net/netlink/genetlink.c:627 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2455 genl_rcv+0x24/0x40 net/netlink/genetlink.c:638 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x717/0xcc0 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xc7/0x130 net/socket.c:632 ___sys_sendmsg+0x7bb/0x8f0 net/socket.c:2115 __sys_sendmsg net/socket.c:2153 [inline] __do_sys_sendmsg net/socket.c:2162 [inline] __se_sys_sendmsg net/socket.c:2160 [inline] __x64_sys_sendmsg+0x132/0x220 net/socket.c:2160 do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4418e9 Code: e8 5c ac 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 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 0f 83 1b 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffd0e7a1c18 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004418e9 RDX: 0000000000000000 RSI: 00000000200006c0 RDI: 0000000000000003 RBP: 00007ffd0e7a1c30 R08: 0000000000000002 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff R13: 0000000000000005 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: CR2: 0000000000000080 ---[ end trace 46f50f6f7177ff44 ]--- RIP: 0010:test_and_set_bit arch/x86/include/asm/bitops.h:209 [inline] RIP: 0010:try_to_grab_pending+0xcd/0x720 kernel/workqueue.c:1228 Code: 3c 02 00 0f 85 56 05 00 00 4c 89 6d 00 e8 ab 82 2d 00 31 ff 44 89 e6 e8 41 05 28 00 45 84 e4 0f 85 da 01 00 00 e8 03 04 28 00 48 0f ba 2b 00 41 0f 92 c4 31 ff 44 89 e6 e8 1f 05 28 00 45 84 RSP: 0018:ffff888084a97120 EFLAGS: 00010093 RAX: ffff8880893065c0 RBX: 0000000000000080 RCX: ffffffff8149cebf RDX: 0000000000000000 RSI: ffffffff8149cecd RDI: 0000000000000001 RBP: ffff888084a97198 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000293 R14: dffffc0000000010 R15: ffff8880893065c0 FS: 0000000000c45880(0000) GS:ffff8880ae200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000080 CR3: 00000000a7700000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400