syzbot


general protection fault in ir_raw_event_store_with_filter

Status: upstream: reported C repro on 2023/03/22 20:40
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+42604e9406bbfdd83914@syzkaller.appspotmail.com
First crash: 371d, last: 15d
Fix bisection: failed (error log, bisect log)
  
Bug presence (1)
Date Name Commit Repro Result
2023/08/31 upstream (ToT) df57721f9a63 C [report] general protection fault in ir_raw_event_store_with_filter
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in ir_raw_event_store_with_filter usb media C error 864 16d 1478d 0/26 upstream: reported C repro on 2020/03/11 13:36
linux-6.1 BUG: unable to handle kernel paging request in ir_raw_event_store_with_filter origin:upstream C 5 1d09h 333d 0/3 upstream: reported C repro on 2023/04/29 23:42
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2023/09/22 00:56 0m bisect fix linux-5.15.y error job log (0)
2023/06/23 03:11 39m bisect fix linux-5.15.y job log (0) log

Sample crash report:
rc rc0: IR event FIFO is full!
rc rc0: IR event FIFO is full!
rc rc0: IR event FIFO is full!
rc rc0: IR event FIFO is full!
rc rc0: IR event FIFO is full!
general protection fault, probably for non-canonical address 0xdffffc000000021b: 0000 [#1] PREEMPT SMP KASAN
KASAN: probably user-memory-access in range [0x00000000000010d8-0x00000000000010df]
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.15.112-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
RIP: 0010:ir_raw_event_store_with_filter+0x44f/0x940 drivers/media/rc/rc-ir-raw.c:186
Code: 0f b6 04 28 84 c0 0f 85 c8 02 00 00 48 89 e8 48 c1 e8 03 42 0f b6 04 28 84 c0 0f 85 d8 02 00 00 48 8b 2a 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 0c 48 89 df e8 12 83 0d fb 48 8b 14 24 48 89 2b
RSP: 0018:ffffc900000074e8 EFLAGS: 00010006
RAX: 000000000000021b RBX: 00000000000010d8 RCX: 9f67e4e319692800
RDX: ffffc900000075c0 RSI: 0000000000000101 RDI: 0000000000000000
RBP: 0000010000000080 R08: ffffffff8166391c R09: fffff52000000d95
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88801845e000
R13: dffffc0000000000 R14: 1ffff1100308bcd0 R15: ffff88801845e680
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001178 CR3: 0000000022e33000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 sz_push drivers/media/rc/streamzap.c:118 [inline]
 sz_push_full_pulse+0x314/0x580 drivers/media/rc/streamzap.c:155
 streamzap_callback+0x5d7/0x1140
 __usb_hcd_giveback_urb+0x371/0x530 drivers/usb/core/hcd.c:1670
 dummy_timer+0x8ad/0x3200 drivers/usb/gadget/udc/dummy_hcd.c:1987
 call_timer_fn+0x16d/0x560 kernel/time/timer.c:1421
 expire_timers kernel/time/timer.c:1466 [inline]
 __run_timers+0x67c/0x890 kernel/time/timer.c:1737
 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1750
 __do_softirq+0x3b3/0x93a kernel/softirq.c:558
 invoke_softirq kernel/softirq.c:432 [inline]
 __irq_exit_rcu+0x155/0x240 kernel/softirq.c:636
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:648
 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1096
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:22 [inline]
RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:70 [inline]
RIP: 0010:arch_irqs_disabled arch/x86/include/asm/irqflags.h:132 [inline]
RIP: 0010:acpi_safe_halt drivers/acpi/processor_idle.c:110 [inline]
RIP: 0010:acpi_idle_do_entry+0x10f/0x340 drivers/acpi/processor_idle.c:570
Code: 1d 5c f7 48 83 e3 08 0f 85 0a 01 00 00 4c 8d 74 24 20 e8 24 8a 62 f7 0f 1f 44 00 00 e8 3a 19 5c f7 0f 00 2d 93 87 be 00 fb f4 <4c> 89 f3 48 c1 eb 03 42 80 3c 3b 00 74 08 4c 89 f7 e8 1b 75 a5 f7
RSP: 0018:ffffffff8c607b80 EFLAGS: 000002d3
RAX: ffffffff8a23cfa6 RBX: 0000000000000000 RCX: ffffffff8c6bb5c0
RDX: 0000000000000000 RSI: ffffffff8a8afb60 RDI: ffffffff8ad85d40
RBP: ffffffff8c607c10 R08: ffffffff818659f0 R09: fffffbfff18d76b9
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffffffff18c0f70
R13: ffff8881468b6804 R14: ffffffff8c607ba0 R15: dffffc0000000000
 acpi_idle_enter+0x352/0x4f0 drivers/acpi/processor_idle.c:705
 cpuidle_enter_state+0x521/0xef0 drivers/cpuidle/cpuidle.c:237
 cpuidle_enter+0x59/0x90 drivers/cpuidle/cpuidle.c:351
 call_cpuidle kernel/sched/idle.c:158 [inline]
 cpuidle_idle_call kernel/sched/idle.c:239 [inline]
 do_idle+0x3e4/0x670 kernel/sched/idle.c:306
 cpu_startup_entry+0x14/0x20 kernel/sched/idle.c:403
 start_kernel+0x491/0x53a init/main.c:1144
 secondary_startup_64_no_verify+0xb1/0xbb
 </TASK>
Modules linked in:
---[ end trace b855503394f47535 ]---
RIP: 0010:ir_raw_event_store_with_filter+0x44f/0x940 drivers/media/rc/rc-ir-raw.c:186
Code: 0f b6 04 28 84 c0 0f 85 c8 02 00 00 48 89 e8 48 c1 e8 03 42 0f b6 04 28 84 c0 0f 85 d8 02 00 00 48 8b 2a 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 0c 48 89 df e8 12 83 0d fb 48 8b 14 24 48 89 2b
RSP: 0018:ffffc900000074e8 EFLAGS: 00010006
RAX: 000000000000021b RBX: 00000000000010d8 RCX: 9f67e4e319692800
RDX: ffffc900000075c0 RSI: 0000000000000101 RDI: 0000000000000000
RBP: 0000010000000080 R08: ffffffff8166391c R09: fffff52000000d95
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88801845e000
R13: dffffc0000000000 R14: 1ffff1100308bcd0 R15: ffff88801845e680
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001178 CR3: 0000000022e33000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	0f b6 04 28          	movzbl (%rax,%rbp,1),%eax
   4:	84 c0                	test   %al,%al
   6:	0f 85 c8 02 00 00    	jne    0x2d4
   c:	48 89 e8             	mov    %rbp,%rax
   f:	48 c1 e8 03          	shr    $0x3,%rax
  13:	42 0f b6 04 28       	movzbl (%rax,%r13,1),%eax
  18:	84 c0                	test   %al,%al
  1a:	0f 85 d8 02 00 00    	jne    0x2f8
  20:	48 8b 2a             	mov    (%rdx),%rbp
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1) <-- trapping instruction
  2f:	74 0c                	je     0x3d
  31:	48 89 df             	mov    %rbx,%rdi
  34:	e8 12 83 0d fb       	callq  0xfb0d834b
  39:	48 8b 14 24          	mov    (%rsp),%rdx
  3d:	48 89 2b             	mov    %rbp,(%rbx)

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/23 01:57 linux-5.15.y 9d6bde853685 4bce1a3e .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in ir_raw_event_store_with_filter
2024/03/13 01:35 linux-5.15.y 574362648507 c35c26ec .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in ir_raw_event_store_with_filter
2023/04/30 10:56 linux-5.15.y f48aeeaaa64c 62df2017 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in ir_raw_event_store_with_filter
2023/07/11 06:30 linux-5.15.y d54cfc420586 52ae002a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in ir_raw_event_store_with_filter
2023/03/22 20:39 linux-5.15.y 115472395b0a f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in ir_raw_event_store_with_filter
* Struck through repros no longer work on HEAD.