[v6.1] general protection fault in ocfs2_handle_error

5 views
Skip to first unread message

syzbot

unread,
Oct 28, 2024, 1:09:25 AM10/28/24
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 7ec6f9fa3d97 Linux 6.1.114
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1025d230580000
kernel config: https://syzkaller.appspot.com/x/.config?x=c3430b5172170129
dashboard link: https://syzkaller.appspot.com/bug?extid=05107c8f44a6f9b272e6
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/85855dd3567d/disk-7ec6f9fa.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/2938cf086485/vmlinux-7ec6f9fa.xz
kernel image: https://storage.googleapis.com/syzbot-assets/708aae50ad2d/bzImage-7ec6f9fa.xz

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

OCFS2: ERROR (device (efault)): void ocfs2_abort_trigger(struct jbd2_buffer_trigger_type *, struct buffer_head *): JBD2 has aborted our journal, ocfs2 cannot continue
general protection fault, probably for non-canonical address 0xdffffc00000000cf: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000678-0x000000000000067f]
CPU: 0 PID: 4494 Comm: jbd2/loop2-29 Not tainted 6.1.114-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:ocfs2_handle_error+0x2c/0x250 fs/ocfs2/super.c:2524
Code: 57 41 56 41 55 41 54 53 50 49 89 fc 48 bd 00 00 00 00 00 fc ff df e8 13 63 1b fe 49 8d 9c 24 78 06 00 00 48 89 d8 48 c1 e8 03 <80> 3c 28 00 74 08 48 89 df e8 a6 e4 72 fe 48 8b 1b 4c 8d b3 00 01
RSP: 0018:ffffc90005137660 EFLAGS: 00010206
RAX: 00000000000000cf RBX: 0000000000000678 RCX: ffff88801c3f5940
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: dffffc0000000000 R08: ffffffff816e64bc R09: fffff52000a26e75
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: ffffffff8b4af640 R14: 1ffff92000a26edc R15: 0000000000000000
FS: 0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555582b70808 CR3: 0000000020719000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
__ocfs2_error+0x13c/0x190 fs/ocfs2/super.c:2567
ocfs2_abort_trigger+0x112/0x150 fs/ocfs2/journal.c:576
jbd2_journal_commit_transaction+0x16fb/0x6a50 fs/jbd2/commit.c:623
kjournald2+0x45e/0x840 fs/jbd2/journal.c:210
kthread+0x28d/0x320 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_handle_error+0x2c/0x250 fs/ocfs2/super.c:2524
Code: 57 41 56 41 55 41 54 53 50 49 89 fc 48 bd 00 00 00 00 00 fc ff df e8 13 63 1b fe 49 8d 9c 24 78 06 00 00 48 89 d8 48 c1 e8 03 <80> 3c 28 00 74 08 48 89 df e8 a6 e4 72 fe 48 8b 1b 4c 8d b3 00 01
RSP: 0018:ffffc90005137660 EFLAGS: 00010206
RAX: 00000000000000cf RBX: 0000000000000678 RCX: ffff88801c3f5940
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: dffffc0000000000 R08: ffffffff816e64bc R09: fffff52000a26e75
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: ffffffff8b4af640 R14: 1ffff92000a26edc R15: 0000000000000000
FS: 0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007faee49c0000 CR3: 000000007e6c8000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 57 push %rdi
1: 41 56 push %r14
3: 41 55 push %r13
5: 41 54 push %r12
7: 53 push %rbx
8: 50 push %rax
9: 49 89 fc mov %rdi,%r12
c: 48 bd 00 00 00 00 00 movabs $0xdffffc0000000000,%rbp
13: fc ff df
16: e8 13 63 1b fe call 0xfe1b632e
1b: 49 8d 9c 24 78 06 00 lea 0x678(%r12),%rbx
22: 00
23: 48 89 d8 mov %rbx,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 80 3c 28 00 cmpb $0x0,(%rax,%rbp,1) <-- trapping instruction
2e: 74 08 je 0x38
30: 48 89 df mov %rbx,%rdi
33: e8 a6 e4 72 fe call 0xfe72e4de
38: 48 8b 1b mov (%rbx),%rbx
3b: 4c rex.WR
3c: 8d .byte 0x8d
3d: b3 00 mov $0x0,%bl
3f: 01 .byte 0x1


---
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.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Oct 28, 2024, 2:03:26 AM10/28/24
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 7ec6f9fa3d97 Linux 6.1.114
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=150faebb980000
kernel config: https://syzkaller.appspot.com/x/.config?x=c3430b5172170129
dashboard link: https://syzkaller.appspot.com/bug?extid=05107c8f44a6f9b272e6
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15746940580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1505b24b980000
mounted in repro: https://storage.googleapis.com/syzbot-assets/6cd602256328/mount_0.gz

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

(jbd2/loop0-29,4247,0):ocfs2_abort_trigger:574 ERROR: ocfs2_abort_trigger called by JBD2. bh = 0xffff88806e04ebc8, bh->b_blocknr = 16953
OCFS2: ERROR (device (efault)): void ocfs2_abort_trigger(struct jbd2_buffer_trigger_type *, struct buffer_head *): JBD2 has aborted our journal, ocfs2 cannot continue
general protection fault, probably for non-canonical address 0xdffffc00000000cf: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000678-0x000000000000067f]
CPU: 0 PID: 4247 Comm: jbd2/loop0-29 Not tainted 6.1.114-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:ocfs2_handle_error+0x2c/0x250 fs/ocfs2/super.c:2524
Code: 57 41 56 41 55 41 54 53 50 49 89 fc 48 bd 00 00 00 00 00 fc ff df e8 13 63 1b fe 49 8d 9c 24 78 06 00 00 48 89 d8 48 c1 e8 03 <80> 3c 28 00 74 08 48 89 df e8 a6 e4 72 fe 48 8b 1b 4c 8d b3 00 01
RSP: 0018:ffffc90003c6f660 EFLAGS: 00010206
RAX: 00000000000000cf RBX: 0000000000000678 RCX: ffff88801970bb80
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: dffffc0000000000 R08: ffffffff816e64bc R09: fffffbfff1d34036
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: ffffffff8b4af640 R14: 1ffff9200078dedc R15: 0000000000000000
FS: 0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055fb9810c540 CR3: 000000003166a000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
__ocfs2_error+0x13c/0x190 fs/ocfs2/super.c:2567
ocfs2_abort_trigger+0x112/0x150 fs/ocfs2/journal.c:576
jbd2_journal_commit_transaction+0x16fb/0x6a50 fs/jbd2/commit.c:623
kjournald2+0x45e/0x840 fs/jbd2/journal.c:210
kthread+0x28d/0x320 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_handle_error+0x2c/0x250 fs/ocfs2/super.c:2524
Code: 57 41 56 41 55 41 54 53 50 49 89 fc 48 bd 00 00 00 00 00 fc ff df e8 13 63 1b fe 49 8d 9c 24 78 06 00 00 48 89 d8 48 c1 e8 03 <80> 3c 28 00 74 08 48 89 df e8 a6 e4 72 fe 48 8b 1b 4c 8d b3 00 01
RSP: 0018:ffffc90003c6f660 EFLAGS: 00010206
RAX: 00000000000000cf RBX: 0000000000000678 RCX: ffff88801970bb80
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: dffffc0000000000 R08: ffffffff816e64bc R09: fffffbfff1d34036
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: ffffffff8b4af640 R14: 1ffff9200078dedc R15: 0000000000000000
FS: 0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055fb9810c540 CR3: 000000003166a000 CR4: 00000000003506f0
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
Reply all
Reply to author
Forward
0 new messages