mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [syzbot] [nilfs?] INFO: task hung in nilfs_segctor_thread (7)
@ 2026-06-17 14:11 syzbot
  2026-06-19  1:24 ` Forwarded: [PATCH] nilfs2: add debug instrumentation to nilfs_clean_segments syzbot
  2026-06-19  2:50 ` [syzbot] [nilfs?] INFO: task hung in nilfs_segctor_thread (7) Ryusuke Konishi
  0 siblings, 2 replies; 4+ messages in thread
From: syzbot @ 2026-06-17 14:11 UTC (permalink / raw)
  To: konishi.ryusuke, linux-kernel, linux-nilfs, slava, syzkaller-bugs

Hello,

syzbot found the following issue on:

HEAD commit:    062871f1371b Merge tag 'pinctrl-v7.1-3' of git://git.kerne..
git tree:       upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=16fa58ae580000
kernel config:  https://syzkaller.appspot.com/x/.config?x=4e828c596d7aa593
dashboard link: https://syzkaller.appspot.com/bug?extid=155b515977fecb686986
compiler:       Debian clang version 22.1.6 (++20260514074242+fc4aad7b5db3-1~exp1~20260514074407.73), Debian LLD 22.1.6
syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=1510f3d2580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/e3dc965f9a88/disk-062871f1.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/2f67e7ba9e6a/vmlinux-062871f1.xz
kernel image: https://storage.googleapis.com/syzbot-assets/4ad13e1ccf55/bzImage-062871f1.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/f2ea87a29031/mount_0.gz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+155b515977fecb686986@syzkaller.appspotmail.com

INFO: task segctord:6131 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:segctord        state:D stack:28680 pid:6131  tgid:6131  ppid:2      task_flags:0x200040 flags:0x00080000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5388 [inline]
 __schedule+0x1840/0x57a0 kernel/sched/core.c:7189
 __schedule_loop kernel/sched/core.c:7268 [inline]
 schedule+0x164/0x360 kernel/sched/core.c:7283
 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:7340
 rwsem_down_write_slowpath+0x87d/0x1080 kernel/locking/rwsem.c:1215
 __down_write_common kernel/locking/rwsem.c:1347 [inline]
 __down_write kernel/locking/rwsem.c:1356 [inline]
 down_write+0x1bc/0x200 kernel/locking/rwsem.c:1626
 nilfs_transaction_lock+0x24a/0x4b0 fs/nilfs2/segment.c:357
 nilfs_segctor_thread_construct fs/nilfs2/segment.c:2569 [inline]
 nilfs_segctor_thread+0x6be/0xdb0 fs/nilfs2/segment.c:2684
 kthread+0x389/0x470 kernel/kthread.c:436
 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/32:
 #0: 
ffffffff8e95c780
 (
rcu_read_lock
){....}-{1:3}
, at: rcu_lock_acquire include/linux/rcupdate.h:300 [inline]
, at: rcu_read_lock include/linux/rcupdate.h:838 [inline]
, at: debug_show_all_locks+0x2e/0x180 kernel/locking/lockdep.c:6775
2 locks held by getty/5382:
 #0: 
ffff888031f200a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: 
ffffc900032332e8 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x45a/0x1380 drivers/tty/n_tty.c:2211
3 locks held by syz.0.17/6086:
2 locks held by syz.5.22/6114:
3 locks held by syz.2.19/6118:
3 locks held by syz.1.18/6126:
2 locks held by syz.3.20/6130:
3 locks held by syz.4.21/6132:
1 lock held by segctord/6131:
 #0: ffff88805bb0c288 (&nilfs->ns_segctor_sem){++++}-{4:4}, at: nilfs_transaction_lock+0x24a/0x4b0 fs/nilfs2/segment.c:357
2 locks held by syz-executor/6175:
1 lock held by syz-executor/6176:
7 locks held by syz.6.23/6349:
2 locks held by syz.7.24/6383:
3 locks held by syz.8.25/6380:
3 locks held by syz.9.26/6391:
1 lock held by syz.5.286/7133:
2 locks held by syz.0.288/7141:
1 lock held by syz.3.289/7140:

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

NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 32 Comm: khungtaskd Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 nmi_cpu_backtrace+0x274/0x2d0 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x17a/0x300 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline]
 __sys_info lib/sys_info.c:157 [inline]
 sys_info+0x135/0x170 lib/sys_info.c:165
 check_hung_uninterruptible_tasks kernel/hung_task.c:353 [inline]
 watchdog+0xfd7/0x1030 kernel/hung_task.c:561
 kthread+0x389/0x470 kernel/kthread.c:436
 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 6126 Comm: syz.1.18 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
RIP: 0010:hrtick_start+0x4a/0x250 kernel/sched/core.c:959
Code: 00 00 41 bc 10 27 00 00 4c 0f 4d e6 4c 8d b7 e0 0d 00 00 4d 89 f7 49 c1 ef 03 43 0f b6 04 2f 84 c0 0f 85 83 01 00 00 41 8b 2e <85> ed 74 46 83 cd 04 43 0f b6 04 2f 84 c0 0f 85 8a 01 00 00 89 ab
RSP: 0018:ffffc90000a08a90 EFLAGS: 00000046
RAX: 0000000000000000 RBX: ffff8880b873b080 RCX: 0000000000000392
RDX: 00000000000000da RSI: 000000000017eda4 RDI: ffff8880b873b080
RBP: 0000000000000000 R08: ffffffff902f890f R09: 1ffffffff205f121
R10: dffffc0000000000 R11: fffffbfff205f122 R12: 000000000017eda4
R13: dffffc0000000000 R14: ffff8880b873be60 R15: 1ffff110170e77cc
FS:  00007f8ac9dd86c0(0000) GS:ffff8881253b9000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f775c7ec4b8 CR3: 0000000022337000 CR4: 0000000000350ef0
Call Trace:
 <IRQ>
 enqueue_task+0x75/0x410 kernel/sched/core.c:2165
 activate_task kernel/sched/core.c:2205 [inline]
 ttwu_do_activate+0x1c8/0x650 kernel/sched/core.c:3725
 ttwu_queue kernel/sched/core.c:3978 [inline]
 try_to_wake_up+0x70e/0x1330 kernel/sched/core.c:4302
 autoremove_wake_function+0x17/0x100 kernel/sched/wait.c:403
 __wake_up_common kernel/sched/wait.c:108 [inline]
 __wake_up_common_lock+0x13a/0x1f0 kernel/sched/wait.c:125
 irq_work_single+0xe0/0x240 kernel/irq_work.c:221
 irq_work_run_list kernel/irq_work.c:252 [inline]
 irq_work_tick+0x238/0x2a0 kernel/irq_work.c:277
 update_process_times+0x263/0x2f0 kernel/time/timer.c:2478
 tick_sched_handle kernel/time/tick-sched.c:298 [inline]
 tick_nohz_handler+0x3fb/0x730 kernel/time/tick-sched.c:319
 __run_hrtimer kernel/time/hrtimer.c:1930 [inline]
 __hrtimer_run_queues+0x371/0xa10 kernel/time/hrtimer.c:1994
 hrtimer_interrupt+0x448/0x910 kernel/time/hrtimer.c:2113
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline]
 __sysvec_apic_timer_interrupt+0x102/0x430 arch/x86/kernel/apic/apic.c:1067
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1061 [inline]
 sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1061
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697
RIP: 0010:console_trylock_spinning kernel/printk/printk.c:2039 [inline]
RIP: 0010:vprintk_emit+0x45d/0x560 kernel/printk/printk.c:2478
Code: 0f 84 44 ff ff ff e8 72 17 21 00 fb eb 44 e8 6a 17 21 00 e8 45 1c fe 09 4d 85 f6 74 94 e8 5b 17 21 00 fb 48 c7 c7 00 ed 94 8e <31> f6 ba 01 00 00 00 31 c9 41 b8 01 00 00 00 45 31 c9 53 e8 6b 19
RSP: 0018:ffffc900035cee40 EFLAGS: 00000293
RAX: ffffffff81a428d5 RBX: ffffffff81a4274f RCX: ffff888076f21f00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8e94ed00
RBP: ffffc900035ceef0 R08: ffffffff902f88f7 R09: 1ffffffff205f11e
R10: dffffc0000000000 R11: fffffbfff205f11f R12: 0000000000000000
R13: 0000000000000040 R14: 0000000000000200 R15: 1ffff920006b9dcc
 _printk+0xdd/0x130 kernel/printk/printk.c:2504
 __nilfs_msg+0x373/0x450 fs/nilfs2/super.c:78
 nilfs_sufile_updatev+0x21c/0x6d0 fs/nilfs2/sufile.c:186
 nilfs_sufile_freev fs/nilfs2/sufile.h:93 [inline]
 nilfs_free_segments fs/nilfs2/segment.c:1140 [inline]
 nilfs_segctor_collect_blocks fs/nilfs2/segment.c:1261 [inline]
 nilfs_segctor_collect fs/nilfs2/segment.c:1547 [inline]
 nilfs_segctor_do_construct+0x20dd/0x7bb0 fs/nilfs2/segment.c:2122
 nilfs_segctor_construct+0x170/0x690 fs/nilfs2/segment.c:2462
 nilfs_clean_segments+0x3ac/0xa50 fs/nilfs2/segment.c:2536
 nilfs_ioctl_clean_segments fs/nilfs2/ioctl.c:922 [inline]
 nilfs_ioctl+0x2619/0x2780 fs/nilfs2/ioctl.c:1352
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:597 [inline]
 __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8ac8f9ce59
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8ac9dd8028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f8ac9216090 RCX: 00007f8ac8f9ce59
RDX: 0000200000000640 RSI: 0000000040786e88 RDI: 0000000000000004
RBP: 00007f8ac9032d6f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f8ac9216128 R14: 00007f8ac9216090 R15: 00007ffd4ee3dc58
 </TASK>


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Forwarded: [PATCH] nilfs2: add debug instrumentation to nilfs_clean_segments
  2026-06-17 14:11 [syzbot] [nilfs?] INFO: task hung in nilfs_segctor_thread (7) syzbot
@ 2026-06-19  1:24 ` syzbot
  2026-06-19  2:50 ` [syzbot] [nilfs?] INFO: task hung in nilfs_segctor_thread (7) Ryusuke Konishi
  1 sibling, 0 replies; 4+ messages in thread
From: syzbot @ 2026-06-19  1:24 UTC (permalink / raw)
  To: linux-kernel, syzkaller-bugs

For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com.

***

Subject: [PATCH] nilfs2: add debug instrumentation to nilfs_clean_segments
Author: kartikey406@gmail.com

#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master


Add temporary pr_err() calls to log ns_nsegments, nfreesegs, and
the first segment number on entry to nilfs_clean_segments(), and
to log the error code on each retry, to diagnose the hung task
reported by syzbot.

Link: https://syzkaller.appspot.com/bug?extid=155b515977fecb686986
Signed-off-by: Deepanshu Kartikey <kartikey406@gmail.com>
---
 fs/nilfs2/segment.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/fs/nilfs2/segment.c b/fs/nilfs2/segment.c
index 9332f5ac6083..219ae4ae0c03 100644
--- a/fs/nilfs2/segment.c
+++ b/fs/nilfs2/segment.c
@@ -2519,7 +2519,10 @@ int nilfs_clean_segments(struct super_block *sb, struct nilfs_argv *argv,
 		return -EROFS;
 
 	nilfs_transaction_lock(sb, &ti, 1);
-
+	pr_err("nilfs2: clean_segments: ns_nsegments=%lu nfreesegs=%zu segnums[0]=0x%llx\n",
+       nilfs->ns_nsegments,
+       nfreesegs,
+       nfreesegs > 0 ? segnumv[0] : 0ULL);
 	/*
 	 * Validate segment numbers under ns_segctor_sem (held for write
 	 * by nilfs_transaction_lock above) so the check is serialized
@@ -2559,7 +2562,7 @@ int nilfs_clean_segments(struct super_block *sb, struct nilfs_argv *argv,
 
 		if (likely(!err))
 			break;
-
+		pr_err("nilfs2: clean_segments retry: err=%d\n", err);
 		nilfs_warn(sb, "error %d cleaning segments", err);
 		set_current_state(TASK_INTERRUPTIBLE);
 		schedule_timeout(sci->sc_interval);
-- 
2.43.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [syzbot] [nilfs?] INFO: task hung in nilfs_segctor_thread (7)
  2026-06-17 14:11 [syzbot] [nilfs?] INFO: task hung in nilfs_segctor_thread (7) syzbot
  2026-06-19  1:24 ` Forwarded: [PATCH] nilfs2: add debug instrumentation to nilfs_clean_segments syzbot
@ 2026-06-19  2:50 ` Ryusuke Konishi
  1 sibling, 0 replies; 4+ messages in thread
From: Ryusuke Konishi @ 2026-06-19  2:50 UTC (permalink / raw)
  To: syzbot; +Cc: linux-kernel, linux-nilfs, slava, syzkaller-bugs

On Wed, Jun 17, 2026 at 11:11 PM syzbot
<syzbot+155b515977fecb686986@syzkaller.appspotmail.com> wrote:
>
> Hello,
>
> syzbot found the following issue on:
>
> HEAD commit:    062871f1371b Merge tag 'pinctrl-v7.1-3' of git://git.kerne..
> git tree:       upstream
> console output: https://syzkaller.appspot.com/x/log.txt?x=16fa58ae580000
> kernel config:  https://syzkaller.appspot.com/x/.config?x=4e828c596d7aa593
> dashboard link: https://syzkaller.appspot.com/bug?extid=155b515977fecb686986
> compiler:       Debian clang version 22.1.6 (++20260514074242+fc4aad7b5db3-1~exp1~20260514074407.73), Debian LLD 22.1.6
> syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=1510f3d2580000
>
> Downloadable assets:
> disk image: https://storage.googleapis.com/syzbot-assets/e3dc965f9a88/disk-062871f1.raw.xz
> vmlinux: https://storage.googleapis.com/syzbot-assets/2f67e7ba9e6a/vmlinux-062871f1.xz
> kernel image: https://storage.googleapis.com/syzbot-assets/4ad13e1ccf55/bzImage-062871f1.xz
> mounted in repro: https://storage.googleapis.com/syzbot-assets/f2ea87a29031/mount_0.gz
>
> IMPORTANT: if you fix the issue, please add the following tag to the commit:
> Reported-by: syzbot+155b515977fecb686986@syzkaller.appspotmail.com
>
> INFO: task segctord:6131 blocked for more than 143 seconds.
>       Not tainted syzkaller #0
> "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
> task:segctord        state:D stack:28680 pid:6131  tgid:6131  ppid:2      task_flags:0x200040 flags:0x00080000
> Call Trace:
>  <TASK>
>  context_switch kernel/sched/core.c:5388 [inline]
>  __schedule+0x1840/0x57a0 kernel/sched/core.c:7189
>  __schedule_loop kernel/sched/core.c:7268 [inline]
>  schedule+0x164/0x360 kernel/sched/core.c:7283
>  schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:7340
>  rwsem_down_write_slowpath+0x87d/0x1080 kernel/locking/rwsem.c:1215
>  __down_write_common kernel/locking/rwsem.c:1347 [inline]
>  __down_write kernel/locking/rwsem.c:1356 [inline]
>  down_write+0x1bc/0x200 kernel/locking/rwsem.c:1626
>  nilfs_transaction_lock+0x24a/0x4b0 fs/nilfs2/segment.c:357
>  nilfs_segctor_thread_construct fs/nilfs2/segment.c:2569 [inline]
>  nilfs_segctor_thread+0x6be/0xdb0 fs/nilfs2/segment.c:2684
>  kthread+0x389/0x470 kernel/kthread.c:436
>  ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
>  ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
>  </TASK>
>
> Showing all locks held in the system:
> 1 lock held by khungtaskd/32:
>  #0:
> ffffffff8e95c780
>  (
> rcu_read_lock
> ){....}-{1:3}
> , at: rcu_lock_acquire include/linux/rcupdate.h:300 [inline]
> , at: rcu_read_lock include/linux/rcupdate.h:838 [inline]
> , at: debug_show_all_locks+0x2e/0x180 kernel/locking/lockdep.c:6775
> 2 locks held by getty/5382:
>  #0:
> ffff888031f200a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
>  #1:
> ffffc900032332e8 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x45a/0x1380 drivers/tty/n_tty.c:2211
> 3 locks held by syz.0.17/6086:
> 2 locks held by syz.5.22/6114:
> 3 locks held by syz.2.19/6118:
> 3 locks held by syz.1.18/6126:
> 2 locks held by syz.3.20/6130:
> 3 locks held by syz.4.21/6132:
> 1 lock held by segctord/6131:
>  #0: ffff88805bb0c288 (&nilfs->ns_segctor_sem){++++}-{4:4}, at: nilfs_transaction_lock+0x24a/0x4b0 fs/nilfs2/segment.c:357
> 2 locks held by syz-executor/6175:
> 1 lock held by syz-executor/6176:
> 7 locks held by syz.6.23/6349:
> 2 locks held by syz.7.24/6383:
> 3 locks held by syz.8.25/6380:
> 3 locks held by syz.9.26/6391:
> 1 lock held by syz.5.286/7133:
> 2 locks held by syz.0.288/7141:
> 1 lock held by syz.3.289/7140:
>
> =============================================
>
> NMI backtrace for cpu 0
> CPU: 0 UID: 0 PID: 32 Comm: khungtaskd Not tainted syzkaller #0 PREEMPT(full)
> Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
> Call Trace:
>  <TASK>
>  dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
>  nmi_cpu_backtrace+0x274/0x2d0 lib/nmi_backtrace.c:113
>  nmi_trigger_cpumask_backtrace+0x17a/0x300 lib/nmi_backtrace.c:62
>  trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline]
>  __sys_info lib/sys_info.c:157 [inline]
>  sys_info+0x135/0x170 lib/sys_info.c:165
>  check_hung_uninterruptible_tasks kernel/hung_task.c:353 [inline]
>  watchdog+0xfd7/0x1030 kernel/hung_task.c:561
>  kthread+0x389/0x470 kernel/kthread.c:436
>  ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
>  ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
>  </TASK>
> Sending NMI from CPU 0 to CPUs 1:
> NMI backtrace for cpu 1
> CPU: 1 UID: 0 PID: 6126 Comm: syz.1.18 Not tainted syzkaller #0 PREEMPT(full)
> Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
> RIP: 0010:hrtick_start+0x4a/0x250 kernel/sched/core.c:959
> Code: 00 00 41 bc 10 27 00 00 4c 0f 4d e6 4c 8d b7 e0 0d 00 00 4d 89 f7 49 c1 ef 03 43 0f b6 04 2f 84 c0 0f 85 83 01 00 00 41 8b 2e <85> ed 74 46 83 cd 04 43 0f b6 04 2f 84 c0 0f 85 8a 01 00 00 89 ab
> RSP: 0018:ffffc90000a08a90 EFLAGS: 00000046
> RAX: 0000000000000000 RBX: ffff8880b873b080 RCX: 0000000000000392
> RDX: 00000000000000da RSI: 000000000017eda4 RDI: ffff8880b873b080
> RBP: 0000000000000000 R08: ffffffff902f890f R09: 1ffffffff205f121
> R10: dffffc0000000000 R11: fffffbfff205f122 R12: 000000000017eda4
> R13: dffffc0000000000 R14: ffff8880b873be60 R15: 1ffff110170e77cc
> FS:  00007f8ac9dd86c0(0000) GS:ffff8881253b9000(0000) knlGS:0000000000000000
> CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> CR2: 00007f775c7ec4b8 CR3: 0000000022337000 CR4: 0000000000350ef0
> Call Trace:
>  <IRQ>
>  enqueue_task+0x75/0x410 kernel/sched/core.c:2165
>  activate_task kernel/sched/core.c:2205 [inline]
>  ttwu_do_activate+0x1c8/0x650 kernel/sched/core.c:3725
>  ttwu_queue kernel/sched/core.c:3978 [inline]
>  try_to_wake_up+0x70e/0x1330 kernel/sched/core.c:4302
>  autoremove_wake_function+0x17/0x100 kernel/sched/wait.c:403
>  __wake_up_common kernel/sched/wait.c:108 [inline]
>  __wake_up_common_lock+0x13a/0x1f0 kernel/sched/wait.c:125
>  irq_work_single+0xe0/0x240 kernel/irq_work.c:221
>  irq_work_run_list kernel/irq_work.c:252 [inline]
>  irq_work_tick+0x238/0x2a0 kernel/irq_work.c:277
>  update_process_times+0x263/0x2f0 kernel/time/timer.c:2478
>  tick_sched_handle kernel/time/tick-sched.c:298 [inline]
>  tick_nohz_handler+0x3fb/0x730 kernel/time/tick-sched.c:319
>  __run_hrtimer kernel/time/hrtimer.c:1930 [inline]
>  __hrtimer_run_queues+0x371/0xa10 kernel/time/hrtimer.c:1994
>  hrtimer_interrupt+0x448/0x910 kernel/time/hrtimer.c:2113
>  local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline]
>  __sysvec_apic_timer_interrupt+0x102/0x430 arch/x86/kernel/apic/apic.c:1067
>  instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1061 [inline]
>  sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1061
>  </IRQ>
>  <TASK>
>  asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697
> RIP: 0010:console_trylock_spinning kernel/printk/printk.c:2039 [inline]
> RIP: 0010:vprintk_emit+0x45d/0x560 kernel/printk/printk.c:2478
> Code: 0f 84 44 ff ff ff e8 72 17 21 00 fb eb 44 e8 6a 17 21 00 e8 45 1c fe 09 4d 85 f6 74 94 e8 5b 17 21 00 fb 48 c7 c7 00 ed 94 8e <31> f6 ba 01 00 00 00 31 c9 41 b8 01 00 00 00 45 31 c9 53 e8 6b 19
> RSP: 0018:ffffc900035cee40 EFLAGS: 00000293
> RAX: ffffffff81a428d5 RBX: ffffffff81a4274f RCX: ffff888076f21f00
> RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8e94ed00
> RBP: ffffc900035ceef0 R08: ffffffff902f88f7 R09: 1ffffffff205f11e
> R10: dffffc0000000000 R11: fffffbfff205f11f R12: 0000000000000000
> R13: 0000000000000040 R14: 0000000000000200 R15: 1ffff920006b9dcc
>  _printk+0xdd/0x130 kernel/printk/printk.c:2504
>  __nilfs_msg+0x373/0x450 fs/nilfs2/super.c:78
>  nilfs_sufile_updatev+0x21c/0x6d0 fs/nilfs2/sufile.c:186
>  nilfs_sufile_freev fs/nilfs2/sufile.h:93 [inline]
>  nilfs_free_segments fs/nilfs2/segment.c:1140 [inline]
>  nilfs_segctor_collect_blocks fs/nilfs2/segment.c:1261 [inline]
>  nilfs_segctor_collect fs/nilfs2/segment.c:1547 [inline]
>  nilfs_segctor_do_construct+0x20dd/0x7bb0 fs/nilfs2/segment.c:2122
>  nilfs_segctor_construct+0x170/0x690 fs/nilfs2/segment.c:2462
>  nilfs_clean_segments+0x3ac/0xa50 fs/nilfs2/segment.c:2536
>  nilfs_ioctl_clean_segments fs/nilfs2/ioctl.c:922 [inline]
>  nilfs_ioctl+0x2619/0x2780 fs/nilfs2/ioctl.c:1352
>  vfs_ioctl fs/ioctl.c:51 [inline]
>  __do_sys_ioctl fs/ioctl.c:597 [inline]
>  __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583
>  do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
>  do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94
>  entry_SYSCALL_64_after_hwframe+0x77/0x7f
> RIP: 0033:0x7f8ac8f9ce59
> Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
> RSP: 002b:00007f8ac9dd8028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
> RAX: ffffffffffffffda RBX: 00007f8ac9216090 RCX: 00007f8ac8f9ce59
> RDX: 0000200000000640 RSI: 0000000040786e88 RDI: 0000000000000004
> RBP: 00007f8ac9032d6f R08: 0000000000000000 R09: 0000000000000000
> R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
> R13: 00007f8ac9216128 R14: 00007f8ac9216090 R15: 00007ffd4ee3dc58
>  </TASK>

#syz dup: INFO: task hung in nilfs_transaction_begin (2)

This issue has been fixed by commit 0e7a690fe435 ("nilfs2: reject
CLEAN_SEGMENTS ioctl with out-of-range segment numbers") which was
merged into the mainline this week.

I confirmed this by running the reported reproducer.

Ryusuke Konishi

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [syzbot] [nilfs?] INFO: task hung in nilfs_segctor_thread (7)
       [not found] <20260619012437.11854-1-kartikey406@gmail.com>
@ 2026-06-19  5:50 ` syzbot
  0 siblings, 0 replies; 4+ messages in thread
From: syzbot @ 2026-06-19  5:50 UTC (permalink / raw)
  To: kartikey406, linux-kernel, syzkaller-bugs

Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
lost connection to test machine



Tested on:

commit:         8c13415c Merge tag 'media/v7.2-1' of git://git.kernel...
git tree:       upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=1753b986580000
kernel config:  https://syzkaller.appspot.com/x/.config?x=d4e6991ab3edc95e
dashboard link: https://syzkaller.appspot.com/bug?extid=155b515977fecb686986
compiler:       Debian clang version 22.1.6 (++20260514074242+fc4aad7b5db3-1~exp1~20260514074407.73), Debian LLD 22.1.6
patch:          https://syzkaller.appspot.com/x/patch.diff?x=130e4aae580000


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-06-19  5:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-17 14:11 [syzbot] [nilfs?] INFO: task hung in nilfs_segctor_thread (7) syzbot
2026-06-19  1:24 ` Forwarded: [PATCH] nilfs2: add debug instrumentation to nilfs_clean_segments syzbot
2026-06-19  2:50 ` [syzbot] [nilfs?] INFO: task hung in nilfs_segctor_thread (7) Ryusuke Konishi
     [not found] <20260619012437.11854-1-kartikey406@gmail.com>
2026-06-19  5:50 ` syzbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox