kernel BUG in ocfs2_page_mkwrite (4)
syzbot
syzbotHello,
syzbot found the following issue on:
HEAD commit: df685633c3db Merge tag 'rcu-fixes.v7.1-20260519a' of git:/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14674c2e580000 kernel config: https://syzkaller.appspot.com/x/.config?x=7f195f6be48c12ec dashboard link: https://syzkaller.appspot.com/bug?extid=42984127d45ad96219de compiler: Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8
Unfortunately, I don't have any reproducer for this issue yet.
Downloadable assets:
disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/d900f083ada3/non_bootable_disk-df685633.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/0d8ce459af2e/vmlinux-df685633.xz
kernel image: https://storage.googleapis.com/syzbot-assets/5f8a4c255465/bzImage-df685633.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
(syz.0.0,5323,0):__ocfs2_journal_access:724 ERROR: Error -30 getting 1 access to buffer! (syz.0.0,5323,0):ocfs2_write_end_nolock:1945 ERROR: status = -30 (syz.0.0,5323,0):ocfs2_commit_trans:401 ERROR: status = -5
------------[ cut here ]------------ kernel BUG at fs/ocfs2/mmap.c:106! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5323 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:__ocfs2_page_mkwrite fs/ocfs2/mmap.c:106 [inline] RIP: 0010:ocfs2_page_mkwrite+0xb53/0xb60 fs/ocfs2/mmap.c:143 Code: 87 6a fe e9 bc fd ff ff e8 9a 0b e3 07 e8 d5 bb fd fd 4c 89 f7 48 c7 c6 e0 1c 13 8c e8 26 f6 5f fd 90 0f 0b e8 be bb fd fd 90 <0f> 0b cc cc cc cc cc cc cc cc cc cc cc 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000f937940 EFLAGS: 00010293 RAX: ffffffff83c81872 RBX: 00000000ffffffe2 RCX: ffff88801cf4a500 RDX: 0000000000000000 RSI: 0000000000001000 RDI: 00000000ffffffe2 RBP: ffffc9000f937ae0 R08: ffffffff9030f0f7 R09: 1ffffffff2061e1e R10: dffffc0000000000 R11: fffffbfff2061e1f R12: 000000000000c000 R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000001000 FS: 0000555567afd540(0000) GS:ffff88808c87e000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000020000000c000 CR3: 0000000041fff000 CR4: 0000000000352ef0 Call Trace: <TASK> do_page_mkwrite+0x14d/0x310 mm/memory.c:3684 do_shared_fault mm/memory.c:5985 [inline] do_fault mm/memory.c:6047 [inline] do_pte_missing+0x6dc/0x33f0 mm/memory.c:4566 handle_pte_fault mm/memory.c:6427 [inline] __handle_mm_fault mm/memory.c:6565 [inline] handle_mm_fault+0x1bd9/0x3170 mm/memory.c:6734 do_user_addr_fault+0x75b/0x1340 arch/x86/mm/fault.c:1385 handle_page_fault arch/x86/mm/fault.c:1474 [inline] exc_page_fault+0x6a/0xc0 arch/x86/mm/fault.c:1527 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:618 RIP: 0033:0x7f762596d749 Code: dd 00 01 74 a3 83 f9 c0 0f 87 59 fe ff ff 62 e1 fe 28 6f 4e 01 48 29 fe 48 83 c7 3f 49 8d 0c 10 48 83 e7 c0 48 01 fe 48 29 f9 <f3> a4 62 c1 fe 28 7f 00 62 c1 fe 28 7f 48 01 c3 0f 1f 80 00 00 00 RSP: 002b:00007ffda9016b28 EFLAGS: 00010202 RAX: 00002000000079c0 RBX: 0000000000000004 RCX: 0000000000000ecb RDX: 000000000000550b RSI: 00007f762540c53f RDI: 000020000000c000 RBP: fffffffffffffffe R08: 00002000000079c0 R09: 0000000000000002 R10: 000000000000550b R11: 0000000000000002 R12: 00007ffda9016c50 R13: 00007f7625c15fac R14: 0000000000014e7a R15: 00007f7625c15fa0 </TASK> Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__ocfs2_page_mkwrite fs/ocfs2/mmap.c:106 [inline] RIP: 0010:ocfs2_page_mkwrite+0xb53/0xb60 fs/ocfs2/mmap.c:143 Code: 87 6a fe e9 bc fd ff ff e8 9a 0b e3 07 e8 d5 bb fd fd 4c 89 f7 48 c7 c6 e0 1c 13 8c e8 26 f6 5f fd 90 0f 0b e8 be bb fd fd 90 <0f> 0b cc cc cc cc cc cc cc cc cc cc cc 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000f937940 EFLAGS: 00010293 RAX: ffffffff83c81872 RBX: 00000000ffffffe2 RCX: ffff88801cf4a500 RDX: 0000000000000000 RSI: 0000000000001000 RDI: 00000000ffffffe2 RBP: ffffc9000f937ae0 R08: ffffffff9030f0f7 R09: 1ffffffff2061e1e R10: dffffc0000000000 R11: fffffbfff2061e1f R12: 000000000000c000 R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000001000 FS: 0000555567afd540(0000) GS:ffff88808c87e000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000020000000c000 CR3: 0000000041fff000 CR4: 0000000000352ef0
---
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 [email protected].
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
syzbotsyzbot has found a reproducer for the following issue on:
syzbot has found a reproducer for the following issue on:
HEAD commit: abf8c33470f7 Merge tag 'spi-fix-v7.4-merge-window' of git:.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14bd94b1580000 kernel config: https://syzkaller.appspot.com/x/.config?x=4a49f7c2815c8df7 dashboard link: https://syzkaller.appspot.com/bug?extid=42984127d45ad96219de compiler: Debian clang version 22.1.8 (1~deb13u4), Debian LLD 22.1.8 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16bd94b1580000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1170f04e580000
Downloadable assets:
disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/d900f083ada3/non_bootable_disk-abf8c334.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/2fa6d9134089/vmlinux-abf8c334.xz
kernel image: https://storage.googleapis.com/syzbot-assets/17b6a19466ca/bzImage-abf8c334.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/afd449083684/mount_1.gz
fsck result: OK (log: https://syzkaller.appspot.com/x/fsck.log?x=10bd94b1580000)
IMPORTANT: if you fix the issue, please add the following tag to the commit:
(syz.0.17,5578,0):__ocfs2_journal_access:730 ERROR: Error -30 getting 1 access to buffer! (syz.0.17,5578,0):ocfs2_write_end_nolock:1945 ERROR: status = -30
------------[ cut here ]------------ kernel BUG at fs/ocfs2/mmap.c:106! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5578 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:__ocfs2_page_mkwrite fs/ocfs2/mmap.c:106 [inline] RIP: 0010:ocfs2_page_mkwrite+0xb59/0xb60 fs/ocfs2/mmap.c:143 Code: 50 42 fe e9 27 fd ff ff e8 44 4d 07 08 e8 5f af c9 fd 4c 89 e7 48 c7 c6 40 21 77 8c e8 00 af 28 fd 90 0f 0b e8 48 af c9 fd 90 <0f> 0b cc cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc90001c3f960 EFLAGS: 00010293 RAX: ffffffff83ff77b8 RBX: 00000000ffffffe2 RCX: ffff88803c8ea580 RDX: 0000000000000000 RSI: 0000000000001000 RDI: 00000000ffffffe2 RBP: ffffc90001c3faf0 R08: ffffffff91be13bf R09: 1ffffffff237c277 R10: dffffc0000000000 R11: fffffbfff237c278 R12: dffffc0000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000001000 FS: 000055557db80500(0000) GS:ffff88808aa01000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6af90e5440 CR3: 0000000040472000 CR4: 0000000000352ef0 Call Trace: <TASK> do_page_mkwrite+0x147/0x310 mm/memory.c:3879 do_shared_fault mm/memory.c:6145 [inline] do_fault mm/memory.c:6207 [inline] do_pte_missing+0x70f/0x3570 mm/memory.c:4763 handle_pte_fault mm/memory.c:6627 [inline] __handle_mm_fault mm/memory.c:6776 [inline] handle_mm_fault+0x1a53/0x3750 mm/memory.c:6943 do_user_addr_fault+0x7f6/0x1480 arch/x86/mm/fault.c:1394 handle_page_fault arch/x86/mm/fault.c:1483 [inline] exc_page_fault+0x6a/0xc0 arch/x86/mm/fault.c:1536 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:595 RIP: 0033:0x7f8bc2868b02 Code: 30 48 8b 14 24 48 85 d2 74 17 8b 44 24 10 0f c8 89 c0 48 89 44 24 10 48 83 fa 01 0f 85 aa 02 00 00 48 8b 44 24 18 8b 74 24 10 <89> 30 e9 1e fe ff ff 48 8b 44 24 18 8b 10 48 8b 04 24 48 85 c0 0f RSP: 002b:00007ffe54034e30 EFLAGS: 00010246 RAX: 0000200000000480 RBX: 0000000000000004 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 000055557db803d8 RBP: 00007ffe54034f50 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000004 R11: 0000000000000000 R12: 0000000000000000 R13: 00007f8bc2c25fac R14: 000000000001c34b R15: 00007f8bc2c25fa0 </TASK> Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__ocfs2_page_mkwrite fs/ocfs2/mmap.c:106 [inline] RIP: 0010:ocfs2_page_mkwrite+0xb59/0xb60 fs/ocfs2/mmap.c:143 Code: 50 42 fe e9 27 fd ff ff e8 44 4d 07 08 e8 5f af c9 fd 4c 89 e7 48 c7 c6 40 21 77 8c e8 00 af 28 fd 90 0f 0b e8 48 af c9 fd 90 <0f> 0b cc cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc90001c3f960 EFLAGS: 00010293 RAX: ffffffff83ff77b8 RBX: 00000000ffffffe2 RCX: ffff88803c8ea580 RDX: 0000000000000000 RSI: 0000000000001000 RDI: 00000000ffffffe2 RBP: ffffc90001c3faf0 R08: ffffffff91be13bf R09: 1ffffffff237c277 R10: dffffc0000000000 R11: fffffbfff237c278 R12: dffffc0000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000001000 FS: 000055557db80500(0000) GS:ffff88808aa01000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005598dcb9a660 CR3: 0000000040472000 CR4: 0000000000352ef0
---
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.