From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E332ECE587 for ; Sun, 13 Oct 2019 10:01:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E0988206B7 for ; Sun, 13 Oct 2019 10:01:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728741AbfJMKBU (ORCPT ); Sun, 13 Oct 2019 06:01:20 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:56143 "EHLO relay8-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728528AbfJMKBU (ORCPT ); Sun, 13 Oct 2019 06:01:20 -0400 X-Originating-IP: 90.177.210.238 Received: from [192.168.1.110] (238.210.broadband10.iol.cz [90.177.210.238]) (Authenticated sender: i.maximets@ovn.org) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 0E1731BF209; Sun, 13 Oct 2019 10:01:15 +0000 (UTC) Subject: Re: [PATCH bpf] libbpf: fix passing uninitialized bytes to setsockopt To: Alexei Starovoitov , Ilya Maximets Cc: "netdev@vger.kernel.org" , "bpf@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Alexei Starovoitov , Daniel Borkmann , "David S . Miller" , Jonathan Lemon References: <5da2ad7f.1c69fb81.2ed87.f547SMTPIN_ADDED_BROKEN@mx.google.com> From: Ilya Maximets Message-ID: <50f76b97-2be6-6976-36ec-bfb88afc6009@ovn.org> Date: Sun, 13 Oct 2019 12:01:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On 13.10.2019 6:59, Alexei Starovoitov wrote: > On Sat, Oct 12, 2019 at 9:52 PM Ilya Maximets wrote: >> >> 'struct xdp_umem_reg' has 4 bytes of padding at the end that makes >> valgrind complain about passing uninitialized stack memory to the >> syscall: >> >> Syscall param socketcall.setsockopt() points to uninitialised byte(s) >> at 0x4E7AB7E: setsockopt (in /usr/lib64/libc-2.29.so) >> by 0x4BDE035: xsk_umem__create@@LIBBPF_0.0.4 (xsk.c:172) >> Uninitialised value was created by a stack allocation >> at 0x4BDDEBA: xsk_umem__create@@LIBBPF_0.0.4 (xsk.c:140) >> >> Padding bytes appeared after introducing of a new 'flags' field. >> >> Fixes: 10d30e301732 ("libbpf: add flags to umem config") >> Signed-off-by: Ilya Maximets > > Something is not right with (e|g)mail. > This is 3rd email I got with the same patch. > First one (the one that was applied) was 3 days ago. > I'm sorry. I don't know why the mail server started re-sending these e-mails. I'm receiving them too. That is strange. Best regards, Ilya Maximets.