loop0: detected capacity change from 0 to 2048 UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) ================================================================== BUG: KASAN: slab-out-of-bounds in udf_write_aext+0x5e9/0x7a0 fs/udf/inode.c:2100 Write of size 4 at addr ffff888147215ff0 by task syz-executor388/3504 CPU: 0 PID: 3504 Comm: syz-executor388 Not tainted 5.15.110-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 print_address_description+0x63/0x3b0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0x16b/0x1c0 mm/kasan/report.c:451 udf_write_aext+0x5e9/0x7a0 fs/udf/inode.c:2100 udf_add_entry+0x17b7/0x3350 fs/udf/namei.c:482 udf_mkdir+0x1a8/0xaa0 fs/udf/namei.c:681 vfs_mkdir+0x419/0x640 fs/namei.c:3994 do_mkdirat+0x260/0x520 fs/namei.c:4019 __do_sys_mkdirat fs/namei.c:4034 [inline] __se_sys_mkdirat fs/namei.c:4032 [inline] __x64_sys_mkdirat+0x85/0x90 fs/namei.c:4032 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f4f5ba74bd9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 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:00007fff8dba01f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f4f5ba74bd9 RDX: 0000000000000000 RSI: 0000000020000280 RDI: 00000000ffffff9c RBP: 00007f4f5ba341e0 R08: 0000000000000bfc R09: 0000000000000000 R10: 00007fff8dba00c0 R11: 0000000000000246 R12: 00007f4f5ba34270 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 1: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] ____kasan_kmalloc+0xba/0xf0 mm/kasan/common.c:513 kasan_kmalloc include/linux/kasan.h:264 [inline] kmem_cache_alloc_trace+0x143/0x290 mm/slub.c:3247 kmalloc include/linux/slab.h:591 [inline] kzalloc include/linux/slab.h:721 [inline] crtc_or_fake_commit+0xeb/0x300 drivers/gpu/drm/drm_atomic_helper.c:2037 drm_atomic_helper_setup_commit+0xef7/0x12b0 drivers/gpu/drm/drm_atomic_helper.c:2191 drm_atomic_helper_commit+0x5d/0x750 drivers/gpu/drm/drm_atomic_helper.c:1844 drm_client_modeset_commit_atomic+0x664/0x7b0 drivers/gpu/drm/drm_client_modeset.c:1043 drm_client_modeset_commit_locked+0xdc/0x510 drivers/gpu/drm/drm_client_modeset.c:1146 pan_display_atomic drivers/gpu/drm/drm_fb_helper.c:1431 [inline] drm_fb_helper_pan_display+0x375/0xc00 drivers/gpu/drm/drm_fb_helper.c:1491 fb_pan_display+0x3ac/0x680 drivers/video/fbdev/core/fbmem.c:927 bit_update_start+0x49/0x1c0 drivers/video/fbdev/core/bitblit.c:387 fbcon_switch+0x13e6/0x21b0 drivers/video/fbdev/core/fbcon.c:2180 redraw_screen+0x538/0xe70 drivers/tty/vt/vt.c:1021 do_bind_con_driver+0xdb9/0xf40 drivers/tty/vt/vt.c:3719 do_take_over_console+0x5d7/0x730 drivers/tty/vt/vt.c:4274 do_fbcon_takeover+0x12f/0x230 drivers/video/fbdev/core/fbcon.c:554 do_register_framebuffer drivers/video/fbdev/core/fbmem.c:1698 [inline] register_framebuffer+0x770/0xa20 drivers/video/fbdev/core/fbmem.c:1924 __drm_fb_helper_initial_config_and_unlock+0x144a/0x1e30 drivers/gpu/drm/drm_fb_helper.c:1870 drm_fb_helper_initial_config drivers/gpu/drm/drm_fb_helper.c:1936 [inline] drm_fbdev_client_hotplug+0x683/0x800 drivers/gpu/drm/drm_fb_helper.c:2441 drm_fbdev_generic_setup+0x191/0x410 drivers/gpu/drm/drm_fb_helper.c:2528 vkms_create drivers/gpu/drm/vkms/vkms_drv.c:209 [inline] vkms_init+0x597/0x6c6 drivers/gpu/drm/vkms/vkms_drv.c:235 do_one_initcall+0x22b/0x7a0 init/main.c:1306 do_initcall_level+0x157/0x207 init/main.c:1379 do_initcalls+0x49/0x86 init/main.c:1395 kernel_init_freeable+0x43c/0x5c5 init/main.c:1619 kernel_init+0x19/0x290 init/main.c:1510 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 The buggy address belongs to the object at ffff888147215c00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 496 bytes to the right of 512-byte region [ffff888147215c00, ffff888147215e00) The buggy address belongs to the page: page:ffffea00051c8500 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x147214 head:ffffea00051c8500 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x57ff00000010200(slab|head|node=1|zone=2|lastcpupid=0x7ff) raw: 057ff00000010200 dead000000000100 dead000000000122 ffff888011c41c80 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, ts 5880181811, free_ts 0 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x322a/0x33c0 mm/page_alloc.c:4159 __alloc_pages+0x272/0x700 mm/page_alloc.c:5421 alloc_page_interleave+0x22/0x1c0 mm/mempolicy.c:2031 alloc_slab_page mm/slub.c:1775 [inline] allocate_slab mm/slub.c:1912 [inline] new_slab+0xbb/0x4b0 mm/slub.c:1975 ___slab_alloc+0x6f6/0xe10 mm/slub.c:3008 __slab_alloc mm/slub.c:3095 [inline] slab_alloc_node mm/slub.c:3186 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc_trace+0x1a0/0x290 mm/slub.c:3245 kmalloc include/linux/slab.h:591 [inline] kzalloc include/linux/slab.h:721 [inline] crtc_or_fake_commit+0xeb/0x300 drivers/gpu/drm/drm_atomic_helper.c:2037 drm_atomic_helper_setup_commit+0xef7/0x12b0 drivers/gpu/drm/drm_atomic_helper.c:2191 drm_atomic_helper_commit+0x5d/0x750 drivers/gpu/drm/drm_atomic_helper.c:1844 drm_client_modeset_commit_atomic+0x664/0x7b0 drivers/gpu/drm/drm_client_modeset.c:1043 drm_client_modeset_commit_locked+0xdc/0x510 drivers/gpu/drm/drm_client_modeset.c:1146 pan_display_atomic drivers/gpu/drm/drm_fb_helper.c:1431 [inline] drm_fb_helper_pan_display+0x375/0xc00 drivers/gpu/drm/drm_fb_helper.c:1491 fb_pan_display+0x3ac/0x680 drivers/video/fbdev/core/fbmem.c:927 bit_update_start+0x49/0x1c0 drivers/video/fbdev/core/bitblit.c:387 fbcon_switch+0x13e6/0x21b0 drivers/video/fbdev/core/fbcon.c:2180 redraw_screen+0x538/0xe70 drivers/tty/vt/vt.c:1021 page_owner free stack trace missing Memory state around the buggy address: ffff888147215e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888147215f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888147215f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888147216000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888147216080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================