Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp5414759pxv; Wed, 7 Jul 2021 03:16:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzh3GR6452XyizpGGO9Pe/5Fhmx+eY136eOzbMN/P8Kj+3W353pqo/bfqAHYAbKVg3/gtAc X-Received: by 2002:a17:907:94d4:: with SMTP id dn20mr23470845ejc.93.1625652966558; Wed, 07 Jul 2021 03:16:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625652966; cv=none; d=google.com; s=arc-20160816; b=IOVjEcaqatwBx7DFOsdDuU25QeMgpY9NSkmjRmhG9uXxf76RCyyPBQLMNEFNNbBzyJ vHN2H400FfOpE6x94X52k5iD0WIrUIuEi1LpYt52ZTkp8O7zE+p4vXinvlMlkwLo4zJQ pEHzWlAxl9z+GC0WDG9NGqaRW83d9/9mQPFMhSn0OA4TB8pVvVwf7wbPdxnqa8NrQxpt H+gyhRLkCkXdNeoLO8IRoBM7JU8OntLTYVcKy4Oxl0z1onEQI9PEAPnPk0VUsOVPFPhP wxTzBrUoTWCLJvGXmYJ+fs2/rKtFzcJai8ceIMdk+kIBFmxmCLGoGo74jCIpoEKZ7Y+g zvJQ== 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=/v1v63E0rW3Sz0wWz+xxvrNljXSoGIcWgLgvmV340X0=; b=HpOk3gR0W9tV/ApBGx3YP10of1COkKmOs8ZNmCDNijqrSXJmUCIo/LhLhMQ1wg1Gta CJDYW/2pW02Mz7a4kf/WSQlpmTKTvQKWTnvh92hS6JResUHJSFPzL6m2t2GzTid9CuG1 iamAkmsWhOaw1Nm7fCS2d2I1lOFTvC2uqH/bxtkGtvHNDG9xPIZQe/nCC3Ub2wAclCpb VqmaranCpmL1MFRn8J8yRGt+TUCFXRTq37dniw4YRt8A8bAX+VliVtsUFH9LIsn+ktAe 7YG6YMXZ9LvmyUBC2rePtYC6LXsLXbsXconbLnV/Etu+3zf2UVdhoJTDaZLqioj07ncB WkyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="r/ffmgD5"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d25si16971027edx.409.2021.07.07.03.15.43; Wed, 07 Jul 2021 03:16:06 -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=@gmail.com header.s=20161025 header.b="r/ffmgD5"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231248AbhGGKR0 (ORCPT + 99 others); Wed, 7 Jul 2021 06:17:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231137AbhGGKRZ (ORCPT ); Wed, 7 Jul 2021 06:17:25 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D689C061574; Wed, 7 Jul 2021 03:14:45 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id b5-20020a17090a9905b029016fc06f6c5bso1309439pjp.5; Wed, 07 Jul 2021 03:14:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=/v1v63E0rW3Sz0wWz+xxvrNljXSoGIcWgLgvmV340X0=; b=r/ffmgD5xpCW0UJzyqwV9Mx7X8KN1SMy7aB/k3mI0d4pAONd+gY31jASH6L9nCcTaS 0MGJ+jU9vM3u7wCsppsvc+O/NXDbBEBpGChF78KO1cOMV8SGs04rTTxf+0MXZ1BS25qE 3vws7QMETu80NK3u9QrnmfahUigoLLj/mIx1Uc4aN+rPQfPh2cN+FZ0QXktseSVfddkr YyfX+lliHgO1yyz7n+bHbn5NpbFgOIGVJp+UqXnEMM3f+0TZ0brlXLV+a3hl7MZq8m36 Khh1g4Yt/r+keuwQzUcS3SsaMW7xCmKo3wGcYogaHhfUkEhUa4qCltalihP+/7/uZh4M twyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=/v1v63E0rW3Sz0wWz+xxvrNljXSoGIcWgLgvmV340X0=; b=eTRHR/quupv60CXAliiUSGpFOVx+abhYh596jJ6YsERiznYugo/jHLEVk8Fa1SISwC 7dPZU09lDwaA9vOxQzOMA8xycn2qrObO1M4PGGCzdlQRHN2txdfjrG+fQZetfyzNLzVI ARU73iHpmUGGBd16qy4YUe53dlqvFOzoJlBxo3NiI2xl46Qtx8BNzQRlF9uI0i2QjCSN xzqS7uD9gsx1qXq3CydoPCNpURsaU/++OnlYJFtvqRq+r3ertxABD4smdRlHZSb83E/g NntJhAd5LBBXp618NulDGnXSMArxU9XPbZltjl8/06QcIJr0z4A1G4izVFn7gr4UVdGo rYcA== X-Gm-Message-State: AOAM5333phzNkl4QenboEASl3XZQBAPc3QUPMdTsHVTovS0zl6x7vAdw NeuWNmqkitsq+suHZoW0JKCaWR67CuwU0PvEQnumoSKSfzg= X-Received: by 2002:a17:903:31c3:b029:ed:6f74:49c7 with SMTP id v3-20020a17090331c3b02900ed6f7449c7mr20212312ple.12.1625652885021; Wed, 07 Jul 2021 03:14:45 -0700 (PDT) MIME-Version: 1.0 References: <20210629134144.GA1168@raspberrypi> In-Reply-To: <20210629134144.GA1168@raspberrypi> From: Austin Kim Date: Wed, 7 Jul 2021 19:14:33 +0900 Message-ID: Subject: Re: [PATCH] smack: mark 'smack_enabled' global variable as __initdata To: casey@schaufler-ca.com, James Morris , "Serge E. Hallyn" Cc: linux-security-module , Linux Kernel Mailing List , kernel-team@lge.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2021=EB=85=84 6=EC=9B=94 29=EC=9D=BC (=ED=99=94) =EC=98=A4=ED=9B=84 10:41, = Austin Kim =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1: > > From: Austin Kim > > Mark 'smack_enabled' as __initdata > since it is only used during initialization code. > > Signed-off-by: Austin Kim > --- > 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