UDF-fs: error (device loop0): udf_process_sequence: Primary Volume Descriptor not found! UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) ================================================================== BUG: KASAN: slab-out-of-bounds in udf_write_aext+0x7e9/0x8f0 fs/udf/inode.c:2088 Write of size 4 at addr ffff888021b1eff0 by task syz-executor208/5066 CPU: 0 PID: 5066 Comm: syz-executor208 Not tainted 6.2.0-rc8-syzkaller-00134-g38f8ccde04a3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:306 [inline] print_report+0x15e/0x45d mm/kasan/report.c:417 kasan_report+0xbf/0x1f0 mm/kasan/report.c:517 udf_write_aext+0x7e9/0x8f0 fs/udf/inode.c:2088 udf_add_entry+0xd03/0x2ac0 fs/udf/namei.c:482 udf_mkdir+0x149/0x650 fs/udf/namei.c:681 vfs_mkdir+0x48d/0x740 fs/namei.c:4036 do_mkdirat+0x27b/0x2f0 fs/namei.c:4061 __do_sys_mkdirat fs/namei.c:4076 [inline] __se_sys_mkdirat fs/namei.c:4074 [inline] __x64_sys_mkdirat+0x119/0x170 fs/namei.c:4074 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f3c6799e1b9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 81 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:00007ffea6a02a78 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f3c67a13720 RCX: 00007f3c6799e1b9 RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000000000004 RBP: 0000000000000001 R08: 001c00000000000c R09: 001c00000000000c R10: 0000000000000a47 R11: 0000000000000246 R12: 0000000000000004 R13: 0000000000000003 R14: 00007ffea6a02a97 R15: 00007ffea6a02a9a Allocated by task 1: kasan_save_stack+0x22/0x40 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] ____kasan_kmalloc mm/kasan/common.c:333 [inline] __kasan_kmalloc+0xa5/0xb0 mm/kasan/common.c:383 kmalloc include/linux/slab.h:580 [inline] kzalloc include/linux/slab.h:720 [inline] device_private_init drivers/base/core.c:3323 [inline] device_add+0x116c/0x1e90 drivers/base/core.c:3373 device_create_groups_vargs+0x203/0x280 drivers/base/core.c:4156 device_create+0xe3/0x120 drivers/base/core.c:4198 mon_bin_add+0xbb/0x160 drivers/usb/mon/mon_bin.c:1364 mon_bus_init+0x18e/0x320 drivers/usb/mon/mon_main.c:302 mon_bus_add drivers/usb/mon/mon_main.c:199 [inline] mon_notify+0x330/0x490 drivers/usb/mon/mon_main.c:230 notifier_call_chain+0xb5/0x200 kernel/notifier.c:87 blocking_notifier_call_chain kernel/notifier.c:382 [inline] blocking_notifier_call_chain+0x6b/0xa0 kernel/notifier.c:370 usb_register_bus drivers/usb/core/hcd.c:935 [inline] usb_add_hcd.cold+0x3bb/0x13a1 drivers/usb/core/hcd.c:2877 vhci_hcd_probe+0x14f/0x3a0 drivers/usb/usbip/vhci_hcd.c:1362 platform_probe+0x100/0x1f0 drivers/base/platform.c:1400 call_driver_probe drivers/base/dd.c:560 [inline] really_probe+0x249/0xb90 drivers/base/dd.c:639 __driver_probe_device+0x1df/0x4d0 drivers/base/dd.c:778 driver_probe_device+0x4c/0x1a0 drivers/base/dd.c:808 __device_attach_driver+0x1d4/0x2e0 drivers/base/dd.c:936 bus_for_each_drv+0x163/0x1e0 drivers/base/bus.c:427 __device_attach+0x1e4/0x530 drivers/base/dd.c:1008 bus_probe_device+0x1e8/0x2a0 drivers/base/bus.c:487 device_add+0xbd9/0x1e90 drivers/base/core.c:3479 platform_device_add+0x362/0x820 drivers/base/platform.c:717 vhci_hcd_init+0x345/0x489 drivers/usb/usbip/vhci_hcd.c:1546 do_one_initcall+0x141/0x790 init/main.c:1306 do_initcall_level init/main.c:1379 [inline] do_initcalls init/main.c:1395 [inline] do_basic_setup init/main.c:1414 [inline] kernel_init_freeable+0x6f9/0x782 init/main.c:1634 kernel_init+0x1e/0x1d0 init/main.c:1522 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 The buggy address belongs to the object at ffff888021b1ec00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 496 bytes to the right of 512-byte region [ffff888021b1ec00, ffff888021b1ee00) The buggy address belongs to the physical page: page:ffffea000086c700 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x21b1c head:ffffea000086c700 order:2 compound_mapcount:0 subpages_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffff888012441c80 dead000000000100 dead000000000122 raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 6483224547, free_ts 0 prep_new_page mm/page_alloc.c:2531 [inline] get_page_from_freelist+0x119c/0x2ce0 mm/page_alloc.c:4283 __alloc_pages+0x1cb/0x5b0 mm/page_alloc.c:5549 alloc_page_interleave+0x1e/0x200 mm/mempolicy.c:2120 alloc_pages+0x233/0x270 mm/mempolicy.c:2282 alloc_slab_page mm/slub.c:1851 [inline] allocate_slab+0x25f/0x350 mm/slub.c:1998 new_slab mm/slub.c:2051 [inline] ___slab_alloc+0xa91/0x1400 mm/slub.c:3193 __slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3292 __slab_alloc_node mm/slub.c:3345 [inline] slab_alloc_node mm/slub.c:3442 [inline] __kmem_cache_alloc_node+0x1a4/0x430 mm/slub.c:3491 kmalloc_trace+0x26/0x60 mm/slab_common.c:1062 kmalloc include/linux/slab.h:580 [inline] kzalloc include/linux/slab.h:720 [inline] device_private_init drivers/base/core.c:3323 [inline] device_add+0x116c/0x1e90 drivers/base/core.c:3373 usb_hub_create_port_device+0x3b6/0xd70 drivers/usb/core/port.c:702 hub_configure drivers/usb/core/hub.c:1662 [inline] hub_probe.cold+0x2534/0x2aa3 drivers/usb/core/hub.c:1899 usb_probe_interface+0x30f/0x7f0 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:560 [inline] really_probe+0x249/0xb90 drivers/base/dd.c:639 __driver_probe_device+0x1df/0x4d0 drivers/base/dd.c:778 driver_probe_device+0x4c/0x1a0 drivers/base/dd.c:808 page_owner free stack trace missing Memory state around the buggy address: ffff888021b1ee80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888021b1ef00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888021b1ef80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888021b1f000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888021b1f080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================