================================================================== BUG: KASAN: slab-out-of-bounds in consumer_filter kernel/events/uprobes.c:869 [inline] BUG: KASAN: slab-out-of-bounds in filter_chain kernel/events/uprobes.c:880 [inline] BUG: KASAN: slab-out-of-bounds in uprobe_mmap+0xb9a/0x11a0 kernel/events/uprobes.c:1387 Read of size 8 at addr ffff888072050070 by task syz.3.5583/25862 CPU: 1 PID: 25862 Comm: syz.3.5583 Not tainted 6.10.0-syzkaller-08280-g68b59730459e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 print_address_description mm/kasan/report.c:377 [inline] print_report+0x169/0x550 mm/kasan/report.c:488 kasan_report+0x143/0x180 mm/kasan/report.c:601 consumer_filter kernel/events/uprobes.c:869 [inline] filter_chain kernel/events/uprobes.c:880 [inline] uprobe_mmap+0xb9a/0x11a0 kernel/events/uprobes.c:1387 mmap_region+0x1891/0x2090 mm/mmap.c:2987 do_mmap+0x8ad/0xfa0 mm/mmap.c:1397 vm_mmap_pgoff+0x1dd/0x3d0 mm/util.c:578 ksys_mmap_pgoff+0x4f1/0x720 mm/mmap.c:1443 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ffa32b75b59 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffa339b7048 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007ffa32d05f60 RCX: 00007ffa32b75b59 RDX: 0000000000000001 RSI: 0000000000003000 RDI: 0000000020000000 RBP: 00007ffa32be4e5d R08: 0000000000000004 R09: 0000000000000000 R10: 0000000000000012 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007ffa32d05f60 R15: 00007ffd8374f028 Allocated by task 25696: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:387 kasan_kmalloc include/linux/kasan.h:211 [inline] kmalloc_trace_noprof+0x19c/0x2c0 mm/slub.c:4154 kmalloc_noprof include/linux/slab.h:660 [inline] __hw_addr_create net/core/dev_addr_lists.c:60 [inline] __hw_addr_add_ex+0x1a8/0x610 net/core/dev_addr_lists.c:118 __dev_mc_add net/core/dev_addr_lists.c:867 [inline] dev_mc_add+0xa3/0x110 net/core/dev_addr_lists.c:885 igmp6_group_added+0x1a4/0x710 net/ipv6/mcast.c:680 __ipv6_dev_mc_inc+0x8b8/0xa90 net/ipv6/mcast.c:949 ipv6_add_dev+0xe12/0x1220 net/ipv6/addrconf.c:471 addrconf_notify+0x6a7/0x1020 net/ipv6/addrconf.c:3653 notifier_call_chain+0x19f/0x3e0 kernel/notifier.c:93 call_netdevice_notifiers_extack net/core/dev.c:2032 [inline] call_netdevice_notifiers net/core/dev.c:2046 [inline] register_netdevice+0x167f/0x1b00 net/core/dev.c:10468 veth_newlink+0x628/0xcd0 drivers/net/veth.c:1829 rtnl_newlink_create net/core/rtnetlink.c:3510 [inline] __rtnl_newlink net/core/rtnetlink.c:3730 [inline] rtnl_newlink+0x1591/0x20a0 net/core/rtnetlink.c:3743 rtnetlink_rcv_msg+0x73f/0xcf0 net/core/rtnetlink.c:6647 netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2550 netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline] netlink_unicast+0x7f0/0x990 net/netlink/af_netlink.c:1357 netlink_sendmsg+0x8e4/0xcb0 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:745 __sys_sendto+0x3a4/0x4f0 net/socket.c:2204 __do_sys_sendto net/socket.c:2216 [inline] __se_sys_sendto net/socket.c:2212 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2212 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888072050000 which belongs to the cache kmalloc-128 of size 128 The buggy address is located 8 bytes to the right of allocated 104-byte region [ffff888072050000, ffff888072050068) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x72050 ksm flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffefff(slab) raw: 00fff00000000000 ffff888015041a00 ffffea000079ed00 dead000000000003 raw: 0000000000000000 0000000000100010 00000001ffffefff 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 0x52820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 5093, tgid 5093 (syz-executor), ts 62606556249, free_ts 62600353308 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1473 prep_new_page mm/page_alloc.c:1481 [inline] get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3425 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4683 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x5f/0x120 mm/slub.c:2265 allocate_slab+0x5a/0x2f0 mm/slub.c:2428 new_slab mm/slub.c:2481 [inline] ___slab_alloc+0xcd1/0x14b0 mm/slub.c:3667 __slab_alloc+0x58/0xa0 mm/slub.c:3757 __slab_alloc_node mm/slub.c:3810 [inline] slab_alloc_node mm/slub.c:3990 [inline] kmalloc_trace_noprof+0x1d5/0x2c0 mm/slub.c:4149 kmalloc_noprof include/linux/slab.h:660 [inline] __hw_addr_create net/core/dev_addr_lists.c:60 [inline] __hw_addr_add_ex+0x1a8/0x610 net/core/dev_addr_lists.c:118 __dev_mc_add net/core/dev_addr_lists.c:867 [inline] dev_mc_add+0xa3/0x110 net/core/dev_addr_lists.c:885 ip_mc_filter_add net/ipv4/igmp.c:1155 [inline] igmp_group_added+0x1bf/0x8d0 net/ipv4/igmp.c:1344 ____ip_mc_inc_group+0x998/0xbf0 net/ipv4/igmp.c:1478 __ip_mc_inc_group net/ipv4/igmp.c:1487 [inline] ip_mc_inc_group net/ipv4/igmp.c:1493 [inline] ip_mc_up+0x124/0x300 net/ipv4/igmp.c:1792 inetdev_event+0x1025/0x15c0 net/ipv4/devinet.c:1608 notifier_call_chain+0x19f/0x3e0 kernel/notifier.c:93 __dev_notify_flags+0x207/0x400 page last free pid 5094 tgid 5094 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_page+0xd19/0xea0 mm/page_alloc.c:2588 __slab_free+0x31b/0x3d0 mm/slub.c:4349 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3940 [inline] slab_alloc_node mm/slub.c:4002 [inline] __do_kmalloc_node mm/slub.c:4122 [inline] __kmalloc_noprof+0x1a3/0x400 mm/slub.c:4136 kmalloc_noprof include/linux/slab.h:664 [inline] kzalloc_noprof include/linux/slab.h:778 [inline] fib6_info_alloc+0x2e/0xf0 net/ipv6/ip6_fib.c:155 ip6_route_info_create+0x445/0x12b0 net/ipv6/route.c:3761 ip6_route_add+0x28/0x160 net/ipv6/route.c:3853 addrconf_prefix_route+0x314/0x4e0 net/ipv6/addrconf.c:2486 inet6_addr_add+0x627/0xb00 net/ipv6/addrconf.c:3063 inet6_rtm_newaddr+0x8a3/0xc80 net/ipv6/addrconf.c:5048 rtnetlink_rcv_msg+0x73f/0xcf0 net/core/rtnetlink.c:6647 netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2550 netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline] netlink_unicast+0x7f0/0x990 net/netlink/af_netlink.c:1357 netlink_sendmsg+0x8e4/0xcb0 net/netlink/af_netlink.c:1901 Memory state around the buggy address: ffff88807204ff00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807204ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888072050000: 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc ^ ffff888072050080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888072050100: 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc ==================================================================