Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp750161rwb; Wed, 26 Jul 2023 02:07:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlEiq9nlg2nJ9ig8UGloQ2fXVx5NMxAfoxnclGE+a5sJ3Vop9UmIa6nAfgcAT2InU/iNO9t9 X-Received: by 2002:a05:6a00:14c4:b0:66a:365c:a0e6 with SMTP id w4-20020a056a0014c400b0066a365ca0e6mr1496210pfu.13.1690362474045; Wed, 26 Jul 2023 02:07:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690362474; cv=none; d=google.com; s=arc-20160816; b=MTvE/wcJCs581sKEhFviT+s8DWw1IK2ADik9isWBjwEWWitvk47mDaK4ylSc35nbxQ c1PGOApHwvijpwEqEx8A5Tnd+ulf93UyHYWnroPzOKCg4s3JwJLPQEPzwlzN73TH60FS TE1zBngf7uPZpuTbZiyEpmNXimI5yPi5hqeoMyg7c3IsOn55Ql1Bmwlrq4p+iK7FlCJy oZsg/Q3Gi4nYFEjZ6xnPwKP83W8CJB/YFjxHhJeH7j1c9dcX9k/oz0LRMzSs9zy+InLi eqNiW6r5FfBj30y1QuHkeyCNzJiSIA5pVPQ1jV9PcE6XktHhL6fb53jesUD1eCGN3otH B9Iw== 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:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id; bh=3WrCMTNEWS4xM+2fwtr0H9BUUS6kzY3HBguqWK4f+os=; fh=9DJL5t7B2t4PHrHO+t5abTYpZE5sdgJzbcuHyxn+Yeo=; b=lttVl2/2got1Cl69dsJslCOd6BOIHDc6CbKUu1TRXJC1CvqSMxuTyWHv8+f2FOiApK Hm6706cLoWhEeFqwfbHvuOEA5UBpAElEdVlkLhqikkfj8h8Hk9cH+rULQLinqwWVMQKo X/u2a3L6NW282v8wA1s+9ECqh97Xs+5eGOsjkPTqKkYGcaZK6xQEx/o+8jDhBIUkWpAd RoZvwnruF0Wt0ynnfRqo65esP/PxHl6DVGl2WYZcS+PtcUkswT1i0Qnt7cuivecvyYjY Mo6Gec0YYlI+6IXXXvEi3hF30OlVr5FNxE9/ElJeLMD+qyD2aIGGN+jU26PQqJnrbP8J x3WQ== ARC-Authentication-Results: i=1; mx.google.com; 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 fj10-20020a056a003a0a00b00666ee6bd07bsi13311459pfb.284.2023.07.26.02.07.41; Wed, 26 Jul 2023 02:07:54 -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; 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 S231674AbjGZI42 (ORCPT + 99 others); Wed, 26 Jul 2023 04:56:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232720AbjGZIzh (ORCPT ); Wed, 26 Jul 2023 04:55:37 -0400 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C56054693; Wed, 26 Jul 2023 01:49:01 -0700 (PDT) Received: from [2a02:8108:8980:2478:8cde:aa2c:f324:937e]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1qOaBR-0003Ck-29; Wed, 26 Jul 2023 10:47:49 +0200 Message-ID: Date: Wed, 26 Jul 2023 10:47:46 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Content-Language: en-US, de-DE To: Ricardo Ribalda Cc: Laurent Pinchart , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Sergey Senozhatsky , stable@kernel.org, Zubin Mithra , =?UTF-8?Q?Kai_Wasserb=c3=a4ch?= References: <20230717-uvc-oob-v2-1-c7745a8d5847@chromium.org> <20230725213451.GU31069@pendragon.ideasonboard.com> <20230726080753.GX31069@pendragon.ideasonboard.com> <952fb983-d1e0-2c4b-a7e8-81c33473c727@leemhuis.info> From: Thorsten Leemhuis Subject: Re: [PATCH v2] media: uvcvideo: Fix OOB read In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;linux@leemhuis.info;1690361341;9e6180f4; X-HE-SMSGID: 1qOaBR-0003Ck-29 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,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 26.07.23 10:38, Ricardo Ribalda wrote: > On Wed, 26 Jul 2023 at 10:33, Thorsten Leemhuis wrote: >> On 26.07.23 10:07, Laurent Pinchart wrote: >>> (CC'ing Kai and Thorsten who have added the check to checkpatch) >>> >>> On Wed, Jul 26, 2023 at 08:24:50AM +0200, Ricardo Ribalda wrote: >>>> On Tue, 25 Jul 2023 at 23:34, Laurent Pinchart wrote: >>>>> On Thu, Jul 20, 2023 at 05:46:54PM +0000, Ricardo Ribalda wrote: >>>>>> If the index provided by the user is bigger than the mask size, we might do an >>>>>> out of bound read. >>>>>> >>>>>> CC: stable@kernel.org >>>>>> Fixes: 40140eda661e ("media: uvcvideo: Implement mask for V4L2_CTRL_TYPE_MENU") >>>>>> Reported-by: Zubin Mithra >>>>> >>>>> checkpatch now requests a Reported-by tag to be immediately followed by >>>>> a Closes >> >> Not that it matters, the changes I performed only required a Link: tag, >> which is how things should have been done for many years already. It >> later became Closes: due to patches from Matthieu. But whatever. :-D > > I prefer to leave the Reported-by and remove the Closes, that way we > credit the reporter (assuming they approved to be referred). > > But if that is not possible, just remove the reported-by. A private > link is pretty much noise on the tree. Yeah, of course that's the right strategy (Linus made it pretty clear that he doesn't want any private links) in case the reporter okay with the Reported-by. Sorry, forgot to cover that case in my reply. Ciao, Thorsten