ci2 starts bisection 2024-09-21 20:36:57.060322252 +0000 UTC m=+180807.995390322 bisecting fixing commit since fa74641fb6b93a19ccb50579886ecc98320230f9 building syzkaller on 4bce1a3e705a8b62de8194bdb28f5eef89c8feec ensuring issue is reproducible on original commit fa74641fb6b93a19ccb50579886ecc98320230f9 testing commit fa74641fb6b93a19ccb50579886ecc98320230f9 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c07381f459a4782ca53cbdf5a8239c660ce11ec83b8396350a20bf360fb28ab1 run #0: crashed: KASAN: use-after-free 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: use-after-free 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: use-after-free 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-out-of-bounds 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: use-after-free Read in ext4_convert_inline_data_nolock run #12: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #13: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #14: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #15: crashed: KASAN: slab-out-of-bounds Read in ext4_convert_inline_data_nolock run #16: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #17: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #18: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #19: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock representative crash: KASAN: use-after-free Read in ext4_convert_inline_data_nolock, types: [KASAN] check whether we can drop unnecessary instrumentation disabling configs for [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing commit fa74641fb6b93a19ccb50579886ecc98320230f9 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: b572129d494bb6bae8b44d0547722e64465340f669b9f6a195d4778d52bc708c run #0: crashed: KASAN: 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: use-after-free Read in ext4_convert_inline_data_nolock run #3: crashed: KASAN: 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: 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-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: 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=3824 full=7524 leaves diff=1995 split chunks (needed=false): <1995> split chunk #0 of len 1995 into 5 parts testing without sub-chunk 1/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit fa74641fb6b93a19ccb50579886ecc98320230f9 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 7b46d12fc38e9eea508221bca0560fa2d15054e2c49e258de21ec9af1d64298d 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: 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-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-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 2/5 disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit fa74641fb6b93a19ccb50579886ecc98320230f9 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6be2ce3699b2cf7ff7de4dc4ea97fdb75993655a85e82dcfca7f5c07dbd6082d run #0: crashed: KASAN: slab-out-of-bounds 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: use-after-free 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: 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 fa74641fb6b93a19ccb50579886ecc98320230f9 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d69d24290cbdb705fef6eccc0a4d1dcd9f9b742a8aaaed08140e91b0b550e03d run #0: crashed: KASAN: slab-out-of-bounds 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-out-of-bounds Read in ext4_convert_inline_data_nolock run #3: crashed: KASAN: 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: 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: use-after-free Read in ext4_convert_inline_data_nolock run #8: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #9: crashed: KASAN: 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 [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit fa74641fb6b93a19ccb50579886ecc98320230f9 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a8252365d2734522d39a785b441125858bbc4ad7ebda8f15f76f0981325aaeb2 run #0: crashed: KASAN: use-after-free 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: use-after-free Read in ext4_convert_inline_data_nolock run #3: crashed: KASAN: 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: 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: use-after-free 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: use-after-free Read in ext4_convert_inline_data_nolock representative crash: KASAN: use-after-free Read in ext4_convert_inline_data_nolock, types: [KASAN] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit fa74641fb6b93a19ccb50579886ecc98320230f9 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 686f6d899a801926addb2e1bd8cfaa838547a96042d949b990a29760000feadb 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-out-of-bounds 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 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing current HEAD e526b12bf9169887f8cfe5afed2b10e56bdca4c3 testing commit e526b12bf9169887f8cfe5afed2b10e56bdca4c3 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 562a96028d9102e4368168cbf46b8e611c1e28a7bb34d4d37b05cc111407e241 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: use-after-free Read in ext4_convert_inline_data_nolock run #3: crashed: KASAN: 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: 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: use-after-free Read in ext4_convert_inline_data_nolock run #8: crashed: KASAN: use-after-free Read in ext4_convert_inline_data_nolock run #9: crashed: KASAN: 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: 2h4m41.106693972s (build: 57m13.33262895s, test: 1h4m9.055336375s) crash still not fixed or there were kernel test errors commit msg: Linux 6.1.111 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 without journal. Quota mode: none. ================================================================== BUG: KASAN: slab-out-of-bounds in ext4_read_inline_data fs/ext4/inline.c:210 [inline] BUG: KASAN: slab-out-of-bounds in ext4_convert_inline_data_nolock+0x282/0xc10 fs/ext4/inline.c:1216 Read of size 20 at addr ffff888117f451a3 by task syz-executor.0/1407 CPU: 0 PID: 1407 Comm: syz-executor.0 Not tainted 6.1.111-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xf4/0x251 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:284 [inline] print_report+0x15f/0x4f0 mm/kasan/report.c:395 kasan_report+0x136/0x160 mm/kasan/report.c:495 kasan_check_range+0x27f/0x290 mm/kasan/generic.c:189 memcpy+0x25/0x60 mm/kasan/shadow.c:65 ext4_read_inline_data fs/ext4/inline.c:210 [inline] ext4_convert_inline_data_nolock+0x282/0xc10 fs/ext4/inline.c:1216 ext4_convert_inline_data+0x3b8/0x4d0 fs/ext4/inline.c:2081 ext4_fallocate+0x136/0x1790 fs/ext4/extents.c:4733 vfs_fallocate+0x30c/0x3d0 fs/open.c:323 ksys_fallocate fs/open.c:346 [inline] __do_sys_fallocate fs/open.c:354 [inline] __se_sys_fallocate fs/open.c:352 [inline] __x64_sys_fallocate+0xa6/0xd0 fs/open.c:352 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0x80 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fa691edf959 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:00007fa691a620c8 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007fa691ffef80 RCX: 00007fa691edf959 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007fa691f3bc88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000008000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000006 R14: 00007fa691ffef80 R15: 00007ffc92ff5448 Allocated by task 1150: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 __kasan_slab_alloc+0x65/0x70 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x54/0x3e0 mm/slab.h:737 kmem_cache_alloc_bulk+0x2d4/0x360 mm/slub.c:3854 mt_alloc_bulk lib/maple_tree.c:157 [inline] mas_alloc_nodes+0x359/0x680 lib/maple_tree.c:1299 mas_node_count_gfp lib/maple_tree.c:1359 [inline] mas_preallocate+0xee/0x290 lib/maple_tree.c:5804 mmap_region+0xd1c/0x1780 mm/mmap.c:2821 do_mmap+0x69e/0xb60 mm/mmap.c:1425 vm_mmap_pgoff+0x1b7/0x280 mm/util.c:520 ksys_mmap_pgoff+0x2cf/0x3b0 mm/mmap.c:1471 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0x80 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Freed by task 1150: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 kasan_save_free_info+0x27/0x40 mm/kasan/generic.c:516 ____kasan_slab_free+0x122/0x1e0 mm/kasan/common.c:236 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1724 [inline] slab_free_freelist_hook mm/slub.c:1750 [inline] slab_free mm/slub.c:3661 [inline] kmem_cache_free+0x2e8/0x510 mm/slub.c:3683 mas_destroy+0x267f/0x2ec0 lib/maple_tree.c:5861 mas_store_prealloc+0x283/0x3b0 lib/maple_tree.c:5788 mmap_region+0xf25/0x1780 mm/mmap.c:2834 do_mmap+0x69e/0xb60 mm/mmap.c:1425 vm_mmap_pgoff+0x1b7/0x280 mm/util.c:520 ksys_mmap_pgoff+0x2cf/0x3b0 mm/mmap.c:1471 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0x80 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff888117f45000 which belongs to the cache maple_node of size 256 The buggy address is located 163 bytes to the right of 256-byte region [ffff888117f45000, ffff888117f45100) The buggy address belongs to the physical page: page:ffffea00045fd100 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x117f44 head:ffffea00045fd100 order:1 compound_mapcount:0 compound_pincount:0 flags: 0x200000000010200(slab|head|node=0|zone=2) raw: 0200000000010200 ffffea0004626b00 dead000000000002 ffff8881000cd000 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 0x52800(GFP_NOWAIT|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 600, tgid 600 (modprobe), ts 33442465374, free_ts 33112508658 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x286/0x2b0 mm/page_alloc.c:2517 prep_new_page mm/page_alloc.c:2524 [inline] get_page_from_freelist+0x2ba7/0x2de0 mm/page_alloc.c:4290 __alloc_pages+0x251/0x640 mm/page_alloc.c:5558 alloc_slab_page+0x6a/0x150 mm/slub.c:1794 allocate_slab mm/slub.c:1939 [inline] new_slab+0x70/0x250 mm/slub.c:1992 ___slab_alloc+0x9df/0xe70 mm/slub.c:3180 kmem_cache_alloc_bulk+0x15c/0x360 mm/slub.c:3830 mt_alloc_bulk lib/maple_tree.c:157 [inline] mas_alloc_nodes+0x359/0x680 lib/maple_tree.c:1299 mas_node_count_gfp lib/maple_tree.c:1359 [inline] mas_node_count lib/maple_tree.c:1373 [inline] mas_split lib/maple_tree.c:3556 [inline] mas_commit_b_node lib/maple_tree.c:3657 [inline] mas_wr_bnode lib/maple_tree.c:4382 [inline] mas_wr_modify+0x217a/0x6760 lib/maple_tree.c:4425 mas_store_gfp+0x25c/0x3c0 lib/maple_tree.c:5763 do_brk_flags+0x500/0xa70 mm/mmap.c:3126 __do_sys_brk mm/mmap.c:262 [inline] __se_sys_brk+0x6a4/0x9c0 mm/mmap.c:170 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0x80 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1444 [inline] free_pcp_prepare mm/page_alloc.c:1494 [inline] free_unref_page_prepare+0xccc/0xdb0 mm/page_alloc.c:3369 free_unref_page+0x30/0x230 mm/page_alloc.c:3464 free_slab mm/slub.c:2031 [inline] discard_slab mm/slub.c:2037 [inline] __unfreeze_partials+0x1af/0x210 mm/slub.c:2586 put_cpu_partial+0x150/0x1a0 mm/slub.c:2662 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x76/0xe0 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x156/0x170 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x1f/0x70 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x54/0x3e0 mm/slab.h:737 kmem_cache_alloc_bulk+0x2d4/0x360 mm/slub.c:3854 mt_alloc_bulk lib/maple_tree.c:157 [inline] mas_alloc_nodes+0x359/0x680 lib/maple_tree.c:1299 mas_node_count_gfp lib/maple_tree.c:1359 [inline] mas_preallocate+0xee/0x290 lib/maple_tree.c:5804 mmap_region+0xd1c/0x1780 mm/mmap.c:2821 do_mmap+0x69e/0xb60 mm/mmap.c:1425 vm_mmap_pgoff+0x1b7/0x280 mm/util.c:520 elf_map+0xe8/0x250 fs/binfmt_elf.c:390 load_elf_interp+0x391/0xac0 fs/binfmt_elf.c:638 Memory state around the buggy address: ffff888117f45080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888117f45100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888117f45180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888117f45200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888117f45280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================