bisecting fixing commit since 7f2c5eb458b8855655a19c44cd0043f7f83c595f building syzkaller on 96dd36234d97bbf6b403f3a7f03cfc0296422879 testing commit 7f2c5eb458b8855655a19c44cd0043f7f83c595f with gcc (GCC) 8.4.1 20210217 kernel signature: f6b8fe6e91cecaee0be21d6e55e6f531eedafeef4756553c1695f651915ceccb run #0: crashed: general protection fault in __smc_diag_dump run #1: crashed: KASAN: use-after-free Read in __smc_diag_dump run #2: crashed: KASAN: use-after-free Read in __smc_diag_dump run #3: crashed: general protection fault in __smc_diag_dump run #4: crashed: general protection fault in __smc_diag_dump run #5: crashed: general protection fault in __smc_diag_dump run #6: crashed: general protection fault in __smc_diag_dump run #7: crashed: KASAN: use-after-free Read in __smc_diag_dump run #8: crashed: KASAN: use-after-free Read in __smc_diag_dump run #9: crashed: general protection fault in __smc_diag_dump run #10: crashed: general protection fault in __smc_diag_dump run #11: crashed: KASAN: use-after-free Read in __smc_diag_dump run #12: crashed: general protection fault in __smc_diag_dump run #13: crashed: KASAN: use-after-free Read in __smc_diag_dump run #14: crashed: general protection fault in __smc_diag_dump run #15: crashed: general protection fault in __smc_diag_dump run #16: crashed: general protection fault in __smc_diag_dump run #17: crashed: KASAN: use-after-free Read in __smc_diag_dump run #18: crashed: general protection fault in __smc_diag_dump run #19: crashed: general protection fault in __smc_diag_dump testing current HEAD 3242aa3a635c0958671ee1e4b0958dcc7c4e5c79 testing commit 3242aa3a635c0958671ee1e4b0958dcc7c4e5c79 with gcc (GCC) 8.4.1 20210217 kernel signature: 260cb23d11ca0acfb40fdb6e041fc089c8d5013affe83d2a6a2b200a69dd49fe run #0: crashed: KASAN: use-after-free Read in __smc_diag_dump run #1: crashed: KASAN: use-after-free Read in __smc_diag_dump run #2: crashed: general protection fault in __smc_diag_dump run #3: crashed: general protection fault in __smc_diag_dump run #4: crashed: KASAN: use-after-free Read in __smc_diag_dump run #5: crashed: general protection fault in __smc_diag_dump run #6: crashed: general protection fault in __smc_diag_dump run #7: crashed: general protection fault in __smc_diag_dump run #8: crashed: general protection fault in __smc_diag_dump run #9: crashed: general protection fault in __smc_diag_dump revisions tested: 2, total time: 22m43.234200854s (build: 15m33.66988919s, test: 6m13.933681397s) the crash still happens on HEAD commit msg: Linux 4.14.222 crash: general protection fault in __smc_diag_dump Bluetooth: hci4 command 0x0409 tx timeout Bluetooth: hci3 command 0x0409 tx timeout Bluetooth: hci5 command 0x0409 tx timeout kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 1 PID: 7681 Comm: syz-executor.2 Not tainted 4.14.222-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8881e8d780c0 task.stack: ffff8881cda10000 RIP: 0010:smc_diag_msg_common_fill net/smc/smc_diag.c:46 [inline] RIP: 0010:__smc_diag_dump.isra.1+0x307/0x1620 net/smc/smc_diag.c:81 RSP: 0018:ffff8881cda17440 EFLAGS: 00010203 RAX: dffffc0000000000 RBX: ffff8881cda17608 RCX: 0000000000000001 RDX: 0000000000000000 RSI: ffff8881c9052efc RDI: 000000000000000e RBP: ffff8881cda17630 R08: ffffed103920a5e2 R09: ffff8881c9052ed0 R10: ffffed103920a5e1 R11: ffff8881c9052f0f R12: ffff8881c9052ec0 R13: ffff8881d46e1340 R14: ffff8881d1def440 R15: ffff8881e7f66810 FS: 00007f45498f6700(0000) GS:ffff8881f6700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 00000001efd1b005 CR4: 00000000001606e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: smc_diag_dump+0x1dc/0x2a0 net/smc/smc_diag.c:169 netlink_dump+0x373/0x9b0 net/netlink/af_netlink.c:2203 __netlink_dump_start+0x4cc/0x770 net/netlink/af_netlink.c:2300 netlink_dump_start include/linux/netlink.h:217 [inline] smc_diag_handler_dump+0x197/0x220 net/smc/smc_diag.c:190 __sock_diag_cmd net/core/sock_diag.c:231 [inline] sock_diag_rcv_msg+0x252/0x350 net/core/sock_diag.c:263 netlink_rcv_skb+0x12f/0x3b0 net/netlink/af_netlink.c:2433 sock_diag_rcv+0x25/0x40 net/core/sock_diag.c:274 netlink_unicast_kernel net/netlink/af_netlink.c:1287 [inline] netlink_unicast+0x40b/0x610 net/netlink/af_netlink.c:1313 netlink_sendmsg+0x639/0xbe0 net/netlink/af_netlink.c:1878 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xac/0xf0 net/socket.c:656 ___sys_sendmsg+0x625/0x920 net/socket.c:2062 __sys_sendmsg+0xc1/0x140 net/socket.c:2096 SYSC_sendmsg net/socket.c:2107 [inline] SyS_sendmsg+0xd/0x20 net/socket.c:2103 do_syscall_64+0x1c7/0x5b0 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x464709 RSP: 002b:00007f45498f6188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000055bf00 RCX: 0000000000464709 RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000004 RBP: 00000000004ae608 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000055bf00 R13: 00007ffc29f98bff R14: 00007f45498f6300 R15: 0000000000022000 Code: df 48 89 f9 48 c1 e9 03 80 3c 11 00 0f 85 ca 10 00 00 48 8b 50 20 48 b8 00 00 00 00 00 fc ff df 48 8d 7a 0e 48 89 f9 48 c1 e9 03 <0f> b6 0c 01 48 89 f8 83 e0 07 83 c0 01 38 c8 7c 08 84 c9 0f 85 RIP: smc_diag_msg_common_fill net/smc/smc_diag.c:46 [inline] RSP: ffff8881cda17440 RIP: __smc_diag_dump.isra.1+0x307/0x1620 net/smc/smc_diag.c:81 RSP: ffff8881cda17440 ---[ end trace bf41cfcce5ed6bf2 ]---