SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=6776 comm=syz-executor2 ================================================================== BUG: KASAN: stack-out-of-bounds in memcpy include/linux/string.h:344 [inline] BUG: KASAN: stack-out-of-bounds in __nla_put+0x37/0x40 lib/nlattr.c:569 Read of size 255 at addr ffff8801c2d77968 by task syz-executor2/6776 CPU: 1 PID: 6776 Comm: syz-executor2 Not tainted 4.15.0-rc8+ #195 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:53 print_address_description+0x73/0x250 mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report+0x25b/0x340 mm/kasan/report.c:409 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x137/0x190 mm/kasan/kasan.c:267 memcpy+0x23/0x50 mm/kasan/kasan.c:302 memcpy include/linux/string.h:344 [inline] __nla_put+0x37/0x40 lib/nlattr.c:569 nla_put+0xf5/0x130 lib/nlattr.c:627 netlink_ack+0x78a/0xa10 net/netlink/af_netlink.c:2404 netlink_rcv_skb+0x2d1/0x400 net/netlink/af_netlink.c:2448 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:4548 netlink_unicast_kernel net/netlink/af_netlink.c:1308 [inline] netlink_unicast+0x4c4/0x6b0 net/netlink/af_netlink.c:1334 netlink_sendmsg+0xa4a/0xe60 net/netlink/af_netlink.c:1897 sock_sendmsg_nosec net/socket.c:630 [inline] sock_sendmsg+0xca/0x110 net/socket.c:640 sock_write_iter+0x31a/0x5d0 net/socket.c:909 call_write_iter include/linux/fs.h:1772 [inline] new_sync_write fs/read_write.c:469 [inline] __vfs_write+0x684/0x970 fs/read_write.c:482 vfs_write+0x189/0x510 fs/read_write.c:544 SYSC_write fs/read_write.c:589 [inline] SyS_write+0xef/0x220 fs/read_write.c:581 entry_SYSCALL_64_fastpath+0x29/0xa0 RIP: 0033:0x452e39 RSP: 002b:00007fd1b865ac58 EFLAGS: 00000212 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000071bf58 RCX: 0000000000452e39 RDX: 0000000000000022 RSI: 0000000020f7d000 RDI: 0000000000000013 RBP: 00000000000003bb R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006f3a28 R13: 00000000ffffffff R14: 00007fd1b865b6d4 R15: 000000000000000b The buggy address belongs to the page: page:ffffea00070b5dc0 count:0 mapcount:0 mapping: (null) index:0x0 flags: 0x2fffc0000000000() raw: 02fffc0000000000 0000000000000000 0000000000000000 00000000ffffffff raw: 0000000000000000 0000000100000001 0000000000000000 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801c2d77880: f1 f1 f1 04 f2 f2 f2 f3 f3 f3 f3 00 00 00 00 00 ffff8801c2d77900: 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00 00 >ffff8801c2d77980: f2 f2 f2 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff8801c2d77a00: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 f2 f2 f2 ffff8801c2d77a80: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================