==================================================================
BUG: KASAN: slab-use-after-free in rose_timer_expiry+0x471/0x4b0
Read of size 2 at addr ffff88802d14342a by task syz.2.4536/20763

CPU: 0 UID: 0 PID: 20763 Comm: syz.2.4536 Not tainted 6.16.0-rc6-syzkaller-00128-g81e0db8e8398 #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+0x189/0x250
 print_report+0xca/0x230
 kasan_report+0x118/0x150
 rose_timer_expiry+0x471/0x4b0
 call_timer_fn+0x17e/0x5f0
 __run_timer_base+0x61a/0x860
 run_timer_softirq+0xb7/0x180
 handle_softirqs+0x286/0x870
 __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:des3_ede_decrypt+0xc4a/0x20c0
Code: b6 04 10 84 c0 0f 85 31 04 00 00 41 c1 ee 18 41 83 e6 3f 41 8b 2c 24 4e 8d 24 b5 a0 62 e2 8b 4c 89 e0 48 c1 e8 03 0f b6 04 10 <84> c0 0f 85 69 04 00 00 89 d8 c1 e8 10 45 8b 34 24 83 e0 3f 4c 8d
RSP: 0018:ffffc90002b0f648 EFLAGS: 00000a03
RAX: 0000000000000000 RBX: 000000002d172064 RCX: 0000000004000802
RDX: dffffc0000000000 RSI: ffff88810a996828 RDI: 0000000000400000
RBP: 0000000000802000 R08: 00000000204126f0 R09: 0000000029208d6d
R10: ffff88810a9968d4 R11: 00000000000000ac R12: ffffffff8be262bc
R13: 0000000008000208 R14: 0000000000000007 R15: 0000000010041040
 crypto_ecb_decrypt2+0xda/0x150
 crypto_lskcipher_crypt_sg+0x2ec/0x410
 skcipher_recvmsg+0xb11/0x11c0
 sock_recvmsg+0x22c/0x270
 ____sys_recvmsg+0x1c9/0x460
 ___sys_recvmsg+0x1b5/0x510
 __x64_sys_recvmsg+0x198/0x260
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f280f18e9a9
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:00007f280ff9f038 EFLAGS: 00000246 ORIG_RAX: 000000000000002f
RAX: ffffffffffffffda RBX: 00007f280f3b6080 RCX: 00007f280f18e9a9
RDX: 0000000000000000 RSI: 00002000000005c0 RDI: 0000000000000008
RBP: 00007f280f210d69 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f280f3b6080 R15: 00007ffd2a6d4b98
 </TASK>

Allocated by task 2:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_cache_noprof+0x230/0x3d0
 set_kthread_struct+0xbb/0x340
 copy_process+0x10b7/0x3b80
 kernel_clone+0x21e/0x870
 kernel_thread+0x10c/0x160
 kthreadd+0x575/0x770
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30

Freed by task 19448:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x62/0x70
 kfree+0x18e/0x440
 free_task+0xe7/0x160
 delayed_put_task_struct+0x11f/0x2f0
 rcu_core+0xca8/0x1710
 handle_softirqs+0x286/0x870
 __irq_exit_rcu+0xca/0x1f0
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 asm_sysvec_apic_timer_interrupt+0x1a/0x20

The buggy address belongs to the object at ffff88802d143400
 which belongs to the cache kmalloc-512 of size 512
The buggy address is located 42 bytes inside of
 freed 512-byte region [ffff88802d143400, ffff88802d143600)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802d143400 pfn:0x2d140
head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000240 ffff88801a441c80 ffffea0000bc5710 ffffea00009a4310
raw: ffff88802d143400 000000000010000b 00000000f5000000 0000000000000000
head: 00fff00000000240 ffff88801a441c80 ffffea0000bc5710 ffffea00009a4310
head: ffff88802d143400 000000000010000b 00000000f5000000 0000000000000000
head: 00fff00000000002 ffffea0000b45001 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5834, tgid 5834 (syz-executor), ts 54208487455, free_ts 0
 post_alloc_hook+0x240/0x2a0
 get_page_from_freelist+0x21e4/0x22c0
 __alloc_frozen_pages_noprof+0x181/0x370
 alloc_pages_mpol+0x232/0x4a0
 allocate_slab+0x8a/0x3b0
 ___slab_alloc+0xbfc/0x1480
 __kmalloc_cache_noprof+0x296/0x3d0
 device_add+0xbe/0xb50
 netdev_register_kobject+0x156/0x2f0
 register_netdevice+0x126c/0x1ae0
 veth_newlink+0x42f/0xa50
 rtnl_newlink_create+0x310/0xb00
 rtnl_newlink+0x16d6/0x1c70
 rtnetlink_rcv_msg+0x7cf/0xb70
 netlink_rcv_skb+0x208/0x470
 netlink_unicast+0x75c/0x8e0
page_owner free stack trace missing

Memory state around the buggy address:
 ffff88802d143300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff88802d143380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88802d143400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                  ^
 ffff88802d143480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88802d143500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
