syzbot


BUG: unable to handle kernel paging request in dquot_add_inodes

Status: fixed on 2021/01/23 16:49
Reported-by: syzbot+0cd189ef1a1d4a7d13da@syzkaller.appspotmail.com
Fix commit: a9c625fcddc0 quota: Sanity-check quota file headers on load
First crash: 1212d, last: 1191d
Fix bisection: fixed by (bisect log) :
commit a9c625fcddc078624e1e7a673443b29c71be3431
Author: Jan Kara <jack@suse.cz>
Date: Mon Nov 2 15:16:29 2020 +0000

  quota: Sanity-check quota file headers on load

  
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel paging request in dquot_add_inodes fs 1 525d 525d 0/26 auto-obsoleted due to no activity on 2023/02/18 11:50
linux-4.19 BUG: unable to handle kernel paging request in dquot_add_inodes C unreliable 9 451d 1195d 0/1 upstream: reported C repro on 2020/12/20 10:33
android-54 BUG: unable to handle kernel paging request in dquot_add_inodes C 3 864d 1205d 0/2 auto-obsoleted due to no activity on 2023/04/22 02:16

Sample crash report:
EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue
Quota error (device loop0): qtree_write_dquot: Error -842571171 occurred while creating quota
Quota error (device loop0): qtree_write_dquot: Error -587202560 occurred while creating quota
BUG: unable to handle kernel paging request at fffffbfffba0001b
IP: __lock_acquire+0x1cc/0x3f20 kernel/locking/lockdep.c:3369
PGD 23fff0067 P4D 23fff0067 PUD 23ffef067 PMD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 7978 Comm: syz-executor389 Not tainted 4.14.212-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8880b459a580 task.stack: ffff8880b3228000
RIP: 0010:__lock_acquire+0x1cc/0x3f20 kernel/locking/lockdep.c:3369
RSP: 0018:ffff8880b322f660 EFLAGS: 00010806
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 1ffffffffba0001b RSI: 0000000000000000 RDI: ffffffffdd0000d8
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: ffff8880b459a580 R12: ffffffffdd0000d8
R13: 0000000000000000 R14: 0000000000000001 R15: ffffffff8beb4d40
FS:  0000000002548880(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffbfffba0001b CR3: 00000000b305a000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998
 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline]
 _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:152
 spin_lock include/linux/spinlock.h:317 [inline]
 dquot_add_inodes+0x34/0x870 fs/quota/dquot.c:1259
 __dquot_transfer+0xdb2/0x16d0 fs/quota/dquot.c:1990
 dquot_transfer+0x25a/0x3e6 fs/quota/dquot.c:2096
 ext4_setattr+0x3ba/0x22f0 fs/ext4/inode.c:5455
 notify_change+0x56b/0xd10 fs/attr.c:313
 chown_common+0x40b/0x4b0 fs/open.c:631
 SYSC_fchownat fs/open.c:661 [inline]
 SyS_fchownat+0xf6/0x190 fs/open.c:641
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x4446b9
RSP: 002b:00007ffe1ee5d658 EFLAGS: 00000246 ORIG_RAX: 000000000000005e
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00000000004446b9
RDX: 000000000000ee00 RSI: 000000000000ee01 RDI: 00000000200000c0
RBP: 00000000006cf018 R08: 0000000000000000 R09: 0000000000000000
R10: 00007ffe1ee5d510 R11: 0000000000000246 R12: 00000000004022a0
R13: 0000000000402330 R14: 0000000000000000 R15: 0000000000000000
Code: 18 00 00 00 00 48 81 c4 80 01 00 00 44 89 e8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 67 2a 00 00 49 81 3c 24 a0 07 2e 8b 0f 84 5f 
RIP: __lock_acquire+0x1cc/0x3f20 kernel/locking/lockdep.c:3369 RSP: ffff8880b322f660
CR2: fffffbfffba0001b
---[ end trace b0bf93c7626fd494 ]---

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/12/24 13:47 linux-4.14.y 3f2ecb86cb90 c2c1d1dd .config console log report syz C ci2-linux-4-14
2020/12/02 15:41 linux-4.14.y c196b3a9c83a eff43e99 .config console log report syz C ci2-linux-4-14
* Struck through repros no longer work on HEAD.