BUG: unable to handle kernel paging request in diFree

17 views
Skip to first unread message

syzbot

unread,
Sep 23, 2020, 12:53:18 PM9/23/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: cbfa1702 Linux 4.14.198
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=173bbac5900000
kernel config: https://syzkaller.appspot.com/x/.config?x=3990958d85b55e59
dashboard link: https://syzkaller.appspot.com/bug?extid=d17404b64177c0bd1ab7
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+d17404...@syzkaller.appspotmail.com

BUG: unable to handle kernel paging request at ffffffffffffff80
IP: diFree+0x12e/0x2830 fs/jfs/jfs_imap.c:872
PGD 7c6d067 P4D 7c6d067 PUD 7c6f067 PMD 0
Oops: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 28936 Comm: syz-executor.1 Not tainted 4.14.198-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8880965ea440 task.stack: ffff88803e1d0000
RIP: 0010:diFree+0x12e/0x2830 fs/jfs/jfs_imap.c:872
RSP: 0018:ffff88803e1d79a8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff88809f54db80 RCX: ffffc90012a9c000
RDX: 1ffffffffffffff0 RSI: ffffffff822cb31f RDI: ffffffffffffff80
RBP: ffff88804aba0428 R08: ffffffff8a08b100 R09: 0000000000000001
R10: 0000000000000000 R11: ffff8880965ea440 R12: ffff88804aba0428
R13: ffff88804aba0450 R14: ffffffff86d12980 R15: ffff88804aba05e0
FS: 00007f59f9e30700(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffff80 CR3: 000000005341a000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
jfs_evict_inode+0xee/0x130 fs/jfs/inode.c:164
evict+0x2c8/0x700 fs/inode.c:555
iput_final fs/inode.c:1524 [inline]
iput+0x458/0x7e0 fs/inode.c:1551
diFreeSpecial fs/jfs/jfs_imap.c:569 [inline]
diFreeSpecial+0x63/0x80 fs/jfs/jfs_imap.c:561
jfs_mount+0x20a/0x380 fs/jfs/jfs_mount.c:222
jfs_fill_super+0x52a/0xab0 fs/jfs/super.c:589
mount_bdev+0x2b3/0x360 fs/super.c:1134
mount_fs+0x92/0x2a0 fs/super.c:1237
vfs_kern_mount.part.0+0x5b/0x470 fs/namespace.c:1046
vfs_kern_mount fs/namespace.c:1036 [inline]
do_new_mount fs/namespace.c:2549 [inline]
do_mount+0xe53/0x2a00 fs/namespace.c:2879
SYSC_mount fs/namespace.c:3095 [inline]
SyS_mount+0xa8/0x120 fs/namespace.c:3072
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x460bca
RSP: 002b:00007f59f9e2fa88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f59f9e2fb20 RCX: 0000000000460bca
RDX: 0000000020000040 RSI: 00000000200000c0 RDI: 00007f59f9e2fae0
RBP: 00007f59f9e2fae0 R08: 00007f59f9e2fb20 R09: 0000000020000040
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000040
R13: 00000000200000c0 R14: 0000000020000200 R15: 0000000020000340
Code: 43 28 48 8d 78 80 48 89 44 24 18 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 5b 20 00 00 48 8b 44 24 18 <48> 8b 68 80 48 8b 44 24 20 4c 8d 6d 04 48 c1 e8 0c 4c 89 ea 48
RIP: diFree+0x12e/0x2830 fs/jfs/jfs_imap.c:872 RSP: ffff88803e1d79a8
CR2: ffffffffffffff80
---[ end trace 27d785a0932e4422 ]---


---
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,
Sep 23, 2020, 1:07:25 PM9/23/20
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: cbfa1702 Linux 4.14.198
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=10c35209900000
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14fcc48d900000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11add2c3900000

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

audit: type=1400 audit(1600880696.160:8): avc: denied { execmem } for pid=6354 comm="syz-executor035" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process permissive=1
BUG: unable to handle kernel paging request at ffffffffffffff80
IP: diFree+0x12e/0x2830 fs/jfs/jfs_imap.c:872
PGD 7c6d067 P4D 7c6d067 PUD 7c6f067 PMD 0
Oops: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 6354 Comm: syz-executor035 Not tainted 4.14.198-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8880a53744c0 task.stack: ffff888097fd0000
RIP: 0010:diFree+0x12e/0x2830 fs/jfs/jfs_imap.c:872
RSP: 0018:ffff888097fd79a8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff8880a04a9c80 RCX: ffff888089929474
RDX: 1ffffffffffffff0 RSI: 0000000000000000 RDI: ffffffffffffff80
RBP: ffff888089929468 R08: ffffffff8a0b62a0 R09: 0000000000000001
R10: 0000000000000000 R11: ffff8880a53744c0 R12: ffff888089929468
R13: ffff888089929490 R14: ffffffff86d12980 R15: ffff888089929620
FS: 0000000000ca5880(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffff80 CR3: 0000000093200000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
jfs_evict_inode+0xee/0x130 fs/jfs/inode.c:164
evict+0x2c8/0x700 fs/inode.c:555
iput_final fs/inode.c:1524 [inline]
iput+0x458/0x7e0 fs/inode.c:1551
diFreeSpecial fs/jfs/jfs_imap.c:569 [inline]
diFreeSpecial+0x63/0x80 fs/jfs/jfs_imap.c:561
jfs_mount+0x20a/0x380 fs/jfs/jfs_mount.c:222
jfs_fill_super+0x52a/0xab0 fs/jfs/super.c:589
mount_bdev+0x2b3/0x360 fs/super.c:1134
mount_fs+0x92/0x2a0 fs/super.c:1237
vfs_kern_mount.part.0+0x5b/0x470 fs/namespace.c:1046
vfs_kern_mount fs/namespace.c:1036 [inline]
do_new_mount fs/namespace.c:2549 [inline]
do_mount+0xe53/0x2a00 fs/namespace.c:2879
SYSC_mount fs/namespace.c:3095 [inline]
SyS_mount+0xa8/0x120 fs/namespace.c:3072
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x446d5a
RSP: 002b:00007ffd6e120278 EFLAGS: 00000283 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffd6e1202d0 RCX: 0000000000446d5a
RDX: 0000000020000040 RSI: 00000000200000c0 RDI: 00007ffd6e120290
RBP: 00007ffd6e120290 R08: 00007ffd6e1202d0 R09: 00007ffd00000015
R10: 0000000000000000 R11: 0000000000000283 R12: 0000000000000002
R13: 0000000000000004 R14: 0000000000000003 R15: 0000000000000003
Code: 43 28 48 8d 78 80 48 89 44 24 18 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 5b 20 00 00 48 8b 44 24 18 <48> 8b 68 80 48 8b 44 24 20 4c 8d 6d 04 48 c1 e8 0c 4c 89 ea 48
RIP: diFree+0x12e/0x2830 fs/jfs/jfs_imap.c:872 RSP: ffff888097fd79a8
CR2: ffffffffffffff80
---[ end trace 31d063bf7b9386d9 ]---

syzbot

unread,
Sep 29, 2020, 12:03:17 AM9/29/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 10ad6cfd Linux 4.19.148
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=10c937ad900000
kernel config: https://syzkaller.appspot.com/x/.config?x=ef9a7978d84ee42b
dashboard link: https://syzkaller.appspot.com/bug?extid=e42ea4e350166ff30e9e
compiler: gcc (GCC) 10.1.0-syz 20200507
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16a98c0f900000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1049a7d3900000

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

audit: type=1400 audit(1601352075.478:8): avc: denied { execmem } for pid=6488 comm="syz-executor060" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process permissive=1
ERROR: (device loop0): xtSearch: XT_GETPAGE: xtree page corrupt
BUG: unable to handle kernel paging request at ffffffffffffff80
PGD 9470067 P4D 9470067 PUD 9472067 PMD 0
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 6488 Comm: syz-executor060 Not tainted 4.19.148-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:diFree+0x15b/0x24b0 fs/jfs/jfs_imap.c:866
Code: 28 48 8d 78 80 48 89 44 24 18 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 38 1e 00 00 48 8b 44 24 18 <48> 8b 68 80 4c 89 e8 48 c1 e8 0c 48 89 04 24 48 b8 00 00 00 00 00
RSP: 0018:ffff88808927f8b8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff8880a93a80c0 RCX: ffffffff828b4135
RDX: 1ffffffffffffff0 RSI: ffffffff828d71a5 RDI: ffffffffffffff80
RBP: ffff88808aab8468 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: ffff88808aab8538
R13: 0000000000000001 R14: ffffffff883a5dc0 R15: ffff88808aab8468
FS: 00000000016cc880(0000) GS:ffff8880ae300000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffff80 CR3: 0000000091aba000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
jfs_evict_inode+0x126/0x170 fs/jfs/inode.c:164
evict+0x2ed/0x780 fs/inode.c:559
iput_final fs/inode.c:1555 [inline]
iput+0x511/0x890 fs/inode.c:1581
diFreeSpecial fs/jfs/jfs_imap.c:563 [inline]
diFreeSpecial+0x63/0x80 fs/jfs/jfs_imap.c:555
jfs_mount+0x23f/0x3d0 fs/jfs/jfs_mount.c:222
jfs_fill_super+0x55c/0xb50 fs/jfs/super.c:589
mount_bdev+0x2fc/0x3b0 fs/super.c:1158
mount_fs+0xa3/0x318 fs/super.c:1261
vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
vfs_kern_mount fs/namespace.c:951 [inline]
do_new_mount fs/namespace.c:2469 [inline]
do_mount+0x51c/0x2f10 fs/namespace.c:2799
ksys_mount+0xcf/0x130 fs/namespace.c:3015
__do_sys_mount fs/namespace.c:3029 [inline]
__se_sys_mount fs/namespace.c:3026 [inline]
__x64_sys_mount+0xba/0x150 fs/namespace.c:3026
do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x446e0a
Code: b8 08 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 fd ad fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 da ad fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007ffe903517c8 EFLAGS: 00000283 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffe90351820 RCX: 0000000000446e0a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffe903517e0
RBP: 00007ffe903517e0 R08: 00007ffe90351820 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000283 R12: 0000000000000002
R13: 0000000000000004 R14: 0000000000000003 R15: 0000000000000003
Modules linked in:
CR2: ffffffffffffff80
---[ end trace 380659b889c543cc ]---
RIP: 0010:diFree+0x15b/0x24b0 fs/jfs/jfs_imap.c:866
Code: 28 48 8d 78 80 48 89 44 24 18 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 38 1e 00 00 48 8b 44 24 18 <48> 8b 68 80 4c 89 e8 48 c1 e8 0c 48 89 04 24 48 b8 00 00 00 00 00
RSP: 0018:ffff88808927f8b8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff8880a93a80c0 RCX: ffffffff828b4135
RDX: 1ffffffffffffff0 RSI: ffffffff828d71a5 RDI: ffffffffffffff80
RBP: ffff88808aab8468 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: ffff88808aab8538
R13: 0000000000000001 R14: ffffffff883a5dc0 R15: ffff88808aab8468
FS: 00000000016cc880(0000) GS:ffff8880ae300000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffff80 CR3: 0000000091aba000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
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 can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches

syzbot

unread,
Aug 16, 2021, 8:40:10 PM8/16/21
to syzkaller...@googlegroups.com
syzbot suspects this issue was fixed by commit:

commit aff8d95b69051d0cf4acc3d91f22299fdbb9dfb3
Author: Pavel Skripkin <paskr...@gmail.com>
Date: Sun Jun 6 14:24:05 2021 +0000

jfs: fix GPF in diFree

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=13444c61300000
start commit: a1b977b49b66 Linux 4.19.150
git tree: linux-4.19.y
kernel config: https://syzkaller.appspot.com/x/.config?x=c14008c8da1ca4d4
dashboard link: https://syzkaller.appspot.com/bug?extid=e42ea4e350166ff30e9e
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=115d56cf900000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=105bfdd7900000

If the result looks correct, please mark the issue as fixed by replying with:

#syz fix: jfs: fix GPF in diFree

For information about bisection process see: https://goo.gl/tpsmEJ#bisection
Reply all
Reply to author
Forward
0 new messages