Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1222219rwb; Wed, 26 Jul 2023 09:12:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlFyRE2ennpXyIktVEVNEVJ+HpFpnd2oSWVMCU/XP7ClcssCqMqDuYH4DYZHjctexY/eHBEP X-Received: by 2002:ac2:47e9:0:b0:4fb:89ac:a967 with SMTP id b9-20020ac247e9000000b004fb89aca967mr1577374lfp.56.1690387972810; Wed, 26 Jul 2023 09:12:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690387972; cv=none; d=google.com; s=arc-20160816; b=OnUPLjLXHWvdXu59epZpJmga8T7oFZMkrwyJqCCE3kl+hzY4zYQ7bO4amOvWOuVGX6 UD6Uu63QH27GC+bPUFxlMgh8hjqDpKRcpmsyV4qq86Nc0XP/avpozqBHFZ2UDMIhMroi WyzKJ/cVJHSS6/fG73RZ3C0DdYZ/Qq5h3kQH726doiA8osJB/VtAwpwltRqFTPPg+Uq9 ULHXrAST3AA0clyHKD9x5dndZ6A+I7CeOXlJLMb82l9lVcIAnlcGO8xGcx0xp7u+8zHG NA+XhoAHqRF/CRGWG1Wu4J3lVbQQjrEGU+/o3gJh9gZEwrGSXKWQyt8LJvbJJ7EWrNrh xelA== 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=vjG1eKxfFydVDAEL7uN4PtbzEvWnOgbFhZ6KjRr41I0=; fh=7sIUIoZe6UZQB5aBGYLHaiyLVGFsN66JTRZhcf8Av2c=; b=mlnVRHgGwDqoD25VysWm6MU/LKVwSOnaI4vfdqW5yQV2sMoTHLbS2Ch/rxmlNbLrB8 dAZ2Nv5ccxJmz3obEZDYdd1aq30Q1O7yjOSpNyW+S1/7gtnTOL63n6iE7WpDJ4C0q/F5 MW9u3Aex4qGa9Xx6ERWw9pLWj8jIIIREwE8f6LDhWDf3yNDEQtIOVHNrBnYe8DwOmxR8 HQWytTos16Lj38zWG2W2XcYLbV5MTYZk8qV5xPfiDxdMU+8oTwfs9RVzrsXxXW5ac7Cf G0+bomPM+iYoGfMyFjGsoRF/YvGhKERUiFC1t0+/gKCr+9wVL2QIIklzo9VIh8USCme5 5Tvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=nKryUUjg; 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 k11-20020aa7d8cb000000b005222c6fb4fasi4913081eds.0.2023.07.26.09.12.26; Wed, 26 Jul 2023 09:12:52 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=nKryUUjg; 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 S231218AbjGZPTE (ORCPT + 99 others); Wed, 26 Jul 2023 11:19:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233822AbjGZPS6 (ORCPT ); Wed, 26 Jul 2023 11:18:58 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCD642119; Wed, 26 Jul 2023 08:18:57 -0700 (PDT) Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 627A45AA; Wed, 26 Jul 2023 17:17:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1690384677; bh=GIqgHaGWTByEn2OukYlLQnJXOi98nXe3hgeZY5YqPuQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nKryUUjgfXC53xnjOT54/bZfQLXyPkx3c/gdRfvyAM2nYuj44JzhI2ZrFnoYpdae/ qKLjVfST6BL0m9gT4INH8fEGGAH6q7vFrClTYHQKuRBcAag6uwfOB0tvNmrCKoCiZs qMTDgUeQtkETQxl9bHCimOCyy+RYPjeveA0QWqg8= Date: Wed, 26 Jul 2023 18:19:03 +0300 From: Laurent Pinchart To: Thorsten Leemhuis Cc: Ricardo Ribalda , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Sergey Senozhatsky , stable@kernel.org, Zubin Mithra , Kai =?utf-8?Q?Wasserb=C3=A4ch?= Subject: Re: [PATCH v2] media: uvcvideo: Fix OOB read Message-ID: <20230726151903.GD5148@pendragon.ideasonboard.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Wed, Jul 26, 2023 at 10:47:46AM +0200, Thorsten Leemhuis wrote: > 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. I'll keep the Reported-by and omit the Link/Closes tags. -- Regards, Laurent Pinchart