Received: by 2002:a05:7208:3003:b0:81:def:69cd with SMTP id f3csp170328rba; Tue, 26 Mar 2024 12:19:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXg+FxJcjurjGPWpPuC6Mx/YoCfpIzeNiOjf4CoUMTZHueiIREmqI19JyNlr9CFbTZBOHzdCP9HP7F5PLWAuSMtcrMN0DvZ81oyS60fVQ== X-Google-Smtp-Source: AGHT+IHAAoA/avV7hayuv8tbgwqd2BVw/K7iiOrHvgXrhzm0Sb6UywMspMejLb1HgeGBUNpZRKqH X-Received: by 2002:a05:6512:3133:b0:515:9568:fb14 with SMTP id p19-20020a056512313300b005159568fb14mr2741991lfd.46.1711480752965; Tue, 26 Mar 2024 12:19:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711480752; cv=pass; d=google.com; s=arc-20160816; b=A3YyzfI6CbFvFakQDEhfr7+tTrne/fKgJAULUMl+ck3aVCxREP2lRA406ySzxxqfuq 7JtFRQdFGqS/ZsKWbQhIOB+etSv7O+Cc+on5Fp2+ViaCP2w26rJjoX+KVdKW593bWCD+ uUZqhSYp+BW3UBYBdU+ZOOCqIrhOyDYz0RDQ4c+r7SsyRaPIN3NOHvjh0tGOEDzAEMnA kltH6ZYIBSVlN4dhfkznTHKboae7xH6yjwEV5UzkPt8Jfx/a1S8WXtSBuCvhNwNvNg98 bKopQc2CBYRTj5MjaT9YRNYsbJY264NFdSbGXcBoah5w7r7i1SvoFjtZXhO0ALGFd4xr 66cg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=vYgOqn25gz9ie7H+12IzY1nGkmV5SX8eunsh05XgwQg=; fh=pOo69cSo8dEjgzri48lvUufI2DYZUABBhWXcwwBCc6s=; b=RO0ESt9tJ42dkigVTtmg7UWMKlFJLncON8+l4Fo/RtSyg8yAk4bK1SGQGJzaBBWjXz 2iq59N6IRhhWNqWE1WCr/k7Os2iE62cMNtEsaRIs0VM42ZXBb0XfPTnW9KtQl4u56v7/ r/lyJLpK85Fa8L4sUEboQi1dnsm0plm4n39vhWlUeAsidSWPGkb9wFVNG2FMgMwEtdWh suff8YsxhC1u9zqqnXiKH6R8z5Ch2Ki9SDeeeg4cyRhF6bE1Qm1pLTNQW8wQrJ1mVDYf Yh5EUFh8nBvEKJBbKd+DnK3x8H/9nzsGDVTU0d6Uh0N0sxoRfiNQ6OLimIlD62CLX+FR I5eA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@paul-moore.com header.s=google header.b=Dd+KwLFj; arc=pass (i=1 spf=pass spfdomain=paul-moore.com dkim=pass dkdomain=paul-moore.com dmarc=pass fromdomain=paul-moore.com); spf=pass (google.com: domain of linux-kernel+bounces-119784-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119784-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=paul-moore.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id d8-20020a170906174800b00a471edb664bsi3755153eje.881.2024.03.26.12.19.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 12:19:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-119784-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@paul-moore.com header.s=google header.b=Dd+KwLFj; arc=pass (i=1 spf=pass spfdomain=paul-moore.com dkim=pass dkdomain=paul-moore.com dmarc=pass fromdomain=paul-moore.com); spf=pass (google.com: domain of linux-kernel+bounces-119784-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119784-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=paul-moore.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B09241F80B2D for ; Tue, 26 Mar 2024 19:19:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6659413D24E; Tue, 26 Mar 2024 19:18:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=paul-moore.com header.i=@paul-moore.com header.b="Dd+KwLFj" Received: from mail-yb1-f181.google.com (mail-yb1-f181.google.com [209.85.219.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0840F13CFA5 for ; Tue, 26 Mar 2024 19:18:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711480731; cv=none; b=YXPebKfQ1W3Ou1CvVYvdbIXvlyxJhgLAVyzmm50xN3SMRfxwFjSWgk6cQv8cslS5g5R/XsIXpIWNV+X37PqTgLseuQDJEynFY5wtdgHkOS1xRc5X3Q8pBBm3QH2qGq4FTmUEutQyJ/ESDwkWfJwYeOrbi2O8QLaz289jui9RjsI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711480731; c=relaxed/simple; bh=rIylzLX9J4lI4zws2LlXbhQ7UBlTM78dlQkpCoGuNZA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=P9jkIWvV+4XhZOTmf1WSWV4z3HcXVtexpLHAIlpvLpLgKfRotZ/Nss9TaYn2Z/huxi5sWL0e83krQhLjdpsR5NDAkgknNgLHN7QYRT5LNA8RgmZdy5pIBrlfq2LBqDFHZ/TQlgYFUvteO2tS4I9oDkVzDiKvlfqgkrXgrdoWrN0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=paul-moore.com; spf=pass smtp.mailfrom=paul-moore.com; dkim=pass (2048-bit key) header.d=paul-moore.com header.i=@paul-moore.com header.b=Dd+KwLFj; arc=none smtp.client-ip=209.85.219.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=paul-moore.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=paul-moore.com Received: by mail-yb1-f181.google.com with SMTP id 3f1490d57ef6-dcc84ae94c1so5665135276.1 for ; Tue, 26 Mar 2024 12:18:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore.com; s=google; t=1711480729; x=1712085529; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=vYgOqn25gz9ie7H+12IzY1nGkmV5SX8eunsh05XgwQg=; b=Dd+KwLFjuRZAD+4bISi9lY88kQwFwPRI9NXNiCTV6coGU5moFOYV9PfHPv5ndBM4Nt pbsS7dN7DezMKf1xFptgtr+DUggi6aJhAk3nZIg+blx6wgw/RFFd773CH0KSQtKqquQG e0GpWHrUrugJG4o4aOKQBEMp9FxAf9m9D4mhPB3c/rOHN2f4XsWHmPI8AP8ltEGgbocW twGQZuoU6SWNp2gg//d5PoNZaTIITQTkcZuBsq3p+V/oqp3h6ZhuJw7/Y6toUvKRsd6j 6GnoIpCyr9Ywgo28HTb9rnUuYWeZXZGF2bZczifK6jxYeoq3l2gFAL/hYnv5MLLEuCuN fmUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711480729; x=1712085529; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vYgOqn25gz9ie7H+12IzY1nGkmV5SX8eunsh05XgwQg=; b=jyQ0MXQ7+maCnyZxC/4ah4NpPGketRYGQsggrPdG477wKIxWV271atFqSilBBTi1yC JN+IW4h86tDKSJFXunRqh1tnPuG9uqV5ICE4wFidE9y22O2vktGMvMsqDVdQLM832MK0 cqqkzPugHpqj5VR9m8SLy1YXF3V2HvZSHkfTG1ouCJwpXtMJsuGB2nL83ID3kCaTiv13 nRs0Qe6w3X15aMtv2t0NxB5IW/mtD+ZOiBMYV0nA7ufjJU5Qo7PctWHm9ejne3oM/Qbx JGRwg7fKHX8IAZdgKKHo6j5MKUxo6SuMnHJvzVjwHd6I/D31r2EOhXBnUhxnnDYIUL2t PQFQ== X-Forwarded-Encrypted: i=1; AJvYcCXedmzvusUbZa54fvD637osgJIOBwYYmN9OK+QGljfXlZmHlRUewEkDOtbCoXJNBu00HAiftPTE5Z4DFj1oY91cnoSrNLtU/a8gov2A X-Gm-Message-State: AOJu0YzMxQZ5JnA8VLaphhhoZWmsrj6333+LzXMX984WwZAY909NpdMy eqILyYRwzT9Lzhk8FIWSMpPTbYvfTyIRnhYtleE+UWoJHCdnKbnJN/uCMCB716/ITLmr8SzqmAp Gkxr8c95S8kTs9FrPGdReO0GtrFE4H5rYm2oY X-Received: by 2002:a25:ac48:0:b0:dd0:2076:4706 with SMTP id r8-20020a25ac48000000b00dd020764706mr3510341ybd.31.1711480728958; Tue, 26 Mar 2024 12:18:48 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240315125418.273104-1-cgzones@googlemail.com> <20240315125418.273104-2-cgzones@googlemail.com> In-Reply-To: From: Paul Moore Date: Tue, 26 Mar 2024 15:18:38 -0400 Message-ID: Subject: Re: [PATCH 1/2] yama: document function parameter To: =?UTF-8?Q?Christian_G=C3=B6ttsche?= Cc: linux-security-module@vger.kernel.org, Kees Cook , James Morris , "Serge E. Hallyn" , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Mar 26, 2024 at 3:18=E2=80=AFPM Paul Moore wr= ote: > > On Fri, Mar 15, 2024 at 8:54=E2=80=AFAM Christian G=C3=B6ttsche > wrote: > > > > Document the unused function parameter of yama_relation_cleanup() to > > please kernel doc warnings. > > > > Signed-off-by: Christian G=C3=B6ttsche > > --- > > security/yama/yama_lsm.c | 1 + > > 1 file changed, 1 insertion(+) > > One small comment below, but otherwise looks okay to me. > > Reviewed-by: Bah, let's try that again ... Reviewed-by: Paul Moore > > diff --git a/security/yama/yama_lsm.c b/security/yama/yama_lsm.c > > index 49dc52b454ef..f8e4acd41b72 100644 > > --- a/security/yama/yama_lsm.c > > +++ b/security/yama/yama_lsm.c > > @@ -111,6 +111,7 @@ static void report_access(const char *access, struc= t task_struct *target, > > > > /** > > * yama_relation_cleanup - remove invalid entries from the relation li= st > > + * @work: unused > > * > > */ > > static void yama_relation_cleanup(struct work_struct *work) > > Should we also take this opportunity to mark the parameter as '__always_u= nused'? --=20 paul-moore.com