syzbot


BUG: unable to handle kernel paging request in dqput

Status: fixed on 2021/01/12 18:45
Reported-by: syzbot+ccb97de0f3007739c39c@syzkaller.appspotmail.com
Fix commit: 7bae84821b47 quota: Sanity-check quota file headers on load
First crash: 1531d, last: 1462d
Fix bisection: fixed by (bisect log) :
commit 7bae84821b47e2ffa87a7afcb6891dd7e61c65ef
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
linux-4.19 BUG: unable to handle kernel paging request in dqput (2) C error 5 732d 825d 0/1 upstream: reported C repro on 2022/09/11 16:38
android-54 BUG: unable to handle kernel paging request in dqput C 14 1448d 1543d 0/2 auto-obsoleted due to no activity on 2023/04/17 15:54
linux-4.14 BUG: unable to handle kernel paging request in dqput C done 9 1453d 1542d 1/1 fixed on 2021/01/22 19:25
upstream BUG: unable to handle kernel paging request in dqput ext4 C done 7 1470d 1539d 19/28 fixed on 2021/03/10 01:48

Sample crash report:
audit: type=1400 audit(1602829836.250:8): avc:  denied  { execmem } for  pid=6490 comm="syz-executor001" 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 -669470953 occurred while creating quota
Quota error (device loop0): qtree_write_dquot: Error -1224736762 occurred while creating quota
EXT4-fs error (device loop0): __ext4_new_inode:922: comm syz-executor001: reserved inode found cleared - inode=1
BUG: unable to handle kernel paging request at fffffbfff6e0001f
PGD 21ffed067 P4D 21ffed067 PUD 21ffec067 PMD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 6490 Comm: syz-executor001 Not tainted 4.19.150-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:bytes_is_nonzero mm/kasan/kasan.c:167 [inline]
RIP: 0010:memory_is_nonzero mm/kasan/kasan.c:184 [inline]
RIP: 0010:memory_is_poisoned_n mm/kasan/kasan.c:210 [inline]
RIP: 0010:memory_is_poisoned mm/kasan/kasan.c:241 [inline]
RIP: 0010:check_memory_region_inline mm/kasan/kasan.c:257 [inline]
RIP: 0010:check_memory_region+0xc8/0x170 mm/kasan/kasan.c:267
Code: 39 d0 74 0e 80 38 00 74 f2 48 85 c0 0f 85 9c 00 00 00 5b 5d 41 5c c3 48 85 d2 74 f6 48 01 ea eb 09 48 83 c0 01 48 39 d0 74 e8 <80> 38 00 74 f2 eb d8 41 bc 08 00 00 00 48 89 ea 45 29 dc 4e 8d 5c
RSP: 0018:ffff888094d37710 EFLAGS: 00010296
RAX: fffffbfff6e0001f RBX: fffffbfff6e00021 RCX: ffffffff81d2475e
RDX: fffffbfff6e00021 RSI: 0000000000000004 RDI: ffffffffb70000fe
RBP: fffffbfff6e0001f R08: 0000000000000000 R09: fffffbfff6e00020
R10: ffffffffb7000101 R11: 0000000000000001 R12: ffffffffb70000fe
R13: 0000000000000009 R14: fffffbfff6e0001f R15: ffff8880a6118080
FS:  000000000091d880(0000) GS:ffff8880ae200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffbfff6e0001f CR3: 000000009133f000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 atomic_read include/asm-generic/atomic-instrumented.h:21 [inline]
 dqput.part.0+0xae/0x850 fs/quota/dquot.c:765
 dqput fs/quota/dquot.c:752 [inline]
 dqput_all fs/quota/dquot.c:391 [inline]
 __dquot_drop+0x1c6/0x2a0 fs/quota/dquot.c:1568
 dquot_drop+0x14b/0x1a0 fs/quota/dquot.c:1593
 __ext4_new_inode+0x3016/0x5e40 fs/ext4/ialloc.c:1200
 ext4_tmpfile+0x208/0x480 fs/ext4/namei.c:2549
 vfs_tmpfile+0x12c/0x280 fs/namei.c:3456
 do_tmpfile fs/namei.c:3488 [inline]
 path_openat+0x1e85/0x2e90 fs/namei.c:3531
 do_filp_open+0x18c/0x3f0 fs/namei.c:3567
 do_sys_open+0x3b3/0x520 fs/open.c:1085
 do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x444969
Code: 8d d7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 5b d7 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fff3f1b2888 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 0000000000444969
RDX: 0000000000410481 RSI: 0000000020000000 RDI: ffffffffffffff9c
RBP: 00000000006cf018 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402550
R13: 00000000004025e0 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
CR2: fffffbfff6e0001f
---[ end trace 4e9dbc8156a81e19 ]---
RIP: 0010:bytes_is_nonzero mm/kasan/kasan.c:167 [inline]
RIP: 0010:memory_is_nonzero mm/kasan/kasan.c:184 [inline]
RIP: 0010:memory_is_poisoned_n mm/kasan/kasan.c:210 [inline]
RIP: 0010:memory_is_poisoned mm/kasan/kasan.c:241 [inline]
RIP: 0010:check_memory_region_inline mm/kasan/kasan.c:257 [inline]
RIP: 0010:check_memory_region+0xc8/0x170 mm/kasan/kasan.c:267
Code: 39 d0 74 0e 80 38 00 74 f2 48 85 c0 0f 85 9c 00 00 00 5b 5d 41 5c c3 48 85 d2 74 f6 48 01 ea eb 09 48 83 c0 01 48 39 d0 74 e8 <80> 38 00 74 f2 eb d8 41 bc 08 00 00 00 48 89 ea 45 29 dc 4e 8d 5c
RSP: 0018:ffff888094d37710 EFLAGS: 00010296
RAX: fffffbfff6e0001f RBX: fffffbfff6e00021 RCX: ffffffff81d2475e
RDX: fffffbfff6e00021 RSI: 0000000000000004 RDI: ffffffffb70000fe
RBP: fffffbfff6e0001f R08: 0000000000000000 R09: fffffbfff6e00020
R10: ffffffffb7000101 R11: 0000000000000001 R12: ffffffffb70000fe
R13: 0000000000000009 R14: fffffbfff6e0001f R15: ffff8880a6118080
FS:  000000000091d880(0000) GS:ffff8880ae200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffbfff6e0001f CR3: 000000009133f000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/10/16 06:32 linux-4.19.y a1b977b49b66 6e262c73 .config console log report syz C ci2-linux-4-19
2020/10/14 06:32 linux-4.19.y a1b977b49b66 fc7735a2 .config console log report syz C ci2-linux-4-19
2020/10/05 10:28 linux-4.19.y b09c34517e1a 5ef9c291 .config console log report syz C ci2-linux-4-19
2020/12/13 14:10 linux-4.19.y 13d2ce42de8c bca53db9 .config console log report info ci2-linux-4-19
2020/12/11 06:55 linux-4.19.y 4abf26854aad f900b48c .config console log report info ci2-linux-4-19
2020/11/30 00:36 linux-4.19.y 0c88e405c97e a0092f9d .config console log report info ci2-linux-4-19
2020/11/19 17:33 linux-4.19.y 2c746135a12e 0767f13f .config console log report info ci2-linux-4-19
2020/10/28 20:24 linux-4.19.y ad326970d25c f24824d3 .config console log report info ci2-linux-4-19
* Struck through repros no longer work on HEAD.