No description
Find a file
Hans Verkuil d3d14cdf1c media: v4l2-dv-timings.c: fix too strict blanking sanity checks
commit 5eef214177 upstream.

Sanity checks were added to verify the v4l2_bt_timings blanking fields
in order to avoid integer overflows when userspace passes weird values.

But that assumed that userspace would correctly fill in the front porch,
backporch and sync values, but sometimes all you know is the total
blanking, which is then assigned to just one of these fields.

And that can fail with these checks.

So instead set a maximum for the total horizontal and vertical
blanking and check that each field remains below that.

That is still sufficient to avoid integer overflows, but it also
allows for more flexibility in how userspace fills in these fields.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Fixes: 4b6d66a45e ("media: v4l2-dv-timings: add sanity checks for blanking values")
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-12-14 11:40:52 +01:00
arch Revert "ARM: dts: imx7: Fix NAND controller size-cells" 2022-12-14 11:40:51 +01:00
block block: make blk_set_default_limits() private 2022-12-02 17:43:16 +01:00
certs
crypto
Documentation
drivers media: v4l2-dv-timings.c: fix too strict blanking sanity checks 2022-12-14 11:40:52 +01:00
fs fscache: Fix oops due to race with cookie_lru and use_cookie 2022-12-14 11:40:51 +01:00
include fscache: Fix oops due to race with cookie_lru and use_cookie 2022-12-14 11:40:51 +01:00
init
io_uring io_uring: clear TIF_NOTIFY_SIGNAL if set and task_work not available 2022-12-02 17:43:12 +01:00
ipc ipc/sem: Fix dangling sem_array access in semtimedop race 2022-12-08 11:30:22 +01:00
kernel proc: proc_skip_spaces() shouldn't think it is working on C strings 2022-12-08 11:30:22 +01:00
lib Kconfig.debug: provide a little extra FRAME_WARN leeway when KASAN is enabled 2022-12-08 11:30:20 +01:00
LICENSES
mm hugetlb: don't delete vma_lock in hugetlb MADV_DONTNEED processing 2022-12-14 11:40:50 +01:00
net 9p/xen: check logical size for buffer size 2022-12-14 11:40:49 +01:00
samples
scripts scripts/faddr2line: Fix regression in name resolution on ppc64le 2022-12-08 11:30:14 +01:00
security
sound ALSA: hda/realtek: More robust component matching for CS35L41 2022-12-14 11:40:50 +01:00
tools selftests/net: Find nettest in current directory 2022-12-14 11:40:48 +01:00
usr
virt KVM: Update gfn_to_pfn_cache khva when it moves within the same page 2022-12-02 17:43:13 +01:00
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile Linux 6.0.12 2022-12-08 11:30:22 +01:00
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.