BUG: unable to handle kernel paging request in dquot_add_inodes

9 views
Skip to first unread message

syzbot

unread,
Dec 20, 2020, 5:33:13 AM12/20/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 13d2ce42 Linux 4.19.163
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=17b60ca3500000
kernel config: https://syzkaller.appspot.com/x/.config?x=fac7c3360835a4e0
dashboard link: https://syzkaller.appspot.com/bug?extid=ff00c36846bd9999df0b
compiler: gcc (GCC) 10.1.0-syz 20200507

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+ff00c3...@syzkaller.appspotmail.com

Unknown ioctl 1077171216
EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue
Quota error (device loop2): qtree_write_dquot: Error -842571171 occurred while creating quota
Quota error (device loop2): qtree_write_dquot: Error -587202560 occurred while creating quota
device lo entered promiscuous mode
BUG: unable to handle kernel paging request at fffffbfffba0001b
PGD 23fff1067 P4D 23fff1067 PUD 23fff0067 PMD 0
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 11998 Comm: syz-executor.2 Not tainted 4.19.163-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__lock_acquire+0x1eb/0x3ff0 kernel/locking/lockdep.c:3294
Code: 2b 29 00 00 48 81 c4 98 01 00 00 44 89 f8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 b3 2a 00 00 49 81 3e e0 51 66 8c 0f 84 65 ff ff
RSP: 0018:ffff8880420e75a0 EFLAGS: 00010806
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 1ffffffffba0001b RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000000
R13: ffff888094706100 R14: ffffffffdd0000d8 R15: 0000000000000001
FS: 00007f6177f91700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffbfffba0001b CR3: 0000000095791000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
Y�4��`Ҙ: renamed from lo
lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3907
__raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline]
_raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:144
spin_lock include/linux/spinlock.h:329 [inline]
dquot_add_inodes+0x34/0x9a0 fs/quota/dquot.c:1263
__dquot_transfer+0xf3a/0x18a0 fs/quota/dquot.c:1994
dquot_transfer+0x2ee/0x4bb fs/quota/dquot.c:2100
ext4_setattr+0x58a/0x2560 fs/ext4/inode.c:5596
notify_change+0x70b/0xfc0 fs/attr.c:334
chown_common+0x4a9/0x550 fs/open.c:651
do_fchownat+0x126/0x1e0 fs/open.c:681
__do_sys_lchown fs/open.c:706 [inline]
__se_sys_lchown fs/open.c:704 [inline]
__x64_sys_lchown+0x7a/0xc0 fs/open.c:704
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45e149
Code: 0d b4 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 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f6177f90c68 EFLAGS: 00000246 ORIG_RAX: 000000000000005e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045e149
RDX: 000000000000ee00 RSI: 000000000000ee01 RDI: 00000000200000c0
RBP: 000000000119bfc0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119bf8c
R13: 00007ffd394db8df R14: 00007f6177f919c0 R15: 000000000119bf8c
Modules linked in:
CR2: fffffbfffba0001b
---[ end trace 5e7a1874084f402b ]---
RIP: 0010:__lock_acquire+0x1eb/0x3ff0 kernel/locking/lockdep.c:3294
Code: 2b 29 00 00 48 81 c4 98 01 00 00 44 89 f8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 b3 2a 00 00 49 81 3e e0 51 66 8c 0f 84 65 ff ff
RSP: 0018:ffff8880420e75a0 EFLAGS: 00010806
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 1ffffffffba0001b RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000000
R13: ffff888094706100 R14: ffffffffdd0000d8 R15: 0000000000000001
FS: 00007f6177f91700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffbfffba0001b CR3: 0000000095791000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Dec 20, 2020, 5:58:12 AM12/20/20
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 13d2ce42 Linux 4.19.163
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1670f8a7500000
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11c33e0f500000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=179aaecb500000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+ff00c3...@syzkaller.appspotmail.com

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
PGD 23fff1067 P4D 23fff1067 PUD 23fff0067 PMD 0
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8083 Comm: syz-executor902 Not tainted 4.19.163-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__lock_acquire+0x1eb/0x3ff0 kernel/locking/lockdep.c:3294
Code: 2b 29 00 00 48 81 c4 98 01 00 00 44 89 f8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 b3 2a 00 00 49 81 3e e0 51 66 8c 0f 84 65 ff ff
RSP: 0018:ffff88809d2ef5a0 EFLAGS: 00010806
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 1ffffffffba0001b RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880b2988040 R14: ffffffffdd0000d8 R15: 0000000000000001
FS: 0000000000fd5880(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffbfffba0001b CR3: 00000000aa7c8000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3907
__raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline]
_raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:144
spin_lock include/linux/spinlock.h:329 [inline]
dquot_add_inodes+0x34/0x9a0 fs/quota/dquot.c:1263
__dquot_transfer+0xf3a/0x18a0 fs/quota/dquot.c:1994
dquot_transfer+0x2ee/0x4bb fs/quota/dquot.c:2100
ext4_setattr+0x58a/0x2560 fs/ext4/inode.c:5596
notify_change+0x70b/0xfc0 fs/attr.c:334
chown_common+0x4a9/0x550 fs/open.c:651
do_fchownat+0x126/0x1e0 fs/open.c:681
__do_sys_lchown fs/open.c:706 [inline]
__se_sys_lchown fs/open.c:704 [inline]
__x64_sys_lchown+0x7a/0xc0 fs/open.c:704
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4446b9
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:00007ffeefaf3a18 EFLAGS: 00000246 ORIG_RAX: 000000000000005e
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00000000004446b9
RDX: 000000000000ee00 RSI: 000000000000ee01 RDI: 00000000200000c0
RBP: 00000000006cf018 R08: 0000000000000000 R09: 0000000000000000
R10: 00007ffeefaf38d0 R11: 0000000000000246 R12: 00000000004022a0
R13: 0000000000402330 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
CR2: fffffbfffba0001b
---[ end trace 4035129ab690c247 ]---
RIP: 0010:__lock_acquire+0x1eb/0x3ff0 kernel/locking/lockdep.c:3294
Code: 2b 29 00 00 48 81 c4 98 01 00 00 44 89 f8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 b3 2a 00 00 49 81 3e e0 51 66 8c 0f 84 65 ff ff
RSP: 0018:ffff88809d2ef5a0 EFLAGS: 00010806
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 1ffffffffba0001b RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880b2988040 R14: ffffffffdd0000d8 R15: 0000000000000001
FS: 0000000000fd5880(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffbfffba0001b CR3: 00000000aa7c8000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Reply all
Reply to author
Forward
0 new messages