syzbot


kernel BUG in ext4_expand_extra_isize_ea

Status: auto-obsoleted due to no activity on 2023/09/10 17:41
Reported-by: syzbot+31e0015ab7bc567ae02d@syzkaller.appspotmail.com
First crash: 551d, last: 537d
Cause bisection: introduced by (bisect log) :
commit d738789ae9ec47d3458a008788f3cdc862ebf0cb
Author: Jun Nie <jun.nie@linaro.org>
Date: Tue Jan 3 01:45:16 2023 +0000

  ext4: optimize ea_inode block expansion

Crash: kernel BUG in ext4_expand_extra_isize_ea (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) :
commit 1a8822343e67432b658145d2760a524c884da9d4
Author: Theodore Ts'o <tytso@mit.edu>
Date: Sun Apr 30 07:04:13 2023 +0000

  ext4: fix invalid free tracking in ext4_xattr_move_to_block()

  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 kernel BUG in ext4_expand_extra_isize_ea 3 595d 600d 0/3 auto-obsoleted due to no activity on 2023/08/04 09:49
Last patch testing requests (1)
Created Duration User Patch Repo Result
2023/08/11 19:50 22m retest repro android13-5.10-lts OK log

Sample crash report:
------------[ cut here ]------------
kernel BUG at mm/slub.c:4184!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 286 Comm: syz-executor260 Not tainted 5.10.178-syzkaller-00127-g43c801dc3325 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
RIP: 0010:kfree+0x269/0x270 mm/slub.c:4184
Code: 08 4c 89 ee 48 89 da e8 d5 64 f2 ff 65 ff 0d 7a 74 5b 7e 0f 85 d2 fd ff ff e8 bf 85 59 ff e9 c8 fd ff ff e8 a9 c0 02 03 0f 0b <0f> 0b 0f 1f 44 00 00 55 48 89 e5 53 48 83 ec 18 89 f2 65 48 8b 04
RSP: 0018:ffffc9000094f780 EFLAGS: 00010246
RAX: ffffea00046ff408 RBX: ffff88810da785a4 RCX: ffffea0004369e00
RDX: 0000000000000000 RSI: 0000000000000012 RDI: ffff88810da785a4
RBP: ffffc9000094f7d8 R08: ffffffff81ed6e69 R09: 0000000000000003
R10: fffff52000129e70 R11: dffffc0000000001 R12: 0000000000000000
R13: ffffffff8197a405 R14: 0000000000000000 R15: ffffea0004369e00
FS:  00005555565cf300(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001000 CR3: 000000011eb9c000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 kvfree+0x35/0x40 mm/util.c:647
 ext4_xattr_move_to_block fs/ext4/xattr.c:2643 [inline]
 ext4_xattr_make_inode_space fs/ext4/xattr.c:2706 [inline]
 ext4_expand_extra_isize_ea+0x1124/0x1e60 fs/ext4/xattr.c:2798
 __ext4_expand_extra_isize+0x303/0x3f0 fs/ext4/inode.c:5928
 ext4_try_to_expand_extra_isize fs/ext4/inode.c:5971 [inline]
 __ext4_mark_inode_dirty+0x4a7/0x7b0 fs/ext4/inode.c:6048
 __ext4_unlink+0x8b5/0xac0 fs/ext4/namei.c:3389
 ext4_unlink+0x142/0x3f0 fs/ext4/namei.c:3432
 vfs_unlink+0x23b/0x510 fs/namei.c:3977
 do_unlinkat+0x430/0x8b0 fs/namei.c:4042
 __do_sys_unlinkat fs/namei.c:4083 [inline]
 __se_sys_unlinkat fs/namei.c:4076 [inline]
 __x64_sys_unlinkat+0xcd/0xf0 fs/namei.c:4076
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f12736c9c19
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc84aca198 EFLAGS: 00000246 ORIG_RAX: 0000000000000107
RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007f12736c9c19
RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000003
RBP: 00007f1273689250 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f12736892e0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 65ee02ff428f446b ]---
RIP: 0010:kfree+0x269/0x270 mm/slub.c:4184
Code: 08 4c 89 ee 48 89 da e8 d5 64 f2 ff 65 ff 0d 7a 74 5b 7e 0f 85 d2 fd ff ff e8 bf 85 59 ff e9 c8 fd ff ff e8 a9 c0 02 03 0f 0b <0f> 0b 0f 1f 44 00 00 55 48 89 e5 53 48 83 ec 18 89 f2 65 48 8b 04
RSP: 0018:ffffc9000094f780 EFLAGS: 00010246
RAX: ffffea00046ff408 RBX: ffff88810da785a4 RCX: ffffea0004369e00
RDX: 0000000000000000 RSI: 0000000000000012 RDI: ffff88810da785a4
RBP: ffffc9000094f7d8 R08: ffffffff81ed6e69 R09: 0000000000000003
R10: fffff52000129e70 R11: dffffc0000000001 R12: 0000000000000000
R13: ffffffff8197a405 R14: 0000000000000000 R15: ffffea0004369e00
FS:  00005555565cf300(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001000 CR3: 000000011eb9c000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/19 21:17 android13-5.10-lts 43c801dc3325 96689200 .config strace log report syz C [mounted in repro] ci2-android-5-10 kernel BUG in ext4_expand_extra_isize_ea
2023/05/19 20:59 android13-5.10-lts 43c801dc3325 96689200 .config strace log report syz C [mounted in repro] ci2-android-5-10 kernel BUG in ext4_expand_extra_isize_ea
2023/06/02 17:40 android13-5.10-lts 43c801dc3325 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_expand_extra_isize_ea
2023/05/25 20:07 android13-5.10-lts 43c801dc3325 0513b3e6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_expand_extra_isize_ea
2023/05/19 20:49 android13-5.10-lts 43c801dc3325 96689200 .config console log report info ci2-android-5-10 kernel BUG in ext4_expand_extra_isize_ea
* Struck through repros no longer work on HEAD.