Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp712860ybh; Sat, 3 Aug 2019 08:14:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxsdAQApz06brJokgy0nWWvTqhaZxb66b+59vz5n8quUP2jHCSFPOoRJMVsaYvA5HGzMWvu X-Received: by 2002:a63:381d:: with SMTP id f29mr132102792pga.101.1564845263574; Sat, 03 Aug 2019 08:14:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564845263; cv=none; d=google.com; s=arc-20160816; b=IG9xjikvlKb+VjQPhnx5T46tAuhoS883qkUOLUFTugKvD2TdrM98NWUIYHHEqg1iUs CXfstZaeRka6bdB4dfEoaJfA3UvY/6+qewHthiEZqFfXo6Gt1l2zj3Sq4p86K2Y0GFc6 ++pUhVqRG274ZHyoM5VwnabNmAPo7M5+OlQel+au58ZRRasaXluX+rOTd3BFJUUomIFJ L8mmXdF6vuazyiz6+ezo1SboEGFI6EsMpHRp+wDE1026MWsKg6sqStaoCIk7g+nWp5/b PXv3XsD53f2DsvYaS06gS/aK8jL+lIPSbYPZvQOgck2EGmQhmBubuXAWq2yEvMN+oFV7 qWFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=HdMIn3y1s2BYJ26No7otlfTZbhFJTpV4IFKBCWS/hTw=; b=QdIkhQspTjqhxsZH4T5f4mqTbcEKCMxyxdRFTCBUjE7LVwBiA+SGSFo43uhzfAxDyM Bo3MUmjT96rNaiW3PYUMkNEjLbAlit502vbz4t1wZymypRyqPG0y3KrGh8hloYcS+ilq HIZaAQ4K4TKmG+AR3dmSh7IeuGW+AS/bHdjWzye2fLZkHe2TKhxhQoIXhsIMv1/MVp4d RqK1IvdtcZvpH+58/qNusGKFBTGkp6ujcWDvmxMd0fvHbH6L2WWgvIdBlQa40JbrL+91 YSLU1LmSH3xs9NmtZ0T/cUJeHNb+fe7BZQi7Yd27sbdO+C/9tWzfBWM70zzCeu4P/i1x 8AuA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k11si35696873pll.377.2019.08.03.08.14.08; Sat, 03 Aug 2019 08:14:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390352AbfHBQQK (ORCPT + 99 others); Fri, 2 Aug 2019 12:16:10 -0400 Received: from smtprelay0053.hostedemail.com ([216.40.44.53]:36721 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728853AbfHBQQK (ORCPT ); Fri, 2 Aug 2019 12:16:10 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay07.hostedemail.com (Postfix) with ESMTP id 432EA181D3419; Fri, 2 Aug 2019 16:16:09 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::::::::::::::::,RULES_HIT:41:355:379:599:800:967:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1539:1593:1594:1711:1730:1747:1777:1792:2393:2525:2553:2559:2563:2682:2685:2828:2859:2898:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3872:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4250:4321:5007:6119:6120:6742:9025:10004:10400:10848:11026:11232:11658:11914:12043:12114:12297:12438:12555:12679:12740:12760:12895:12986:13069:13255:13311:13357:13439:13845:14096:14097:14181:14659:14721:21080:21611:21627:21811:30054:30070:30090:30091,0,RBL:23.242.196.136:@perches.com:.lbl8.mailshell.net-62.14.0.180 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: dad84_52659459e0a12 X-Filterd-Recvd-Size: 2820 Received: from XPS-9350 (cpe-23-242-196-136.socal.res.rr.com [23.242.196.136]) (Authenticated sender: joe@perches.com) by omf02.hostedemail.com (Postfix) with ESMTPA; Fri, 2 Aug 2019 16:16:06 +0000 (UTC) Message-ID: <36351fc3177bce273ecf47dd00b013306026aa2c.camel@perches.com> Subject: Re: [RFC PATCH] compiler_attributes.h: Add 'fallthrough' pseudo keyword for switch/case use From: Joe Perches To: Kees Cook , Pavel Machek Cc: Neil Horman , Miguel Ojeda , "H. Peter Anvin" , Peter Zijlstra , Linus Torvalds , Borislav Petkov , Thomas Gleixner , Ingo Molnar , "Gustavo A . R . Silva" , Arnaldo Carvalho de Melo , Kan Liang , Namhyung Kim , Jiri Olsa , Alexander Shishkin , Shawn Landden , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , linux-kernel Date: Fri, 02 Aug 2019 09:16:04 -0700 In-Reply-To: <201908020907.4E056142@keescook> References: <765E740C-4259-4835-A58D-432006628BAC@zytor.com> <20190731184832.GZ31381@hirez.programming.kicks-ass.net> <20190801122429.GY31398@hirez.programming.kicks-ass.net> <0BCDEED9-0B72-4412-909F-76C20D54983E@zytor.com> <20190802110042.GA6957@hmswarspite.think-freely.org> <20190802123418.GA3722@amd> <201908020907.4E056142@keescook> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.5-0ubuntu0.18.10.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2019-08-02 at 09:09 -0700, Kees Cook wrote: > On Fri, Aug 02, 2019 at 02:34:18PM +0200, Pavel Machek wrote: > > I like the "fallthrough". It looks like "return" and it should, no > > need to have __'s there.. > > Yeah, it would have the same feel as "break", "continue", "return"... > > The only place I see this already used is in net/sctp/sm_make_chunk.c, > as a label, which would be trivial to adjust... Yeah. From the RFC patch: For allow compilation of a kernel that includes net/sctp, this patch also requires a rename of the use of fallthrough as a label in net/sctp/sm_make_chunk.c that was submitted as: https://lore.kernel.org/lkml/e0dd3af448e38e342c1ac6e7c0c802696eb77fd6.1564549413.git.joe@perches.com/