==================================================================
BUG: KASAN: slab-use-after-free in lbmIODone+0x1312/0x16c0
Read of size 4 at addr ffff888113032a08 by task syz-executor/19565

CPU: 0 UID: 0 PID: 19565 Comm: syz-executor Not tainted syzkaller #0 PREEMPT_{RT,(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+0xe8/0x150
 print_address_description+0x55/0x1e0
 print_report+0x58/0x70
 kasan_report+0x117/0x150
 lbmIODone+0x1312/0x16c0
 blk_update_request+0x57e/0xe60
 blk_mq_end_request+0x3e/0x70
 blk_done_softirq+0x10a/0x160
 handle_softirqs+0x1de/0x6d0
 __local_bh_enable_ip+0x170/0x2b0
 dev_deactivate_many+0x72e/0xd40
 __dev_close_many+0x180/0x6e0
 netif_close_many+0x225/0x420
 unregister_netdevice_many_notify+0x825/0x22b0
 unregister_netdevice_queue+0x31f/0x360
 nsim_destroy+0x277/0x7f0
 __nsim_dev_port_del+0x14f/0x200
 nsim_dev_reload_destroy+0x288/0x490
 nsim_drv_remove+0x58/0x160
 device_release_driver_internal+0x46f/0x870
 bus_remove_device+0x45a/0x570
 device_del+0x52b/0x900
 device_unregister+0x21/0xf0
 del_device_store+0x2b0/0x370
 kernfs_fop_write_iter+0x3b0/0x540
 vfs_write+0x629/0xba0
 ksys_write+0x156/0x270
 do_syscall_64+0x15f/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9d6d1fd60e
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 <c3> 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007ffc37650628 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000555566bb3500 RCX: 00007f9d6d1fd60e
RDX: 0000000000000001 RSI: 00007ffc376506b0 RDI: 0000000000000005
RBP: 00007f9d6d2d35ec R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffc376506b0 R14: 00007f9d6dfe4620 R15: 0000000000000003
 </TASK>

Allocated by task 19744:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_cache_noprof+0x3a6/0x690
 lmLogInit+0x3e5/0x1a00
 lmLogOpen+0x4e1/0xfa0
 jfs_mount_rw+0xee/0x670
 jfs_fill_super+0x754/0xd80
 get_tree_bdev_flags+0x431/0x4f0
 vfs_get_tree+0x92/0x2a0
 do_new_mount+0x341/0xd30
 __se_sys_mount+0x31d/0x420
 do_syscall_64+0x15f/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 17897:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5c/0x80
 kfree+0x1c5/0x6c0
 lmLogShutdown+0x456/0x850
 lmLogClose+0x28a/0x520
 jfs_umount+0x2fb/0x3d0
 jfs_put_super+0x8c/0x190
 generic_shutdown_super+0x13d/0x2d0
 kill_block_super+0x44/0x90
 deactivate_locked_super+0xbc/0x130
 cleanup_mnt+0x437/0x4d0
 task_work_run+0x1d9/0x270
 do_exit+0x70f/0x22c0
 do_group_exit+0x21b/0x2d0
 __x64_sys_exit_group+0x3f/0x40
 x64_sys_call+0x221a/0x2240
 do_syscall_64+0x15f/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

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

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x113032
head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x100000000000040(head|node=0|zone=2)
page_type: f5(slab)
raw: 0100000000000040 ffff888100041b40 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800100010 00000000f5000000 0000000000000000
head: 0100000000000040 ffff888100041b40 dead000000000100 dead000000000122
head: 0000000000000000 0000000800100010 00000000f5000000 0000000000000000
head: 0100000000000001 ffffffffffffff81 00000000ffffffff 00000000ffffffff
head: 0000000000000000 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 5765, tgid 5765 (syz-executor), ts 93642713344, free_ts 93592601945
 post_alloc_hook+0x1f9/0x250
 get_page_from_freelist+0x27d6/0x2850
 __alloc_frozen_pages_noprof+0x18d/0x380
 allocate_slab+0x74/0x5e0
 refill_objects+0x33c/0x3d0
 __pcs_replace_empty_main+0x373/0x720
 __kmalloc_cache_noprof+0x44e/0x690
 kset_create_and_add+0x5a/0x180
 netdev_register_kobject+0x1a2/0x310
 register_netdevice+0x14b6/0x1f10
 tun_set_iff+0x847/0xf00
 __tun_chr_ioctl+0x7cb/0x1e30
 __se_sys_ioctl+0xff/0x170
 do_syscall_64+0x15f/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 5597 tgid 5597 stack trace:
 __free_frozen_pages+0x1075/0x11b0
 __slab_free+0x252/0x2a0
 qlist_free_all+0x99/0x100
 kasan_quarantine_reduce+0x148/0x160
 __kasan_slab_alloc+0x22/0x80
 kmem_cache_alloc_noprof+0x33b/0x680
 do_getname+0x2e/0x250
 do_sys_openat2+0xca/0x200
 __x64_sys_openat+0x138/0x170
 do_syscall_64+0x15f/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff888113032900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff888113032980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888113032a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                      ^
 ffff888113032a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888113032b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
