LUN: removable file: (no medium) Oops: general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017] CPU: 0 UID: 0 PID: 5867 Comm: syz.1.18 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:fsg_common_set_num_buffers+0x61/0x2c0 drivers/usb/gadget/function/f_mass_storage.c:2762 Code: ab 01 00 00 49 89 c6 49 bd 00 00 00 00 00 fc ff df bf 00 40 00 00 be c0 0c 00 00 e8 f9 e7 5b fa 48 89 c3 4c 89 f0 48 c1 e8 03 <42> 80 3c 28 00 74 08 4c 89 f7 e8 90 ae 67 fa 49 89 1e 48 85 db 0f RSP: 0018:ffffc90005267b50 EFLAGS: 00010202 RAX: 0000000000000002 RBX: ffff888032eb0000 RCX: 8000000000000001 RDX: 0000000000004000 RSI: ffffffff8c6cb160 RDI: ffffffff8c6cb120 RBP: ffffc90005267c48 R08: 0000000000000cc0 R09: 00000000ffffffff R10: ffffed10065d6800 R11: ffffffff8ed5ca60 R12: 0000000000000000 R13: dffffc0000000000 R14: 0000000000000010 R15: ffff888034435800 FS: 00007f75779476c0(0000) GS:ffff888124cf8000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c415f76 CR3: 0000000074dfe000 CR4: 00000000003526f0 Call Trace: fsg_opts_num_buffers_store+0x13d/0x1c0 drivers/usb/gadget/function/f_mass_storage.c:3451 flush_write_buffer fs/configfs/file.c:207 [inline] configfs_write_iter+0x337/0x430 fs/configfs/file.c:229 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x612/0xba0 fs/read_write.c:687 ksys_write+0x150/0x270 fs/read_write.c:739 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f757699e0d9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7577947028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f7576c25fa0 RCX: 00007f757699e0d9 RDX: 0000000000000002 RSI: 0000200000000000 RDI: 0000000000000003 RBP: 00007f7576a35024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f7576c26038 R14: 00007f7576c25fa0 R15: 00007fffd21d6788 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:fsg_common_set_num_buffers+0x61/0x2c0 drivers/usb/gadget/function/f_mass_storage.c:2762 Code: ab 01 00 00 49 89 c6 49 bd 00 00 00 00 00 fc ff df bf 00 40 00 00 be c0 0c 00 00 e8 f9 e7 5b fa 48 89 c3 4c 89 f0 48 c1 e8 03 <42> 80 3c 28 00 74 08 4c 89 f7 e8 90 ae 67 fa 49 89 1e 48 85 db 0f RSP: 0018:ffffc90005267b50 EFLAGS: 00010202 RAX: 0000000000000002 RBX: ffff888032eb0000 RCX: 8000000000000001 RDX: 0000000000004000 RSI: ffffffff8c6cb160 RDI: ffffffff8c6cb120 RBP: ffffc90005267c48 R08: 0000000000000cc0 R09: 00000000ffffffff R10: ffffed10065d6800 R11: ffffffff8ed5ca60 R12: 0000000000000000 R13: dffffc0000000000 R14: 0000000000000010 R15: ffff888034435800 FS: 00007f75779476c0(0000) GS:ffff888124cf8000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f75769eb7c0 CR3: 0000000074dfe000 CR4: 00000000003526f0 ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 00 00 add %al,(%rax) 2: 49 89 c6 mov %rax,%r14 5: 49 bd 00 00 00 00 00 movabs $0xdffffc0000000000,%r13 c: fc ff df f: bf 00 40 00 00 mov $0x4000,%edi 14: be c0 0c 00 00 mov $0xcc0,%esi 19: e8 f9 e7 5b fa call 0xfa5be817 1e: 48 89 c3 mov %rax,%rbx 21: 4c 89 f0 mov %r14,%rax 24: 48 c1 e8 03 shr $0x3,%rax * 28: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) <-- trapping instruction 2d: 74 08 je 0x37 2f: 4c 89 f7 mov %r14,%rdi 32: e8 90 ae 67 fa call 0xfa67aec7 37: 49 89 1e mov %rbx,(%r14) 3a: 48 85 db test %rbx,%rbx 3d: 0f .byte 0xf