syzbot


WARNING in gfs2_rbm_from_block

Status: upstream: reported C repro on 2022/12/16 01:22
Subsystems: gfs2
[Documentation on labels]
Reported-by: syzbot+e2124d980d57ca9ad4c6@syzkaller.appspotmail.com
First crash: 736d, last: 688d
Fix bisection: failed (error log, bisect log)
  

Sample crash report:
gfs2: fsid=syz:syz.0: journal 0 mapped with 3 extents
gfs2: fsid=syz:syz.0: jid=0, already locked for use
gfs2: fsid=syz:syz.0: jid=0: Looking at journal...
gfs2: fsid=syz:syz.0: jid=0: Done
gfs2: fsid=syz:syz.0: first mount done, others may mount
WARNING: CPU: 0 PID: 8101 at fs/gfs2/rgrp.c:274 gfs2_rbm_from_block+0x26b/0x2f0 fs/gfs2/rgrp.c:274
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 8101 Comm: syz-executor103 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
 __warn.cold+0x20/0x5a kernel/panic.c:541
 report_bug+0x262/0x2b0 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:gfs2_rbm_from_block+0x26b/0x2f0 fs/gfs2/rgrp.c:274
Code: 3c 01 00 00 45 31 f6 29 c3 41 89 5c 24 08 e8 9c 84 57 fe 44 89 f0 48 83 c4 08 5b 5d 41 5c 41 5d 41 5e 41 5f c3 e8 85 84 57 fe <0f> 0b 41 be ea ff ff ff eb da e8 a6 63 8d fe e9 7f fe ff ff e8 cc
RSP: 0018:ffff8880b05f7920 EFLAGS: 00010293
RAX: ffff8880b3e740c0 RBX: ffffffffffffffff RCX: ffffffff830afeee
RDX: 0000000000000000 RSI: ffffffff830b00eb RDI: 0000000000000007
RBP: 1ffff110160bef2d R08: 0000000000000000 R09: 00000000ffffffff
R10: 0000000000000007 R11: 0000000000000000 R12: ffff8880b05f7988
R13: ffff8880a57cef00 R14: 0000000000000012 R15: 0000000000000013
 gfs2_check_blk_type+0x103/0x2e0 fs/gfs2/rgrp.c:2557
 gfs2_inode_lookup+0x727/0xa50 fs/gfs2/inode.c:165
 gfs2_lookup_by_inum+0x44/0x170 fs/gfs2/inode.c:225
 gfs2_get_dentry fs/gfs2/export.c:140 [inline]
 gfs2_fh_to_dentry fs/gfs2/export.c:163 [inline]
 gfs2_fh_to_dentry+0x20c/0x290 fs/gfs2/export.c:147
 exportfs_decode_fh+0x126/0x7e0 fs/exportfs/expfs.c:433
 do_handle_to_path fs/fhandle.c:152 [inline]
 handle_to_path fs/fhandle.c:207 [inline]
 do_handle_open+0x2f4/0x650 fs/fhandle.c:223
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f5b0bf747a9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 00 00 90 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc16d7a2a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000130
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f5b0bf747a9
RDX: 0000000000000000 RSI: 0000000020000100 RDI: 0000000000000004
RBP: 00007f5b0bf34040 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000000124d6 R11: 0000000000000246 R12: 00007f5b0bf340d0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/16 01:22 linux-4.19.y 3f8a27f9e27b 6f9c033e .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 WARNING in gfs2_rbm_from_block
2023/02/02 09:09 linux-4.19.y 3f8a27f9e27b 9a6f477c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in gfs2_rbm_from_block
2023/01/25 20:11 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in gfs2_rbm_from_block
* Struck through repros no longer work on HEAD.