syzbot


INFO: task hung in smc_pnet_net_init (4)

Status: auto-obsoleted due to no activity on 2023/12/17 07:01
Subsystems: net s390
[Documentation on labels]
First crash: 198d, last: 198d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in smc_pnet_net_init net s390 12 819d 965d 0/26 closed as invalid on 2022/02/07 19:09
upstream INFO: task hung in smc_pnet_net_init (2) net s390 2 675d 716d 0/26 auto-closed as invalid on 2022/09/26 13:30
upstream INFO: task hung in smc_pnet_net_init (3) net s390 2 295d 302d 0/26 closed as invalid on 2023/09/07 14:36

Sample crash report:
INFO: task syz-executor.0:3585 blocked for more than 143 seconds.
      Not tainted 6.6.0-rc6-next-20231018-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:27152 pid:3585  tgid:3575  ppid:5091   flags:0x00000006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5369 [inline]
 __schedule+0xee4/0x5a10 kernel/sched/core.c:6680
 __schedule_loop kernel/sched/core.c:6757 [inline]
 schedule+0xe7/0x270 kernel/sched/core.c:6772
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6829
 __mutex_lock_common kernel/locking/mutex.c:679 [inline]
 __mutex_lock+0x969/0x1340 kernel/locking/mutex.c:747
 smc_pnet_create_pnetids_list net/smc/smc_pnet.c:809 [inline]
 smc_pnet_net_init+0x136/0x230 net/smc/smc_pnet.c:878
 smc_net_init+0x32/0x40 net/smc/af_smc.c:3419
 ops_init+0xb9/0x650 net/core/net_namespace.c:136
 setup_net+0x422/0xa40 net/core/net_namespace.c:339
 copy_net_ns+0x2fa/0x670 net/core/net_namespace.c:491
 create_new_namespaces+0x3ea/0xb10 kernel/nsproxy.c:110
 copy_namespaces+0x464/0x560 kernel/nsproxy.c:179
 copy_process+0x31c1/0x74b0 kernel/fork.c:2505
 kernel_clone+0xfd/0x940 kernel/fork.c:2907
 __do_sys_clone3+0x1f1/0x260 kernel/fork.c:3208
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3f/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f8d3a87cae9
RSP: 002b:00007f8d3b50af98 EFLAGS: 00000246 ORIG_RAX: 00000000000001b3
RAX: ffffffffffffffda RBX: 0000000000000058 RCX: 00007f8d3a87cae9
RDX: 00007f8d3b50afb0 RSI: 0000000000000058 RDI: 00007f8d3b50afb0
RBP: 00007f8d3a8c847a R08: 0000000000000000 R09: 0000000000000058
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f8d3a99c2c0 R15: 00007ffe7ec609e8
 </TASK>
INFO: task syz-executor.2:3604 blocked for more than 143 seconds.
      Not tainted 6.6.0-rc6-next-20231018-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2  state:D stack:27024 pid:3604  tgid:3600  ppid:5095   flags:0x00000006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5369 [inline]
 __schedule+0xee4/0x5a10 kernel/sched/core.c:6680
 __schedule_loop kernel/sched/core.c:6757 [inline]
 schedule+0xe7/0x270 kernel/sched/core.c:6772
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6829
 __mutex_lock_common kernel/locking/mutex.c:679 [inline]
 __mutex_lock+0x969/0x1340 kernel/locking/mutex.c:747
 exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline]
 synchronize_rcu_expedited+0x404/0x7e0 kernel/rcu/tree_exp.h:996
 kern_unmount_array+0x195/0x1d0 fs/namespace.c:4784
 ovl_free_fs+0x367/0x850 fs/overlayfs/params.c:746
 ovl_fill_super+0x30e/0x6500 fs/overlayfs/super.c:1467
 vfs_get_super fs/super.c:1338 [inline]
 get_tree_nodev+0xd6/0x180 fs/super.c:1357
 vfs_get_tree+0x8c/0x370 fs/super.c:1756
 do_new_mount fs/namespace.c:3337 [inline]
 path_mount+0x1492/0x1ed0 fs/namespace.c:3664
 do_mount fs/namespace.c:3677 [inline]
 __do_sys_mount fs/namespace.c:3886 [inline]
 __se_sys_mount fs/namespace.c:3863 [inline]
 __x64_sys_mount+0x293/0x310 fs/namespace.c:3863
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3f/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f82f587cae9
RSP: 002b:00007f82f66520c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f82f599c050 RCX: 00007f82f587cae9
RDX: 00000000200000c0 RSI: 0000000020000200 RDI: 0000000000000000
RBP: 00007f82f58c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f82f599c050 R15: 00007ffdacf6a718
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/29:
 #0: ffffffff8cbacbe0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline]
 #0: ffffffff8cbacbe0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline]
 #0: ffffffff8cbacbe0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x75/0x340 kernel/locking/lockdep.c:6613
2 locks held by getty/4816:
 #0: ffff8880299420a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243
 #1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xfc6/0x1490 drivers/tty/n_tty.c:2201
3 locks held by syz-fuzzer/5090:
 #0: ffff88814c950418 (sb_writers#4){.+.+}-{0:0}, at: do_rmdir+0x1e0/0x410 fs/namei.c:4231
 #1: ffff888040658e00 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:837 [inline]
 #1: ffff888040658e00 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: do_rmdir+0x231/0x410 fs/namei.c:4235
 #2: ffff88804065a200 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline]
 #2: ffff88804065a200 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: vfs_rmdir fs/namei.c:4177 [inline]
 #2: ffff88804065a200 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: vfs_rmdir+0xe9/0x650 fs/namei.c:4165
3 locks held by kworker/1:10/21671:
 #0: ffff8880255b7938 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x78a/0x15e0 kernel/workqueue.c:2605
 #1: ffffc900048ffd80 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_one_work+0x7f4/0x15e0 kernel/workqueue.c:2606
 #2: ffffffff8e617a28 (rtnl_mutex){+.+.}-{3:3}, at: addrconf_verify_work+0x12/0x30 net/ipv6/addrconf.c:4670
2 locks held by kworker/0:13/21726:
 #0: ffff888012c70d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x78a/0x15e0 kernel/workqueue.c:2605
 #1: ffffc900093b7d80 (key_gc_work){+.+.}-{0:0}, at: process_one_work+0x7f4/0x15e0 kernel/workqueue.c:2606
3 locks held by kworker/0:0/32221:
 #0: ffff8880255b7938 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x78a/0x15e0 kernel/workqueue.c:2605
 #1: ffffc90005177d80 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_one_work+0x7f4/0x15e0 kernel/workqueue.c:2606
 #2: ffffffff8e617a28 (rtnl_mutex){+.+.}-{3:3}, at: addrconf_verify_work+0x12/0x30 net/ipv6/addrconf.c:4670
1 lock held by syz-executor.3/1748:
3 locks held by kworker/1:0/1833:
 #0: ffff888012c70d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x78a/0x15e0 kernel/workqueue.c:2605
 #1: ffffc90015a0fd80 (deferred_process_work){+.+.}-{0:0}, at: process_one_work+0x7f4/0x15e0 kernel/workqueue.c:2606
 #2: ffffffff8e617a28 (rtnl_mutex){+.+.}-{3:3}, at: switchdev_deferred_process_work+0xe/0x20 net/switchdev/switchdev.c:75
2 locks held by syz-executor.0/3584:
2 locks held by syz-executor.0/3585:
 #0: ffffffff8e602690 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x2d5/0x670 net/core/net_namespace.c:487
 #1: ffffffff8e617a28 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_create_pnetids_list net/smc/smc_pnet.c:809 [inline]
 #1: ffffffff8e617a28 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_net_init+0x136/0x230 net/smc/smc_pnet.c:878
2 locks held by syz-executor.2/3604:
 #0: ffff8880305060e0 (&type->s_umount_key#89/1){+.+.}-{3:3}, at: alloc_super+0x238/0xb50 fs/super.c:352
 #1: ffffffff8cbb8478 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline]
 #1: ffffffff8cbb8478 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x404/0x7e0 kernel/rcu/tree_exp.h:996
1 lock held by syz-executor.2/3644:
 #0: ffffffff8e617a28 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline]
 #0: ffffffff8e617a28 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x36f/0xdf0 net/core/rtnetlink.c:6468
1 lock held by dhcpcd/3648:
 #0: ffff888027d50130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1720 [inline]
 #0: ffff888027d50130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2c/0xf40 net/packet/af_packet.c:3208
1 lock held by dhcpcd/3649:
 #0: ffff888046e44130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1720 [inline]
 #0: ffff888046e44130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2c/0xf40 net/packet/af_packet.c:3208
1 lock held by dhcpcd/3650:
 #0: ffff88801775e130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1720 [inline]
 #0: ffff88801775e130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2c/0xf40 net/packet/af_packet.c:3208
1 lock held by dhcpcd/3651:
 #0: ffff88807a25e130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1720 [inline]
 #0: ffff88807a25e130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2c/0xf40 net/packet/af_packet.c:3208
1 lock held by dhcpcd/3652:
 #0: ffff8880781fe130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1720 [inline]
 #0: ffff8880781fe130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2c/0xf40 net/packet/af_packet.c:3208
1 lock held by dhcpcd/3653:
 #0: ffff88802782e130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1720 [inline]
 #0: ffff88802782e130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2c/0xf40 net/packet/af_packet.c:3208
1 lock held by syz-executor.2/3655:
 #0: ffffffff8e617a28 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline]
 #0: ffffffff8e617a28 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x36f/0xdf0 net/core/rtnetlink.c:6468

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

NMI backtrace for cpu 0
CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.6.0-rc6-next-20231018-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x277/0x380 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x299/0x300 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline]
 watchdog+0xf87/0x1210 kernel/hung_task.c:379
 kthread+0x33c/0x440 kernel/kthread.c:388
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 1748 Comm: syz-executor.3 Not tainted 6.6.0-rc6-next-20231018-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
RIP: 0010:preempt_count arch/x86/include/asm/preempt.h:27 [inline]
RIP: 0010:check_kcov_mode kernel/kcov.c:173 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0xd/0x60 kernel/kcov.c:207
Code: fa 48 8b be b0 01 00 00 e8 b0 ff ff ff 31 c0 c3 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 f3 0f 1e fa 65 48 8b 14 25 c0 bc 03 00 <65> 8b 05 84 f0 7a 7e a9 00 01 ff 00 48 8b 34 24 74 0f f6 c4 01 74
RSP: 0018:ffffc9001553f610 EFLAGS: 00000246
RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc9000ac81000
RDX: ffff88807c081dc0 RSI: ffffffff81badadf RDI: 0000000000000007
RBP: ffffea00017e5c00 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 1ffff11002652bb2 R12: 0000000000000000
R13: 0000000000000800 R14: 0000000000000000 R15: 000000000000000f
FS:  00007f391f4346c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005594ea048f08 CR3: 000000007d72a000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 PageTail include/linux/page-flags.h:286 [inline]
 folio_flags+0x56/0x1f0 include/linux/page-flags.h:313
 folio_test_referenced include/linux/page-flags.h:470 [inline]
 folio_inc_refs mm/swap.c:422 [inline]
 folio_mark_accessed+0x297/0xb30 mm/swap.c:461
 __filemap_get_folio+0x746/0xa90 mm/filemap.c:1877
 __find_get_block_slow fs/buffer.c:203 [inline]
 __find_get_block fs/buffer.c:1406 [inline]
 __find_get_block+0x170/0xc30 fs/buffer.c:1400
 __getblk_slow+0x10c/0x6b0 fs/buffer.c:1134
 bdev_getblk+0xad/0xc0 fs/buffer.c:1434
 __bread_gfp+0xaf/0x370 fs/buffer.c:1479
 sb_bread include/linux/buffer_head.h:324 [inline]
 fat__get_entry+0x50a/0x940 fs/fat/dir.c:100
 fat_get_entry fs/fat/dir.c:128 [inline]
 fat_get_short_entry+0x138/0x2c0 fs/fat/dir.c:873
 fat_subdirs+0xb2/0x180 fs/fat/dir.c:939
 fat_read_root fs/fat/inode.c:1420 [inline]
 fat_fill_super+0x2a6a/0x3c90 fs/fat/inode.c:1867
 mount_bdev+0x1f3/0x2e0 fs/super.c:1635
 legacy_get_tree+0x109/0x220 fs/fs_context.c:662
 vfs_get_tree+0x8c/0x370 fs/super.c:1756
 do_new_mount fs/namespace.c:3337 [inline]
 path_mount+0x1492/0x1ed0 fs/namespace.c:3664
 do_mount fs/namespace.c:3677 [inline]
 __do_sys_mount fs/namespace.c:3886 [inline]
 __se_sys_mount fs/namespace.c:3863 [inline]
 __x64_sys_mount+0x293/0x310 fs/namespace.c:3863
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3f/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f391e67e1ea
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 09 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f391f433ee8 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f391f433f80 RCX: 00007f391e67e1ea
RDX: 0000000020000440 RSI: 0000000020000000 RDI: 00007f391f433f40
RBP: 0000000020000440 R08: 00007f391f433f80 R09: 0000000000000844
R10: 0000000000000844 R11: 0000000000000206 R12: 0000000020000000
R13: 00007f391f433f40 R14: 000000000000023b R15: 0000000020000800
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/10/18 06:59 linux-next 2dac75696c6d 342b9c55 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in smc_pnet_net_init
* Struck through repros no longer work on HEAD.