Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4262825pxj; Tue, 8 Jun 2021 10:06:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNbGlent4AtZBQragnA9Qx0pdGfT7qJg8EibikKVfBS/E2v9EszdrYKfqFwHT1qD+koVBQ X-Received: by 2002:a17:906:6bc7:: with SMTP id t7mr24863390ejs.267.1623171966307; Tue, 08 Jun 2021 10:06:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623171966; cv=none; d=google.com; s=arc-20160816; b=DtghxALeKWPDl0VIB7Je1nxoQLaDc78Z1WWkNpDrB+JOdjrJzH7fvz12usH0OVsno/ Lx6mpWwGlEqLdLwca3raLaHIQ/IZj5YYNc7VabIhcITcWNzFfiQ5g07P4r5D+MGIHxJN fSNsJEFFgcnWVp/GtfycM+0KWnaTFgSbKsHlnmy4aMCnonBEkE9H8VXfyHlZJLsLdhTl nHtA281dZHKCrkgejv1L/XRLaAJUaQe/43KtYEMOBCZet8vz+dHd404QOg42GmmyXdem Cb3KO0PEgJ88I+cD5j3dFzlhWTIh76ds+dBWFtyYFvS95HlPKk5YVQfjwm6d0Nzt8LTz s96w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4usFl7sIsVthQj7CAaTLNOirYn+9w5CcbbsPb6gzTZs=; b=WVTlGHRTWPFIjFr/ZC1Vt3fGRVxRvZoqvL+47dPKCkG+hzO0BNYPq/85XOSCI7nnTt QIUCiya3gcWzd3+zv5WSvKB3UTt+xfeShyoMgQPSf3fqKZ/uJXg3UMRdrA1ijSh6Oew9 RSpSFZO0GHchTah8rmkezP8r2ClndsNYU4R0KJMfy0t1Sg4NCDHlvYVNpDE7Q8OD69T/ mjoWWa6IoedlzyR06sBZnNCyQTjJTY+Iq6pmPb5x5xHGag4T7+L65PymhF4vFWGmgJdP e2aIatRD2/PLK9d+1j8WbfoDwbrVfZdBYr93vdLKwbJHd9QL4AfFZ9NViey5wbTY56am KOhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JlUf729L; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n15si199294ejl.587.2021.06.08.10.05.37; Tue, 08 Jun 2021 10:06: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=@chromium.org header.s=google header.b=JlUf729L; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232541AbhFHRFb (ORCPT + 99 others); Tue, 8 Jun 2021 13:05:31 -0400 Received: from mail-pl1-f178.google.com ([209.85.214.178]:40802 "EHLO mail-pl1-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231278AbhFHRFa (ORCPT ); Tue, 8 Jun 2021 13:05:30 -0400 Received: by mail-pl1-f178.google.com with SMTP id e7so10984291plj.7 for ; Tue, 08 Jun 2021 10:03:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=4usFl7sIsVthQj7CAaTLNOirYn+9w5CcbbsPb6gzTZs=; b=JlUf729Lw0qh8gpM+lacYrwI/BZHfR8iaIh6HWob68cqLRbEOcHJt9U9t2YgpQU93j 5p+//oTnvpy2Z43uQrbn65F8sQfCvpsHOcdByFr2F9G3lB39uVlA7OfOv5iL0bwRwVfq YTTgYWPVApdUTu3XoW2nGATAhWdVzSTq61Bg8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=4usFl7sIsVthQj7CAaTLNOirYn+9w5CcbbsPb6gzTZs=; b=KtS5ShpFBFEBPU/f/1hxR5P4IFq7IbYZ5ZJmDVN5txa8FybPZHyRxpxW2APqFGLKBU uk9gldiDlWVZSGBjMXWy0zmHtviwfJ6FWZonnJ7bgBeGTObrR23Jaw15nTZfJ1rrN2OS xTJ8bTAXStIkSZnIO2b6XpboWxlaSJyTAtLMJzAKeNKTReo8ACPQiLjZ0ubWJan2FBct tqYfnj1E+Vgu+s2dqgUfkYqSWQdI4R5PbAKBDfekXIJWVgvMY1V9WDe4lGfVkuCxvZKn KyD5lJ7WvdjDrj2rghGZsyN9ZAJnWKDKrAg9wb+xXda7ZVIU4CElhBmgxwp9utHgyqeA 8HDQ== X-Gm-Message-State: AOAM530flSa5JsRtxfIy2U63q6cfGYTMxHl6PvOqupXyBvrYrBWD6N1X snO4nKTcR/a5l0LA8nPqtq33HQ== X-Received: by 2002:a17:90a:b28d:: with SMTP id c13mr5823656pjr.80.1623171757403; Tue, 08 Jun 2021 10:02:37 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id w2sm11476540pfc.126.2021.06.08.10.02.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jun 2021 10:02:36 -0700 (PDT) Date: Tue, 8 Jun 2021 10:02:35 -0700 From: Kees Cook To: "Gustavo A. R. Silva" Cc: Mimi Zohar , Dmitry Kasatkin , James Morris , "Serge E. Hallyn" , linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH][next] ima: Fix fall-through warning for Clang Message-ID: <202106081002.252C11321F@keescook> References: <20210607204934.GA63263@embeddedor> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210607204934.GA63263@embeddedor> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 07, 2021 at 03:49:34PM -0500, Gustavo A. R. Silva wrote: > In preparation to enable -Wimplicit-fallthrough for Clang, fix a > fall-through warning by explicitly adding a break statement instead > of just letting the code fall through to the next case. > > Link: https://github.com/KSPP/linux/issues/115 > Signed-off-by: Gustavo A. R. Silva > --- > JFYI: We had thousands of these sorts of warnings and now we are down > to just 13 in linux-next(20210607). This is one of those last > remaining warnings. :) Looks right to me; thanks! Reviewed-by: Kees Cook > > security/integrity/ima/ima_template_lib.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/security/integrity/ima/ima_template_lib.c b/security/integrity/ima/ima_template_lib.c > index 518fd50ea48a..8f96247b4a5c 100644 > --- a/security/integrity/ima/ima_template_lib.c > +++ b/security/integrity/ima/ima_template_lib.c > @@ -119,6 +119,7 @@ static void ima_show_template_data_ascii(struct seq_file *m, > default: > break; > } > + break; > default: > break; > } > -- > 2.27.0 > -- Kees Cook