================================================================== BUG: KASAN: global-out-of-bounds in mon_bin_flush+0x260/0x290 drivers/usb/mon/mon_bin.c:885 Read of size 4 at addr ffffffff8b0dbd44 by task syz-executor219/4958 CPU: 0 PID: 4958 Comm: syz-executor219 Not tainted 6.0.0-rc6-next-20220923-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:284 [inline] print_report+0x15e/0x45d mm/kasan/report.c:395 kasan_report+0xbb/0x1f0 mm/kasan/report.c:495 mon_bin_flush+0x260/0x290 drivers/usb/mon/mon_bin.c:885 mon_bin_ioctl+0xaab/0xcc0 drivers/usb/mon/mon_bin.c:1060 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fee94660069 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 00 00 90 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffff9c00048 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 00007fee94660069 RDX: 0000000000007fff RSI: 0000000000009208 RDI: 0000000000000004 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000092dbf R13: 00007ffff9c0006c R14: 00007ffff9c00080 R15: 00007ffff9c00070 The buggy address belongs to the variable: __func__.6+0x1c4/0x2c0 The buggy address belongs to the physical page: page:ffffea00002c36c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xb0db flags: 0xfff00000001000(reserved|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000001000 ffffea00002c36c8 ffffea00002c36c8 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not present (never set?) Memory state around the buggy address: ffffffff8b0dbc00: 00 01 f9 f9 f9 f9 f9 f9 05 f9 f9 f9 f9 f9 f9 f9 ffffffff8b0dbc80: 04 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 >ffffffff8b0dbd00: 00 01 f9 f9 f9 f9 f9 f9 06 f9 f9 f9 f9 f9 f9 f9 ^ ffffffff8b0dbd80: 06 f9 f9 f9 f9 f9 f9 f9 05 f9 f9 f9 f9 f9 f9 f9 ffffffff8b0dbe00: 00 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00 ==================================================================