LUN: removable file: (no medium) Unable to handle kernel NULL pointer dereference at virtual address 0000000000000010 Mem abort info: ESR = 0x0000000096000046 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 = 0x00000046, ISS2 = 0x00000000 CM = 0, WnR = 1, TnD = 0, TagAccess = 0 GCS = 0, Overlay = 0, DirtyBit = 0 user pgtable: 4k pages, 52-bit VAs, pgdp=00000000463f8e00 [0000000000000010] pgd=080000004782d403, p4d=080000005cd08403, pud=080000005cd62403, pmd=0000000000000000 Internal error: Oops: 0000000096000046 [#1] SMP Modules linked in: CPU: 0 UID: 0 PID: 31927 Comm: syz.1.9300 Tainted: G W L syzkaller #0 PREEMPT Tainted: [W]=WARN, [L]=SOFTLOCKUP Hardware name: linux,dummy-virt (DT) pstate: 61402009 (nZCv daif +PAN -UAO -TCO +DIT -SSBS BTYPE=--) pc : fsg_common_set_num_buffers+0x6c/0x120 drivers/usb/gadget/function/f_mass_storage.c:2762 lr : _kmalloc_noprof include/linux/slab.h:988 [inline] lr : fsg_common_set_num_buffers+0x6c/0x120 drivers/usb/gadget/function/f_mass_storage.c:2762 sp : ffff8000888c3c40 x29: ffff8000888c3c40 x28: f7f0000006285500 x27: 0000000000000000 x26: 0000000000000000 x25: 0000000000000030 x24: f4f0000006760400 x23: 0000000000000000 x22: 0000000000000010 x21: 00000000ffffffff x20: 0000002fffffffe0 x19: 0000000000000010 x18: 0000000000000000 x17: 0000000000000000 x16: 0000000000000000 x15: 0000000020000300 x14: 0000000000000000 x13: 0000000000064c98 x12: fff000007f9edc10 x11: fff000007f9edbf0 x10: ffffc1ffc025c808 x9 : 0000000000000000 x8 : f3f0000027940000 x7 : 0000000000000000 x6 : 0000000000000040 x5 : 0000000000000004 x4 : 0000000000000040 x3 : 0000000000000000 x2 : fef0000027940000 x1 : fef0000027940000 x0 : f3f000002793c000 Call trace: _kmalloc_noprof include/linux/slab.h:988 [inline] (P) fsg_common_set_num_buffers+0x6c/0x120 drivers/usb/gadget/function/f_mass_storage.c:2762 (P) fsg_opts_num_buffers_store+0xbc/0xd0 drivers/usb/gadget/function/f_mass_storage.c:3451 flush_write_buffer fs/configfs/file.c:207 [inline] configfs_write_iter+0xc4/0x128 fs/configfs/file.c:229 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x244/0x36c fs/read_write.c:687 ksys_write+0x70/0x108 fs/read_write.c:739 __do_sys_write fs/read_write.c:750 [inline] __se_sys_write fs/read_write.c:747 [inline] __arm64_sys_write+0x18/0x24 fs/read_write.c:747 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x54/0x10c arch/arm64/kernel/syscall.c:49 el0_svc_common.constprop.0+0x40/0xe0 arch/arm64/kernel/syscall.c:121 do_el0_svc+0x1c/0x34 arch/arm64/kernel/syscall.c:140 el0_svc+0x38/0x1fc arch/arm64/kernel/entry-common.c:758 el0t_64_sync_handler+0xa0/0xe4 arch/arm64/kernel/entry-common.c:777 el0t_64_sync+0x1a4/0x1a8 arch/arm64/kernel/entry.S:590 Code: f81e0273 52819801 d2880000 97c3ac31 (f9000260) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: f81e0273 stur x19, [x19, #-32] 4: 52819801 mov w1, #0xcc0 // #3264 8: d2880000 mov x0, #0x4000 // #16384 c: 97c3ac31 bl 0xffffffffff0eb0d0 * 10: f9000260 str x0, [x19] <-- trapping instruction