Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp847145iol; Thu, 9 Jun 2022 15:44:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDQqkxe52hsuxIbhDyO++4UUfrgCHIUxvsgYtVzYmtO4Mf8VGChLrCn5syu596K794IdmS X-Received: by 2002:a05:6a00:996:b0:505:b6d2:abc8 with SMTP id u22-20020a056a00099600b00505b6d2abc8mr109641488pfg.11.1654814664108; Thu, 09 Jun 2022 15:44:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654814664; cv=none; d=google.com; s=arc-20160816; b=k1+EOESF/B3ickplY3YCy9Se5ljDo7Sqs+ai/aoEhg0e/rAUwrO9p+c+54dPMZcz2j 97VSiIHtz86DXCheOhzVZjRvT6w08yN3FutxxVyJaKIvB4bY9KF214F25jcDpHpiGB03 nB7m2kXpPeEtVAV5pVsdT3RufEx8S1yj2An8MIpRKDPZlZ8luD0Krr+xPmTUdA+zV5Rj UhZ/tJeQx5DdaPcQoC8qNc8utw+Hpii6gz7kNe1ZJ+ILyEQT9SoblzFXenBPIiQ4kfWK iOOfR4SwhuJypBNAvxrAVtO9n5DDWMwwrt7vN8ylxkdv+hwJ2P7tD+XZiUgbPzeHWhib CSpA== 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=fWdTUxWRVXkKLWYheGOI11e0mL2XAHFKbZxg8ksMoZM=; b=WzBoVYqcR5uKmCu1n12KAkyX5mNAZw1rLYTYDdWYC1O/IC94CCEG7OtHfaImyY19Ct saBoC0UiujMwpbmfapt0TY/J/VQ9MeoRoXdDhztj+vbGXZGoNJOceHeTFdXwCWcDI/5D Sn00FCy+Y3l9e6uOijRtXyGfiA5x34eFBAwUsUt4ETbXGF8dRKePY+Dp84J1kPeaGQ3W k6wgOTwou4oKe3nVnSHfqOgp+bhta769k357GxxhjnGah3LkDKc4KpO3us1FQk750Yr3 iFJvdzOy+CuXwcAICSfBW5Qe3JbGLar726XNj1gyMtpVL4D+yQXnA0JojPBrw5cObhfn Z6Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=ezNDouTk; 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 j17-20020a056a00235100b0050de75d740asi10819649pfj.301.2022.06.09.15.44.12; Thu, 09 Jun 2022 15:44:24 -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=ezNDouTk; 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 S1345638AbiFIWT1 (ORCPT + 99 others); Thu, 9 Jun 2022 18:19:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345702AbiFIWTT (ORCPT ); Thu, 9 Jun 2022 18:19:19 -0400 Received: from mail-pf1-x44a.google.com (mail-pf1-x44a.google.com [IPv6:2607:f8b0:4864:20::44a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38E614D614 for ; Thu, 9 Jun 2022 15:19:11 -0700 (PDT) Received: by mail-pf1-x44a.google.com with SMTP id j10-20020aa783ca000000b00518265c7cacso12991749pfn.3 for ; Thu, 09 Jun 2022 15:19:11 -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=fWdTUxWRVXkKLWYheGOI11e0mL2XAHFKbZxg8ksMoZM=; b=ezNDouTkewW/awvW/cRvKC6jHhcMBl4eQkJi6sdP+X2J6iJMkd00jA2jaRJhpFY7aw yxivdcEq++4iV1GgB2ziv1ayV3oP8FWg/GB0Zo4bN9LSRrIbKMWW4pYYedFNqaZbtBdq LI7orAiKEXNDUMTMRTz+eYmtPr0ihFSVRZhCMEgns7LQjXXffU9ysRs8Jm7/xp/mkHV8 hqJ/WTn4IigfYhYdyyonY3s//N3eKAKkW8RZYgrVC9YsY682gIJn1c0bZa76vTplgKaA 3OGnJiqbOGhiGk4PrcLnGinCbRAB3xGsfKwPwyZscTB2mgetoP8/LmB/5HB6hMrHCgU0 s7qw== 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=fWdTUxWRVXkKLWYheGOI11e0mL2XAHFKbZxg8ksMoZM=; b=roYYKILK7G0+nOOs/4I3y7IOXWyXZ1DvdJLo2AqUmrMMDYcOXiHcnKeU6RCG+NpbJ4 Y/E4nk4VR262Bq/NwI62+JGYv2Zx6ScgXLprOpa24ueXYkhPVMfQc1xoOY4tiFZK2XUt GAIsqyMyKizqypZXE1E/3sUSMZroTJC7S2R+zt9gbHxCOvaNkMeigNuXyOa6bDeY+QWK WBivlfcKz5m3dE3+tOyQT8E7ftPCAASEwbSx8fDo56UkWaqqnRuU9u05HZ41L+Fosm+O Ut9/VJWJuvcIaIFwAMc7ISuPdM5aVSVD9knbg0Tx3EQO84OWIr0rqk80pnm9lHr//5jj +yCw== X-Gm-Message-State: AOAM531dTC/BVyy4h2d1d/7iN+ENL7EV8PFnIPlKRh1n1bIzDIXCEV/B eIfDM3ntY1zurSbcP0EJO6yJX/Ut X-Received: from fawn.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5795]) (user=morbo job=sendgmr) by 2002:a63:c5:0:b0:3fe:26a0:7abe with SMTP id 188-20020a6300c5000000b003fe26a07abemr10973746pga.152.1654813150612; Thu, 09 Jun 2022 15:19:10 -0700 (PDT) Date: Thu, 9 Jun 2022 22:16:24 +0000 In-Reply-To: <20220609221702.347522-1-morbo@google.com> Message-Id: <20220609221702.347522-6-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 05/12] fs: quota: 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: fs/quota/dquot.c:206:22: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] request_module(module_names[qm].qm_mod_name)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ Use a string literal for the format string. Link: https://github.com/ClangBuiltLinux/linux/issues/378 Signed-off-by: Bill Wendling --- fs/quota/dquot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index a74aef99bd3d..3b613de3b371 100644 --- a/fs/quota/dquot.c +++ b/fs/quota/dquot.c @@ -203,7 +203,7 @@ static struct quota_format_type *find_quota_format(int id) module_names[qm].qm_fmt_id != id; qm++) ; if (!module_names[qm].qm_fmt_id || - request_module(module_names[qm].qm_mod_name)) + request_module("%s", module_names[qm].qm_mod_name)) return NULL; spin_lock(&dq_list_lock); -- 2.36.1.255.ge46751e96f-goog