bisecting fixing commit since 17a87580a8856170d59aab302226811a4ae69149 building syzkaller on e562dd8adff015d44bec3d7fd8e6608a3a031ff3 testing commit 17a87580a8856170d59aab302226811a4ae69149 with gcc (GCC) 8.1.0 kernel signature: f720fa1f1df6e001f9167babc18428412a15e13db04cd91a05f98ab925fe7d45 all runs: crashed: general protection fault in rose_send_frame testing current HEAD 2c746135a12e3f329171ed168ca0078d468f6d85 testing commit 2c746135a12e3f329171ed168ca0078d468f6d85 with gcc (GCC) 8.1.0 kernel signature: 7153bac27ac0d41cca5cc7afeb95b19f6de036a0015fc9a7c24257a884c33837 all runs: crashed: general protection fault in rose_send_frame revisions tested: 2, total time: 23m36.718414848s (build: 17m11.749942461s, test: 5m30.9409149s) the crash still happens on HEAD commit msg: Linux 4.19.158 crash: general protection fault in rose_send_frame IPv6: ADDRCONF(NETDEV_CHANGE): rose0: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): batadv_slave_1: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready 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 CPU: 0 PID: 7910 Comm: systemd-udevd Not tainted 4.19.158-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:rose_send_frame+0x194/0x230 net/rose/rose_link.c:104 Code: 77 fb eb 93 80 3c 02 00 0f 85 84 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 4b 20 49 8d b9 58 03 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 6c 49 8b 91 58 03 00 00 e9 b4 fe ff ff e8 55 7d 77 RSP: 0018:ffff8880ba607ab8 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff888235e0dcc0 RCX: 0000000000000006 RDX: 000000000000006b RSI: ffffffff87cca3a0 RDI: 0000000000000358 RBP: ffff8880ba607ae8 R08: ffffed1014aa78d5 R09: 0000000000000000 R10: ffffed1014aa78d4 R11: ffff8880a553c6a3 R12: ffff888235e0dcc0 R13: 0000000000000078 R14: ffff8880a57798c0 R15: ffff8880a57798c0 FS: 00007fa66eed68c0(0000) GS:ffff8880ba600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa544ea3fc0 CR3: 00000000aa625000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rose_transmit_clear_request+0x1c7/0x280 net/rose/rose_link.c:258 rose_rx_call_request+0x3a4/0x1c0e net/rose/af_rose.c:999 rose_loopback_timer+0x11f/0x430 net/rose/rose_loopback.c:103 call_timer_fn+0x14c/0x510 kernel/time/timer.c:1338 expire_timers+0x255/0x3a0 kernel/time/timer.c:1375 __run_timers kernel/time/timer.c:1696 [inline] run_timer_softirq+0x1dc/0x570 kernel/time/timer.c:1709 __do_softirq+0x25e/0x92d kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x17f/0x1c0 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:544 [inline] smp_apic_timer_interrupt+0x13e/0x540 arch/x86/kernel/apic/apic.c:1094 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894 RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline] RIP: 0010:_raw_spin_unlock_irq+0x56/0x90 kernel/locking/spinlock.c:192 Code: 51 88 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 75 3a 48 83 3d 7b fa 79 01 00 74 1f fb 66 0f 1f 44 00 00 01 00 00 00 e8 d0 8d 69 fa 65 8b 05 19 ee 29 79 85 c0 74 0d 5b RSP: 0018:ffff8880a4a4fb68 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13 RAX: dffffc0000000000 RBX: ffff8880ba62c400 RCX: 0000000000000000 RDX: 1ffffffff10a3f43 RSI: 0000000000000001 RDI: ffffffff8851fa18 RBP: ffff8880a4a4fb70 R08: ffffed10174c5881 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880ba62c400 R13: ffff8880b57605c0 R14: 0000000000000000 R15: ffff8880a49f6300 finish_lock_switch kernel/sched/core.c:2578 [inline] finish_task_switch+0x14a/0x720 kernel/sched/core.c:2678 context_switch kernel/sched/core.c:2831 [inline] __schedule+0x814/0x1f70 kernel/sched/core.c:3517 preempt_schedule_irq+0xb9/0x140 kernel/sched/core.c:3744 retint_kernel+0x1b/0x2d RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline] RIP: 0010:kfree+0x129/0x220 mm/slab.c:3823 Code: 89 f2 4c 89 e6 4c 89 ef e8 94 ee ff ff f6 c7 02 74 c7 e8 2a 37 d4 ff 48 83 3d ba 0c c0 06 00 0f 84 ed 00 00 00 48 89 df 57 9d <0f> 1f 44 00 00 5b 41 5c 41 5d 41 5e 5d c3 65 8b 05 c2 93 6f 7e 83 RSP: 0018:ffff8880a4a4fd90 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000007 RBX: 0000000000000282 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000282 RBP: ffff8880a4a4fdb0 R08: 0000000000000058 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880a4d0d280 R13: ffff88813be9c4c0 R14: ffffffff8183d3f6 R15: ffff88809e7c4c20 kzfree+0x26/0x30 mm/slab_common.c:1574 aa_free_file_ctx security/apparmor/include/file.h:76 [inline] apparmor_file_free_security+0x69/0x90 security/apparmor/lsm.c:448 security_file_free+0x3a/0x70 security/security.c:885 file_free fs/file_table.c:54 [inline] __fput+0x355/0x7f0 fs/file_table.c:294 ____fput+0x9/0x10 fs/file_table.c:309 task_work_run+0x108/0x180 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x185/0x1e0 arch/x86/entry/common.c:167 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x413/0x4e0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fa66e01d270 Code: 73 01 c3 48 8b 0d 38 7d 20 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 83 3d 59 c1 20 00 00 75 10 b8 03 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 ee fb ff ff 48 89 04 24 RSP: 002b:00007ffce2b88928 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 00007ffce2b88950 RCX: 00007fa66e01d270 RDX: 0000000000000000 RSI: 00007fa66e8a5320 RDI: 0000000000000010 RBP: 0000000000000705 R08: 0000000000000000 R09: 0000000000000020 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffce2b899e0 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 3070b38d038db588 ]--- RIP: 0010:rose_send_frame+0x194/0x230 net/rose/rose_link.c:104 Code: 77 fb eb 93 80 3c 02 00 0f 85 84 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 4b 20 49 8d b9 58 03 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 6c 49 8b 91 58 03 00 00 e9 b4 fe ff ff e8 55 7d 77 RSP: 0018:ffff8880ba607ab8 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff888235e0dcc0 RCX: 0000000000000006 RDX: 000000000000006b RSI: ffffffff87cca3a0 RDI: 0000000000000358 RBP: ffff8880ba607ae8 R08: ffffed1014aa78d5 R09: 0000000000000000 R10: ffffed1014aa78d4 R11: ffff8880a553c6a3 R12: ffff888235e0dcc0 R13: 0000000000000078 R14: ffff8880a57798c0 R15: ffff8880a57798c0 FS: 00007fa66eed68c0(0000) GS:ffff8880ba600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa544ea3fc0 CR3: 00000000aa625000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400