linux-yocto/arch/sparc/kernel
Arnd Bergmann e1b88ac1fe syscalls: fix compat_sys_io_pgetevents_time64 usage
commit d3882564a7 upstream.

Using sys_io_pgetevents() as the entry point for compat mode tasks
works almost correctly, but misses the sign extension for the min_nr
and nr arguments.

This was addressed on parisc by switching to
compat_sys_io_pgetevents_time64() in commit 6431e92fc8 ("parisc:
io_pgetevents_time64() needs compat syscall in 32-bit compat mode"),
as well as by using more sophisticated system call wrappers on x86 and
s390. However, arm64, mips, powerpc, sparc and riscv still have the
same bug.

Change all of them over to use compat_sys_io_pgetevents_time64()
like parisc already does. This was clearly the intention when the
function was originally added, but it got hooked up incorrectly in
the tables.

Cc: stable@vger.kernel.org
Fixes: 48166e6ea4 ("y2038: add 64-bit time_t syscalls to all 32-bit architectures")
Acked-by: Heiko Carstens <hca@linux.ibm.com> # s390
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-07-05 09:31:59 +02:00
..
syscalls syscalls: fix compat_sys_io_pgetevents_time64 usage 2024-07-05 09:31:59 +02:00
.gitignore
adi_64.c
apc.c sparc: Explicitly include correct DT includes 2024-04-03 15:19:33 +02:00
asm-offsets.c
audit.c audit: add support for the openat2 syscall 2021-10-01 16:52:48 -04:00
auxio_32.c sparc: Explicitly include correct DT includes 2024-04-03 15:19:33 +02:00
auxio_64.c sparc: Explicitly include correct DT includes 2024-04-03 15:19:33 +02:00
btext.c treewide: Convert macro and uses of __section(foo) to __section("foo") 2020-10-25 14:51:49 -07:00
central.c sparc: Explicitly include correct DT includes 2024-04-03 15:19:33 +02:00
cherrs.S
chmc.c sparc: Explicitly include correct DT includes 2024-04-03 15:19:33 +02:00
compat_audit.c audit: add support for the openat2 syscall 2021-10-01 16:52:48 -04:00
cpu.c
cpumap.c
cpumap.h
devices.c
ds.c sparc/vio: make remove callback return void 2021-05-14 13:45:58 +02:00
dtlb_miss.S
dtlb_prot.S
ebus.c
entry.h
entry.S Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc 2021-02-23 15:09:53 -08:00
etrap_32.S
etrap_64.S
fpu_traps.S
ftrace.c ftrace: Cleanup ftrace_dyn_arch_init() 2021-10-08 19:41:39 -04:00
getsetcc.S
head_32.S sparc32: get rid of fake_swapper_regs 2021-01-03 20:10:55 -05:00
head_64.S sparc64: get rid of fake_swapper_regs 2021-01-03 20:10:54 -05:00
helpers.S
hvapi.c
hvcalls.S
hvtramp.S
idprom.c
iommu_common.h
iommu-common.c dma-mapping: introduce dma_get_seg_boundary_nr_pages() 2020-09-03 18:12:15 +02:00
iommu.c sparc/iommu: don't set failed sg dma_address to DMA_MAPPING_ERROR 2021-08-09 17:13:06 +02:00
ioport.c sparc: Explicitly include correct DT includes 2024-04-03 15:19:33 +02:00
irq_32.c
irq_64.c asm-generic: Conditionally enable do_softirq_own_stack() via Kconfig. 2022-09-05 17:20:55 +02:00
irq.h
itlb_miss.S
ivec.S
jump_label.c
kernel.h
kgdb_32.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
kgdb_64.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
kprobes.c kprobes: treewide: Make it harder to refer kretprobe_trampoline directly 2021-09-30 21:24:06 -04:00
kstack.h
ktlb.S
ldc.c
led.c proc: make the proc_create[_data]() stubs static inlines 2022-01-20 08:52:52 +02:00
leon_kernel.c sparc: Explicitly include correct DT includes 2024-04-03 15:19:33 +02:00
leon_pci_grpci1.c sparc: Explicitly include correct DT includes 2024-04-03 15:19:33 +02:00
leon_pci_grpci2.c sparc: Explicitly include correct DT includes 2024-04-03 15:19:33 +02:00
leon_pci.c sparc: Explicitly include correct DT includes 2024-04-03 15:19:33 +02:00
leon_pmc.c sched/idle: Fix arch_cpu_idle() vs tracing 2020-11-24 16:47:35 +01:00
leon_smp.c sparc: Unbreak the build 2022-09-29 19:21:10 -07:00
Makefile Kbuild updates for v6.1 2022-10-10 12:00:45 -07:00
mdesc.c sparc: avoid stringop-overread errors 2021-09-15 13:42:33 -07:00
misctrap.S
module.c jump_label: mips: move module NOP patching into arch code 2022-06-24 09:48:55 +02:00
nmi.c sparc64: NMI watchdog: fix return value of __setup handler 2024-04-03 15:19:26 +02:00
of_device_32.c sparc: Explicitly include correct DT includes 2024-04-03 15:19:33 +02:00
of_device_64.c sparc: Explicitly include correct DT includes 2024-04-03 15:19:33 +02:00
of_device_common.c sparc: Explicitly include correct DT includes 2024-04-03 15:19:33 +02:00
of_device_common.h
pci_common.c sparc: Explicitly include correct DT includes 2024-04-03 15:19:33 +02:00
pci_fire.c sparc: Explicitly include correct DT includes 2024-04-03 15:19:33 +02:00
pci_impl.h sparc: Explicitly include correct DT includes 2024-04-03 15:19:33 +02:00
pci_msi.c sparc: Explicitly include correct DT includes 2024-04-03 15:19:33 +02:00
pci_psycho.c sparc: Explicitly include correct DT includes 2024-04-03 15:19:33 +02:00
pci_sabre.c
pci_schizo.c
pci_sun4v_asm.S
pci_sun4v.c sparc: Explicitly include correct DT includes 2024-04-03 15:19:33 +02:00
pci_sun4v.h
pci.c sparc: Explicitly include correct DT includes 2024-04-03 15:19:33 +02:00
pcic.c
pcr.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
perf_event.c
pmc.c sparc: Explicitly include correct DT includes 2024-04-03 15:19:33 +02:00
power.c sparc: Explicitly include correct DT includes 2024-04-03 15:19:33 +02:00
process_32.c fork: Generalize PF_IO_WORKER handling 2022-05-07 09:01:59 -05:00
process_64.c fork: Generalize PF_IO_WORKER handling 2022-05-07 09:01:59 -05:00
process.c sparc: switch to kernel_clone() 2020-08-20 13:12:58 +02:00
prom_32.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
prom_64.c sparc64: Fix number of online CPUs 2024-06-16 13:41:39 +02:00
prom_common.c
prom_irqtrans.c sparc: Explicitly include correct DT includes 2024-04-03 15:19:33 +02:00
prom.h
psycho_common.c sparc: Explicitly include correct DT includes 2024-04-03 15:19:33 +02:00
psycho_common.h
ptrace_32.c ptrace: Create ptrace_report_syscall_{entry,exit} in ptrace.h 2022-03-10 13:35:08 -06:00
ptrace_64.c ptrace: Create ptrace_report_syscall_{entry,exit} in ptrace.h 2022-03-10 13:35:08 -06:00
reboot.c
rtrap_32.S sparc32: Preserve clone syscall flags argument for restarts due to signals 2021-02-18 16:15:11 -08:00
rtrap_64.S context_tracking: Split user tracking Kconfig 2022-06-29 17:04:09 -07:00
sbus.c sparc: Explicitly include correct DT includes 2024-04-03 15:19:33 +02:00
setup_32.c sparc/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 20:03:47 +02:00
setup_64.c sparc64: Fix number of online CPUs 2024-06-16 13:41:39 +02:00
signal_32.c ptrace: Cleanups for v5.18 2022-03-28 17:29:53 -07:00
signal_64.c signal: Deliver SIGTRAP on perf event asynchronously if blocked 2022-04-22 12:14:05 +02:00
signal32.c signal: Deliver SIGTRAP on perf event asynchronously if blocked 2022-04-22 12:14:05 +02:00
sigutil_32.c
sigutil_64.c
sigutil.h
smp_32.c profile: setup_profiling_timer() is moslty not implemented 2022-07-29 18:12:36 -07:00
smp_64.c sparc64: Fix number of online CPUs 2024-06-16 13:41:39 +02:00
sparc_ksyms.c
spiterrs.S
sstate.c kernel.h: split out panic and oops helpers 2021-07-01 11:06:04 -07:00
stacktrace.c
starfire.c
sun4d_irq.c
sun4d_smp.c sparc: Unbreak the build 2022-09-29 19:21:10 -07:00
sun4m_irq.c
sun4m_smp.c sparc: Unbreak the build 2022-09-29 19:21:10 -07:00
sun4v_ivec.S
sun4v_mcd.S
sun4v_tlb_miss.S
sys_sparc_32.c signal/sparc: si_trapno is only used with SIGILL ILL_ILLTRP 2021-07-23 13:08:57 -05:00
sys_sparc_64.c signal/sparc: si_trapno is only used with SIGILL ILL_ILLTRP 2021-07-23 13:08:57 -05:00
sys_sparc32.c
sys32.S sparc: fix compat recv/recvfrom syscalls 2024-07-05 09:31:46 +02:00
syscalls.S
sysfs.c drivers/base/node: consolidate node device subsystem initialization in node_dev_init() 2022-03-22 15:57:10 -07:00
systbls_32.S sparc: syscalls: switch to generic syscalltbl.sh 2021-05-02 00:43:34 +09:00
systbls_64.S sparc: syscalls: switch to generic syscalltbl.sh 2021-05-02 00:43:34 +09:00
systbls.h
termios.c termios: start unifying non-UAPI parts of asm/termios.h 2022-09-09 10:44:34 +02:00
time_32.c sparc: Explicitly include correct DT includes 2024-04-03 15:19:33 +02:00
time_64.c
trampoline_32.S
trampoline_64.S
traps_32.c exit: Add and use make_task_dead. 2021-12-13 12:04:45 -06:00
traps_64.c sparc64: remove CONFIG_SET_FS support 2022-02-25 09:36:06 +01:00
tsb.S
ttable_32.S
ttable_64.S
una_asm_32.S
una_asm_64.S
unaligned_32.c signal/sparc: si_trapno is only used with SIGILL ILL_ILLTRP 2021-07-23 13:08:57 -05:00
unaligned_64.c
uprobes.c
urtt_fill.S
utrap.S
vdso.c
vio.c bus: Make remove callback return void 2021-07-21 11:53:42 +02:00
viohs.c
visemul.c
vmlinux.lds.S vmlinux.lds.h: Split ELF_DETAILS from STABS_DEBUG 2020-09-01 09:50:35 +02:00
windows.c signal: Replace force_fatal_sig with force_exit_sig when in doubt 2021-11-19 09:15:58 -06:00
winfixup.S
wof.S
wuf.S