================================================================== BUG: KASAN: slab-out-of-bounds in super_90_validate+0x178b/0x18c0 drivers/md/md.c:1592 Read of size 4 at addr ffff888062348390 by task syz.2.2770/13141 CPU: 0 UID: 0 PID: 13141 Comm: syz.2.2770 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x13d/0x4b0 mm/kasan/report.c:482 kasan_report+0xdf/0x1c0 mm/kasan/report.c:595 super_90_validate+0x178b/0x18c0 drivers/md/md.c:1592 add_bound_rdev+0x274/0x390 drivers/md/md.c:3012 md_add_new_disk+0xca1/0x1820 drivers/md/md.c:7666 md_ioctl+0x2c1d/0x3700 drivers/md/md.c:8525 blkdev_ioctl+0x5ad/0x6f0 block/ioctl.c:798 vfs_ioctl fs/ioctl.c:52 [inline] __do_sys_ioctl fs/ioctl.c:598 [inline] __se_sys_ioctl fs/ioctl.c:584 [inline] __x64_sys_ioctl+0x18e/0x210 fs/ioctl.c:584 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f8038fa8fd9 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:00007f8039f04028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f8039225fa0 RCX: 00007f8038fa8fd9 RDX: 0000200000000180 RSI: 0000000040140921 RDI: 0000000000000003 RBP: 00007f8039037fed R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f8039226038 R14: 00007f8039225fa0 R15: 00007ffe64a49d28 Allocated by task 10874: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 unpoison_slab_object mm/kasan/common.c:351 [inline] __kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:377 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4720 [inline] slab_alloc_node mm/slub.c:5033 [inline] kmem_cache_alloc_noprof+0x269/0x6a0 mm/slub.c:5047 skb_clone+0x187/0x3f0 net/core/skbuff.c:2110 do_one_broadcast net/netlink/af_netlink.c:1474 [inline] netlink_broadcast_filtered+0xbab/0xfd0 net/netlink/af_netlink.c:1559 netlink_broadcast net/netlink/af_netlink.c:1583 [inline] netlink_sendmsg+0xc86/0x10c0 net/netlink/af_netlink.c:1918 sock_sendmsg_nosec net/socket.c:800 [inline] __sock_sendmsg net/socket.c:818 [inline] ____sys_sendmsg+0xa99/0xc30 net/socket.c:2715 ___sys_sendmsg+0x190/0x1e0 net/socket.c:2769 __sys_sendmsg+0x160/0x210 net/socket.c:2801 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 10874: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 kasan_save_free_info+0x3b/0x70 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:264 [inline] __kasan_slab_free+0x5f/0x80 mm/kasan/common.c:296 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2780 [inline] slab_free mm/slub.c:6630 [inline] kmem_cache_free+0x127/0x6c0 mm/slub.c:6757 kfree_skbmem+0x19a/0x210 net/core/skbuff.c:1136 __kfree_skb net/core/skbuff.c:1203 [inline] sk_skb_reason_drop+0x10f/0x1b0 net/core/skbuff.c:1241 kfree_skb_reason include/linux/skbuff.h:1329 [inline] kfree_skb include/linux/skbuff.h:1338 [inline] do_one_broadcast net/netlink/af_netlink.c:1494 [inline] netlink_broadcast_filtered+0xb28/0xfd0 net/netlink/af_netlink.c:1559 netlink_broadcast net/netlink/af_netlink.c:1583 [inline] netlink_sendmsg+0xc86/0x10c0 net/netlink/af_netlink.c:1918 sock_sendmsg_nosec net/socket.c:800 [inline] __sock_sendmsg net/socket.c:818 [inline] ____sys_sendmsg+0xa99/0xc30 net/socket.c:2715 ___sys_sendmsg+0x190/0x1e0 net/socket.c:2769 __sys_sendmsg+0x160/0x210 net/socket.c:2801 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888062348280 which belongs to the cache skbuff_head_cache of size 240 The buggy address is located 32 bytes to the right of allocated 240-byte region [ffff888062348280, ffff888062348370) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x62348 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff888021ad4780 dead000000000100 dead000000000122 raw: 0000000000000000 00000002000c000c 00000000f5000000 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 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5606, tgid 5606 (syz-executor), ts 266139737888 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860 prep_new_page mm/page_alloc.c:1868 [inline] get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3950 __alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5492 alloc_slab_page mm/slub.c:3384 [inline] allocate_slab mm/slub.c:3499 [inline] new_slab+0xb1/0x6d0 mm/slub.c:3550 refill_objects+0xe3/0x410 mm/slub.c:7539 refill_sheaf mm/slub.c:2917 [inline] __pcs_replace_empty_main+0x35e/0x650 mm/slub.c:4811 alloc_from_pcs mm/slub.c:4887 [inline] slab_alloc_node mm/slub.c:5021 [inline] kmem_cache_alloc_noprof+0x4bf/0x6a0 mm/slub.c:5047 skb_clone+0x187/0x3f0 net/core/skbuff.c:2110 dev_queue_xmit_nit+0x255/0xa80 net/core/dev.c:2646 xmit_one net/core/dev.c:4064 [inline] dev_hard_start_xmit+0x2f5/0x760 net/core/dev.c:4084 sch_direct_xmit+0x1cf/0xf40 net/sched/sch_generic.c:411 __dev_xmit_skb net/core/dev.c:4407 [inline] __dev_queue_xmit+0x27d9/0x48d0 net/core/dev.c:5046 dev_queue_xmit include/linux/netdevice.h:3485 [inline] neigh_hh_output include/net/neighbour.h:538 [inline] neigh_output include/net/neighbour.h:552 [inline] ip_finish_output2+0xfa4/0x2740 net/ipv4/ip_output.c:236 __ip_finish_output.part.0+0x43b/0x6f0 net/ipv4/ip_output.c:314 __ip_finish_output net/ipv4/ip_output.c:302 [inline] ip_finish_output net/ipv4/ip_output.c:324 [inline] NF_HOOK_COND include/linux/netfilter.h:314 [inline] ip_output+0x392/0xc00 net/ipv4/ip_output.c:437 dst_output include/net/dst.h:471 [inline] ip_local_out+0x193/0x1f0 net/ipv4/ip_output.c:131 page last free pid 5629 tgid 5629 ts 266137765999 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1402 [inline] __free_frozen_pages+0x7b1/0x10f0 mm/page_alloc.c:2958 ___free_pages_bulk mm/kasan/shadow.c:333 [inline] __kasan_populate_vmalloc_do mm/kasan/shadow.c:385 [inline] __kasan_populate_vmalloc+0x164/0x210 mm/kasan/shadow.c:424 kasan_populate_vmalloc include/linux/kasan.h:580 [inline] alloc_vmap_area+0x963/0x2bc0 mm/vmalloc.c:2151 __get_vm_area_node+0x1ed/0x350 mm/vmalloc.c:3281 __vmalloc_node_range_noprof+0x2ad/0x1440 mm/vmalloc.c:4112 __vmalloc_node_noprof+0xad/0xf0 mm/vmalloc.c:4213 alloc_counters net/ipv4/netfilter/arp_tables.c:671 [inline] copy_entries_to_user net/ipv4/netfilter/arp_tables.c:692 [inline] get_entries net/ipv4/netfilter/arp_tables.c:787 [inline] do_arpt_get_ctl+0x651/0x1010 net/ipv4/netfilter/arp_tables.c:1013 nf_getsockopt+0x7c/0xe0 net/netfilter/nf_sockopt.c:116 ip_getsockopt+0x192/0x1e0 net/ipv4/ip_sockglue.c:1785 tcp_getsockopt+0xa1/0x110 net/ipv4/tcp.c:4881 do_sock_getsockopt+0x415/0x570 net/socket.c:2505 __sys_getsockopt+0x148/0x260 net/socket.c:2536 __do_sys_getsockopt net/socket.c:2543 [inline] __se_sys_getsockopt net/socket.c:2540 [inline] __x64_sys_getsockopt+0xbd/0x160 net/socket.c:2540 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff888062348280: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888062348300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc >ffff888062348380: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ^ ffff888062348400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888062348480: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc ==================================================================