syzbot


INFO: task hung in lock_rename (5)

Status: auto-closed as invalid on 2022/06/15 04:15
Subsystems: fs
[Documentation on labels]
First crash: 1024d, last: 995d
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
upstream INFO: task hung in lock_rename (4) fs 3 1040d 1133d 0/28 closed as invalid on 2022/02/08 09:40
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 (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.5:22461 blocked for more than 143 seconds.
      Not tainted 5.17.0-rc8-syzkaller-00003-g56e337f2cf13 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5  state:D stack:28496 pid:22461 ppid:  3629 flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4995 [inline]
 __schedule+0x926/0x1080 kernel/sched/core.c:6304
 schedule+0x12b/0x1f0 kernel/sched/core.c:6377
 rwsem_down_write_slowpath+0xdb7/0x1480 kernel/locking/rwsem.c:1142
 __down_write_common kernel/locking/rwsem.c:1259 [inline]
 __down_write kernel/locking/rwsem.c:1268 [inline]
 down_write_nested+0x16f/0x180 kernel/locking/rwsem.c:1625
 lock_rename+0x182/0x1a0
 do_renameat2+0x75d/0x1450 fs/namei.c:4769
 __do_sys_rename fs/namei.c:4874 [inline]
 __se_sys_rename fs/namei.c:4872 [inline]
 __x64_sys_rename+0x82/0x90 fs/namei.c:4872
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fd617684049
RSP: 002b:00007fd615fd8168 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00007fd617797030 RCX: 00007fd617684049
RDX: 0000000000000000 RSI: 0000000020000500 RDI: 00000000200004c0
RBP: 00007fd6176de08d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd70d2cd9f R14: 00007fd615fd8300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.5:22468 blocked for more than 143 seconds.
      Not tainted 5.17.0-rc8-syzkaller-00003-g56e337f2cf13 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5  state:D stack:28688 pid:22468 ppid:  3629 flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4995 [inline]
 __schedule+0x926/0x1080 kernel/sched/core.c:6304
 schedule+0x12b/0x1f0 kernel/sched/core.c:6377
 rwsem_down_write_slowpath+0xdb7/0x1480 kernel/locking/rwsem.c:1142
 __down_write_common kernel/locking/rwsem.c:1259 [inline]
 __down_write kernel/locking/rwsem.c:1268 [inline]
 down_write_nested+0x16f/0x180 kernel/locking/rwsem.c:1625
 inode_lock_nested include/linux/fs.h:812 [inline]
 filename_create+0x1da/0x4e0 fs/namei.c:3704
 do_symlinkat+0xc3/0x650 fs/namei.c:4318
 __do_sys_symlinkat fs/namei.c:4345 [inline]
 __se_sys_symlinkat fs/namei.c:4342 [inline]
 __x64_sys_symlinkat+0x95/0xa0 fs/namei.c:4342
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fd617684049
RSP: 002b:00007fd615fb7168 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 00007fd617797100 RCX: 00007fd617684049
RDX: 0000000020000240 RSI: 0000000000000006 RDI: 0000000020000200
RBP: 00007fd6176de08d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd70d2cd9f R14: 00007fd615fb7300 R15: 0000000000022000
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/26:
 #0: ffffffff8cb1d9a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by getty/3279:
 #0: ffff88814a992098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244
 #1: ffffc90002b662e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6c5/0x1c60 drivers/tty/n_tty.c:2075
2 locks held by syz-executor.5/22455:
2 locks held by syz-executor.5/22461:
 #0: ffff88806b0e2460 (sb_writers#13){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:377
 #1: ffff888088191c20 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: lock_rename+0x182/0x1a0
2 locks held by syz-executor.5/22468:
 #0: ffff88806b0e2460 (sb_writers#13){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:377
 #1: ffff888088191c20 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:812 [inline]
 #1: ffff888088191c20 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: filename_create+0x1da/0x4e0 fs/namei.c:3704

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

NMI backtrace for cpu 1
CPU: 1 PID: 26 Comm: khungtaskd Not tainted 5.17.0-rc8-syzkaller-00003-g56e337f2cf13 #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+0x1dc/0x2d8 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x45f/0x490 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x16a/0x280 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+0xc82/0xcd0 kernel/hung_task.c:369
 kthread+0x2a3/0x2d0 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 8507 Comm: kworker/u4:2 Not tainted 5.17.0-rc8-syzkaller-00003-g56e337f2cf13 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: bat_events batadv_nc_worker
RIP: 0010:do_raw_spin_lock+0x51/0x8e0 kernel/locking/spinlock_debug.c:113
Code: 24 80 00 00 00 48 ba 00 00 00 00 00 fc ff df 48 c7 44 24 40 b3 8a b5 41 48 c7 44 24 48 97 4e 3f 8c 48 c7 44 24 50 80 9e 68 81 <48> 8d 74 24 40 48 c1 ee 03 48 b8 f1 f1 f1 f1 04 f3 f3 f3 48 89 f1
RSP: 0018:ffffc90003dbfa60 EFLAGS: 00000286
RAX: 9cbcf90a841c2d00 RBX: ffffffff89f95720 RCX: ffff888011fe4458
RDX: dffffc0000000000 RSI: 0000000000000201 RDI: ffff8880269f9680
RBP: ffffc90003dbfb30 R08: ffff8880269f9680 R09: fffffbfff1ffbde1
R10: fffffbfff1ffbde1 R11: 0000000000000000 R12: ffff88807e03b000
R13: dffffc0000000000 R14: ffff888019ec18c0 R15: ffff888019ec18d0
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c0056b6620 CR3: 000000000c88e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 spin_lock_bh include/linux/spinlock.h:354 [inline]
 batadv_nc_purge_paths+0xe0/0x3f0 net/batman-adv/network-coding.c:442
 batadv_nc_worker+0x2da/0x5b0 net/batman-adv/network-coding.c:720
 process_one_work+0x86c/0x1190 kernel/workqueue.c:2307
 worker_thread+0xab1/0x1300 kernel/workqueue.c:2454
 kthread+0x2a3/0x2d0 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30
 </TASK>
----------------
Code disassembly (best guess), 3 bytes skipped:
   0:	00 00                	add    %al,(%rax)
   2:	48 ba 00 00 00 00 00 	movabs $0xdffffc0000000000,%rdx
   9:	fc ff df
   c:	48 c7 44 24 40 b3 8a 	movq   $0x41b58ab3,0x40(%rsp)
  13:	b5 41
  15:	48 c7 44 24 48 97 4e 	movq   $0xffffffff8c3f4e97,0x48(%rsp)
  1c:	3f 8c
  1e:	48 c7 44 24 50 80 9e 	movq   $0xffffffff81689e80,0x50(%rsp)
  25:	68 81
* 27:	48 8d 74 24 40       	lea    0x40(%rsp),%rsi <-- trapping instruction
  2c:	48 c1 ee 03          	shr    $0x3,%rsi
  30:	48 b8 f1 f1 f1 f1 04 	movabs $0xf3f3f304f1f1f1f1,%rax
  37:	f3 f3 f3
  3a:	48 89 f1             	mov    %rsi,%rcx

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/03/17 04:11 upstream 56e337f2cf13 dfa9a8ed .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in lock_rename
2022/02/16 06:03 upstream 705d84a366cf 8b9ca619 .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.