syzbot


INFO: task hung in nilfs_segctor_thread

Status: upstream: reported on 2022/11/05 03:06
Reported-by: syzbot+e07ad170cd11d4d7ef81@syzkaller.appspotmail.com
First crash: 93d, last: 10d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in nilfs_segctor_thread nilfs2 58 6d08h 89d 0/24 upstream: reported on 2022/11/09 20:32

Sample crash report:
INFO: task segctord:5401 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.
netlink: 4 bytes leftover after parsing attributes in process `syz-executor.5'.
segctord        D30376  5401      2 0x80000000
Call Trace:
netlink: 28 bytes leftover after parsing attributes in process `syz-executor.5'.
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x887/0x2040 kernel/sched/core.c:3517
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
netlink: 4 bytes leftover after parsing attributes in process `syz-executor.5'.
 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:589 [inline]
 rwsem_down_write_failed+0x3aa/0x760 kernel/locking/rwsem-xadd.c:618
netlink: 28 bytes leftover after parsing attributes in process `syz-executor.5'.
 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+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
IPVS: ftp: loaded support on port[0] = 21
 kthread+0x33f/0x460 kernel/kthread.c:259
audit: type=1804 audit(1674847296.045:478): pid=8121 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.0" name="/root/syzkaller-testdir1298349726/syzkaller.F1XCxs/1305/bus" dev="sda1" ino=14591 res=1
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415

Showing all locks held in the system:
3 locks held by kworker/u4:1/23:
audit: type=1804 audit(1674847296.085:479): pid=8190 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.0" name="/root/syzkaller-testdir1298349726/syzkaller.F1XCxs/1305/bus" dev="sda1" ino=14591 res=1
1 lock held by khungtaskd/1569:
 #0: 000000007e8530b2 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441
3 locks held by systemd-udevd/4696:
1 lock held by in:imklog/7811:
 #0: 000000003ab90c80 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767
3 locks held by syz-executor.3/8174:
6 locks held by kworker/u4:11/16364:
 #0: 0000000002ca6a46 ((wq_completion)"%s""netns"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124
 #1: 000000000e6afb5d (net_cleanup_work){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128
 #2: 00000000f920413c (pernet_ops_rwsem){++++}, at: cleanup_net+0xa8/0x8b0 net/core/net_namespace.c:521
 #3: 0000000007a28ee9 (rtnl_mutex){+.+.}, at: caif_exit_net+0x38/0x450 net/caif/caif_dev.c:522
 #4: 00000000de03322d (&caifn->caifdevs.lock){+.+.}, at: caif_exit_net+0x4f/0x450 net/caif/caif_dev.c:523
 #5: 000000004a123273 (rcu_preempt_state.exp_mutex){+.+.}, at: exp_funnel_lock kernel/rcu/tree_exp.h:297 [inline]
 #5: 000000004a123273 (rcu_preempt_state.exp_mutex){+.+.}, at: _synchronize_rcu_expedited+0x4dc/0x6f0 kernel/rcu/tree_exp.h:667
4 locks held by syz-executor.4/5373:
1 lock held by segctord/5401:
 #0: 0000000062940c4f (&nilfs->ns_segctor_sem){++++}, at: nilfs_transaction_lock+0x1fb/0x8b0 fs/nilfs2/segment.c:362
5 locks held by syz-executor.2/5642:
1 lock held by segctord/5670:
 #0: 00000000d7c7e427 (&nilfs->ns_segctor_sem){++++}, at: nilfs_transaction_lock+0x1fb/0x8b0 fs/nilfs2/segment.c:362
audit: type=1800 audit(1674847296.895:480): pid=8131 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.2" name="bus" dev="sda1" ino=14052 res=0
2 locks held by syz-executor.2/8131:
 #0: 00000000da2668b1 (sb_writers#3){.+.+}, at: file_start_write include/linux/fs.h:2779 [inline]
 #0: 00000000da2668b1 (sb_writers#3){.+.+}, at: do_sendfile+0x97d/0xc30 fs/read_write.c:1446
 #1: 000000003ec56656 (&sb->s_type->i_mutex_key#10){++++}, at: inode_trylock include/linux/fs.h:768 [inline]
 #1: 000000003ec56656 (&sb->s_type->i_mutex_key#10){++++}, at: ext4_file_write_iter+0x21f/0xf20 fs/ext4/file.c:238
audit: type=1800 audit(1674847297.005:481): pid=8238 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.2" name="bus" dev="sda1" ino=14052 res=0
2 locks held by syz-executor.2/8238:
 #0: 00000000a362d485 (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1826 [inline]
 #0: 00000000a362d485 (&rq->lock){-.-.}, at: __schedule+0x1f9/0x2040 kernel/sched/core.c:3455
 #1: 0000000058fdcfa2 (&cfs_rq->removed.lock){-.-.}, at: update_cfs_rq_load_avg kernel/sched/fair.c:3490 [inline]
 #1: 0000000058fdcfa2 (&cfs_rq->removed.lock){-.-.}, at: update_load_avg kernel/sched/fair.c:3612 [inline]
 #1: 0000000058fdcfa2 (&cfs_rq->removed.lock){-.-.}, at: dequeue_entity+0x52d/0x2800 kernel/sched/fair.c:4058
3 locks held by syz-executor.1/8215:
 #0: 000000000310be63 (&sb->s_type->i_mutex_key#13){+.+.}, at: inode_lock include/linux/fs.h:748 [inline]
 #0: 000000000310be63 (&sb->s_type->i_mutex_key#13){+.+.}, at: __sock_release+0x86/0x2a0 net/socket.c:598
 #1: 00000000b55d70e5 (sk_lock-AF_PPPOX){+.+.}, at: lock_sock include/net/sock.h:1512 [inline]
 #1: 00000000b55d70e5 (sk_lock-AF_PPPOX){+.+.}, at: pptp_release+0x49/0x200 drivers/net/ppp/pptp.c:510
 #2: 000000004a123273 (rcu_preempt_state.exp_mutex){+.+.}, at: exp_funnel_lock kernel/rcu/tree_exp.h:329 [inline]
 #2: 000000004a123273 (rcu_preempt_state.exp_mutex){+.+.}, at: _synchronize_rcu_expedited+0x256/0x6f0 kernel/rcu/tree_exp.h:667
1 lock held by syz-executor.5/8216:
 #0: 0000000007a28ee9 (rtnl_mutex){+.+.}, at: tun_detach drivers/net/tun.c:759 [inline]
 #0: 0000000007a28ee9 (rtnl_mutex){+.+.}, at: tun_chr_close+0x3a/0x180 drivers/net/tun.c:3323

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

NMI backtrace for cpu 0
CPU: 0 PID: 1569 Comm: khungtaskd Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
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 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 9906 Comm: kworker/u4:8 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Workqueue: phy10 ieee80211_iface_work
RIP: 0010:debug_object_activate+0x385/0x450 lib/debugobjects.c:513
Code: 85 da fe ff ff 41 bd ea ff ff ff e9 3f fd ff ff 8b 05 67 c8 af 07 85 c0 74 0d 31 d2 4c 89 fe 4c 89 e7 e8 fe e8 ff ff 4c 89 fe <4c> 89 e7 45 31 ed e8 70 fc ff ff e9 15 fd ff ff 4c 89 4c 24 08 4c
RSP: 0018:ffff88803dc97250 EFLAGS: 00000286
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000004 RSI: ffffffff89f85e80 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880b28b3c88
R13: ffffffff8d396580 R14: 1ffff11007b92e4c R15: ffffffff89f85e80
FS:  0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff747624000 CR3: 00000000a1ba1000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 debug_rcu_head_queue kernel/rcu/rcu.h:193 [inline]
 __call_rcu.constprop.0+0x31/0x7f0 kernel/rcu/tree.c:2977
 cfg80211_bss_update+0x47a/0x2590 net/wireless/scan.c:967
 cfg80211_inform_bss_frame_data+0x69c/0xeb0 net/wireless/scan.c:1283
 ieee80211_bss_info_update+0x42d/0x1800 net/mac80211/scan.c:105
 ieee80211_rx_bss_info net/mac80211/ibss.c:1125 [inline]
 ieee80211_rx_mgmt_probe_beacon+0xb4f/0x15c0 net/mac80211/ibss.c:1607
 ieee80211_ibss_rx_queued_mgmt+0xe27/0x18b0 net/mac80211/ibss.c:1634
 ieee80211_iface_work+0x5c4/0x8a0 net/mac80211/iface.c:1341
 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

Crashes (40):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-linux-4-19 2023/01/27 19:21 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/19 05:56 linux-4.19.y 3f8a27f9e27b 5bb70014 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/18 05:16 linux-4.19.y 3f8a27f9e27b 5bb70014 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/17 15:22 linux-4.19.y 3f8a27f9e27b 4ba8ab94 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/17 13:22 linux-4.19.y 3f8a27f9e27b 3a127a31 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/17 11:52 linux-4.19.y 3f8a27f9e27b 3a127a31 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/17 06:25 linux-4.19.y 3f8a27f9e27b 3a127a31 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/17 05:28 linux-4.19.y 3f8a27f9e27b 3a127a31 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/16 11:49 linux-4.19.y 3f8a27f9e27b 3a127a31 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/15 23:43 linux-4.19.y 3f8a27f9e27b 3a127a31 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/15 19:56 linux-4.19.y 3f8a27f9e27b 97de9cfc .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/14 23:36 linux-4.19.y 3f8a27f9e27b 97de9cfc .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/13 18:52 linux-4.19.y 3f8a27f9e27b 7ba4d859 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/13 11:06 linux-4.19.y 3f8a27f9e27b f42ee5d8 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/13 09:56 linux-4.19.y 3f8a27f9e27b f42ee5d8 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/13 09:29 linux-4.19.y 3f8a27f9e27b f42ee5d8 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/13 09:19 linux-4.19.y 3f8a27f9e27b f42ee5d8 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/12 19:33 linux-4.19.y 3f8a27f9e27b f42ee5d8 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/12 19:11 linux-4.19.y 3f8a27f9e27b f42ee5d8 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/12 18:01 linux-4.19.y 3f8a27f9e27b f42ee5d8 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/12 14:18 linux-4.19.y 3f8a27f9e27b f42ee5d8 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/12 11:47 linux-4.19.y 3f8a27f9e27b f42ee5d8 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/12 09:13 linux-4.19.y 3f8a27f9e27b f42ee5d8 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/11 16:48 linux-4.19.y 3f8a27f9e27b f42ee5d8 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/11 03:57 linux-4.19.y 3f8a27f9e27b f42ee5d8 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/10 03:20 linux-4.19.y 3f8a27f9e27b b2488a87 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/09 02:01 linux-4.19.y 3f8a27f9e27b 5fa28208 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/08 13:30 linux-4.19.y 3f8a27f9e27b 060f945e .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/08 01:42 linux-4.19.y 3f8a27f9e27b 6feb842b .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/07 12:59 linux-4.19.y 3f8a27f9e27b a779b11a .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/07 10:22 linux-4.19.y 3f8a27f9e27b 6d752409 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/07 05:34 linux-4.19.y 3f8a27f9e27b 6d752409 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/06 16:12 linux-4.19.y 3f8a27f9e27b 6d752409 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/05 22:40 linux-4.19.y 3f8a27f9e27b 6d752409 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/05 19:45 linux-4.19.y 3f8a27f9e27b 6d752409 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/05 17:04 linux-4.19.y 3f8a27f9e27b 6d752409 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/05 15:47 linux-4.19.y 3f8a27f9e27b 6d752409 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/05 08:57 linux-4.19.y 3f8a27f9e27b 6d752409 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/05 07:56 linux-4.19.y 3f8a27f9e27b 6d752409 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
ci2-linux-4-19 2022/11/05 03:06 linux-4.19.y 3f8a27f9e27b 6d752409 .config console log report info [disk image] [vmlinux] INFO: task hung in nilfs_segctor_thread
* Struck through repros no longer work on HEAD.