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: 567d, last: 6d12h
Fix bisection: failed (error log, bisect log)
  
Bug presence (1)
Date Name Commit Repro Result
2024/05/11 upstream (ToT) cf87f46fd34d 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 874 4d08h 1674d 0/28 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 error 5 166d 529d 0/3 upstream: reported C repro on 2023/04/29 23:42
Last patch testing requests (5)
Created Duration User Patch Repo Result
2024/10/04 02:18 15m retest repro linux-5.15.y report log
2024/10/04 02:18 13m retest repro linux-5.15.y report log
2024/10/04 02:18 11m retest repro linux-5.15.y report log
2024/10/04 02:18 13m retest repro linux-5.15.y report log
2024/10/04 02:18 12m retest repro linux-5.15.y report log
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
2023/06/23 03:11 39m bisect fix linux-5.15.y OK (0) job log 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: 1 PID: 0 Comm: swapper/1 Not tainted 5.15.158-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
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 22 a3 0b fb 48 8b 14 24 48 89 2b
RSP: 0018:ffffc90000dd05e8 EFLAGS: 00010006
RAX: 000000000000021b RBX: 00000000000010d8 RCX: 52390bf2e53aaa00
RDX: ffffc90000dd07a0 RSI: 0000000000000101 RDI: 0000000000000000
RBP: 0000000000000080 R08: ffffffff8166860c R09: fffff520001b9fb5
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88814b292000
R13: dffffc0000000000 R14: 1ffff110296524d0 R15: ffff88814b292680
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001178 CR3: 000000007561a000 CR4: 00000000003506e0
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_space drivers/media/rc/streamzap.c:173 [inline]
 sz_push_half_space drivers/media/rc/streamzap.c:179 [inline]
 streamzap_callback+0x7e5/0x1140 drivers/media/rc/streamzap.c:231
 __usb_hcd_giveback_urb+0x371/0x530 drivers/usb/core/hcd.c:1674
 dummy_timer+0x8ad/0x3200 drivers/usb/gadget/udc/dummy_hcd.c:1987
 call_timer_fn+0x16d/0x560 kernel/time/timer.c:1451
 expire_timers kernel/time/timer.c:1496 [inline]
 __run_timers+0x67c/0x890 kernel/time/timer.c:1767
 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1780
 __do_softirq+0x3b3/0x93a kernel/softirq.c:558
 invoke_softirq kernel/softirq.c:432 [inline]
 __irq_exit_rcu+0x155/0x240 kernel/softirq.c:637
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649
 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 59 f7 48 83 e3 08 0f 85 0a 01 00 00 4c 8d 74 24 20 e8 24 99 5f f7 0f 1f 44 00 00 e8 1a 19 59 f7 0f 00 2d b3 d9 bb 00 fb f4 <4c> 89 f3 48 c1 eb 03 42 80 3c 3b 00 74 08 4c 89 f7 e8 9b f1 a2 f7
RSP: 0018:ffffc90000d67b00 EFLAGS: 000002d3
RAX: ffffffff8a2743a6 RBX: 0000000000000000 RCX: ffff88813fe68000
RDX: 0000000000000000 RSI: ffffffff8a8b2980 RDI: ffffffff8ad8f600
RBP: ffffc90000d67b90 R08: ffffffff8186dcf0 R09: ffffed1027fcd001
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920001acf60
R13: ffff888019518804 R14: ffffc90000d67b20 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_secondary+0x371/0x500 arch/x86/kernel/smpboot.c:281
 secondary_startup_64_no_verify+0xb1/0xbb
 </TASK>
Modules linked in:
---[ end trace a45e1f60d769e900 ]---
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 22 a3 0b fb 48 8b 14 24 48 89 2b
RSP: 0018:ffffc90000dd05e8 EFLAGS: 00010006
RAX: 000000000000021b RBX: 00000000000010d8 RCX: 52390bf2e53aaa00
RDX: ffffc90000dd07a0 RSI: 0000000000000101 RDI: 0000000000000000
RBP: 0000000000000080 R08: ffffffff8166860c R09: fffff520001b9fb5
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88814b292000
R13: dffffc0000000000 R14: 1ffff110296524d0 R15: ffff88814b292680
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001178 CR3: 000000007561a000 CR4: 00000000003506e0
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 22 a3 0b fb       	call   0xfb0ba35b
  39:	48 8b 14 24          	mov    (%rsp),%rdx
  3d:	48 89 2b             	mov    %rbp,(%rbx)

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/11 04:50 linux-5.15.y 284087d4f7d5 f7c35481 .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
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/04/12 22:53 linux-5.15.y cdfd0a7f0139 c8349e48 .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
2024/04/02 05:38 linux-5.15.y 9465fef4ae35 6baf5069 .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
2024/03/31 00:43 linux-5.15.y 9465fef4ae35 6baf5069 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: use-after-free Read 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.