2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/arch/powerpc/platforms/powernv
Ritesh Harjani (IBM) cd097df459 powerpc/powernv/memtrace: Fix out of bounds issue in memtrace mmap
memtrace mmap issue has an out of bounds issue. This patch fixes the by
checking that the requested mapping region size should stay within the
allocated region size.

Reported-by: Jonathan Greental <yonatan02greental@gmail.com>
Fixes: 08a022ad3d ("powerpc/powernv/memtrace: Allow mmaping trace buffers")
Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250610021227.361980-1-maddy@linux.ibm.com
2025-06-10 07:44:27 +05:30
..
copy-paste.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
eeh-powernv.c powerpc: Stop using no_llseek 2024-09-05 22:30:14 +10:00
idle.c asm-generic: introduce text-patching.h 2024-11-07 14:25:15 -08:00
Kconfig powerpc: Add check to select PPC_RADIX_BROADCAST_TLBIE 2025-04-15 11:42:26 +05:30
Makefile cxl: Remove driver 2025-03-16 22:04:27 +11:00
memtrace.c powerpc/powernv/memtrace: Fix out of bounds issue in memtrace mmap 2025-06-10 07:44:27 +05:30
ocxl.c ocxl: Use pci_dev_id() to simplify the code 2023-08-16 23:54:47 +10:00
opal-async.c powerpc: Use fallthrough pseudo-keyword 2020-07-29 21:09:37 +10:00
opal-call.c powerpc/powernv/pci: Remove MVE code 2023-06-21 15:13:57 +10:00
opal-core.c Driver core updates for 6.15-rc1 2025-04-01 11:02:03 -07:00
opal-dump.c powerpc/powernv/opal: Constify 'struct bin_attribute' 2025-02-21 09:20:32 +01:00
opal-elog.c powerpc/powernv/opal: Constify 'struct bin_attribute' 2025-02-21 09:20:32 +01:00
opal-fadump.c powerpc/fadump: setup additional parameters for dump capture kernel 2024-05-10 16:36:10 +10:00
opal-fadump.h powerpc/fadump: Annotate endianness cast with __force 2023-10-19 17:16:20 +11:00
opal-flash.c powerpc/powernv/opal: Constify 'struct bin_attribute' 2025-02-21 09:20:32 +01:00
opal-hmi.c powerpc/64s/powernv: Ratelimit harmless HMI error printing 2020-12-04 01:01:23 +11:00
opal-imc.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
opal-irqchip.c powerpc: Switch to irq_domain_create_*() 2025-05-16 21:06:11 +02:00
opal-kmsg.c printk: Add a short description string to kmsg_dump() 2024-07-17 12:35:24 +02:00
opal-lpc.c powerpc: Use of_property_present() 2024-08-07 22:48:26 +10:00
opal-memory-errors.c powerpc: fix typos in comments 2022-05-05 22:12:44 +10:00
opal-msglog.c powerpc/powernv/opal: Constify 'struct bin_attribute' 2025-02-21 09:20:32 +01:00
opal-nvram.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
opal-power.c powerpc/powernv: Add __init attribute to eligible functions 2021-12-23 22:33:15 +11:00
opal-powercap.c powerpc/powernv: Add a null pointer check in opal_powercap_init() 2023-12-13 22:19:07 +11:00
opal-prd.c powerpc: Switch back to struct platform_driver::remove() 2024-09-10 11:27:40 +10:00
opal-psr.c powerpc/powernv: Add missing of_node_put()s 2022-09-05 17:30:29 +10:00
opal-rtc.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
opal-secvar.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
opal-sensor-groups.c powerpc/powernv: Add missing of_node_put()s 2022-09-05 17:30:29 +10:00
opal-sensor.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
opal-sysparam.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
opal-tracepoints.c powerpc: Move C prototypes out of asm-prototypes.h 2022-03-08 22:06:25 +11:00
opal-wrappers.S powerpc/64: provide a helper macro to load r2 with the kernel TOC 2022-09-28 19:22:12 +10:00
opal-xscom.c powerpc/powernv: Add a null pointer check to scom_debug_init_one() 2023-12-13 22:18:59 +11:00
opal.c Driver core and debugfs updates 2025-01-28 12:25:12 -08:00
pci-ioda-tce.c KVM: PPC: Book3s: Retire H_PUT_TCE/etc real mode handlers 2022-05-19 00:44:01 +10:00
pci-ioda.c powerpc: Switch to of_fwnode_handle() 2025-05-16 21:06:08 +02:00
pci-sriov.c powerpc: Fix typos 2024-05-08 00:21:30 +10:00
pci.c cxl: Remove driver 2025-03-16 22:04:27 +11:00
pci.h cxl: Remove driver 2025-03-16 22:04:27 +11:00
powernv.h powerpc/powernv: wire up rng during setup_arch 2022-06-22 19:47:22 +10:00
rng.c powerpc/powernv: rename remaining rng powernv_ functions to pnv_ 2022-07-28 16:22:15 +10:00
setup.c powerpc/mm: Cleanup memory block size probing 2023-08-18 17:03:15 +10:00
smp.c - The series "zram: optimal post-processing target selection" from 2024-11-23 09:58:07 -08:00
subcore-asm.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
subcore.c powerpc: Add PVN support for HeXin C2000 processor 2023-12-01 21:15:33 +11:00
subcore.h powerpc: remove unneeded semicolons 2021-02-09 00:10:50 +11:00
ultravisor.c powerpc/powernv/ultravisor: Constify 'struct bin_attribute' 2025-02-21 09:20:32 +01:00
vas-debug.c powerpc/vas: Define and use common vas_window struct 2021-06-20 21:58:56 +10:00
vas-fault.c powerpc: Fix all occurences of duplicate words 2022-07-25 12:05:15 +10:00
vas-trace.h powerpc/vas: Define and use common vas_window struct 2021-06-20 21:58:56 +10:00
vas-window.c powerpc: Fix typos 2024-05-08 00:21:30 +10:00
vas.c powerpc/vas: Fix IRQ name allocation 2021-01-30 11:39:31 +11:00
vas.h powerpc/powernv/vas: Assign real address to rx_fifo in vas_rx_win_attr 2022-05-22 15:58:27 +10:00