Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1063972rwb; Wed, 26 Jul 2023 07:08:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlGPkE3BobkiTzuclj7GEb11r8UwvazVO0Rm8LEP2XfOpwXTIEeQpVTpeXLt8wVzhSs2niHm X-Received: by 2002:a05:6a20:394b:b0:10b:bf2d:71bb with SMTP id r11-20020a056a20394b00b0010bbf2d71bbmr2787604pzg.27.1690380479714; Wed, 26 Jul 2023 07:07:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690380479; cv=none; d=google.com; s=arc-20160816; b=UcKYQwrpuETHXMPspHjq0pO4hrA56OO3aXqAVc+qRMzn12vP1F62X7EEErsLKpGjeD rXfowsuUJBIXsCkKPPXlKfTXNxl8/C+AwLJYzElWm5gIn681Ry71Quvo0ceUmUjABe8L YgJQ1k91G1vhLE8cNfeZCGMe1mLeWXrpCWT8fNls24E99AtZjbY/H5c7ZozlJgED6tAP DJMv+NJlRvK1ad4XZw3ygU38UIdlw6Bz19otiLb+LzI8XlN0KUXy5Poyl7oj4NCZO1cj C1NT87xvpi0++2lz7NJREUVq56zF7KSaMnNV2f9FUHcem/E6UMes7ob5Ln5efgmiitAA eedQ== 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=I5IHvw0DhgvWeevz+gNr6F5rd4gYnHIVm1kVUjPD3Tg=; fh=ELZ2uIpts0X/RN1hvUTvXKulOOEYrqUH1t2f0Xegygw=; b=bgZVIx0EQcA6Bv1HmrdQJ8QbXV9H1fr4cdo9W3WuRvH4dP4J3ZoSaSex+bD7NUOhq2 Scr/ofQXIr0Exzl4Jn2YqUBKvMPfU2SsIvoP2XAMNUT9GUaHTh2W3jfjqoXzcQCGtx9N f+nTjVhgElYJWNDxRo1vykrs1E4c+ncb4HGjvKu4lLMMPgRbTwIUljxZO67KYbNK71JG WT7qW7m7M8yiVEdYfVK3IanR5xq5vztvJ86RRKyagbZxXfE7NEXSNcgx415QRkqFQOlx a90r6rZM2BQ28+9sGprzUT3eYcn2WrMmrTrmC/KZuKBvhxntC8uAYsxfECwWOxMvnrZa 2O2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=nGzWk+Q1; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ck12-20020a056a00328c00b006536902d31fsi12762212pfb.185.2023.07.26.07.07.46; Wed, 26 Jul 2023 07:07:59 -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=@chromium.org header.s=google header.b=nGzWk+Q1; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233043AbjGZNnn (ORCPT + 99 others); Wed, 26 Jul 2023 09:43:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234272AbjGZNnZ (ORCPT ); Wed, 26 Jul 2023 09:43:25 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F11042723 for ; Wed, 26 Jul 2023 06:43:20 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id 98e67ed59e1d1-267fc19280bso676706a91.1 for ; Wed, 26 Jul 2023 06:43:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1690379000; x=1690983800; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=I5IHvw0DhgvWeevz+gNr6F5rd4gYnHIVm1kVUjPD3Tg=; b=nGzWk+Q1lMiVgF70MVC0quz0q/1zICB2LPuNrCtYNFuwXhsi/xIhp7/ilpc91OmByh a6V+xNsRWrNgm3FF/qJK0v27UWAZUwq/iV7x1ogMSZLoEWVjnkbxLymecPnfSEX1Q6NG evW4FO0OMWQrUeRJCCwpLMc+KIQwEMhu+p0cc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690379000; x=1690983800; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=I5IHvw0DhgvWeevz+gNr6F5rd4gYnHIVm1kVUjPD3Tg=; b=GTVC3XMJgvkq3I66rbdQxDi8HdxdBZEnIyuJUJR8vUiNDZmNWxQh/sCJ8T/iySp1es RNzr0MEUf+40sV+NIICUGIFc5ROPo1NAMFko4psa34HrzJfMIKBcmRxrNpqsY2C+S1hJ Ji8yuFEgxm+NSXa5/rR/GOJX2wzAYg1ta2wFQLNwexBAdBdvWmtsRTFtuHFva3adhrNC kLFkY3SRF4dJKf3jPvQPyTWiRcDA6UoSd8lnxOxryTvbIcQLAxIFda3wlzIMW5n+onDG axMyLlfoXhhz3xN0nUvnIQ5W/cvG2hjHewK/OFDmSdinj/I5Eb351dGbEOpJ5UqyFiq9 pIrw== X-Gm-Message-State: ABy/qLZkFfk6XA/y31HM2OpUfPjhPhxHdCTDGpOOC7N6m0G1Y+fX2lxd JHAzhQEjYLWzpQPCm+tqJOyo6A== X-Received: by 2002:a17:90b:120c:b0:268:21c3:4fd8 with SMTP id gl12-20020a17090b120c00b0026821c34fd8mr2625877pjb.20.1690379000330; Wed, 26 Jul 2023 06:43:20 -0700 (PDT) Received: from google.com ([2620:15c:9d:2:b578:70e8:c6b4:a57b]) by smtp.googlemail.com with ESMTPSA id s14-20020a17090a760e00b00267f7405a3csm1271902pjk.32.2023.07.26.06.43.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jul 2023 06:43:19 -0700 (PDT) Date: Wed, 26 Jul 2023 06:43:14 -0700 From: Zubin Mithra To: Thorsten Leemhuis Cc: Ricardo Ribalda , Laurent Pinchart , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Sergey Senozhatsky , stable@kernel.org, Kai =?iso-8859-1?Q?Wasserb=E4ch?= Subject: Re: [PATCH v2] media: uvcvideo: Fix OOB read Message-ID: 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=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FSL_HELO_FAKE, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 don't have a preference either way. Please feel free to remove the reported-by tag. Thanks, - Zubin > Ciao, Thorsten