syzbot


BUG: unable to handle kernel paging request in dquot_add_space

Status: fixed on 2020/12/30 01:29
Reported-by: syzbot+1085dec0e2097c537d0b@syzkaller.appspotmail.com
Fix commit: a9c625fcddc0 quota: Sanity-check quota file headers on load
First crash: 1275d, last: 1215d
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 (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel paging request in dquot_add_space fs 1 526d 525d 0/26 auto-obsoleted due to no activity on 2023/02/16 21:02
android-54 BUG: unable to handle kernel paging request in dquot_add_space C 1 1283d 1283d 0/2 auto-obsoleted due to no activity on 2023/04/16 14:55
linux-4.19 BUG: unable to handle kernel paging request in dquot_add_space C done 1 1202d 1262d 1/1 fixed on 2021/01/12 18:45
linux-4.19 BUG: unable to handle kernel paging request in dquot_add_space (2) C error 11 563d 599d 0/1 upstream: reported C repro on 2022/08/07 13:53
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2020/12/29 20:19 3h04m bisect fix linux-4.14.y job log (1)
2020/11/29 14:32 27m bisect fix linux-4.14.y job log (0) log
2020/10/30 12:36 22m bisect fix linux-4.14.y job log (0) log

Sample crash report:
audit: type=1400 audit(1601468350.152:8): avc:  denied  { execmem } for  pid=6365 comm="syz-executor918" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process permissive=1
EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue
Quota error (device loop0): qtree_write_dquot: Error -927940090 occurred while creating quota
BUG: unable to handle kernel paging request at fffffbfff9161860
IP: dquot_add_space+0x45/0xfb0 fs/quota/dquot.c:1303
PGD 21ffec067 P4D 21ffec067 PUD 21ffeb067 PMD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 6365 Comm: syz-executor918 Not tainted 4.14.198-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8880899b4080 task.stack: ffff8880985e0000
RIP: 0010:dquot_add_space+0x45/0xfb0 fs/quota/dquot.c:1303
RSP: 0018:ffff8880985e7318 EFLAGS: 00010a07
RAX: dffffc0000000000 RBX: ffff8880985e7428 RCX: 0000000000000001
RDX: 1ffffffff9161860 RSI: 0000000000000400 RDI: ffffffffc8b0c206
RBP: 0000000000000000 R08: ffff8880985e7428 R09: 0000000000000000
R10: 0000000000000002 R11: ffff8880899b4080 R12: ffff888082670998
R13: ffffffffc8b0c206 R14: ffffffffc8b0c206 R15: ffff8880985e7428
FS:  0000000001851880(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffbfff9161860 CR3: 00000000a5478000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __dquot_alloc_space+0x461/0x7b0 fs/quota/dquot.c:1668
 dquot_alloc_space_nodirty include/linux/quotaops.h:295 [inline]
 dquot_alloc_space include/linux/quotaops.h:308 [inline]
 dquot_alloc_block include/linux/quotaops.h:332 [inline]
 ext4_mb_new_blocks+0x4ac/0x3db0 fs/ext4/mballoc.c:4561
 ext4_new_meta_blocks+0x197/0x2e0 fs/ext4/balloc.c:677
 ext4_xattr_block_set+0xd2b/0x2af0 fs/ext4/xattr.c:2074
 ext4_xattr_set_handle+0x839/0xd20 fs/ext4/xattr.c:2410
 ext4_xattr_set+0x118/0x230 fs/ext4/xattr.c:2510
 __vfs_setxattr+0xdc/0x130 fs/xattr.c:150
 __vfs_setxattr_noperm+0xfd/0x3d0 fs/xattr.c:181
 __vfs_setxattr_locked+0x14d/0x250 fs/xattr.c:239
 vfs_setxattr+0xcf/0x230 fs/xattr.c:256
 setxattr+0x1a9/0x300 fs/xattr.c:523
 path_setxattr+0x118/0x130 fs/xattr.c:542
 SYSC_setxattr fs/xattr.c:557 [inline]
 SyS_setxattr+0x36/0x50 fs/xattr.c:553
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x444709
RSP: 002b:00007ffc70d13908 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 0000000000444709
RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000020000040
RBP: 00000000006cf018 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004022f0
R13: 0000000000402380 R14: 0000000000000000 R15: 0000000000000000
Code: 89 4c 24 3c 4c 89 44 24 28 e8 58 e2 b6 ff 49 8d 85 00 01 00 00 48 89 c2 48 89 44 24 30 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 c6 0b 00 00 4d 8d a5 c0 00 00 00 49 8b 9d 00 
RIP: dquot_add_space+0x45/0xfb0 fs/quota/dquot.c:1303 RSP: ffff8880985e7318
CR2: fffffbfff9161860
---[ end trace c419967b1cda59f7 ]---

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/09/30 12:20 linux-4.14.y cbfa1702aaf6 8516f6d3 .config console log report syz C ci2-linux-4-14
* Struck through repros no longer work on HEAD.