syzbot


INFO: task hung in filename_create (3)

Status: auto-closed as invalid on 2022/03/11 04:15
Reported-by: syzbot+b9f6c3c955c68db5f555@syzkaller.appspotmail.com
First crash: 338d, last: 275d
similar bugs (10):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: task hung in filename_create 6 999d 1098d 0/1 auto-closed as invalid on 2020/03/17 23:03
upstream INFO: task hung in filename_create (2) 11 982d 1087d 0/23 auto-closed as invalid on 2020/03/04 11:54
android-49 INFO: task hung in filename_create C 44 1448d 1219d 0/3 public: reported C repro on 2019/04/13 00:00
upstream INFO: task hung in filename_create (3) 16 448d 604d 0/23 auto-closed as invalid on 2021/08/20 18:08
android-44 INFO: task hung in filename_create 1 1581d 1581d 0/2 auto-closed as invalid on 2019/02/22 14:19
linux-4.19 INFO: task hung in filename_create (2) 1 539d 539d 0/1 auto-closed as invalid on 2021/06/20 16:38
linux-4.14 INFO: task hung in filename_create 2 971d 975d 0/1 auto-closed as invalid on 2020/04/14 04:42
android-44 INFO: task hung in filename_create (2) 1 1202d 1202d 0/2 auto-closed as invalid on 2019/10/25 08:49
upstream INFO: task hung in filename_create (4) C error error 14 8d15h 235d 0/23 upstream: reported C repro on 2021/12/21 22:55
upstream INFO: task hung in filename_create 121 1292d 1577d 0/23 closed as dup on 2018/09/08 15:39

Sample crash report:
EXT4-fs (loop1): bad geometry: first data block 26869760 is beyond end of filesystem (512)
ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy0 wpan0: encryption failed: -22
INFO: task syz-executor.0:21049 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.0  D29952 21049   9909 0x00000004
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
 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:589 [inline]
 rwsem_down_write_failed+0x3aa/0x760 kernel/locking/rwsem-xadd.c:618
 call_rwsem_down_write_failed+0x13/0x20 arch/x86/lib/rwsem.S:117
 __down_write arch/x86/include/asm/rwsem.h:142 [inline]
 down_write_nested+0x51/0x90 kernel/locking/rwsem.c:194
 inode_lock_nested include/linux/fs.h:783 [inline]
 filename_create+0x15a/0x490 fs/namei.c:3638
 user_path_create fs/namei.c:3696 [inline]
 do_mkdirat+0xa0/0x2d0 fs/namei.c:3834
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f55b1ae1ae9
Code: Bad RIP value.
RSP: 002b:00007f55af015188 EFLAGS: 00000246 ORIG_RAX: 0000000000000053
RAX: ffffffffffffffda RBX: 00007f55b1bf50e0 RCX: 00007f55b1ae1ae9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000140
RBP: 00007f55b1b3bf6d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe5d3dfe3f R14: 00007f55af015300 R15: 0000000000022000

Showing all locks held in the system:
1 lock held by khungtaskd/1571:
 #0: 0000000047e425bf (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441
1 lock held by in:imklog/7753:
 #0: 0000000003fa09c5 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767
2 locks held by kworker/u4:0/19014:
 #0: 00000000f3c3aba2 (&rq->lock){-.-.}, at: idle_balance kernel/sched/fair.c:9702 [inline]
 #0: 00000000f3c3aba2 (&rq->lock){-.-.}, at: pick_next_task_fair+0x556/0x1570 kernel/sched/fair.c:6841
 #1: 0000000047e425bf (rcu_read_lock){....}, at: cpu_of kernel/sched/sched.h:923 [inline]
 #1: 0000000047e425bf (rcu_read_lock){....}, at: __update_idle_core+0x39/0x3e0 kernel/sched/fair.c:6057
2 locks held by syz-executor.0/20994:
 #0: 0000000003c0f21c (sb_writers#29){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline]
 #0: 0000000003c0f21c (sb_writers#29){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360
 #1: 000000003bcebf6e (&sb->s_type->i_mutex_key#36/1){+.+.}, at: inode_lock_nested include/linux/fs.h:783 [inline]
 #1: 000000003bcebf6e (&sb->s_type->i_mutex_key#36/1){+.+.}, at: filename_create+0x15a/0x490 fs/namei.c:3638
2 locks held by syz-executor.0/21049:
 #0: 0000000003c0f21c (sb_writers#29){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline]
 #0: 0000000003c0f21c (sb_writers#29){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360
 #1: 000000003bcebf6e (&sb->s_type->i_mutex_key#36/1){+.+.}, at: inode_lock_nested include/linux/fs.h:783 [inline]
 #1: 000000003bcebf6e (&sb->s_type->i_mutex_key#36/1){+.+.}, at: filename_create+0x15a/0x490 fs/namei.c:3638

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

NMI backtrace for cpu 1
CPU: 1 PID: 1571 Comm: khungtaskd Not tainted 4.19.211-syzkaller #0
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+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 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 19014 Comm: kworker/u4:0 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: bat_events batadv_nc_worker
RIP: 0010:arch_local_save_flags arch/x86/include/asm/paravirt.h:784 [inline]
RIP: 0010:trace_softirqs_off+0xeb/0x340 kernel/locking/lockdep.c:2970
Code: d2 0f 85 0c 02 00 00 8b 3d 02 d4 d8 0b 85 ff 75 3d 48 c7 c0 80 82 f1 89 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 <0f> 85 0a 02 00 00 48 83 3d f7 1e a6 08 00 0f 84 fa 01 00 00 9c 58
RSP: 0018:ffff88823080fbf0 EFLAGS: 00000046
RAX: 1ffffffff13e3050 RBX: ffff88809bea2380 RCX: 1ffffffff1a486ec
RDX: dffffc0000000000 RSI: 0000000000000201 RDI: 0000000000000000
RBP: ffffffff87d8badc R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000004 R11: 0000000000000000 R12: ffff88809bea2380
R13: ffffffff87d8d930 R14: 0000000000000072 R15: ffff888056f6a8c0
FS:  0000000000000000(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbaa341d000 CR3: 00000000b3412000 CR4: 00000000003426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __local_bh_disable_ip+0xf0/0x190 kernel/softirq.c:129
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:134 [inline]
 _raw_spin_lock_bh+0x13/0x40 kernel/locking/spinlock.c:168
 spin_lock_bh include/linux/spinlock.h:334 [inline]
 batadv_nc_purge_paths+0xdc/0x310 net/batman-adv/network-coding.c:453
 batadv_nc_worker+0x731/0xd50 net/batman-adv/network-coding.c:733
 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
----------------
Code disassembly (best guess):
   0:	d2 0f                	rorb   %cl,(%rdi)
   2:	85 0c 02             	test   %ecx,(%rdx,%rax,1)
   5:	00 00                	add    %al,(%rax)
   7:	8b 3d 02 d4 d8 0b    	mov    0xbd8d402(%rip),%edi        # 0xbd8d40f
   d:	85 ff                	test   %edi,%edi
   f:	75 3d                	jne    0x4e
  11:	48 c7 c0 80 82 f1 89 	mov    $0xffffffff89f18280,%rax
  18:	48 ba 00 00 00 00 00 	movabs $0xdffffc0000000000,%rdx
  1f:	fc ff df
  22:	48 c1 e8 03          	shr    $0x3,%rax
  26:	80 3c 10 00          	cmpb   $0x0,(%rax,%rdx,1)
* 2a:	0f 85 0a 02 00 00    	jne    0x23a <-- trapping instruction
  30:	48 83 3d f7 1e a6 08 	cmpq   $0x0,0x8a61ef7(%rip)        # 0x8a61f2f
  37:	00
  38:	0f 84 fa 01 00 00    	je     0x238
  3e:	9c                   	pushfq
  3f:	58                   	pop    %rax

Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-19 2021/11/11 04:14 linux-4.19.y 3f8a27f9e27b 75b04091 .config log report info INFO: task hung in filename_create
ci2-linux-4-19 2021/10/24 21:41 linux-4.19.y 3f8a27f9e27b 282f03fb .config log report info INFO: task hung in filename_create
ci2-linux-4-19 2021/09/09 16:54 linux-4.19.y b172b44fcb17 e2776ee4 .config log report info INFO: task hung in filename_create