SELinux: unrecognized netlink message: protocol=6 nlmsg_type=1792 sclass=netlink_xfrm_socket pig=18224 comm=syz-executor3 SELinux: unrecognized netlink message: protocol=6 nlmsg_type=1792 sclass=netlink_xfrm_socket pig=18230 comm=syz-executor3 ================================================================== BUG: KASAN: slab-out-of-bounds in bpf_skb_proto_xlat net/core/filter.c:2150 [inline] BUG: KASAN: slab-out-of-bounds in ____bpf_skb_change_proto net/core/filter.c:2188 [inline] BUG: KASAN: slab-out-of-bounds in bpf_skb_change_proto+0xd7d/0x1100 net/core/filter.c:2163 Read of size 2 at addr ffff8801c9d209f8 by task syz-executor5/18228 CPU: 1 PID: 18228 Comm: syz-executor5 Not tainted 4.14.72+ #11 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0xb9/0x11b lib/dump_stack.c:53 print_address_description+0x60/0x22b mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report.cold.6+0x11b/0x2dd mm/kasan/report.c:409 bpf_skb_proto_xlat net/core/filter.c:2150 [inline] ____bpf_skb_change_proto net/core/filter.c:2188 [inline] bpf_skb_change_proto+0xd7d/0x1100 net/core/filter.c:2163 ___bpf_prog_run+0x248e/0x5c70 kernel/bpf/core.c:1012 Allocated by task 18230: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc.part.1+0x4f/0xd0 mm/kasan/kasan.c:551 slab_post_alloc_hook mm/slab.h:442 [inline] slab_alloc_node mm/slub.c:2723 [inline] slab_alloc mm/slub.c:2731 [inline] kmem_cache_alloc+0xe4/0x2b0 mm/slub.c:2736 kmem_cache_alloc_node include/linux/slab.h:361 [inline] __alloc_skb+0xd8/0x550 net/core/skbuff.c:193 alloc_skb include/linux/skbuff.h:980 [inline] netlink_alloc_large_skb net/netlink/af_netlink.c:1158 [inline] netlink_sendmsg+0x94b/0xbe0 net/netlink/af_netlink.c:1852 sock_sendmsg_nosec net/socket.c:645 [inline] sock_sendmsg+0xb5/0x100 net/socket.c:655 ___sys_sendmsg+0x741/0x890 net/socket.c:2061 __sys_sendmsg+0xca/0x170 net/socket.c:2095 SYSC_sendmsg net/socket.c:2106 [inline] SyS_sendmsg+0x27/0x40 net/socket.c:2102 do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289 entry_SYSCALL_64_after_hwframe+0x42/0xb7 Freed by task 191: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xac/0x190 mm/kasan/kasan.c:524 slab_free_hook mm/slub.c:1389 [inline] slab_free_freelist_hook mm/slub.c:1410 [inline] slab_free mm/slub.c:2966 [inline] kmem_cache_free+0x12d/0x350 mm/slub.c:2988 kfree_skbmem+0x9e/0x100 net/core/skbuff.c:582 __kfree_skb net/core/skbuff.c:642 [inline] consume_skb+0xc9/0x330 net/core/skbuff.c:701 netlink_broadcast_filtered+0x2b7/0xa30 net/netlink/af_netlink.c:1488 kobject_uevent_env+0x793/0xc40 lib/kobject_uevent.c:492 kobject_synth_uevent+0x6ee/0x838 lib/kobject_uevent.c:205 uevent_store+0x21/0x60 drivers/base/core.c:994 dev_attr_store+0x57/0x80 drivers/base/core.c:714 sysfs_kf_write+0x10a/0x160 fs/sysfs/file.c:141 kernfs_fop_write+0x28b/0x440 fs/kernfs/file.c:316 __vfs_write+0xf4/0x5c0 fs/read_write.c:482 vfs_write+0x17f/0x4d0 fs/read_write.c:546 SYSC_write fs/read_write.c:593 [inline] SyS_write+0xc2/0x1a0 fs/read_write.c:585 do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289 entry_SYSCALL_64_after_hwframe+0x42/0xb7 The buggy address belongs to the object at ffff8801c9d208c0 which belongs to the cache skbuff_head_cache of size 224 The buggy address is located 88 bytes to the right of 224-byte region [ffff8801c9d208c0, ffff8801c9d209a0) The buggy address belongs to the page: page:ffffea0007274800 count:1 mapcount:0 mapping: (null) index:0x0 flags: 0x4000000000000100(slab) raw: 4000000000000100 0000000000000000 0000000000000000 00000001800c000c raw: ffffea000730c3c0 0000000400000004 ffff8801dab70200 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801c9d20880: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ffff8801c9d20900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8801c9d20980: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8801c9d20a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801c9d20a80: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ==================================================================