================================================================== BUG: KASAN: slab-out-of-bounds in ec168_i2c_xfer+0x4d1/0x630 drivers/media/usb/dvb-usb-v2/ec168.c:143 Read of size 1 at addr ffff8881487837a9 by task syz.3.76/4620 CPU: 1 PID: 4620 Comm: syz.3.76 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 ec168_i2c_xfer+0x4d1/0x630 drivers/media/usb/dvb-usb-v2/ec168.c:143 __i2c_transfer+0x88d/0x2090 drivers/i2c/i2c-core-base.c:-1 i2c_transfer+0x25d/0x3a0 drivers/i2c/i2c-core-base.c:2357 i2cdev_ioctl_rdwr+0x3dc/0x6c0 drivers/i2c/i2c-dev.c:297 i2cdev_ioctl+0x610/0x7b0 drivers/i2c/i2c-dev.c:458 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xfa/0x170 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fe16233f159 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:00007fe160576028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fe1625c7090 RCX: 00007fe16233f159 RDX: 0000200000000200 RSI: 0000000000000707 RDI: 0000000000000004 RBP: 00007fe1623d6024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe1625c7128 R14: 00007fe1625c7090 R15: 00007ffea8417318 Allocated by task 4620: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] ____kasan_kmalloc mm/kasan/common.c:513 [inline] __kasan_kmalloc+0xaf/0xe0 mm/kasan/common.c:522 memdup_user+0x22/0xb0 mm/util.c:173 i2cdev_ioctl_rdwr+0x140/0x6c0 drivers/i2c/i2c-dev.c:256 i2cdev_ioctl+0x610/0x7b0 drivers/i2c/i2c-dev.c:458 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xfa/0x170 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 The buggy address belongs to the object at ffff8881487837a8 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 1 bytes inside of 8-byte region [ffff8881487837a8, ffff8881487837b0) The buggy address belongs to the page: page:ffffea000521e0c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x148783 flags: 0x57ff00000000200(slab|node=1|zone=2|lastcpupid=0x7ff) raw: 057ff00000000200 ffffea00051fd9c0 0000000400000004 ffff888016c41280 raw: 0000000000000000 0000000080660066 00000001ffffffff 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 0x12c00(GFP_NOIO|__GFP_NOWARN|__GFP_NORETRY), pid 1, ts 12546496354, free_ts 0 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x24f6/0x2670 mm/page_alloc.c:4192 __alloc_pages+0x1ee/0x480 mm/page_alloc.c:5501 alloc_page_interleave+0x24/0x1e0 mm/mempolicy.c:2031 alloc_slab_page mm/slub.c:1780 [inline] allocate_slab mm/slub.c:1917 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1980 ___slab_alloc+0x807/0xdd0 mm/slub.c:3013 __slab_alloc mm/slub.c:3100 [inline] slab_alloc_node mm/slub.c:3191 [inline] slab_alloc mm/slub.c:3233 [inline] kmem_cache_alloc_trace+0xf9/0x290 mm/slub.c:3250 kmalloc include/linux/slab.h:607 [inline] usb_control_msg+0x70/0x3e0 drivers/usb/core/message.c:156 get_hub_descriptor drivers/usb/core/hub.c:413 [inline] hub_configure drivers/usb/core/hub.c:1453 [inline] hub_probe+0xed7/0x3630 drivers/usb/core/hub.c:1956 usb_probe_interface+0x5be/0xae0 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x276/0xc70 drivers/base/dd.c:595 __driver_probe_device+0x1f5/0x390 drivers/base/dd.c:775 driver_probe_device+0x4f/0x420 drivers/base/dd.c:805 __device_attach_driver+0x2b0/0x500 drivers/base/dd.c:927 bus_for_each_drv+0x184/0x210 drivers/base/bus.c:429 __device_attach+0x2a7/0x480 drivers/base/dd.c:999 bus_probe_device+0xba/0x1d0 drivers/base/bus.c:489 page_owner free stack trace missing Memory state around the buggy address: ffff888148783680: fc fc 06 fc fc fc fc 06 fc fc fc fc 06 fc fc fc ffff888148783700: fc fa fc fc fc fc 00 fc fc fc fc 00 fc fc fc fc >ffff888148783780: 00 fc fc fc fc 01 fc fc fc fc fb fc fc fc fc fb ^ ffff888148783800: fc fc fc fc fb fc fc fc fc fb fc fc fc fc fb fc ffff888148783880: fc fc fc fb fc fc fc fc fb fc fc fc fc fb fc fc ==================================================================