syzbot


INFO: task hung in queue_log_writer

Status: upstream: reported on 2023/02/06 08:12
Subsystems: reiserfs
[Documentation on labels]
Reported-by: syzbot+018600b145e4f975becd@syzkaller.appspotmail.com
First crash: 502d, last: 502d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in queue_log_writer reiserfs C inconclusive inconclusive 110 390d 525d 0/27 auto-obsoleted due to no activity on 2023/12/25 14:05
linux-4.19 INFO: task hung in queue_log_writer reiserfs fat C 8 502d 530d 0/1 upstream: reported C repro on 2023/01/08 18:46

Sample crash report:
batman_adv: batadv0: Interface activated: batadv_slave_1
IPv6: ADDRCONF(NETDEV_CHANGE): batadv_slave_1: link becomes ready
IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready
Bluetooth: hci7 command 0x041b tx timeout
INFO: task kworker/u4:6:9359 blocked for more than 140 seconds.
      Not tainted 4.14.305-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
kworker/u4:6    D28192  9359      2 0x80000000
Workqueue: writeback wb_workfn (flush-7:5)
Call Trace:
 context_switch kernel/sched/core.c:2811 [inline]
 __schedule+0x88b/0x1de0 kernel/sched/core.c:3386
 schedule+0x8d/0x1b0 kernel/sched/core.c:3430
 queue_log_writer+0x237/0x290 fs/reiserfs/journal.c:2987
 check_journal_end fs/reiserfs/journal.c:3684 [inline]
 do_journal_end+0x7c9/0x4310 fs/reiserfs/journal.c:4051
 reiserfs_write_inode+0x204/0x250 fs/reiserfs/inode.c:1788
 write_inode fs/fs-writeback.c:1241 [inline]
 __writeback_single_inode+0x6a4/0x1010 fs/fs-writeback.c:1439
 writeback_sb_inodes+0x48b/0xd30 fs/fs-writeback.c:1645
 wb_writeback+0x243/0xb80 fs/fs-writeback.c:1820
 wb_do_writeback fs/fs-writeback.c:1952 [inline]
 wb_workfn+0x2bd/0xf50 fs/fs-writeback.c:1988
 process_one_work+0x793/0x14a0 kernel/workqueue.c:2117
 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2251
 kthread+0x30d/0x420 kernel/kthread.c:232
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:406
INFO: task syz-executor.5:9401 blocked for more than 140 seconds.
      Not tainted 4.14.305-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.5  D25560  9401   8008 0x00000006
Call Trace:
 context_switch kernel/sched/core.c:2811 [inline]
 __schedule+0x88b/0x1de0 kernel/sched/core.c:3386
 schedule+0x8d/0x1b0 kernel/sched/core.c:3430
 bit_wait+0x12/0x90 kernel/sched/wait_bit.c:240
 __wait_on_bit+0x86/0x150 kernel/sched/wait_bit.c:51
 __inode_wait_for_writeback+0x123/0x190 fs/fs-writeback.c:1262
 inode_wait_for_writeback+0x22/0x30 fs/fs-writeback.c:1274
 evict+0x292/0x700 fs/inode.c:551
 iput_final fs/inode.c:1523 [inline]
 iput+0x458/0x7e0 fs/inode.c:1550
 dentry_unlink_inode+0x25c/0x310 fs/dcache.c:387
 d_delete+0x1c5/0x280 fs/dcache.c:2417
 xattr_unlink+0x114/0x160 fs/reiserfs/xattr.c:96
 lookup_and_delete_xattr fs/reiserfs/xattr.c:492 [inline]
 reiserfs_xattr_set_handle+0x6d2/0x980 fs/reiserfs/xattr.c:527
 reiserfs_xattr_set+0x387/0x4d0 fs/reiserfs/xattr.c:631
 trusted_set+0x86/0xb0 fs/reiserfs/xattr_trusted.c:30
 __vfs_removexattr+0xcf/0x120 fs/xattr.c:416
 __vfs_removexattr_locked+0x12e/0x2f0 fs/xattr.c:448
 vfs_removexattr+0xb1/0x210 fs/xattr.c:469
 ovl_fill_super+0x1170/0x2610 fs/overlayfs/super.c:1029
 mount_nodev+0x4c/0xf0 fs/super.c:1180
 mount_fs+0x92/0x2a0 fs/super.c:1237
 vfs_kern_mount.part.0+0x5b/0x470 fs/namespace.c:1046
 vfs_kern_mount fs/namespace.c:1036 [inline]
 do_new_mount fs/namespace.c:2572 [inline]
 do_mount+0xe65/0x2a30 fs/namespace.c:2905
 SYSC_mount fs/namespace.c:3121 [inline]
 SyS_mount+0xa8/0x120 fs/namespace.c:3098
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7f6c495a60c9
RSP: 002b:00007f6c47b18168 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f6c496c5f80 RCX: 00007f6c495a60c9
RDX: 0000000020000080 RSI: 00000000200000c0 RDI: 0000000000000000
RBP: 00007f6c49601ae9 R08: 0000000020000480 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffcbdc489ff R14: 00007f6c47b18300 R15: 0000000000022000
INFO: task syz-executor.5:9413 blocked for more than 140 seconds.
      Not tainted 4.14.305-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.5  D28056  9413   8008 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2811 [inline]
 __schedule+0x88b/0x1de0 kernel/sched/core.c:3386
 schedule+0x8d/0x1b0 kernel/sched/core.c:3430
 wb_wait_for_completion fs/fs-writeback.c:222 [inline]
 wb_wait_for_completion+0x118/0x170 fs/fs-writeback.c:218
 sync_inodes_sb+0x173/0x880 fs/fs-writeback.c:2447
 __sync_filesystem fs/sync.c:34 [inline]
 sync_filesystem fs/sync.c:67 [inline]
 sync_filesystem+0x12f/0x230 fs/sync.c:48
 reiserfs_remount+0x10f/0x1320 fs/reiserfs/super.c:1453
 do_remount_sb+0x150/0x530 fs/super.c:868
 do_remount fs/namespace.c:2393 [inline]
 do_mount+0x15f3/0x2a30 fs/namespace.c:2896
 SYSC_mount fs/namespace.c:3121 [inline]
 SyS_mount+0xa8/0x120 fs/namespace.c:3098
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7f6c495a75fa
RSP: 002b:00007f6c3faf6f88 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f6c495a75fa
RDX: 00000000200000c0 RSI: 0000000020000100 RDI: 0000000000000000
RBP: 00007f6c3faf7020 R08: 00007f6c3faf7020 R09: 0000000001a484bc
R10: 0000000001a484bc R11: 0000000000000206 R12: 00000000200000c0
R13: 0000000020000100 R14: 00007f6c3faf6fe0 R15: 00000000200009c0

Showing all locks held in the system:
1 lock held by khungtaskd/1533:
 #0:  (tasklist_lock){.+.+}, at: [<ffffffff8702d99c>] debug_show_all_locks+0x7c/0x21a kernel/locking/lockdep.c:4548
2 locks held by kworker/u4:6/9359:
 #0:  ("writeback"){+.+.}, at: [<ffffffff813660e0>] process_one_work+0x6b0/0x14a0 kernel/workqueue.c:2088
 #1:  ((&(&wb->dwork)->work)){+.+.}, at: [<ffffffff81366116>] process_one_work+0x6e6/0x14a0 kernel/workqueue.c:2092
3 locks held by syz-executor.5/9401:
 #0:  (&type->s_umount_key#47/1){+.+.}, at: [<ffffffff81879146>] alloc_super fs/super.c:251 [inline]
 #0:  (&type->s_umount_key#47/1){+.+.}, at: [<ffffffff81879146>] sget_userns+0x556/0xc10 fs/super.c:516
 #1:  (&type->i_mutex_dir_key#8){++++}, at: [<ffffffff818f3bf2>] inode_lock include/linux/fs.h:719 [inline]
 #1:  (&type->i_mutex_dir_key#8){++++}, at: [<ffffffff818f3bf2>] vfs_removexattr+0xa2/0x210 fs/xattr.c:468
 #2:  (&type->i_mutex_dir_key#8/3){+.+.}, at: [<ffffffff81b3db02>] inode_lock_nested include/linux/fs.h:754 [inline]
 #2:  (&type->i_mutex_dir_key#8/3){+.+.}, at: [<ffffffff81b3db02>] lookup_and_delete_xattr fs/reiserfs/xattr.c:484 [inline]
 #2:  (&type->i_mutex_dir_key#8/3){+.+.}, at: [<ffffffff81b3db02>] reiserfs_xattr_set_handle+0x652/0x980 fs/reiserfs/xattr.c:527
2 locks held by syz-executor.5/9413:
 #0:  (&type->s_umount_key#48){++++}, at: [<ffffffff818e9777>] do_remount fs/namespace.c:2387 [inline]
 #0:  (&type->s_umount_key#48){++++}, at: [<ffffffff818e9777>] do_mount+0x837/0x2a30 fs/namespace.c:2896
 #1:  (&bdi->wb_switch_rwsem){+.+.}, at: [<ffffffff8190f236>] bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:338 [inline]
 #1:  (&bdi->wb_switch_rwsem){+.+.}, at: [<ffffffff8190f236>] sync_inodes_sb+0x156/0x880 fs/fs-writeback.c:2445
2 locks held by syz-executor.1/11894:
 #0:  (sb_writers#4){.+.+}, at: [<ffffffff8187058f>] file_start_write include/linux/fs.h:2714 [inline]
 #0:  (sb_writers#4){.+.+}, at: [<ffffffff8187058f>] do_sendfile+0x84f/0xb30 fs/read_write.c:1440
 #1:  (&type->s_umount_key#48){++++}, at: [<ffffffff8187b57a>] iterate_supers+0xda/0x490 fs/super.c:611
2 locks held by syz-executor.1/12266:
 #0:  (sb_writers#4){.+.+}, at: [<ffffffff8187058f>] file_start_write include/linux/fs.h:2714 [inline]
 #0:  (sb_writers#4){.+.+}, at: [<ffffffff8187058f>] do_sendfile+0x84f/0xb30 fs/read_write.c:1440
 #1:  (&type->s_umount_key#48){++++}, at: [<ffffffff8187b57a>] iterate_supers+0xda/0x490 fs/super.c:611

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

NMI backtrace for cpu 1
CPU: 1 PID: 1533 Comm: khungtaskd Not tainted 4.14.305-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 nmi_cpu_backtrace.cold+0x57/0x93 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x13a/0x180 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:140 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:195 [inline]
 watchdog+0x5b9/0xb40 kernel/hung_task.c:274
 kthread+0x30d/0x420 kernel/kthread.c:232
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:406
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 4625 Comm: systemd-journal Not tainted 4.14.305-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
task: ffff8880a1262180 task.stack: ffff8880a1268000
RIP: 0010:__sanitizer_cov_trace_pc+0x23/0x50 kernel/kcov.c:68
RSP: 0018:ffff8880a126fa20 EFLAGS: 00000246
RAX: ffff8880a1262180 RBX: 0000000000000000 RCX: 1ffffffff11999ac
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff88e0dba8
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000020011
R10: ffff8880a1262a08 R11: ffff8880a1262180 R12: dffffc0000000000
R13: 0000000000000000 R14: 00007fa7b4ad99c7 R15: 0000000000001000
FS:  00007fa7b581e8c0(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa7aeec2000 CR3: 00000000a12cf000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 read_seqcount_retry include/linux/seqlock.h:220 [inline]
 latch_tree_find include/linux/rbtree_latch.h:208 [inline]
 bpf_prog_kallsyms_find.part.0+0x11d/0x240 kernel/bpf/core.c:468
 bpf_prog_kallsyms_find include/linux/rcupdate.h:630 [inline]
 is_bpf_text_address+0x13b/0x150 kernel/bpf/core.c:503
 kernel_text_address kernel/extable.c:150 [inline]
 kernel_text_address+0xbd/0xf0 kernel/extable.c:120
 __kernel_text_address+0x9/0x30 kernel/extable.c:105
 unwind_get_return_address arch/x86/kernel/unwind_orc.c:252 [inline]
 unwind_get_return_address+0x51/0x90 arch/x86/kernel/unwind_orc.c:247
 __save_stack_trace+0xa0/0x160 arch/x86/kernel/stacktrace.c:45
 save_stack mm/kasan/kasan.c:447 [inline]
 set_track mm/kasan/kasan.c:459 [inline]
 kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:551
 kmem_cache_alloc+0x124/0x3c0 mm/slab.c:3552
 getname_flags+0xc8/0x550 fs/namei.c:138
 user_path_at_empty+0x2a/0x50 fs/namei.c:2631
 user_path_at include/linux/namei.h:57 [inline]
 SYSC_faccessat fs/open.c:403 [inline]
 SyS_faccessat+0x21b/0x680 fs/open.c:353
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7fa7b4ad99c7
RSP: 002b:00007fff7e049278 EFLAGS: 00000246 ORIG_RAX: 0000000000000015
RAX: ffffffffffffffda RBX: 00007fff7e04c2a0 RCX: 00007fa7b4ad99c7
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00005580f811d9a3
RBP: 00007fff7e0493c0 R08: 00005580f81133e5 R09: 0000000000000018
R10: 0000000000000030 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00005580f982b8a0 R15: 00007fff7e0498b0
Code: 90 90 90 90 90 90 90 90 65 48 8b 04 25 c0 7f 02 00 48 85 c0 74 1a 65 8b 15 8b 28 ad 7e 81 e2 00 01 1f 00 75 0b 8b 90 58 13 00 00 <83> fa 01 74 01 c3 48 8b 34 24 48 8b 88 60 13 00 00 8b 80 5c 13 

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/06 08:11 linux-4.14.y a8ad60f2af58 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 INFO: task hung in queue_log_writer
* Struck through repros no longer work on HEAD.