loop5: detected capacity change from 0 to 128 VFS: Found a Xenix FS (block size = 1024) on device loop5 ================================================================== BUG: KASAN: slab-out-of-bounds in sysv_new_inode+0x10c5/0x1270 fs/sysv/ialloc.c:153 Read of size 2 at addr ffff88802726f1ce by task syz.5.612/9613 CPU: 1 PID: 9613 Comm: syz.5.612 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xac/0x220 mm/kasan/report.c:468 kasan_report+0x117/0x150 mm/kasan/report.c:581 sysv_new_inode+0x10c5/0x1270 fs/sysv/ialloc.c:153 sysv_mknod+0x4e/0xe0 fs/sysv/namei.c:53 lookup_open fs/namei.c:3496 [inline] open_last_lookups fs/namei.c:3564 [inline] path_openat+0x1277/0x3190 fs/namei.c:3794 do_filp_open+0x1c5/0x3d0 fs/namei.c:3824 do_sys_openat2+0x12c/0x1c0 fs/open.c:1421 do_sys_open fs/open.c:1436 [inline] __do_sys_openat fs/open.c:1452 [inline] __se_sys_openat fs/open.c:1447 [inline] __x64_sys_openat+0x139/0x160 fs/open.c:1447 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f0f41d8f749 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f0f42c88038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f0f41fe5fa0 RCX: 00007f0f41d8f749 RDX: 000000000000275a RSI: 0000200000000080 RDI: ffffffffffffff9c RBP: 00007f0f41e13f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f0f41fe6038 R14: 00007f0f41fe5fa0 R15: 00007ffe9110c0c8 Allocated by task 1: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4e/0x70 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0x8f/0xa0 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:198 [inline] __do_kmalloc_node mm/slab_common.c:1007 [inline] __kmalloc_node+0xb4/0x230 mm/slab_common.c:1014 kmalloc_node include/linux/slab.h:620 [inline] kvmalloc_node+0x70/0x180 mm/util.c:617 kvmalloc include/linux/slab.h:738 [inline] kvzalloc include/linux/slab.h:746 [inline] v4l2_ctrl_new+0x9ff/0x1720 drivers/media/v4l2-core/v4l2-ctrls-core.c:1926 v4l2_ctrl_new_custom+0x534/0x770 drivers/media/v4l2-core/v4l2-ctrls-core.c:2036 vivid_create_controls+0x10b2/0x3430 drivers/media/test-drivers/vivid/vivid-ctrls.c:1730 vivid_create_instance drivers/media/test-drivers/vivid/vivid-core.c:1840 [inline] vivid_probe+0x3824/0x5ce0 drivers/media/test-drivers/vivid/vivid-core.c:2004 platform_probe+0x13b/0x1c0 drivers/base/platform.c:1404 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x25b/0xb40 drivers/base/dd.c:658 __driver_probe_device+0x18c/0x330 drivers/base/dd.c:800 driver_probe_device+0x4f/0x420 drivers/base/dd.c:830 __driver_attach+0x44e/0x6f0 drivers/base/dd.c:1216 bus_for_each_dev+0x22d/0x2a0 drivers/base/bus.c:370 bus_add_driver+0x340/0x640 drivers/base/bus.c:675 driver_register+0x23a/0x310 drivers/base/driver.c:246 vivid_init+0x3d/0x70 drivers/media/test-drivers/vivid/vivid-core.c:2131 do_one_initcall+0x1fd/0x750 init/main.c:1250 do_initcall_level+0x137/0x1f0 init/main.c:1312 do_initcalls+0x69/0xd0 init/main.c:1328 kernel_init_freeable+0x3d2/0x570 init/main.c:1565 kernel_init+0x1d/0x1c0 init/main.c:1455 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 The buggy address belongs to the object at ffff88802726f000 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 230 bytes to the right of allocated 232-byte region [ffff88802726f000, ffff88802726f0e8) The buggy address belongs to the physical page: page:ffffea00009c9b80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2726e head:ffffea00009c9b80 order:1 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000840 ffff888017841b40 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 1, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 13734395419, free_ts 0 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1cd/0x210 mm/page_alloc.c:1554 prep_new_page mm/page_alloc.c:1561 [inline] get_page_from_freelist+0x195c/0x19f0 mm/page_alloc.c:3191 __alloc_pages+0x1e3/0x460 mm/page_alloc.c:4457 alloc_page_interleave+0x24/0x1e0 mm/mempolicy.c:2120 alloc_slab_page+0x5d/0x170 mm/slub.c:1881 allocate_slab mm/slub.c:2028 [inline] new_slab+0x87/0x2e0 mm/slub.c:2081 ___slab_alloc+0xc6d/0x1300 mm/slub.c:3253 __slab_alloc mm/slub.c:3339 [inline] __slab_alloc_node mm/slub.c:3392 [inline] slab_alloc_node mm/slub.c:3485 [inline] __kmem_cache_alloc_node+0x1a2/0x260 mm/slub.c:3534 __do_kmalloc_node mm/slab_common.c:1006 [inline] __kmalloc_node+0xa4/0x230 mm/slab_common.c:1014 kmalloc_node include/linux/slab.h:620 [inline] kvmalloc_node+0x70/0x180 mm/util.c:617 kvmalloc include/linux/slab.h:738 [inline] kvzalloc include/linux/slab.h:746 [inline] v4l2_ctrl_new+0x9ff/0x1720 drivers/media/v4l2-core/v4l2-ctrls-core.c:1926 v4l2_ctrl_new_custom+0x534/0x770 drivers/media/v4l2-core/v4l2-ctrls-core.c:2036 vivid_create_controls+0xfaf/0x3430 drivers/media/test-drivers/vivid/vivid-ctrls.c:1717 vivid_create_instance drivers/media/test-drivers/vivid/vivid-core.c:1840 [inline] vivid_probe+0x3824/0x5ce0 drivers/media/test-drivers/vivid/vivid-core.c:2004 platform_probe+0x13b/0x1c0 drivers/base/platform.c:1404 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x25b/0xb40 drivers/base/dd.c:658 page_owner free stack trace missing Memory state around the buggy address: ffff88802726f080: 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc ffff88802726f100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88802726f180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88802726f200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88802726f280: 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc ==================================================================