netlink: 20 bytes leftover after parsing attributes in process `syz-executor.1'.
================================
WARNING: inconsistent lock state
4.14.307-syzkaller #0 Not tainted
--------------------------------
inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage.
kworker/u4:2/8278 [HC0[0]:SC1[1]:HE1:SE0] takes:
 (&(&local->client_conns_lock)->rlock){+.?.}, at: [<ffffffff867de3a1>] spin_lock include/linux/spinlock.h:317 [inline]
 (&(&local->client_conns_lock)->rlock){+.?.}, at: [<ffffffff867de3a1>] rxrpc_put_one_client_conn net/rxrpc/conn_client.c:905 [inline]
 (&(&local->client_conns_lock)->rlock){+.?.}, at: [<ffffffff867de3a1>] rxrpc_put_client_conn+0x661/0xac0 net/rxrpc/conn_client.c:957
{SOFTIRQ-ON-W} state was registered at:
  lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998
  __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline]
  _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:152
  spin_lock include/linux/spinlock.h:317 [inline]
  rxrpc_get_client_conn net/rxrpc/conn_client.c:306 [inline]
  rxrpc_connect_call+0x2bb/0x3e10 net/rxrpc/conn_client.c:692
  rxrpc_new_client_call+0x8f4/0x1a10 net/rxrpc/call_object.c:276
  rxrpc_new_client_call_for_sendmsg net/rxrpc/sendmsg.c:531 [inline]
  rxrpc_do_sendmsg+0x8dc/0xfb0 net/rxrpc/sendmsg.c:583
  rxrpc_sendmsg+0x3cf/0x5f0 net/rxrpc/af_rxrpc.c:543
  sock_sendmsg_nosec net/socket.c:646 [inline]
  sock_sendmsg+0xb5/0x100 net/socket.c:656
  ___sys_sendmsg+0x6c8/0x800 net/socket.c:2062
  __sys_sendmsg+0xa3/0x120 net/socket.c:2096
  SYSC_sendmsg net/socket.c:2107 [inline]
  SyS_sendmsg+0x27/0x40 net/socket.c:2103
  do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
  entry_SYSCALL_64_after_hwframe+0x5e/0xd3
irq event stamp: 511550
hardirqs last  enabled at (511550): [<ffffffff8724fcb9>] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline]
hardirqs last  enabled at (511550): [<ffffffff8724fcb9>] _raw_spin_unlock_irqrestore+0x79/0xe0 kernel/locking/spinlock.c:192
hardirqs last disabled at (511549): [<ffffffff8724f946>] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline]
hardirqs last disabled at (511549): [<ffffffff8724f946>] _raw_spin_lock_irqsave+0x66/0xc0 kernel/locking/spinlock.c:160
softirqs last  enabled at (511458): [<ffffffff86ec03bc>] spin_unlock_bh include/linux/spinlock.h:362 [inline]
softirqs last  enabled at (511458): [<ffffffff86ec03bc>] batadv_nc_purge_paths+0x20c/0x300 net/batman-adv/network-coding.c:481
softirqs last disabled at (511461): [<ffffffff81322e63>] invoke_softirq kernel/softirq.c:368 [inline]
softirqs last disabled at (511461): [<ffffffff81322e63>] irq_exit+0x193/0x240 kernel/softirq.c:409

other info that might help us debug this:
 Possible unsafe locking scenario:

       CPU0
       ----
  lock(&(&local->client_conns_lock)->rlock);
  <Interrupt>
    lock(&(&local->client_conns_lock)->rlock);

 *** DEADLOCK ***

3 locks held by kworker/u4:2/8278:
 #0:  ("%s""bat_events"){+.+.}, at: [<ffffffff81366110>] process_one_work+0x6b0/0x14a0 kernel/workqueue.c:2088
 #1:  ((&(&bat_priv->nc.work)->work)){+.+.}, at: [<ffffffff81366146>] process_one_work+0x6e6/0x14a0 kernel/workqueue.c:2092
 #2:  (rcu_callback){....}, at: [<ffffffff8146ee4e>] __rcu_reclaim kernel/rcu/rcu.h:185 [inline]
 #2:  (rcu_callback){....}, at: [<ffffffff8146ee4e>] rcu_do_batch kernel/rcu/tree.c:2699 [inline]
 #2:  (rcu_callback){....}, at: [<ffffffff8146ee4e>] invoke_rcu_callbacks kernel/rcu/tree.c:2962 [inline]
 #2:  (rcu_callback){....}, at: [<ffffffff8146ee4e>] __rcu_process_callbacks kernel/rcu/tree.c:2929 [inline]
 #2:  (rcu_callback){....}, at: [<ffffffff8146ee4e>] rcu_process_callbacks+0x84e/0x1180 kernel/rcu/tree.c:2946

stack backtrace:
CPU: 0 PID: 8278 Comm: kworker/u4:2 Not tainted 4.14.307-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Workqueue: bat_events batadv_nc_worker
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 print_usage_bug.cold+0x42e/0x570 kernel/locking/lockdep.c:2589
 valid_state kernel/locking/lockdep.c:2602 [inline]
 mark_lock_irq kernel/locking/lockdep.c:2796 [inline]
 mark_lock+0xb4d/0x1050 kernel/locking/lockdep.c:3194
 mark_irqflags kernel/locking/lockdep.c:3072 [inline]
 __lock_acquire+0xc81/0x3f20 kernel/locking/lockdep.c:3448
 lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998
 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline]
 _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:152
 spin_lock include/linux/spinlock.h:317 [inline]
 rxrpc_put_one_client_conn net/rxrpc/conn_client.c:905 [inline]
 rxrpc_put_client_conn+0x661/0xac0 net/rxrpc/conn_client.c:957
 rxrpc_put_connection net/rxrpc/ar-internal.h:862 [inline]
 rxrpc_rcu_destroy_call+0x83/0x190 net/rxrpc/call_object.c:653
 __rcu_reclaim kernel/rcu/rcu.h:195 [inline]
 rcu_do_batch kernel/rcu/tree.c:2699 [inline]
 invoke_rcu_callbacks kernel/rcu/tree.c:2962 [inline]
 __rcu_process_callbacks kernel/rcu/tree.c:2929 [inline]
 rcu_process_callbacks+0x780/0x1180 kernel/rcu/tree.c:2946
 __do_softirq+0x24d/0x9ff kernel/softirq.c:288
 invoke_softirq kernel/softirq.c:368 [inline]
 irq_exit+0x193/0x240 kernel/softirq.c:409
 exiting_irq arch/x86/include/asm/apic.h:638 [inline]
 smp_apic_timer_interrupt+0x141/0x5e0 arch/x86/kernel/apic/apic.c:1106
 apic_timer_interrupt+0x93/0xa0 arch/x86/entry/entry_64.S:796
 </IRQ>
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:779 [inline]
RIP: 0010:lock_release+0x41e/0x870 kernel/locking/lockdep.c:4020
RSP: 0018:ffff88809146fbd8 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff10
RAX: 1ffffffff11e13d9 RBX: 1ffff1101228df7e RCX: 1ffff1101228c11b
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: 0000000000000282
RBP: ffff888091460000 R08: 0000000000000000 R09: 0000000000000002
R10: 0000000000000000 R11: ffff888091460000 R12: 8d47befa4762ed7b
R13: 0000000000000003 R14: ffff888091460000 R15: 0000000000000003
 rcu_lock_release include/linux/rcupdate.h:247 [inline]
 rcu_read_unlock include/linux/rcupdate.h:685 [inline]
 batadv_nc_process_nc_paths.part.0+0x22e/0x350 net/batman-adv/network-coding.c:709
 batadv_nc_process_nc_paths net/batman-adv/network-coding.c:689 [inline]
 batadv_nc_worker+0x8b8/0xc50 net/batman-adv/network-coding.c:737
 process_one_work+0x793/0x14a0 kernel/workqueue.c:2117
 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2251
 kthread+0x30d/0x420 kernel/kthread.c:232
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:406
misc userio: Invalid payload size
ax25_connect(): syz-executor.3 uses autobind, please contact jreuter@yaina.de
hrtimer: interrupt took 25372 ns
netlink: 36 bytes leftover after parsing attributes in process `syz-executor.1'.
netlink: 12 bytes leftover after parsing attributes in process `syz-executor.0'.
==================================================================
BUG: KASAN: slab-out-of-bounds in tipc_nametbl_lookup_dst_nodes+0x4ad/0x4c0 net/tipc/name_table.c:670
Read of size 4 at addr ffff88809f2f02d0 by task syz-executor.2/10000

CPU: 0 PID: 10000 Comm: syz-executor.2 Not tainted 4.14.307-syzkaller #0
netlink: 12 bytes leftover after parsing attributes in process `syz-executor.5'.
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 print_address_description.cold+0x54/0x1d3 mm/kasan/report.c:251
netlink: 12 bytes leftover after parsing attributes in process `syz-executor.0'.
 kasan_report_error.cold+0x8a/0x191 mm/kasan/report.c:350
 kasan_report mm/kasan/report.c:408 [inline]
 __asan_report_load4_noabort+0x68/0x70 mm/kasan/report.c:428
 tipc_nametbl_lookup_dst_nodes+0x4ad/0x4c0 net/tipc/name_table.c:670
 tipc_sendmcast+0x51a/0xac0 net/tipc/socket.c:768
 __tipc_sendmsg+0xbab/0xf90 net/tipc/socket.c:975
 tipc_sendmsg+0x4c/0x70 net/tipc/socket.c:923
 sock_sendmsg_nosec net/socket.c:646 [inline]
 sock_sendmsg+0xb5/0x100 net/socket.c:656
 ___sys_sendmsg+0x6c8/0x800 net/socket.c:2062
 __sys_sendmsg+0xa3/0x120 net/socket.c:2096
 SYSC_sendmsg net/socket.c:2107 [inline]
 SyS_sendmsg+0x27/0x40 net/socket.c:2103
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7fcc918140f9
RSP: 002b:00007fcc8fd86168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fcc91933f80 RCX: 00007fcc918140f9
RDX: 0000000000000000 RSI: 0000000020000540 RDI: 0000000000000003
RBP: 00007fcc9186fae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd0d5be31f R14: 00007fcc8fd86300 R15: 0000000000022000

Allocated by task 8015:
 save_stack mm/kasan/kasan.c:447 [inline]
 set_track mm/kasan/kasan.c:459 [inline]
 kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:551
 __do_kmalloc mm/slab.c:3720 [inline]
 __kmalloc+0x15a/0x400 mm/slab.c:3729
 tipc_nameseq_create+0x53/0x290 net/tipc/name_table.c:152
 tipc_nametbl_insert_publ+0xb37/0x14e0 net/tipc/name_table.c:476
 tipc_nametbl_publish+0x211/0x3f0 net/tipc/name_table.c:701
 tipc_sk_publish net/tipc/socket.c:2206 [inline]
 tipc_bind+0x2c4/0x600 net/tipc/socket.c:630
 tipc_create_listen_sock net/tipc/server.c:338 [inline]
 tipc_open_listening_sock net/tipc/server.c:396 [inline]
 tipc_server_start+0x31f/0x880 net/tipc/server.c:611
 tipc_topsrv_start net/tipc/subscr.c:382 [inline]
 tipc_topsrv_init_net+0x53b/0x730 net/tipc/subscr.c:397
 ops_init+0xaa/0x3e0 net/core/net_namespace.c:118
 setup_net+0x22f/0x530 net/core/net_namespace.c:298
 copy_net_ns+0x19b/0x440 net/core/net_namespace.c:422
 create_new_namespaces+0x375/0x720 kernel/nsproxy.c:107
 unshare_nsproxy_namespaces+0xa1/0x1d0 kernel/nsproxy.c:206
 SYSC_unshare kernel/fork.c:2413 [inline]
 SyS_unshare+0x308/0x7f0 kernel/fork.c:2363
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3

Freed by task 6032:
 save_stack mm/kasan/kasan.c:447 [inline]
 set_track mm/kasan/kasan.c:459 [inline]
 kasan_slab_free+0xc3/0x1a0 mm/kasan/kasan.c:524
 __cache_free mm/slab.c:3496 [inline]
 kfree+0xc9/0x250 mm/slab.c:3815
 aa_free_task_context+0xda/0x130 security/apparmor/context.c:54
 apparmor_cred_free+0x34/0x70 security/apparmor/lsm.c:58
 security_cred_free+0x71/0xb0 security/security.c:1003
 put_cred_rcu+0xe3/0x300 kernel/cred.c:117
 __rcu_reclaim kernel/rcu/rcu.h:195 [inline]
 rcu_do_batch kernel/rcu/tree.c:2699 [inline]
 invoke_rcu_callbacks kernel/rcu/tree.c:2962 [inline]
 __rcu_process_callbacks kernel/rcu/tree.c:2929 [inline]
 rcu_process_callbacks+0x780/0x1180 kernel/rcu/tree.c:2946
 __do_softirq+0x24d/0x9ff kernel/softirq.c:288

The buggy address belongs to the object at ffff88809f2f02c0
 which belongs to the cache kmalloc-32 of size 32
The buggy address is located 16 bytes inside of
 32-byte region [ffff88809f2f02c0, ffff88809f2f02e0)
The buggy address belongs to the page:
page:ffffea00027cbc00 count:1 mapcount:0 mapping:ffff88809f2f0000 index:0xffff88809f2f0fc1
flags: 0xfff00000000100(slab)
raw: 00fff00000000100 ffff88809f2f0000 ffff88809f2f0fc1 000000010000003f
raw: ffffea000277b960 ffffea0002a26f20 ffff88813fe741c0 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff88809f2f0180: 02 fc fc fc fc fc fc fc 00 fc fc fc fc fc fc fc
 ffff88809f2f0200: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc
>ffff88809f2f0280: fb fb fb fb fc fc fc fc 00 00 fc fc fc fc fc fc
                                                 ^
 ffff88809f2f0300: 00 00 00 fc fc fc fc fc fb fb fb fb fc fc fc fc
 ffff88809f2f0380: fb fb fb fb fc fc fc fc 05 fc fc fc fc fc fc fc
==================================================================