bisecting fixing commit since cc4c818b2219c58af5f0ca59f3e9f02c48bc0b65 building syzkaller on aff9e255cd708709adef545d1f932020ee5c0978 testing commit cc4c818b2219c58af5f0ca59f3e9f02c48bc0b65 with gcc (GCC) 8.1.0 kernel signature: 11d4d6e86420c1c70c3009dfbe22aea4f5eafddd9a7f78c1abf5dad4c8307c2b all runs: crashed: general protection fault in rose_send_frame testing current HEAD a083db76118d20d070794ecf79af17843406c3f6 testing commit a083db76118d20d070794ecf79af17843406c3f6 with gcc (GCC) 8.1.0 kernel signature: 7c1bb7d78df8afd0d94083d23a172fe2cbef41b659c021e39dbeb5adc55b405f all runs: crashed: general protection fault in rose_send_frame revisions tested: 2, total time: 27m54.704276932s (build: 19m34.426651123s, test: 7m13.508432265s) the crash still happens on HEAD commit msg: Linux 4.19.107 crash: general protection fault in rose_send_frame IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready 8021q: adding VLAN 0 to HW filter on device batadv0 8021q: adding VLAN 0 to HW filter on device batadv0 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: 7202 Comm: syz-executor.3 Not tainted 4.19.107-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:rose_send_frame+0x140/0x240 net/rose/rose_link.c:104 Code: 41 5e 5d c3 80 3c 02 00 0f 85 e0 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 0f 85 d1 00 00 00 49 8b 91 58 03 00 00 e9 04 ff ff ff RSP: 0018:ffff8880aea07ae0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff88809b2e2300 RCX: 0000000000000006 RDX: 000000000000006b RSI: ffffffff87819620 RDI: 0000000000000358 RBP: ffff8880aea07b10 R08: ffffed1012f56525 R09: 0000000000000000 R10: ffffed1012f56524 R11: ffff888097ab2923 R12: ffff88809b2e2300 R13: 0000000000000078 R14: ffff88808c6f5500 R15: ffff88808c6f5500 FS: 0000000000b30940(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000712cc8 CR3: 000000008e17b000 CR4: 00000000001406f0 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: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:1326 expire_timers kernel/time/timer.c:1363 [inline] __run_timers kernel/time/timer.c:1684 [inline] run_timer_softirq+0xb63/0x1180 kernel/time/timer.c:1697 __do_softirq+0x260/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:893 RIP: 0010:bytes_is_nonzero mm/kasan/kasan.c:166 [inline] RIP: 0010:memory_is_nonzero mm/kasan/kasan.c:184 [inline] RIP: 0010:memory_is_poisoned_n mm/kasan/kasan.c:210 [inline] RIP: 0010:memory_is_poisoned mm/kasan/kasan.c:241 [inline] RIP: 0010:check_memory_region_inline mm/kasan/kasan.c:257 [inline] RIP: 0010:check_memory_region+0x124/0x1b0 mm/kasan/kasan.c:267 Code: 6c ff ff ff 4d 85 c0 74 ba 48 b8 01 00 00 00 00 fc ff df 4d 01 c8 48 01 d8 41 80 39 00 74 08 e9 8c 00 00 00 48 89 d8 4c 39 c0 <74> 97 80 38 00 48 8d 58 01 74 ef eb 87 4c 89 c0 49 39 c2 74 59 e8 RSP: 0018:ffff88808c6778d8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: ffffed1011de8867 RBX: 1ffff11011de8866 RCX: ffffffff814cc294 RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff88808ef44330 RBP: ffff88808c6778f0 R08: ffffed1011de8867 R09: ffffed1011de8866 R10: ffffed1011de8866 R11: ffff88808ef44333 R12: ffffed1011de8867 R13: ffffffff8806de88 R14: ffff888099531e88 R15: dffffc0000000000 kasan_check_read+0x11/0x20 mm/kasan/kasan.c:272 atomic_read include/asm-generic/atomic-instrumented.h:21 [inline] queued_spin_is_locked include/asm-generic/qspinlock.h:35 [inline] debug_spin_unlock kernel/locking/spinlock_debug.c:98 [inline] do_raw_spin_unlock+0x54/0x260 kernel/locking/spinlock_debug.c:134 __raw_spin_unlock include/linux/spinlock_api_smp.h:151 [inline] _raw_spin_unlock+0x22/0x50 kernel/locking/spinlock.c:176 spin_unlock include/linux/spinlock.h:369 [inline] sync_global_pgds_l4+0x14d/0x3b0 arch/x86/mm/init_64.c:171 sync_global_pgds+0x9/0x10 arch/x86/mm/init_64.c:186 vmalloc_sync_all+0x1d/0x20 arch/x86/mm/fault.c:407 __vmalloc_node_range+0x2fd/0x690 mm/vmalloc.c:1758 __vmalloc_node mm/vmalloc.c:1801 [inline] __vmalloc_node_flags mm/vmalloc.c:1815 [inline] vzalloc+0x6a/0x80 mm/vmalloc.c:1854 alloc_counters.isra.11+0x4e/0x5c0 net/ipv4/netfilter/ip_tables.c:803 copy_entries_to_user net/ipv4/netfilter/ip_tables.c:825 [inline] get_entries net/ipv4/netfilter/ip_tables.c:1027 [inline] do_ipt_get_ctl+0x3ee/0x710 net/ipv4/netfilter/ip_tables.c:1703 nf_sockopt net/netfilter/nf_sockopt.c:104 [inline] nf_getsockopt+0x5f/0xc0 net/netfilter/nf_sockopt.c:122 ip_getsockopt+0xf9/0x130 net/ipv4/ip_sockglue.c:1574 tcp_getsockopt+0x6a/0xd0 net/ipv4/tcp.c:3603 sock_common_getsockopt+0x73/0xf0 net/core/sock.c:3005 __sys_getsockopt+0x12e/0x1f0 net/socket.c:1938 __do_sys_getsockopt net/socket.c:1949 [inline] __se_sys_getsockopt net/socket.c:1946 [inline] __x64_sys_getsockopt+0xb9/0x150 net/socket.c:1946 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c33a Code: b8 34 01 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 dd 8c fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 37 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 ba 8c fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:00007ffd4f181248 EFLAGS: 00000246 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045c33a RDX: 0000000000000041 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 0000000000000000 R08: 00007ffd4f18126c R09: 0000000000000278 R10: 00007ffd4f181270 R11: 0000000000000246 R12: 00000000004c7fe7 R13: 0000000000714e80 R14: 0000000000000278 R15: 0000000000712cc0 Modules linked in: ---[ end trace 20543e847964135b ]--- RIP: 0010:rose_send_frame+0x140/0x240 net/rose/rose_link.c:104 Code: 41 5e 5d c3 80 3c 02 00 0f 85 e0 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 0f 85 d1 00 00 00 49 8b 91 58 03 00 00 e9 04 ff ff ff RSP: 0018:ffff8880aea07ae0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff88809b2e2300 RCX: 0000000000000006 RDX: 000000000000006b RSI: ffffffff87819620 RDI: 0000000000000358 RBP: ffff8880aea07b10 R08: ffffed1012f56525 R09: 0000000000000000 R10: ffffed1012f56524 R11: ffff888097ab2923 R12: ffff88809b2e2300 R13: 0000000000000078 R14: ffff88808c6f5500 R15: ffff88808c6f5500 FS: 0000000000b30940(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000712cc8 CR3: 000000008e17b000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400