syzbot


BUG: unable to handle kernel paging request in dqput

Status: fixed on 2021/01/22 19:25
Reported-by: syzbot+b261701f02d8a7b36733@syzkaller.appspotmail.com
Fix commit: a9c625fcddc0 quota: Sanity-check quota file headers on load
First crash: 1309d, last: 1219d
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
linux-4.19 BUG: unable to handle kernel paging request in dqput (2) C error 5 498d 591d 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 1214d 1310d 0/2 auto-obsoleted due to no activity on 2023/04/17 15:54
upstream BUG: unable to handle kernel paging request in dqput ext4 C done 7 1236d 1306d 19/26 fixed on 2021/03/10 01:48
linux-4.19 BUG: unable to handle kernel paging request in dqput C done 8 1228d 1297d 1/1 fixed on 2021/01/12 18:45
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2021/01/21 10:38 2h41m bisect fix linux-4.14.y job log (1)
2020/11/03 05:24 23m bisect fix linux-4.14.y job log (0) log

Sample crash report:
audit: type=1400 audit(1601788986.527:8): avc:  denied  { execmem } for  pid=6357 comm="syz-executor467" 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:930: comm syz-executor467: reserved inode found cleared - inode=1
BUG: unable to handle kernel paging request at fffffbfff6e0001f
IP: __read_once_size include/linux/compiler.h:183 [inline]
IP: atomic_read arch/x86/include/asm/atomic.h:27 [inline]
IP: dqput.part.0+0x9d/0x750 fs/quota/dquot.c:761
PGD 21ffec067 P4D 21ffec067 PUD 21ffeb067 PMD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 6357 Comm: syz-executor467 Not tainted 4.14.198-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8880980403c0 task.stack: ffff88808a828000
RIP: 0010:__read_once_size include/linux/compiler.h:183 [inline]
RIP: 0010:atomic_read arch/x86/include/asm/atomic.h:27 [inline]
RIP: 0010:dqput.part.0+0x9d/0x750 fs/quota/dquot.c:761
RSP: 0018:ffff88808a82f7d8 EFLAGS: 00010292
RAX: dffffc0000000000 RBX: ffffffffb7000006 RCX: 0000000000001a37
RDX: 1ffffffff0f82502 RSI: 0000000000000001 RDI: ffffffff87c12804
RBP: dffffc0000000000 R08: ffffffff8a089b38 R09: 00000000000401ca
R10: ffff888098040c70 R11: ffff8880980403c0 R12: 0000000000000009
R13: fffffbfff6e0001f R14: ffffffffb700011e R15: ffffffffb70000fe
FS:  0000000000bb6880(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffbfff6e0001f CR3: 000000008a0ef000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 dqput fs/quota/dquot.c:748 [inline]
 dqput_all fs/quota/dquot.c:391 [inline]
 __dquot_drop+0x193/0x250 fs/quota/dquot.c:1564
 dquot_drop fs/quota/dquot.c:1589 [inline]
 dquot_drop+0x13e/0x190 fs/quota/dquot.c:1567
 __ext4_new_inode+0x276d/0x4eb0 fs/ext4/ialloc.c:1206
 ext4_tmpfile+0x1bf/0x3e0 fs/ext4/namei.c:2558
 vfs_tmpfile+0x1ef/0x330 fs/namei.c:3468
 do_tmpfile fs/namei.c:3500 [inline]
 path_openat+0x1612/0x2970 fs/namei.c:3552
 do_filp_open+0x179/0x3c0 fs/namei.c:3603
 do_sys_open+0x296/0x410 fs/open.c:1081
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x444969
RSP: 002b:00007ffdb50a47c8 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
Code: 8d b3 18 01 00 00 49 c1 ed 03 41 83 e4 07 49 01 ed 41 83 c4 03 e8 a4 82 70 01 e8 7f 82 b7 ff 48 c7 c7 00 28 c1 87 e8 13 78 b1 04 <41> 0f b6 45 00 41 38 c4 7c 08 84 c0 0f 85 cf 04 00 00 8b 83 f8 
RIP: __read_once_size include/linux/compiler.h:183 [inline] RSP: ffff88808a82f7d8
RIP: atomic_read arch/x86/include/asm/atomic.h:27 [inline] RSP: ffff88808a82f7d8
RIP: dqput.part.0+0x9d/0x750 fs/quota/dquot.c:761 RSP: ffff88808a82f7d8
CR2: fffffbfff6e0001f
---[ end trace c9e094165095d80a ]---

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/10/04 05:24 linux-4.14.y cbfa1702aaf6 1a3f9408 .config console log report syz C ci2-linux-4-14
2020/10/02 00:29 linux-4.14.y cbfa1702aaf6 9602ddf4 .config console log report syz C ci2-linux-4-14
2020/09/23 18:11 linux-4.14.y cbfa1702aaf6 287cd75a .config console log report syz C ci2-linux-4-14
2020/12/22 09:33 linux-4.14.y 3f2ecb86cb90 04201c06 .config console log report info ci2-linux-4-14
2020/12/06 15:55 linux-4.14.y c196b3a9c83a f12ba0c5 .config console log report info ci2-linux-4-14
2020/11/17 17:31 linux-4.14.y 27ce4f2a6817 bd2a760b .config console log report info ci2-linux-4-14
2020/11/17 02:02 linux-4.14.y 27ce4f2a6817 1bf9a662 .config console log report info ci2-linux-4-14
2020/09/29 10:22 linux-4.14.y cbfa1702aaf6 1b88c6d5 .config console log report info ci2-linux-4-14
2020/09/23 17:47 linux-4.14.y cbfa1702aaf6 287cd75a .config console log report info ci2-linux-4-14
* Struck through repros no longer work on HEAD.