Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2093355ioo; Sat, 28 May 2022 04:40:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxk491f/UB1l+2lzF4QkndcjfPaFkwm7X9Z4A7wwEvqXStFQUJqJ9vZuxJn+tM9+XqtzQ3Z X-Received: by 2002:a17:907:868e:b0:6fa:2fe2:92d6 with SMTP id qa14-20020a170907868e00b006fa2fe292d6mr41312865ejc.639.1653738042934; Sat, 28 May 2022 04:40:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653738042; cv=none; d=google.com; s=arc-20160816; b=h3sL4heg1nu6J6uX/M0tLo7nr1rTQwmIY1NgWfbv5VMP+/T9oMCocBd+lW7BMbKAW2 N4ByBqdCf9bFS2MAmxsNsmpBsHZ7+v62RKtxkHQIWMOQTCWTcfa2f2aQXg6mSpJYUHC/ RCssi6OpQvF9J3V0b3OvXpRwq+LmfHw9joSgemOapRT/no3kTvK7qyGyMu11zWGGld2N E8yKJBpyJDYmluT9rh92UjYDGiF8ZDKWNBlNu3NBxNh94K94bFIg22aGnAbs/wWHjz8B UEXSHYOVPF6QssHwlRy+rIqEWojGgAwwY/d2482jP/lZKEFg4CvDf3Z258FxLReUE1DM ortQ== 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=b8dxCLHcy1igahDVBpIaOFn2Tmgf+Jjo3aXWZE7Eib0=; b=ro6IOhcKrNNyeqgTKcjgr5lf+dmlh+5/wbkiC8JTmys6Kd0AupCV7y43yrS2kxZkPX QWpF3x4tIhY4jB8vBF4MRcDt3TjNNg4AUmiVxr/31AfUPffLeG6G+u5JrX6dMbB9Slj4 G8IwtdDfU8ckJISO22jtg0NURbIMmHUF+da8kfKcuDYXbtubizQZlRQWzGl2pMSOoQ++ 3bEHXRFy4LXG8+4OGAYgnoySf5DLHpBfKxPBbnexYcYJxVYYOBpnwpDmcO0ZliDa7Nz0 2RIcWF/mn4hbQLzyIrTpdl1R83R5z+0s2HvtJtxf9i79SGNfVNjFxHxWT4Rb33AdHRqx rW8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fPMbA5ax; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f27-20020a056402329b00b0042dc5144b0csi392730eda.431.2022.05.28.04.40.17; Sat, 28 May 2022 04:40:42 -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=@linuxfoundation.org header.s=korg header.b=fPMbA5ax; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238595AbiEZMFq (ORCPT + 99 others); Thu, 26 May 2022 08:05:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229826AbiEZMFo (ORCPT ); Thu, 26 May 2022 08:05:44 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E311D02A2; Thu, 26 May 2022 05:05:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DC21560C52; Thu, 26 May 2022 12:05:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3182C385A9; Thu, 26 May 2022 12:05:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1653566739; bh=EZ83Wu0JIwui5tEnq9zsFh1J1HyLzUwNJ/Dy+pO3xvA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fPMbA5axeabY/ZFxS5rXuKPt7XWp+0mcWg2WC6lVFuvYINemHq5i+oKy9KK0Ni1em 1DwXq0tblKIBK/yrgHoHB0Z6wZ8DflmvuNsHdkMm7/nKr4u6ItwVgpZ0/KZGLEUTXF bffFTjnx5WVhBb8RP8cOYiMmQq95qAN71k7EofXU= Date: Thu, 26 May 2022 14:05:36 +0200 From: Greg KH To: Denis Efremov Cc: Larry.Finger@lwfinger.net, phil@philpotter.co.uk, dan.carpenter@oracle.com, straube.linux@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, stable Subject: Re: [PATCH v5.10] staging: rtl8723bs: prevent ->Ssid overflow in rtw_wx_set_scan() Message-ID: References: <20220520035730.5533-1-efremov@linux.com> <22589460-930c-b307-acf0-2a49f5f5261f@linux.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <22589460-930c-b307-acf0-2a49f5f5261f@linux.com> X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Mon, May 23, 2022 at 09:41:09PM +0400, Denis Efremov wrote: > Hi, > > On 5/23/22 19:26, Greg KH wrote: > > On Fri, May 20, 2022 at 07:57:30AM +0400, Denis Efremov (Oracle) wrote: > >> This code has a check to prevent read overflow but it needs another > >> check to prevent writing beyond the end of the ->Ssid[] array. > >> > >> Fixes: 554c0a3abf21 ("staging: Add rtl8723bs sdio wifi driver") > >> Cc: stable > >> Signed-off-by: Denis Efremov (Oracle) > >> --- > >> drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 6 ++++-- > >> 1 file changed, 4 insertions(+), 2 deletions(-) > > > > And only 5.10 needs this? What about all other kernel branches? > > > > >From 5.10, 5.4, 4.19, to 4.14. > > There is a small spaces conflict in 5.4-4.14 kernels because of > c77761d660a6 staging: rtl8723bs: Fix spacing issues > > I sent another patch to handle it. Thanks, all now queued up. greg k-h