general protection fault in diUpdatePMap

10 views
Skip to first unread message

syzbot

unread,
Sep 29, 2022, 8:21:46 AM9/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=1179a8b8880000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=62b272d156710f445f65
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1008b59c880000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17d21def080000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/98c0bdb4abb3/disk-3f8a27f9.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/ea228ff02669/vmlinux-3f8a27f9.xz

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

IPVS: ftp: loaded support on port[0] = 21
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 1985 Comm: jfsCommit Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:__list_add_valid+0x22/0xa0 lib/list_debug.c:23
Code: ff 90 90 90 90 90 90 90 48 b8 00 00 00 00 00 fc ff df 41 54 49 89 d4 55 48 89 fd 48 8d 7a 08 48 83 ec 08 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 50 49 8b 54 24 08 48 39 f2 0f 85 aa 52 85 04 48 b8
RSP: 0018:ffff8880b0b27cb8 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: ffffc90001401100 RCX: ffffffff82752b89
RDX: 0000000000000001 RSI: ffffc90001401110 RDI: 0000000000000008
RBP: ffff8880a98fc5b0 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000000
R13: ffffc90001401110 R14: ffff8880a98fc5b0 R15: ffff888098ae4690
FS: 0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f24540111d0 CR3: 0000000009e6d000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__list_add include/linux/list.h:60 [inline]
list_add include/linux/list.h:79 [inline]
diUpdatePMap+0x835/0x1090 fs/jfs/jfs_imap.c:2836
txUpdateMap+0xbfd/0x1000 fs/jfs/jfs_txnmgr.c:2401
txLazyCommit fs/jfs/jfs_txnmgr.c:2709 [inline]
jfs_lazycommit+0x525/0x9d0 fs/jfs/jfs_txnmgr.c:2777
kthread+0x33f/0x460 kernel/kthread.c:259
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Modules linked in:
---[ end trace 2e577b73f6085e11 ]---
RIP: 0010:__list_add_valid+0x22/0xa0 lib/list_debug.c:23
Code: ff 90 90 90 90 90 90 90 48 b8 00 00 00 00 00 fc ff df 41 54 49 89 d4 55 48 89 fd 48 8d 7a 08 48 83 ec 08 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 50 49 8b 54 24 08 48 39 f2 0f 85 aa 52 85 04 48 b8
RSP: 0018:ffff8880b0b27cb8 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: ffffc90001401100 RCX: ffffffff82752b89
RDX: 0000000000000001 RSI: ffffc90001401110 RDI: 0000000000000008
RBP: ffff8880a98fc5b0 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000000
R13: ffffc90001401110 R14: ffff8880a98fc5b0 R15: ffff888098ae4690
FS: 0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f24540111d0 CR3: 0000000009e6d000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: ff 90 90 90 90 90 callq *-0x6f6f6f70(%rax)
6: 90 nop
7: 90 nop
8: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
f: fc ff df
12: 41 54 push %r12
14: 49 89 d4 mov %rdx,%r12
17: 55 push %rbp
18: 48 89 fd mov %rdi,%rbp
1b: 48 8d 7a 08 lea 0x8(%rdx),%rdi
1f: 48 83 ec 08 sub $0x8,%rsp
23: 48 89 fa mov %rdi,%rdx
26: 48 c1 ea 03 shr $0x3,%rdx
* 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction
2e: 75 50 jne 0x80
30: 49 8b 54 24 08 mov 0x8(%r12),%rdx
35: 48 39 f2 cmp %rsi,%rdx
38: 0f 85 aa 52 85 04 jne 0x48552e8
3e: 48 rex.W
3f: b8 .byte 0xb8


---
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,
Sep 30, 2022, 6:17:38 AM9/30/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 9d5c0b3a8e1a Linux 4.14.295
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=122aa570880000
kernel config: https://syzkaller.appspot.com/x/.config?x=746c079015a92425
dashboard link: https://syzkaller.appspot.com/bug?extid=a0969d47ad46f6957768
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13568b38880000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1754d0ec880000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/ed6fcf5895a2/disk-9d5c0b3a.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/341aa3534116/vmlinux-9d5c0b3a.xz

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

IPVS: ftp: loaded support on port[0] = 21
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 1964 Comm: jfsCommit Not tainted 4.14.295-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
task: ffff8880b0ee0140 task.stack: ffff8880b0ee8000
RIP: 0010:__list_add_valid+0x22/0xa0 lib/list_debug.c:23
RSP: 0018:ffff8880b0eefcf0 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: ffffc900013b8100 RCX: 0000000000000bfa
RDX: 0000000000000001 RSI: ffffc900013b8110 RDI: 0000000000000008
RBP: ffff8880b51f46a0 R08: ffffffff8b9a7ad0 R09: 000000000005c300
R10: ffff8880b0ee09c8 R11: ffff8880b0ee0140 R12: 0000000000000000
R13: 0000000000000286 R14: ffff8880b51f46a0 R15: ffff8880b32ce210
FS: 0000000000000000(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055d05291db50 CR3: 000000009c59c000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__list_add include/linux/list.h:60 [inline]
list_add include/linux/list.h:79 [inline]
diUpdatePMap+0x6c1/0xe90 fs/jfs/jfs_imap.c:2842
txUpdateMap+0xa30/0xe30 fs/jfs/jfs_txnmgr.c:2401
txLazyCommit fs/jfs/jfs_txnmgr.c:2709 [inline]
jfs_lazycommit+0x48b/0x8c0 fs/jfs/jfs_txnmgr.c:2777
kthread+0x30d/0x420 kernel/kthread.c:232
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404
Code: ff ff 90 90 90 90 90 90 90 48 b8 00 00 00 00 00 fc ff df 41 54 49 89 d4 55 48 89 fd 48 8d 7a 08 48 83 ec 08 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 50 49 8b 54 24 08 48 39 f2 0f 85 6a 95 f0 03 48
RIP: __list_add_valid+0x22/0xa0 lib/list_debug.c:23 RSP: ffff8880b0eefcf0
---[ end trace 2cbe341936f3c2a5 ]---
----------------
Code disassembly (best guess), 1 bytes skipped:
0: ff 90 90 90 90 90 callq *-0x6f6f6f70(%rax)
6: 90 nop
7: 90 nop
8: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
f: fc ff df
12: 41 54 push %r12
14: 49 89 d4 mov %rdx,%r12
17: 55 push %rbp
18: 48 89 fd mov %rdi,%rbp
1b: 48 8d 7a 08 lea 0x8(%rdx),%rdi
1f: 48 83 ec 08 sub $0x8,%rsp
23: 48 89 fa mov %rdi,%rdx
26: 48 c1 ea 03 shr $0x3,%rdx
* 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction
2e: 75 50 jne 0x80
30: 49 8b 54 24 08 mov 0x8(%r12),%rdx
35: 48 39 f2 cmp %rsi,%rdx
38: 0f 85 6a 95 f0 03 jne 0x3f095a8
3e: 48 rex.W
Reply all
Reply to author
Forward
0 new messages