From patchwork Fri Oct 18 05:53:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 13841177 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D3434D3C54C for ; Fri, 18 Oct 2024 06:00:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=dPQ6YlrAlzyTURO+vuSudYhgQPe7kYakjfL2KBATLOo=; b=H4W6SUDEhwnCrAoTmpbzK2KMJD SnklAuEIOwJaIn+Bm7IvErinYKYuyyS4ZyppkhoFCwNstQhq7wLg5Obi3HMvgb0RRZht76BFEJb0n SYNYH8YEZv+TgBBwf8zF99BSe4U0L1JP69Ea88Fn1HrMNlFcwaA4PzyBb2hDPGhAakb+OH8lcYq3J GVQzSPKSb/+P5AeWcoMUzHW1S5qBKgrGp6IeW9Cr+gOnLWMwZUoMqb5zD+1EFgf+S/vXYQp2NHjBM 4dEVY7hQbsT9dT1hw2cDQFHhJtPIrGYIKcOkqZ+CQzvQD8OCFu0CBOa64+ZM+5ABQIyoq6X/K864q hVhfWeCQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t1g1w-0000000H4II-25Nr; Fri, 18 Oct 2024 06:00:08 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t1fvU-0000000H1t7-0vL9 for linux-arm-kernel@lists.infradead.org; Fri, 18 Oct 2024 05:53:32 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 302C85C5CFA; Fri, 18 Oct 2024 05:53:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFFCCC4CED4; Fri, 18 Oct 2024 05:53:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1729230806; bh=aG6hoMo4uzmVEhnDz98AaAEGaoD34QTsOAO33KKqS9g=; h=From:To:Cc:Subject:Date:From; b=Mr2euONv4fUfZDP/s3EqyB2EvuHMXCn53FiDk83Ep31dnZX5NT9xksVhYGFJ9AZub WLiyV9o5/SGvI1a5R3mbU5b6Cc6jhPC8PLIp8AU2d1YzwVcVz7ug+uL3TkOVnLeJMH /45FX3+jmX8kQMtQ9OPF/cWVG7bfYCAJ+BYdSg+i9pPiO7aqUqalA70ohGe4/YhHKE Vpam9QFxLYw3tGa8feJ8endFQyjYQp2ss6AGczaSUYrPL89mkdh2EDmdCQFr0VDhHh DT8jU+y8BEZDjh5LJUeJtE1AHccZfzpIaWVtaSTpFki0Dmuh1kKAOy/jQwGeiwMgRA z+wXkxCJH2lvw== Received: from mchehab by mail.kernel.org with local (Exim 4.98) (envelope-from ) id 1t1fvQ-00000005Mdu-18To; Fri, 18 Oct 2024 07:53:24 +0200 From: Mauro Carvalho Chehab To: Cc: Mauro Carvalho Chehab , =?utf-8?q?Krzysztof_H?= =?utf-8?q?a=C5=82asa?= , Andrzej Pietrasiewicz , Hans Verkuil , Jacek Anaszewski , Martin Tuma , Mauro Carvalho Chehab , Sakari Ailus , Sylwester Nawrocki , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-staging@lists.linux.dev Subject: [PATCH v2 00/13] Media: fix several issues on drivers Date: Fri, 18 Oct 2024 07:53:02 +0200 Message-ID: X-Mailer: git-send-email 2.47.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241017_225328_435805_75D1D5D2 X-CRM114-Status: GOOD ( 10.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org There are a number of issues that aren't passing on smatch or Coverity. Address some of them. Mauro Carvalho Chehab (13): media: v4l2-ctrls-api: fix error handling for v4l2_g_ctrl() media: v4l2-tpg: prevent the risk of a division by zero media: dvbdev: prevent the risk of out of memory access media: dvb_frontend: don't play tricks with underflow values media: mgb4: protect driver against spectre media: av7110: fix a spectre vulnerability media: s5p-jpeg: prevent buffer overflows media: ar0521: don't overflow when checking PLL values media: cx24116: prevent overflows on SNR calculus media: adv7604: prevent underflow condition when reporting colorspace media: stb0899_algo: initialize cfr before using it media: cec: extron-da-hd-4k-plus: don't use -1 as an error code media: pulse8-cec: fix data timestamp at pulse8_setup() .../extron-da-hd-4k-plus.c | 6 ++--- drivers/media/cec/usb/pulse8/pulse8-cec.c | 2 +- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 3 +++ drivers/media/dvb-core/dvb_frontend.c | 4 +-- drivers/media/dvb-core/dvbdev.c | 17 ++++++++++-- drivers/media/dvb-frontends/cx24116.c | 7 ++++- drivers/media/dvb-frontends/stb0899_algo.c | 2 +- drivers/media/i2c/adv7604.c | 26 ++++++++++++------- drivers/media/i2c/ar0521.c | 4 +-- drivers/media/pci/mgb4/mgb4_cmt.c | 2 ++ .../platform/samsung/s5p-jpeg/jpeg-core.c | 17 +++++++----- drivers/media/v4l2-core/v4l2-ctrls-api.c | 16 ++++++++---- drivers/staging/media/av7110/av7110.h | 4 ++- drivers/staging/media/av7110/av7110_ca.c | 25 ++++++++++++------ 14 files changed, 94 insertions(+), 41 deletions(-)