linux-yocto/arch/m68k/kernel
Simon Schuster bbc46b23af arch: copy_thread: pass clone_flags as u64
With the introduction of clone3 in commit 7f192e3cd3 ("fork: add
clone3") the effective bit width of clone_flags on all architectures was
increased from 32-bit to 64-bit, with a new type of u64 for the flags.
However, for most consumers of clone_flags the interface was not
changed from the previous type of unsigned long.

While this works fine as long as none of the new 64-bit flag bits
(CLONE_CLEAR_SIGHAND and CLONE_INTO_CGROUP) are evaluated, this is still
undesirable in terms of the principle of least surprise.

Thus, this commit fixes all relevant interfaces of the copy_thread
function that is called from copy_process to consistently pass
clone_flags as u64, so that no truncation to 32-bit integers occurs on
32-bit architectures.

Signed-off-by: Simon Schuster <schuster.simon@siemens-energy.com>
Link: https://lore.kernel.org/20250901-nios2-implement-clone3-v2-3-53fcf5577d57@siemens-energy.com
Fixes: c5febea095 ("fork: Pass struct kernel_clone_args into copy_thread")
Acked-by: Guo Ren (Alibaba Damo Academy) <guoren@kernel.org>
Acked-by: Andreas Larsson <andreas@gaisler.com> # sparc
Acked-by: David Hildenbrand <david@redhat.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> # m68k
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
2025-09-01 15:31:34 +02:00
..
syscalls fs: introduce file_getattr and file_setattr syscalls 2025-07-02 17:05:17 +02:00
.gitignore
asm-offsets.c
bootinfo_proc.c
dma.c m68k: remove unused includes from dma.c 2023-10-22 16:38:55 +02:00
early_printk.c m68k: Don't unregister boot console needlessly 2025-07-06 12:50:50 +02:00
entry.S m68k: Fix spinlock race in kernel thread creation 2024-05-08 17:43:22 +02:00
head.S m68k: Don't unregister boot console needlessly 2025-07-06 12:50:50 +02:00
ints.c m68k: kernel: Add and use "ints.h" 2023-10-06 10:03:01 +02:00
ints.h m68k: kernel: Add and use "ints.h" 2023-10-06 10:03:01 +02:00
irq.c
machine_kexec.c
Makefile arch: use always-$(KBUILD_BUILTIN) for vmlinux.lds 2025-06-07 14:38:07 +09:00
module.c
pcibios.c m68k/pci: Drop useless pcibios_setup() 2023-08-21 08:45:36 +10:00
process.c arch: copy_thread: pass clone_flags as u64 2025-09-01 15:31:34 +02:00
process.h m68k: kernel: Add and use "process.h" 2023-10-06 10:03:01 +02:00
ptrace.c m68k: ptrace: Use USER_REGSET_NOTE_TYPE() to specify regset note names 2025-07-14 22:27:47 -07:00
ptrace.h m68k: kernel: Add and use "ptrace.h" 2023-10-06 10:03:01 +02:00
relocate_kernel.S m68k: Fix invalid .section syntax 2023-07-24 14:50:02 +02:00
setup_mm.c m68k: Replace strcpy() with strscpy() in hardware_proc_show() 2025-04-28 22:16:52 +02:00
setup_no.c m68k: Replace memcpy() + manual NUL-termination with strscpy() 2025-05-19 08:54:30 +10:00
setup.c
signal.c m68k: kernel: Add and use "signal.h" 2023-10-06 10:03:01 +02:00
signal.h m68k: kernel: Add and use "signal.h" 2023-10-06 10:03:01 +02:00
sun3-head.S
sys_m68k.c m68k: mm: Add and use "fault.h" 2023-10-06 10:03:02 +02:00
syscalltable.S
time.c m68k: Move Sun 3 into a top-level platform option 2024-11-06 15:10:14 +01:00
traps.c m68k: kernel: Use str_read_write() helper function 2024-11-06 15:10:14 +01:00
traps.h m68k: kernel: Add and use "traps.h" 2023-10-06 10:03:01 +02:00
uboot.c m68k/kernel: replace strncpy() with strscpy() 2025-05-19 08:54:30 +10:00
vectors.c m68k: kernel: Add and use "vectors.h" 2023-10-06 10:03:01 +02:00
vectors.h m68k: kernel: Add and use "vectors.h" 2023-10-06 10:03:01 +02:00
vmlinux-nommu.lds
vmlinux-std.lds
vmlinux-sun3.lds
vmlinux.lds.S