Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp861393iol; Thu, 9 Jun 2022 16:05:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0DVcS0bvfyzNyeG2ylCIS8gO4JwUtBIRYJhOD6Bhb/DI2qru6vNVURrVo/06aqjAiRLbT X-Received: by 2002:a17:907:1c91:b0:711:c834:754c with SMTP id nb17-20020a1709071c9100b00711c834754cmr23258498ejc.85.1654815933821; Thu, 09 Jun 2022 16:05:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654815933; cv=none; d=google.com; s=arc-20160816; b=TPrSe0yRnD5j4N4cDyKJ97Tu94p60cTnSbek5sw9T2lPMbyEhkw+USnyIETyEMdGHH 9JNva64c7WbwbLHJuPyfO0j7pmXEuMMfRLSi4/lWP53o1LSP6f5hmoYSofehhxzYpZTw Fqk9MSOW8rsDjvlfOK2R0tq3psLwXRTuShdVHHgeghd+LS01anzyu0uERTsXOBrsGOVm Gx1MMlWYO41pf+iUeYrSY/Pns2/7y2ZEDONwiqEaOoH9FJmVc+cx4dnVLrPV38+dDSCF 21uUQ2ZzCQnrOUVUx8/oCqVeuRpI+sWngn10zvqarLMmPEZ7zYVmGScKdHBn17XZW/uA HowA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=yboyFArx2lHvBt01l8NpldAEI3xLVVvkRY3YCO31PQs=; b=TQl6YTyWbQeu6bivfianm+50e/EkYcHSeEYRdKH3LnHDjPin3bisd7PgAJcD0wrZyC 6MkA1q/AMFQ3saS/OIR0AZrBkNrRq+HQIIIcibMC+ULFro8wCsASR+V+0ip+uN3otO4h v8ucdxfiU+GQboEqV7kj0MPn9eocRIKD1NU39xTMdKUEe9HMb9kIpur47Vu9y4OQCcD/ eMrnApfWYfm3OMa53PoiZZncBkroWS2yw1acoiQ+Ymq1iZCpUqV6qtFDjzbPI+Q7+7G4 nLK6cR1Kmj3gIL9i6naSsgtSieYnez3JyC94pKF9qgg8tAHR7Fg/l/kiJ1xokMxiWpPt FtXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=E9tSuZ6h; 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 r23-20020aa7d597000000b0042df7316065si24426747edq.77.2022.06.09.16.05.06; Thu, 09 Jun 2022 16:05:33 -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=@google.com header.s=20210112 header.b=E9tSuZ6h; 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 S1345289AbiFIWV7 (ORCPT + 99 others); Thu, 9 Jun 2022 18:21:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345457AbiFIWV4 (ORCPT ); Thu, 9 Jun 2022 18:21:56 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 594B7562CF for ; Thu, 9 Jun 2022 15:21:50 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id k73-20020a25244c000000b0065ca88b381aso21347625ybk.2 for ; Thu, 09 Jun 2022 15:21:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=yboyFArx2lHvBt01l8NpldAEI3xLVVvkRY3YCO31PQs=; b=E9tSuZ6hKkd5R9UrAClvzMvLuSapw21MRvFh9K5m/Q4W/Ne6NP2WMWfSPzasz8wKZX Mng11d6Obxtbq83lWoSaFsdBiVCu3gb6X9dNoHMi3E7qOKWwZUm9cJAU6WOY5s+S4WcD k0KWGk2jmTkZOAqD94Ix96O/6kgOmQ/r+QpHomefwKvJ5cV0MNofmxceF2lXxoFWF6gg j5Cs7IkuMhKv2Pf+5++JwO5hcoMx6SP3if8FmA4NjIla9U/uK2//v1BfU0Tfe7AV8KrT Ey/sE8DleSJieRPHEDBL1hPn4naIWW02H/aWpnYArbukY4zZLmv4GV2t/e5g12dM+Qzj ZcQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=yboyFArx2lHvBt01l8NpldAEI3xLVVvkRY3YCO31PQs=; b=0yGBmyb+iih8Y+FW33Uo4CsD+f9HPVlTEkeEVJ3MAdK91sn1Krr5NoRjlhgpwfRehJ 6SSqaqqv+fsUQ/AMv+9qrszdKb5W5CnddPNzWox2uocBMZFOqiuv9UbwOpEJ4q8qUCpA 43o/qxFd0+d/ui6I+STfoP/9Y+8Zurmn244P/uhthFa5/KEC6Qo0g8qpPoblLAQaJVEh XUaYQq9aJjZ/zuUs/RadKldydvGmY0eljdPVE5JyRLtRLjF/IWfdlCv0Flq1WH9rQyBF xBcxiQCOB/AEj+jKd1MODR7hxbvH5vHsCkzPmcDPlayXD2aswjpomGRwfQwVZnprHIZQ D7pw== X-Gm-Message-State: AOAM532x8e5PVyEFRb7y10AkVvjSCnZCgS8hkQ0VskARipC3ht6UplWh ympFE/aF7xfNOxxWC0mfO9GCBxOY X-Received: from fawn.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5795]) (user=morbo job=sendgmr) by 2002:a81:c248:0:b0:313:3c2c:89cd with SMTP id t8-20020a81c248000000b003133c2c89cdmr17003210ywg.175.1654813309307; Thu, 09 Jun 2022 15:21:49 -0700 (PDT) Date: Thu, 9 Jun 2022 22:16:31 +0000 In-Reply-To: <20220609221702.347522-1-morbo@google.com> Message-Id: <20220609221702.347522-13-morbo@google.com> Mime-Version: 1.0 References: <20220609221702.347522-1-morbo@google.com> X-Mailer: git-send-email 2.36.1.476.g0c4daa206d-goog Subject: [PATCH 12/12] netfilter: conntrack: use correct format characters From: Bill Wendling To: isanbard@gmail.com Cc: Tony Luck , Borislav Petkov , Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Phillip Potter , Arnd Bergmann , Greg Kroah-Hartman , "Rafael J. Wysocki" , Jan Kara , Andrew Morton , Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jaroslav Kysela , Takashi Iwai , Nathan Chancellor , Nick Desaulniers , Tom Rix , Ross Philipson , Daniel Kiper , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-mm@kvack.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, alsa-devel@alsa-project.org, llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_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 From: Bill Wendling When compiling with -Wformat, clang emits the following warnings: net/netfilter/nf_conntrack_helper.c:168:18: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] request_module(mod_name); ^~~~~~~~ Use a string literal for the format string. Link: https://github.com/ClangBuiltLinux/linux/issues/378 Signed-off-by: Bill Wendling --- net/netfilter/nf_conntrack_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netfilter/nf_conntrack_helper.c b/net/netfilter/nf_conntrack_helper.c index c12a87ebc3ee..1e0424d37abc 100644 --- a/net/netfilter/nf_conntrack_helper.c +++ b/net/netfilter/nf_conntrack_helper.c @@ -165,7 +165,7 @@ nf_nat_helper_try_module_get(const char *name, u16 l3num, u8 protonum) if (!nat) { snprintf(mod_name, sizeof(mod_name), "%s", h->nat_mod_name); rcu_read_unlock(); - request_module(mod_name); + request_module("%s", mod_name); rcu_read_lock(); nat = nf_conntrack_nat_helper_find(mod_name); -- 2.36.1.255.ge46751e96f-goog