syzbot


kernel BUG in ocfs2_page_mkwrite (2)

Status: upstream: reported C repro on 2025/01/09 20:28
Subsystems: ocfs2
[Documentation on labels]
Reported-by: syzbot+ecfa701c0b41415f36d4@syzkaller.appspotmail.com
First crash: 235d, last: 34d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ocfs2?] kernel BUG in ocfs2_page_mkwrite (2) 0 (2) 2025/04/20 10:25
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in ocfs2_page_mkwrite ocfs2 -1 1 338d 334d 0/29 auto-obsoleted due to no activity on 2025/01/03 15:18
Last patch testing requests (1)
Created Duration User Patch Repo Result
2025/08/09 07:10 21m retest repro upstream OK log

Sample crash report:
loop0: detected capacity change from 0 to 32768
=======================================================
WARNING: The mand mount option has been deprecated and
         and is ignored by this kernel. Remove the mand
         option from the mount to silence this warning.
=======================================================
ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode.
(syz.0.0,5336,0):__ocfs2_journal_access:727 ERROR: Error -30 getting 1 access to buffer!
(syz.0.0,5336,0):ocfs2_write_end_nolock:1942 ERROR: status = -30
(syz.0.0,5336,0):ocfs2_commit_trans:404 ERROR: status = -5
------------[ cut here ]------------
kernel BUG at fs/ocfs2/mmap.c:107!
Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5336 Comm: syz.0.0 Not tainted 6.16.0-rc7-syzkaller-00120-g5f33ebd2018c #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:__ocfs2_page_mkwrite fs/ocfs2/mmap.c:107 [inline]
RIP: 0010:ocfs2_page_mkwrite+0xc37/0xc40 fs/ocfs2/mmap.c:144
Code: 07 e8 5d 68 1f fe eb 0d 48 ff cb e8 53 68 1f fe 48 89 5c 24 08 49 be 00 00 00 00 00 fc ff df e9 cb f4 ff ff e8 3a 68 1f fe 90 <0f> 0b cc cc cc cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc9000d46f0c0 EFLAGS: 00010287
RAX: ffffffff83a0c8d6 RBX: 00000000ffffffe2 RCX: 0000000000100000
RDX: ffffc9000dd12000 RSI: 0000000000006e8d RDI: 0000000000006e8e
RBP: ffffc9000d46f260 R08: ffffffff8fa1fbf7 R09: 1ffffffff1f43f7e
R10: dffffc0000000000 R11: fffffbfff1f43f7f R12: ffffea0001504b00
R13: 0000000000000100 R14: 0000000000000000 R15: 0000000000001000
FS:  00007febb35fa6c0(0000) GS:ffff88808d218000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000020000000b000 CR3: 000000004353e000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 do_page_mkwrite+0x14d/0x310 mm/memory.c:3378
 do_shared_fault mm/memory.c:5666 [inline]
 do_fault mm/memory.c:5728 [inline]
 do_pte_missing mm/memory.c:4251 [inline]
 handle_pte_fault mm/memory.c:6069 [inline]
 __handle_mm_fault+0x1a60/0x5620 mm/memory.c:6212
 handle_mm_fault+0x40a/0x8e0 mm/memory.c:6381
 do_user_addr_fault+0x764/0x1390 arch/x86/mm/fault.c:1387
 handle_page_fault arch/x86/mm/fault.c:1476 [inline]
 exc_page_fault+0x76/0xf0 arch/x86/mm/fault.c:1532
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623
RIP: 0010:rep_movs_alternative+0x4a/0x90 arch/x86/lib/copy_user_64.S:74
Code: cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 8b 06 48 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 db 83 f9 08 73 e8 eb c5 <f3> a4 c3 cc cc cc cc 48 8b 06 48 89 07 48 8d 47 08 48 83 e0 f8 48
RSP: 0018:ffffc9000d46f6f8 EFLAGS: 00050206
RAX: ffffffff84bf7401 RBX: ffff88805412d000 RCX: 00000000000003c0
RDX: 0000000000000000 RSI: ffff88805412dc40 RDI: 000020000000b000
RBP: ffffc9000d46f848 R08: ffff88805412dfff R09: 1ffff1100a825bff
R10: dffffc0000000000 R11: ffffed100a825c00 R12: 1ffff92001a8dfaf
R13: 000020000000a3c0 R14: ffffc9000d46fd88 R15: 0000000000001000
 copy_user_generic arch/x86/include/asm/uaccess_64.h:126 [inline]
 raw_copy_to_user arch/x86/include/asm/uaccess_64.h:147 [inline]
 copy_to_user_iter lib/iov_iter.c:25 [inline]
 iterate_ubuf include/linux/iov_iter.h:30 [inline]
 iterate_and_advance2 include/linux/iov_iter.h:300 [inline]
 iterate_and_advance include/linux/iov_iter.h:328 [inline]
 _copy_to_iter+0x24c/0x16f0 lib/iov_iter.c:185
 copy_page_to_iter+0x10c/0x1c0 lib/iov_iter.c:362
 copy_folio_to_iter include/linux/uio.h:204 [inline]
 filemap_read+0xa18/0x11a0 mm/filemap.c:2762
 ocfs2_file_read_iter+0x3fa/0xa80 fs/ocfs2/file.c:2589
 new_sync_read fs/read_write.c:491 [inline]
 vfs_read+0x4d0/0x980 fs/read_write.c:572
 ksys_read+0x145/0x250 fs/read_write.c:715
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7febb278e9a9
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007febb35fa038 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007febb29b5fa0 RCX: 00007febb278e9a9
RDX: 000000000000fe2d RSI: 00002000000003c0 RDI: 0000000000000004
RBP: 00007febb2810d69 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007febb29b5fa0 R15: 00007ffc053d0ce8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__ocfs2_page_mkwrite fs/ocfs2/mmap.c:107 [inline]
RIP: 0010:ocfs2_page_mkwrite+0xc37/0xc40 fs/ocfs2/mmap.c:144
Code: 07 e8 5d 68 1f fe eb 0d 48 ff cb e8 53 68 1f fe 48 89 5c 24 08 49 be 00 00 00 00 00 fc ff df e9 cb f4 ff ff e8 3a 68 1f fe 90 <0f> 0b cc cc cc cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc9000d46f0c0 EFLAGS: 00010287
RAX: ffffffff83a0c8d6 RBX: 00000000ffffffe2 RCX: 0000000000100000
RDX: ffffc9000dd12000 RSI: 0000000000006e8d RDI: 0000000000006e8e
RBP: ffffc9000d46f260 R08: ffffffff8fa1fbf7 R09: 1ffffffff1f43f7e
R10: dffffc0000000000 R11: fffffbfff1f43f7f R12: ffffea0001504b00
R13: 0000000000000100 R14: 0000000000000000 R15: 0000000000001000
FS:  00007febb35fa6c0(0000) GS:ffff88808d218000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000020000000b000 CR3: 000000004353e000 CR4: 0000000000352ef0
----------------
Code disassembly (best guess):
   0:	cc                   	int3
   1:	cc                   	int3
   2:	cc                   	int3
   3:	66 2e 0f 1f 84 00 00 	cs nopw 0x0(%rax,%rax,1)
   a:	00 00 00
   d:	0f 1f 00             	nopl   (%rax)
  10:	48 8b 06             	mov    (%rsi),%rax
  13:	48 89 07             	mov    %rax,(%rdi)
  16:	48 83 c6 08          	add    $0x8,%rsi
  1a:	48 83 c7 08          	add    $0x8,%rdi
  1e:	83 e9 08             	sub    $0x8,%ecx
  21:	74 db                	je     0xfffffffe
  23:	83 f9 08             	cmp    $0x8,%ecx
  26:	73 e8                	jae    0x10
  28:	eb c5                	jmp    0xffffffef
* 2a:	f3 a4                	rep movsb %ds:(%rsi),%es:(%rdi) <-- trapping instruction
  2c:	c3                   	ret
  2d:	cc                   	int3
  2e:	cc                   	int3
  2f:	cc                   	int3
  30:	cc                   	int3
  31:	48 8b 06             	mov    (%rsi),%rax
  34:	48 89 07             	mov    %rax,(%rdi)
  37:	48 8d 47 08          	lea    0x8(%rdi),%rax
  3b:	48 83 e0 f8          	and    $0xfffffffffffffff8,%rax
  3f:	48                   	rex.W

Crashes (112):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/26 07:06 upstream 5f33ebd2018c fb8f743d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/07/25 22:35 upstream 2942242dde89 fb8f743d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/07/24 04:39 upstream f9af7b5d9349 0c1d6ded .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/07/23 11:28 upstream 89be9a83ccf1 e1dd4f22 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/07/22 15:21 upstream 89be9a83ccf1 af30dea9 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/07/21 15:17 upstream 89be9a83ccf1 56d87229 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/07/20 19:19 upstream f4a40a4282f4 7117feec .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/07/19 21:55 upstream 4871b7cb27f4 7117feec .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/07/19 15:24 upstream 4871b7cb27f4 7117feec .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/07/18 02:08 upstream 6832a9317eee 88248e14 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/07/15 14:10 upstream 155a3c003e55 03fcfc4b .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/07/15 13:34 upstream 155a3c003e55 03fcfc4b .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/07/14 17:29 upstream 347e9f5043c8 d8fc7335 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/07/14 14:35 upstream 347e9f5043c8 d8fc7335 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/07/13 13:09 upstream 3f31a806a62e 3cda49cf .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/07/13 07:16 upstream 3f31a806a62e 3cda49cf .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/07/12 10:58 upstream 379f604cc3dc 3cda49cf .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/07/12 03:02 upstream 40f92e79b0aa 3cda49cf .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/07/11 16:54 upstream bc9ff192a6c9 3cda49cf .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/07/10 11:48 upstream 8c2e52ebbe88 d7384b6d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/07/07 05:22 upstream 772b78c2abd8 4f67c4ae .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/07/06 15:12 upstream 1f988d0788f5 4f67c4ae .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/07/03 23:10 upstream 17bbde2e1716 a3c808e4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/07/03 09:35 upstream b4911fb0b060 115ceea7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/06/30 22:54 upstream d0b3b7b22dfa 6e83b42d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/06/29 07:11 upstream dfba48a70cb6 fc9d8ee5 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/06/27 17:57 upstream 67a993863163 803ce19b .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/06/24 03:27 upstream 78f4e737a53e 1a7fb460 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/06/24 02:26 upstream 78f4e737a53e 1a7fb460 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/06/22 14:29 upstream 739a6c93cc75 d6cdfb8a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/06/21 13:44 upstream 11313e2f7812 d6cdfb8a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/06/18 16:08 upstream 52da431bf03b ed3e87f7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/06/16 23:07 upstream e04c78d86a96 d1716036 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/06/16 17:51 upstream e04c78d86a96 d1716036 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/06/12 07:46 upstream 488ef3560196 98683f8f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/06/11 09:19 upstream aef17cb3d3c4 5d7e17ca .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/06/11 07:57 upstream aef17cb3d3c4 5d7e17ca .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/06/09 08:06 upstream 939f15e640f1 4826c28e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/06/04 05:39 upstream 5abc7438f1e9 a30356b7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/05/31 14:22 upstream 0f70f5b08a47 3d2f584d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/05/30 16:24 upstream f66bc387efbe 3d2f584d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/05/28 06:42 upstream c89756bcf406 874a1386 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/05/28 01:29 upstream 914873bc7df9 874a1386 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/04/20 10:25 upstream 119009db2674 2a20f901 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro #1 (clean fs)] [mounted in repro #2 (corrupt fs)] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
2025/01/05 20:20 upstream ab75170520d4 f3558dbf .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in ocfs2_page_mkwrite
* Struck through repros no longer work on HEAD.