syzbot


kernel BUG in gfs2_glock_nq (2)

Status: upstream: reported C repro on 2022/09/23 06:12
Reported-by: syzbot+70f4e455dee59ab40c80@syzkaller.appspotmail.com
First crash: 68d, last: 1d06h

Cause bisection: failed (bisect log)
similar bugs (7):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 kernel BUG in gfs2_glock_nq 2 313d 356d 0/1 auto-closed as invalid on 2022/05/17 22:53
linux-4.19 kernel BUG in gfs2_glock_nq 1 592d 592d 0/1 auto-closed as invalid on 2021/08/11 04:31
linux-4.19 kernel BUG in gfs2_glock_nq (2) C error 15 3d01h 439d 0/1 upstream: reported C repro on 2021/09/14 01:12
upstream kernel BUG in gfs2_glock_nq 2 368d 357d 0/24 auto-closed as invalid on 2022/03/23 19:53
linux-4.14 kernel BUG in gfs2_glock_nq (2) 2 99d 184d 0/1 upstream: reported on 2022/05/26 14:43
linux-4.14 kernel BUG at fs/gfs2/glock.c:LINE! 3 668d 740d 0/1 auto-closed as invalid on 2021/05/27 07:56
linux-4.19 kernel BUG at fs/gfs2/glock.c:LINE! 2 736d 769d 0/1 auto-closed as invalid on 2021/03/20 05:06

Sample crash report:
gfs2: fsid=syz:syz.0: found 2 quota changes
gfs2: fsid=syz:syz.0: original: gfs2_quota_sync+0x3da/0x8b0 fs/gfs2/quota.c:1318
gfs2: fsid=syz:syz.0: pid: 3633
gfs2: fsid=syz:syz.0: lock type: 8 req lock state : 1
gfs2: fsid=syz:syz.0: new: gfs2_quota_sync+0x3da/0x8b0 fs/gfs2/quota.c:1318
gfs2: fsid=syz:syz.0: pid: 3633
gfs2: fsid=syz:syz.0: lock type: 8 req lock state : 1
gfs2: fsid=syz:syz.0: G:  s:EX n:8/1 f:qb t:EX d:EX/0 a:0 v:0 r:5 m:20 p:0
gfs2: fsid=syz:syz.0:  H: s:EX f:cH e:0 p:3633 [syz-executor421] gfs2_quota_sync+0x3da/0x8b0 fs/gfs2/quota.c:1318
------------[ cut here ]------------
kernel BUG at fs/gfs2/glock.c:1560!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 3633 Comm: syz-executor421 Not tainted 6.1.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:add_to_queue fs/gfs2/glock.c:1560 [inline]
RIP: 0010:gfs2_glock_nq+0x1661/0x1890 fs/gfs2/glock.c:1585
Code: 0f b7 4d 00 48 c7 c7 00 31 3c 8b 48 8b 74 24 20 89 da 31 c0 e8 9c c2 da 06 31 ff 48 8b 74 24 28 ba 01 00 00 00 e8 6f 7b ff ff <0f> 0b 89 d9 80 e1 07 fe c1 38 c1 0f 8c 94 ee ff ff 48 89 df e8 06
RSP: 0018:ffffc90003a9f898 EFLAGS: 00010246
RAX: 66a04389b2839d00 RBX: 0000000000000008 RCX: ffff888022fb3a80
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffff88801e76445a R08: ffffffff83b50c42 R09: fffffbfff1cebe0e
R10: fffffbfff1cebe0e R11: 1ffffffff1cebe0d R12: ffff88801e764438
R13: ffff88804a4cf280 R14: ffff88801e764430 R15: 1ffff11003cec883
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc0f982338 CR3: 0000000022f6f000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 gfs2_glock_nq_init fs/gfs2/glock.h:264 [inline]
 do_sync+0x3b1/0xc80 fs/gfs2/quota.c:910
 gfs2_quota_sync+0x3da/0x8b0 fs/gfs2/quota.c:1318
 gfs2_sync_fs+0x49/0xb0 fs/gfs2/super.c:643
 sync_filesystem+0xe8/0x220 fs/sync.c:56
 generic_shutdown_super+0x6b/0x310 fs/super.c:474
 kill_block_super+0x79/0xd0 fs/super.c:1428
 deactivate_locked_super+0xa7/0xf0 fs/super.c:332
 cleanup_mnt+0x494/0x520 fs/namespace.c:1186
 task_work_run+0x243/0x300 kernel/task_work.c:179
 exit_task_work include/linux/task_work.h:38 [inline]
 do_exit+0x664/0x2070 kernel/exit.c:820
 do_group_exit+0x1fd/0x2b0 kernel/exit.c:950
 __do_sys_exit_group kernel/exit.c:961 [inline]
 __se_sys_exit_group kernel/exit.c:959 [inline]
 __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:959
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f41222c2979
Code: Unable to access opcode bytes at 0x7f41222c294f.
RSP: 002b:00007fff635fe498 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007f412234b330 RCX: 00007f41222c2979
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001
RBP: 0000000000000001 R08: ffffffffffffffc0 R09: 00000000000134ba
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f412234b330
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:add_to_queue fs/gfs2/glock.c:1560 [inline]
RIP: 0010:gfs2_glock_nq+0x1661/0x1890 fs/gfs2/glock.c:1585
Code: 0f b7 4d 00 48 c7 c7 00 31 3c 8b 48 8b 74 24 20 89 da 31 c0 e8 9c c2 da 06 31 ff 48 8b 74 24 28 ba 01 00 00 00 e8 6f 7b ff ff <0f> 0b 89 d9 80 e1 07 fe c1 38 c1 0f 8c 94 ee ff ff 48 89 df e8 06
RSP: 0018:ffffc90003a9f898 EFLAGS: 00010246
RAX: 66a04389b2839d00 RBX: 0000000000000008 RCX: ffff888022fb3a80
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffff88801e76445a R08: ffffffff83b50c42 R09: fffffbfff1cebe0e
R10: fffffbfff1cebe0e R11: 1ffffffff1cebe0d R12: ffff88801e764438
R13: ffff88804a4cf280 R14: ffff88801e764430 R15: 1ffff11003cec883
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc0f982338 CR3: 0000000022f6f000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (16):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-fs 2022/11/24 00:03 upstream eb7081409f94 52fdf57a .config log report syz C kernel BUG in gfs2_glock_nq
ci2-upstream-fs 2022/11/22 15:52 upstream eb7081409f94 9da37ae8 .config log report syz C kernel BUG in gfs2_glock_nq
ci2-upstream-fs 2022/11/25 18:55 upstream c3eb11fbb826 74a66371 .config log report info kernel BUG in gfs2_glock_nq
ci2-upstream-fs 2022/11/24 10:48 upstream 4312098baf37 ff68ff8f .config log report info kernel BUG in gfs2_glock_nq
ci-upstream-kasan-gce-smack-root 2022/11/24 08:45 upstream 4312098baf37 12c66417 .config log report info kernel BUG in gfs2_glock_nq
ci2-upstream-fs 2022/11/22 15:02 upstream eb7081409f94 9da37ae8 .config log report info kernel BUG in gfs2_glock_nq
ci2-upstream-fs 2022/11/06 11:57 upstream b208b9fbbcba 6d752409 .config log report info kernel BUG in gfs2_glock_nq
ci2-upstream-fs 2022/11/01 10:32 upstream b229b6ca5abb a1d8560a .config log report info kernel BUG in gfs2_glock_nq
ci2-upstream-fs 2022/10/28 06:51 upstream b229b6ca5abb 5c716ff6 .config log report info kernel BUG in gfs2_glock_nq
ci2-upstream-fs 2022/10/16 12:47 upstream 493ffd6605b2 67cb024c .config log report info kernel BUG in gfs2_glock_nq
ci2-upstream-fs 2022/10/10 06:57 upstream 4899a36f91a9 aea5da89 .config log report info kernel BUG in gfs2_glock_nq
ci2-upstream-fs 2022/10/01 06:47 upstream 70575e77839f feb56351 .config log report info kernel BUG in gfs2_glock_nq
ci2-upstream-fs 2022/09/30 15:56 upstream 987a926c1d8a 45fd7169 .config log report info kernel BUG in gfs2_glock_nq
ci2-upstream-fs 2022/09/28 18:14 upstream 46452d3786a8 75c78242 .config log report info kernel BUG in gfs2_glock_nq
ci-upstream-linux-next-kasan-gce-root 2022/09/19 12:12 linux-next e47eb90a0a9a dd9a85ff .config log report info kernel BUG in gfs2_glock_nq
ci-upstream-linux-next-kasan-gce-root 2022/09/19 02:33 linux-next e47eb90a0a9a dd9a85ff .config log report info kernel BUG in gfs2_glock_nq
* Struck through repros no longer work on HEAD.