================================================================== BUG: KASAN: slab-out-of-bounds in crc_itu_t+0xd7/0xe0 lib/crc-itu-t.c:60 Read of size 1 at addr ffff888021f6b080 by task syz-executor243/5071 CPU: 1 PID: 5071 Comm: syz-executor243 Not tainted 6.7.0-rc7-syzkaller-00016-gf5837722ffec #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xc4/0x620 mm/kasan/report.c:475 kasan_report+0xda/0x110 mm/kasan/report.c:588 crc_itu_t+0xd7/0xe0 lib/crc-itu-t.c:60 udf_finalize_lvid+0xf2/0x1f0 fs/udf/super.c:1984 udf_sync_fs+0xea/0x150 fs/udf/super.c:2340 sync_filesystem+0x109/0x280 fs/sync.c:56 generic_shutdown_super+0x7e/0x3d0 fs/super.c:669 kill_block_super+0x3b/0x90 fs/super.c:1667 deactivate_locked_super+0xbc/0x1a0 fs/super.c:484 deactivate_super+0xde/0x100 fs/super.c:517 cleanup_mnt+0x222/0x450 fs/namespace.c:1256 task_work_run+0x14d/0x240 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x217/0x240 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x1e/0x60 kernel/entry/common.c:296 do_syscall_64+0x4d/0x110 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f5e46fd9647 Code: 09 00 48 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffe42f91e68 EFLAGS: 00000202 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000025117 RCX: 00007f5e46fd9647 RDX: 0000000000000000 RSI: 000000000000000a RDI: 00007ffe42f91f20 RBP: 00007ffe42f91f20 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000202 R12: 00007ffe42f92f90 R13: 00005555571216c0 R14: 431bde82d7b634db R15: 00007ffe42f92fb0 Allocated by task 4513: kasan_save_stack+0x33/0x50 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 __kasan_slab_alloc+0x81/0x90 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook mm/slab.h:763 [inline] slab_alloc_node mm/slab.c:3237 [inline] slab_alloc mm/slab.c:3246 [inline] __kmem_cache_alloc_lru mm/slab.c:3423 [inline] kmem_cache_alloc+0x159/0x360 mm/slab.c:3432 kmem_cache_zalloc include/linux/slab.h:711 [inline] lsm_inode_alloc security/security.c:633 [inline] security_inode_alloc+0x38/0x180 security/security.c:1494 inode_init_always+0xc2f/0xf50 fs/inode.c:232 alloc_inode+0x7a/0x220 fs/inode.c:268 iget_locked+0x1b3/0x700 fs/inode.c:1316 kernfs_get_inode+0x48/0x450 fs/kernfs/inode.c:251 kernfs_iop_lookup+0x1e9/0x330 fs/kernfs/dir.c:1193 lookup_open.isra.0+0x926/0x13b0 fs/namei.c:3455 open_last_lookups fs/namei.c:3546 [inline] path_openat+0x922/0x2c50 fs/namei.c:3776 do_filp_open+0x1de/0x430 fs/namei.c:3809 do_sys_openat2+0x176/0x1e0 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __x64_sys_openat+0x175/0x210 fs/open.c:1463 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b The buggy address belongs to the object at ffff888021f6b000 which belongs to the cache lsm_inode_cache of size 128 The buggy address is located 0 bytes to the right of allocated 128-byte region [ffff888021f6b000, ffff888021f6b080) The buggy address belongs to the physical page: page:ffffea000087dac0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x21f6b flags: 0xfff00000000800(slab|node=0|zone=1|lastcpupid=0x7ff) page_type: 0x15() raw: 00fff00000000800 ffff888140051a00 ffffea0000958190 ffffea00009829d0 raw: 0000000000000000 ffff888021f6b000 0000000100000015 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x242040(__GFP_IO|__GFP_NOWARN|__GFP_COMP|__GFP_THISNODE), pid 4513, tgid 4513 (udevadm), ts 43633194969, free_ts 43531418633 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2d0/0x350 mm/page_alloc.c:1537 prep_new_page mm/page_alloc.c:1544 [inline] get_page_from_freelist+0xa25/0x36d0 mm/page_alloc.c:3312 __alloc_pages+0x22e/0x2420 mm/page_alloc.c:4568 __alloc_pages_node include/linux/gfp.h:238 [inline] kmem_getpages mm/slab.c:1356 [inline] cache_grow_begin+0x99/0x3a0 mm/slab.c:2550 cache_alloc_refill+0x295/0x3b0 mm/slab.c:2923 ____cache_alloc mm/slab.c:2999 [inline] ____cache_alloc mm/slab.c:2982 [inline] __do_cache_alloc mm/slab.c:3182 [inline] slab_alloc_node mm/slab.c:3230 [inline] slab_alloc mm/slab.c:3246 [inline] __kmem_cache_alloc_lru mm/slab.c:3423 [inline] kmem_cache_alloc+0x307/0x360 mm/slab.c:3432 kmem_cache_zalloc include/linux/slab.h:711 [inline] lsm_inode_alloc security/security.c:633 [inline] security_inode_alloc+0x38/0x180 security/security.c:1494 inode_init_always+0xc2f/0xf50 fs/inode.c:232 alloc_inode+0x7a/0x220 fs/inode.c:268 iget_locked+0x1b3/0x700 fs/inode.c:1316 kernfs_get_inode+0x48/0x450 fs/kernfs/inode.c:251 kernfs_iop_lookup+0x1e9/0x330 fs/kernfs/dir.c:1193 lookup_open.isra.0+0x926/0x13b0 fs/namei.c:3455 open_last_lookups fs/namei.c:3546 [inline] path_openat+0x922/0x2c50 fs/namei.c:3776 do_filp_open+0x1de/0x430 fs/namei.c:3809 do_sys_openat2+0x176/0x1e0 fs/open.c:1437 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1137 [inline] free_unref_page_prepare+0x4fa/0xaa0 mm/page_alloc.c:2347 free_unref_page+0x33/0x3b0 mm/page_alloc.c:2487 slab_destroy mm/slab.c:1608 [inline] slabs_destroy+0x85/0xc0 mm/slab.c:1628 cache_flusharray mm/slab.c:3341 [inline] ___cache_free+0x2b7/0x420 mm/slab.c:3404 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x4c/0x1b0 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x18e/0x1d0 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x65/0x90 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook mm/slab.h:763 [inline] slab_alloc_node mm/slab.c:3237 [inline] __kmem_cache_alloc_node+0x163/0x460 mm/slab.c:3521 kmalloc_trace+0x25/0x60 mm/slab_common.c:1098 kmalloc include/linux/slab.h:600 [inline] inode_doinit_use_xattr+0x54/0x410 security/selinux/hooks.c:1354 inode_doinit_with_dentry+0x10c2/0x12c0 security/selinux/hooks.c:1548 selinux_d_instantiate+0x26/0x30 security/selinux/hooks.c:6278 security_d_instantiate+0x54/0xe0 security/security.c:3799 d_splice_alias+0x94/0xdf0 fs/dcache.c:3145 kernfs_iop_lookup+0x283/0x330 fs/kernfs/dir.c:1208 lookup_open.isra.0+0x926/0x13b0 fs/namei.c:3455 Memory state around the buggy address: ffff888021f6af80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888021f6b000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888021f6b080: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ^ ffff888021f6b100: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff888021f6b180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================