syzbot


INFO: task hung in xlog_grant_head_check

Status: auto-closed as invalid on 2019/10/25 08:51
Reported-by: syzbot+0a4bdeb402f649cc5242@syzkaller.appspotmail.com
First crash: 1759d, last: 1759d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 INFO: task hung in xlog_grant_head_check xfs C inconclusive 10 456d 1531d 0/1 upstream: reported C repro on 2020/02/10 12:53
linux-6.1 INFO: task hung in xlog_grant_head_check origin:upstream C error 46 14h00m 383d 0/3 upstream: reported C repro on 2023/04/02 19:36
linux-4.19 INFO: task hung in xlog_grant_head_check (3) xfs C 88 411d 493d 0/1 upstream: reported C repro on 2022/12/14 09:42
upstream INFO: task hung in xlog_grant_head_check no-reminders xfs C done error 705 3d08h 2160d 0/26 upstream: reported C repro on 2018/05/21 17:55
linux-5.15 INFO: task hung in xlog_grant_head_check origin:upstream C error 37 2d21h 392d 0/3 upstream: reported C repro on 2023/03/25 07:23
linux-4.19 INFO: task hung in xlog_grant_head_check (2) 3 1400d 1449d 0/1 auto-closed as invalid on 2020/10/17 16:39

Sample crash report:
XFS (loop4): metadata I/O error in "xfs_trans_read_buf_map" at daddr 0x2 len 1 error 117
XFS (loop4): xfs_imap_lookup: xfs_ialloc_read_agi() returned error -117, agno 0
XFS (loop4): Failed to read root inode 0x80, error 117
INFO: task syz-executor.0:14973 blocked for more than 140 seconds.
      Not tainted 4.19.56 #28
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.0  D26272 14973   7982 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2826 [inline]
 __schedule+0x80d/0x1c70 kernel/sched/core.c:3474
 schedule+0x92/0x1c0 kernel/sched/core.c:3518
 xlog_grant_head_wait+0x14e/0xd00 fs/xfs/xfs_log.c:263
 xlog_grant_head_check+0x436/0x4a0 fs/xfs/xfs_log.c:325
 xfs_log_reserve+0x371/0xad0 fs/xfs/xfs_log.c:454
 xfs_log_write_unmount_record fs/xfs/xfs_log.c:854 [inline]
 xfs_log_unmount_write fs/xfs/xfs_log.c:953 [inline]
 xfs_log_quiesce+0x40d/0xcb0 fs/xfs/xfs_log.c:1020
 xfs_log_unmount+0x22/0xb0 fs/xfs/xfs_log.c:1034
 xfs_log_mount_cancel+0x47/0x60 fs/xfs/xfs_log.c:816
 xfs_mountfs+0x1394/0x1cc0 fs/xfs/xfs_mount.c:1064
 xfs_fs_fill_super+0xd10/0x14f0 fs/xfs/xfs_super.c:1713
 mount_bdev+0x304/0x3c0 fs/super.c:1158
 xfs_fs_mount+0x35/0x40 fs/xfs/xfs_super.c:1787
 mount_fs+0xa8/0x32b fs/super.c:1261
 vfs_kern_mount.part.0+0x6f/0x410 fs/namespace.c:961
 vfs_kern_mount fs/namespace.c:951 [inline]
 do_new_mount fs/namespace.c:2469 [inline]
 do_mount+0x53e/0x2bc0 fs/namespace.c:2799
 ksys_mount+0xdb/0x150 fs/namespace.c:3015
 __do_sys_mount fs/namespace.c:3029 [inline]
 __se_sys_mount fs/namespace.c:3026 [inline]
 __x64_sys_mount+0xbe/0x150 fs/namespace.c:3026
 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45bf6a
Code: 48 8b 5c 24 30 e9 fa fe ff ff e8 f1 b3 ff ff e9 ac fe ff ff cc cc cc cc cc cc cc cc cc cc cc cc 64 48 8b 0c 25 f8 ff ff ff 48 <3b> 61 10 0f 86 84 00 00 00 48 83 ec 28 48 89 6c 24 20 48 8d 6c 24
RSP: 002b:00007f16cdd22a88 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f16cdd22b40 RCX: 000000000045bf6a
RDX: 00007f16cdd22ae0 RSI: 0000000020000000 RDI: 00007f16cdd22b00
RBP: 0000000000000001 R08: 00007f16cdd22b40 R09: 00007f16cdd22ae0
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000003
R13: 00000000004c858e R14: 00000000004df0e0 R15: 00000000ffffffff

Showing all locks held in the system:
1 lock held by khungtaskd/1033:
 #0: 00000000af97277c (rcu_read_lock){....}, at: debug_show_all_locks+0x5f/0x27e kernel/locking/lockdep.c:4435
1 lock held by rsyslogd/7817:
2 locks held by getty/7939:
 #0: 000000002dec2a2c (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:363
 #1: 0000000018e4129e (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154
2 locks held by getty/7940:
 #0: 00000000ac3dee73 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:363
 #1: 000000004f3dd8e9 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154
2 locks held by getty/7941:
 #0: 000000005ddada32 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:363
 #1: 00000000e88aa6af (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154
2 locks held by getty/7942:
 #0: 000000008c175034 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:363
 #1: 000000005590537f (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154
2 locks held by getty/7943:
 #0: 00000000faaa495c (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:363
 #1: 0000000022de63a9 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154
2 locks held by getty/7944:
 #0: 000000003e0401ca (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:363
 #1: 00000000b3b63422 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154
2 locks held by getty/7945:
 #0: 0000000006856eae (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:363
 #1: 00000000fdc95b13 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154
1 lock held by syz-executor.0/14973:
 #0: 000000009173b2ab (&type->s_umount_key#61/1){+.+.}, at: alloc_super fs/super.c:226 [inline]
 #0: 000000009173b2ab (&type->s_umount_key#61/1){+.+.}, at: sget_userns+0x208/0xd30 fs/super.c:519

=============================================

NMI backtrace for cpu 0
CPU: 0 PID: 1033 Comm: khungtaskd Not tainted 4.19.56 #28
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x172/0x1f0 lib/dump_stack.c:113
 nmi_cpu_backtrace.cold+0x63/0xa4 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x1b0/0x1f8 lib/nmi_backtrace.c:62
 arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline]
 watchdog+0x9df/0xee0 kernel/hung_task.c:287
 kthread+0x354/0x420 kernel/kthread.c:246
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 2795 Comm: kworker/u4:5 Not tainted 4.19.56 #28
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: bat_events batadv_tt_purge
RIP: 0010:arch_local_save_flags arch/x86/include/asm/paravirt.h:783 [inline]
RIP: 0010:arch_local_irq_save arch/x86/include/asm/paravirt.h:805 [inline]
RIP: 0010:__local_bh_disable_ip+0x4f/0x1b0 kernel/softirq.c:116
Code: 72 88 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 0f 85 2d 01 00 00 48 83 3d 29 bc 31 07 00 0f 84 12 01 00 00 9c 58 <0f> 1f 44 00 00 48 c7 c2 50 36 72 88 49 89 c5 48 b8 00 00 00 00 00
RSP: 0018:ffff88809ef5fc80 EFLAGS: 00000286
RAX: 0000000000000286 RBX: 0000000000000201 RCX: ffffffff86d74e99
RDX: dffffc0000000000 RSI: 0000000000000201 RDI: ffffffff86d74c2b
RBP: ffff88809ef5fc98 R08: ffff88809edf6300 R09: ffff88809edf6bc8
R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff86d74c2b
R13: 00000000000000b2 R14: dffffc0000000000 R15: ffff8880a4b0a0c0
FS:  0000000000000000(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c42876a788 CR3: 0000000091c39000 CR4: 00000000001406e0
Call Trace:
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:134 [inline]
 _raw_spin_lock_bh+0x17/0x50 kernel/locking/spinlock.c:168
 spin_lock_bh include/linux/spinlock.h:334 [inline]
 batadv_tt_global_purge net/batman-adv/translation-table.c:2519 [inline]
 batadv_tt_purge+0x10b/0xa30 net/batman-adv/translation-table.c:3810
 process_one_work+0x989/0x1750 kernel/workqueue.c:2153
 worker_thread+0x98/0xe40 kernel/workqueue.c:2296
 kthread+0x354/0x420 kernel/kthread.c:246
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/06/26 16:03 linux-4.19.y aec3002d07fd 4d342240 .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.