android_kernel_xiaomi_sm8350/drivers/firewire
Thanassis Avgerinos 7b8c7bd229 firewire: nosy: ensure user_length is taken into account when fetching packet contents
commit 38762a0763c10c24a4915feee722d7aa6e73eb98 upstream.

Ensure that packet_buffer_get respects the user_length provided. If
the length of the head packet exceeds the user_length, packet_buffer_get
will now return 0 to signify to the user that no data were read
and a larger buffer size is required. Helps prevent user space overflows.

Signed-off-by: Thanassis Avgerinos <thanassis.avgerinos@gmail.com>
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-05-17 11:43:54 +02:00
..
core-card.c firewire: core: use long bus reset on gap count error 2024-03-26 18:22:13 -04:00
core-cdev.c firewire: fix memory leak for payload of request subaction to IEC 61883-1 FCP region 2023-02-22 12:50:22 +01:00
core-device.c firewire: core: correct documentation of fw_csr_string() kernel API 2024-02-23 08:25:10 +01:00
core-iso.c
core-topology.c firewire: core: extend card->lock in fw_core_handle_bus_reset 2022-05-12 12:23:41 +02:00
core-transaction.c firewire: remove check of list iterator against head past the loop body 2022-05-12 12:23:41 +02:00
core.h
init_ohci1394_dma.c Merge remote-tracking branch 'remotes/origin/tmp-f686d9f' into msm-lahaina 2019-07-01 17:41:24 -07:00
Kconfig
Makefile
net.c
nosy-user.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
nosy.c firewire: nosy: ensure user_length is taken into account when fetching packet contents 2024-05-17 11:43:54 +02:00
nosy.h
ohci.c firewire: ohci: mask bus reset interrupts between ISR and bottom half 2024-05-17 11:43:51 +02:00
ohci.h
sbp2.c firewire: remove check of list iterator against head past the loop body 2022-05-12 12:23:41 +02:00