bisecting fixing commit since 17a87580a8856170d59aab302226811a4ae69149
building syzkaller on e562dd8adff015d44bec3d7fd8e6608a3a031ff3
testing commit 17a87580a8856170d59aab302226811a4ae69149 with gcc (GCC) 8.1.0
kernel signature: 95af50561eda5bec1da07496494fc11d426cb0085c71bb7f03b8b99d352c93d5
all runs: crashed: general protection fault in rose_send_frame
testing current HEAD ad326970d25cc85128cd22d62398751ad072efff
testing commit ad326970d25cc85128cd22d62398751ad072efff with gcc (GCC) 8.1.0
kernel signature: d8780675bda4eaf90c936f3e739791e0e68674e81e73b525f1c117fd3ae45458
all runs: crashed: general protection fault in rose_send_frame
revisions tested: 2, total time: 26m11.677549118s (build: 18m50.882435352s, test: 6m10.373692585s)
the crash still happens on HEAD
commit msg: Linux 4.19.152
crash: general protection fault in rose_send_frame
batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3e) already exists on: batadv_slave_1
batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems!
kasan: CONFIG_KASAN_INLINE enabled
IPv6: ADDRCONF(NETDEV_UP): batadv_slave_1: link is not ready
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 6150 Comm: in:imklog Not tainted 4.19.152-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: 78 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 a5 2b 78
RSP: 0018:ffff8880aea07ab8 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff88809aaebac0 RCX: 0000000000000006
RDX: 000000000000006b RSI: ffffffff87cc75a0 RDI: 0000000000000358
RBP: ffff8880aea07ae8 R08: ffffed101530df25 R09: 0000000000000000
R10: ffffed101530df24 R11: ffff8880a986f923 R12: ffff88809aaebac0
R13: 0000000000000078 R14: ffff88808c16d480 R15: ffff88808c16d480
FS: 00007f374752b700(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4919911008 CR3: 000000009ff7d000 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:1703 [inline]
run_timer_softirq+0x1dc/0x570 kernel/time/timer.c:1716
__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 6b b2 7a 01 00 74 1f fb 66 0f 1f 44 00 00 01 00 00 00 e8 80 42 6a fa 65 8b 05 c9 a6 2a 79 85 c0 74 0d 5b
RSP: 0018:ffff8880862ef940 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: dffffc0000000000 RBX: ffff8880aea2c2c0 RCX: 1ffff1101337ed35
RDX: 1ffffffff10a3f2b RSI: ffff888099bf6988 RDI: ffffffff8851f958
RBP: ffff8880862ef948 R08: ffff888099bf69a8 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880aea2c2c0
R13: ffff888093c762c0 R14: 0000000000000000 R15: ffff888099bf6100
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
schedule+0x7f/0x1b0 kernel/sched/core.c:3561
do_syslog+0xe2d/0x11a0 kernel/printk/printk.c:1501
kmsg_read+0x65/0x80 fs/proc/kmsg.c:40
proc_reg_read+0x1a5/0x240 fs/proc/inode.c:231
__vfs_read+0xe3/0x880 fs/read_write.c:416
vfs_read+0xf9/0x2f0 fs/read_write.c:452
ksys_read+0x103/0x260 fs/read_write.c:579
__do_sys_read fs/read_write.c:589 [inline]
__se_sys_read fs/read_write.c:587 [inline]
__x64_sys_read+0x6e/0xb0 fs/read_write.c:587
do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f3749b6e22d
Code: c1 20 00 00 75 10 b8 00 00 00 00 0f 05 48 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 4e fc ff ff 48 89 04 24 b8 00 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 97 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01
RSP: 002b:00007f374750a580 EFLAGS: 00000293 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3749b6e22d
RDX: 0000000000001fa0 RSI: 00007f374750ada0 RDI: 0000000000000004
RBP: 000056047beeb9d0 R08: 0000000000000000 R09: 0000000004000001
R10: 0000000000000001 R11: 0000000000000293 R12: 00007f374750ada0
R13: 0000000000001fa0 R14: 0000000000001f9f R15: 00007f374750ae10
Modules linked in:
---[ end trace c4382376330857ce ]---
batman_adv: batadv0: Interface activated: batadv_slave_1
RIP: 0010:rose_send_frame+0x194/0x230 net/rose/rose_link.c:104
Code: 78 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 a5 2b 78
RSP: 0018:ffff8880aea07ab8 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff88809aaebac0 RCX: 0000000000000006
RDX: 000000000000006b RSI: ffffffff87cc75a0 RDI: 0000000000000358
RBP: ffff8880aea07ae8 R08: ffffed101530df25 R09: 0000000000000000
R10: ffffed101530df24 R11: ffff8880a986f923 R12: ffff88809aaebac0
R13: 0000000000000078 R14: ffff88808c16d480 R15: ffff88808c16d480
FS: 00007f374752b700(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4919911008 CR3: 000000009ff7d000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400