loop0: detected capacity change from 0 to 32768 ======================================================= WARNING: The mand mount option has been deprecated and and is ignored by this kernel. Remove the mand option from the mount to silence this warning. ======================================================= lbmIODone: I/O error in JFS log ================================================================== BUG: KASAN: slab-use-after-free in lbmLogShutdown fs/jfs/jfs_logmgr.c:1860 [inline] BUG: KASAN: slab-use-after-free in lmLogInit+0x111a/0x1a00 fs/jfs/jfs_logmgr.c:1413 Read of size 8 at addr ffff888033c2f018 by task syz.0.0/5333 CPU: 0 UID: 0 PID: 5333 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 lbmLogShutdown fs/jfs/jfs_logmgr.c:1860 [inline] lmLogInit+0x111a/0x1a00 fs/jfs/jfs_logmgr.c:1413 open_inline_log fs/jfs/jfs_logmgr.c:1173 [inline] lmLogOpen+0x4e1/0xfa0 fs/jfs/jfs_logmgr.c:1067 jfs_mount_rw+0xee/0x670 fs/jfs/jfs_mount.c:257 jfs_fill_super+0x754/0xd80 fs/jfs/super.c:532 get_tree_bdev_flags+0x431/0x4f0 fs/super.c:1694 vfs_get_tree+0x92/0x2a0 fs/super.c:1754 fc_mount fs/namespace.c:1193 [inline] do_new_mount_fc fs/namespace.c:3758 [inline] do_new_mount+0x341/0xd30 fs/namespace.c:3834 do_mount fs/namespace.c:4167 [inline] __do_sys_mount fs/namespace.c:4383 [inline] __se_sys_mount+0x31d/0x420 fs/namespace.c:4360 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f597b39e04a Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f597c283e18 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f597c283ea0 RCX: 00007f597b39e04a RDX: 0000200000000000 RSI: 00002000000004c0 RDI: 00007f597c283e60 RBP: 0000200000000000 R08: 00007f597c283ea0 R09: 00000000020108c0 R10: 00000000020108c0 R11: 0000000000000246 R12: 00002000000004c0 R13: 00007f597c283e60 R14: 000000000000619d R15: 00002000000007c0 Allocated by task 5333: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __kmalloc_cache_noprof+0x31c/0x660 mm/slub.c:5419 kmalloc_noprof include/linux/slab.h:950 [inline] lbmLogInit fs/jfs/jfs_logmgr.c:1819 [inline] lmLogInit+0x3d5/0x1a00 fs/jfs/jfs_logmgr.c:1267 open_inline_log fs/jfs/jfs_logmgr.c:1173 [inline] lmLogOpen+0x4e1/0xfa0 fs/jfs/jfs_logmgr.c:1067 jfs_mount_rw+0xee/0x670 fs/jfs/jfs_mount.c:257 jfs_fill_super+0x754/0xd80 fs/jfs/super.c:532 get_tree_bdev_flags+0x431/0x4f0 fs/super.c:1694 vfs_get_tree+0x92/0x2a0 fs/super.c:1754 fc_mount fs/namespace.c:1193 [inline] do_new_mount_fc fs/namespace.c:3758 [inline] do_new_mount+0x341/0xd30 fs/namespace.c:3834 do_mount fs/namespace.c:4167 [inline] __do_sys_mount fs/namespace.c:4383 [inline] __se_sys_mount+0x31d/0x420 fs/namespace.c:4360 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 5333: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2689 [inline] slab_free mm/slub.c:6250 [inline] kfree+0x1c5/0x640 mm/slub.c:6565 lbmLogShutdown fs/jfs/jfs_logmgr.c:1862 [inline] lmLogInit+0x1148/0x1a00 fs/jfs/jfs_logmgr.c:1413 open_inline_log fs/jfs/jfs_logmgr.c:1173 [inline] lmLogOpen+0x4e1/0xfa0 fs/jfs/jfs_logmgr.c:1067 jfs_mount_rw+0xee/0x670 fs/jfs/jfs_mount.c:257 jfs_fill_super+0x754/0xd80 fs/jfs/super.c:532 get_tree_bdev_flags+0x431/0x4f0 fs/super.c:1694 vfs_get_tree+0x92/0x2a0 fs/super.c:1754 fc_mount fs/namespace.c:1193 [inline] do_new_mount_fc fs/namespace.c:3758 [inline] do_new_mount+0x341/0xd30 fs/namespace.c:3834 do_mount fs/namespace.c:4167 [inline] __do_sys_mount fs/namespace.c:4383 [inline] __se_sys_mount+0x31d/0x420 fs/namespace.c:4360 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888033c2f000 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 24 bytes inside of freed 192-byte region [ffff888033c2f000, ffff888033c2f0c0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x33c2f flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 04fff00000000000 ffff88801ac413c0 dead000000000100 dead000000000122 raw: 0000000000000000 0000000800100010 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 9, tgid 9 (kworker/0:0), ts 18359256251, free_ts 18358823353 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1858 prep_new_page mm/page_alloc.c:1866 [inline] get_page_from_freelist+0x24ba/0x2540 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5226 alloc_slab_page mm/slub.c:3278 [inline] allocate_slab+0x77/0x660 mm/slub.c:3467 new_slab mm/slub.c:3525 [inline] refill_objects+0x339/0x3d0 mm/slub.c:7255 refill_sheaf mm/slub.c:2816 [inline] __pcs_replace_empty_main+0x321/0x720 mm/slub.c:4651 alloc_from_pcs mm/slub.c:4749 [inline] slab_alloc_node mm/slub.c:4883 [inline] __do_kmalloc_node mm/slub.c:5294 [inline] __kmalloc_noprof+0x474/0x760 mm/slub.c:5307 kmalloc_noprof include/linux/slab.h:954 [inline] virtio_gpu_array_alloc+0x26/0xc0 drivers/gpu/drm/virtio/virtgpu_gem.c:170 virtio_gpu_update_dumb_bo drivers/gpu/drm/virtio/virtgpu_plane.c:171 [inline] virtio_gpu_primary_plane_update+0x38d/0x13a0 drivers/gpu/drm/virtio/virtgpu_plane.c:265 drm_atomic_helper_commit_planes+0x60f/0xec0 drivers/gpu/drm/drm_atomic_helper.c:3038 drm_atomic_helper_commit_tail+0x5f/0x500 drivers/gpu/drm/drm_atomic_helper.c:1989 commit_tail+0x29a/0x3a0 drivers/gpu/drm/drm_atomic_helper.c:2074 drm_atomic_helper_commit+0xa6e/0xb10 drivers/gpu/drm/drm_atomic_helper.c:2312 drm_atomic_commit+0x246/0x2b0 drivers/gpu/drm/drm_atomic.c:1789 drm_atomic_helper_dirtyfb+0xdec/0xf80 drivers/gpu/drm/drm_damage_helper.c:183 drm_fbdev_shmem_helper_fb_dirty+0x160/0x2d0 drivers/gpu/drm/drm_fbdev_shmem.c:117 page last free pid 112 tgid 112 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1402 [inline] __free_frozen_pages+0xbc7/0xd30 mm/page_alloc.c:2943 bio_free_pages+0x17a/0x240 block/bio.c:1622 bio_copy_kern_endio block/blk-map.c:336 [inline] bio_copy_kern_endio_read+0x2c6/0x300 block/blk-map.c:351 blk_update_request+0x57e/0xe60 block/blk-mq.c:1016 scsi_end_request+0x7c/0x820 drivers/scsi/scsi_lib.c:648 scsi_io_completion+0x131/0x360 drivers/scsi/scsi_lib.c:1089 ata_scsi_qc_done drivers/ata/libata-scsi.c:1662 [inline] atapi_qc_complete+0x2e6/0x5d0 drivers/ata/libata-scsi.c:-1 ata_qc_complete_multiple+0x1ae/0x280 drivers/ata/libata-sata.c:789 ahci_qc_complete drivers/ata/libahci.c:1887 [inline] ahci_handle_port_interrupt+0x3d5/0x610 drivers/ata/libahci.c:1954 ahci_port_intr drivers/ata/libahci.c:1965 [inline] ahci_handle_port_intr+0x19f/0x2e0 drivers/ata/libahci.c:1996 ahci_single_level_irq_intr+0x9b/0xe0 drivers/ata/libahci.c:2030 __handle_irq_event_percpu+0x216/0x9a0 kernel/irq/handle.c:209 handle_irq_event_percpu kernel/irq/handle.c:246 [inline] handle_irq_event+0x8b/0x1e0 kernel/irq/handle.c:263 handle_edge_irq+0x23b/0x9f0 kernel/irq/chip.c:856 generic_handle_irq_desc include/linux/irqdesc.h:186 [inline] handle_irq arch/x86/kernel/irq.c:262 [inline] call_irq_handler arch/x86/kernel/irq.c:-1 [inline] __common_interrupt+0x141/0x1f0 arch/x86/kernel/irq.c:333 common_interrupt+0xb6/0xe0 arch/x86/kernel/irq.c:326 Memory state around the buggy address: ffff888033c2ef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888033c2ef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888033c2f000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888033c2f080: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff888033c2f100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================