syzbot


WARNING in ext4_mb_initialize_context

Status: auto-obsoleted due to no activity on 2024/10/03 14:36
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+176b58b1d4ea28b1c947@syzkaller.appspotmail.com
First crash: 172d, last: 148d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ext4?] WARNING in ext4_mb_initialize_context 0 (1) 2024/06/05 19:47

Sample crash report:
DEBUG_LOCKS_WARN_ON(lock->magic != lock)
WARNING: CPU: 0 PID: 13014 at kernel/locking/mutex.c:587 __mutex_lock_common kernel/locking/mutex.c:587 [inline]
WARNING: CPU: 0 PID: 13014 at kernel/locking/mutex.c:587 __mutex_lock+0x328/0x9c0 kernel/locking/mutex.c:752
Modules linked in:
CPU: 0 PID: 13014 Comm: syz-executor.3 Not tainted 6.10.0-rc5-syzkaller-00018-g55027e689933 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:__mutex_lock_common kernel/locking/mutex.c:587 [inline]
RIP: 0010:__mutex_lock+0x328/0x9c0 kernel/locking/mutex.c:752
Code: d0 7c 08 84 d2 0f 85 50 06 00 00 8b 0d 75 73 03 05 85 c9 75 19 90 48 c7 c6 e0 a5 2c 8b 48 c7 c7 40 a4 2c 8b e8 79 6f 71 f6 90 <0f> 0b 90 90 90 e9 0d fe ff ff 4c 8d b5 60 ff ff ff 48 89 df 4c 89
RSP: 0018:ffffc900033be7b0 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffffe8ffad06a410 RCX: ffffc90028db3000
RDX: 0000000000040000 RSI: ffffffff81511296 RDI: 0000000000000001
RBP: ffffc900033be8d0 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 000000002d2d2d2d R12: 1ffff92000677d00
R13: 0000000000000002 R14: dffffc0000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff88802c000000(0063) knlGS:00000000f5e59b40
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 0000000031e2e000 CR3: 000000005bc08000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ext4_mb_group_or_file fs/ext4/mballoc.c:5788 [inline]
 ext4_mb_initialize_context+0x814/0xdf0 fs/ext4/mballoc.c:5832
 ext4_mb_new_blocks+0x96d/0x4e40 fs/ext4/mballoc.c:6206
 ext4_ext_map_blocks+0x1c24/0x5cd0 fs/ext4/extents.c:4318
 ext4_map_blocks+0x61d/0x17d0 fs/ext4/inode.c:623
 ext4_getblk+0x17f/0x8a0 fs/ext4/inode.c:833
 ext4_bread+0x2c/0x190 fs/ext4/inode.c:889
 ext4_quota_write+0x219/0x610 fs/ext4/super.c:7207
 write_blk+0x12e/0x220 fs/quota/quota_tree.c:70
 get_free_dqblk+0x104/0x2f0 fs/quota/quota_tree.c:136
 do_insert_tree+0x4e0/0x19e0 fs/quota/quota_tree.c:347
 do_insert_tree+0x67d/0x19e0 fs/quota/quota_tree.c:402
 do_insert_tree+0x144a/0x19e0 fs/quota/quota_tree.c:402
 do_insert_tree+0x144a/0x19e0 fs/quota/quota_tree.c:402
 dq_insert_tree fs/quota/quota_tree.c:432 [inline]
 qtree_write_dquot+0x248/0x660 fs/quota/quota_tree.c:451
 v2_write_dquot+0x1b1/0x2a0 fs/quota/quota_v2.c:372
 dquot_acquire+0x3a1/0x6f0 fs/quota/dquot.c:472
 ext4_acquire_dquot+0x27f/0x4e0 fs/ext4/super.c:6856
 dqget+0x691/0x1160 fs/quota/dquot.c:977
 __dquot_initialize+0x588/0xd50 fs/quota/dquot.c:1505
 ext4_create+0xa1/0x550 fs/ext4/namei.c:2823
 lookup_open.isra.0+0x10a1/0x13c0 fs/namei.c:3505
 open_last_lookups fs/namei.c:3574 [inline]
 path_openat+0x92f/0x29f0 fs/namei.c:3804
 do_filp_open+0x1dc/0x430 fs/namei.c:3834
 do_sys_openat2+0x17a/0x1e0 fs/open.c:1405
 do_sys_open fs/open.c:1420 [inline]
 __do_compat_sys_openat fs/open.c:1480 [inline]
 __se_compat_sys_openat fs/open.c:1478 [inline]
 __ia32_compat_sys_openat+0x16e/0x210 fs/open.c:1478
 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline]
 __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:386
 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:411
 entry_SYSENTER_compat_after_hwframe+0x84/0x8e
RIP: 0023:0xf7267579
Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00
RSP: 002b:00000000f5e595ac EFLAGS: 00000292 ORIG_RAX: 0000000000000127
RAX: ffffffffffffffda RBX: 00000000ffffff9c RCX: 0000000020000040
RDX: 00000000000000c1 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000292 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
----------------
Code disassembly (best guess), 2 bytes skipped:
   0:	10 06                	adc    %al,(%rsi)
   2:	03 74 b4 01          	add    0x1(%rsp,%rsi,4),%esi
   6:	10 07                	adc    %al,(%rdi)
   8:	03 74 b0 01          	add    0x1(%rax,%rsi,4),%esi
   c:	10 08                	adc    %cl,(%rax)
   e:	03 74 d8 01          	add    0x1(%rax,%rbx,8),%esi
  1e:	00 51 52             	add    %dl,0x52(%rcx)
  21:	55                   	push   %rbp
  22:	89 e5                	mov    %esp,%ebp
  24:	0f 34                	sysenter
  26:	cd 80                	int    $0x80
* 28:	5d                   	pop    %rbp <-- trapping instruction
  29:	5a                   	pop    %rdx
  2a:	59                   	pop    %rcx
  2b:	c3                   	ret
  2c:	90                   	nop
  2d:	90                   	nop
  2e:	90                   	nop
  2f:	90                   	nop
  30:	8d b4 26 00 00 00 00 	lea    0x0(%rsi,%riz,1),%esi
  37:	8d b4 26 00 00 00 00 	lea    0x0(%rsi,%riz,1),%esi

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/25 14:35 upstream 55027e689933 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in ext4_mb_initialize_context
2024/06/01 19:42 upstream cc8ed4d0a848 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in ext4_mb_initialize_context
* Struck through repros no longer work on HEAD.