Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp5598766pxv; Wed, 7 Jul 2021 07:29:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOK4JVZmzCTUivJ+vwjfUETh6rB9MAX0lcW3oyOXA3yGTk9W+nORMq0dm28JMMNulKKvI8 X-Received: by 2002:a92:c7a7:: with SMTP id f7mr18147663ilk.154.1625668172155; Wed, 07 Jul 2021 07:29:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625668172; cv=none; d=google.com; s=arc-20160816; b=ZWTtw/6CMP15u9aMZtIMFVBBeMm5bQQWkg7gBpOxiNn0yp+d2Vw+ic8VUnKCwZiRv6 wl9ZCXSBkNcX8xmWwxFUGyoaH5IT6A0S/pzHJx+Xt+Q1rg8QxC5bY0PkJXCiWIMypNxj 4Ujb9AZxveABHkeL5BQZKz8/B9B9tdxQZnZ0Abb4JYvPdST40Jxs8Km2IereLub6RYQH I/obJ+w5h7tretTVnfrL2sTaFzP/aNeLI1mMAEX14O3SBamLLs2d6Wuwt9BFVAzKtK00 AVEffs/VX9IIkrlA8L1uIef+TxzQ2sWQszWr02409NSmNuAzKx2k0Juz03E+pAhUT4f4 XY5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=KWZXSLTZqkexTz9n35/8vPBRlnaFzy3QEtINpRa5V0g=; b=lO+fB+tMhmHjySDiyFWJFSiz0cjBvnWcwp41FteZwSnPcZVvIM6L39NgMeEENsvHng MjWfUFtmXOQfK7Lvv1taHr3GYZ9gDBtJWuHuEeyks13Kj9VPhmIcwHj0v0sIFEyUYYKP AIBTA+0ekhn62+hMAfugnzU4Ai75uun7oVHooMBhJs50DgCSNfhghTac48jp/kcs/Z+9 Qy7u1G8lbswqoqPD4e/RdI0v5zruEjUNZe9RfTKvc44uWfqnTrqkBmXwMFfERaNIzgF9 Jovqmop5BvBYapb2bkPKHUaNLZsU6ShG/tG/iNQ5MCy1GMR9r307xYWoYOR1pVpFGPrP VlpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.com header.s=s2048 header.b="uIA/re0u"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r9si8711072ill.121.2021.07.07.07.29.19; Wed, 07 Jul 2021 07:29:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@yahoo.com header.s=s2048 header.b="uIA/re0u"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231643AbhGGOaH (ORCPT + 99 others); Wed, 7 Jul 2021 10:30:07 -0400 Received: from sonic309-26.consmr.mail.ne1.yahoo.com ([66.163.184.152]:38191 "EHLO sonic309-26.consmr.mail.ne1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231737AbhGGOaG (ORCPT ); Wed, 7 Jul 2021 10:30:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1625668046; bh=KWZXSLTZqkexTz9n35/8vPBRlnaFzy3QEtINpRa5V0g=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From:Subject:Reply-To; b=uIA/re0u3NoguTabk9VAU0dsPlXV/uiRvVPgGEooTM15da4T14CsOMk3sKmKcFv9Z2QPrDbSI5HewJbyhJNGnx/usRUNMi/5ZmQ/YHFBekXSwlU4YR5aAPPs9XDoyLGOLbyLLSsextPCYWlia3bZwdvZezqJWh9KjyW/wAzDA2IX4E12zOW3rNLAavg814xbJdF6iaKYaCp095SXSbj9Qevwu44wGmIXcm3txZehFCwGdInfHUEs7TRREz8Xsho8cKLIQGwzzKZsLV1GiUVMgwtOtpJBdejX1gNeRHP05XMvb3Uz7YiMuSwg3vBklHWFXMh3Hr8qLaS7W7pYH9uT5Q== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1625668046; bh=z5+rryIi1ttAcLde+6HfivHZNK7LEyJibDl5A4uTWKA=; h=X-Sonic-MF:Subject:To:From:Date:From:Subject; b=XXblwPgz8XJ8lH+2r3kXXD9aaC7BZ4yKkFzumhXfGc2Hm+DICiwT5sKSuHzVTtBd52i/LQR48jowDh0AtfMf2WTTV7GLjbuR7lMvDqvkKYIz+b0uTSYmwsjW2AnZT9wSRAv383dvFe2vPyNxSnK4xBZcHL7pZf4wG7al38AWga3V/EC/tEJ8unZh27wNji836umQaJAxjIzwHQdIdq2clwpcMZvjfOX0J/9pWUsxG+Db0JT0na+A8OJE8FvuhmdJM6Tn9Jh16aaljoz5pN7vRIvGbTuXZDYotkBkGePjspvnokAA9qFqtH6lq3W50S1mYnpwXKrnY4XEX+J3rYhFrA== X-YMail-OSG: OAYSvsUVM1mHe0cBRAldvk0zm.lQTG3tVraufCPAzi8XK0DZr6g29lbM7cplVwH 5kX4ynWVWKlZEhW5Inx_o2geeR.B1l_qBpw.zb1Ad3R4VfSlKxc8oBklnJIucKbO9hJ7N6t72SzI m.7_CynyQ0eF2v4VsPPRUPddZZNGrPxnQRaRlyfAsVxdcM8Q8yd0Nx.9aJxTooUJYCwUFvLTyPU4 SiK1o6i6io6furQ6T0ybMV7Fei7tSjMq7xkt4Z3p81RIQC4yeeZFOMDQzPHSb2q81yKwaR9Hl3X5 UslHs.diGL1wauZtKXf3SSNPNlOEVnPJ877K.8S08JH_P1NpWmPHcV4zUnMIvtw7P77qFyBOLhxU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ut8FODnPnoylVnhDxRzGcNswPwyXrRJ6UxvjgJW9fMnAqFh8.QBhus501 .OtddjWdcz4w3Yc7ddv27a0fuuj7uSkmzkfid58t9nok9.ij4Qtduw.X47YGsV0AaLzmmHhIAz5z apO3rqC5A1H3Pr1PJbq6zyC35ATtwaVj9h_z.adfbPE2yiKFS0XeGIOlemTSSPrTgdL3jrHvPyPp kNZRaL3ooLwUP1Jgl7UaIdlkdvCvYTAzHZm8Qkrvr2fl3ME768TzLqwZDNGiO4O9B5dcz4EZynLL cXyXoE9sW7haYOufkOW523tvmIUnBvgpI5gv8j_YMhop53kbpQs2y_ZLi.YDp1EQHLGNS0HcNOTo b0BAleSlNrg3MWmVTHZfnLK6w0trKLX2_PrWbGUez9EcjOSu0ZR4.FugJ X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ne1.yahoo.com with HTTP; Wed, 7 Jul 2021 14:27:26 +0000 Received: by kubenode516.mail-prod1.omega.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 1a742fe85099dc2bc57dc9ee9f1f5498; Wed, 07 Jul 2021 14:27:24 +0000 (UTC) Subject: Re: [PATCH] smack: mark 'smack_enabled' global variable as __initdata To: Austin Kim , James Morris , "Serge E. Hallyn" Cc: linux-security-module , Linux Kernel Mailing List , kernel-team@lge.com, Casey Schaufler References: <20210629134144.GA1168@raspberrypi> From: Casey Schaufler Message-ID: <304f06e2-ee01-2b25-0d5e-750d2df6325e@schaufler-ca.com> Date: Wed, 7 Jul 2021 07:27:20 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-Mailer: WebService/1.1.18469 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 1669 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/7/2021 3:14 AM, Austin Kim wrote: > 2021년 6월 29일 (화) 오후 10:41, Austin Kim 님이 작성: >> From: Austin Kim >> >> Mark 'smack_enabled' as __initdata >> since it is only used during initialization code. >> >> Signed-off-by: Austin Kim I will be taking this patch for 5.15. You should see it in next shortly after the 5.14 merge window closes. >> --- >> security/smack/smack.h | 2 +- >> security/smack/smack_lsm.c | 2 +- >> 2 files changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/security/smack/smack.h b/security/smack/smack.h >> index c3cfbdf4944a..99c3422596ab 100644 >> --- a/security/smack/smack.h >> +++ b/security/smack/smack.h >> @@ -302,7 +302,7 @@ int smack_populate_secattr(struct smack_known *skp); >> /* >> * Shared data. >> */ >> -extern int smack_enabled; >> +extern int smack_enabled __initdata; >> extern int smack_cipso_direct; >> extern int smack_cipso_mapped; >> extern struct smack_known *smack_net_ambient; >> diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c >> index 223a6da0e6dc..cacbe7518519 100644 >> --- a/security/smack/smack_lsm.c >> +++ b/security/smack/smack_lsm.c >> @@ -54,7 +54,7 @@ >> static DEFINE_MUTEX(smack_ipv6_lock); >> static LIST_HEAD(smk_ipv6_port_list); >> struct kmem_cache *smack_rule_cache; >> -int smack_enabled; >> +int smack_enabled __initdata; >> >> #define A(s) {"smack"#s, sizeof("smack"#s) - 1, Opt_##s} >> static struct { >> -- >> 2.20.1 >> > Dear Maintainers > > Would you please review the above patch if you are available? > It might not take long. > > Thanks. > Austin Kim