syzbot


general protection fault in gfs2_remove_from_journal

Status: upstream: reported on 2025/04/16 00:27
Reported-by: syzbot+be90b9b02750edcc34ea@syzkaller.appspotmail.com
First crash: 6d00h, last: 4d01h
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 BUG: unable to handle kernel paging request in gfs2_remove_from_journal 10 1d00h 6d06h 0/3 upstream: reported on 2025/04/15 18:41

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000005: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000028-0x000000000000002f]
CPU: 1 PID: 4174 Comm: syz-executor Not tainted 5.15.180-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:gfs2_remove_from_journal+0x3be/0x6a0 fs/gfs2/meta_io.c:351
Code: e1 80 e1 07 80 c1 03 38 c1 7c 2c 4c 89 e7 e8 09 b0 32 fe eb 22 e8 82 bf e8 fd 48 8b 6c 24 10 4c 8d 65 2c 4c 89 e0 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 8c 01 00 00 41 ff 04 24 48 8d 7d 18 be
RSP: 0018:ffffc90002e9f6c0 EFLAGS: 00010207
RAX: 0000000000000005 RBX: ffff88805c4501c0 RCX: ffff8880277d9dc0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000000 R08: ffffffff8397827f R09: ffffed100c1431e1
R10: 0000000000000000 R11: dffffc0000000001 R12: 000000000000002c
R13: dffffc0000000000 R14: ffff88805ff2b488 R15: ffff888060a18000
FS:  000055558a53d500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe2c7ce0338 CR3: 000000006370d000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 gfs2_discard fs/gfs2/aops.c:660 [inline]
 gfs2_invalidatepage+0x699/0x890 fs/gfs2/aops.c:693
 do_invalidatepage mm/truncate.c:157 [inline]
 truncate_cleanup_page+0x179/0x440 mm/truncate.c:176
 truncate_inode_pages_range+0x2e7/0x1290 mm/truncate.c:325
 gfs2_evict_inode+0x924/0x1320 fs/gfs2/super.c:1415
 evict+0x529/0x930 fs/inode.c:647
 gfs2_put_super+0x31a/0x7c0 fs/gfs2/super.c:603
 generic_shutdown_super+0x130/0x310 fs/super.c:475
 kill_block_super+0x7a/0xe0 fs/super.c:1427
 deactivate_locked_super+0xa0/0x110 fs/super.c:335
 cleanup_mnt+0x44e/0x500 fs/namespace.c:1143
 task_work_run+0x129/0x1a0 kernel/task_work.c:188
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop+0x106/0x130 kernel/entry/common.c:181
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214
 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline]
 syscall_exit_to_user_mode+0x5d/0x240 kernel/entry/common.c:307
 do_syscall_64+0x47/0x80 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f0efe655497
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:00007ffedd0e2098 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007f0efe6d6854 RCX: 00007f0efe655497
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffedd0e2150
RBP: 00007ffedd0e2150 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffedd0e31e0
R13: 00007f0efe6d6854 R14: 0000000000016ca3 R15: 00007ffedd0e3220
 </TASK>
Modules linked in:
---[ end trace e601843000bdb0e6 ]---
RIP: 0010:gfs2_remove_from_journal+0x3be/0x6a0 fs/gfs2/meta_io.c:351
Code: e1 80 e1 07 80 c1 03 38 c1 7c 2c 4c 89 e7 e8 09 b0 32 fe eb 22 e8 82 bf e8 fd 48 8b 6c 24 10 4c 8d 65 2c 4c 89 e0 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 8c 01 00 00 41 ff 04 24 48 8d 7d 18 be
RSP: 0018:ffffc90002e9f6c0 EFLAGS: 00010207
RAX: 0000000000000005 RBX: ffff88805c4501c0 RCX: ffff8880277d9dc0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000000 R08: ffffffff8397827f R09: ffffed100c1431e1
R10: 0000000000000000 R11: dffffc0000000001 R12: 000000000000002c
R13: dffffc0000000000 R14: ffff88805ff2b488 R15: ffff888060a18000
FS:  000055558a53d500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe2c7ce0338 CR3: 000000006370d000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	e1 80                	loope  0xffffff82
   2:	e1 07                	loope  0xb
   4:	80 c1 03             	add    $0x3,%cl
   7:	38 c1                	cmp    %al,%cl
   9:	7c 2c                	jl     0x37
   b:	4c 89 e7             	mov    %r12,%rdi
   e:	e8 09 b0 32 fe       	call   0xfe32b01c
  13:	eb 22                	jmp    0x37
  15:	e8 82 bf e8 fd       	call   0xfde8bf9c
  1a:	48 8b 6c 24 10       	mov    0x10(%rsp),%rbp
  1f:	4c 8d 65 2c          	lea    0x2c(%rbp),%r12
  23:	4c 89 e0             	mov    %r12,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 0f b6 04 28       	movzbl (%rax,%r13,1),%eax <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	0f 85 8c 01 00 00    	jne    0x1c3
  37:	41 ff 04 24          	incl   (%r12)
  3b:	48 8d 7d 18          	lea    0x18(%rbp),%rdi
  3f:	be                   	.byte 0xbe

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/17 23:37 linux-5.15.y f7347f400572 2a20f901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in gfs2_remove_from_journal
2025/04/17 23:34 linux-5.15.y f7347f400572 2a20f901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in gfs2_remove_from_journal
2025/04/17 23:34 linux-5.15.y f7347f400572 2a20f901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in gfs2_remove_from_journal
2025/04/16 00:26 linux-5.15.y f7347f400572 a95239b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in gfs2_remove_from_journal
* Struck through repros no longer work on HEAD.