Hello,
syzbot found the following issue on:
HEAD commit: 3db754f56897 Linux 6.1.152
git tree: linux-6.1.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=14b25f62580000
kernel config:
https://syzkaller.appspot.com/x/.config?x=68aa5a3af1cb953a
dashboard link:
https://syzkaller.appspot.com/bug?extid=e0bc42dc6050f6711adb
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
userspace arch: arm64
Unfortunately, I don't have any reproducer for this issue yet.
Downloadable assets:
disk image:
https://storage.googleapis.com/syzbot-assets/9b92862bd95a/disk-3db754f5.raw.xz
vmlinux:
https://storage.googleapis.com/syzbot-assets/f232864105d7/vmlinux-3db754f5.xz
kernel image:
https://storage.googleapis.com/syzbot-assets/30a3ed81e30f/Image-3db754f5.gz.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+e0bc42...@syzkaller.appspotmail.com
EXT4-fs (loop3): orphan cleanup on readonly fs
------------[ cut here ]------------
WARNING: CPU: 0 PID: 4857 at fs/ext4/xattr.c:1874 ext4_xattr_block_set+0x2010/0x2810 fs/ext4/xattr.c:1874
Modules linked in:
CPU: 0 PID: 4857 Comm: syz.3.129 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025
pstate: 82400005 (Nzcv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--)
pc : ext4_xattr_block_set+0x2010/0x2810 fs/ext4/xattr.c:1874
lr : ext4_xattr_block_set+0x2010/0x2810 fs/ext4/xattr.c:1874
sp : ffff800021606f20
x29: ffff800021607090 x28: ffff0000dc1b9600 x27: ffff8000216071e0
x26: dfff800000000000 x25: ffff0000e1b22af8 x24: ffff0000dc1b9600
x23: 1ffff000042c0e3e x22: 1ffff000042c0e3d x21: 0000000000000000
x20: ffff8000216071f0 x19: ffff8000216071e8 x18: ffff800011abbcc0
x17: 1fffe00033ed797e x16: ffff8000082d0e30 x15: 0000000000000002
x14: 00000000ffffffc3 x13: 00000000ffffffc3 x12: 0000000000080000
x11: 0000000000024ceb x10: ffff800029781000 x9 : ffff800008e51e50
x8 : 0000000000024cec x7 : ffff0000f89e9000 x6 : ffff0000f89e9020
x5 : ffff800021607020 x4 : ffff0000dc1b9628 x3 : ffff800008e4fef8
x2 : 0000000000000028 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
ext4_xattr_block_set+0x2010/0x2810 fs/ext4/xattr.c:1874
ext4_xattr_move_to_block fs/ext4/xattr.c:2625 [inline]
ext4_xattr_make_inode_space fs/ext4/xattr.c:2700 [inline]
ext4_expand_extra_isize_ea+0xcb8/0x15cc fs/ext4/xattr.c:2792
__ext4_expand_extra_isize+0x298/0x358 fs/ext4/inode.c:5966
ext4_try_to_expand_extra_isize fs/ext4/inode.c:6009 [inline]
__ext4_mark_inode_dirty+0x3e4/0x790 fs/ext4/inode.c:6087
ext4_evict_inode+0xb58/0x1270 fs/ext4/inode.c:279
evict+0x3c8/0x810 fs/inode.c:705
iput_final fs/inode.c:1834 [inline]
iput+0x764/0x7f4 fs/inode.c:1860
ext4_process_orphan+0x240/0x2b4 fs/ext4/orphan.c:360
ext4_orphan_cleanup+0x908/0x104c fs/ext4/orphan.c:474
__ext4_fill_super fs/ext4/super.c:5537 [inline]
ext4_fill_super+0x6920/0x6e34 fs/ext4/super.c:5668
get_tree_bdev+0x358/0x544 fs/super.c:1366
ext4_get_tree+0x28/0x38 fs/ext4/super.c:5698
vfs_get_tree+0x90/0x274 fs/super.c:1573
do_new_mount+0x228/0x810 fs/namespace.c:3069
path_mount+0x5b4/0xe78 fs/namespace.c:3399
do_mount fs/namespace.c:3412 [inline]
__do_sys_mount fs/namespace.c:3620 [inline]
__se_sys_mount fs/namespace.c:3597 [inline]
__arm64_sys_mount+0x49c/0x584 fs/namespace.c:3597
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140
do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204
el0_svc+0x58/0x138 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
irq event stamp: 2748
hardirqs last enabled at (2747): [<ffff800008a7b970>] lookup_bh_lru fs/buffer.c:1291 [inline]
hardirqs last enabled at (2747): [<ffff800008a7b970>] __find_get_block+0x1c8/0xdfc fs/buffer.c:1303
hardirqs last disabled at (2748): [<ffff8000119576b0>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405
softirqs last enabled at (1752): [<ffff80000803092c>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32
softirqs last disabled at (1750): [<ffff8000080308f8>] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
EA inode 11 i_nlink=2
WARNING: CPU: 0 PID: 4857 at fs/ext4/xattr.c:1021 ext4_xattr_inode_update_ref+0x468/0x4ac fs/ext4/xattr.c:-1
Modules linked in:
CPU: 0 PID: 4857 Comm: syz.3.129 Tainted: G W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025
pstate: 62400005 (nZCv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--)
pc : ext4_xattr_inode_update_ref+0x468/0x4ac fs/ext4/xattr.c:-1
lr : ext4_xattr_inode_update_ref+0x464/0x4ac fs/ext4/xattr.c:1019
sp : ffff800021606e80
x29: ffff800021606f00 x28: 0000000000000000 x27: dfff800000000000
x26: 1fffe0001c36495c x25: ffff7000042c0dd0 x24: 0000000000000000
x23: ffff800017a8b000 x22: ffff800021606e80 x21: 0000000000000002
x20: 0000000000000001 x19: ffff0000e1b248e8 x18: ffff800011abbcc0
x17: 0000000000000000 x16: ffff8000082d22e0 x15: 0000000000000002
x14: 00000000ffffffff x13: 0000000000000001 x12: 0000000000080000
x11: 000000000004956e x10: ffff800029781000 x9 : a0cf644ecf0e4f00
x8 : a0cf644ecf0e4f00 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff800021606918 x4 : ffff8000151a4820 x3 : ffff80000852e404
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000000
Call trace:
ext4_xattr_inode_update_ref+0x468/0x4ac fs/ext4/xattr.c:-1
ext4_xattr_inode_dec_ref fs/ext4/xattr.c:1044 [inline]
ext4_xattr_set_entry+0x918/0x15ac fs/ext4/xattr.c:1682
ext4_xattr_ibody_set+0x204/0x600 fs/ext4/xattr.c:2229
ext4_xattr_move_to_block fs/ext4/xattr.c:2632 [inline]
ext4_xattr_make_inode_space fs/ext4/xattr.c:2700 [inline]
ext4_expand_extra_isize_ea+0xd00/0x15cc fs/ext4/xattr.c:2792
__ext4_expand_extra_isize+0x298/0x358 fs/ext4/inode.c:5966
ext4_try_to_expand_extra_isize fs/ext4/inode.c:6009 [inline]
__ext4_mark_inode_dirty+0x3e4/0x790 fs/ext4/inode.c:6087
ext4_evict_inode+0xb58/0x1270 fs/ext4/inode.c:279
evict+0x3c8/0x810 fs/inode.c:705
iput_final fs/inode.c:1834 [inline]
iput+0x764/0x7f4 fs/inode.c:1860
ext4_process_orphan+0x240/0x2b4 fs/ext4/orphan.c:360
ext4_orphan_cleanup+0x908/0x104c fs/ext4/orphan.c:474
__ext4_fill_super fs/ext4/super.c:5537 [inline]
ext4_fill_super+0x6920/0x6e34 fs/ext4/super.c:5668
get_tree_bdev+0x358/0x544 fs/super.c:1366
ext4_get_tree+0x28/0x38 fs/ext4/super.c:5698
vfs_get_tree+0x90/0x274 fs/super.c:1573
do_new_mount+0x228/0x810 fs/namespace.c:3069
path_mount+0x5b4/0xe78 fs/namespace.c:3399
do_mount fs/namespace.c:3412 [inline]
__do_sys_mount fs/namespace.c:3620 [inline]
__se_sys_mount fs/namespace.c:3597 [inline]
__arm64_sys_mount+0x49c/0x584 fs/namespace.c:3597
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140
do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204
el0_svc+0x58/0x138 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
irq event stamp: 3036
hardirqs last enabled at (3035): [<ffff800008308424>] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:261
hardirqs last disabled at (3036): [<ffff8000119576b0>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405
softirqs last enabled at (2914): [<ffff8000081a967c>] softirq_handle_end kernel/softirq.c:439 [inline]
softirqs last enabled at (2914): [<ffff8000081a967c>] handle_softirqs+0xaf8/0xc6c kernel/softirq.c:624
softirqs last disabled at (2751): [<ffff800008020164>] __do_softirq+0x14/0x20 kernel/softirq.c:630
---[ end trace 0000000000000000 ]---
EXT4-fs (loop3): 1 orphan inode deleted
EXT4-fs (loop3): mounted filesystem without journal. Quota mode: none.