ci2 starts bisection 2023-03-25 02:07:54.761409385 +0000 UTC m=+41322.759322233 bisecting fixing commit since 5448b2fda85f2d90de03f053226f721ba2f7e731 building syzkaller on 9f1e2cb341151afb58bc3b8551b89b52f921b61c ensuring issue is reproducible on original commit 5448b2fda85f2d90de03f053226f721ba2f7e731 testing commit 5448b2fda85f2d90de03f053226f721ba2f7e731 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: d0ca6c9998c53b0c8145b74738a766c678147f26ae5a0ffca473285ffbcd8efc run #0: crashed: KASAN: use-after-free Read in ext4_group_desc_csum run #1: crashed: KASAN: use-after-free Read in ext4_group_desc_csum run #2: crashed: KASAN: use-after-free Read in ext4_group_desc_csum run #3: crashed: KASAN: use-after-free Read in ext4_group_desc_csum run #4: crashed: KASAN: use-after-free Read in ext4_group_desc_csum run #5: crashed: KASAN: slab-out-of-bounds Read in ext4_group_desc_csum run #6: crashed: KASAN: slab-out-of-bounds Read in ext4_group_desc_csum run #7: crashed: KASAN: use-after-free Read in ext4_group_desc_csum run #8: crashed: KASAN: slab-out-of-bounds Read in ext4_group_desc_csum run #9: crashed: KASAN: slab-out-of-bounds Read in ext4_group_desc_csum run #10: crashed: KASAN: slab-out-of-bounds Read in ext4_group_desc_csum run #11: crashed: KASAN: use-after-free Read in ext4_group_desc_csum run #12: crashed: KASAN: use-after-free Read in ext4_group_desc_csum run #13: crashed: KASAN: use-after-free Read in ext4_group_desc_csum run #14: crashed: KASAN: slab-out-of-bounds Read in ext4_group_desc_csum run #15: crashed: KASAN: slab-out-of-bounds Read in ext4_group_desc_csum run #16: crashed: KASAN: use-after-free Read in ext4_group_desc_csum run #17: crashed: KASAN: slab-out-of-bounds Read in ext4_group_desc_csum run #18: crashed: KASAN: use-after-free Read in ext4_group_desc_csum run #19: crashed: KASAN: slab-out-of-bounds Read in ext4_group_desc_csum testing current HEAD 5448b2fda85f2d90de03f053226f721ba2f7e731 testing commit 5448b2fda85f2d90de03f053226f721ba2f7e731 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 2ea288a1f0c95c4547fdc9dfa757aa094e25e3854c31c1635c9075417c87637a run #0: crashed: KASAN: use-after-free Read in ext4_group_desc_csum run #1: crashed: KASAN: use-after-free Read in ext4_group_desc_csum run #2: crashed: KASAN: use-after-free Read in ext4_group_desc_csum run #3: crashed: KASAN: use-after-free Read in ext4_group_desc_csum run #4: crashed: KASAN: slab-out-of-bounds Read in ext4_group_desc_csum run #5: crashed: KASAN: use-after-free Read in ext4_group_desc_csum run #6: crashed: KASAN: slab-out-of-bounds Read in ext4_group_desc_csum run #7: crashed: KASAN: use-after-free Read in ext4_group_desc_csum run #8: crashed: KASAN: use-after-free Read in ext4_group_desc_csum run #9: crashed: KASAN: slab-out-of-bounds Read in ext4_group_desc_csum revisions tested: 2, total time: 16m14.907120834s (build: 9m28.658178041s, test: 5m35.117580831s) the crash still happens on HEAD commit msg: Merge 5.15.94 into android13-5.15-lts crash: KASAN: slab-out-of-bounds Read in ext4_group_desc_csum ================================================================== BUG: KASAN: slab-out-of-bounds in crc16+0x1d1/0x250 lib/crc16.c:58 Read of size 1 at addr ffff888122d36088 by task syz-executor.0/387 CPU: 0 PID: 387 Comm: syz-executor.0 Not tainted 5.15.94-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x105/0x148 lib/dump_stack.c:106 print_address_description+0x87/0x3b0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report+0x179/0x1c0 mm/kasan/report.c:444 __asan_report_load1_noabort+0x14/0x20 mm/kasan/report_generic.c:306 crc16+0x1d1/0x250 lib/crc16.c:58 ext4_group_desc_csum+0x78a/0xa70 fs/ext4/super.c:2840 ext4_group_desc_csum_set+0x17d/0x210 fs/ext4/super.c:2863 ext4_free_blocks+0x15e4/0x24e0 fs/ext4/mballoc.c:6113 ext4_remove_blocks fs/ext4/extents.c:2525 [inline] ext4_ext_rm_leaf fs/ext4/extents.c:2709 [inline] ext4_ext_remove_space+0x1e12/0x44d0 fs/ext4/extents.c:2957 ext4_ext_truncate+0x15c/0x1c0 fs/ext4/extents.c:4419 ext4_truncate+0x878/0xc30 fs/ext4/inode.c:4276 ext4_evict_inode+0xb2e/0x1130 fs/ext4/inode.c:290 evict+0x29c/0x5a0 fs/inode.c:587 iput_final fs/inode.c:1663 [inline] iput+0x483/0x5d0 fs/inode.c:1689 do_unlinkat+0x499/0x850 fs/namei.c:4228 __do_sys_unlink fs/namei.c:4269 [inline] __se_sys_unlink fs/namei.c:4267 [inline] __x64_sys_unlink+0x44/0x50 fs/namei.c:4267 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:0x7fbfe17220f9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fbfe1295168 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 00007fbfe1841f80 RCX: 00007fbfe17220f9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000200 RBP: 00007fbfe177dae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdb6cb0aff R14: 00007fbfe1295300 R15: 0000000000022000 Allocated by task 387: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:433 [inline] __kasan_slab_alloc+0xb1/0xe0 mm/kasan/common.c:466 kasan_slab_alloc include/linux/kasan.h:217 [inline] slab_post_alloc_hook+0x53/0x2c0 mm/slab.h:550 slab_alloc_node mm/slub.c:3238 [inline] slab_alloc mm/slub.c:3246 [inline] kmem_cache_alloc+0xf5/0x200 mm/slub.c:3251 kmem_cache_zalloc include/linux/slab.h:728 [inline] __kernfs_new_node+0xd1/0x600 fs/kernfs/dir.c:593 kernfs_new_node+0x8f/0x140 fs/kernfs/dir.c:655 __kernfs_create_file+0x27/0x200 fs/kernfs/file.c:985 sysfs_add_file_mode_ns+0x241/0x2d0 fs/sysfs/file.c:317 create_files fs/sysfs/group.c:64 [inline] internal_create_group+0x5aa/0xe00 fs/sysfs/group.c:149 internal_create_groups fs/sysfs/group.c:189 [inline] sysfs_create_groups+0x67/0xe0 fs/sysfs/group.c:215 create_dir lib/kobject.c:100 [inline] kobject_add_internal+0x64d/0x9e0 lib/kobject.c:255 kobject_add_varg lib/kobject.c:390 [inline] kobject_init_and_add+0x100/0x160 lib/kobject.c:473 ext4_register_sysfs+0xa9/0x270 fs/ext4/sysfs.c:524 ext4_fill_super+0x7922/0x85d0 fs/ext4/super.c:4938 mount_bdev+0x22c/0x330 fs/super.c:1369 ext4_mount+0x10/0x20 fs/ext4/super.c:6564 legacy_get_tree+0xeb/0x180 fs/fs_context.c:610 vfs_get_tree+0x87/0x250 fs/super.c:1499 do_new_mount+0x1e1/0x930 fs/namespace.c:2994 path_mount+0x612/0xc20 fs/namespace.c:3324 do_mount fs/namespace.c:3337 [inline] __do_sys_mount fs/namespace.c:3545 [inline] __se_sys_mount+0x23e/0x2d0 fs/namespace.c:3522 __x64_sys_mount+0xba/0xd0 fs/namespace.c:3522 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 The buggy address belongs to the object at ffff888122d36000 which belongs to the cache kernfs_node_cache of size 136 The buggy address is located 0 bytes to the right of 136-byte region [ffff888122d36000, ffff888122d36088) The buggy address belongs to the page: page:ffffea00048b4d80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x122d36 flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 0000000000000000 dead000000000122 ffff8881001b7c80 raw: 0000000000000000 0000000000140014 00000001ffffffff 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 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 387, ts 48128040703, free_ts 41731770266 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1a3/0x1b0 mm/page_alloc.c:2502 prep_new_page mm/page_alloc.c:2508 [inline] get_page_from_freelist+0x2c14/0x2cf0 mm/page_alloc.c:4291 __alloc_pages+0x386/0x7b0 mm/page_alloc.c:5569 allocate_slab mm/slub.c:1930 [inline] new_slab+0x92/0x490 mm/slub.c:1993 ___slab_alloc+0x39e/0x830 mm/slub.c:3026 __slab_alloc+0x4a/0x90 mm/slub.c:3113 slab_alloc_node mm/slub.c:3204 [inline] slab_alloc mm/slub.c:3246 [inline] kmem_cache_alloc+0x134/0x200 mm/slub.c:3251 kmem_cache_zalloc include/linux/slab.h:728 [inline] __kernfs_new_node+0xd1/0x600 fs/kernfs/dir.c:593 kernfs_new_node+0x8f/0x140 fs/kernfs/dir.c:655 __kernfs_create_file+0x27/0x200 fs/kernfs/file.c:985 sysfs_add_file_mode_ns+0x241/0x2d0 fs/sysfs/file.c:317 create_files fs/sysfs/group.c:64 [inline] internal_create_group+0x5aa/0xe00 fs/sysfs/group.c:149 sysfs_create_group+0xe/0x10 fs/sysfs/group.c:175 loop_sysfs_init drivers/block/loop.c:903 [inline] loop_configure+0xd7f/0x1440 drivers/block/loop.c:1295 lo_ioctl+0xcf5/0x1e60 blkdev_ioctl+0x400/0x530 block/ioctl.c:601 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1370 [inline] free_pcp_prepare mm/page_alloc.c:1442 [inline] free_unref_page_prepare+0x7c8/0x7d0 mm/page_alloc.c:3441 free_unref_page+0xac/0x2c0 mm/page_alloc.c:3521 __put_single_page mm/swap.c:98 [inline] __put_page+0x7e/0x90 mm/swap.c:129 put_page include/linux/mm.h:1295 [inline] anon_pipe_buf_release+0x10c/0x160 fs/pipe.c:137 pipe_buf_release include/linux/pipe_fs_i.h:203 [inline] pipe_read+0x4df/0xdb0 fs/pipe.c:323 call_read_iter include/linux/fs.h:2151 [inline] new_sync_read fs/read_write.c:404 [inline] vfs_read+0x8e3/0xba0 fs/read_write.c:485 ksys_read+0x15c/0x240 fs/read_write.c:623 __do_sys_read fs/read_write.c:633 [inline] __se_sys_read fs/read_write.c:631 [inline] __x64_sys_read+0x76/0x80 fs/read_write.c:631 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 Memory state around the buggy address: ffff888122d35f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888122d36000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888122d36080: 00 fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 ^ ffff888122d36100: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc ffff888122d36180: fc fc 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================