Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp283648pxb; Tue, 15 Feb 2022 13:16:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJyeUTwpqxRftnzMchv8v+w/axboGQZMsQonf686SWoaReRJ1weOVsgxAl/YRuyVPyiHTX80 X-Received: by 2002:a62:a512:: with SMTP id v18mr810394pfm.42.1644959777024; Tue, 15 Feb 2022 13:16:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644959777; cv=none; d=google.com; s=arc-20160816; b=cWUeUAyQnk6c7tex93biybipk6hAtSQ3LI3DNj3b2bzIQxGl8CS2JGq3aMdLTzOpTu imos0XyqokUAaVKn+TlJ5pQjBbWJahHn7cW8yZtJaJFwjJVufXSBOStKwMv3H06yOES/ KEKbLkCONunqIANKvHS88v5R4E0hMfg2PfJLCB1P/LCDuznX7Qe+YP3yJB/jFLCgRcZl Zcaz+zryo5Gy39hX5Wwuf0Pe45WTzm0bQ5aFTPWtp1log//8jKSJ746uVPjCEEEjPcKQ 9Q0A39vMhN6GUdnAP9N6WMjvKvoEib2NnuJs6FJ6VaEx53yk9J9Q3KWRdBAILB22AIyU qfqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=scBaLfaGLWYYxtrlYU1JbIy2UJbbECdZygDHVPbgRRk=; b=GLh1dL6XzaBMeY/rd4deNQ7vnQqIcz77HTjqjaNFuZhf5A1QY+XxHw/S4Jgq5eXFFq CzZ53qZ89nvXHhFGAa2cmR3IDZtEx0lMT/O6k4/kGM/BYeTwqFin/CIGDLtEUjnBqKJi fDDWxKQq8pLPdHWzeYB4K4IOXEIq8fXkqVUocfEUmaus4+BuKW+YtIsrDgJfTVeyozkw diVx7vdV5KZRhKiLKBn8EBAFbKUp8hQEo4wKt6AHVyJeLpn+J9tlr6PvyuiiOOeqbcXN wd+mo4CyBwbBGFXst4ed8WDkoeY2Sb+m6woumUWyPPaoV2KLN8z5jcFNL7FeO5AcY5ZZ Qb3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=lJP1yVdH; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q5si8572998pln.505.2022.02.15.13.16.01; Tue, 15 Feb 2022 13:16:17 -0800 (PST) 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=@google.com header.s=20210112 header.b=lJP1yVdH; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229495AbiBOTm2 (ORCPT + 99 others); Tue, 15 Feb 2022 14:42:28 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:49800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234521AbiBOTm1 (ORCPT ); Tue, 15 Feb 2022 14:42:27 -0500 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA20E1B7BA for ; Tue, 15 Feb 2022 11:42:16 -0800 (PST) Received: by mail-lj1-x22c.google.com with SMTP id u16so81398ljk.2 for ; Tue, 15 Feb 2022 11:42:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=scBaLfaGLWYYxtrlYU1JbIy2UJbbECdZygDHVPbgRRk=; b=lJP1yVdHufaCOzEkkjwdzlhxcctxP39rYiSDo8a2MXhB+GgPvhgLw6MCHYH5T5t/FQ nSpEnu9AuwpaiPiMgurzncCC3pIY50Fi/JoIzF71JmdI/CidTfrdaU+afI49C2/z/4we YnGAyB1qCVxghAFklVWc/ZYuUMF2Z3ATE/ENZqt1LKRrVZfmyMQuwGD2MSyFKI6Zo7gm Tsk61FxSAYjYAkDX31UTXa4uG+wyyh5QqcCdsgVR3zst/tkoYtVgN+33IDZLfTwBYBFb YHXOYNoumFJw50NPD1yysElaq4kVymT98hLvV4fLbfweVhc2S/NE2TER+lDvYSvPeqZo mohA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=scBaLfaGLWYYxtrlYU1JbIy2UJbbECdZygDHVPbgRRk=; b=cMGTH1AYUKnkG2dgEG+PS4aaBK5D3jm+LHffzhvi9xmqbMbdpKWuGNzpmSTCC2Ijt+ vDQMp9hN6xbSInktDOjCGWMxODLAMbeMSODSdJgcFEXcm1YK91HX4I6XfqL0NYs5yBxM yNTFlGGBkJDlQQs+anuIFW4ICVm+qgzBBd2biMeEgDlizPavvc7Lek/4YvnBKNEu51v2 mMyPHIIMjvY3AFzfJx4uqwdqbuCe2NyUbdKSV2YRh7p4dcCKpVVjiuULFTeNVXz0VwKs NdIlLlW8V67DtkuE41ZMcpw1IIiFkrcWDavUvu+fUKj4ilTmHpqQF6wxkZlI5EqH93L3 oCew== X-Gm-Message-State: AOAM531NtU+1lO5RKqiOJ1ppH74WExXkvvvU2m0Ik93VSZMzmyZFjWkj zIZfCF6nFcF8ZPJreXspIh2Fj+xd9raPwgm3+SO8QQ== X-Received: by 2002:a05:651c:2121:: with SMTP id a33mr426220ljq.220.1644954134959; Tue, 15 Feb 2022 11:42:14 -0800 (PST) MIME-Version: 1.0 References: <20220214175138.2902947-1-trix@redhat.com> <6590666e-524d-51c3-0859-f8bf0c43c5ca@redhat.com> In-Reply-To: <6590666e-524d-51c3-0859-f8bf0c43c5ca@redhat.com> From: Nick Desaulniers Date: Tue, 15 Feb 2022 11:42:03 -0800 Message-ID: Subject: Re: [PATCH] mctp: fix use after free To: Tom Rix , Jeremy Kerr Cc: matt@codeconstruct.com.au, davem@davemloft.net, kuba@kernel.org, nathan@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Mon, Feb 14, 2022 at 6:16 PM Tom Rix wrote: > > > On 2/14/22 4:44 PM, Jeremy Kerr wrote: > > Hi Tom, > > > > Also, can you share how you're doing the clang static analysis there? > > I'll get that included in my checks too. > > build clang, then use it > > scan-build \ > --use-cc=clang \ > make CC=clang I'm pretty sure we have a make target in Kbuild, too. It uses clang-tidy as the driver, as clang-tidy can do BOTH the static analyses AND clang-tidy checks. $ make LLVM=1 all clang-analyzer > > There are a couple of configs that aren't happy with clang, these you > can sed away with > > sed -e 's/CONFIG_FRAME_WARN=2048/CONFIG_FRAME_WARN=0/; > s/CONFIG_RETPOLINE=y/CONFIG_RETPOLINE=n/; > s/CONFIG_READABLE_ASM=y/CONFIG_READABLE_ASM=n/; > s/CONFIG_FORTIFY_SOURCE=y/CONFIG_FORTIFY_SOURCE=n/' > > I am using clang 14 -- Thanks, ~Nick Desaulniers