syzbot


general protection fault in ocfs2_clear_inode (2)

Status: upstream: reported on 2025/07/28 15:22
Subsystems: ocfs2
[Documentation on labels]
Reported-by: syzbot+d58fc9c4a90032ed31ff@syzkaller.appspotmail.com
First crash: 40d, last: 5d14h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ocfs2?] general protection fault in ocfs2_clear_inode (2) 0 (1) 2025/07/28 15:22
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in ocfs2_clear_inode ocfs2 2 5 168d 268d 0/29 auto-obsoleted due to no activity on 2025/06/14 04:46

Sample crash report:
ocfs2: Unmounting device (7,6) on (node local)
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 0 UID: 0 PID: 29050 Comm: syz-executor Not tainted 6.17.0-rc1-syzkaller-00199-gdfd4b508c8c6 #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:ocfs2_clear_inode+0x56e/0x1540 fs/ocfs2/inode.c:1284
Code: 48 c1 ea 03 80 3c 02 00 0f 85 c0 08 00 00 48 8b 9d 90 02 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d 7b 08 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 88 08 00 00 48 8b 7b 08 e8 af 59 e3 fe 48 8b 4c
RSP: 0018:ffffc900047c7898 EFLAGS: 00010212
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff83abb30b
RDX: 0000000000000001 RSI: ffff88804a180d00 RDI: 0000000000000008
RBP: ffff88804ebe4000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: ffff88804a180000
R13: ffff88804a180760 R14: ffff88804a180810 R15: 0000000000000000
FS:  00005555605e1500(0000) GS:ffff8881246bd000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f97e8f29f98 CR3: 00000000672de000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 ocfs2_evict_inode+0x8fb/0x1680 fs/ocfs2/inode.c:1296
 evict+0x3e6/0x920 fs/inode.c:810
 iput_final fs/inode.c:1897 [inline]
 iput fs/inode.c:1923 [inline]
 iput+0x521/0x880 fs/inode.c:1909
 __ocfs2_free_slot_info.part.0+0x3e/0x210 fs/ocfs2/slot_map.c:307
 __ocfs2_free_slot_info fs/ocfs2/slot_map.c:304 [inline]
 ocfs2_free_slot_info+0x47/0x60 fs/ocfs2/slot_map.c:443
 ocfs2_delete_osb+0x52/0x1f0 fs/ocfs2/super.c:2450
 ocfs2_dismount_volume+0x445/0xa00 fs/ocfs2/super.c:1884
 generic_shutdown_super+0x156/0x390 fs/super.c:643
 kill_block_super+0x3b/0x90 fs/super.c:1766
 deactivate_locked_super+0xc1/0x1a0 fs/super.c:474
 deactivate_super fs/super.c:507 [inline]
 deactivate_super+0xde/0x100 fs/super.c:503
 cleanup_mnt+0x225/0x450 fs/namespace.c:1378
 task_work_run+0x150/0x240 kernel/task_work.c:227
 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
 exit_to_user_mode_loop+0xeb/0x110 kernel/entry/common.c:43
 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline]
 syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline]
 syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline]
 do_syscall_64+0x3f6/0x4c0 arch/x86/entry/syscall_64.c:100
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f6dc978ff17
Code: a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffe172e29c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007f6dc9811c05 RCX: 00007f6dc978ff17
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffe172e2a80
RBP: 00007ffe172e2a80 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffe172e3b10
R13: 00007f6dc9811c05 R14: 00000000002c2448 R15: 00007ffe172e3b50
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ocfs2_clear_inode+0x56e/0x1540 fs/ocfs2/inode.c:1284
Code: 48 c1 ea 03 80 3c 02 00 0f 85 c0 08 00 00 48 8b 9d 90 02 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d 7b 08 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 88 08 00 00 48 8b 7b 08 e8 af 59 e3 fe 48 8b 4c
RSP: 0018:ffffc900047c7898 EFLAGS: 00010212
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff83abb30b
RDX: 0000000000000001 RSI: ffff88804a180d00 RDI: 0000000000000008
RBP: ffff88804ebe4000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: ffff88804a180000
R13: ffff88804a180760 R14: ffff88804a180810 R15: 0000000000000000
FS:  00005555605e1500(0000) GS:ffff8881247bd000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c34eac4 CR3: 00000000672de000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess):
   0:	48 c1 ea 03          	shr    $0x3,%rdx
   4:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
   8:	0f 85 c0 08 00 00    	jne    0x8ce
   e:	48 8b 9d 90 02 00 00 	mov    0x290(%rbp),%rbx
  15:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  1c:	fc ff df
  1f:	48 8d 7b 08          	lea    0x8(%rbx),%rdi
  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:	0f 85 88 08 00 00    	jne    0x8bc
  34:	48 8b 7b 08          	mov    0x8(%rbx),%rdi
  38:	e8 af 59 e3 fe       	call   0xfee359ec
  3d:	48                   	rex.W
  3e:	8b                   	.byte 0x8b
  3f:	4c                   	rex.WR

Crashes (14):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/16 08:51 upstream dfd4b508c8c6 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in ocfs2_clear_inode
2025/08/11 16:46 upstream 8f5ae30d69d7 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in ocfs2_clear_inode
2025/08/08 13:13 upstream bec077162bd0 987b750d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in ocfs2_clear_inode
2025/08/08 01:01 upstream 6e64f4580381 6a893178 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in ocfs2_clear_inode
2025/08/04 17:52 upstream d2eedaa3909b abdcb213 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in ocfs2_clear_inode
2025/08/04 01:03 upstream 352af6a011d5 7368264b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in ocfs2_clear_inode
2025/07/28 18:09 upstream 038d61fd6422 c4a95487 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in ocfs2_clear_inode
2025/07/28 15:21 upstream 038d61fd6422 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in ocfs2_clear_inode
2025/07/28 15:21 upstream 038d61fd6422 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in ocfs2_clear_inode
2025/07/28 15:21 upstream 038d61fd6422 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in ocfs2_clear_inode
2025/07/28 15:20 upstream 038d61fd6422 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in ocfs2_clear_inode
2025/07/21 02:25 upstream 89be9a83ccf1 7117feec .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in ocfs2_clear_inode
2025/07/18 05:25 upstream 6832a9317eee 0d1223f1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in ocfs2_clear_inode
2025/07/12 00:39 upstream 40f92e79b0aa 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in ocfs2_clear_inode
* Struck through repros no longer work on HEAD.