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: 694d, last: 10d
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 879 4d10h 1801d 1/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 293d 656d 0/3 upstream: reported C repro on 2023/04/29 23:42
Last patch testing requests (8)
Created Duration User Patch Repo Result
2025/02/03 18:17 11m retest repro linux-5.15.y report log
2025/01/02 21:57 1h02m retest repro linux-5.15.y report log
2025/01/02 21:57 11m retest repro linux-5.15.y report log
2024/12/14 01:49 34m retest repro linux-5.15.y report log
2024/12/14 01:49 10m retest repro linux-5.15.y report log
2024/12/14 01:49 10m retest repro linux-5.15.y report log
2024/12/14 01:49 8m retest repro linux-5.15.y report log
2024/12/14 01:49 13m 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: 0 PID: 1275 Comm: kworker/u4:4 Not tainted 5.15.176-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Workqueue: netns cleanup_net
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 62 37 f1 fa 48 8b 14 24 48 89 2b
RSP: 0018:ffffc900000074e8 EFLAGS: 00010006
RAX: 000000000000021b RBX: 00000000000010d8 RCX: d0b2420ca4f7ea00
RDX: ffffc900000075c0 RSI: 0000000080000100 RDI: 0000000000000000
RBP: 0000010000000080 R08: ffffffff8166aa6c R09: fffff52000000d95
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88806c2c0000
R13: dffffc0000000000 R14: 1ffff1100d8580d0 R15: ffff88806c2c0680
FS:  0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000562904700950 CR3: 000000001f84d000 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: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
 handle_softirqs+0x3a7/0x930 kernel/softirq.c:558
 __do_softirq kernel/softirq.c:592 [inline]
 invoke_softirq kernel/softirq.c:432 [inline]
 __irq_exit_rcu+0x157/0x240 kernel/softirq.c:641
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:653
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
 sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:lock_is_held_type+0x137/0x180
Code: 75 40 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 75 46 41 f7 c4 00 02 00 00 74 01 fb 65 48 8b 04 25 28 00 00 00 <48> 3b 44 24 08 75 3c 89 e8 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f
RSP: 0018:ffffc90004de78f8 EFLAGS: 00000206
RAX: d0b2420ca4f7ea00 RBX: 0000000000000003 RCX: ffff88802298d940
RDX: 0000000000000000 RSI: ffffffff8aab3e20 RDI: ffffffff8af9f340
RBP: 0000000000000000 R08: dffffc0000000000 R09: fffffbfff1c14d56
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000246
R13: ffff88802298d940 R14: 00000000ffffffff R15: ffffffff8cb1fd40
 lock_is_held include/linux/lockdep.h:287 [inline]
 ___might_sleep+0xa2/0x6a0 kernel/sched/core.c:9602
 inet_twsk_purge+0x11a/0x9d0 net/ipv4/inet_timewait_sock.c:267
 ops_exit_list net/core/net_namespace.c:177 [inline]
 cleanup_net+0x763/0xb60 net/core/net_namespace.c:599
 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
 kthread+0x3f6/0x4f0 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
 </TASK>
Modules linked in:
---[ end trace c7bb1e6918513386 ]---
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 62 37 f1 fa 48 8b 14 24 48 89 2b
RSP: 0018:ffffc900000074e8 EFLAGS: 00010006
RAX: 000000000000021b RBX: 00000000000010d8 RCX: d0b2420ca4f7ea00
RDX: ffffc900000075c0 RSI: 0000000080000100 RDI: 0000000000000000
RBP: 0000010000000080 R08: ffffffff8166aa6c R09: fffff52000000d95
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88806c2c0000
R13: dffffc0000000000 R14: 1ffff1100d8580d0 R15: ffff88806c2c0680
FS:  0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000562904700950 CR3: 000000001f84d000 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 62 37 f1 fa       	call   0xfaf1379b
  39:	48 8b 14 24          	mov    (%rsp),%rdx
  3d:	48 89 2b             	mov    %rbp,(%rbx)

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/01/20 13:19 linux-5.15.y 4735586da88e f2cb035c .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in ir_raw_event_store_with_filter
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.