Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp63932pxj; Tue, 1 Jun 2021 15:14:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzexRMhSIqDTgFuRg3KS3AcKUkRpMwo0dVt4BenC66/LqM7EvQjevOf2fDArRWPS0eT6vfQ X-Received: by 2002:a17:906:1912:: with SMTP id a18mr3845543eje.117.1622585677810; Tue, 01 Jun 2021 15:14:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622585677; cv=none; d=google.com; s=arc-20160816; b=MDjAMWLT4Lzfius8kpa1uSVUKbj8Yh2oEwPp1s/tfhNXvml2EpW8AdwcfHb/lXu3xg rbNtAHj+d6qQo9a4w9Q3nMvfqIGsKlpAkXbV3hoZKRPCcgCpjvV4ToVJ31b6NYzECMnu ZiNQEr5k4J0rYu/uRKohdz9rMR78yFQW14Re2lmvpQ0sfK18J5wKA98nU3+axOzFiBqI Q4WuvKolwoBb9hCMHk17wALr3t2XWrZYAN0hiKyqqm2rLXzOUyw7Kz7TLe2J1ox0KSCw 3goLYab5n5mmKhmzeGOsZVm4HFTVT/XwLPddnYcVw9vlnMKMrh3Qb+qrMK6jffze2p6j Zn8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=gQRWjLhpoAcL1f0UUsLAbLVdyvmjcaGwSmImCIMpK8g=; b=brHyR+DeUfSKkJ5TFEezGD5eYseRHj0vJo0r/hJy2eSitBt9Qre0e/PKab6RqPrt7m qZwM61anU/PrxRtA0DV4v0OUVAOl9FGuSS50Hz+uyI51pQ2jB3SQV4v35BufF/9F+I8O GGo0X+3ZZx+4tfkj/MfrrNF8uTdjD5FgYeLxujI/DId6+YWaI2it6NQclRuzKmf9YWs7 lTGwtVyDkUx3TimkfJ+lU5HYfPnnZ0nPKabjWXHFNOAAf1SVj8uxi/+0IIc8EJ92n5sA c42Fy1EW/61jECLdAbKXbPUmRqR1zSttBd1ZA0muhm9+OGdGI5rCYe+OWpr/Tfd0fdv0 OiuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@embeddedor.com header.s=default header.b=bMNcVIOd; 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 a8si16684959ejc.334.2021.06.01.15.14.12; Tue, 01 Jun 2021 15:14:37 -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=fail header.i=@embeddedor.com header.s=default header.b=bMNcVIOd; 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 S235024AbhFAWO2 (ORCPT + 99 others); Tue, 1 Jun 2021 18:14:28 -0400 Received: from gateway21.websitewelcome.com ([192.185.45.191]:12834 "EHLO gateway21.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234740AbhFAWO1 (ORCPT ); Tue, 1 Jun 2021 18:14:27 -0400 Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway21.websitewelcome.com (Postfix) with ESMTP id E9B92400D497F for ; Tue, 1 Jun 2021 17:12:41 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id oCcrlatSrDedfoCcrlg1CA; Tue, 01 Jun 2021 17:12:41 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=embeddedor.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=gQRWjLhpoAcL1f0UUsLAbLVdyvmjcaGwSmImCIMpK8g=; b=bMNcVIOdSbAXlFOIuKZBAlQgHb rizHEbtPx/wzzA8zqcRapvlU8ysBb7UK1JtNxmi9ml0UM3aWv2vx56T2J6VDzc9qm9xnsicW6cPub wCWYuhcSS0L4MR/0nu+MH1rJ8KNNWRDQZba/bygsG2AVLOwhqdh0oJFFpMd9o5XRSrSqFMPMEoBHs 9Eycf2roWWXoQh436c20ZAonzOD6Dff1+OIQK/bdOQYuXJmaM3D8Dj2tQXEwxBZxBKCJLdeJal2Kx DBPDf7EnoxQyV365tcr0fc7lC7Q6+OAvSioS5JvoAErfDv+s5bNk5+LxyYo50rrDXoNxXtDKzCtmI JKx47Xbg==; Received: from 187-162-31-110.static.axtel.net ([187.162.31.110]:52568 helo=[192.168.15.8]) by gator4166.hostgator.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1loCco-000BPJ-Fv; Tue, 01 Jun 2021 17:12:38 -0500 Subject: Re: [PATCH][next] kgdb: Fix fall-through warning for Clang To: Kees Cook , "Gustavo A. R. Silva" Cc: Jason Wessel , Daniel Thompson , Douglas Anderson , kgdb-bugreport@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org References: <20210528200222.GA39201@embeddedor> <202106011220.AA0C1482@keescook> From: "Gustavo A. R. Silva" Message-ID: <0d53a68c-b445-1df6-43a9-eff1a54f8fce@embeddedor.com> Date: Tue, 1 Jun 2021 17:13:42 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <202106011220.AA0C1482@keescook> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 187.162.31.110 X-Source-L: No X-Exim-ID: 1loCco-000BPJ-Fv X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 187-162-31-110.static.axtel.net ([192.168.15.8]) [187.162.31.110]:52568 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 13 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/1/21 14:20, Kees Cook wrote: > On Fri, May 28, 2021 at 03:02:22PM -0500, Gustavo A. R. Silva wrote: >> In preparation to enable -Wimplicit-fallthrough for Clang, fix a >> fall-through warning by explicitly adding a goto statement instead >> of 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 25 in linux-next. This is one of those last remaining >> warnings. > > So close! :) Almost there! > Reviewed-by: Kees Cook Thanks -- Gustavo > > -Kees > >> >> kernel/debug/debug_core.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/kernel/debug/debug_core.c b/kernel/debug/debug_core.c >> index 4708aec492df..431749dd9ab6 100644 >> --- a/kernel/debug/debug_core.c >> +++ b/kernel/debug/debug_core.c >> @@ -1038,6 +1038,7 @@ dbg_notify_reboot(struct notifier_block *this, unsigned long code, void *x) >> switch (kgdbreboot) { >> case 1: >> kgdb_breakpoint(); >> + goto done; >> case -1: >> goto done; >> } >> -- >> 2.27.0 >> >