syzbot


INFO: task hung in gfs2_evict_inode

Status: upstream: reported on 2023/01/24 02:28
Subsystems: gfs2
[Documentation on labels]
Reported-by: syzbot+04cb0bfdf89795c1bda2@syzkaller.appspotmail.com
First crash: 654d, last: 654d

Sample crash report:
gfs2: fsid=ˆ_: error -17 adding sysfs files
ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy1 wpan1: encryption failed: -22
ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy1 wpan1: encryption failed: -22
INFO: task syz-executor.2:30217 blocked for more than 140 seconds.
      Not tainted 4.19.211-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.2  D25888 30217  11467 0x80000004
Call Trace:
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x887/0x2040 kernel/sched/core.c:3517
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
 io_schedule+0xb5/0x120 kernel/sched/core.c:5181
 bit_wait_io+0x12/0x90 kernel/sched/wait_bit.c:207
 __wait_on_bit+0x7e/0x150 kernel/sched/wait_bit.c:48
 out_of_line_wait_on_bit+0xd2/0x100 kernel/sched/wait_bit.c:63
 wait_on_bit_io include/linux/wait_bit.h:101 [inline]
 gfs2_evict_inode+0x816/0x14b0 fs/gfs2/super.c:1712
 evict+0x2ed/0x760 fs/inode.c:559
 iput_final fs/inode.c:1555 [inline]
 iput+0x4f1/0x860 fs/inode.c:1581
 gfs2_jindex_free+0x35c/0x500 fs/gfs2/super.c:322
 init_journal fs/gfs2/ops_fstype.c:765 [inline]
 init_inodes+0xcfc/0x1cf0 fs/gfs2/ops_fstype.c:783
 fill_super+0x18a6/0x2550 fs/gfs2/ops_fstype.c:1153
 gfs2_mount+0x4c0/0x5a0 fs/gfs2/ops_fstype.c:1316
 mount_fs+0xa3/0x310 fs/super.c:1261
 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
 vfs_kern_mount fs/namespace.c:951 [inline]
 do_new_mount fs/namespace.c:2492 [inline]
 do_mount+0x115c/0x2f50 fs/namespace.c:2822
 ksys_mount+0xcf/0x130 fs/namespace.c:3038
 __do_sys_mount fs/namespace.c:3052 [inline]
 __se_sys_mount fs/namespace.c:3049 [inline]
 __x64_sys_mount+0xba/0x150 fs/namespace.c:3049
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f5b25b435fa
Code: Bad RIP value.
RSP: 002b:00007f5b240b3f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00000000000134ce RCX: 00007f5b25b435fa
RDX: 0000000020013400 RSI: 0000000020013440 RDI: 00007f5b240b3fe0
RBP: 00007f5b240b4020 R08: 00007f5b240b4020 R09: 0000000000000002
R10: 0000000000000002 R11: 0000000000000202 R12: 0000000020013400
R13: 0000000020013440 R14: 00007f5b240b3fe0 R15: 0000000020000000

Showing all locks held in the system:
1 lock held by khungtaskd/1571:
 #0: 000000003822372c (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441
3 locks held by kworker/1:1H/4665:
1 lock held by in:imklog/7807:
 #0: 000000008d80495b (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767
2 locks held by agetty/8029:
 #0: 0000000046123da0 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:272
 #1: 00000000c043ae77 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x217/0x1950 drivers/tty/n_tty.c:2154
1 lock held by syz-executor.4/8171:
 #0: 000000002ad8aab6 (&type->s_umount_key#63){++++}, at: deactivate_super+0x16c/0x1a0 fs/super.c:359
1 lock held by syz-executor.2/30217:
 #0: 0000000078170c9b (&type->s_umount_key#62/1){+.+.}, at: alloc_super fs/super.c:226 [inline]
 #0: 0000000078170c9b (&type->s_umount_key#62/1){+.+.}, at: sget_userns+0x20b/0xcd0 fs/super.c:519

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

NMI backtrace for cpu 0
CPU: 0 PID: 1571 Comm: khungtaskd Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x1a6/0x1f0 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline]
 watchdog+0x991/0xe60 kernel/hung_task.c:287
 kthread+0x33f/0x460 kernel/kthread.c:259
 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: 4665 Comm: kworker/1:1H Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Workqueue: glock_workqueue glock_work_func
RIP: 0010:match_held_lock kernel/locking/lockdep.c:3477 [inline]
RIP: 0010:__lock_is_held+0xce/0x160 kernel/locking/lockdep.c:3728
Code: 2f 83 c5 01 41 39 af 80 08 00 00 7e 70 48 63 c5 48 8d 04 80 49 8d 1c c4 48 8d 7b 10 48 89 f8 48 c1 e8 03 42 80 3c 28 00 75 6e <4c> 3b 73 10 75 95 83 7c 24 04 ff b8 01 00 00 00 74 32 48 8d 7b 20
RSP: 0018:ffff8880a326f7e8 EFLAGS: 00000046
RAX: 1ffff1101464cdcd RBX: ffff8880a3266e58 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: ffff8880a3266e68
RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880a3266e08
R13: dffffc0000000000 R14: ffffffff89f85fa0 R15: ffff8880a3266580
FS:  0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c0007fbe80 CR3: 00000000ab4d5000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 lock_is_held_type+0x10d/0x210 kernel/locking/lockdep.c:3946
 radix_tree_deref_slot include/linux/radix-tree.h:241 [inline]
 find_get_entries+0x6e5/0xa90 mm/filemap.c:1662
 pagevec_lookup_entries+0x35/0x80 mm/swap.c:956
 truncate_inode_pages_range+0x1d1/0x1b00 mm/truncate.c:328
 inode_go_inval+0x163/0x4b0 fs/gfs2/glops.c:302
 do_xmote+0x336/0x670 fs/gfs2/glock.c:571
 run_queue+0x24f/0x580 fs/gfs2/glock.c:655
 glock_work_func+0x1c4/0x370 fs/gfs2/glock.c:719
 process_one_work+0x864/0x1570 kernel/workqueue.c:2153
 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296
 kthread+0x33f/0x460 kernel/kthread.c:259
 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
2023/01/24 02:28 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in gfs2_evict_inode
* Struck through repros no longer work on HEAD.