kernel BUG in gfs2_glock_nq (2)

6 views
Skip to first unread message

syzbot

unread,
May 26, 2022, 10:43:29 AM5/26/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 501eec4f9e13 Linux 4.14.281
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=17986499f00000
kernel config: https://syzkaller.appspot.com/x/.config?x=f1fa63ddcfc7168c
dashboard link: https://syzkaller.appspot.com/bug?extid=8187784791754d60479b
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+818778...@syzkaller.appspotmail.com

gfs2: pid: 8000
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:8000 [syz-executor.0] gfs2_glock_nq_init fs/gfs2/glock.h:226 [inline]
gfs2: H: s:EX f:cH e:0 p:8000 [syz-executor.0] do_sync+0x3f0/0xba0 fs/gfs2/quota.c:893
------------[ cut here ]------------
kernel BUG at fs/gfs2/glock.c:1082!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 8000 Comm: syz-executor.0 Not tainted 4.14.281-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff88809f58e2c0 task.stack: ffff88809b5d8000
RIP: 0010:add_to_queue fs/gfs2/glock.c:1082 [inline]
RIP: 0010:gfs2_glock_nq.cold+0x279/0x2d0 fs/gfs2/glock.c:1107
RSP: 0018:ffff88809b5dfa88 EFLAGS: 00010296
RAX: ffffed10136bbf32 RBX: ffff888099f2b2a0 RCX: 1ffff11013eb1d7d
RDX: 0000000000000000 RSI: 0000000000000005 RDI: ffffffff87c0d0f0
RBP: 0000000000001f40 R08: 0000000000000043 R09: 0000000000000004
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880a5f45ab0
R13: ffff888099f2b2a0 R14: 0000000000000001 R15: 0000000000000000
FS: 0000555556208400(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555555adc708 CR3: 00000000a1254000 CR4: 00000000003406e0
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+0x3f8/0xba0 fs/gfs2/quota.c:893
gfs2_quota_sync+0x4f1/0x690 fs/gfs2/quota.c:1299
gfs2_sync_fs+0x40/0xa0 fs/gfs2/super.c:947
__sync_filesystem fs/sync.c:39 [inline]
sync_filesystem fs/sync.c:64 [inline]
sync_filesystem+0xe2/0x230 fs/sync.c:48
generic_shutdown_super+0x70/0x370 fs/super.c:432
kill_block_super+0x95/0xe0 fs/super.c:1161
gfs2_kill_sb+0x12c/0x1a0 fs/gfs2/ops_fstype.c:1409
deactivate_locked_super+0x6c/0xd0 fs/super.c:319
deactivate_super+0x7f/0xa0 fs/super.c:350
cleanup_mnt+0x186/0x2c0 fs/namespace.c:1183
task_work_run+0x11f/0x190 kernel/task_work.c:113
tracehook_notify_resume include/linux/tracehook.h:191 [inline]
exit_to_usermode_loop+0x1ad/0x200 arch/x86/entry/common.c:164
prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline]
syscall_return_slowpath arch/x86/entry/common.c:270 [inline]
do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7f5085f17577
RSP: 002b:00007ffea15088f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f5085f17577
RDX: 00007ffea15089ca RSI: 000000000000000a RDI: 00007ffea15089c0
RBP: 00007ffea15089c0 R08: 00000000ffffffff R09: 00007ffea1508790
R10: 0000555556209903 R11: 0000000000000246 R12: 00007f5085f6f1f8
R13: 00007ffea1509a80 R14: 0000555556209810 R15: 00007ffea1509ac0
Code: c1 ea 03 0f b6 04 02 84 c0 74 04 3c 03 7e 6c 8b 73 18 44 89 f2 48 c7 c7 c0 ae c0 87 e8 02 84 f9 ff 4c 89 ee 31 ff e8 e0 ad b0 fb <0f> 0b e8 c9 92 75 fa 4c 8b 04 24 e9 ac fd ff ff 31 ed e9 14 fe
RIP: add_to_queue fs/gfs2/glock.c:1082 [inline] RSP: ffff88809b5dfa88
RIP: gfs2_glock_nq.cold+0x279/0x2d0 fs/gfs2/glock.c:1107 RSP: ffff88809b5dfa88
---[ end trace 184a880a1987a824 ]---


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Dec 1, 2022, 10:50:51 AM12/1/22
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 179ef7fe8677 Linux 4.14.300
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=149ffcf3880000
kernel config: https://syzkaller.appspot.com/x/.config?x=aa85f51ec321d5a9
dashboard link: https://syzkaller.appspot.com/bug?extid=8187784791754d60479b
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17a15ae3880000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15461af3880000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/d311ef57b59a/disk-179ef7fe.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/25bf5d729f69/vmlinux-179ef7fe.xz
kernel image: https://storage.googleapis.com/syzbot-assets/db9b96571e69/bzImage-179ef7fe.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/ddb9fab5f8d5/mount_0.gz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+818778...@syzkaller.appspotmail.com

gfs2: pid: 7957
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:7957 [syz-executor129] gfs2_glock_nq_init fs/gfs2/glock.h:226 [inline]
gfs2: H: s:EX f:cH e:0 p:7957 [syz-executor129] do_sync+0x3f0/0xba0 fs/gfs2/quota.c:893
------------[ cut here ]------------
kernel BUG at fs/gfs2/glock.c:1082!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 7957 Comm: syz-executor129 Not tainted 4.14.300-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
task: ffff8880b377a400 task.stack: ffff888094ef0000
RIP: 0010:add_to_queue fs/gfs2/glock.c:1082 [inline]
RIP: 0010:gfs2_glock_nq.cold+0x279/0x2d0 fs/gfs2/glock.c:1107
RSP: 0018:ffff888094ef7978 EFLAGS: 00010292
RAX: ffffed10129def10 RBX: ffff8880b444d2a0 RCX: 1ffff110166ef5a5
RDX: 0000000000000000 RSI: 0000000000000005 RDI: ffffffff87c0e290
RBP: 0000000000001f15 R08: 0000000000000044 R09: 0000000000000004
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880a8f28e78
R13: ffff8880b444d2a0 R14: 0000000000000001 R15: 0000000000000000
FS: 000055555571e300(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f347a892140 CR3: 00000000b28c6000 CR4: 00000000003406e0
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+0x3f8/0xba0 fs/gfs2/quota.c:893
gfs2_quota_sync+0x4f1/0x690 fs/gfs2/quota.c:1299
gfs2_sync_fs+0x40/0xa0 fs/gfs2/super.c:947
__sync_filesystem fs/sync.c:39 [inline]
sync_filesystem fs/sync.c:64 [inline]
sync_filesystem+0xe2/0x230 fs/sync.c:48
generic_shutdown_super+0x70/0x370 fs/super.c:432
kill_block_super+0x95/0xe0 fs/super.c:1161
gfs2_kill_sb+0x12c/0x1a0 fs/gfs2/ops_fstype.c:1414
deactivate_locked_super+0x6c/0xd0 fs/super.c:319
deactivate_super+0x7f/0xa0 fs/super.c:350
cleanup_mnt+0x186/0x2c0 fs/namespace.c:1183
task_work_run+0x11f/0x190 kernel/task_work.c:113
exit_task_work include/linux/task_work.h:22 [inline]
do_exit+0xa44/0x2850 kernel/exit.c:868
do_group_exit+0x100/0x2e0 kernel/exit.c:965
SYSC_exit_group kernel/exit.c:976 [inline]
SyS_exit_group+0x19/0x20 kernel/exit.c:974
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x5e/0xd3
Code: c1 ea 03 0f b6 04 02 84 c0 74 04 3c 03 7e 6c 8b 73 18 44 89 f2 48 c7 c7 60 c0 c0 87 e8 dc 82 f9 ff 4c 89 ee 31 ff e8 43 e5 b0 fb <0f> 0b e8 6c 74 75 fa 4c 8b 04 24 e9 ac fd ff ff 31 ed e9 14 fe
RIP: add_to_queue fs/gfs2/glock.c:1082 [inline] RSP: ffff888094ef7978
RIP: gfs2_glock_nq.cold+0x279/0x2d0 fs/gfs2/glock.c:1107 RSP: ffff888094ef7978
---[ end trace b5997e84d8bb2f9a ]---

Reply all
Reply to author
Forward
0 new messages