[v6.1] kernel BUG in gfs2_glock_nq

20 views
Skip to first unread message

syzbot

unread,
Mar 11, 2023, 8:31:45 PM3/11/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 1cc3fcf63192 Linux 6.1.18
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=154b192ac80000
kernel config: https://syzkaller.appspot.com/x/.config?x=157296d36f92ea19
dashboard link: https://syzkaller.appspot.com/bug?extid=d9b5bfddf84d608ebd95
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/0e4c0d43698b/disk-1cc3fcf6.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/a4de39d735de/vmlinux-1cc3fcf6.xz
kernel image: https://storage.googleapis.com/syzbot-assets/82bab928f6e3/Image-1cc3fcf6.gz.xz

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

gfs2: fsid=syz:syz.0: G: s:EX n:8/1 f:qb t:EX d:EX/0 a:0 v:0 r:6 m:20 p:0
gfs2: fsid=syz:syz.0: H: s:EX f:cH e:0 p:4339 [syz-executor.5] gfs2_quota_sync+0x2e4/0x534 fs/gfs2/quota.c:1318
------------[ cut here ]------------
kernel BUG at fs/gfs2/glock.c:1562!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 4339 Comm: syz-executor.5 Not tainted 6.1.18-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : add_to_queue fs/gfs2/glock.c:1561 [inline]
pc : gfs2_glock_nq+0x1164/0x13d8 fs/gfs2/glock.c:1587
lr : add_to_queue fs/gfs2/glock.c:1561 [inline]
lr : gfs2_glock_nq+0x1164/0x13d8 fs/gfs2/glock.c:1587
sp : ffff80001e5774e0
x29: ffff80001e577560 x28: ffff0000c6e57060 x27: ffff0000c6e57000
x26: ffff00010bf23530 x25: ffff0000c2641270 x24: ffff0000c6e57022
x23: ffff0000c6e5705a x22: ffff00010bf23538 x21: ffff0000f854d140
x20: dfff800000000000 x19: 0000000000000008 x18: ffff80001e576580
x17: 205d352e726f7475 x16: ffff800012253f8c x15: 0000000000000000
x14: 0000000000000000 x13: 0000000000000001 x12: 0000000000000001
x11: ff8080000a420dc0 x10: 0000000000000000 x9 : a68fc7ef7888df00
x8 : a68fc7ef7888df00 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff80001e576938 x4 : ffff800015813880 x3 : ffff800008590318
x2 : 0000000000000001 x1 : 0000000000000001 x0 : 0000000000000000
Call trace:
add_to_queue fs/gfs2/glock.c:1561 [inline]
gfs2_glock_nq+0x1164/0x13d8 fs/gfs2/glock.c:1587
gfs2_glock_nq_init fs/gfs2/glock.h:264 [inline]
do_sync+0x39c/0xb48 fs/gfs2/quota.c:910
gfs2_quota_sync+0x2e4/0x534 fs/gfs2/quota.c:1318
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:648
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x328 fs/super.c:474
kill_block_super+0x70/0xdc fs/super.c:1441
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xac/0x124 fs/super.c:332
deactivate_super+0xf0/0x110 fs/super.c:363
cleanup_mnt+0x394/0x41c fs/namespace.c:1186
__cleanup_mnt+0x20/0x30 fs/namespace.c:1193
task_work_run+0x240/0x2f0 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
do_notify_resume+0x2144/0x3470 arch/arm64/kernel/signal.c:1132
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline]
el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
Code: aa1f03e0 f85f83a1 52800022 97ffe0c5 (d4210000)
---[ end trace 0000000000000000 ]---


---
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,
Mar 12, 2023, 8:19:47 AM3/12/23
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 1cc3fcf63192 Linux 6.1.18
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12ce9242c80000
kernel config: https://syzkaller.appspot.com/x/.config?x=157296d36f92ea19
dashboard link: https://syzkaller.appspot.com/bug?extid=d9b5bfddf84d608ebd95
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14f8d112c80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=158c5a5cc80000
mounted in repro: https://storage.googleapis.com/syzbot-assets/874b0099ea60/mount_0.gz

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

gfs2: fsid=syz:syz.0: G: s:EX n:8/1 f:qb t:EX d:EX/0 a:0 v:0 r:6 m:20 p:0
gfs2: fsid=syz:syz.0: H: s:EX f:cH e:0 p:4308 [syz-executor709] gfs2_quota_sync+0x2e4/0x534 fs/gfs2/quota.c:1318
------------[ cut here ]------------
kernel BUG at fs/gfs2/glock.c:1562!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 4308 Comm: syz-executor709 Not tainted 6.1.18-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : add_to_queue fs/gfs2/glock.c:1561 [inline]
pc : gfs2_glock_nq+0x1164/0x13d8 fs/gfs2/glock.c:1587
lr : add_to_queue fs/gfs2/glock.c:1561 [inline]
lr : gfs2_glock_nq+0x1164/0x13d8 fs/gfs2/glock.c:1587
sp : ffff80001dd375c0
x29: ffff80001dd37640 x28: ffff0000c1160060 x27: ffff0000c1160000
x26: ffff0000ddfa3b70 x25: ffff0000d7e4d270 x24: ffff0000c1160022
x23: ffff0000c116005a x22: ffff0000ddfa3b78 x21: ffff0000c6ff5000
x20: dfff800000000000 x19: 0000000000000008 x18: ffff80001dd36660
x17: 5d393037726f7475 x16: ffff800012253f8c x15: 0000000000000000
x14: 0000000000000000 x13: 0000000000000001 x12: 0000000000000001
x11: ff8080000a420dc0 x10: 0000000000000000 x9 : 5def4b844dda2b00
x8 : 5def4b844dda2b00 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff80001dd36a18 x4 : ffff800015813880 x3 : ffff800008590318
x2 : 0000000000000001 x1 : 0000000000000001 x0 : 0000000000000000
Call trace:
add_to_queue fs/gfs2/glock.c:1561 [inline]
gfs2_glock_nq+0x1164/0x13d8 fs/gfs2/glock.c:1587
gfs2_glock_nq_init fs/gfs2/glock.h:264 [inline]
do_sync+0x39c/0xb48 fs/gfs2/quota.c:910
gfs2_quota_sync+0x2e4/0x534 fs/gfs2/quota.c:1318
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:648
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x328 fs/super.c:474
kill_block_super+0x70/0xdc fs/super.c:1441
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xac/0x124 fs/super.c:332
deactivate_super+0xf0/0x110 fs/super.c:363
cleanup_mnt+0x394/0x41c fs/namespace.c:1186
__cleanup_mnt+0x20/0x30 fs/namespace.c:1193
task_work_run+0x240/0x2f0 kernel/task_work.c:179
exit_task_work include/linux/task_work.h:38 [inline]
do_exit+0x554/0x1a88 kernel/exit.c:869
do_group_exit+0x194/0x22c kernel/exit.c:1019
__do_sys_exit_group kernel/exit.c:1030 [inline]
__se_sys_exit_group kernel/exit.c:1028 [inline]
__wake_up_parent+0x0/0x60 kernel/exit.c:1028
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206
el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637

syzbot

unread,
Mar 12, 2023, 5:28:43 PM3/12/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: bbf9f29bac04 Linux 5.15.101
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12f4a48ac80000
kernel config: https://syzkaller.appspot.com/x/.config?x=353a11a1dbfe7820
dashboard link: https://syzkaller.appspot.com/bug?extid=1c34b9af91345e5a2c2e
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11a208dac80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12f5e324c80000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/741458b6f24d/disk-bbf9f29b.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/46cdc0f15ae5/vmlinux-bbf9f29b.xz
kernel image: https://storage.googleapis.com/syzbot-assets/15bf795c52fa/Image-bbf9f29b.gz.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/7e8a344cbb18/mount_0.gz

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

gfs2: fsid=syz:syz.0: G: s:EX n:8/1 f:qb t:EX d:EX/0 a:0 v:0 r:6 m:20 p:0
gfs2: fsid=syz:syz.0: H: s:EX f:cH e:0 p:4053 [syz-executor240] gfs2_glock_nq_init fs/gfs2/glock.h:244 [inline]
gfs2: fsid=syz:syz.0: H: s:EX f:cH e:0 p:4053 [syz-executor240] do_sync+0x350/0xaf8 fs/gfs2/quota.c:910
------------[ cut here ]------------
kernel BUG at fs/gfs2/glock.c:1501!
Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 4053 Comm: syz-executor240 Not tainted 5.15.101-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : add_to_queue fs/gfs2/glock.c:1500 [inline]
pc : gfs2_glock_nq+0xed4/0x144c fs/gfs2/glock.c:1525
lr : add_to_queue fs/gfs2/glock.c:1500 [inline]
lr : gfs2_glock_nq+0xed4/0x144c fs/gfs2/glock.c:1525
sp : ffff80001c7b7630
x29: ffff80001c7b76a0 x28: ffff0000dc611340 x27: ffff0000dc6112d0
x26: 0000000000000040 x25: ffff0000dc6112d8 x24: ffff0000c98b3000
x23: ffff0000c086c638 x22: ffff0000c086c65a x21: dfff800000000000
x20: 0000000000000008 x19: ffff0000c938d2c0 x18: 0000000000000002
x17: ff808000083386a0 x16: ffff800011a092ac x15: ffff8000083386a0
x14: 00000000ffffffff x13: ffffffffffffffff x12: 0000000000000000
x11: ff8080000a2be5d8 x10: 0000000000000000 x9 : 51f4145cfaad4500
x8 : 51f4145cfaad4500 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff80001c7b68d8 x4 : ffff800014aa0700 x3 : ffff8000085518f8
x2 : 0000000000000001 x1 : 0000000000000001 x0 : 0000000000000000
Call trace:
add_to_queue fs/gfs2/glock.c:1500 [inline]
gfs2_glock_nq+0xed4/0x144c fs/gfs2/glock.c:1525
gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline]
do_sync+0x358/0xaf8 fs/gfs2/quota.c:910
gfs2_quota_sync+0x2e8/0x548 fs/gfs2/quota.c:1318
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:647
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x29c fs/super.c:448
kill_block_super+0x70/0xdc fs/super.c:1396
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xb8/0x13c fs/super.c:335
deactivate_super+0x108/0x128 fs/super.c:366
cleanup_mnt+0x3c0/0x474 fs/namespace.c:1143
__cleanup_mnt+0x20/0x30 fs/namespace.c:1150
task_work_run+0x130/0x1e4 kernel/task_work.c:164
exit_task_work include/linux/task_work.h:32 [inline]
do_exit+0x55c/0x1c20 kernel/exit.c:872
do_group_exit+0x110/0x268 kernel/exit.c:994
__do_sys_exit_group kernel/exit.c:1005 [inline]
__se_sys_exit_group kernel/exit.c:1003 [inline]
__wake_up_parent+0x0/0x60 kernel/exit.c:1003
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 <unknown>:584
Code: aa1f03e0 f85f03a1 52800022 97ffe34f (d4210000)
---[ end trace 16b16a7e0f9588e3 ]---


---
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 can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches
Reply all
Reply to author
Forward
0 new messages