Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp538564pxf; Wed, 10 Mar 2021 11:16:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJySM56hdhWSRTTC7BakeCkmRalg6Ht15itjdu3lgPPeDr/Bt88gK+suSOG35QwBsBkvaLfd X-Received: by 2002:a05:6402:b48:: with SMTP id bx8mr5191456edb.162.1615403791414; Wed, 10 Mar 2021 11:16:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615403791; cv=none; d=google.com; s=arc-20160816; b=hb+xb4Fj01Z5HEMAtBGv2eYcOdK4by1iNVW0hXKe9xq8fz/aiw6sMFw7kwvwpZknEo zusANm4P9C5hbG0O/ZJcnWtnQc2gRSOw/y30KSDapoAjXUzMEkQQFtR8KCPGgz4ZvfX+ +Ho79qbDRtDnd6eRb/Se3VO0dHeTEVEBoc1zugqosXzG/+oxXijHQ9NHCEhhx0mHqvSI IhXNsmtMlDC+gehcwWpl/r4jMLPydaz2iQtzAsIqLMyyC5bqrtUiVwrKe9qCUdlhXuw4 j2HctPZzuf3Vz2o8ySkXZlRBS1QHvyGm08oHircP6UanZNH5RAkZcitLnto+Qt2JeebM PhEQ== 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=xGBOjaqoqW2el6rCcu+fky2Vrwvc5fZUNN0jvRZFDBY=; b=VdZ3QElb6AreKnqxnK05rDDow8yxjjAgrM9ZtIk9Yv+oK26mm7Dvoa5TpEeC6D8Pes bcdhBY9SosSFop2U3qdb9TlX70ZExb61Gue6Nfow2c8nibNRtBrokZMHZlLYF1vtTNlu LyWVLZYWEBvmqL8YnjUWgCNH9Rze5sogjwDqipze/f1G7/ZQQetoPXuh2W8ZRnYehM2F CecRgBUAov0fmadzVj8gT0jHVLwnNyyICBIits+G0MtKJLWZfr2DFquWedxh2jYtUNAX 6CLg5/pzB9fSi4kWL5K+Fln6wsHmgJj0Y9oZGbjRjGGd4xpmxWQn9/vanxl4Bh9yGHJB PTNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=hAXXb+tm; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 b17si214084eds.443.2021.03.10.11.16.06; Wed, 10 Mar 2021 11:16:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-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=hAXXb+tm; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 S233717AbhCJTPb (ORCPT + 99 others); Wed, 10 Mar 2021 14:15:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233719AbhCJTO7 (ORCPT ); Wed, 10 Mar 2021 14:14:59 -0500 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B8A9C061763 for ; Wed, 10 Mar 2021 11:14:59 -0800 (PST) Received: by mail-pj1-x102e.google.com with SMTP id q6-20020a17090a4306b02900c42a012202so8039201pjg.5 for ; Wed, 10 Mar 2021 11:14:59 -0800 (PST) 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=xGBOjaqoqW2el6rCcu+fky2Vrwvc5fZUNN0jvRZFDBY=; b=hAXXb+tmOovSqMUvNZJDl98EM9SVnhRBnkvVzwjL4AQ0uE7/v01OfGii0FOxLVoqq2 cbC81qnrxMpkm4MMx6+CVsmwkfMNFeSUC5PJ3ARoWa0pPZAginJWwpsYkT4egGZv64Kk s7eEg1cVdscSQECYuNv20esXEvopj9DCYS09Y= 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=xGBOjaqoqW2el6rCcu+fky2Vrwvc5fZUNN0jvRZFDBY=; b=lsRr5GH9GDXMYtbkU4wmhMqh3JrJFLbrCku9440ld5ATpyIc2jpdOX3aHEXZ+eZOGn CbkPbTh7AllRjbIBEpojjlXO1QySR7P734nX4ey0NQOVNOkKOXztL5JxmSn8qwOiYl0b ynPkYkhOs11Lk2RYEajq0HTkCSOqw0QIqQHiIQ1cRWeoYDoFdlthCWqGKj3pj918tGpW uq3/5aWZdTijB27BSuO9vTiwSiPwaFM5miLIws88OZFbtbkmVaLSYQ7Ntag4InIGOYo5 hw7h1p2piyHFDntT9dLgbci8bbTg2BGH91C7t5easwF3Ll18E4tn2egHwTwhS923uWgJ e3gA== X-Gm-Message-State: AOAM531WULMe+8MJLzYU6N1T7PEZgxROTsQOx959qedJDzF+bCYR8v1V 6yivTOHmFvHKKFVeN5j4WFanSQ== X-Received: by 2002:a17:902:ce88:b029:e6:3a3c:2f65 with SMTP id f8-20020a170902ce88b02900e63a3c2f65mr4322549plg.66.1615403698597; Wed, 10 Mar 2021 11:14:58 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id t5sm252777pgl.89.2021.03.10.11.14.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Mar 2021 11:14:57 -0800 (PST) Date: Wed, 10 Mar 2021 11:14:56 -0800 From: Kees Cook To: Kalle Valo Cc: "Gustavo A. R. Silva" , Jes Sorensen , "David S. Miller" , Jakub Kicinski , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH RESEND][next] rtl8xxxu: Fix fall-through warnings for Clang Message-ID: <202103101107.BE8B6AF2@keescook> References: <20210305094850.GA141221@embeddedor> <871rct67n2.fsf@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <871rct67n2.fsf@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Fri, Mar 05, 2021 at 03:40:33PM +0200, Kalle Valo wrote: > "Gustavo A. R. Silva" writes: > > > In preparation to enable -Wimplicit-fallthrough for Clang, fix > > multiple warnings by replacing /* fall through */ comments with > > the new pseudo-keyword macro fallthrough; instead of letting the > > code fall through to the next case. > > > > Notice that Clang doesn't recognize /* fall through */ comments as > > implicit fall-through markings. > > > > Link: https://github.com/KSPP/linux/issues/115 > > Signed-off-by: Gustavo A. R. Silva > > It's not cool that you ignore the comments you got in [1], then after a > while mark the patch as "RESEND" and not even include a changelog why it > was resent. > > [1] https://patchwork.kernel.org/project/linux-wireless/patch/d522f387b2d0dde774785c7169c1f25aa529989d.1605896060.git.gustavoars@kernel.org/ Hm, this conversation looks like a miscommunication, mainly? I see Gustavo, as requested by many others[1], replacing the fallthrough comments with the "fallthrough" statement. (This is more than just a "Clang doesn't parse comments" issue.) This could be a tree-wide patch and not bother you, but Greg KH has generally advised us to send these changes broken out. Anyway, this change still needs to land, so what would be the preferred path? I think Gustavo could just carry it for Linus to merge without bothering you if that'd be preferred? -Kees [1] https://git.kernel.org/linus/294f69e662d1570703e9b56e95be37a9fd3afba5 -- Kees Cook