Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5814967ioo; Wed, 1 Jun 2022 13:10:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQ62eF+akJ1AnqIFpPc/uyh+zB+i61UI9tUEpFtYOidICEzoVEuRfKn+G+1TbQLyzg25BP X-Received: by 2002:a17:902:d481:b0:161:d49e:3015 with SMTP id c1-20020a170902d48100b00161d49e3015mr1083161plg.105.1654114203994; Wed, 01 Jun 2022 13:10:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654114203; cv=none; d=google.com; s=arc-20160816; b=fJ1fonN6x32Ux+q28PBqTp8HTOtL3JT6lwbvyHOLz1U4ae47w+2nSiaLtLwN68Mz+6 J2YgpwGyDHIdolhlQ5x7lxrsF1+DKkOh7hBSheg5TzE8AoIKW9kjRdmbGvTujmTrRLnp hcaoQ2qThHZH6pzsE7bSCeXGnWy1QqELPYrVeAp8BOuVxgsgkq1bqsmC8keo5zkDHyF5 uxticOiUPlNsA6GiLCGVWRMi4Hjc8Tm7Awy9HACEqesfpAGcaR+lojJMIYVSUn7czY2i p3Lag1H1hsNb2uq4zHXyyDDnmChheHBKbhjaX6hoEQOoG9WKmM5buLItE27cqJ9wL+aM R97w== 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=hWi8+sNMetrYMzLc34VlHt3OhXmn2b5I8FlnJI4POXE=; b=fIe8SI8J1Y3aIaHtigGEArYieof8DgJQ9mPxLrCMoVrWyJx4YH0dS3reLFjF4ipbQL qgV5GgCGljClSKdjxvHxhCU6bDnpe2j+SUetiy7LSeJZTySYLSvoyK0ImmCkPq88A9LL 5SSIDFa+HUOzufkuvkaXP/jwq4h3DGbjkIB7KTaOKnzgjFVDVVZOdNPOTfE8kTJixErD kL8Xq+W42riX86bXPTUI5rbb/dXY3YBBfd5VUhjFH805fBoDJX09HNoVBOfnK80KjG7G urYGdiSiX9TvN+BpCzTWLW7/Kwl+ZWS3gozIQM7f/6LSCeXnr8enjW6UZUwsNbJDksQH 2LjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@philpotter-co-uk.20210112.gappssmtp.com header.s=20210112 header.b=UFL9N9Jh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id rm2-20020a17090b3ec200b001d2fe6d0a11si3817062pjb.176.2022.06.01.13.10.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 13:10:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@philpotter-co-uk.20210112.gappssmtp.com header.s=20210112 header.b=UFL9N9Jh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 25217202D28; Wed, 1 Jun 2022 12:25:35 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244315AbiEaGkc (ORCPT + 99 others); Tue, 31 May 2022 02:40:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232025AbiEaGk3 (ORCPT ); Tue, 31 May 2022 02:40:29 -0400 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A0712CDF5 for ; Mon, 30 May 2022 23:40:28 -0700 (PDT) Received: by mail-wr1-x432.google.com with SMTP id u3so17241075wrg.3 for ; Mon, 30 May 2022 23:40:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philpotter-co-uk.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=hWi8+sNMetrYMzLc34VlHt3OhXmn2b5I8FlnJI4POXE=; b=UFL9N9JhTYW/Wh36Zwj142mdG1eXYyqsPf0pCsMhKDQtPljFB78+hO04ngET8qF0X9 wBE4eIGDlQomlKtwgY1OJ95nl9vGvsbherAOFGH4r6VmmAwv+HVQs5JtTVId3i/8nlVn uzJqH8fYXZkT4XdCAT1+PZWz4eeumQaG1JwQJYdDVNip8v2nnvbxBDMAMp+ezPITWU07 2DLYCJSoyLsv7S+D6jM4CrHvzjhy4E0mf6lnuoFwHzvJ2JkT9vQr/kxPItKB1wdSF+HG GCsFGYGbgUzDThj+IjDCjYo0gTsUhSppwHgE3rEE1brg69vYSwfmw2NmbJMJ0iyaMyvV dIVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=hWi8+sNMetrYMzLc34VlHt3OhXmn2b5I8FlnJI4POXE=; b=wJdM9DKTp6DDEQ52yVbS/NO1eqO7WzPbCEHP2+Vsdo/RYv26oVr2i5k/rcx26ZrB8H XGbp7zh/pdKcskbU0i35mOJK0tB6otY/3d+zHOLh7Mgf18tlfEzRR/sX1jg5RIqjWBB9 aEcOkvwMI3qLPDk6c06Pg7qH9mWXls36b9wgrydyUqX+JaqyOMNv3J4YNTuIrqpMmw8Q l/i9BSPuBBWOZotQaXVyw7501Z8+NeyimIzq0SvKUGgNWuxGFqx3yEcZ7XdrPBR1DTRQ 5LBfrH3v/NvOoLnY52O/zXl7UPDTIaRXDTZBDgFjGI7fwssWH7FQolTc2srs+NngjKSL wqZQ== X-Gm-Message-State: AOAM532oSWCCzSaGx7JL2LVFgtXJTJcPkQ2ngLamE3owFm0Lo6PnmwO0 m7yw/Iun+HAgguGD9N9TtCD8hpPQTFFSBSk7 X-Received: by 2002:a5d:47a1:0:b0:20f:ecc4:7f6c with SMTP id 1-20020a5d47a1000000b0020fecc47f6cmr30560217wrb.236.1653979226621; Mon, 30 May 2022 23:40:26 -0700 (PDT) Received: from equinox (2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.a.1.e.e.d.f.d.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:dfde:e1a0::2]) by smtp.gmail.com with ESMTPSA id l6-20020adff486000000b0020c5253d907sm10671844wro.83.2022.05.30.23.40.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 May 2022 23:40:26 -0700 (PDT) Date: Tue, 31 May 2022 07:40:24 +0100 From: Phillip Potter To: Larry Finger Cc: gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Larry Finger , Dan Carpenter Subject: Re: [PATCH v3 0/2] Fix some compile warnings in v5.18+ Message-ID: References: <20220531013103.2175-1-Larry.Finger@lwfinger.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220531013103.2175-1-Larry.Finger@lwfinger.net> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Mon, May 30, 2022 at 08:31:01PM -0500, Larry Finger wrote: > Building driver r8188eu in staging with -warray-bounds exposes two places > where arrays are too small. > > Signed-off-by: Larry Finger > --- > v2 - get proper To and Cc > v3 - Use Dan Carpenter's suggestion for correct patch. > > Larry Finger (2): > staging: r8188eu: Fix undersized array in rtw_xmit.c > staging: r8188eu: Fix warning of array overflow in ioctl_linux.c > > drivers/staging/r8188eu/core/rtw_xmit.c | 17 ++++------------- > drivers/staging/r8188eu/os_dep/ioctl_linux.c | 2 +- > 2 files changed, 5 insertions(+), 14 deletions(-) > > -- > 2.36.1 > Hi Larry, Both patches look good to me, however I've already submitted a patch 10 days ago that does exactly what your rtw_xmit.c patch does, in addition to fixing the changed error handling semantics for the relevant function (in f94b47c6bde6) which broke the driver. Regards, Phil