TITLE: inconsistent lock state in fs_reclaim_acquire
TYPE: LOCKDEP

[  860.112634][    C1] ================================
[  860.117823][    C1] WARNING: inconsistent lock state
[  860.122922][    C1] 5.15.0-rc2-syzkaller #0 Not tainted
[  860.128290][    C1] --------------------------------
[  860.133390][    C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage.
[  860.140237][    C1] ksoftirqd/1/19 [HC0[0]:SC1[3]:HE1:SE0] takes:
[  860.146481][    C1] ffffffff8c9dd960 (fs_reclaim){+.?.}-{0:0}, at: kmem_cache_alloc_node+0x46/0x340
[  860.155717][    C1] {SOFTIRQ-ON-W} state was registered at:
[  860.161435][    C1]   lock_acquire+0x19f/0x4d0
[  860.166029][    C1]   fs_reclaim_acquire+0x77/0x110
[  860.171066][    C1]   kmem_cache_alloc_trace+0x42/0x310
[  860.176455][    C1]   wq_numa_init+0x122/0x49f
[  860.176550][    C1]   workqueue_init+0x18/0x7c7
[  860.176568][    C1]   kernel_init_freeable+0x408/0x5c6
[  860.176585][    C1]   kernel_init+0x19/0x2a0
[  860.176602][    C1]   ret_from_fork+0x1f/0x30
[  860.176626][    C1] irq event stamp: 4852124
[  860.176634][    C1] hardirqs last  enabled at (4852124): [<ffffffff81cdd884>] kasan_quarantine_put+0xd4/0x230
[  860.176657][    C1] hardirqs last disabled at (4852123): [<ffffffff81cdd7e9>] kasan_quarantine_put+0x39/0x230
[  860.176680][    C1] softirqs last  enabled at (4851912): [<ffffffff814f6851>] run_ksoftirqd+0xc1/0x120
[  860.176746][    C1] softirqs last disabled at (4851919): [<ffffffff814f6851>] run_ksoftirqd+0xc1/0x120
[  860.176766][    C1] 
[  860.176766][    C1] other info that might help us debug this:
[  860.176772][    C1]  Possible unsafe locking scenario:
[  860.176772][    C1] 
[  860.176777][    C1]        CPU0
[  860.176780][    C1]        ----
[  860.176783][    C1]   lock(fs_reclaim);
[  860.176797][    C1]   <Interrupt>
[  860.176801][    C1]     lock(fs_reclaim);
[  860.176811][    C1] 
[  860.176811][    C1]  *** DEADLOCK ***
[  860.176811][    C1] 
[  860.176815][    C1] 6 locks held by ksoftirqd/1/19:
[  860.176825][    C1]  #0: ffffffff8c91c200 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x9/0x30
[  860.176901][    C1]  #1: ffffffff8c91c200 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x9/0x30
[  860.176941][    C1]  #2: ffffffff8c91c200 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30
[  860.177006][    C1]  #3: ffffffff8c91c200 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30
[  860.177047][    C1]  #4: ffff88806f912620 (k-slock-AF_INET6/1){+.-.}-{2:2}, at: tcp_v6_rcv+0x3317/0x4470
[  860.177095][    C1]  #5: ffff888074db2fa0 (slock-AF_INET6){+.-.}-{2:2}, at: mptcp_incoming_options+0x3a8/0x1fb0
[  860.177167][    C1] 
[  860.177167][    C1] stack backtrace:
[  860.177174][    C1] CPU: 1 PID: 19 Comm: ksoftirqd/1 Not tainted 5.15.0-rc2-syzkaller #0
[  860.177192][    C1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
[  860.177202][    C1] Call Trace:
[  860.177210][    C1]  dump_stack_lvl+0x1dc/0x2d8
[  860.177269][    C1]  print_usage_bug+0xa6d/0xea0
[  860.177323][    C1]  mark_lock+0x168c/0x1e00
[  860.177415][    C1]  __lock_acquire+0xc36/0x2b00
[  860.177497][    C1]  lock_acquire+0x19f/0x4d0
[  860.177650][    C1]  fs_reclaim_acquire+0x77/0x110
[  860.177716][    C1]  kmem_cache_alloc_node+0x46/0x340
[  860.177753][    C1]  __alloc_skb+0xd8/0x580
[  860.177770][    C1]  sk_stream_alloc_skb+0x1f4/0xb40
[  860.177790][    C1]  tcp_build_frag+0x268/0x1010
[  860.177911][    C1]  mptcp_sendmsg_frag+0x6a1/0x1570
[  860.177972][    C1]  __mptcp_subflow_push_pending+0x289/0xa10
[  860.178017][    C1]  mptcp_incoming_options+0x497/0x1fb0
[  860.178121][    C1]  tcp_data_queue+0xf4/0x8430
[  860.178272][    C1]  tcp_rcv_established+0x9f7/0x22b0
[  860.178332][    C1]  tcp_v6_do_rcv+0x4a9/0x12d0
[  860.178354][    C1]  tcp_v6_rcv+0x36dc/0x4470
[  860.178430][    C1]  ip6_protocol_deliver_rcu+0x9a5/0x1310
[  860.178472][    C1]  ip6_input+0x10b/0x190
[  860.178488][    C1]  ip_sabotage_in+0x1a1/0x220
[  860.178520][    C1]  nf_hook_slow+0xb2/0x1f0
[  860.178539][    C1]  nf_hook+0x235/0x3a0
[  860.178621][    C1]  ipv6_rcv+0x87/0xd0
[  860.178638][    C1]  __netif_receive_skb+0x1d1/0x500
[  860.178711][    C1]  netif_receive_skb_internal+0x108/0x360
[  860.178781][    C1]  netif_receive_skb+0x19/0x30
[  860.178796][    C1]  br_handle_frame_finish+0x139b/0x1940
[  860.178945][    C1]  br_nf_hook_thresh+0x3db/0x4f0
[  860.179004][    C1]  br_nf_pre_routing_finish_ipv6+0x942/0xbc0
[  860.179042][    C1]  br_nf_pre_routing_ipv6+0x294/0x340
[  860.179074][    C1]  br_handle_frame+0x875/0x1050
[  860.179163][    C1]  __netif_receive_skb_core+0x14d8/0x3d10
[  860.179255][    C1]  __netif_receive_skb+0x120/0x500
[  860.179350][    C1]  process_backlog+0x518/0x9a0
[  860.179436][    C1]  __napi_poll+0xba/0x4f0
[  860.179453][    C1]  net_rx_action+0x61c/0xf30
[  860.179512][    C1]  __do_softirq+0x392/0x7a3
[  860.179563][    C1]  run_ksoftirqd+0xc1/0x120
[  860.179620][    C1]  smpboot_thread_fn+0x533/0x9d0
[  860.179691][    C1]  kthread+0x453/0x480
[  860.179734][    C1]  ret_from_fork+0x1f/0x30
[  860.112634][    C1] ================================
[  860.117823][    C1] WARNING: inconsistent lock state
[  860.122922][    C1] 5.15.0-rc2-syzkaller #0 Not tainted
[  860.128290][    C1] --------------------------------
[  860.133390][    C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage.
[  860.140237][    C1] ksoftirqd/1/19 [HC0[0]:SC1[3]:HE1:SE0] takes:
[  860.146481][    C1] ffffffff8c9dd960 (fs_reclaim){+.?.}-{0:0}, at: kmem_cache_alloc_node+0x46/0x340
[  860.155717][    C1] {SOFTIRQ-ON-W} state was registered at:
[  860.161435][    C1]   lock_acquire+0x19f/0x4d0
[  860.166029][    C1]   fs_reclaim_acquire+0x77/0x110
[  860.171066][    C1]   kmem_cache_alloc_trace+0x42/0x310
[  860.176455][    C1]   wq_numa_init+0x122/0x49f
[  860.176550][    C1]   workqueue_init+0x18/0x7c7
[  860.176568][    C1]   kernel_init_freeable+0x408/0x5c6
[  860.176585][    C1]   kernel_init+0x19/0x2a0
[  860.176602][    C1]   ret_from_fork+0x1f/0x30
[  860.176626][    C1] irq event stamp: 4852124
[  860.176634][    C1] hardirqs last  enabled at (4852124): [<ffffffff81cdd884>] kasan_quarantine_put+0xd4/0x230
[  860.176657][    C1] hardirqs last disabled at (4852123): [<ffffffff81cdd7e9>] kasan_quarantine_put+0x39/0x230
[  860.176680][    C1] softirqs last  enabled at (4851912): [<ffffffff814f6851>] run_ksoftirqd+0xc1/0x120
[  860.176746][    C1] softirqs last disabled at (4851919): [<ffffffff814f6851>] run_ksoftirqd+0xc1/0x120
[  860.176766][    C1] 
[  860.176766][    C1] other info that might help us debug this:
[  860.176772][    C1]  Possible unsafe locking scenario:
[  860.176772][    C1] 
[  860.176777][    C1]        CPU0
[  860.176780][    C1]        ----
[  860.176783][    C1]   lock(fs_reclaim);
[  860.176797][    C1]   <Interrupt>
[  860.176801][    C1]     lock(fs_reclaim);
[  860.176811][    C1] 
[  860.176811][    C1]  *** DEADLOCK ***
[  860.176811][    C1] 
[  860.176815][    C1] 6 locks held by ksoftirqd/1/19:
[  860.176825][    C1]  #0: ffffffff8c91c200 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x9/0x30
[  860.176901][    C1]  #1: ffffffff8c91c200 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x9/0x30
[  860.176941][    C1]  #2: ffffffff8c91c200 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30
[  860.177006][    C1]  #3: ffffffff8c91c200 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30
[  860.177047][    C1]  #4: ffff88806f912620 (k-slock-AF_INET6/1){+.-.}-{2:2}, at: tcp_v6_rcv+0x3317/0x4470
[  860.177095][    C1]  #5: ffff888074db2fa0 (slock-AF_INET6){+.-.}-{2:2}, at: mptcp_incoming_options+0x3a8/0x1fb0
[  860.177167][    C1] 
[  860.177167][    C1] stack backtrace:
[  860.177174][    C1] CPU: 1 PID: 19 Comm: ksoftirqd/1 Not tainted 5.15.0-rc2-syzkaller #0
[  860.177192][    C1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
[  860.177202][    C1] Call Trace:
[  860.177210][    C1]  dump_stack_lvl+0x1dc/0x2d8
[  860.177269][    C1]  print_usage_bug+0xa6d/0xea0
[  860.177323][    C1]  mark_lock+0x168c/0x1e00
[  860.177415][    C1]  __lock_acquire+0xc36/0x2b00
[  860.177497][    C1]  lock_acquire+0x19f/0x4d0
[  860.177650][    C1]  fs_reclaim_acquire+0x77/0x110
[  860.177716][    C1]  kmem_cache_alloc_node+0x46/0x340
[  860.177753][    C1]  __alloc_skb+0xd8/0x580
[  860.177770][    C1]  sk_stream_alloc_skb+0x1f4/0xb40
[  860.177790][    C1]  tcp_build_frag+0x268/0x1010
[  860.177911][    C1]  mptcp_sendmsg_frag+0x6a1/0x1570
[  860.177972][    C1]  __mptcp_subflow_push_pending+0x289/0xa10
[  860.178017][    C1]  mptcp_incoming_options+0x497/0x1fb0
[  860.178121][    C1]  tcp_data_queue+0xf4/0x8430
[  860.178272][    C1]  tcp_rcv_established+0x9f7/0x22b0
[  860.178332][    C1]  tcp_v6_do_rcv+0x4a9/0x12d0
[  860.178354][    C1]  tcp_v6_rcv+0x36dc/0x4470
[  860.178430][    C1]  ip6_protocol_deliver_rcu+0x9a5/0x1310
[  860.178472][    C1]  ip6_input+0x10b/0x190
[  860.178488][    C1]  ip_sabotage_in+0x1a1/0x220
[  860.178520][    C1]  nf_hook_slow+0xb2/0x1f0
[  860.178539][    C1]  nf_hook+0x235/0x3a0
[  860.178621][    C1]  ipv6_rcv+0x87/0xd0
[  860.178638][    C1]  __netif_receive_skb+0x1d1/0x500
[  860.178711][    C1]  netif_receive_skb_internal+0x108/0x360
[  860.178781][    C1]  netif_receive_skb+0x19/0x30
[  860.178796][    C1]  br_handle_frame_finish+0x139b/0x1940
[  860.178945][    C1]  br_nf_hook_thresh+0x3db/0x4f0
[  860.179004][    C1]  br_nf_pre_routing_finish_ipv6+0x942/0xbc0
[  860.179042][    C1]  br_nf_pre_routing_ipv6+0x294/0x340
[  860.179074][    C1]  br_handle_frame+0x875/0x1050
[  860.179163][    C1]  __netif_receive_skb_core+0x14d8/0x3d10
[  860.179255][    C1]  __netif_receive_skb+0x120/0x500
[  860.179350][    C1]  process_backlog+0x518/0x9a0
[  860.179436][    C1]  __napi_poll+0xba/0x4f0
[  860.179453][    C1]  net_rx_action+0x61c/0xf30
[  860.179512][    C1]  __do_softirq+0x392/0x7a3
[  860.179563][    C1]  run_ksoftirqd+0xc1/0x120
[  860.179620][    C1]  smpboot_thread_fn+0x533/0x9d0
[  860.179691][    C1]  kthread+0x453/0x480
[  860.179734][    C1]  ret_from_fork+0x1f/0x30
