netlink: 'syz.0.612': attribute type 1 has an invalid length. netlink: 199820 bytes leftover after parsing attributes in process `syz.0.612'. 9p: Bad value for 'version' ================================================================== BUG: KASAN: slab-out-of-bounds in soft_cursor+0x458/0xa10 drivers/video/fbdev/core/softcursor.c:70 Read of size 48 at addr ffff8880373b2fa0 by task syz.0.612/7623 CPU: 1 UID: 0 PID: 7623 Comm: syz.0.612 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x13d/0x4b0 mm/kasan/report.c:482 kasan_report+0xdf/0x1c0 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:186 [inline] kasan_check_range+0x10f/0x1e0 mm/kasan/generic.c:200 __asan_memcpy+0x23/0x60 mm/kasan/shadow.c:105 soft_cursor+0x458/0xa10 drivers/video/fbdev/core/softcursor.c:70 cw_cursor+0xd70/0x15b0 drivers/video/fbdev/core/fbcon_cw.c:324 fbcon_cursor+0x43c/0x5e0 drivers/video/fbdev/core/fbcon.c:1434 hide_cursor+0x87/0x230 drivers/tty/vt/vt.c:883 redraw_screen+0x5d4/0x760 drivers/tty/vt/vt.c:985 vc_do_resize+0xc3d/0xeb0 drivers/tty/vt/vt.c:1311 vc_resize include/linux/vt_kern.h:49 [inline] fbcon_do_set_font+0x443/0x8c0 drivers/video/fbdev/core/fbcon.c:2442 fbcon_set_font+0x4be/0x730 drivers/video/fbdev/core/fbcon.c:2525 con_font_set drivers/tty/vt/vt.c:4995 [inline] con_font_op+0x991/0x1020 drivers/tty/vt/vt.c:5036 vt_k_ioctl drivers/tty/vt/vt_ioctl.c:474 [inline] vt_ioctl+0xe00/0x3170 drivers/tty/vt/vt_ioctl.c:747 tty_ioctl+0x26a/0x1800 drivers/tty/tty_io.c:2782 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __x64_sys_ioctl+0x18e/0x210 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f48ca79e159 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f48cb5ce028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f48caa25fa0 RCX: 00007f48ca79e159 RDX: 0000200000000040 RSI: 0000000000004b72 RDI: 0000000000000007 RBP: 00007f48ca83506b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f48caa26038 R14: 00007f48caa25fa0 R15: 00007ffdf1b5cd98 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x2c pfn:0x373b0 head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f8(unknown) raw: 00fff00000000040 0000000000000000 dead000000000122 0000000000000000 raw: 000000000000002c 0000000000000000 00000000f8000000 0000000000000000 head: 00fff00000000040 0000000000000000 dead000000000122 0000000000000000 head: 000000000000002c 0000000000000000 00000000f8000000 0000000000000000 head: 00fff00000000002 ffffffffffffff01 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 0x40cc0(GFP_KERNEL|__GFP_COMP), pid 6477, tgid 6476 (syz.0.223), ts 68026966635 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1871 prep_new_page mm/page_alloc.c:1879 [inline] get_page_from_freelist+0x110d/0x35d0 mm/page_alloc.c:3943 __alloc_frozen_pages_noprof+0x2eb/0x3300 mm/page_alloc.c:5436 alloc_pages_mpol+0x201/0x550 mm/mempolicy.c:2486 ___kmalloc_large_node+0xe8/0x130 mm/slub.c:5353 __kmalloc_large_node_noprof+0x1c/0x70 mm/slub.c:5385 __do_kmalloc_node mm/slub.c:5402 [inline] __kmalloc_noprof+0x5a8/0x840 mm/slub.c:5439 _kmalloc_noprof include/linux/slab.h:995 [inline] _kmalloc_array_noprof include/linux/slab.h:1211 [inline] font_data_rotate+0x353/0x3b0 lib/fonts/font_rotate.c:231 fbcon_rotate_font+0x2bf/0x510 drivers/video/fbdev/core/fbcon_rotate.c:33 fbcon_modechanged+0x218/0x7f0 drivers/video/fbdev/core/fbcon.c:2671 fbcon_rotate drivers/video/fbdev/core/fbcon.c:230 [inline] rotate_store+0x261/0x300 drivers/video/fbdev/core/fbcon.c:3203 dev_attr_store+0x58/0x80 drivers/base/core.c:2509 sysfs_kf_write+0xf2/0x150 fs/sysfs/file.c:145 kernfs_fop_write_iter+0x3e0/0x5f0 fs/kernfs/file.c:345 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6af/0x1050 fs/read_write.c:687 ksys_write+0x12a/0x250 fs/read_write.c:739 page last free pid 6425 tgid 6425 ts 66364370634 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1418 [inline] free_unref_folios+0xa4a/0x1790 mm/page_alloc.c:3022 folios_put_refs+0x585/0xaa0 mm/folio.c:1036 folio_batch_release include/linux/folio_batch.h:101 [inline] truncate_inode_pages_range+0x30c/0x1050 mm/truncate.c:408 kill_bdev block/bdev.c:90 [inline] blkdev_flush_mapping+0xfb/0x2e0 block/bdev.c:757 blkdev_put_whole+0xc9/0xf0 block/bdev.c:764 bdev_release+0x47f/0x6d0 block/bdev.c:1189 blkdev_release+0x15/0x20 block/fops.c:687 __fput+0x3ff/0xb50 fs/file_table.c:512 task_work_run+0x150/0x240 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:70 [inline] exit_to_user_mode_loop+0x1d8/0x700 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:343 [inline] do_syscall_64+0x661/0x790 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff8880373b2e80: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ffff8880373b2f00: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe >ffff8880373b2f80: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ^ ffff8880373b3000: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ffff8880373b3080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ==================================================================