================================================================== BUG: KASAN: slab-use-after-free in __list_add_valid_or_report+0xe4/0x100 lib/list_debug.c:32 Read of size 8 at addr ffff888111654250 by task kworker/0:4/5272 CPU: 0 UID: 0 PID: 5272 Comm: kworker/0:4 Not tainted 6.12.0-rc6-syzkaller-00153-g237d4e0f4113 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 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:377 [inline] print_report+0xc3/0x620 mm/kasan/report.c:488 kasan_report+0xd9/0x110 mm/kasan/report.c:601 __list_add_valid_or_report+0xe4/0x100 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+0x9c5/0x1ba0 kernel/workqueue.c:3229 process_scheduled_works kernel/workqueue.c:3310 [inline] worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Allocated by task 2954: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 unpoison_slab_object mm/kasan/common.c:319 [inline] __kasan_slab_alloc+0x6e/0x70 mm/kasan/common.c:345 kasan_slab_alloc include/linux/kasan.h:247 [inline] slab_post_alloc_hook mm/slub.c:4085 [inline] slab_alloc_node mm/slub.c:4134 [inline] kmem_cache_alloc_node_noprof+0x13e/0x2e0 mm/slub.c:4186 kmalloc_reserve+0x18b/0x2c0 net/core/skbuff.c:587 __alloc_skb+0x164/0x380 net/core/skbuff.c:678 alloc_skb_fclone include/linux/skbuff.h:1372 [inline] tcp_stream_alloc_skb+0x34/0x570 net/ipv4/tcp.c:885 tcp_sendmsg_locked+0xeb5/0x36b0 net/ipv4/tcp.c:1167 tcp_sendmsg+0x2e/0x50 net/ipv4/tcp.c:1357 inet_sendmsg+0xb9/0x140 net/ipv4/af_inet.c:853 sock_sendmsg_nosec net/socket.c:729 [inline] __sock_sendmsg net/socket.c:744 [inline] sock_write_iter+0x4ac/0x5b0 net/socket.c:1165 new_sync_write fs/read_write.c:590 [inline] vfs_write+0x5ae/0x1150 fs/read_write.c:683 ksys_write+0x1fa/0x260 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 2954: 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:579 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:230 [inline] slab_free_hook mm/slub.c:2342 [inline] slab_free mm/slub.c:4579 [inline] kmem_cache_free+0x133/0x480 mm/slub.c:4681 skb_kfree_head net/core/skbuff.c:1084 [inline] skb_kfree_head net/core/skbuff.c:1081 [inline] skb_free_head+0x18a/0x1d0 net/core/skbuff.c:1098 skb_release_data+0x760/0x910 net/core/skbuff.c:1125 skb_release_all net/core/skbuff.c:1190 [inline] __kfree_skb+0x4f/0x70 net/core/skbuff.c:1204 tcp_wmem_free_skb include/net/tcp.h:306 [inline] tcp_rtx_queue_unlink_and_free include/net/tcp.h:2091 [inline] tcp_clean_rtx_queue net/ipv4/tcp_input.c:3436 [inline] tcp_ack+0x1e04/0x5a80 net/ipv4/tcp_input.c:4032 tcp_rcv_established+0xd69/0x21b0 net/ipv4/tcp_input.c:6173 tcp_v4_do_rcv+0x5dc/0xaa0 net/ipv4/tcp_ipv4.c:1915 tcp_v4_rcv+0x3306/0x42c0 net/ipv4/tcp_ipv4.c:2350 ip_protocol_deliver_rcu+0xba/0x4c0 net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x329/0x580 net/ipv4/ip_input.c:233 NF_HOOK include/linux/netfilter.h:314 [inline] NF_HOOK include/linux/netfilter.h:308 [inline] ip_local_deliver+0x1bf/0x560 net/ipv4/ip_input.c:254 dst_input include/net/dst.h:460 [inline] ip_sublist_rcv_finish+0x2c1/0x620 net/ipv4/ip_input.c:580 ip_list_rcv_finish.constprop.0+0x480/0x630 net/ipv4/ip_input.c:630 ip_sublist_rcv net/ipv4/ip_input.c:638 [inline] ip_list_rcv+0x339/0x450 net/ipv4/ip_input.c:672 __netif_receive_skb_list_ptype net/core/dev.c:5713 [inline] __netif_receive_skb_list_core+0x755/0x950 net/core/dev.c:5760 __netif_receive_skb_list net/core/dev.c:5812 [inline] netif_receive_skb_list_internal+0x753/0xdb0 net/core/dev.c:5903 gro_normal_list include/net/gro.h:515 [inline] gro_normal_list include/net/gro.h:511 [inline] napi_complete_done+0x23f/0x9a0 net/core/dev.c:6254 virtqueue_napi_complete drivers/net/virtio_net.c:697 [inline] virtnet_poll+0x1b48/0x29c0 drivers/net/virtio_net.c:2831 __napi_poll.constprop.0+0xb7/0x550 net/core/dev.c:6779 napi_poll net/core/dev.c:6848 [inline] net_rx_action+0xa92/0x1010 net/core/dev.c:6970 handle_softirqs+0x206/0x8d0 kernel/softirq.c:554 __do_softirq kernel/softirq.c:588 [inline] invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu kernel/softirq.c:637 [inline] irq_exit_rcu+0xac/0x110 kernel/softirq.c:649 common_interrupt+0xab/0xd0 arch/x86/kernel/irq.c:278 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:693 The buggy address belongs to the object at ffff888111654000 which belongs to the cache skbuff_small_head of size 640 The buggy address is located 592 bytes inside of freed 640-byte region [ffff888111654000, ffff888111654280) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x111654 head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x200000000000040(head|node=0|zone=2) page_type: f5(slab) raw: 0200000000000040 ffff888102693280 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000150015 00000001f5000000 0000000000000000 head: 0200000000000040 ffff888102693280 dead000000000100 dead000000000122 head: 0000000000000000 0000000000150015 00000001f5000000 0000000000000000 head: 0200000000000002 ffffea0004459501 ffffffffffffffff 0000000000000000 head: 0000000000000004 0000000000000000 00000000ffffffff 0000000000000000 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 9576, tgid 9576 (syz.2.1269), ts 596699984741, free_ts 580697371242 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1537 prep_new_page mm/page_alloc.c:1545 [inline] get_page_from_freelist+0xd6b/0x2660 mm/page_alloc.c:3457 __alloc_pages_noprof+0x221/0x2270 mm/page_alloc.c:4733 alloc_pages_mpol_noprof+0xeb/0x400 mm/mempolicy.c:2265 alloc_slab_page mm/slub.c:2412 [inline] allocate_slab mm/slub.c:2578 [inline] new_slab+0x2c9/0x410 mm/slub.c:2631 ___slab_alloc+0xd45/0x1760 mm/slub.c:3818 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3908 __slab_alloc_node mm/slub.c:3961 [inline] slab_alloc_node mm/slub.c:4122 [inline] kmem_cache_alloc_node_noprof+0x281/0x2e0 mm/slub.c:4186 kmalloc_reserve+0x18b/0x2c0 net/core/skbuff.c:587 __alloc_skb+0x164/0x380 net/core/skbuff.c:678 alloc_skb include/linux/skbuff.h:1322 [inline] alloc_uevent_skb+0x7d/0x210 lib/kobject_uevent.c:289 uevent_net_broadcast_untagged lib/kobject_uevent.c:326 [inline] kobject_uevent_net_broadcast lib/kobject_uevent.c:410 [inline] kobject_uevent_env+0xc8f/0x1860 lib/kobject_uevent.c:608 device_remove+0xc8/0x170 drivers/base/dd.c:567 __device_release_driver drivers/base/dd.c:1273 [inline] device_release_driver_internal+0x44a/0x610 drivers/base/dd.c:1296 driver_detach+0xd8/0x1b0 drivers/base/dd.c:1359 bus_remove_driver+0x13b/0x2c0 drivers/base/bus.c:744 page last free pid 6152 tgid 6152 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1108 [inline] free_unref_page+0x58a/0xb50 mm/page_alloc.c:2638 stack_depot_save_flags+0x2da/0x8f0 lib/stackdepot.c:666 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:878 [inline] kzalloc_noprof include/linux/slab.h:1014 [inline] evdev_connect+0x82/0x4c0 drivers/input/evdev.c:1349 input_attach_handler.isra.0+0x181/0x260 drivers/input/input.c:1027 input_register_device+0xa84/0x1110 drivers/input/input.c:2470 rc_setup_rx_device drivers/media/rc/rc-main.c:1853 [inline] rc_register_device+0x111a/0x1be0 drivers/media/rc/rc-main.c:1956 rc_core_dvb_usb_remote_init drivers/media/usb/dvb-usb/dvb-usb-remote.c:289 [inline] dvb_usb_remote_init+0xe47/0x15e0 drivers/media/usb/dvb-usb/dvb-usb-remote.c:337 dvb_usb_init drivers/media/usb/dvb-usb/dvb-usb-init.c:190 [inline] dvb_usb_device_init+0x17ac/0x20a0 drivers/media/usb/dvb-usb/dvb-usb-init.c:310 cxusb_probe+0x3db/0x7d0 drivers/media/usb/dvb-usb/cxusb.c:1651 usb_probe_interface+0x300/0x9c0 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:579 [inline] really_probe+0x23e/0xa90 drivers/base/dd.c:658 __driver_probe_device+0x1de/0x440 drivers/base/dd.c:800 driver_probe_device+0x4c/0x1b0 drivers/base/dd.c:830 Memory state around the buggy address: ffff888111654100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888111654180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888111654200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888111654280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888111654300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================