From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D2852EB64DC for ; Mon, 10 Jul 2023 05:47:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229758AbjGJFrM (ORCPT ); Mon, 10 Jul 2023 01:47:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230201AbjGJFrK (ORCPT ); Mon, 10 Jul 2023 01:47:10 -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 3D245F1; Sun, 9 Jul 2023 22:47:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C629460E05; Mon, 10 Jul 2023 05:47:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5146C433C8; Mon, 10 Jul 2023 05:47:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1688968027; bh=d8K4eM0jKwdKQA1s85MdlK6toxYLzAe2+LGYszPYOvk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=xxzPFNL9Xda0x+ebbSA6bXOUrCEBExZFFL3vWt/RQLkRX5SFmhMDakVNgm/CX3Apl o+H6SD3aHGnknNqFaOV2GqU8LL5p4VhxIUQiFCp1wmrKhSLVJjvkk0kyK0LHdNs/+n D1e0nTwQAj6OOYG3dpZ5jaB1mxoO8Z8flSVd9xZU= Date: Mon, 10 Jul 2023 07:47:04 +0200 From: Greg Kroah-Hartman To: Zhang Shurong Cc: Markus Elfring , linux-staging@lists.linux.dev, kernel-janitors@vger.kernel.org, LKML , Dan Carpenter , Xu Panda Subject: Re: staging: ks7010: potential buffer overflow in ks_wlan_set_encode_ext() Message-ID: <2023071056-amused-yam-5e29@gregkh> References: <2a41ca22-a0eb-df38-be43-7175e1230bd0@web.de> <2023070919-monetary-sleet-2f5c@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 10, 2023 at 01:41:07PM +0800, Zhang Shurong wrote: > Hi Markus, > > > 2023年7月10日 03:56,Markus Elfring 写道: > > > >>>> The "exc->key_len" is a u16 that comes from the user. If it's over > >>>> IW_ENCODING_TOKEN_MAX (64) that could lead to memory corruption. > >>> > >>> Please choose an imperative change suggestion. > >> > >> Please stop reviewing staging patches, it is not helpful for anyone. > > > > It seems that further contributors need to become more aware about > > (and finally adhere to) requirements from the Linux development documentation. > > > > Regards, > > Markus > > I'm guilty of my incorrect patch format. And do I need to write another > patch to fix this format issue? One of the hardest things in kernel development is learning what reviews, and what reviewers, should be ignored. This is one of them :) No need to change the patch yet, let me get to this change this week and I'll let you know. thanks, greg k-h