syzbot


kernel BUG in gfs2_glock_nq

Status: auto-closed as invalid on 2021/08/11 04:31
Reported-by: syzbot+e70b6f09ad10840e59dc@syzkaller.appspotmail.com
First crash: 1336d, last: 1336d
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 kernel BUG in gfs2_glock_nq 2 1056d 1100d 0/1 auto-closed as invalid on 2022/05/17 22:53
linux-4.19 kernel BUG in gfs2_glock_nq (2) gfs2 C error 52 643d 1182d 0/1 upstream: reported C repro on 2021/09/14 01:12
upstream kernel BUG in gfs2_glock_nq gfs2 2 1111d 1101d 0/28 auto-closed as invalid on 2022/03/23 19:53
linux-6.1 kernel BUG in gfs2_glock_nq origin:upstream C 380 10h50m 638d 0/3 upstream: reported C repro on 2023/03/12 01:31
linux-4.14 kernel BUG in gfs2_glock_nq (2) gfs2 C 7 646d 927d 0/1 upstream: reported C repro on 2022/05/26 14:43
upstream kernel BUG in gfs2_glock_nq (2) gfs2 C error 1330 21h48m 808d 0/28 upstream: reported C repro on 2022/09/23 06:12
linux-5.15 kernel BUG in gfs2_glock_nq origin:upstream C error 173 21h37m 637d 0/3 upstream: reported C repro on 2023/03/12 21:28
linux-4.14 kernel BUG at fs/gfs2/glock.c:LINE! 3 1412d 1483d 0/1 auto-closed as invalid on 2021/05/27 07:56
linux-4.19 kernel BUG at fs/gfs2/glock.c:LINE! 2 1480d 1513d 0/1 auto-closed as invalid on 2021/03/20 05:06

Sample crash report:
gfs2: pid: 11634
gfs2: lock type: 8 req lock state : 1
gfs2: G:  s:EX n:8/1 f:qb t:EX d:EX/0 a:0 v:0 r:5 m:20
gfs2:  H: s:EX f:cH e:0 p:11634 [syz-executor.0] gfs2_glock_nq_init fs/gfs2/glock.h:226 [inline]
gfs2:  H: s:EX f:cH e:0 p:11634 [syz-executor.0] do_sync+0x442/0xc90 fs/gfs2/quota.c:896
------------[ cut here ]------------
kernel BUG at fs/gfs2/glock.c:1082!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 11634 Comm: syz-executor.0 Not tainted 4.19.186-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:add_to_queue fs/gfs2/glock.c:1082 [inline]
RIP: 0010:gfs2_glock_nq.cold+0x276/0x2cd fs/gfs2/glock.c:1107
Code: 0f b6 04 02 84 c0 74 04 3c 03 7e 6e 8b 73 18 44 89 ea 48 c7 c7 e0 46 a6 88 e8 0a 56 f8 ff 48 8b 74 24 08 31 ff e8 d9 f1 0b fb <0f> 0b e8 d2 2e 9e f9 4c 8b 04 24 e9 aa fd ff ff 31 ed e9 12 fe ff
RSP: 0000:ffff888039d4fa20 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffff8880aab46cf8 RCX: ffffffff8305f1b3
RDX: 0000000000000000 RSI: ffffffff8305f202 RDI: ffffffff88a669b0
RBP: 0000000000002d72 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffff8880b4fa3b78
R13: 0000000000000001 R14: 0000000000000000 R15: ffff8880b0d23e80
FS:  000000000186d400(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005566373d78c0 CR3: 000000009f464000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 gfs2_glock_nq_init fs/gfs2/glock.h:228 [inline]
 do_sync+0x44a/0xc90 fs/gfs2/quota.c:896
 gfs2_quota_sync+0x5d1/0x780 fs/gfs2/quota.c:1303
 gfs2_sync_fs+0x40/0xb0 fs/gfs2/super.c:957
 __sync_filesystem fs/sync.c:39 [inline]
 sync_filesystem+0x105/0x250 fs/sync.c:64
 generic_shutdown_super+0x70/0x370 fs/super.c:442
 kill_block_super+0x97/0xf0 fs/super.c:1185
 gfs2_kill_sb+0x12c/0x1a0 fs/gfs2/ops_fstype.c:1390
 deactivate_locked_super+0x94/0x160 fs/super.c:329
 deactivate_super+0x174/0x1a0 fs/super.c:360
caif:caif_disconnect_client(): nothing to disconnect
 cleanup_mnt+0x1a8/0x290 fs/namespace.c:1098
 task_work_run+0x148/0x1c0 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:193 [inline]
 exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167
 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
 do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4678b7
Code: ff d0 48 89 c7 b8 3c 00 00 00 0f 05 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffe0fc47b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00000000004678b7
RDX: 00007fffe0fc488b RSI: 0000000000000002 RDI: 00007fffe0fc4880
RBP: 00007fffe0fc4880 R08: 00000000ffffffff R09: 00007fffe0fc4650
R10: 000000000186e8e3 R11: 0000000000000246 R12: 00000000004bebb2
R13: 00007fffe0fc5950 R14: 000000000186e810 R15: 00007fffe0fc5990
Modules linked in:
---[ end trace 9815747b8d9bf9dc ]---
RIP: 0010:add_to_queue fs/gfs2/glock.c:1082 [inline]
RIP: 0010:gfs2_glock_nq.cold+0x276/0x2cd fs/gfs2/glock.c:1107
Code: 0f b6 04 02 84 c0 74 04 3c 03 7e 6e 8b 73 18 44 89 ea 48 c7 c7 e0 46 a6 88 e8 0a 56 f8 ff 48 8b 74 24 08 31 ff e8 d9 f1 0b fb <0f> 0b e8 d2 2e 9e f9 4c 8b 04 24 e9 aa fd ff ff 31 ed e9 12 fe ff
RSP: 0000:ffff888039d4fa20 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffff8880aab46cf8 RCX: ffffffff8305f1b3
RDX: 0000000000000000 RSI: ffffffff8305f202 RDI: ffffffff88a669b0
RBP: 0000000000002d72 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffff8880b4fa3b78
R13: 0000000000000001 R14: 0000000000000000 R15: ffff8880b0d23e80
FS:  000000000186d400(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005566373d78c0 CR3: 000000009f464000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/13 04:31 linux-4.19.y 830a059cbba6 6a81331a .config console log report info ci2-linux-4-19 kernel BUG in gfs2_glock_nq
* Struck through repros no longer work on HEAD.