ci2 starts bisection 2024-07-30 05:30:50.698842153 +0000 UTC m=+70794.024734972 bisecting fixing commit since c61bd26ae81a896c8660150b4e356153da30880a building syzkaller on 3113787fe7a0c96998737e520aa95c303fdd41ef ensuring issue is reproducible on original commit c61bd26ae81a896c8660150b4e356153da30880a testing commit c61bd26ae81a896c8660150b4e356153da30880a gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6a2a5b324429d38a599a273497482c0473639e26eaf8e464491581cc40071a84 all runs: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode representative crash: KASAN: use-after-free Read in ext4_xattr_delete_inode, types: [KASAN] check whether we can drop unnecessary instrumentation disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit c61bd26ae81a896c8660150b4e356153da30880a gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 0f55987e793b4909b497906a01dd5ceb036e03c01bb8e7df2a1e43d8c3a50f1d all runs: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode representative crash: KASAN: use-after-free Read in ext4_xattr_delete_inode, 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=3703 full=7269 leaves diff=1983 split chunks (needed=false): <1983> split chunk #0 of len 1983 into 5 parts testing without sub-chunk 1/5 disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit c61bd26ae81a896c8660150b4e356153da30880a gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 411735744a4a4cd8eff99d589ea084f5864f691891746e441664e485ec1aca33 all runs: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode representative crash: KASAN: use-after-free Read in ext4_xattr_delete_inode, 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 c61bd26ae81a896c8660150b4e356153da30880a gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f28242d0fa05d1c6334f2786d5635b854bc650134ddb4c8a3f5f89ab835adb06 all runs: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode representative crash: KASAN: use-after-free Read in ext4_xattr_delete_inode, types: [KASAN] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit c61bd26ae81a896c8660150b4e356153da30880a gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 59cde5c0270066a67f728b4eaea9ce4778fe259f2b0a2545387bdc43e473f043 all runs: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode representative crash: KASAN: use-after-free Read in ext4_xattr_delete_inode, 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 c61bd26ae81a896c8660150b4e356153da30880a gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 87eef2c09297279adc4651940987cc2d59634b465760300f4a63858dfb599a04 all runs: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode representative crash: KASAN: use-after-free Read in ext4_xattr_delete_inode, 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 c61bd26ae81a896c8660150b4e356153da30880a gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 117dbb796f87a34fb6a341fb2d61ec2a96d91553e7e8bedf2785fd6ca710a58d all runs: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode representative crash: KASAN: use-after-free Read in ext4_xattr_delete_inode, types: [KASAN] the chunk can be dropped disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing current HEAD 7e89efd3ae1cfa05fe918588a92628b9bbeda4b2 testing commit 7e89efd3ae1cfa05fe918588a92628b9bbeda4b2 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: df4128886a7223de581f43be87c03b977dbdc446792f1911c0753658a6781579 all runs: crashed: KASAN: use-after-free Read in ext4_xattr_delete_inode representative crash: KASAN: use-after-free Read in ext4_xattr_delete_inode, types: [KASAN] crash still not fixed/happens on the oldest tested release revisions tested: 8, total time: 1h18m51.983724688s (build: 43m46.617935092s, test: 33m19.559144357s) crash still not fixed or there were kernel test errors commit msg: Linux 5.15.164 crash: KASAN: use-after-free Read in ext4_xattr_delete_inode ================================================================== BUG: KASAN: use-after-free in ext4_xattr_delete_inode+0xc73/0xc90 fs/ext4/xattr.c:2904 Read of size 4 at addr ffff8881209ca000 by task syz-executor/2000 CPU: 0 PID: 2000 Comm: syz-executor Not tainted 5.15.164-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x41/0x5e lib/dump_stack.c:106 print_address_description.constprop.0.cold+0x6c/0x309 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report.cold+0x83/0xdf mm/kasan/report.c:451 ext4_xattr_delete_inode+0xc73/0xc90 fs/ext4/xattr.c:2904 ext4_evict_inode+0x823/0x14e0 fs/ext4/inode.c:299 evict+0x296/0x5d0 fs/inode.c:587 d_delete_notify include/linux/fsnotify.h:267 [inline] vfs_rmdir.part.0+0x36a/0x460 fs/namei.c:4162 vfs_rmdir fs/namei.c:4135 [inline] do_rmdir+0x30b/0x3c0 fs/namei.c:4210 __do_sys_unlinkat fs/namei.c:4390 [inline] __se_sys_unlinkat fs/namei.c:4384 [inline] __x64_sys_unlinkat+0xa4/0xd0 fs/namei.c:4384 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x33/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f73dd4406c7 Code: 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 07 01 00 00 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:00007ffd21efedf8 EFLAGS: 00000207 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 00007f73dd4406c7 RDX: 0000000000000200 RSI: 00007ffd21efffa0 RDI: 00000000ffffff9c RBP: 00007f73dd48c336 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000100 R11: 0000000000000207 R12: 00007ffd21efffa0 R13: 00007f73dd48c336 R14: 000000000000d3a7 R15: 0000000000000007 Allocated by task 1523: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] ____kasan_kmalloc mm/kasan/common.c:513 [inline] __kasan_kmalloc+0x7c/0x90 mm/kasan/common.c:522 kmalloc include/linux/slab.h:596 [inline] kzalloc include/linux/slab.h:721 [inline] __register_sysctl_table+0xfd/0x1190 fs/proc/proc_sysctl.c:1319 unix_sysctl_register+0xb7/0x130 net/unix/sysctl_net_unix.c:38 unix_net_init+0x3c/0xc0 net/unix/af_unix.c:3362 ops_init+0x9a/0x4a0 net/core/net_namespace.c:138 setup_net+0x36f/0x8a0 net/core/net_namespace.c:332 copy_net_ns+0x296/0x5b0 net/core/net_namespace.c:476 create_new_namespaces+0x35a/0x920 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0x86/0x1a0 kernel/nsproxy.c:226 ksys_unshare+0x309/0x6b0 kernel/fork.c:3101 __do_sys_unshare kernel/fork.c:3175 [inline] __se_sys_unshare kernel/fork.c:3173 [inline] __x64_sys_unshare+0x28/0x40 kernel/fork.c:3173 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x33/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Last potentially related work creation: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_record_aux_stack+0xc5/0xf0 mm/kasan/generic.c:348 kvfree_call_rcu+0x65/0x720 kernel/rcu/tree.c:3596 drop_sysctl_table+0x317/0x440 fs/proc/proc_sysctl.c:1680 unregister_sysctl_table.part.0+0x78/0x140 fs/proc/proc_sysctl.c:1718 unix_sysctl_unregister+0x53/0x70 net/unix/sysctl_net_unix.c:55 unix_net_exit+0x9/0x50 net/unix/af_unix.c:3379 ops_exit_list+0x8c/0x140 net/core/net_namespace.c:172 cleanup_net+0x423/0x980 net/core/net_namespace.c:599 process_one_work+0x800/0x11a0 kernel/workqueue.c:2310 worker_thread+0x4a0/0xdd0 kernel/workqueue.c:2457 kthread+0x2f8/0x3b0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 The buggy address belongs to the object at ffff8881209ca000 which belongs to the cache kmalloc-128 of size 128 The buggy address is located 0 bytes inside of 128-byte region [ffff8881209ca000, ffff8881209ca080) The buggy address belongs to the page: page:ffffea0004827280 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff8881209ca900 pfn:0x1209ca flags: 0x200000000000200(slab|node=0|zone=2) raw: 0200000000000200 0000000000000000 0000000a00000001 ffff8881000418c0 raw: ffff8881209ca900 0000000080100006 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 1523, ts 49704702549, free_ts 49669683496 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x166f/0x2910 mm/page_alloc.c:4159 __alloc_pages+0x2b3/0x590 mm/page_alloc.c:5423 alloc_slab_page mm/slub.c:1775 [inline] allocate_slab+0x2eb/0x430 mm/slub.c:1912 new_slab mm/slub.c:1975 [inline] ___slab_alloc+0xb1c/0xf80 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] __kmalloc+0x2da/0x2f0 mm/slub.c:4403 kmalloc include/linux/slab.h:596 [inline] kzalloc include/linux/slab.h:721 [inline] __register_sysctl_table+0xfd/0x1190 fs/proc/proc_sysctl.c:1319 unix_sysctl_register+0xb7/0x130 net/unix/sysctl_net_unix.c:38 unix_net_init+0x3c/0xc0 net/unix/af_unix.c:3362 ops_init+0x9a/0x4a0 net/core/net_namespace.c:138 setup_net+0x36f/0x8a0 net/core/net_namespace.c:332 copy_net_ns+0x296/0x5b0 net/core/net_namespace.c:476 create_new_namespaces+0x35a/0x920 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0x86/0x1a0 kernel/nsproxy.c:226 ksys_unshare+0x309/0x6b0 kernel/fork.c:3101 __do_sys_unshare kernel/fork.c:3175 [inline] __se_sys_unshare kernel/fork.c:3173 [inline] __x64_sys_unshare+0x28/0x40 kernel/fork.c:3173 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x33/0x80 arch/x86/entry/common.c:80 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare+0x34e/0x730 mm/page_alloc.c:1391 free_unref_page_prepare mm/page_alloc.c:3317 [inline] free_unref_page_list+0x168/0x9a0 mm/page_alloc.c:3433 release_pages+0x9f2/0x1100 mm/swap.c:963 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline] tlb_flush_mmu_free mm/mmu_gather.c:240 [inline] tlb_flush_mmu mm/mmu_gather.c:247 [inline] tlb_finish_mmu+0x125/0x6c0 mm/mmu_gather.c:338 exit_mmap+0x185/0x4e0 mm/mmap.c:3188 __mmput kernel/fork.c:1126 [inline] mmput+0x90/0x390 kernel/fork.c:1147 exit_mm kernel/exit.c:550 [inline] do_exit+0x87f/0x21d0 kernel/exit.c:861 do_group_exit+0xe7/0x290 kernel/exit.c:996 get_signal+0x274/0x1ec0 kernel/signal.c:2889 arch_do_signal_or_restart+0x2b8/0x1780 arch/x86/kernel/signal.c:867 handle_signal_work kernel/entry/common.c:154 [inline] exit_to_user_mode_loop kernel/entry/common.c:178 [inline] exit_to_user_mode_prepare+0xf2/0x160 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x12/0x30 kernel/entry/common.c:307 do_syscall_64+0x40/0x80 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Memory state around the buggy address: ffff8881209c9f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881209c9f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8881209ca000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881209ca080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881209ca100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================