loop3: detected capacity change from 0 to 2048 UDF-fs: INFO Mounting volume 'LiuxUDF', timestamp 2022/11/22 14:59 (1000) ================================================================== BUG: KASAN: slab-out-of-bounds in udf_write_aext+0x4c0/0x668 fs/udf/inode.c:2105 Write of size 4 at addr ffff0000d256f3f0 by task syz.3.161/5224 CPU: 0 PID: 5224 Comm: syz.3.161 Not tainted 6.1.110-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:284 [inline] print_report+0x174/0x4c0 mm/kasan/report.c:395 kasan_report+0xd4/0x130 mm/kasan/report.c:495 __asan_report_store_n_noabort+0x28/0x34 mm/kasan/report_generic.c:367 udf_write_aext+0x4c0/0x668 fs/udf/inode.c:2105 udf_add_entry+0x11e0/0x28b0 fs/udf/namei.c:482 udf_mkdir+0x158/0x7e0 fs/udf/namei.c:681 vfs_mkdir+0x334/0x4e4 fs/namei.c:4108 do_mkdirat+0x220/0x510 fs/namei.c:4133 __do_sys_mkdirat fs/namei.c:4148 [inline] __se_sys_mkdirat fs/namei.c:4146 [inline] __arm64_sys_mkdirat+0x90/0xa8 fs/namei.c:4146 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x168 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 Allocated by task 1: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x80 mm/kasan/common.c:52 kasan_save_alloc_info+0x24/0x30 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0xac/0xc4 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:211 [inline] kmalloc_trace+0x7c/0x94 mm/slab_common.c:1031 kmalloc include/linux/slab.h:557 [inline] kzalloc include/linux/slab.h:693 [inline] device_private_init drivers/base/core.c:3536 [inline] device_add+0xc4/0xef4 drivers/base/core.c:3586 device_create_groups_vargs+0x1e0/0x278 drivers/base/core.c:4386 device_create+0x100/0x154 drivers/base/core.c:4428 mon_bin_add+0xb8/0x12c drivers/usb/mon/mon_bin.c:1369 mon_bus_init+0x144/0x26c drivers/usb/mon/mon_main.c:302 mon_bus_add drivers/usb/mon/mon_main.c:199 [inline] mon_notify+0x108/0x3e0 drivers/usb/mon/mon_main.c:230 notifier_call_chain kernel/notifier.c:87 [inline] blocking_notifier_call_chain+0xf0/0x198 kernel/notifier.c:382 usb_notify_add_bus+0x2c/0x3c drivers/usb/core/notify.c:62 usb_register_bus drivers/usb/core/hcd.c:935 [inline] usb_add_hcd+0x3e4/0xf90 drivers/usb/core/hcd.c:2881 vhci_hcd_probe+0x1c0/0x368 drivers/usb/usbip/vhci_hcd.c:1379 platform_probe+0x148/0x1c0 drivers/base/platform.c:1400 really_probe+0x394/0xacc drivers/base/dd.c:639 __driver_probe_device+0x194/0x3b4 drivers/base/dd.c:785 driver_probe_device+0x78/0x330 drivers/base/dd.c:815 __device_attach_driver+0x2a8/0x4f4 drivers/base/dd.c:943 bus_for_each_drv+0x158/0x1e0 drivers/base/bus.c:427 __device_attach+0x2f0/0x480 drivers/base/dd.c:1015 device_initial_probe+0x24/0x34 drivers/base/dd.c:1064 bus_probe_device+0xbc/0x1c8 drivers/base/bus.c:487 device_add+0xae0/0xef4 drivers/base/core.c:3692 platform_device_add+0x3f8/0x708 drivers/base/platform.c:717 vhci_hcd_init+0x37c/0x49c drivers/usb/usbip/vhci_hcd.c:1549 do_one_initcall+0x260/0xacc init/main.c:1298 do_initcall_level+0x154/0x214 init/main.c:1371 do_initcalls+0x58/0xac init/main.c:1387 do_basic_setup+0x8c/0xa0 init/main.c:1406 kernel_init_freeable+0x3a4/0x528 init/main.c:1626 kernel_init+0x24/0x29c init/main.c:1514 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:864 The buggy address belongs to the object at ffff0000d256f000 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 496 bytes to the right of 512-byte region [ffff0000d256f000, ffff0000d256f200) The buggy address belongs to the physical page: page:00000000bc297517 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11256c head:00000000bc297517 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 dead000000000100 dead000000000122 ffff0000c0002600 raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000d256f280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000d256f300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff0000d256f380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff0000d256f400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000d256f480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================