syzbot


INFO: task hung in lock_rename (4)

Status: closed as invalid on 2022/02/08 09:40
Subsystems: fs
[Documentation on labels]
First crash: 1133d, last: 1040d
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in lock_rename (3) fs 1 1251d 1251d 0/28 auto-closed as invalid on 2021/10/02 18:08
linux-5.15 INFO: task hung in lock_rename 2 585d 617d 0/3 auto-obsoleted due to no activity on 2023/08/23 09:02
upstream INFO: task hung in lock_rename exfat 53 2197d 2332d 0/28 auto-closed as invalid on 2019/05/30 13:09
linux-6.1 INFO: task hung in lock_rename 3 440d 554d 0/3 auto-obsoleted due to no activity on 2024/01/01 05:54
linux-4.19 INFO: task hung in lock_rename 1 1063d 1063d 0/1 auto-closed as invalid on 2022/05/08 10:15
upstream INFO: task hung in lock_rename (5) fs 2 995d 1024d 0/28 auto-closed as invalid on 2022/06/15 04:15
upstream INFO: task hung in lock_rename (2) fs 7 1402d 1425d 0/28 auto-closed as invalid on 2021/05/17 09:31
linux-4.14 INFO: task hung in lock_rename 1 908d 908d 0/1 auto-obsoleted due to no activity on 2022/10/10 13:20
android-49 INFO: task hung in lock_rename C 9 2293d 2064d 0/3 public: reported C repro on 2019/04/14 00:00
upstream INFO: task hung in lock_rename (6) ext4 18 587d 835d 0/28 auto-obsoleted due to no activity on 2023/07/28 16:10

Sample crash report:
INFO: task syz-executor.3:18562 blocked for more than 143 seconds.
      Not tainted 5.17.0-rc2-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3  state:D stack:29856 pid:18562 ppid:  3633 flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4986 [inline]
 __schedule+0xab2/0x4db0 kernel/sched/core.c:6295
 schedule+0xd2/0x260 kernel/sched/core.c:6368
 rwsem_down_write_slowpath+0x634/0x1110 kernel/locking/rwsem.c:1142
 __down_write_common kernel/locking/rwsem.c:1259 [inline]
 __down_write_common kernel/locking/rwsem.c:1256 [inline]
 __down_write kernel/locking/rwsem.c:1268 [inline]
 down_write_nested+0x139/0x150 kernel/locking/rwsem.c:1625
 inode_lock_nested include/linux/fs.h:812 [inline]
 lock_rename+0x225/0x280 fs/namei.c:2965
 do_renameat2+0x639/0xc80 fs/namei.c:4769
 __do_sys_rename fs/namei.c:4874 [inline]
 __se_sys_rename fs/namei.c:4872 [inline]
 __x64_sys_rename+0x7d/0xa0 fs/namei.c:4872
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f788ff24059
RSP: 002b:00007f788e857168 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00007f7890037100 RCX: 00007f788ff24059
RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000020000180
RBP: 00007f788ff7e08d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe3a64c43f R14: 00007f788e857300 R15: 0000000000022000
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/27:
 #0: ffffffff8bb83c20 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6460
2 locks held by getty/3277:
 #0: ffff88802420b098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244
 #1: ffffc90002b662e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xcf0/0x1230 drivers/tty/n_tty.c:2077
2 locks held by syz-executor.3/18557:
2 locks held by syz-executor.3/18562:
 #0: ffff88807680e460 (sb_writers#15){.+.+}-{0:0}, at: do_renameat2+0x37b/0xc80 fs/namei.c:4764
 #1: ffff888039068190 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:812 [inline]
 #1: ffff888039068190 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: lock_rename+0x225/0x280 fs/namei.c:2965

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

NMI backtrace for cpu 1
CPU: 1 PID: 27 Comm: khungtaskd Not tainted 5.17.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x1b3/0x230 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline]
 watchdog+0xc1d/0xf50 kernel/hung_task.c:369
 kthread+0x2e9/0x3a0 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 10 Comm: kworker/u4:1 Not tainted 5.17.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: phy3 ieee80211_iface_work
RIP: 0010:check_kcov_mode kernel/kcov.c:166 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x7/0x60 kernel/kcov.c:200
Code: 46 00 5d be 03 00 00 00 e9 46 11 66 02 66 0f 1f 44 00 00 48 8b be b0 01 00 00 e8 b4 ff ff ff 31 c0 c3 90 65 8b 05 69 00 8a 7e <89> c1 48 8b 34 24 81 e1 00 01 00 00 65 48 8b 14 25 00 70 02 00 a9
RSP: 0018:ffffc90000cf7a48 EFLAGS: 00000297
RAX: 0000000080000000 RBX: 0000000000000168 RCX: 000000000000000c
RDX: 0000000000000000 RSI: ffff888011929d00 RDI: 0000000000000003
RBP: 000000000000000c R08: 0000000000000006 R09: 0000000000000048
R10: ffffffff88a81854 R11: 0000000000000000 R12: 0000000000000006
R13: 0000000000000006 R14: 000000000000005a R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcec7e1acf8 CR3: 000000001ad62000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 ieee80211_sta_get_rates+0x482/0x960 net/mac80211/util.c:2142
 ieee80211_update_sta_info net/mac80211/ibss.c:1003 [inline]
 ieee80211_rx_bss_info net/mac80211/ibss.c:1117 [inline]
 ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1610 [inline]
 ieee80211_ibss_rx_queued_mgmt+0x1131/0x3150 net/mac80211/ibss.c:1639
 ieee80211_iface_process_skb net/mac80211/iface.c:1527 [inline]
 ieee80211_iface_work+0xa69/0xd00 net/mac80211/iface.c:1581
 process_one_work+0x9ac/0x1650 kernel/workqueue.c:2307
 worker_thread+0x657/0x1110 kernel/workqueue.c:2454
 kthread+0x2e9/0x3a0 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
----------------
Code disassembly (best guess):
   0:	46 00 5d be          	rex.RX add %r11b,-0x42(%rbp)
   4:	03 00                	add    (%rax),%eax
   6:	00 00                	add    %al,(%rax)
   8:	e9 46 11 66 02       	jmpq   0x2661153
   d:	66 0f 1f 44 00 00    	nopw   0x0(%rax,%rax,1)
  13:	48 8b be b0 01 00 00 	mov    0x1b0(%rsi),%rdi
  1a:	e8 b4 ff ff ff       	callq  0xffffffd3
  1f:	31 c0                	xor    %eax,%eax
  21:	c3                   	retq
  22:	90                   	nop
  23:	65 8b 05 69 00 8a 7e 	mov    %gs:0x7e8a0069(%rip),%eax        # 0x7e8a0093
* 2a:	89 c1                	mov    %eax,%ecx <-- trapping instruction
  2c:	48 8b 34 24          	mov    (%rsp),%rsi
  30:	81 e1 00 01 00 00    	and    $0x100,%ecx
  36:	65 48 8b 14 25 00 70 	mov    %gs:0x27000,%rdx
  3d:	02 00
  3f:	a9                   	.byte 0xa9

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/01/31 18:06 upstream 26291c54e111 6b7c57fe .config console log report info ci-upstream-kasan-gce-root INFO: task hung in lock_rename
2022/01/09 06:08 upstream 21f35d2ca83e 2ca0d385 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in lock_rename
2021/10/30 06:13 upstream f25a5481af12 098b5d53 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in lock_rename
* Struck through repros no longer work on HEAD.