Received: by 2002:ab2:715a:0:b0:1fd:c064:50c with SMTP id l26csp50290lqm; Mon, 10 Jun 2024 12:18:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVO0i+n6VArnTQ1IPqTCU+PX74S/XKD3oED1X70gpbuA0HiNMsTkVU/LBe/+QQqA7+sFnol1F6zFYBVzqJIHkgPRSIuYMUBqMhTROG0mg== X-Google-Smtp-Source: AGHT+IFpM9KUIRjVzGxlDEh6UuyVPXdrOWtCuPASQr5y7g1S8YtXSgYxFhjGUrBbfGzub+OpbBLH X-Received: by 2002:a05:600c:1913:b0:421:756f:b2e8 with SMTP id 5b1f17b1804b1-421756fb522mr74185545e9.11.1718047110720; Mon, 10 Jun 2024 12:18:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718047110; cv=pass; d=google.com; s=arc-20160816; b=G2ciRXhD6w/Pc3MsAwkIxDX4WaOVBu7EvG92UvKrQvfvPknrCUiN21j8JpuL3H5SoV amUh+iRQViOORUrdizJ+LjcxQnYgHefXgXNOhQ4XFAKCvJ6yyV2xvbj0gNDAuPZ9D45d lKyxTms2Q0hLiw3CMSZRWsjnN9vwUclmEGGzOkcMxb0DYNnuYpAg4AaVNizEGG2n/AbE yNXw232y/GmvMpiSq44TA8Kz5wPhyLib+Gl0rcgjwAODGdbs9ipSyx6dMbbkcnv0we1c U6kBiz69c3Xljoe+fO/K06uAVb31sFQ9T1eN99vm/nqKNyimPrGwQxCrWuITiBjLR3dq uePQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=GKTxfDepAOASvtboGdygz0hOxMNQauCfOA/I6qs8Ids=; fh=hI3gWSzwKjL2ZxCEAILhh+InZXPJyFV+/sM4vsuQHZk=; b=oFL3MYi4o6aBC8nD6ECILyP7UMBEJMymzpaT4PfLIUFGiLMF3RUMGyGwdJPJfSA6ru KbDsH9QTum8GcOOdeSsIeC52oZeBnkBLOdF0WTiPPrFA8XfBC++7PYH/hCKuIiVNefsu H1tCneYQLlr9rtgSWcCE1EXiQPxzb+qvtmLE9yvz3455AquJfm4/wFSGOTsW46sSg9Zc x44SrBQElDwXb099E98nrtd4sjtHxXlOPH25KYhONTCZoVUQneoR4I6jpMB/QV0HjMtQ 8ENHEZ3uSnplE5blWhBb3NkgETRG97YjumuFYtZsX6v7Vas5QYj3lpq11LGzq7YK507M Lgxg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=k7lecxZx; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-208780-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208780-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f116dc3c4si221772366b.110.2024.06.10.12.18.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 12:18:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208780-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=k7lecxZx; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-208780-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208780-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B25C91F22D00 for ; Mon, 10 Jun 2024 19:18:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C8E5A14EC48; Mon, 10 Jun 2024 19:18:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="k7lecxZx" Received: from mail-qv1-f48.google.com (mail-qv1-f48.google.com [209.85.219.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 237FA18643 for ; Mon, 10 Jun 2024 19:18:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718047086; cv=none; b=JqSbPTrgs87r0auDqyRmtxF133A7QnwpRCGKD3MavsCd3G4OAZiHD4tAEr1ZN2PoTYRIZMm/sE4tssmK0llW07+zxnEljEz2xVLne1GppmjDrr1JHgtqscpr5dJlzaPVIgbRFZJTS0gGAbkVhzFOPli99uSLpKtOrneLqsTM6m8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718047086; c=relaxed/simple; bh=ZLDDNoFT0RjZQZE3Qbp0+gYlvPoMfNcLfWYnfekiwsQ=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=ISbCt2VBpfibwc3TSRzsm5e1tjT2TzS5aA95Efyy/ObbM1QylfstYhP648pdmhkYcowBkGW1KWWZp25xmWg63MclJj2wtC65po2E0MEBlM+7J1LUr+k5q2zOUw64rhpOgIwKXYuc9cUqIIUbd+8fI1XvCT45XJilb2QBf8tp8yk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=k7lecxZx; arc=none smtp.client-ip=209.85.219.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-qv1-f48.google.com with SMTP id 6a1803df08f44-6b07937b84fso1607416d6.1 for ; Mon, 10 Jun 2024 12:18:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1718047082; x=1718651882; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=GKTxfDepAOASvtboGdygz0hOxMNQauCfOA/I6qs8Ids=; b=k7lecxZx91arwFmCAdvH1NKX82YTeXHe1fVLkS2gUirODAciMumBLdMLjn2ljPfPTc HoVXlN7HA+CNrb8KTEPfQdbog9YtfAJJuJshqB+EId4Nnm0oIQbbrD/oBOHL3bghYi1Y FYiRiohW7FUjvZwXqlNSIO1VP5y2gPGGP1qk0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718047082; x=1718651882; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=GKTxfDepAOASvtboGdygz0hOxMNQauCfOA/I6qs8Ids=; b=UBeiqdYDWrGr8IplZr6qIM5XiPzfb3FraFoI1CWPYqO+UVRmXQoD97/8nbpMveWNGo Tqra/gkENpJaiYScyvkSw2pBo/Z8uYYuWMP0crAaDgmH4lcNVh+Hla2L76EfDL3FkqDt Syzc9OK3NfqbE1TfRwuFP+JHCUs1GR6cfm9tiMSFi6KDXe+t9S8m0JGgP/hPZMpnkTv9 zCx1VcYnOOqL7Rr1JsNZ6fHQUaoNUYGBKsWflP7/nBW5fyqb+eVvSMtSZXVGDz/XSwny dyvNAIdKaOcT/pEgzBtpF58/Jr/Bw5Mxoe8Vkk9epYtB6Ydhlgr1LF6L3E1iczw+xe8B JGJA== X-Forwarded-Encrypted: i=1; AJvYcCW7RM0CuqG73IxJ0g/bdbPL2mk4A0SzVBiYPH/NaRshx5FW7JBqPSf9e7OUMAa9Aa5nH6hxRHNwiDEGHHt6v8JXxbm3tgtK5BjXcNCq X-Gm-Message-State: AOJu0YzeaATFjli+iwHQPqt8P6gc1p5U6iDHbfEKCvQ6sWdBF7SlhLcO HKiCrZvwaiOjAxgEmJRte7fhRwHOLUzz/uNjrGiW51F4poWpPQKhlzI3l6qT5Q== X-Received: by 2002:a05:6214:3282:b0:6b0:7c52:ae4e with SMTP id 6a1803df08f44-6b07c52afd1mr26693336d6.24.1718047081987; Mon, 10 Jun 2024 12:18:01 -0700 (PDT) Received: from denia.c.googlers.com (123.178.145.34.bc.googleusercontent.com. [34.145.178.123]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6b06e66ad80sm26224546d6.129.2024.06.10.12.18.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 12:18:01 -0700 (PDT) From: Ricardo Ribalda Subject: [PATCH 0/2] media: uvcvideo: Followup hwtimestamp patches Date: Mon, 10 Jun 2024 19:17:47 +0000 Message-Id: <20240610-hwtimestamp-followup-v1-0-f9eaed7be7f0@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAFtRZ2YC/x3MTQqAIBBA4avErBNUSqyrRIuyKQcqRfsD6e5Jy 2/xXoKIgTBCWyQIeFEkt2eIsgBjh31BRlM2SC4rrgRn9j5ow3gMm2ezW1d3n57JSjemVkqPUkB OfcCZnn/b9e/7AfnfBcNmAAAA To: Laurent Pinchart , Mauro Carvalho Chehab Cc: Hans Verkuil , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Ricardo Ribalda , HungNien Chen , Sergey Senozhatsky , Tomasz Figa , stable@vger.kernel.org X-Mailer: b4 0.12.4 The series https://patchwork.linuxtv.org/project/linux-media/list/?series=12485 was all merged but one patch that Laurent found a bug in the index used. When I tried the fixed patch I found an integer overflow in the timestamp calculations. This bug can be triggered with slow framerates. Signed-off-by: Ricardo Ribalda --- Ricardo Ribalda (2): media: uvcvideo: Fix hw timestamp handling for slow FPS media: uvcvideo: Fix integer overflow calculating timestamp drivers/media/usb/uvc/uvc_video.c | 33 ++++++++++++++++++++++++++++----- drivers/media/usb/uvc/uvcvideo.h | 1 + 2 files changed, 29 insertions(+), 5 deletions(-) --- base-commit: ef1e48f725d30cb18d3f2d40c48f50f483080cf7 change-id: 20240610-hwtimestamp-followup-2489c5668b21 Best regards, -- Ricardo Ribalda