syzbot


general protection fault in rose_send_frame

Status: fixed on 2020/12/23 11:20
Reported-by: syzbot+41614fd010c6acf9a8dd@syzkaller.appspotmail.com
Fix commit: 731b9890a7f1 rose: Fix Null pointer dereference in rose_send_frame()
First crash: 2041d, last: 1463d
Fix bisection: fixed by (bisect log) :
commit 731b9890a7f136971ac62f3276c4f6e5fa124887
Author: Anmol Karn <anmol.karan123@gmail.com>
Date: Thu Nov 19 19:10:43 2020 +0000

  rose: Fix Null pointer dereference in rose_send_frame()

  
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in rose_send_frame (2) hams 7 749d 774d 22/28 fixed on 2023/02/24 13:50
linux-4.14 general protection fault in rose_send_frame C inconclusive 6 1582d 2034d 0/1 upstream: reported C repro on 2019/04/28 12:17
upstream general protection fault in rose_send_frame C done done 664 1462d 2141d 19/28 fixed on 2021/03/10 01:49
Fix bisection attempts (13)
Created Duration User Patch Repo Result
2020/12/19 01:12 3h26m bisect fix linux-4.19.y OK (1) job log
2020/11/19 00:48 23m bisect fix linux-4.19.y OK (0) job log log
2020/10/20 00:22 26m bisect fix linux-4.19.y OK (0) job log log
2020/09/19 23:58 23m bisect fix linux-4.19.y OK (0) job log log
2020/08/20 23:19 28m bisect fix linux-4.19.y OK (0) job log log
2020/07/01 01:46 23m bisect fix linux-4.19.y OK (0) job log log
2020/06/01 00:19 24m bisect fix linux-4.19.y OK (0) job log log
2020/05/01 23:42 25m bisect fix linux-4.19.y OK (0) job log log
2020/04/01 23:01 28m bisect fix linux-4.19.y OK (0) job log log
2020/03/02 22:33 28m bisect fix linux-4.19.y OK (0) job log log
2020/02/01 21:50 25m bisect fix linux-4.19.y OK (0) job log log
2020/01/02 21:25 25m bisect fix linux-4.19.y OK (0) job log log
2019/12/03 20:31 24m bisect fix linux-4.19.y OK (0) job log log

Sample crash report:
IPv6: ADDRCONF(NETDEV_CHANGE): batadv_slave_1: link becomes ready
IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready
IPv6: ADDRCONF(NETDEV_CHANGE): rose0: 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: 1 PID: 0 Comm: swapper/1 Not tainted 4.19.133-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:rose_send_frame+0x199/0x260 net/rose/rose_link.c:104
Code: 48 c1 ea 03 80 3c 02 00 0f 85 9e 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 6b 20 48 8d bd 58 03 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 75 4c 8b bd 58 03 00 00 e9 bf fe ff ff e8 40 c5 f8
RSP: 0018:ffff8880ae707b00 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff888216180840 RCX: ffffffff8670e213
RDX: 000000000000006b RSI: ffffffff8670e33e RDI: 0000000000000358
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff888216180840
R13: ffff8880a653d140 R14: 0000000000000005 R15: 0000000000000010
FS:  0000000000000000(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000190 CR3: 000000008a2ab000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 rose_transmit_clear_request+0x1d5/0x290 net/rose/rose_link.c:258
 rose_rx_call_request+0x4c3/0x18cc net/rose/af_rose.c:999
 rose_loopback_timer+0x15d/0x470 net/rose/rose_loopback.c:103
 call_timer_fn+0x177/0x700 kernel/time/timer.c:1326
 expire_timers+0x243/0x4e0 kernel/time/timer.c:1363
 __run_timers kernel/time/timer.c:1684 [inline]
 run_timer_softirq+0x21c/0x670 kernel/time/timer.c:1697
 __do_softirq+0x26c/0x9a0 kernel/softirq.c:292
 invoke_softirq kernel/softirq.c:372 [inline]
 irq_exit+0x215/0x260 kernel/softirq.c:412
 exiting_irq arch/x86/include/asm/apic.h:544 [inline]
 smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1094
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
 </IRQ>
RIP: 0010:native_safe_halt+0xe/0x10 arch/x86/include/asm/irqflags.h:61
Code: 48 89 df e8 34 ec 65 fa e9 2e ff ff ff 48 89 df e8 27 ec 65 fa eb 82 90 90 90 90 90 e9 07 00 00 00 0f 00 2d 54 10 4e 00 fb f4 <c3> 90 e9 07 00 00 00 0f 00 2d 44 10 4e 00 f4 c3 90 90 41 56 41 55
RSP: 0018:ffff8880a9f47d58 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: 1ffffffff11a4b6c RBX: dffffc0000000000 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000000001 RDI: ffff8880a9f3ac44
RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff88d25b50
R13: 1ffff110153e8fb5 R14: 0000000000000000 R15: 0000000000000000
 arch_safe_halt arch/x86/include/asm/paravirt.h:94 [inline]
 default_idle+0x49/0x310 arch/x86/kernel/process.c:557
 cpuidle_idle_call kernel/sched/idle.c:153 [inline]
 do_idle+0x2ec/0x4b0 kernel/sched/idle.c:263
 cpu_startup_entry+0xc5/0xe0 kernel/sched/idle.c:369
 start_secondary+0x41f/0x580 arch/x86/kernel/smpboot.c:271
 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:243
Modules linked in:
---[ end trace c6581d60abc1b4b9 ]---
RIP: 0010:rose_send_frame+0x199/0x260 net/rose/rose_link.c:104
Code: 48 c1 ea 03 80 3c 02 00 0f 85 9e 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 6b 20 48 8d bd 58 03 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 75 4c 8b bd 58 03 00 00 e9 bf fe ff ff e8 40 c5 f8
RSP: 0018:ffff8880ae707b00 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff888216180840 RCX: ffffffff8670e213
RDX: 000000000000006b RSI: ffffffff8670e33e RDI: 0000000000000358
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff888216180840
R13: ffff8880a653d140 R14: 0000000000000005 R15: 0000000000000010
FS:  0000000000000000(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000190 CR3: 000000008a2ab000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/07/21 23:02 linux-4.19.y 17a87580a885 e562dd8a .config console log report syz C ci2-linux-4-19
2019/08/09 15:47 linux-4.19.y cc4c818b2219 aff9e255 .config console log report syz C ci2-linux-4-19
2019/07/21 05:32 linux-4.19.y 3bd837bfe431 1656845f .config console log report syz C ci2-linux-4-19
2019/04/28 10:08 linux-4.19.y 19bb613acb9a b617407b .config console log report syz C ci2-linux-4-19
2019/04/21 08:05 linux-4.19.y c98875d930e9 b0e8efcb .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.