==================================================================
BUG: KASAN: slab-use-after-free in ax25_heartbeat_expiry+0x115/0x140
Read of size 4 at addr ffff88811dc58a60 by task pool_workqueue_/3

CPU: 1 UID: 0 PID: 3 Comm: pool_workqueue_ 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:
 <IRQ>
 dump_stack_lvl+0xe8/0x150
 print_report+0xba/0x230
 kasan_report+0x117/0x150
 ax25_heartbeat_expiry+0x115/0x140
 call_timer_fn+0x192/0x5a0
 __run_timer_base+0x652/0x8b0
 run_timer_softirq+0xb7/0x170
 handle_softirqs+0x22a/0x7c0
 __irq_exit_rcu+0x5f/0x150
 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+0x48/0xa0
Code: 49 be 00 00 00 00 00 fc ff df eb 09 48 f7 03 10 00 00 00 74 53 bf 01 00 00 00 e8 f3 fb 16 f6 e8 be 9b 4f f6 fb bf 01 00 00 00 <e8> e3 a9 ff ff 9c 58 fa a9 00 02 00 00 74 05 e8 44 9d 4f f6 bf 01
RSP: 0018:ffffc90000087ae0 EFLAGS: 00000202
RAX: 00000000000072b5 RBX: 0000000000000000 RCX: 0000000000000001
RDX: 0000000000000000 RSI: ffffffff8dad1f47 RDI: 0000000000000001
RBP: 0000000000000000 R08: ffffffff8fcee577 R09: 1ffffffff1f9dcae
R10: dffffc0000000000 R11: fffffbfff1f9dcaf R12: 0000000000000000
R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000
 irqentry_exit+0x597/0x620
 asm_sysvec_call_function_single+0x1a/0x20
RIP: 0010:lockdep_unregister_key+0x2d5/0x350
Code: 31 08 09 00 89 c6 48 c7 c7 70 f8 d7 95 e8 f3 cc dc 09 90 e9 65 fe ff ff e8 98 29 da 09 41 f7 c7 00 02 00 00 74 b3 fb 40 84 ed <75> b2 eb c3 90 0f 0b 90 e9 26 ff ff ff 90 0f 0b 90 e9 2e ff ff ff
RSP: 0018:ffffc90000087c08 EFLAGS: 00000246
RAX: 0000000000000046 RBX: ffff888110847938 RCX: 0000000000000046
RDX: ffffffff939373d8 RSI: ffffffff8daeeb94 RDI: ffffffff8be73880
RBP: ffff888160a93a00 R08: ffffffff81ac9fe8 R09: ffffffff8e35a360
R10: dffffc0000000000 R11: fffffbfff1f9dcaf R12: 0000000000000000
R13: ffff888110847939 R14: 0000000000001000 R15: 0000000000000a83
 pwq_release_workfn+0x6d5/0x870
 kthread_worker_fn+0x4ee/0xb00
 kthread+0x726/0x8b0
 ret_from_fork+0x51b/0xa40
 ret_from_fork_asm+0x1a/0x30
 </TASK>

Allocated by task 18624:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_cache_noprof+0x3d1/0x6e0
 ax25_dev_device_up+0x54/0x5f0
 ax25_device_event+0x124/0x620
 notifier_call_chain+0x19d/0x3a0
 __dev_notify_flags+0x1a9/0x310
 netif_change_flags+0xe8/0x1a0
 dev_change_flags+0x130/0x260
 dev_ioctl+0x7b4/0x1150
 sock_do_ioctl+0x23e/0x320
 sock_ioctl+0x5c6/0x7f0
 __se_sys_ioctl+0xfc/0x170
 do_syscall_64+0xe2/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 3941:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5c/0x80
 kmem_cache_free_bulk+0x3f9/0xd90
 kvfree_rcu_bulk+0xe5/0x1f0
 kfree_rcu_work+0xed/0x170
 process_scheduled_works+0xaec/0x17a0
 worker_thread+0x89f/0xd90
 kthread+0x726/0x8b0
 ret_from_fork+0x51b/0xa40
 ret_from_fork_asm+0x1a/0x30

Last potentially related work creation:
 kasan_save_stack+0x3e/0x60
 kasan_record_aux_stack+0xbd/0xd0
 kvfree_call_rcu+0x106/0x440
 ax25_device_event+0x56c/0x620
 notifier_call_chain+0x19d/0x3a0
 __dev_notify_flags+0x16d/0x310
 netif_change_flags+0xe8/0x1a0
 dev_change_flags+0x130/0x260
 dev_ioctl+0x7b4/0x1150
 sock_do_ioctl+0x23e/0x320
 sock_ioctl+0x5c6/0x7f0
 __se_sys_ioctl+0xfc/0x170
 do_syscall_64+0xe2/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff88811dc58a00
 which belongs to the cache kmalloc-256 of size 256
The buggy address is located 96 bytes inside of
 freed 256-byte region [ffff88811dc58a00, ffff88811dc58b00)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11dc58
head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x17ff00000000040(head|node=0|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 017ff00000000040 ffff888100041b40 ffffea0004562b00 dead000000000004
raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
head: 017ff00000000040 ffff888100041b40 ffffea0004562b00 dead000000000004
head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
head: 017ff00000000001 ffffea0004771601 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 1, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5837, tgid 5837 (syz-executor), ts 63425128711, free_ts 0
 post_alloc_hook+0x228/0x280
 get_page_from_freelist+0x24dc/0x2580
 __alloc_frozen_pages_noprof+0x18d/0x380
 alloc_pages_mpol+0x232/0x4a0
 allocate_slab+0x86/0x3a0
 ___slab_alloc+0xd82/0x1760
 __slab_alloc+0x65/0x100
 __kmalloc_noprof+0x46c/0x7e0
 fib_create_info+0x171d/0x31f0
 fib_table_insert+0xc8/0x1b50
 fib_magic+0x2e4/0x3d0
 fib_add_ifaddr+0x3fb/0x5f0
 fib_netdev_event+0x382/0x490
 notifier_call_chain+0x19d/0x3a0
 __dev_notify_flags+0x1a9/0x310
 netif_change_flags+0xe8/0x1a0
page_owner free stack trace missing

Memory state around the buggy address:
 ffff88811dc58900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff88811dc58980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88811dc58a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                                       ^
 ffff88811dc58a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88811dc58b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
