* [GIT PULL for v6.5] media fixes
@ 2023-08-24 23:54 Mauro Carvalho Chehab
2023-08-24 23:58 ` [GIT PULL for v6.5] media fixes (#94321) Jenkins
2023-08-25 2:51 ` [GIT PULL for v6.5] media fixes pr-tracker-bot
0 siblings, 2 replies; 3+ messages in thread
From: Mauro Carvalho Chehab @ 2023-08-24 23:54 UTC (permalink / raw)
To: Linus Torvalds
Cc: Greg Kroah-Hartman, Andrew Morton, Linux Media Mailing List,
Linux Kernel Mailing List
Hi Linus,
Please pull from:
git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media tags/media/v6.5-4
For a potential array out-of-bounds at the mediatek's vcodec driver.
Thanks!
Mauro
The following changes since commit 2908042a37b56d6a9a595eca946e187e9d2df39a:
media: imx: imx7-media-csi: Fix applying format constraints (2023-08-09 13:31:37 +0200)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media tags/media/v6.5-4
for you to fetch changes up to e7f2e65699e2290fd547ec12a17008764e5d9620:
media: vcodec: Fix potential array out-of-bounds in encoder queue_setup (2023-08-23 09:56:08 +0200)
----------------------------------------------------------------
media fixes for v6.5-rc8
----------------------------------------------------------------
Wei Chen (1):
media: vcodec: Fix potential array out-of-bounds in encoder queue_setup
drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c | 2 ++
1 file changed, 2 insertions(+)
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [GIT PULL for v6.5] media fixes (#94321)
2023-08-24 23:54 [GIT PULL for v6.5] media fixes Mauro Carvalho Chehab
@ 2023-08-24 23:58 ` Jenkins
2023-08-25 2:51 ` [GIT PULL for v6.5] media fixes pr-tracker-bot
1 sibling, 0 replies; 3+ messages in thread
From: Jenkins @ 2023-08-24 23:58 UTC (permalink / raw)
To: mchehab, linux-media; +Cc: builder
From: builder@linuxtv.org
Pull request: https://patchwork.linuxtv.org/project/linux-media/patch/20230825015419.0848a4bc@coco.lan/
Build log: https://builder.linuxtv.org/job/patchwork/333715/
Build time: 00:00:00
Link: https://lore.kernel.org/linux-media/20230825015419.0848a4bc@coco.lan
gpg: Signature made Thu 24 Aug 2023 11:52:18 PM UTC
gpg: using RSA key F909AE68FC11DF09C1755C00085F3EBD8EE4E115
gpg: Good signature from "Mauro Carvalho Chehab <mchehab+huawei@kernel.org>" [ultimate]
gpg: aka "Mauro Carvalho Chehab <mchehab@kernel.org>" [ultimate]
gpg: aka "Mauro Carvalho Chehab <m.chehab@samsung.com>" [ultimate]
gpg: aka "Mauro Carvalho Chehab <mchehab@osg.samsung.com>" [ultimate]
gpg: aka "Mauro Carvalho Chehab <mchehab@s-opensource.com>" [ultimate]
gpg: aka "Mauro Carvalho Chehab <mchehab+samsung@kernel.org>" [ultimate]
gpg: aka "[jpeg image of size 3594]" [ultimate]
Build aborted due to a fatal error:
FAILED: patch patch patches/0001-media-vcodec-Fix-potential-array-out-of-bounds-in-en.patch doesn't apply:
Applying patch patches/0001-media-vcodec-Fix-potential-array-out-of-bounds-in-en.patch
can't find file to patch at input line 27
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From e7f2e65699e2290fd547ec12a17008764e5d9620 Mon Sep 17 00:00:00 2001
|From: Wei Chen <harperchen1110@gmail.com>
|Date: Thu, 10 Aug 2023 08:23:33 +0000
|Subject: media: vcodec: Fix potential array out-of-bounds in encoder
| queue_setup
|
|variable *nplanes is provided by user via system call argument. The
|possible value of q_data->fmt->num_planes is 1-3, while the value
|of *nplanes can be 1-8. The array access by index i can cause array
|out-of-bounds.
|
|Fix this bug by checking *nplanes against the array size.
|
|Fixes: 4e855a6efa54 ("[media] vcodec: mediatek: Add Mediatek V4L2 Video Encoder Driver")
|Signed-off-by: Wei Chen <harperchen1110@gmail.com>
|Cc: stable@vger.kernel.org
|Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
|Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
|---
| drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c | 2 ++
| 1 file changed, 2 insertions(+)
|
|diff --git a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c
|index 9ff439a50f53..315e97a2450e 100644
|--- a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c
|+++ b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
Patch patches/0001-media-vcodec-Fix-potential-array-out-of-bounds-in-en.patch does not apply (enforce with -f)
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [GIT PULL for v6.5] media fixes
2023-08-24 23:54 [GIT PULL for v6.5] media fixes Mauro Carvalho Chehab
2023-08-24 23:58 ` [GIT PULL for v6.5] media fixes (#94321) Jenkins
@ 2023-08-25 2:51 ` pr-tracker-bot
1 sibling, 0 replies; 3+ messages in thread
From: pr-tracker-bot @ 2023-08-25 2:51 UTC (permalink / raw)
To: Mauro Carvalho Chehab
Cc: Linus Torvalds, Greg Kroah-Hartman, Andrew Morton,
Linux Media Mailing List, Linux Kernel Mailing List
The pull request you sent on Fri, 25 Aug 2023 01:54:19 +0200:
> git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media tags/media/v6.5-4
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/14ddccc8a647f0e6b268858c4fe2804ae42aabb0
Thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-08-25 2:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-24 23:54 [GIT PULL for v6.5] media fixes Mauro Carvalho Chehab
2023-08-24 23:58 ` [GIT PULL for v6.5] media fixes (#94321) Jenkins
2023-08-25 2:51 ` [GIT PULL for v6.5] media fixes pr-tracker-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox