bisecting fixing commit since 0c88e405c97ed1828443b67891e6d4bb6e56cd4e building syzkaller on a0092f9dfdd33924abe5cf5565e4ec4748217c7b testing commit 0c88e405c97ed1828443b67891e6d4bb6e56cd4e with gcc (GCC) 8.1.0 kernel signature: d6c686a87308a57faba4dad4e435f05933f08c251cabcc64d66527aaf0b01ffc run #0: crashed: BUG: unable to handle kernel NULL pointer dereference in rhashtable_free_and_destroy run #1: crashed: BUG: unable to handle kernel NULL pointer dereference in rhashtable_free_and_destroy run #2: crashed: KASAN: wild-memory-access Write in rhashtable_free_and_destroy run #3: crashed: KASAN: wild-memory-access Write in rhashtable_free_and_destroy run #4: crashed: KASAN: wild-memory-access Write in rhashtable_free_and_destroy run #5: crashed: BUG: unable to handle kernel NULL pointer dereference in rhashtable_free_and_destroy run #6: crashed: WARNING in rhashtable_free_and_destroy run #7: crashed: WARNING in rhashtable_free_and_destroy run #8: crashed: INFO: task hung in rtnl_lock run #9: crashed: INFO: task hung in rtnl_lock testing current HEAD 13d2ce42de8cb98ff952f8de6307f896203854c2 testing commit 13d2ce42de8cb98ff952f8de6307f896203854c2 with gcc (GCC) 8.1.0 kernel signature: db4c520ba9dd87593101e5d8a3e7bc703bf18f9a763ea86f30ea6a5389ebb933 run #0: crashed: BUG: unable to handle kernel NULL pointer dereference in rhashtable_free_and_destroy run #1: crashed: general protection fault in get_work_pool run #2: crashed: BUG: unable to handle kernel NULL pointer dereference in rhashtable_free_and_destroy run #3: crashed: BUG: unable to handle kernel NULL pointer dereference in rhashtable_free_and_destroy run #4: crashed: KASAN: wild-memory-access Write in rhashtable_free_and_destroy run #5: crashed: BUG: unable to handle kernel NULL pointer dereference in rhashtable_free_and_destroy run #6: crashed: BUG: unable to handle kernel NULL pointer dereference in rhashtable_free_and_destroy run #7: crashed: BUG: unable to handle kernel NULL pointer dereference in rhashtable_free_and_destroy run #8: crashed: WARNING in rhashtable_free_and_destroy run #9: crashed: KASAN: wild-memory-access Write in rhashtable_free_and_destroy revisions tested: 2, total time: 25m47.731664406s (build: 16m57.644761428s, test: 8m24.106511252s) the crash still happens on HEAD commit msg: Linux 4.19.163 crash: KASAN: wild-memory-access Write in rhashtable_free_and_destroy RDX: 0000000000000000 RSI: 00000000200006c0 RDI: 0000000000000003 RBP: 00007fb61be30ca0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000000b R13: 00007ffeef5d4ebf R14: 00007fb61be319c0 R15: 000000000118bf2c ================================================================== BUG: KASAN: wild-memory-access in atomic_inc include/asm-generic/atomic-instrumented.h:109 [inline] BUG: KASAN: wild-memory-access in __lock_acquire+0x28a/0x47c0 kernel/locking/lockdep.c:3307 Write of size 4 at addr dead000000000238 by task syz-executor.5/9970 CPU: 0 PID: 9970 Comm: syz-executor.5 Not tainted 4.19.163-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+0x17c/0x22a lib/dump_stack.c:118 kasan_report_error mm/kasan/report.c:352 [inline] kasan_report.cold.7+0x6d/0x307 mm/kasan/report.c:412 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x13c/0x1b0 mm/kasan/kasan.c:267 kasan_check_write+0x14/0x20 mm/kasan/kasan.c:278 atomic_inc include/asm-generic/atomic-instrumented.h:109 [inline] __lock_acquire+0x28a/0x47c0 kernel/locking/lockdep.c:3307 lock_acquire+0x180/0x3a0 kernel/locking/lockdep.c:3907 __mutex_lock_common kernel/locking/mutex.c:925 [inline] __mutex_lock+0xf5/0x1200 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 rhashtable_free_and_destroy+0x3a/0x690 lib/rhashtable.c:1147 mesh_table_free net/mac80211/mesh_pathtbl.c:72 [inline] mesh_pathtbl_init+0xb4/0xe0 net/mac80211/mesh_pathtbl.c:798 ieee80211_mesh_init_sdata+0x183/0x3e0 net/mac80211/mesh.c:1461 ieee80211_setup_sdata+0xc5b/0xf20 net/mac80211/iface.c:1459 ieee80211_if_add+0x78f/0x16d0 net/mac80211/iface.c:1871 ieee80211_add_iface+0x7a/0xf0 net/mac80211/cfg.c:125 rdev_add_virtual_intf net/wireless/rdev-ops.h:45 [inline] nl80211_new_interface+0x438/0x1380 net/wireless/nl80211.c:3268 genl_family_rcv_msg+0x599/0x1000 net/netlink/genetlink.c:602 genl_rcv_msg+0xa7/0x140 net/netlink/genetlink.c:627 netlink_rcv_skb+0x13e/0x3d0 net/netlink/af_netlink.c:2455 genl_rcv+0x23/0x40 net/netlink/genetlink.c:638 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x443/0x660 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x666/0xc50 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xac/0xf0 net/socket.c:632 ___sys_sendmsg+0x647/0x950 net/socket.c:2115 __sys_sendmsg+0xd9/0x180 net/socket.c:2153 __do_sys_sendmsg net/socket.c:2162 [inline] __se_sys_sendmsg net/socket.c:2160 [inline] __x64_sys_sendmsg+0x73/0xb0 net/socket.c:2160 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45deb9 Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fb61be30c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000002ba80 RCX: 000000000045deb9 RDX: 0000000000000000 RSI: 00000000200006c0 RDI: 0000000000000003 RBP: 00007fb61be30ca0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000000b R13: 00007ffeef5d4ebf R14: 00007fb61be319c0 R15: 000000000118bf2c ==================================================================