BUG: unable to handle kernel paging request in __dquot_transfer

6 views
Skip to first unread message

syzbot

unread,
Apr 29, 2022, 8:11:22 PM4/29/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11c8dc36f00000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=fdc6a55e70789f9c6e68
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

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+fdc6a5...@syzkaller.appspotmail.com

EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue
Quota error (device loop2): qtree_write_dquot: Error -884885875 occurred while creating quota
BUG: unable to handle kernel paging request at fffffbfff96836ec
PGD 23fff1067 P4D 23fff1067 PUD 23fff0067 PMD 0
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 16884 Comm: syz-executor.2 Not tainted 4.19.211-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:3295
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 20 f2 66 8c 0f 84 65 ff ff
RSP: 0018:ffff888092fa7608 EFLAGS: 00010803
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 1ffffffff96836ec RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: ffff888095a0e640 R14: ffffffffcb41b765 R15: 0000000000000001
FS: 00007f8b68d23700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffbfff96836ec CR3: 00000000a8b61000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908
__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_transfer+0x5de/0x18a0 fs/quota/dquot.c:2016
dquot_transfer+0x2ee/0x4c0 fs/quota/dquot.c:2100
ext4_setattr+0x58a/0x2560 fs/ext4/inode.c:5604
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:0x7f8b6a3ae0e9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8b68d23168 EFLAGS: 00000246 ORIG_RAX: 000000000000005e
RAX: ffffffffffffffda RBX: 00007f8b6a4c0f60 RCX: 00007f8b6a3ae0e9
RDX: 00000000ffffff00 RSI: 0000000000000000 RDI: 0000000020000000
RBP: 00007f8b6a40808d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff2bef6adf R14: 00007f8b68d23300 R15: 0000000000022000
Modules linked in:
CR2: fffffbfff96836ec
---[ end trace 051507e89bc8dfa7 ]---
RIP: 0010:__lock_acquire+0x1eb/0x3ff0 kernel/locking/lockdep.c:3295
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 20 f2 66 8c 0f 84 65 ff ff
RSP: 0018:ffff888092fa7608 EFLAGS: 00010803
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 1ffffffff96836ec RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: ffff888095a0e640 R14: ffffffffcb41b765 R15: 0000000000000001
FS: 00007f8b68d23700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffbfff96836ec CR3: 00000000a8b61000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 2b 29 sub (%rcx),%ebp
2: 00 00 add %al,(%rax)
4: 48 81 c4 98 01 00 00 add $0x198,%rsp
b: 44 89 f8 mov %r15d,%eax
e: 5b pop %rbx
f: 5d pop %rbp
10: 41 5c pop %r12
12: 41 5d pop %r13
14: 41 5e pop %r14
16: 41 5f pop %r15
18: c3 retq
19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
20: fc ff df
23: 4c 89 f2 mov %r14,%rdx
26: 48 c1 ea 03 shr $0x3,%rdx
* 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction
2e: 0f 85 b3 2a 00 00 jne 0x2ae7
34: 49 81 3e 20 f2 66 8c cmpq $0xffffffff8c66f220,(%r14)
3b: 0f .byte 0xf
3c: 84 65 ff test %ah,-0x1(%rbp)
3f: ff .byte 0xff


---
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,
Apr 29, 2022, 8:43:27 PM4/29/22
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=128f3b4af00000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=fdc6a55e70789f9c6e68
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=105dc5baf00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11bf5f8cf00000

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

EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue
Quota error (device loop0): qtree_write_dquot: Error -884885875 occurred while creating quota
BUG: unable to handle kernel paging request at fffffbfff96836ec
PGD 23fff1067 P4D 23fff1067 PUD 23fff0067 PMD 0
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8086 Comm: syz-executor396 Not tainted 4.19.211-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:3295
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 20 f2 66 8c 0f 84 65 ff ff
RSP: 0018:ffff88808d0d7608 EFLAGS: 00010803
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 1ffffffff96836ec RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880b34f0080 R14: ffffffffcb41b765 R15: 0000000000000001
FS: 00005555571cd300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffbfff96836ec CR3: 00000000ab871000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908
__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_transfer+0x5de/0x18a0 fs/quota/dquot.c:2016
dquot_transfer+0x2ee/0x4c0 fs/quota/dquot.c:2100
ext4_setattr+0x58a/0x2560 fs/ext4/inode.c:5604
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:0x7f1c68b4e2f9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff28b1cb08 EFLAGS: 00000246 ORIG_RAX: 000000000000005e
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f1c68b4e2f9
RDX: 00000000ffffff00 RSI: 0000000000000000 RDI: 0000000020000000
RBP: 00007f1c68b0db90 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f1c68b0dc20
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
CR2: fffffbfff96836ec
---[ end trace bb0f07aea1715838 ]---
RIP: 0010:__lock_acquire+0x1eb/0x3ff0 kernel/locking/lockdep.c:3295
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 20 f2 66 8c 0f 84 65 ff ff
RSP: 0018:ffff88808d0d7608 EFLAGS: 00010803
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 1ffffffff96836ec RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880b34f0080 R14: ffffffffcb41b765 R15: 0000000000000001
FS: 00005555571cd300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffbfff96836ec CR3: 00000000ab871000 CR4: 00000000003406e0
Reply all
Reply to author
Forward
0 new messages