================================================================== BUG: KASAN: slab-out-of-bounds in __list_add_valid_or_report+0x151/0x190 lib/list_debug.c:32 Read of size 8 at addr ffff888113ec4250 by task kworker/1:6/5354 CPU: 1 UID: 0 PID: 5354 Comm: kworker/1:6 Not tainted 6.15.0-rc6-syzkaller-00117-g6381f9950440 #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: events request_module_async Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:408 [inline] print_report+0xc3/0x670 mm/kasan/report.c:521 kasan_report+0xe0/0x110 mm/kasan/report.c:634 __list_add_valid_or_report+0x151/0x190 lib/list_debug.c:32 __list_add_valid include/linux/list.h:88 [inline] __list_add include/linux/list.h:150 [inline] list_add_tail include/linux/list.h:183 [inline] em28xx_init_extension+0x48/0x200 drivers/media/usb/em28xx/em28xx-core.c:1114 request_module_async+0x61/0x70 drivers/media/usb/em28xx/em28xx-cards.c:3457 process_one_work+0x9cc/0x1b70 kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3400 kthread+0x3c2/0x780 kernel/kthread.c:464 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 6325: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0x8f/0xa0 mm/kasan/common.c:394 kasan_kmalloc include/linux/kasan.h:260 [inline] __do_kmalloc_node mm/slub.c:4327 [inline] __kmalloc_node_track_caller_noprof+0x212/0x4c0 mm/slub.c:4346 kmalloc_reserve+0xef/0x2c0 net/core/skbuff.c:599 __alloc_skb+0x166/0x380 net/core/skbuff.c:668 alloc_skb include/linux/skbuff.h:1340 [inline] alloc_skb_with_frags+0xe0/0x860 net/core/skbuff.c:6639 sock_alloc_send_pskb+0x7fb/0x990 net/core/sock.c:2954 unix_dgram_sendmsg+0x45a/0x1860 net/unix/af_unix.c:2007 sock_sendmsg_nosec net/socket.c:712 [inline] __sock_sendmsg net/socket.c:727 [inline] sock_write_iter+0x4fc/0x5b0 net/socket.c:1131 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x5ba/0x1180 fs/read_write.c:684 ksys_write+0x205/0x240 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x260 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 2841: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x37/0x50 mm/kasan/common.c:264 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2380 [inline] slab_free mm/slub.c:4642 [inline] kfree+0x286/0x470 mm/slub.c:4841 skb_kfree_head net/core/skbuff.c:1058 [inline] skb_free_head+0x108/0x1d0 net/core/skbuff.c:1070 skb_release_data+0x7a5/0x960 net/core/skbuff.c:1097 skb_release_all net/core/skbuff.c:1162 [inline] __kfree_skb net/core/skbuff.c:1176 [inline] consume_skb net/core/skbuff.c:1408 [inline] consume_skb+0xbf/0x100 net/core/skbuff.c:1402 __unix_dgram_recvmsg+0x818/0xe60 net/unix/af_unix.c:2505 unix_dgram_recvmsg+0xd0/0x110 net/unix/af_unix.c:2522 sock_recvmsg_nosec net/socket.c:1017 [inline] sock_recvmsg+0x1f6/0x250 net/socket.c:1039 ____sys_recvmsg+0x218/0x6b0 net/socket.c:2786 ___sys_recvmsg+0x114/0x1a0 net/socket.c:2828 __sys_recvmsg+0x16a/0x220 net/socket.c:2861 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x260 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888113ec4000 which belongs to the cache kmalloc-cg-512 of size 512 The buggy address is located 80 bytes to the right of allocated 512-byte region [ffff888113ec4000, ffff888113ec4200) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x113ec4 head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff888123010601 anon flags: 0x200000000000040(head|node=0|zone=2) page_type: f5(slab) raw: 0200000000000040 ffff88810004b140 ffffea000440c200 0000000000000003 raw: 0000000000000000 0000000000100010 00000000f5000000 ffff888123010601 head: 0200000000000040 ffff88810004b140 ffffea000440c200 0000000000000003 head: 0000000000000000 0000000000100010 00000000f5000000 ffff888123010601 head: 0200000000000002 ffffea00044fb101 00000000ffffffff 00000000ffffffff head: 0000000000000000 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 2830, tgid 2830 (klogd), ts 284532866955, free_ts 275278627874 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1718 prep_new_page mm/page_alloc.c:1726 [inline] get_page_from_freelist+0xfec/0x2d90 mm/page_alloc.c:3688 __alloc_frozen_pages_noprof+0x25c/0x2160 mm/page_alloc.c:4970 alloc_pages_mpol+0xe4/0x410 mm/mempolicy.c:2301 alloc_slab_page mm/slub.c:2450 [inline] allocate_slab mm/slub.c:2618 [inline] new_slab+0x244/0x340 mm/slub.c:2672 ___slab_alloc+0xda5/0x1940 mm/slub.c:3858 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3948 __slab_alloc_node mm/slub.c:4023 [inline] slab_alloc_node mm/slub.c:4184 [inline] __do_kmalloc_node mm/slub.c:4326 [inline] __kmalloc_node_track_caller_noprof+0x15e/0x4c0 mm/slub.c:4346 kmalloc_reserve+0xef/0x2c0 net/core/skbuff.c:599 __alloc_skb+0x166/0x380 net/core/skbuff.c:668 alloc_skb include/linux/skbuff.h:1340 [inline] alloc_skb_with_frags+0xe0/0x860 net/core/skbuff.c:6639 sock_alloc_send_pskb+0x7fb/0x990 net/core/sock.c:2954 unix_dgram_sendmsg+0x45a/0x1860 net/unix/af_unix.c:2007 sock_sendmsg_nosec net/socket.c:712 [inline] __sock_sendmsg net/socket.c:727 [inline] __sys_sendto+0x495/0x510 net/socket.c:2180 __do_sys_sendto net/socket.c:2187 [inline] __se_sys_sendto net/socket.c:2183 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2183 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x260 arch/x86/entry/syscall_64.c:94 page last free pid 38 tgid 38 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1262 [inline] __free_frozen_pages+0x66c/0xe70 mm/page_alloc.c:2725 stack_depot_save_flags+0x354/0xa50 lib/stackdepot.c:678 kasan_save_stack+0x42/0x60 mm/kasan/common.c:48 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0x8f/0xa0 mm/kasan/common.c:394 kmalloc_noprof include/linux/slab.h:905 [inline] slab_free_hook mm/slub.c:2332 [inline] slab_free mm/slub.c:4642 [inline] kmem_cache_free+0x129/0x470 mm/slub.c:4744 file_free fs/file_table.c:76 [inline] __fput_deferred+0x2d5/0x370 fs/file_table.c:520 fput_close+0x118/0x250 fs/file_table.c:582 path_openat+0xf22/0x2d40 fs/namei.c:4048 do_file_open_root+0x322/0x610 fs/namei.c:4091 file_open_root+0x2a7/0x450 fs/open.c:1408 kernel_read_file_from_path_initns+0x189/0x260 fs/kernel_read_file.c:163 fw_get_filesystem_firmware drivers/base/firmware_loader/main.c:549 [inline] _request_firmware+0x745/0xfd0 drivers/base/firmware_loader/main.c:916 request_firmware+0x35/0x50 drivers/base/firmware_loader/main.c:992 bfusb_probe+0x521/0x1280 drivers/bluetooth/bfusb.c:641 usb_probe_interface+0x300/0x9c0 drivers/usb/core/driver.c:396 Memory state around the buggy address: ffff888113ec4100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888113ec4180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888113ec4200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888113ec4280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888113ec4300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================