bisecting fixing commit since 811218eceeaa7618652e1b8d11caeff67ab42072 building syzkaller on 98682e5e2aefc9aad61354f4f3ac93be96002a2a testing commit 811218eceeaa7618652e1b8d11caeff67ab42072 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 69a01fb256e95eb31d94f9f3eb10fb613ed13c047dd49465b1b782dfafa1f29a all runs: crashed: general protection fault in hsr_netdev_notify testing current HEAD b172b44fcb1771e083aad806fa96f3f60e2ddfac testing commit b172b44fcb1771e083aad806fa96f3f60e2ddfac compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: d70af8cc714fbbeaad39f99a64772ae9db1e6b1e72703c10c354b81402949ff3 all runs: crashed: general protection fault in hsr_netdev_notify revisions tested: 2, total time: 26m59.964762321s (build: 18m56.16831667s, test: 7m35.328152522s) the crash still happens on HEAD commit msg: Linux 4.19.206 crash: general protection fault in hsr_netdev_notify bond0 (unregistering): Releasing backup interface bond_slave_1 device bond_slave_1 left promiscuous mode bond0 (unregistering): Releasing backup interface bond_slave_0 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: 9209 Comm: kworker/u4:6 Not tainted 4.19.206-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: netns cleanup_net RIP: 0010:hsr_netdev_notify+0x2db/0xa40 net/hsr/hsr_main.c:64 Code: 42 80 3c 20 00 0f 85 83 05 00 00 48 8b 1b 4c 39 fb 75 c4 31 db 4c 8d 73 10 48 b8 00 00 00 00 00 fc ff df 4c 89 f6 48 c1 ee 03 <80> 3c 06 00 0f 85 e5 05 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b RSP: 0018:ffff88809168f5b0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffff88809d43b7c0 RDX: 0000000000000001 RSI: 0000000000000002 RDI: ffff8880a89c43a0 RBP: ffff88809168f5e8 R08: 1ffff11012378d70 R09: fffffbfff14f24d0 R10: fffffbfff14f24d0 R11: ffffffff8a792687 R12: dffffc0000000000 R13: ffff8880a5bf07c0 R14: 0000000000000010 R15: ffff88809d43b7d0 FS: 0000000000000000(0000) GS:ffff8880ba200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc514a07000 CR3: 00000000b295e000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: notifier_call_chain+0x8a/0x160 kernel/notifier.c:93 __raw_notifier_call_chain kernel/notifier.c:394 [inline] raw_notifier_call_chain+0x11/0x20 kernel/notifier.c:401 call_netdevice_notifiers_info+0x28/0x60 net/core/dev.c:1744 call_netdevice_notifiers+0x67/0x90 net/core/dev.c:1762 __bond_release_one+0xead/0x1410 drivers/net/bonding/bond_main.c:1982 bond_slave_netdev_event drivers/net/bonding/bond_main.c:3154 [inline] bond_netdev_event+0x844/0x9b0 drivers/net/bonding/bond_main.c:3266 notifier_call_chain+0x8a/0x160 kernel/notifier.c:93 __raw_notifier_call_chain kernel/notifier.c:394 [inline] raw_notifier_call_chain+0x11/0x20 kernel/notifier.c:401 call_netdevice_notifiers_info+0x28/0x60 net/core/dev.c:1744 call_netdevice_notifiers net/core/dev.c:1762 [inline] rollback_registered_many+0x5ca/0xbe0 net/core/dev.c:8196 unregister_netdevice_many+0x3e/0x1f0 net/core/dev.c:9324 default_device_exit_batch+0x2e4/0x3d0 net/core/dev.c:9795 ops_exit_list.isra.0+0xd3/0x120 net/core/net_namespace.c:156 cleanup_net+0x368/0x850 net/core/net_namespace.c:553 process_one_work+0x7b9/0x15a0 kernel/workqueue.c:2153 worker_thread+0x85/0xb60 kernel/workqueue.c:2296 kthread+0x347/0x410 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Modules linked in: ---[ end trace fc1df2d12ef7b375 ]--- RIP: 0010:hsr_netdev_notify+0x2db/0xa40 net/hsr/hsr_main.c:64 Code: 42 80 3c 20 00 0f 85 83 05 00 00 48 8b 1b 4c 39 fb 75 c4 31 db 4c 8d 73 10 48 b8 00 00 00 00 00 fc ff df 4c 89 f6 48 c1 ee 03 <80> 3c 06 00 0f 85 e5 05 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b RSP: 0018:ffff88809168f5b0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffff88809d43b7c0 RDX: 0000000000000001 RSI: 0000000000000002 RDI: ffff8880a89c43a0 RBP: ffff88809168f5e8 R08: 1ffff11012378d70 R09: fffffbfff14f24d0 R10: fffffbfff14f24d0 R11: ffffffff8a792687 R12: dffffc0000000000 R13: ffff8880a5bf07c0 R14: 0000000000000010 R15: ffff88809d43b7d0 FS: 0000000000000000(0000) GS:ffff8880ba200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc514a07000 CR3: 00000000b295e000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) 5: 0f 85 83 05 00 00 jne 0x58e b: 48 8b 1b mov (%rbx),%rbx e: 4c 39 fb cmp %r15,%rbx 11: 75 c4 jne 0xffffffd7 13: 31 db xor %ebx,%ebx 15: 4c 8d 73 10 lea 0x10(%rbx),%r14 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 23: 4c 89 f6 mov %r14,%rsi 26: 48 c1 ee 03 shr $0x3,%rsi * 2a: 80 3c 06 00 cmpb $0x0,(%rsi,%rax,1) <-- trapping instruction 2e: 0f 85 e5 05 00 00 jne 0x619 34: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 3b: fc ff df 3e: 4c rex.WR 3f: 8b .byte 0x8b