[v5.15] general protection fault in ir_raw_event_store_with_filter

0 views
Skip to first unread message

syzbot

unread,
Mar 22, 2023, 4:40:52 PM3/22/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 115472395b0a Linux 5.15.104
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12c8080ec80000
kernel config: https://syzkaller.appspot.com/x/.config?x=f5592cc4916e1c2f
dashboard link: https://syzkaller.appspot.com/bug?extid=42604e9406bbfdd83914
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/6c2c0744c7e0/disk-11547239.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/7ea4c5ecca4f/vmlinux-11547239.xz
kernel image: https://storage.googleapis.com/syzbot-assets/9a231dbcf423/bzImage-11547239.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+42604e...@syzkaller.appspotmail.com

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: 14 Comm: ksoftirqd/0 Not tainted 5.15.104-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/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 92 d0 10 fb 48 8b 14 24 48 89 2b
RSP: 0018:ffffc90000d37388 EFLAGS: 00010006
RAX: 000000000000021b RBX: 00000000000010d8 RCX: 5d1388205437d600
RDX: ffffc90000d37460 RSI: 000000000003ffff RDI: 0000000000040000
RBP: 0000010000000080 R08: ffffffff8166101c R09: fffff520001a6d69
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807d9da000
R13: dffffc0000000000 R14: 1ffff1100fb3b4d0 R15: ffff88807d9da680
FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2d82c000 CR3: 000000007e2a8000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
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
run_ksoftirqd+0xc1/0x120 kernel/softirq.c:920
smpboot_thread_fn+0x51b/0x9d0 kernel/smpboot.c:164
kthread+0x3f6/0x4f0 kernel/kthread.c:319
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
</TASK>
Modules linked in:
---[ end trace c4939993d8b46c16 ]---
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 92 d0 10 fb 48 8b 14 24 48 89 2b
RSP: 0018:ffffc90000d37388 EFLAGS: 00010006
RAX: 000000000000021b RBX: 00000000000010d8 RCX: 5d1388205437d600
RDX: ffffc90000d37460 RSI: 000000000003ffff RDI: 0000000000040000
RBP: 0000010000000080 R08: ffffffff8166101c R09: fffff520001a6d69
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807d9da000
R13: dffffc0000000000 R14: 1ffff1100fb3b4d0 R15: ffff88807d9da680
FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2d82c000 CR3: 000000007e2a8000 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 92 d0 10 fb callq 0xfb10d0cb
39: 48 8b 14 24 mov (%rsp),%rdx
3d: 48 89 2b mov %rbp,(%rbx)


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Apr 30, 2023, 6:56:48 AM4/30/23
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: f48aeeaaa64c Linux 5.15.109
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=151ccb64280000
kernel config: https://syzkaller.appspot.com/x/.config?x=bef326567911c94a
dashboard link: https://syzkaller.appspot.com/bug?extid=42604e9406bbfdd83914
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16027508280000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14e637a0280000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/df269bfa2931/disk-f48aeeaa.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/e64d9fc93268/vmlinux-f48aeeaa.xz
kernel image: https://storage.googleapis.com/syzbot-assets/93441fa4b823/Image-f48aeeaa.gz.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+42604e...@syzkaller.appspotmail.com

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!
Unable to handle kernel paging request at virtual address dfff80000000021b
Mem abort info:
ESR = 0x0000000096000006
EC = 0x25: DABT (current EL), IL = 32 bits
SET = 0, FnV = 0
EA = 0, S1PTW = 0
FSC = 0x06: level 2 translation fault
Data abort info:
ISV = 0, ISS = 0x00000006
CM = 0, WnR = 0
[dfff80000000021b] address between user and kernel address ranges
Internal error: Oops: 96000006 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.15.109-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
pstate: 604000c5 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : ir_raw_event_store_with_filter+0x354/0x7ac drivers/media/rc/rc-ir-raw.c:186
lr : ir_raw_event_store drivers/media/rc/rc-ir-raw.c:83 [inline]
lr : ir_raw_event_store_with_filter+0x464/0x7ac drivers/media/rc/rc-ir-raw.c:185
sp : ffff8000080174e0
x29: ffff800008017500 x28: 0000000000000200 x27: 1fffe0001b4e7cd3
x26: dfff800000000000 x25: 0000000000000200 x24: 00000000000010d8
x23: 00000000000010d8 x22: 0000000000000080 x21: ffff8000080176a0
x20: ffff0000da73e698 x19: ffff0000da73e000 x18: 0000000000000102
x17: ff808000083357e4 x16: ffff800011940e2c x15: ffff8000083357e4
x14: 00000000ffffffff x13: ffffffffffffffff x12: 0000000000000100
x11: ff8080000832d28c x10: 0000000000000000 x9 : 9c96e8fa767d1d00
x8 : 000000000000021b x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff800008016b38 x4 : ffff8000149afc60 x3 : ffff80000854c204
x2 : 0000000000000001 x1 : 0000000000000101 x0 : 000000000000001e
Call trace:
ir_raw_event_store_with_filter+0x354/0x7ac drivers/media/rc/rc-ir-raw.c:186
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+0x5e8/0xd68 drivers/media/rc/streamzap.c:231
__usb_hcd_giveback_urb+0x2e0/0x518 drivers/usb/core/hcd.c:1670
usb_hcd_giveback_urb+0x108/0x41c drivers/usb/core/hcd.c:1753
dummy_timer+0x66c/0x26cc drivers/usb/gadget/udc/dummy_hcd.c:1987
call_timer_fn+0x19c/0x8f0 kernel/time/timer.c:1421
expire_timers kernel/time/timer.c:1466 [inline]
__run_timers+0x554/0x718 kernel/time/timer.c:1737
run_timer_softirq+0x7c/0x114 kernel/time/timer.c:1750
__do_softirq+0x344/0xe20 kernel/softirq.c:558
do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
invoke_softirq kernel/softirq.c:439 [inline]
__irq_exit_rcu+0x28c/0x534 kernel/softirq.c:636
irq_exit+0x14/0x88 kernel/softirq.c:660
handle_domain_irq+0xf4/0x178 kernel/irq/irqdesc.c:710
gic_handle_irq+0x78/0x1c8 drivers/irqchip/irq-gic-v3.c:757
call_on_irq_stack+0x2c/0x54 arch/arm64/kernel/entry.S:899
do_interrupt_handler+0x74/0x94 arch/arm64/kernel/entry-common.c:267
el1_interrupt+0x30/0x58 arch/arm64/kernel/entry-common.c:442
el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:458
el1h_64_irq+0x78/0x7c arch/arm64/kernel/entry.S:580
arch_local_irq_enable+0xc/0x18 arch/arm64/include/asm/irqflags.h:35
default_idle_call+0xcc/0x4a8 kernel/sched/idle.c:112
cpuidle_idle_call kernel/sched/idle.c:194 [inline]
do_idle+0x1d4/0x4dc kernel/sched/idle.c:306
cpu_startup_entry+0x24/0x28 kernel/sched/idle.c:403
secondary_start_kernel+0x240/0x298 arch/arm64/kernel/smp.c:265
__secondary_switched+0x94/0x98 arch/arm64/kernel/head.S:661
Code: 38fa6908 35001428 d343fee8 f94002b6 (387a6908)
---[ end trace b1ff1f9052740967 ]---
----------------
Code disassembly (best guess):
0: 38fa6908 ldrsb w8, [x8, x26]
4: 35001428 cbnz w8, 0x288
8: d343fee8 lsr x8, x23, #3
c: f94002b6 ldr x22, [x21]
* 10: 387a6908 ldrb w8, [x8, x26] <-- trapping instruction


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
Reply all
Reply to author
Forward
0 new messages