BUG: unable to handle kernel paging request in dquot_add_space (2)

5 views
Skip to first unread message

syzbot

unread,
Aug 7, 2022, 9:53:29 AM8/7/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=17ee2f86080000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=0d3866fe3a3c815a1398
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+0d3866...@syzkaller.appspotmail.com

gfs2: commit mount option requires a positive numeric argument
gfs2: can't parse mount arguments
EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue
Quota error (device loop4): qtree_write_dquot: Error -1079867134 occurred while creating quota
BUG: unable to handle kernel paging request at fffffbfff7f45140
PGD 23fff1067 P4D 23fff1067 PUD 23fff0067 PMD 0
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 7017 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
RIP: 0010:dquot_add_space+0x45/0x10e0 fs/quota/dquot.c:1307
Code: 4c 24 3c 4c 89 44 24 28 e8 f8 a8 a3 ff 48 8d 83 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 43 0d 00 00 4c 8d b3 c0 00 00 00 4c 8b ab 00 01
RSP: 0018:ffff88802f2270b0 EFLAGS: 00010a02
RAX: dffffc0000000000 RBX: ffffffffbfa28902 RCX: ffffc9000895a000
RDX: 1ffffffff7f45140 RSI: ffffffff81bedc78 RDI: ffffffffbfa28902
RBP: ffff88802f2271d8 R08: ffff88802f2271d8 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000001
R13: ffff8880adf32a98 R14: 0000000000000000 R15: ffffffffbfa28902
FS: 00007f0c74e00700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffbfff7f45140 CR3: 000000009bfa2000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__dquot_alloc_space+0x4f5/0x860 fs/quota/dquot.c:1672
dquot_alloc_space_nodirty include/linux/quotaops.h:298 [inline]
dquot_alloc_space include/linux/quotaops.h:311 [inline]
dquot_alloc_block include/linux/quotaops.h:335 [inline]
ext4_mb_new_blocks+0x58c/0x4370 fs/ext4/mballoc.c:4534
ext4_new_meta_blocks+0x1d9/0x320 fs/ext4/balloc.c:665
ext4_xattr_block_set+0x12a2/0x2eb0 fs/ext4/xattr.c:2078
ext4_xattr_set_handle+0xa1f/0x1030 fs/ext4/xattr.c:2415
__ext4_set_acl+0x338/0x570 fs/ext4/acl.c:214
ext4_set_acl+0x27d/0x4a0 fs/ext4/acl.c:254
set_posix_acl+0x220/0x2d0 fs/posix_acl.c:874
posix_acl_xattr_set+0x90/0x140 fs/posix_acl.c:892
__vfs_setxattr+0x10e/0x170 fs/xattr.c:149
__vfs_setxattr_noperm+0x11a/0x420 fs/xattr.c:180
__vfs_setxattr_locked+0x176/0x250 fs/xattr.c:238
vfs_setxattr+0xe5/0x270 fs/xattr.c:255
setxattr+0x23d/0x330 fs/xattr.c:520
path_setxattr+0x170/0x190 fs/xattr.c:539
__do_sys_setxattr fs/xattr.c:554 [inline]
__se_sys_setxattr fs/xattr.c:550 [inline]
__x64_sys_setxattr+0xc0/0x160 fs/xattr.c:550
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
ieee80211 phy1634: Selected rate control algorithm 'minstrel_ht'
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f0c7648b279
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:00007f0c74e00168 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc
RAX: ffffffffffffffda RBX: 00007f0c7659df80 RCX: 00007f0c7648b279
RDX: 0000000020000300 RSI: 0000000020000140 RDI: 0000000020000100
RBP: 00007f0c764e5189 R08: 0000000000000002 R09: 0000000000000000
R10: 0000000000000074 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffcc4c32a9f R14: 00007f0c74e00300 R15: 0000000000022000
Modules linked in:
CR2: fffffbfff7f45140
---[ end trace 34ffa2f3db1c7148 ]---
RIP: 0010:dquot_add_space+0x45/0x10e0 fs/quota/dquot.c:1307
Code: 4c 24 3c 4c 89 44 24 28 e8 f8 a8 a3 ff 48 8d 83 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 43 0d 00 00 4c 8d b3 c0 00 00 00 4c 8b ab 00 01
RSP: 0018:ffff88802f2270b0 EFLAGS: 00010a02
RAX: dffffc0000000000 RBX: ffffffffbfa28902 RCX: ffffc9000895a000
RDX: 1ffffffff7f45140 RSI: ffffffff81bedc78 RDI: ffffffffbfa28902
RBP: ffff88802f2271d8 R08: ffff88802f2271d8 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000001
R13: ffff8880adf32a98 R14: 0000000000000000 R15: ffffffffbfa28902
FS: 00007f0c74e00700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffbfff7f45140 CR3: 000000009bfa2000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 4c 24 3c rex.WR and $0x3c,%al
3: 4c 89 44 24 28 mov %r8,0x28(%rsp)
8: e8 f8 a8 a3 ff callq 0xffa3a905
d: 48 8d 83 00 01 00 00 lea 0x100(%rbx),%rax
14: 48 89 c2 mov %rax,%rdx
17: 48 89 44 24 30 mov %rax,0x30(%rsp)
1c: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
23: fc ff df
26: 48 c1 ea 03 shr $0x3,%rdx
* 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction
2e: 0f 85 43 0d 00 00 jne 0xd77
34: 4c 8d b3 c0 00 00 00 lea 0xc0(%rbx),%r14
3b: 4c rex.WR
3c: 8b .byte 0x8b
3d: ab stos %eax,%es:(%rdi)
3e: 00 01 add %al,(%rcx)


---
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,
Aug 7, 2022, 10:29:32 AM8/7/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=1672a6e1080000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=0d3866fe3a3c815a1398
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14f34d46080000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14d2d761080000

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

EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue
Quota error (device loop0): qtree_write_dquot: Error -1079867134 occurred while creating quota
BUG: unable to handle kernel paging request at fffffbfff7f45140
PGD 23fff1067 P4D 23fff1067 PUD 23fff0067 PMD 0
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8076 Comm: syz-executor123 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
RIP: 0010:dquot_add_space+0x45/0x10e0 fs/quota/dquot.c:1307
Code: 4c 24 3c 4c 89 44 24 28 e8 f8 a8 a3 ff 48 8d 83 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 43 0d 00 00 4c 8d b3 c0 00 00 00 4c 8b ab 00 01
RSP: 0018:ffff8880957870b0 EFLAGS: 00010a02
RAX: dffffc0000000000 RBX: ffffffffbfa28902 RCX: 0000000000000001
RDX: 1ffffffff7f45140 RSI: ffffffff81bedc78 RDI: ffffffffbfa28902
RBP: ffff8880957871d8 R08: ffff8880957871d8 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000001
R13: ffff888095821d18 R14: 0000000000000000 R15: ffffffffbfa28902
FS: 0000555555beb300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffbfff7f45140 CR3: 00000000a8d6b000 CR4: 00000000003406e0
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fd1d1027559
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:00007fff24701508 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007fd1d1027559
RDX: 0000000020000300 RSI: 0000000020000140 RDI: 0000000020000100
RBP: 00007fd1d0fe6df0 R08: 0000000000000002 R09: 0000000000000000
R10: 0000000000000074 R11: 0000000000000246 R12: 00007fd1d0fe6e80
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
CR2: fffffbfff7f45140
---[ end trace 47ea04417080c53f ]---
RIP: 0010:dquot_add_space+0x45/0x10e0 fs/quota/dquot.c:1307
Code: 4c 24 3c 4c 89 44 24 28 e8 f8 a8 a3 ff 48 8d 83 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 43 0d 00 00 4c 8d b3 c0 00 00 00 4c 8b ab 00 01
RSP: 0018:ffff8880957870b0 EFLAGS: 00010a02
RAX: dffffc0000000000 RBX: ffffffffbfa28902 RCX: 0000000000000001
RDX: 1ffffffff7f45140 RSI: ffffffff81bedc78 RDI: ffffffffbfa28902
RBP: ffff8880957871d8 R08: ffff8880957871d8 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000001
R13: ffff888095821d18 R14: 0000000000000000 R15: ffffffffbfa28902
FS: 0000555555beb300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffbfff7f45140 CR3: 00000000a8d6b000 CR4: 00000000003406e0
Reply all
Reply to author
Forward
0 new messages