ci2 starts bisection 2023-11-08 02:16:57.637319601 +0000 UTC m=+90192.129882362 bisecting fixing commit since 3a93e40326c8f470e71d20b4c42d36767450f38f building syzkaller on 47f3aaf18b57644f3c07714c9ce073a210f061b4 ensuring issue is reproducible on original commit 3a93e40326c8f470e71d20b4c42d36767450f38f testing commit 3a93e40326c8f470e71d20b4c42d36767450f38f gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6ee9e0fc616b4b6735764358808f67674e65edd1851e358847ddbd185edbaab6 run #0: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock run #1: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #2: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock run #3: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock run #4: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock run #5: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock run #6: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #7: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #8: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock run #9: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock run #10: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #11: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock run #12: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #13: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #14: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock run #15: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock run #16: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #17: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #18: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #19: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock representative crash: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock, types: [KASAN] check whether we can drop unnecessary instrumentation disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit 3a93e40326c8f470e71d20b4c42d36767450f38f gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: b6f94460a2ba8e919378ffdcbcfd1ff3acd24d0d33cf1b6ef0f2b9a774ce1b62 run #0: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #1: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock run #2: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #3: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock run #4: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock run #5: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock run #6: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock run #7: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #8: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock run #9: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock representative crash: KASAN: use-after-free Read in ext4_convert_inline_data_nolock, types: [KASAN] the bug reproduces without the instrumentation disabling configs for [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed kconfig minimization: base=3930 full=7587 leaves diff=1986 split chunks (needed=false): <1986> split chunk #0 of len 1986 into 5 parts testing without sub-chunk 1/5 disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 3a93e40326c8f470e71d20b4c42d36767450f38f gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 0649d672a73a91b261a6d3a4352df55bd6fe12db91594cdc0ff900ec56881907 run #0: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock run #1: crashed: KASAN: out-of-bounds Read in ext4_convert_inline_data_nolock run #2: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #3: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock run #4: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #5: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #6: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #7: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #8: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #9: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock representative crash: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock, types: [KASAN] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit 3a93e40326c8f470e71d20b4c42d36767450f38f gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 9cca304aa63e667c2776089cb1c80731214485c5719abec5053ca74efec84b8e run #0: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #1: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #2: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #3: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #4: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock run #5: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #6: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #7: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #8: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #9: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock representative crash: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock, types: [KASAN] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit 3a93e40326c8f470e71d20b4c42d36767450f38f gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 1d5d6e7a28f8a1ce8b35a3cef2014eb8d727bcaa1903449c2f52a87f6ec58ae0 run #0: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #1: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #2: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #3: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #4: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #5: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock run #6: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock run #7: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #8: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #9: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock representative crash: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock, types: [KASAN] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit 3a93e40326c8f470e71d20b4c42d36767450f38f gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 022067de56d30f473a9d81f7266883b3aea1dcc7093b1d47c754312da902969a run #0: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #1: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #2: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #3: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #4: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock run #5: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #6: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock run #7: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #8: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #9: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock representative crash: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock, types: [KASAN] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 3a93e40326c8f470e71d20b4c42d36767450f38f gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 2c23b73e6a1278d09221b6e237487e04fa3f6208f39a87de43dd871058a4b1b5 run #0: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #1: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #2: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock run #3: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock run #4: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #5: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock run #6: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock run #7: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #8: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #9: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock representative crash: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock, types: [KASAN] the chunk can be dropped disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing current HEAD 305230142ae0637213bf6e04f6d9f10bbcb74af8 testing commit 305230142ae0637213bf6e04f6d9f10bbcb74af8 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c0a509c51e652fe3ae979e83567fe275e087792d6e3f773a2c53586d9f8b53ca run #0: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #1: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #2: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #3: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #4: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #5: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock run #6: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #7: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock run #8: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock run #9: crashed: KASAN: slab-use-after-free Read in ext4_convert_inline_data_nolock representative crash: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock, types: [KASAN] crash still not fixed/happens on the oldest tested release revisions tested: 8, total time: 2h3m36.31295739s (build: 1h27m52.323067797s, test: 31m42.3532619s) crash still not fixed or there were kernel test errors commit msg: Merge tag 'pm-6.7-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm crash: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock loop0: detected capacity change from 0 to 2048 EXT4-fs (loop0): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: none. ================================================================== BUG: KASAN: slab-out-of-bounds in ext4_read_inline_data fs/ext4/inline.c:209 [inline] BUG: KASAN: slab-out-of-bounds in ext4_convert_inline_data_nolock+0x293/0xca0 fs/ext4/inline.c:1188 Read of size 20 at addr ffff888103f521a3 by task syz-executor.0/1877 CPU: 1 PID: 1877 Comm: syz-executor.0 Not tainted 6.6.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xf8/0x260 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0x163/0x540 mm/kasan/report.c:475 kasan_report+0x142/0x170 mm/kasan/report.c:588 kasan_check_range+0x27e/0x290 mm/kasan/generic.c:187 __asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105 ext4_read_inline_data fs/ext4/inline.c:209 [inline] ext4_convert_inline_data_nolock+0x293/0xca0 fs/ext4/inline.c:1188 ext4_convert_inline_data+0x3c4/0x4e0 fs/ext4/inline.c:2041 ext4_fallocate+0x141/0x16e0 fs/ext4/extents.c:4701 vfs_fallocate+0x316/0x3d0 fs/open.c:324 ksys_fallocate fs/open.c:347 [inline] __do_sys_fallocate fs/open.c:355 [inline] __se_sys_fallocate fs/open.c:353 [inline] __x64_sys_fallocate+0xaa/0xe0 fs/open.c:353 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x44/0xe0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7fad702868d9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fad6fe090c8 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007fad703a5f80 RCX: 00007fad702868d9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007fad702e2b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000008000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000006 R14: 00007fad703a5f80 R15: 00007ffd8e53da98 Allocated by task 1: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4f/0x70 mm/kasan/common.c:52 __kasan_slab_alloc+0x66/0x70 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook+0x67/0x3c0 mm/slab.h:763 slab_alloc_node mm/slub.c:3478 [inline] slab_alloc mm/slub.c:3486 [inline] __kmem_cache_alloc_lru mm/slub.c:3493 [inline] kmem_cache_alloc+0x198/0x2f0 mm/slub.c:3502 kmem_cache_zalloc include/linux/slab.h:711 [inline] __kernfs_new_node+0xdb/0x6b0 fs/kernfs/dir.c:615 kernfs_new_node+0x89/0x130 fs/kernfs/dir.c:679 __kernfs_create_file+0x28/0x280 fs/kernfs/file.c:1025 sysfs_add_file_mode_ns+0x1c6/0x230 fs/sysfs/file.c:307 create_files fs/sysfs/group.c:64 [inline] internal_create_group+0x565/0xd70 fs/sysfs/group.c:152 sysfs_slab_add+0x15f/0x2a0 mm/slub.c:6172 slab_sysfs_init+0x66/0x170 mm/slub.c:6254 do_one_initcall+0x192/0x4b0 init/main.c:1236 do_initcall_level+0x11e/0x1e0 init/main.c:1298 do_initcalls+0x3e/0x70 init/main.c:1314 kernel_init_freeable+0x359/0x4b0 init/main.c:1551 kernel_init+0x18/0x1a0 init/main.c:1441 ret_from_fork+0x2e/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 The buggy address belongs to the object at ffff888103f520e8 which belongs to the cache kernfs_node_cache of size 168 The buggy address is located 19 bytes to the right of allocated 168-byte region [ffff888103f520e8, ffff888103f52190) The buggy address belongs to the physical page: page:ffffea00040fd480 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f52 flags: 0x200000000000800(slab|node=0|zone=2) page_type: 0xffffffff() raw: 0200000000000800 ffff888101272dc0 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000110011 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 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 1, tgid 1 (swapper/0), ts 3931981660, free_ts 3899474612 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x26e/0x290 mm/page_alloc.c:1537 prep_new_page mm/page_alloc.c:1544 [inline] get_page_from_freelist+0x32d5/0x3690 mm/page_alloc.c:3312 __alloc_pages+0x255/0x650 mm/page_alloc.c:4568 alloc_pages_mpol+0x143/0x320 mm/mempolicy.c:2133 alloc_slab_page+0x6a/0x160 mm/slub.c:1870 allocate_slab mm/slub.c:2017 [inline] new_slab+0x70/0x260 mm/slub.c:2070 ___slab_alloc+0x942/0xed0 mm/slub.c:3223 __slab_alloc mm/slub.c:3322 [inline] __slab_alloc_node mm/slub.c:3375 [inline] slab_alloc_node mm/slub.c:3468 [inline] slab_alloc mm/slub.c:3486 [inline] __kmem_cache_alloc_lru mm/slub.c:3493 [inline] kmem_cache_alloc+0x1dd/0x2f0 mm/slub.c:3502 kmem_cache_zalloc include/linux/slab.h:711 [inline] __kernfs_new_node+0xdb/0x6b0 fs/kernfs/dir.c:615 kernfs_new_node+0x89/0x130 fs/kernfs/dir.c:679 __kernfs_create_file+0x28/0x280 fs/kernfs/file.c:1025 sysfs_add_file_mode_ns+0x1c6/0x230 fs/sysfs/file.c:307 create_files fs/sysfs/group.c:64 [inline] internal_create_group+0x565/0xd70 fs/sysfs/group.c:152 sysfs_slab_add+0x15f/0x2a0 mm/slub.c:6172 slab_sysfs_init+0x66/0x170 mm/slub.c:6254 do_one_initcall+0x192/0x4b0 init/main.c:1236 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+0x7e0/0x8f0 mm/page_alloc.c:2347 free_unref_page+0x34/0x230 mm/page_alloc.c:2487 vfree+0x10e/0x200 mm/vmalloc.c:2842 delayed_vfree_work+0x3c/0x70 mm/vmalloc.c:2763 process_one_work kernel/workqueue.c:2630 [inline] process_scheduled_works+0x7e6/0xfc0 kernel/workqueue.c:2703 worker_thread+0x868/0xc90 kernel/workqueue.c:2784 kthread+0x233/0x280 kernel/kthread.c:388 ret_from_fork+0x2e/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 Memory state around the buggy address: ffff888103f52080: 00 00 00 00 00 fc fc fc fc fc fc fc fc 00 00 00 ffff888103f52100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888103f52180: 00 00 fc fc fc fc fc fc fc fc 00 00 00 00 00 00 ^ ffff888103f52200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc ffff888103f52280: fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 00 ==================================================================