syzbot


INFO: task hung in filename_create (4)

Status: auto-obsoleted due to no activity on 2023/03/13 04:19
Reported-by: syzbot+3c611218ee0d0789ecf7@syzkaller.appspotmail.com
First crash: 815d, last: 751d
Similar bugs (14)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: task hung in filename_create 6 1841d 1941d 0/1 auto-closed as invalid on 2020/03/17 23:03
upstream INFO: task hung in filename_create (2) fs 11 1825d 1929d 0/28 auto-closed as invalid on 2020/03/04 11:54
android-49 INFO: task hung in filename_create C 44 2290d 2061d 0/3 public: reported C repro on 2019/04/13 00:00
upstream INFO: task hung in filename_create (3) fs 16 1290d 1446d 0/28 auto-closed as invalid on 2021/08/20 18:08
linux-6.1 INFO: task hung in filename_create (2) 1 7d09h 7d09h 0/3 upstream: reported on 2024/11/26 07:48
linux-4.19 INFO: task hung in filename_create (3) 3 1118d 1180d 0/1 auto-closed as invalid on 2022/03/11 04:15
android-44 INFO: task hung in filename_create 1 2423d 2423d 0/2 auto-closed as invalid on 2019/02/22 14:19
linux-4.19 INFO: task hung in filename_create (2) 1 1382d 1382d 0/1 auto-closed as invalid on 2021/06/20 16:38
linux-4.14 INFO: task hung in filename_create 2 1814d 1818d 0/1 auto-closed as invalid on 2020/04/14 04:42
linux-5.15 INFO: task hung in filename_create origin:upstream C 44 8d02h 232d 0/3 upstream: reported C repro on 2024/04/15 05:31
android-44 INFO: task hung in filename_create (2) 1 2044d 2044d 0/2 auto-closed as invalid on 2019/10/25 08:49
upstream INFO: task hung in filename_create (4) fs C error error 2020 1d02h 1077d 0/28 upstream: reported C repro on 2021/12/21 22:55
linux-6.1 INFO: task hung in filename_create 6 202d 227d 0/3 auto-obsoleted due to no activity on 2024/08/23 04:31
upstream INFO: task hung in filename_create fs 121 2134d 2419d 0/28 closed as dup on 2018/09/08 15:39

Sample crash report:
IPv6: ADDRCONF(NETDEV_UP): veth1_vlan: link is not ready
IPv6: ADDRCONF(NETDEV_CHANGE): veth1_vlan: link becomes ready
IPv6: ADDRCONF(NETDEV_CHANGE): veth0_vlan: link becomes ready
IPv6: ADDRCONF(NETDEV_CHANGE): vlan0: link becomes ready
IPv6: ADDRCONF(NETDEV_CHANGE): vlan1: link becomes ready
INFO: task syz-executor.5:17093 blocked for more than 140 seconds.
device veth0_vlan entered promiscuous mode
      Not tainted 4.19.211-syzkaller #0
device veth1_vlan entered promiscuous mode
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
IPv6: ADDRCONF(NETDEV_UP): macvlan0: link is not ready
IPv6: ADDRCONF(NETDEV_UP): macvlan1: link is not ready
syz-executor.5  D29952 17093   8150 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:0x7fee6f2f2639
Code: Bad RIP value.
RSP: 002b:00007fee6d844168 EFLAGS: 00000246 ORIG_RAX: 0000000000000053
RAX: ffffffffffffffda RBX: 00007fee6f413050 RCX: 00007fee6f2f2639
RDX: 0000000000000000 RSI: 0000000000000181 RDI: 0000000020000740
RBP: 00007fee6f34da41 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffcd871cf7f R14: 00007fee6d844300 R15: 0000000000022000
INFO: task segctord:17088 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.
segctord        D30128 17088      2 0x80000000
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
IPv6: ADDRCONF(NETDEV_UP): veth0_macvtap: link is not ready
IPv6: ADDRCONF(NETDEV_UP): veth1_macvtap: link is not ready
 call_rwsem_down_write_failed+0x13/0x20 arch/x86/lib/rwsem.S:117
IPv6: ADDRCONF(NETDEV_CHANGE): macvlan0: link becomes ready
 __down_write arch/x86/include/asm/rwsem.h:142 [inline]
 down_write+0x4f/0x90 kernel/locking/rwsem.c:72
 nilfs_transaction_lock+0x1fb/0x8b0 fs/nilfs2/segment.c:362
 nilfs_segctor_thread_construct fs/nilfs2/segment.c:2479 [inline]
 nilfs_segctor_thread+0x3c0/0xf50 fs/nilfs2/segment.c:2563
IPv6: ADDRCONF(NETDEV_CHANGE): macvlan1: link becomes ready
IPv6: ADDRCONF(NETDEV_CHANGE): veth1_macvtap: link becomes ready
 kthread+0x33f/0x460 kernel/kthread.c:259
IPv6: ADDRCONF(NETDEV_CHANGE): veth0_macvtap: link becomes ready
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415

Showing all locks held in the system:
1 lock held by khungtaskd/1571:
 #0: 0000000033a9e289 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441
device veth0_macvtap entered promiscuous mode
1 lock held by in:imklog/7799:
 #0: 0000000075568864 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767
IPv6: ADDRCONF(NETDEV_UP): macvtap0: link is not ready
4 locks held by kworker/u4:5/8044:
 #0: 00000000ab378e60 ((wq_completion)"%s""netns"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124
 #1: 000000001dd9bb24 (net_cleanup_work){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128
 #2: 000000009e072e01 (pernet_ops_rwsem){++++}, at: cleanup_net+0xa8/0x8b0 net/core/net_namespace.c:521
device veth1_macvtap entered promiscuous mode
 #3: 00000000ac6a62b9 (rcu_preempt_state.exp_mutex){+.+.}, at: exp_funnel_lock kernel/rcu/tree_exp.h:297 [inline]
 #3: 00000000ac6a62b9 (rcu_preempt_state.exp_mutex){+.+.}, at: _synchronize_rcu_expedited+0x4dc/0x6f0 kernel/rcu/tree_exp.h:667
2 locks held by kworker/0:3/8344:
 #0: 0000000022e27f3d ((wq_completion)"%s"("ipv6_addrconf")){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124
IPv6: ADDRCONF(NETDEV_UP): macsec0: link is not ready
 #1: 00000000be674506 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128
IPv6: ADDRCONF(NETDEV_CHANGE): macvtap0: link becomes ready
2 locks held by kworker/1:5/11436:
IPv6: ADDRCONF(NETDEV_CHANGE): macsec0: link becomes ready
 #0: 000000006bb16f68 ((wq_completion)"rcu_gp"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124
IPv6: ADDRCONF(NETDEV_UP): veth0_to_batadv: link is not ready
 #1: 00000000ae7b447a ((work_completion)(&rew.rew_work)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128
3 locks held by kworker/1:8/11442:
IPv6: ADDRCONF(NETDEV_UP): veth1_to_batadv: link is not ready
 #0: 000000005b6b93e7 (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1826 [inline]
 #0: 000000005b6b93e7 (&rq->lock){-.-.}, at: __schedule+0x1f9/0x2040 kernel/sched/core.c:3455
 #1: 0000000033a9e289 (rcu_read_lock){....}, at: trace_sched_stat_runtime include/trace/events/sched.h:428 [inline]
 #1: 0000000033a9e289 (rcu_read_lock){....}, at: update_curr+0x2c3/0x870 kernel/sched/fair.c:857
 #2: 0000000071698245 (rtnl_mutex){+.+.}, at: addrconf_dad_work+0x9c/0x10a0 net/ipv6/addrconf.c:3989
batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3e) already exists on: batadv_slave_0
6 locks held by syz-executor.5/17085:
2 locks held by syz-executor.5/17093:
batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems!
 #0: 00000000470b3bb1 (sb_writers#25){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline]
 #0: 00000000470b3bb1 (sb_writers#25){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360
batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3e) already exists on: batadv_slave_0
 #1: 000000002636dc97 (&type->i_mutex_dir_key#12/1){+.+.}, at: inode_lock_nested include/linux/fs.h:783 [inline]
 #1: 000000002636dc97 (&type->i_mutex_dir_key#12/1){+.+.}, at: filename_create+0x15a/0x490 fs/namei.c:3638
1 lock held by segctord/17088:
 #0: 000000000c4b588e (&nilfs->ns_segctor_sem){++++}, at: nilfs_transaction_lock+0x1fb/0x8b0 fs/nilfs2/segment.c:362
batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems!
5 locks held by syz-executor.0/22796:

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

batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3e) already exists on: batadv_slave_0
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 10/26/2022
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems!
 nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101
batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3e) already exists on: batadv_slave_0
 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
batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems!
 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: 17085 Comm: syz-executor.5 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:stackdepot_memcmp lib/stackdepot.c:178 [inline]
RIP: 0010:find_stack lib/stackdepot.c:195 [inline]
RIP: 0010:depot_save_stack+0x134/0x410 lib/stackdepot.c:242
Code: 12 e9 b6 00 00 00 48 8b 6d 00 48 85 ed 0f 84 a9 00 00 00 39 5d 08 75 ee 3b 7d 0c 75 e9 31 c0 48 8b 54 c5 18 48 39 14 c1 75 dc <48> 83 c0 01 48 39 c6 75 ec 48 8b 3c 24 48 85 ff 74 0a be 02 00 00
RSP: 0018:ffff88802f606bd8 EFLAGS: 00000046
RAX: 0000000000000016 RBX: 000000000ef7da96 RCX: ffff88802f606c30
RDX: ffffffff81007719 RSI: 0000000000000018 RDI: 0000000000000018
RBP: ffff88809ea4dd10 R08: 0000000000400000 R09: 0000000000000003
R10: 000000005783d183 R11: 000000002c0aa0ee R12: ffff88802f606c18
R13: 000000000007da96 R14: ffff88809388d840 R15: 00000000fffffffe
FS:  00007fee6d865700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb6843a6000 CR3: 0000000043d2b000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 save_stack mm/kasan/kasan.c:454 [inline]
 set_track mm/kasan/kasan.c:460 [inline]
 __kasan_slab_free+0x171/0x1f0 mm/kasan/kasan.c:521
 __cache_free mm/slab.c:3503 [inline]
 kmem_cache_free+0x7f/0x260 mm/slab.c:3765
 nilfs_btree_free_path fs/nilfs2/btree.c:52 [inline]
 nilfs_btree_lookup+0xcd/0x110 fs/nilfs2/btree.c:686
 nilfs_bmap_lookup_at_level+0xcd/0x3e0 fs/nilfs2/bmap.c:69
 nilfs_bmap_lookup fs/nilfs2/bmap.h:170 [inline]
 nilfs_mdt_submit_block.constprop.0+0x1a5/0xaa0 fs/nilfs2/mdt.c:142
 nilfs_mdt_read_block+0x96/0x3e0 fs/nilfs2/mdt.c:175
 nilfs_mdt_get_block+0xe6/0xd40 fs/nilfs2/mdt.c:250
 nilfs_palloc_get_block+0xc4/0x2b0 fs/nilfs2/alloc.c:216
 nilfs_palloc_get_entry_block+0x17b/0x230 fs/nilfs2/alloc.c:318
 nilfs_dat_translate+0x7e/0x480 fs/nilfs2/dat.c:391
 nilfs_bmap_lookup_at_level+0x237/0x3e0 fs/nilfs2/bmap.c:75
 nilfs_bmap_lookup fs/nilfs2/bmap.h:170 [inline]
 nilfs_mdt_submit_block.constprop.0+0x1a5/0xaa0 fs/nilfs2/mdt.c:142
 nilfs_mdt_read_block+0x96/0x3e0 fs/nilfs2/mdt.c:175
 nilfs_mdt_get_block+0xe6/0xd40 fs/nilfs2/mdt.c:250
 nilfs_palloc_get_block+0xc4/0x2b0 fs/nilfs2/alloc.c:216
 nilfs_palloc_get_entry_block+0x17b/0x230 fs/nilfs2/alloc.c:318
 nilfs_ifile_create_inode+0xea/0x240 fs/nilfs2/ifile.c:66
 nilfs_new_inode+0x1dc/0x760 fs/nilfs2/inode.c:353
 nilfs_create fs/nilfs2/namei.c:85 [inline]
 nilfs_create+0xfe/0x2f0 fs/nilfs2/namei.c:75
 lookup_open+0x893/0x1a20 fs/namei.c:3235
 do_last fs/namei.c:3327 [inline]
 path_openat+0x1094/0x2df0 fs/namei.c:3537
 do_filp_open+0x18c/0x3f0 fs/namei.c:3567
 do_sys_open+0x3b3/0x520 fs/open.c:1085
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fee6f2f2639
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fee6d865168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fee6f412f80 RCX: 00007fee6f2f2639
RDX: 000000000000275a RSI: 0000000020000080 RDI: ffffffffffffff9c
RBP: 00007fee6f34da41 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffcd871cf7f R14: 00007fee6d865300 R15: 0000000000022000

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/13 04:19 linux-4.19.y 3f8a27f9e27b f42ee5d8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in filename_create
2022/09/10 11:06 linux-4.19.y 3f8a27f9e27b 356d8217 .config console log report info ci2-linux-4-19 INFO: task hung in filename_create
* Struck through repros no longer work on HEAD.