Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3372945ioa; Tue, 26 Apr 2022 02:12:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztaFz6szd/z+hz4lQQRMdZ5N1VhsFNa0xwXiyUR+mfjGmtE9XH+juxDk6zLExCvA62BQJj X-Received: by 2002:a17:90b:4b01:b0:1d2:abf5:c83f with SMTP id lx1-20020a17090b4b0100b001d2abf5c83fmr25392877pjb.93.1650964379110; Tue, 26 Apr 2022 02:12:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650964379; cv=none; d=google.com; s=arc-20160816; b=A0GkDArfhxcloRWavuP91tczrNoFGIruJtGY33zmiV+76ZD5nRwnYt/QWqLoOp+pm4 K6mQAslNN+rU/wGfZ6xlDtquhy2zW1HCXlq9QVkjWNRwUE5FYDJedKKan8+noboRqjTu zBMzusuSxN9WC4xtHHo27yRIfWGaXJ5AJyRLsBXe8C5aeuOopk3AoVnBRzLQ+BzPMMJd OY+UwkYzggBCm42hHX12hOlX+/0OYXd1lgY2xVqrbXWHnV9PpCT8oTN+Ir1PcHThH8Em pNC/vsGEUautgthHiKt5+AgjrDaOWUF9j79Gc73ci3ECaxVN/m555M8He3XIBok4nNB5 lTOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=CZXYnwzf0/zyAsq09zp3zqYMU6rsh9JejxfBdubxHoY=; b=Fylj3GLJ7yz7auzjVRMhhrR/l0S4CBUlrog9Q7rWRTEXykUy8zRorQBJOck9tdfcnV qWl6nWjCy7/Nbq+bzw2RApIlAzn2b4aiJGTGWPgG5mZ4P2MEe7rMttTZGsoqCw5cPtns 0xM3Mf3YzdDBtMTVqI9xi2yVW0Ym/xt9OPo3nlI4xNdX5bdfeB1e/mn+F8ZGX/XmnUsZ e2WpNhr0CAEVxZB9UOVkXJBtxIDYHHoAo/Wep3c5yVdwwFBBeZXWk0i3Cvbk+7Exo0L5 Tcz470CkW/XM19AGfrQZufTSHHbQ+atAIiF8mnztFENmVDmhLJJwv2yF7bYlKArhqG9u EHsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=LJyzOfUL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e7-20020a63aa07000000b003aa6195a9f3si19505008pgf.738.2022.04.26.02.12.44; Tue, 26 Apr 2022 02:12:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=LJyzOfUL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244647AbiDYSvK (ORCPT + 99 others); Mon, 25 Apr 2022 14:51:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244651AbiDYSuz (ORCPT ); Mon, 25 Apr 2022 14:50:55 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED14D7629C; Mon, 25 Apr 2022 11:47:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID: Sender:Reply-To:Content-ID:Content-Description; bh=CZXYnwzf0/zyAsq09zp3zqYMU6rsh9JejxfBdubxHoY=; b=LJyzOfULynUAOhxDw00BV3IB5H fvN/dKv8dnmCxaP4b2TOXC6pDNcHvmAU1EoJVSWBSA5bU5cA91jqYjnN9iMsHhup2ybalmuci9s+C fkYGjGbWynDUyGwLlbixM5wlWjRfwzO+TIVwVFw6o0M0ja688mkrvguFcc5Lp2oq4Cjy/hmJZ3ZNN PXGNWSe/72vK+UZHiMt0YT+VZFjal8yVAB0iwgoGC+xtS+UOST29IUQ0eBCMKWlch3d+xCoFcv6hG 8ITygZn5uldBUuH7fO6vGt4vrYMM23wnZmrrx5udpOxerjpTPbvYc7UnGDuDnnAAnVDnjmh+fi+BG lT3/0hhA==; Received: from [2601:1c0:6280:3f0::aa0b] by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nj3jv-008bUI-Sk; Mon, 25 Apr 2022 18:47:16 +0000 Message-ID: <4b16edaa-05ee-1dbd-e44b-c7e0512971bd@infradead.org> Date: Mon, 25 Apr 2022 11:47:11 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH 01/11] scsi: aacraid: Fix undefined behavior due to shift overflowing the constant Content-Language: en-US To: Borislav Petkov , LKML Cc: Adaptec OEM Raid Solutions , "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org References: <20220405151517.29753-1-bp@alien8.de> <20220405151517.29753-2-bp@alien8.de> From: Randy Dunlap In-Reply-To: <20220405151517.29753-2-bp@alien8.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/5/22 08:15, Borislav Petkov wrote: > From: Borislav Petkov > > Fix > > drivers/scsi/aacraid/commsup.c: In function ‘aac_handle_sa_aif’: > drivers/scsi/aacraid/commsup.c:1983:2: error: case label does not reduce to an integer constant > case SA_AIF_BPCFG_CHANGE: > ^~~~ > > See https://lore.kernel.org/r/YkwQ6%2BtIH8GQpuct@zn.tnic for the gory > details as to why it triggers with older gccs only. > > Signed-off-by: Borislav Petkov > Cc: Adaptec OEM Raid Solutions > Cc: "James E.J. Bottomley" > Cc: "Martin K. Petersen" > Cc: linux-scsi@vger.kernel.org Reviewed-by: Randy Dunlap Thanks. > --- > drivers/scsi/aacraid/aacraid.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/scsi/aacraid/aacraid.h b/drivers/scsi/aacraid/aacraid.h > index f849e7c9d428..5e115e8b2ba4 100644 > --- a/drivers/scsi/aacraid/aacraid.h > +++ b/drivers/scsi/aacraid/aacraid.h > @@ -121,7 +121,7 @@ enum { > #define SA_AIF_PDEV_CHANGE (1<<4) > #define SA_AIF_LDEV_CHANGE (1<<5) > #define SA_AIF_BPSTAT_CHANGE (1<<30) > -#define SA_AIF_BPCFG_CHANGE (1<<31) > +#define SA_AIF_BPCFG_CHANGE (1U<<31) > > #define HBA_MAX_SG_EMBEDDED 28 > #define HBA_MAX_SG_SEPARATE 90 -- ~Randy