================================================================== BUG: KASAN: slab-out-of-bounds in hex_string+0x389/0x500 lib/vsprintf.c:1137 Read of size 1 at addr ffff8880a30ae69b by task kworker/0:2/2661 CPU: 0 PID: 2661 Comm: kworker/0:2 Not tainted 5.6.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x128/0x182 lib/dump_stack.c:118 print_address_description.constprop.8.cold.10+0x9/0x317 mm/kasan/report.c:374 __kasan_report.cold.11+0x1c/0x34 mm/kasan/report.c:506 kasan_report+0xe/0x20 mm/kasan/common.c:641 hex_string+0x389/0x500 lib/vsprintf.c:1137 pointer+0x145/0x510 lib/vsprintf.c:2193 vsnprintf+0x3f7/0x1190 lib/vsprintf.c:2578 va_format.isra.10+0xf7/0x160 lib/vsprintf.c:1652 pointer+0x224/0x510 lib/vsprintf.c:2221 vsnprintf+0x3f7/0x1190 lib/vsprintf.c:2578 vscnprintf+0x9/0x30 lib/vsprintf.c:2677 vprintk_store+0x34/0x360 kernel/printk/printk.c:1917 vprintk_emit+0xfc/0x560 kernel/printk/printk.c:1978 dev_vprintk_emit+0x400/0x445 drivers/base/core.c:3616 dev_printk_emit+0x90/0xb6 drivers/base/core.c:3627 _dev_info+0xc8/0xf6 drivers/base/core.c:3685 dlfb_parse_vendor_descriptor drivers/video/fbdev/udlfb.c:1589 [inline] dlfb_usb_probe.cold.23+0xea7/0x1a0a drivers/video/fbdev/udlfb.c:1672 usb_probe_interface+0x268/0x6c0 drivers/usb/core/driver.c:361 really_probe+0x1f9/0x5e0 drivers/base/dd.c:551 driver_probe_device+0xc9/0x1b0 drivers/base/dd.c:724 bus_for_each_drv+0x117/0x1a0 drivers/base/bus.c:431 __device_attach+0x1be/0x2c0 drivers/base/dd.c:897 bus_probe_device+0x19e/0x250 drivers/base/bus.c:491 device_add+0x10d0/0x1900 drivers/base/core.c:2500 usb_set_configuration+0xc02/0x1560 drivers/usb/core/message.c:2023 generic_probe+0x61/0x8a drivers/usb/core/generic.c:210 really_probe+0x1f9/0x5e0 drivers/base/dd.c:551 driver_probe_device+0xc9/0x1b0 drivers/base/dd.c:724 bus_for_each_drv+0x117/0x1a0 drivers/base/bus.c:431 __device_attach+0x1be/0x2c0 drivers/base/dd.c:897 bus_probe_device+0x19e/0x250 drivers/base/bus.c:491 device_add+0x10d0/0x1900 drivers/base/core.c:2500 usb_new_device.cold.66+0x679/0xe85 drivers/usb/core/hub.c:2548 hub_port_connect drivers/usb/core/hub.c:5195 [inline] hub_port_connect_change drivers/usb/core/hub.c:5335 [inline] port_event drivers/usb/core/hub.c:5481 [inline] hub_event+0x15fe/0x2d60 drivers/usb/core/hub.c:5563 process_one_work+0x903/0x15c0 kernel/workqueue.c:2264 worker_thread+0x82/0xb50 kernel/workqueue.c:2410 kthread+0x31d/0x3e0 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Allocated by task 2661: save_stack+0x19/0x80 mm/kasan/common.c:72 set_track mm/kasan/common.c:80 [inline] __kasan_kmalloc.constprop.17+0xc1/0xd0 mm/kasan/common.c:515 __do_kmalloc mm/slab.c:3656 [inline] __kmalloc+0x164/0x7b0 mm/slab.c:3665 kmalloc include/linux/slab.h:560 [inline] usb_get_configuration+0x2a9/0x3880 drivers/usb/core/config.c:919 usb_enumerate_device drivers/usb/core/hub.c:2381 [inline] usb_new_device+0x345/0x6d0 drivers/usb/core/hub.c:2517 hub_port_connect drivers/usb/core/hub.c:5195 [inline] hub_port_connect_change drivers/usb/core/hub.c:5335 [inline] port_event drivers/usb/core/hub.c:5481 [inline] hub_event+0x15fe/0x2d60 drivers/usb/core/hub.c:5563 process_one_work+0x903/0x15c0 kernel/workqueue.c:2264 worker_thread+0x82/0xb50 kernel/workqueue.c:2410 kthread+0x31d/0x3e0 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Freed by task 6995: save_stack+0x19/0x80 mm/kasan/common.c:72 set_track mm/kasan/common.c:80 [inline] kasan_set_free_info mm/kasan/common.c:337 [inline] __kasan_slab_free+0xf7/0x140 mm/kasan/common.c:476 __cache_free mm/slab.c:3426 [inline] kfree+0x107/0x2b0 mm/slab.c:3757 tomoyo_add_entry security/tomoyo/common.c:2045 [inline] tomoyo_supervisor+0x9aa/0xc10 security/tomoyo/common.c:2103 tomoyo_audit_path_log security/tomoyo/file.c:168 [inline] tomoyo_path_permission+0x244/0x340 security/tomoyo/file.c:587 tomoyo_path_perm+0x2a2/0x370 security/tomoyo/file.c:838 security_inode_getattr+0xab/0x100 security/security.c:1254 vfs_getattr+0x17/0x40 fs/stat.c:117 vfs_statx+0xcb/0x130 fs/stat.c:201 vfs_fstatat include/linux/fs.h:3282 [inline] __do_sys_newfstatat+0x6f/0xc0 fs/stat.c:378 do_syscall_64+0xc6/0x620 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8880a30ae680 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 27 bytes inside of 32-byte region [ffff8880a30ae680, ffff8880a30ae6a0) The buggy address belongs to the page: page:ffffea00028c2b80 refcount:1 mapcount:0 mapping:ffff8880aa4001c0 index:0xffff8880a30aefc1 flags: 0xfffe0000000200(slab) raw: 00fffe0000000200 ffffea00027830c8 ffffea00029bf4c8 ffff8880aa4001c0 raw: ffff8880a30aefc1 ffff8880a30ae000 000000010000003f 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a30ae580: fb fb fb fb fc fc fc fc 00 00 01 fc fc fc fc fc ffff8880a30ae600: 00 00 01 fc fc fc fc fc fb fb fb fb fc fc fc fc >ffff8880a30ae680: 00 00 00 03 fc fc fc fc fb fb fb fb fc fc fc fc ^ ffff8880a30ae700: fb fb fb fb fc fc fc fc 00 00 01 fc fc fc fc fc ffff8880a30ae780: fb fb fb fb fc fc fc fc 00 01 fc fc fc fc fc fc ==================================================================