syzbot
BUG: unable to handle kernel paging request in fsg_common_set_num_buffers
Status:
upstream: reported C repro on 2026/09/08 12:35
Reported-by: syzbot+e9d8df1531a8580c1395@syzkaller.appspotmail.com
First crash: 4d22h, last: 4d21h
Sample crash report:
Mass Storage Function, version: 2009/09/11
LUN: removable file: (no medium)
Unable to handle kernel paging request at virtual address dfff800000000002
KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017]
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
[dfff800000000002] address between user and kernel address ranges
Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 4460 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/07/2026
pstate: 22400005 (nzCv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--)
pc : fsg_common_set_num_buffers+0x64/0x254 drivers/usb/gadget/function/f_mass_storage.c:2762
lr : kmalloc include/linux/slab.h:556 [inline]
lr : fsg_common_set_num_buffers+0x5c/0x254 drivers/usb/gadget/function/f_mass_storage.c:2762
sp : ffff8000214479b0
x29: ffff8000214479c0 x28: 0000000000000000 x27: ffff80000ddfb598
x26: ffff0000d5649800 x25: dfff800000000000 x24: dfff800000000000
x23: ffff700004288f44 x22: ffff0000d2ac8000 x21: ffff0000d1a97000
x20: 0000000000000010 x19: ffff0000d3120c08 x18: 0000000000000000
x17: 0000000000000000 x16: ffff800011ba0e90 x15: 000000000004ffff
x14: 0000000000000001 x13: 1ffff00002a74071 x12: ffff80000ddf845c
x11: ff0080000a977920 x10: 0000000000000003 x9 : ffff8000153042f0
x8 : 0000000000000002 x7 : fefefefefefefefe x6 : 0000000000000000
x5 : 00000000ffffffff x4 : 0000000000000cc0 x3 : 0000000000004000
x2 : 0000000000004000 x1 : ffff8000121f2440 x0 : ffff0000d2ac8000
Call trace:
kmalloc include/linux/slab.h:556 [inline]
fsg_common_set_num_buffers+0x64/0x254 drivers/usb/gadget/function/f_mass_storage.c:2762
fsg_opts_num_buffers_store+0x11c/0x1ac drivers/usb/gadget/function/f_mass_storage.c:3456
flush_write_buffer fs/configfs/file.c:207 [inline]
configfs_write_iter+0x260/0x338 fs/configfs/file.c:229
call_write_iter include/linux/fs.h:2271 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x3c8/0x7c8 fs/read_write.c:584
ksys_write+0x12c/0x228 fs/read_write.c:637
__do_sys_write fs/read_write.c:649 [inline]
__se_sys_write fs/read_write.c:646 [inline]
__arm64_sys_write+0x7c/0x90 fs/read_write.c:646
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140
do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204
el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
Code: f2fbfff9 96a6c239 d343fe88 aa0003f6 (38796908)
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
0: f2fbfff9 movk x25, #0xdfff, lsl #48
4: 96a6c239 bl 0xfffffffffa9b08e8
8: d343fe88 lsr x8, x20, #3
c: aa0003f6 mov x22, x0
* 10: 38796908 ldrb w8, [x8, x25] <-- trapping instruction
* Struck through repros no longer work on HEAD.