From patchwork Wed Oct 16 10:22:16 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: 13838188 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 9CB40D1AD43 for ; Wed, 16 Oct 2024 10:39:20 +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: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=LtYLZ6LgbdipShU9B7He3AXTfKDWiP83O6i4dwp6MWU=; b=Vp5gFPxVCRddC2ZZkzk4YtG7rH WA9T6PEQOCp+N4z2kCCxYFM0IceLMseCmqtzsZ3Y46G1yHYy1sIBNVAZsfoIZLlciY2FDriQZMSZS jsXyumjciPIjSncBkBYlyvb+fNQbCS1blF4Q1a4TV6hL43ctxv76ci8IMjEA2xmXXCuo2UyWX9dve botYjjir0QE4nXgZXJb05YRqXJUyPl9sLFUZp01o/Tma+ShV7jRMmYWDZZmNXoo0aUQs7tM9YJiaq qx3ffgv8JAcDwy8QZscjaZPol6eM/FcgNC5wXDpZ5zVquO2z3rOVhh+EnRuZcM4UBXKh8UfyKL8J2 c3+KWmYQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t11Qr-0000000BU3n-0FfG; Wed, 16 Oct 2024 10:39:09 +0000 Received: from nyc.source.kernel.org ([147.75.193.91]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t11At-0000000BPxQ-2w51 for linux-arm-kernel@lists.infradead.org; Wed, 16 Oct 2024 10:22:42 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id D02D4A43CDA; Wed, 16 Oct 2024 10:22:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E37E5C4AF09; Wed, 16 Oct 2024 10:22:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1729074157; bh=M83xBFS9S663CxkeQb0fWjPDQTjOp02H0JrOmRYP17M=; h=From:To:Cc:Subject:Date:From; b=sM+4KM7gVF5iMzI05voPXTSJkOlxmHbMEwUYiUYMg6sUqysD5BQ6MFKG333XoQgcQ PGiBA65U98bcAzfoLIalv2rgp30FJcPHifkCyaU6u7QymhmQzm6rY5Wqt0vS4RYCYV bPDpTEOFFEw0/CNFdj+ZUBhoDBKfCZ+czOFOtgHG51/ykl6lPGbZNR0wkm6Gj4cHvc YRmSB8E5Wn9XYNmZIuuZcG4uXrdnxKVmyCWNnkHfrFMkI/YEVnDRWKK5xZ/+UHt3xP A4pb4KELC+Olp1JOW1FcLI78jbRMxNSOkqY4Er2MtUr9V92PxtlIrYOp1FhNyDHPB8 vIXRCqR7Zl6bg== Received: from mchehab by mail.kernel.org with local (Exim 4.98) (envelope-from ) id 1t11Ap-00000004YmO-1gnd; Wed, 16 Oct 2024 12:22:35 +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 00/13] Media: fix several issues on drivers Date: Wed, 16 Oct 2024 12:22:16 +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-20241016_032239_830642_D078F9DA X-CRM114-Status: UNSURE ( 9.61 ) X-CRM114-Notice: Please train this message. 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 some static analyzer checks. 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 | 10 ++++--- drivers/staging/media/av7110/av7110.h | 4 ++- drivers/staging/media/av7110/av7110_ca.c | 25 ++++++++++++------ 14 files changed, 90 insertions(+), 39 deletions(-)