Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp149563rwl; Thu, 6 Apr 2023 16:26:01 -0700 (PDT) X-Google-Smtp-Source: AKy350aoxjQFORDjfcxZVOZ45eyG1VdekmPM4ydPijFt+5PnEMPOAUCs/k1tko9mnbjOGFmUIfPx X-Received: by 2002:aa7:9887:0:b0:627:8e40:68e0 with SMTP id r7-20020aa79887000000b006278e4068e0mr595537pfl.15.1680823560922; Thu, 06 Apr 2023 16:26:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680823560; cv=none; d=google.com; s=arc-20160816; b=WFlUN3L17XVdb2sATQGPenUiS0XzWigNNLfJf8N7u2E4eZWeQ3A0p6iTSQtL+cdXBS HDBWDvOuTRCT4RgRYxZVdG8X4+RNCE87YSf6aGUJ3XNnym49drYoSnr7PhEb5HbEOaT6 PFUpCHidFXNSiElmfI1AgwBj8XDDYwcK8k/uzuC25le7YVs3OPz2IHfcnxar6Potd2bG xcF2/Z/UzgsPyx6PIFsbYmChmy41cwYQwODBBC0UGdms/uiK6Q0edxdubzwPsqru+aH2 OiYNaukhbt2jAdxlkW+ezbAG/Wz7daqkm9zCAbK24eJv/FTzdh0paf3ntjh1tjmJN2qz C2/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=pi05o+/wIqfjwsC6Ux6SGoxSck3jhlcodGAJhg+oXBk=; b=MmAn23KkyItDiHcGAzNL9L4oNGJdcj+a47EGTzr3WqFnlCSj3XWud7bOznWKGAvlZQ vJ9YWo7TgSbqcnjStAL5KPhwcunD8Rr4oxQxuXb1wjzUpKZoGlmK2Fpf5bVzFFpVvhYF Y+55Dwsw/uCDtPRRii4V3llJV35N5t06vfpFfPWiA0DhlULwj+BpmTzlNEXk4aomlxFs zkarimDfUWTLJb5gsr+F+ck/vJN8PP9ZahkE58dCa0ikUP9StAT5meGHHktlg2BBV/1B EMUmXTHBcjdJk9HcS1fgfpCSjTpc1ZWs3OAu7UIdLcwhAJMdffF975EPBVROsECqk0LQ T6NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JSziECDR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s1-20020a63dc01000000b00513f16584d1si2356466pgg.465.2023.04.06.16.25.43; Thu, 06 Apr 2023 16:26:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JSziECDR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232725AbjDFXAo (ORCPT + 99 others); Thu, 6 Apr 2023 19:00:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229732AbjDFXAn (ORCPT ); Thu, 6 Apr 2023 19:00:43 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82669213D; Thu, 6 Apr 2023 16:00:42 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-944bd1d58easo143596666b.0; Thu, 06 Apr 2023 16:00:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680822041; x=1683414041; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=pi05o+/wIqfjwsC6Ux6SGoxSck3jhlcodGAJhg+oXBk=; b=JSziECDRBB8uStmFPZbr/gNNDgw3wZBhvaXD14g6jmvJLfOmDr8Dm34YnGR6LHzx1f ntG9Rwg5k4ZEKxdwadSN4L+qQcTkRUNU68kn9tN1F2OcKtHjPtitYGQR2qsN56DM40J/ jejCtQtuoVnVgoDRauMOX5lFMOmJNNnT/BWSP1uSMrMeN6ybkIYu8AqV5kpLNrCyHum5 SDPYYdJSKxWe7ZoW8O18D0QlDmqPrnIIPYitH9P/PLXVmGsek389cp0b3p/JnjMylu7r SQfIO2vVx/Kr9Eo/4cCcU8rcGSYXKpn4VT5J35yxuzS+DWO/t2JOBk/E8IjZ+lSXnJmB fcjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680822041; x=1683414041; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pi05o+/wIqfjwsC6Ux6SGoxSck3jhlcodGAJhg+oXBk=; b=10Rc2nZnuBHEQ8r7OaB3QDVuX0yTognNqNungQmWo2u809v0xZ2X0IMbDM3Vfqq6U2 gscQzuQ/VPZNrt7d5TjINKEo+vGns4RiTcfmTCx1Zvl2VlKWWGvUCQgu2cmnRM1ZwpcY 4M43RTGGx1oBwLCbT+GTvmhyqgc8YAToIdQ71AaJ1cgQzI/BQOs7J4vo10ZokCW3yJgN L9GHvRinOHRZedvOEF34+w4jxOHsIYxaTFdPKuoGAYJNLwmSUL4Qkolps1tJ3DYy9kUg GzNZruV76+wJr3nSxC4cNW0Sy9CBFufVYiOWQbdiNrye9BVM5EodBOGuTKF86LxOiK50 p8XA== X-Gm-Message-State: AAQBX9ct7jiyqoLRfDw65M8DIMqbz/YhlFPvyEnpLu0MRiC+YEoX+fiM 0eRvznFZms6SN6lk1/wsezqaZPuCMsVNgwQWUXLFnSpMzyc= X-Received: by 2002:a50:d6da:0:b0:502:148d:9e1e with SMTP id l26-20020a50d6da000000b00502148d9e1emr550905edj.3.1680822040777; Thu, 06 Apr 2023 16:00:40 -0700 (PDT) MIME-Version: 1.0 References: <20230405225246.1327344-1-brho@google.com> In-Reply-To: <20230405225246.1327344-1-brho@google.com> From: Alexei Starovoitov Date: Thu, 6 Apr 2023 16:00:29 -0700 Message-ID: Subject: Re: bpf: ensure all memory is initialized in bpf_get_current_comm To: Barret Rhoden Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , bpf , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 5, 2023 at 3:53=E2=80=AFPM Barret Rhoden wrot= e: > > BPF helpers that take an ARG_PTR_TO_UNINIT_MEM must ensure that all of > the memory is set, including beyond the end of the string. > > Signed-off-by: Barret Rhoden The patch looks fine, but please rebase to bpf-next and resubmit with [PATCH bpf-next] subj, so it goes through BPF CI. See Documentation/bpf/bpf_devel_QA.rst