[v6.6] WARNING in ext4_xattr_block_set

0 views
Skip to first unread message

syzbot

unread,
Sep 16, 2025, 3:25:29 AM (3 days ago) Sep 16
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 60a9e718726f Linux 6.6.106
git tree: linux-6.6.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15744e42580000
kernel config: https://syzkaller.appspot.com/x/.config?x=12606d4b8832c7e4
dashboard link: https://syzkaller.appspot.com/bug?extid=b1aa832f28aa881188a3
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/eca27e056a5a/disk-60a9e718.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/bc64d4eeb7f6/vmlinux-60a9e718.xz
kernel image: https://storage.googleapis.com/syzbot-assets/a345041561ac/bzImage-60a9e718.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+b1aa83...@syzkaller.appspotmail.com

loop1: detected capacity change from 0 to 512
EXT4-fs (loop1): orphan cleanup on readonly fs
------------[ cut here ]------------
WARNING: CPU: 1 PID: 5996 at fs/ext4/xattr.c:1923 ext4_xattr_block_set+0x2a7a/0x32a0 fs/ext4/xattr.c:1923
Modules linked in:
CPU: 1 PID: 5996 Comm: syz.1.23 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
RIP: 0010:ext4_xattr_block_set+0x2a7a/0x32a0 fs/ext4/xattr.c:1923
Code: ff 48 8b 5c 24 18 48 8d 7b 28 be 08 00 00 00 e8 bc c6 9a ff f0 80 63 28 fd eb 1b e8 b0 79 43 ff e9 2f f1 ff ff e8 a6 79 43 ff <0f> 0b e9 72 d7 ff ff e8 9a 79 43 ff 48 b8 00 00 00 00 00 fc ff df
RSP: 0018:ffffc9000b7472a0 EFLAGS: 00010287
RAX: ffffffff8242169a RBX: ffffc9000b7475a8 RCX: 0000000000080000
RDX: ffffc9000d3ea000 RSI: 000000000002cad6 RDI: 000000000002cad7
RBP: ffffc9000b747490 R08: ffff8880748f0020 R09: ffff8880748f0020
R10: ffff8880748f0400 R11: ffff8880748f0000 R12: 0000000000000000
R13: 1ffff920016e8eb6 R14: 1ffff920016e8eb5 R15: ffffc9000b7475b0
FS: 00007f2aa5fa76c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000028000 CR3: 000000002fb13000 CR4: 00000000003506e0
Call Trace:
<TASK>
ext4_xattr_move_to_block fs/ext4/xattr.c:2674 [inline]
ext4_xattr_make_inode_space fs/ext4/xattr.c:2749 [inline]
ext4_expand_extra_isize_ea+0x10ea/0x19e0 fs/ext4/xattr.c:2841
__ext4_expand_extra_isize+0x306/0x400 fs/ext4/inode.c:5953
ext4_try_to_expand_extra_isize fs/ext4/inode.c:5996 [inline]
__ext4_mark_inode_dirty+0x45d/0x6e0 fs/ext4/inode.c:6074
ext4_evict_inode+0x7ed/0xea0 fs/ext4/inode.c:252
evict+0x486/0x870 fs/inode.c:705
ext4_orphan_cleanup+0xbd4/0x1400 fs/ext4/orphan.c:474
__ext4_fill_super fs/ext4/super.c:5608 [inline]
ext4_fill_super+0x5de7/0x66c0 fs/ext4/super.c:5731
get_tree_bdev+0x3e4/0x510 fs/super.c:1591
vfs_get_tree+0x8c/0x280 fs/super.c:1764
do_new_mount+0x24b/0xa40 fs/namespace.c:3377
do_mount fs/namespace.c:3717 [inline]
__do_sys_mount fs/namespace.c:3926 [inline]
__se_sys_mount+0x2da/0x3c0 fs/namespace.c:3903
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f2aa519034a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f2aa5fa6e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f2aa5fa6ef0 RCX: 00007f2aa519034a
RDX: 0000200000000180 RSI: 00002000000001c0 RDI: 00007f2aa5fa6eb0
RBP: 0000200000000180 R08: 00007f2aa5fa6ef0 R09: 000000000080078b
R10: 000000000080078b R11: 0000000000000246 R12: 00002000000001c0
R13: 00007f2aa5fa6eb0 R14: 0000000000000473 R15: 0000200000000680
</TASK>


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Sep 16, 2025, 3:45:26 AM (3 days ago) Sep 16
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 60a9e718726f Linux 6.6.106
git tree: linux-6.6.y
console output: https://syzkaller.appspot.com/x/log.txt?x=17400762580000
kernel config: https://syzkaller.appspot.com/x/.config?x=12606d4b8832c7e4
dashboard link: https://syzkaller.appspot.com/bug?extid=b1aa832f28aa881188a3
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10c00762580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1561b47c580000
mounted in repro: https://storage.googleapis.com/syzbot-assets/7afa94b790b8/mount_0.gz
fsck result: failed (log: https://syzkaller.appspot.com/x/fsck.log?x=17363762580000)

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+b1aa83...@syzkaller.appspotmail.com

syz.0.17[5949]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set
loop0: detected capacity change from 0 to 512
EXT4-fs (loop0): orphan cleanup on readonly fs
------------[ cut here ]------------
WARNING: CPU: 1 PID: 5949 at fs/ext4/xattr.c:1923 ext4_xattr_block_set+0x2a7a/0x32a0 fs/ext4/xattr.c:1923
Modules linked in:
CPU: 1 PID: 5949 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
RIP: 0010:ext4_xattr_block_set+0x2a7a/0x32a0 fs/ext4/xattr.c:1923
Code: ff 48 8b 5c 24 18 48 8d 7b 28 be 08 00 00 00 e8 bc c6 9a ff f0 80 63 28 fd eb 1b e8 b0 79 43 ff e9 2f f1 ff ff e8 a6 79 43 ff <0f> 0b e9 72 d7 ff ff e8 9a 79 43 ff 48 b8 00 00 00 00 00 fc ff df
RSP: 0018:ffffc900046bf2a0 EFLAGS: 00010293
RAX: ffffffff8242169a RBX: ffffc900046bf5a8 RCX: ffff888029225a00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900046bf490 R08: ffff88806eeb1020 R09: ffff88806eeb1020
R10: ffff88806eeb1400 R11: ffff88806eeb1000 R12: 0000000000000000
R13: 1ffff920008d7eb6 R14: 1ffff920008d7eb5 R15: ffffc900046bf5b0
FS: 000055558b03b500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000558b57fb4008 CR3: 0000000077a82000 CR4: 00000000003506e0
Call Trace:
<TASK>
ext4_xattr_move_to_block fs/ext4/xattr.c:2674 [inline]
ext4_xattr_make_inode_space fs/ext4/xattr.c:2749 [inline]
ext4_expand_extra_isize_ea+0x10ea/0x19e0 fs/ext4/xattr.c:2841
__ext4_expand_extra_isize+0x306/0x400 fs/ext4/inode.c:5953
ext4_try_to_expand_extra_isize fs/ext4/inode.c:5996 [inline]
__ext4_mark_inode_dirty+0x45d/0x6e0 fs/ext4/inode.c:6074
ext4_evict_inode+0x7ed/0xea0 fs/ext4/inode.c:252
evict+0x486/0x870 fs/inode.c:705
ext4_orphan_cleanup+0xbd4/0x1400 fs/ext4/orphan.c:474
__ext4_fill_super fs/ext4/super.c:5608 [inline]
ext4_fill_super+0x5de7/0x66c0 fs/ext4/super.c:5731
get_tree_bdev+0x3e4/0x510 fs/super.c:1591
vfs_get_tree+0x8c/0x280 fs/super.c:1764
do_new_mount+0x24b/0xa40 fs/namespace.c:3377
do_mount fs/namespace.c:3717 [inline]
__do_sys_mount fs/namespace.c:3926 [inline]
__se_sys_mount+0x2da/0x3c0 fs/namespace.c:3903
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f0f9279034a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc23fd9278 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffc23fd9300 RCX: 00007f0f9279034a
RDX: 0000200000000180 RSI: 00002000000001c0 RDI: 00007ffc23fd92c0
RBP: 0000200000000180 R08: 00007ffc23fd9300 R09: 000000000080078b
R10: 000000000080078b R11: 0000000000000246 R12: 00002000000001c0
R13: 00007ffc23fd92c0 R14: 0000000000000473 R15: 0000200000000680
</TASK>


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

syzbot

unread,
Sep 17, 2025, 10:40:32 PM (2 days ago) Sep 17
to syzkaller...@googlegroups.com
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.

syzbot

unread,
Sep 17, 2025, 10:56:30 PM (2 days ago) Sep 17
to syzkaller...@googlegroups.com
syzbot has found a reproducer for 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=10d18712580000
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
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=116a5f62580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17a4ef62580000
mounted in repro: https://storage.googleapis.com/syzbot-assets/403901553994/mount_0.gz
fsck result: failed (log: https://syzkaller.appspot.com/x/fsck.log?x=166a5f62580000)

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+e0bc42...@syzkaller.appspotmail.com

loop0: detected capacity change from 0 to 512
EXT4-fs (loop0): orphan cleanup on readonly fs
------------[ cut here ]------------
WARNING: CPU: 1 PID: 4539 at fs/ext4/xattr.c:1874 ext4_xattr_block_set+0x2010/0x2810 fs/ext4/xattr.c:1874
Modules linked in:
CPU: 1 PID: 4539 Comm: syz.0.17 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 : ffff800021466f20
x29: ffff800021467090 x28: ffff0000d2dcc700 x27: ffff8000214671e0
x26: dfff800000000000 x25: ffff0000e9863500 x24: ffff0000d2dcc700
x23: 1ffff0000428ce3e x22: 1ffff0000428ce3d x21: 0000000000000000
x20: ffff8000214671f0 x19: ffff8000214671e8 x18: ffff800011abbcc0
x17: ffff8000181fa000 x16: ffff8000082d0e30 x15: 0000000000000000
x14: 00000000ffffffc3 x13: 00000000ffffffc3 x12: 0000000000ff0100
x11: ff00800008e51e50 x10: 0000000000000000 x9 : ffff800008e51e50
x8 : ffff0000cfe58000 x7 : ffff0000ead30000 x6 : ffff0000ead30020
x5 : ffff800021467020 x4 : ffff0000d2dcc728 x3 : ffff800008e4fef8
irq event stamp: 4170
hardirqs last enabled at (4169): [<ffff800008a7b970>] lookup_bh_lru fs/buffer.c:1291 [inline]
hardirqs last enabled at (4169): [<ffff800008a7b970>] __find_get_block+0x1c8/0xdfc fs/buffer.c:1303
hardirqs last disabled at (4170): [<ffff8000119576b0>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405
softirqs last enabled at (2682): [<ffff80000803092c>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32
softirqs last disabled at (2680): [<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: 1 PID: 4539 at fs/ext4/xattr.c:1021 ext4_xattr_inode_update_ref+0x468/0x4ac fs/ext4/xattr.c:-1
Modules linked in:
CPU: 1 PID: 4539 Comm: syz.0.17 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 : ffff800021466e80
x29: ffff800021466f00 x28: 0000000000000000 x27: dfff800000000000
x26: 1fffe0001d30ca9d x25: ffff70000428cdd0 x24: 0000000000000000
x23: ffff800017a8b000 x22: ffff800021466e80 x21: 0000000000000002
x20: 0000000000000001 x19: ffff0000e98652f0 x18: ffff800011abbcc0
x17: 0000000000000000 x16: ffff8000082d22e0 x15: 0000000000000000
x14: 00000000ffffffff x13: 0000000000000001 x12: 0000000000ff0100
x11: ff00800008191ca8 x10: 0000000000000000 x9 : 102dec1ba5f53300
x8 : 102dec1ba5f53300 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff800021466918 x4 : ffff8000151a4820 x3 : ffff800008311d00
irq event stamp: 4348
hardirqs last enabled at (4347): [<ffff800008308424>] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:261
hardirqs last disabled at (4348): [<ffff8000119576b0>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405
softirqs last enabled at (4242): [<ffff8000081a967c>] softirq_handle_end kernel/softirq.c:439 [inline]
softirqs last enabled at (4242): [<ffff8000081a967c>] handle_softirqs+0xaf8/0xc6c kernel/softirq.c:624
softirqs last disabled at (4173): [<ffff800008020164>] __do_softirq+0x14/0x20 kernel/softirq.c:630
---[ end trace 0000000000000000 ]---
EXT4-fs (loop0): 1 orphan inode deleted
EXT4-fs (loop0): mounted filesystem without journal. Quota mode: none.


---
Reply all
Reply to author
Forward
0 new messages