INFO: task kworker/u8:1:10897 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u8:1    state:D stack:24200 pid:10897 tgid:10897 ppid:2      task_flags:0x4208060 flags:0x00080000
Workqueue: netns cleanup_net
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 schedule_preempt_disabled+0x13/0x30
 rwsem_down_write_slowpath+0x872/0xfe0
 down_write+0x1ab/0x1f0
 rdma_dev_exit_net+0x8c/0x340
 ops_undo_list+0x49a/0x990
 cleanup_net+0x4d8/0x820
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x4bc/0x870
 ret_from_fork_asm+0x1a/0x30
 </TASK>
INFO: task syz-executor:11140 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor    state:D stack:25512 pid:11140 tgid:11140 ppid:1      task_flags:0x400140 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 schedule_preempt_disabled+0x13/0x30
 rwsem_down_read_slowpath+0x5fd/0x8f0
 down_read+0x98/0x2e0
 rdma_dev_init_net+0x1d2/0x270
 ops_init+0x35c/0x5c0
 setup_net+0xfe/0x320
 copy_net_ns+0x34e/0x4e0
 create_new_namespaces+0x3f3/0x720
 unshare_nsproxy_namespaces+0x11c/0x170
 ksys_unshare+0x4c8/0x8c0
 __x64_sys_unshare+0x38/0x50
 do_syscall_64+0xfa/0xfa0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fef1d790427
RSP: 002b:00007fff59ed2188 EFLAGS: 00000202 ORIG_RAX: 0000000000000110
RAX: ffffffffffffffda RBX: 00007fef1d9d5f40 RCX: 00007fef1d790427
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000040000000
RBP: 00007fef1d9d67b8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000008
R13: 0000000000000003 R14: 0000000000000009 R15: 0000000000000000
 </TASK>
INFO: task syz-executor:11188 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor    state:D stack:25456 pid:11188 tgid:11188 ppid:1      task_flags:0x400140 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 schedule_preempt_disabled+0x13/0x30
 rwsem_down_read_slowpath+0x5fd/0x8f0
 down_read+0x98/0x2e0
 rdma_dev_init_net+0x1d2/0x270
 ops_init+0x35c/0x5c0
 setup_net+0xfe/0x320
 copy_net_ns+0x34e/0x4e0
 create_new_namespaces+0x3f3/0x720
 unshare_nsproxy_namespaces+0x11c/0x170
 ksys_unshare+0x4c8/0x8c0
 __x64_sys_unshare+0x38/0x50
 do_syscall_64+0xfa/0xfa0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9e6bd90427
RSP: 002b:00007ffee6935d28 EFLAGS: 00000202 ORIG_RAX: 0000000000000110
RAX: ffffffffffffffda RBX: 00007f9e6bfd5f40 RCX: 00007f9e6bd90427
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000040000000
RBP: 00007f9e6bfd67b8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000008
R13: 0000000000000003 R14: 0000000000000009 R15: 0000000000000000
 </TASK>
INFO: task syz-executor:11189 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor    state:D stack:25456 pid:11189 tgid:11189 ppid:1      task_flags:0x400140 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 schedule_preempt_disabled+0x13/0x30
 rwsem_down_read_slowpath+0x5fd/0x8f0
 down_read+0x98/0x2e0
 rdma_dev_init_net+0x1d2/0x270
 ops_init+0x35c/0x5c0
 setup_net+0xfe/0x320
 copy_net_ns+0x34e/0x4e0
 create_new_namespaces+0x3f3/0x720
 unshare_nsproxy_namespaces+0x11c/0x170
 ksys_unshare+0x4c8/0x8c0
 __x64_sys_unshare+0x38/0x50
 do_syscall_64+0xfa/0xfa0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f25ed590427
RSP: 002b:00007ffcd9474618 EFLAGS: 00000206 ORIG_RAX: 0000000000000110
RAX: ffffffffffffffda RBX: 00007f25ed7d5f40 RCX: 00007f25ed590427
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000040000000
RBP: 00007f25ed7d67b8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000008
R13: 0000000000000003 R14: 0000000000000009 R15: 0000000000000000
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/34:
 #0: ffffffff8e33d360 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
2 locks held by getty/5677:
 #0: ffff88802a08d0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc9000290e2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400
10 locks held by syz.5.1196/10588:
4 locks held by kworker/u8:1/10897:
 #0: ffff88801baff148 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90002ee7ba0 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffffffff8f730fd0 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xf7/0x820
 #3: ffffffff8f492030 (rdma_nets_rwsem){++++}-{4:4}, at: rdma_dev_exit_net+0x8c/0x340
3 locks held by syz-executor/11140:
 #0: ffffffff8f730fd0 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x337/0x4e0
 #1: ffffffff8f491e70 (devices_rwsem){++++}-{4:4}, at: rdma_dev_init_net+0x19a/0x270
 #2: ffffffff8f492030 (rdma_nets_rwsem){++++}-{4:4}, at: rdma_dev_init_net+0x1d2/0x270
3 locks held by syz-executor/11188:
 #0: ffffffff8f730fd0 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x337/0x4e0
 #1: ffffffff8f491e70 (devices_rwsem){++++}-{4:4}, at: rdma_dev_init_net+0x19a/0x270
 #2: ffffffff8f492030 (rdma_nets_rwsem){++++}-{4:4}, at: rdma_dev_init_net+0x1d2/0x270
3 locks held by syz-executor/11189:
 #0: ffffffff8f730fd0 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x337/0x4e0
 #1: ffffffff8f491e70 (devices_rwsem){++++}-{4:4}, at: rdma_dev_init_net+0x19a/0x270
 #2: ffffffff8f492030 (rdma_nets_rwsem){++++}-{4:4}, at: rdma_dev_init_net+0x1d2/0x270
3 locks held by syz-executor/11197:
 #0: ffffffff8f730fd0 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x337/0x4e0
 #1: ffffffff8f491e70 (devices_rwsem){++++}-{4:4}, at: rdma_dev_init_net+0x19a/0x270
 #2: ffffffff8f492030 (rdma_nets_rwsem){++++}-{4:4}, at: rdma_dev_init_net+0x1d2/0x270
3 locks held by syz-executor/11203:
 #0: ffffffff8f730fd0 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x337/0x4e0
 #1: ffffffff8f491e70 (devices_rwsem){++++}-{4:4}, at: rdma_dev_init_net+0x19a/0x270
 #2: ffffffff8f492030 (rdma_nets_rwsem){++++}-{4:4}, at: rdma_dev_init_net+0x1d2/0x270
3 locks held by syz-executor/11207:
 #0: ffffffff8f730fd0 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x337/0x4e0
 #1: ffffffff8f491e70 (devices_rwsem){++++}-{4:4}, at: rdma_dev_init_net+0x19a/0x270
 #2: ffffffff8f492030 (rdma_nets_rwsem){++++}-{4:4}, at: rdma_dev_init_net+0x1d2/0x270
3 locks held by syz-executor/11211:
 #0: ffffffff8f730fd0 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x337/0x4e0
 #1: ffffffff8f491e70 (devices_rwsem){++++}-{4:4}, at: rdma_dev_init_net+0x19a/0x270
 #2: ffffffff8f492030 (rdma_nets_rwsem){++++}-{4:4}, at: rdma_dev_init_net+0x1d2/0x270
3 locks held by syz-executor/11218:
 #0: ffffffff8f730fd0 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x337/0x4e0
 #1: ffffffff8f491e70 (devices_rwsem){++++}-{4:4}, at: rdma_dev_init_net+0x19a/0x270
 #2: ffffffff8f492030 (rdma_nets_rwsem){++++}-{4:4}, at: rdma_dev_init_net+0x1d2/0x270
3 locks held by syz-executor/11221:
 #0: ffffffff8f730fd0 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x337/0x4e0
 #1: ffffffff8f491e70 (devices_rwsem){++++}-{4:4}, at: rdma_dev_init_net+0x19a/0x270
 #2: ffffffff8f492030 (rdma_nets_rwsem){++++}-{4:4}, at: rdma_dev_init_net+0x1d2/0x270

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

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 34 Comm: khungtaskd Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250
 nmi_cpu_backtrace+0x39e/0x3d0
 nmi_trigger_cpumask_backtrace+0x17a/0x300
 watchdog+0xf60/0xfa0
 kthread+0x711/0x8a0
 ret_from_fork+0x4bc/0x870
 ret_from_fork_asm+0x1a/0x30
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 10588 Comm: syz.5.1196 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:handle_softirqs+0x1b0/0x870
Code: 89 64 24 30 0f b7 db 48 c7 c7 40 b4 a9 8b e8 37 fe f8 09 65 66 c7 05 05 62 3c 11 00 00 e8 28 93 42 00 fb 49 c7 c7 c0 c0 00 8e <b8> ff ff ff ff 0f bc c3 41 89 c5 41 ff c5 0f 84 c2 03 00 00 89 5c
RSP: 0018:ffffc90000007e40 EFLAGS: 00000286
RAX: ea39f1a9bfab2100 RBX: 0000000000000102 RCX: ea39f1a9bfab2100
RDX: 0000000000000003 RSI: ffffffff8db9e917 RDI: ffffffff8c03d4e0
RBP: ffffc90000007f50 R08: ffffffff8fc34377 R09: 1ffffffff1f8686e
R10: dffffc0000000000 R11: fffffbfff1f8686f R12: 000000000000000a
R13: 0000000000000000 R14: dffffc0000000000 R15: ffffffff8e00c0c0
FS:  00007efe1b1d96c0(0000) GS:ffff8880b8403000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcb4400f1ea CR3: 0000000030136000 CR4: 00000000000006f0
DR0: 0000200000000300 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <IRQ>
 __irq_exit_rcu+0xca/0x1f0
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:preempt_schedule_irq+0xb0/0x150
Code: 24 20 f6 44 24 21 02 74 0c 90 0f 0b 48 f7 03 10 00 00 00 74 64 bf 01 00 00 00 e8 fb 1e 11 f6 e8 96 85 48 f6 fb bf 01 00 00 00 <e8> 5b ab ff ff 48 c7 44 24 40 00 00 00 00 9c 8f 44 24 40 8b 44 24
RSP: 0018:ffffc90002935aa0 EFLAGS: 00000286
RAX: ea39f1a9bfab2100 RBX: 0000000000000000 RCX: ea39f1a9bfab2100
RDX: 0000000000000007 RSI: ffffffff8db9e917 RDI: 0000000000000001
RBP: ffffc90002935b40 R08: ffffffff8fc34377 R09: 1ffffffff1f8686e
R10: dffffc0000000000 R11: fffffbfff1f8686f R12: 0000000000000000
R13: 0000000000000000 R14: dffffc0000000000 R15: 1ffff92000526b54
 irqentry_exit+0x6f/0x90
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:preempt_schedule+0x59/0xc0
Code: d6 8d 48 c7 44 24 10 50 78 7f 8b 48 89 e3 48 c1 eb 03 48 b8 f1 f1 f1 f1 00 f3 f3 f3 49 be 00 00 00 00 00 fc ff df 4a 89 04 33 <65> 8b 05 80 57 42 07 a9 ff ff ff 7f 75 15 48 c7 44 24 20 00 00 00
RSP: 0018:ffffc90002935c00 EFLAGS: 00000a02
RAX: f3f3f300f1f1f1f1 RBX: 1ffff92000526b80 RCX: 0000000000000000
RDX: 0000000000000007 RSI: ffffffff8db9e917 RDI: 00000000ffffffff
RBP: ffffc90002935c78 R08: ffffffff8fc34377 R09: 1ffffffff1f8686e
R10: dffffc0000000000 R11: fffffbfff1f8686f R12: dffffc0000000000
R13: ffffffff8e342680 R14: dffffc0000000000 R15: 1ffff92000526b9c
 preempt_schedule_thunk+0x16/0x30
 _raw_spin_unlock_irqrestore+0xfd/0x110
 rcu_preempt_deferred_qs_irqrestore+0x89c/0xce0
 rcu_read_unlock_special+0x3a2/0x4b0
 __rcu_read_unlock+0x84/0xe0
 unwind_next_frame+0x19ae/0x2390
 arch_stack_walk+0x11c/0x150
 stack_trace_save+0x9c/0xe0
 save_stack+0xf5/0x1f0
 __reset_page_owner+0x71/0x1f0
 __free_frozen_pages+0xbc4/0xd30
 __put_partials+0x146/0x170
 put_cpu_partial+0x1f2/0x2e0
 __slab_free+0x2b9/0x390
 qlist_free_all+0x97/0x140
 kasan_quarantine_reduce+0x148/0x160
 __kasan_slab_alloc+0x22/0x80
 __kmalloc_node_track_caller_noprof+0x519/0x800
 kstrdup+0x42/0x100
 __kernfs_new_node+0x9c/0x7e0
 kernfs_new_node+0x102/0x210
 __kernfs_create_file+0x4b/0x2e0
 sysfs_add_file_mode_ns+0x238/0x300
 internal_create_group+0x66d/0x1110
 sysfs_create_groups+0x59/0x120
 ib_setup_port_attrs+0xd9b/0x2070
 add_one_compat_dev+0x3d6/0x5c0
 enable_device_and_get+0x2a7/0x3d0
 ib_register_device+0x10c3/0x1380
 rxe_register_device+0x1ef/0x310
 rxe_net_add+0x81/0x110
 rxe_newlink+0xdd/0x190
 nldev_newlink+0x4a5/0x5a0
 rdma_nl_rcv+0x6ae/0x980
 netlink_unicast+0x82f/0x9e0
 netlink_sendmsg+0x805/0xb30
 __sock_sendmsg+0x21c/0x270
 ____sys_sendmsg+0x505/0x830
 ___sys_sendmsg+0x21f/0x2a0
 __x64_sys_sendmsg+0x19b/0x260
 do_syscall_64+0xfa/0xfa0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7efe1a38ec29
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007efe1b1d9038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007efe1a5d5fa0 RCX: 00007efe1a38ec29
RDX: 0000000000040000 RSI: 0000200000000540 RDI: 0000000000000006
RBP: 00007efe1a411e41 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007efe1a5d6038 R14: 00007efe1a5d5fa0 R15: 00007ffd300a17a8
 </TASK>
