bisecting fixing commit since b678c568c561cf7e4ed40f4bcc3e85d2b50310a2 building syzkaller on ede31a9b5144a9da36a8c5382d3b1ab892abcc83 testing commit b678c568c561cf7e4ed40f4bcc3e85d2b50310a2 with gcc (GCC) 8.1.0 kernel signature: d5b4a8bebbf87cdd859ed39f28c0c4153b02dfbea2dbeefeaa544211475f653c all runs: crashed: general protection fault in rose_send_frame testing current HEAD 00086336a8d96a04aa960f912287692a258f6cf5 testing commit 00086336a8d96a04aa960f912287692a258f6cf5 with gcc (GCC) 8.1.0 kernel signature: 46d32820ca9639d1635756b05a0c135a51cf9fc02e75cdbae7d68a2361fc634d all runs: crashed: general protection fault in rose_send_frame revisions tested: 2, total time: 18m11.93396006s (build: 11m24.693156216s, test: 6m7.892404236s) the crash still happens on HEAD commit msg: Merge tag 'efi-urgent-2020-04-15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip crash: general protection fault in rose_send_frame general protection fault, probably for non-canonical address 0xdffffc000000006a: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000350-0x0000000000000357] CPU: 1 PID: 7744 Comm: syz-executor.2 Not tainted 5.7.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:rose_send_frame+0x161/0x290 net/rose/rose_link.c:101 Code: 41 5e 5d c3 80 3c 02 00 0f 85 24 01 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 4b 20 49 8d b9 50 03 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 08 01 00 00 49 8b 91 50 03 00 00 e9 e3 fe ff ff RSP: 0018:ffff8880aeb09ad8 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: ffff88809b2c0800 RCX: 0000000000000006 RDX: 000000000000006a RSI: ffffffff87ee9080 RDI: 0000000000000350 RBP: ffff8880aeb09b08 R08: ffffed101489481d R09: 0000000000000000 R10: ffff8880a44a40e3 R11: ffffed101489481c R12: ffff88809b2c0800 R13: 0000000000000078 R14: ffff88808d605400 R15: ffff88808d605400 FS: 0000000001508940(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000180 CR3: 0000000095535000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rose_transmit_clear_request+0x1d0/0x290 net/rose/rose_link.c:255 rose_rx_call_request+0x399/0x225d net/rose/af_rose.c:976 rose_loopback_timer+0x11f/0x430 net/rose/rose_loopback.c:100 call_timer_fn+0x171/0x580 kernel/time/timer.c:1405 expire_timers kernel/time/timer.c:1450 [inline] __run_timers kernel/time/timer.c:1774 [inline] run_timer_softirq+0xd58/0x1330 kernel/time/timer.c:1787 __do_softirq+0x262/0xa02 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x19a/0x1d0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:546 [inline] smp_apic_timer_interrupt+0x1a6/0x5f0 arch/x86/kernel/apic/apic.c:1140 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:759 [inline] RIP: 0010:kfree+0x237/0x2c0 mm/slab.c:3758 Code: 61 7e 0f 85 22 fe ff ff e8 b9 46 60 ff e9 18 fe ff ff e8 2c 47 cf ff 48 83 3d d4 48 f4 06 00 0f 84 83 00 00 00 48 89 df 57 9d <0f> 1f 44 00 00 5b 41 5c 41 5d 41 5e 5d c3 e8 06 47 cf ff 48 83 3d RSP: 0018:ffff88809624fc68 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000000 RBX: 0000000000000282 RCX: 0000000000000006 RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000282 RBP: ffff88809624fc88 R08: 0000000000000006 R09: fffffbfff141fc36 R10: ffffffff8a0fe1af R11: fffffbfff141fc35 R12: ffff88808d6a0700 R13: ffff8880aa4001c0 R14: ffffffff82e0ae22 R15: ffff888094a58360 smack_sk_free_security+0x32/0x40 security/smack/smack_lsm.c:2287 security_sk_free+0x3a/0x70 security/security.c:2125 sk_prot_free net/core/sock.c:1637 [inline] __sk_destruct+0x3a9/0x570 net/core/sock.c:1725 sk_destruct+0x90/0xc0 net/core/sock.c:1740 __sk_free+0xc7/0x330 net/core/sock.c:1751 sk_free+0x41/0x60 net/core/sock.c:1762 sock_put include/net/sock.h:1778 [inline] rose_release+0x390/0x460 net/rose/af_rose.c:627 __sock_release+0xc2/0x270 net/socket.c:605 sock_close+0x13/0x20 net/socket.c:1283 __fput+0x2a7/0x790 fs/file_table.c:280 ____fput+0x9/0x10 fs/file_table.c:313 task_work_run+0xcc/0x160 kernel/task_work.c:123 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x24e/0x2e0 arch/x86/entry/common.c:165 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline] syscall_return_slowpath arch/x86/entry/common.c:279 [inline] do_syscall_64+0x531/0x630 arch/x86/entry/common.c:305 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x413511 Code: 75 14 b8 03 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 04 1b 00 00 c3 48 83 ec 08 e8 0a fc ff ff 48 89 04 24 b8 03 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 53 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007ffe48374f40 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000006 RCX: 0000000000413511 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 0000000000000001 R08: ffffffffffffffff R09: ffffffffffffffff R10: 00007ffe48375020 R11: 0000000000000293 R12: 000000000075bf20 R13: 000000000000d17f R14: 0000000000761368 R15: ffffffffffffffff Modules linked in: ---[ end trace f779131fb9d3a2bd ]--- RIP: 0010:rose_send_frame+0x161/0x290 net/rose/rose_link.c:101 Code: 41 5e 5d c3 80 3c 02 00 0f 85 24 01 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 4b 20 49 8d b9 50 03 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 08 01 00 00 49 8b 91 50 03 00 00 e9 e3 fe ff ff RSP: 0018:ffff8880aeb09ad8 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: ffff88809b2c0800 RCX: 0000000000000006 RDX: 000000000000006a RSI: ffffffff87ee9080 RDI: 0000000000000350 RBP: ffff8880aeb09b08 R08: ffffed101489481d R09: 0000000000000000 R10: ffff8880a44a40e3 R11: ffffed101489481c R12: ffff88809b2c0800 R13: 0000000000000078 R14: ffff88808d605400 R15: ffff88808d605400 FS: 0000000001508940(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000180 CR3: 0000000095535000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400