syzbot


general protection fault in ext4_put_super (2)

Status: moderation: reported on 2025/03/02 03:35
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+94cee68a42a0250fd34e@syzkaller.appspotmail.com
First crash: 14d, last: 14d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in ext4_put_super ext4 4 266d 275d 0/28 auto-obsoleted due to no activity on 2024/09/16 20:16
linux-4.19 KASAN: use-after-free Write in ext4_put_super ext4 C error 17 740d 898d 0/1 upstream: reported C repro on 2022/09/25 13:27
linux-4.14 KASAN: use-after-free Read in ext4_put_super syz error 1 851d 882d 0/1 upstream: reported syz repro on 2022/10/12 05:23
upstream KASAN: use-after-free Write in ext4_put_super ext4 1 1425d 1421d 0/28 auto-closed as invalid on 2021/08/14 16:30
android-54 KASAN: use-after-free Read in ext4_put_super ext4 C 40 2d19h 1424d 0/2 upstream: reported C repro on 2021/04/17 06:50

Sample crash report:
EXT4-fs (loop4): unmounting filesystem 00000000-0000-0000-0000-000000000000.
Oops: general protection fault, probably for non-canonical address 0xe01ffbf110036133: 0000 [#1] PREEMPT SMP KASAN NOPTI
KASAN: maybe wild-memory-access in range [0x00ffff88801b0998-0x00ffff88801b099f]
CPU: 1 UID: 0 PID: 5836 Comm: syz-executor Not tainted 6.14.0-rc4-syzkaller-00015-g2a1944bff549 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:__lock_acquire+0xe4/0x3c40 kernel/locking/lockdep.c:5091
Code: 08 84 d2 0f 85 15 14 00 00 44 8b 0d 3a 4b cc 0e 45 85 c9 0f 84 b4 0e 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 96 2c 00 00 49 8b 04 24 48 3d a0 e7 82 93 0f 84
RSP: 0018:ffffc90003e57a88 EFLAGS: 00010016
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 001ffff110036133 RSI: 1ffff920007caf63 RDI: 00ffff88801b0998
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff90627817 R11: 0000000000000001 R12: 00ffff88801b0998
R13: ffff88805f619e00 R14: 0000000000000000 R15: 0000000000000000
FS:  000055556b404500(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b3061fffc CR3: 000000005f5a0000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5851
 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:119 [inline]
 _raw_spin_lock_irq+0x36/0x50 kernel/locking/spinlock.c:170
 put_pwq_unlocked kernel/workqueue.c:1662 [inline]
 put_pwq_unlocked kernel/workqueue.c:1655 [inline]
 destroy_workqueue+0x5dd/0xaa0 kernel/workqueue.c:5909
 ext4_put_super+0x111/0xe30 fs/ext4/super.c:1310
 generic_shutdown_super+0x156/0x390 fs/super.c:642
 kill_block_super+0x3b/0x90 fs/super.c:1710
 ext4_kill_sb+0x6a/0xb0 fs/ext4/super.c:7368
 deactivate_locked_super+0xc1/0x1a0 fs/super.c:473
 deactivate_super+0xde/0x100 fs/super.c:506
 cleanup_mnt+0x222/0x450 fs/namespace.c:1413
 task_work_run+0x151/0x250 kernel/task_work.c:227
 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:114 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0x27b/0x2a0 kernel/entry/common.c:218
 do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7faed538e497
Code: a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffd8255e1b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007faed540e08c RCX: 00007faed538e497
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffd8255e270
RBP: 00007ffd8255e270 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffd8255f300
R13: 00007faed540e08c R14: 000000000001dd68 R15: 00007ffd8255f340
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__lock_acquire+0xe4/0x3c40 kernel/locking/lockdep.c:5091
Code: 08 84 d2 0f 85 15 14 00 00 44 8b 0d 3a 4b cc 0e 45 85 c9 0f 84 b4 0e 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 96 2c 00 00 49 8b 04 24 48 3d a0 e7 82 93 0f 84
RSP: 0018:ffffc90003e57a88 EFLAGS: 00010016
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 001ffff110036133 RSI: 1ffff920007caf63 RDI: 00ffff88801b0998
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff90627817 R11: 0000000000000001 R12: 00ffff88801b0998
R13: ffff88805f619e00 R14: 0000000000000000 R15: 0000000000000000
FS:  000055556b404500(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b3061fffc CR3: 000000005f5a0000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess):
   0:	08 84 d2 0f 85 15 14 	or     %al,0x1415850f(%rdx,%rdx,8)
   7:	00 00                	add    %al,(%rax)
   9:	44 8b 0d 3a 4b cc 0e 	mov    0xecc4b3a(%rip),%r9d        # 0xecc4b4a
  10:	45 85 c9             	test   %r9d,%r9d
  13:	0f 84 b4 0e 00 00    	je     0xecd
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	4c 89 e2             	mov    %r12,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 96 2c 00 00    	jne    0x2cca
  34:	49 8b 04 24          	mov    (%r12),%rax
  38:	48 3d a0 e7 82 93    	cmp    $0xffffffff9382e7a0,%rax
  3e:	0f                   	.byte 0xf
  3f:	84                   	.byte 0x84

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/02/26 03:25 upstream 2a1944bff549 d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in ext4_put_super
* Struck through repros no longer work on HEAD.