mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-16 15:39:42 -04:00
Merge tag 'mm-nonmm-stable-2025-12-06-11-14' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Pull non-MM updates from Andrew Morton:
- "panic: sys_info: Refactor and fix a potential issue" (Andy Shevchenko)
fixes a build issue and does some cleanup in ib/sys_info.c
- "Implement mul_u64_u64_div_u64_roundup()" (David Laight)
enhances the 64-bit math code on behalf of a PWM driver and beefs up
the test module for these library functions
- "scripts/gdb/symbols: make BPF debug info available to GDB" (Ilya Leoshkevich)
makes BPF symbol names, sizes, and line numbers available to the GDB
debugger
- "Enable hung_task and lockup cases to dump system info on demand" (Feng Tang)
adds a sysctl which can be used to cause additional info dumping when
the hung-task and lockup detectors fire
- "lib/base64: add generic encoder/decoder, migrate users" (Kuan-Wei Chiu)
adds a general base64 encoder/decoder to lib/ and migrates several
users away from their private implementations
- "rbree: inline rb_first() and rb_last()" (Eric Dumazet)
makes TCP a little faster
- "liveupdate: Rework KHO for in-kernel users" (Pasha Tatashin)
reworks the KEXEC Handover interfaces in preparation for Live Update
Orchestrator (LUO), and possibly for other future clients
- "kho: simplify state machine and enable dynamic updates" (Pasha Tatashin)
increases the flexibility of KEXEC Handover. Also preparation for LUO
- "Live Update Orchestrator" (Pasha Tatashin)
is a major new feature targeted at cloud environments. Quoting the
cover letter:
This series introduces the Live Update Orchestrator, a kernel
subsystem designed to facilitate live kernel updates using a
kexec-based reboot. This capability is critical for cloud
environments, allowing hypervisors to be updated with minimal
downtime for running virtual machines. LUO achieves this by
preserving the state of selected resources, such as memory,
devices and their dependencies, across the kernel transition.
As a key feature, this series includes support for preserving
memfd file descriptors, which allows critical in-memory data, such
as guest RAM or any other large memory region, to be maintained in
RAM across the kexec reboot.
Mike Rappaport merits a mention here, for his extensive review and
testing work.
- "kexec: reorganize kexec and kdump sysfs" (Sourabh Jain)
moves the kexec and kdump sysfs entries from /sys/kernel/ to
/sys/kernel/kexec/ and adds back-compatibility symlinks which can
hopefully be removed one day
- "kho: fixes for vmalloc restoration" (Mike Rapoport)
fixes a BUG which was being hit during KHO restoration of vmalloc()
regions
* tag 'mm-nonmm-stable-2025-12-06-11-14' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm: (139 commits)
calibrate: update header inclusion
Reinstate "resource: avoid unnecessary lookups in find_next_iomem_res()"
vmcoreinfo: track and log recoverable hardware errors
kho: fix restoring of contiguous ranges of order-0 pages
kho: kho_restore_vmalloc: fix initialization of pages array
MAINTAINERS: TPM DEVICE DRIVER: update the W-tag
init: replace simple_strtoul with kstrtoul to improve lpj_setup
KHO: fix boot failure due to kmemleak access to non-PRESENT pages
Documentation/ABI: new kexec and kdump sysfs interface
Documentation/ABI: mark old kexec sysfs deprecated
kexec: move sysfs entries to /sys/kernel/kexec
test_kho: always print restore status
kho: free chunks using free_page() instead of kfree()
selftests/liveupdate: add kexec test for multiple and empty sessions
selftests/liveupdate: add simple kexec-based selftest for LUO
selftests/liveupdate: add userspace API selftests
docs: add documentation for memfd preservation via LUO
mm: memfd_luo: allow preserving memfd
liveupdate: luo_file: add private argument to store runtime state
mm: shmem: export some functions to internal.h
...
This commit is contained in:
@@ -54,6 +54,7 @@ TARGETS += kvm
|
||||
TARGETS += landlock
|
||||
TARGETS += lib
|
||||
TARGETS += livepatch
|
||||
TARGETS += liveupdate
|
||||
TARGETS += lkdtm
|
||||
TARGETS += lsm
|
||||
TARGETS += membarrier
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <string.h>
|
||||
#include <sys/wait.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
int main(void)
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include <regex.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
#include "alsa-local.h"
|
||||
|
||||
#define SYSFS_ROOT "/sys"
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <poll.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
#include "alsa-local.h"
|
||||
|
||||
#define TESTS_PER_CONTROL 7
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include <assert.h>
|
||||
#include <pthread.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
#include "alsa-local.h"
|
||||
|
||||
typedef struct timespec timestamp_t;
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
#include <string.h>
|
||||
#include <alsa/asoundlib.h>
|
||||
#include "../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
|
||||
#define CH_NUM 4
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Author: Ivan Orlov <ivan.orlov0322@gmail.com>
|
||||
*/
|
||||
#include "../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
#include <sound/asound.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
#include <linux/auxvec.h>
|
||||
|
||||
#include "../../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
#define TESTS_PER_HWCAP 3
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include <asm/sigcontext.h>
|
||||
#include <asm/ptrace.h>
|
||||
|
||||
#include "../../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
#define EXPECTED_TESTS 11
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <asm/sigcontext.h>
|
||||
#include <asm/unistd.h>
|
||||
|
||||
#include "../../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
#include "syscall-abi.h"
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include <asm/sve_context.h>
|
||||
#include <asm/ptrace.h>
|
||||
|
||||
#include "../../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
#include "fp-ptrace.h"
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include <sys/wait.h>
|
||||
#include <asm/hwcap.h>
|
||||
|
||||
#include "../../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
#define MAX_VLS 16
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include <sys/prctl.h>
|
||||
#include <asm/sigcontext.h>
|
||||
|
||||
#include "../../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
#include "rdvl.h"
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include <asm/sigcontext.h>
|
||||
#include <asm/ptrace.h>
|
||||
|
||||
#include "../../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
/* <linux/elf.h> and <sys/auxv.h> don't like each other, so: */
|
||||
#ifndef NT_ARM_SVE
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include <asm/sigcontext.h>
|
||||
#include <asm/hwcap.h>
|
||||
|
||||
#include "../../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
#include "rdvl.h"
|
||||
|
||||
#define ARCH_MIN_VL SVE_VL_MIN
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include <asm/sigcontext.h>
|
||||
#include <asm/ptrace.h>
|
||||
|
||||
#include "../../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
/* <linux/elf.h> and <sys/auxv.h> don't like each other, so: */
|
||||
#ifndef NT_ARM_ZA
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include <asm/sigcontext.h>
|
||||
#include <asm/ptrace.h>
|
||||
|
||||
#include "../../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
/* <linux/elf.h> and <sys/auxv.h> don't like each other, so: */
|
||||
#ifndef NT_ARM_ZA
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include <sys/wait.h>
|
||||
#include <asm/hwcap.h>
|
||||
|
||||
#include "../../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
struct child_data {
|
||||
char *name, *output;
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <setjmp.h>
|
||||
#include <sched.h>
|
||||
|
||||
#include "../../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
#include "helper.h"
|
||||
|
||||
#define PAC_COLLISION_ATTEMPTS 1000
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include <stdint.h>
|
||||
#include <sys/prctl.h>
|
||||
#include <sys/utsname.h>
|
||||
#include "../../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
#define SHIFT_TAG(tag) ((uint64_t)(tag) << 56)
|
||||
#define SET_TAG(ptr, tag) (((uint64_t)(ptr) & ~SHIFT_TAG(0xff)) | \
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
#include "xskxceiver.h"
|
||||
#include <bpf/bpf.h>
|
||||
#include <linux/filter.h>
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
#include "xsk_xdp_common.h"
|
||||
|
||||
#include <network_helpers.h>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
#define COUNT_ISN_BPS 4
|
||||
#define COUNT_WPS 4
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#include <errno.h>
|
||||
#include <signal.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
static volatile uint8_t var[96] __attribute__((__aligned__(32)));
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
void child(int cpu)
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
#define NR_TESTS 9
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include <sys/prctl.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
static int nerrs;
|
||||
static pid_t mpid; /* main() pid is used to avoid duplicate test counts */
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <sys/prctl.h>
|
||||
#include <sys/auxv.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19)
|
||||
# define HAVE_GETAUXVAL
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include <string.h>
|
||||
#include <pthread.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
#include "cgroup_util.h"
|
||||
|
||||
static bool nsdelegate;
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
#include "cgroup_util.h"
|
||||
|
||||
enum hog_clock_type {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include <linux/limits.h>
|
||||
#include <signal.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
#include "cgroup_util.h"
|
||||
|
||||
static int idle_process_fn(const char *cgroup, void *arg)
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <string.h>
|
||||
#include <sys/wait.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
#include "cgroup_util.h"
|
||||
|
||||
#define DEBUG
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
#include "cgroup_util.h"
|
||||
|
||||
#define ADDR ((void *)(0x0UL))
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
#include "../pidfd/pidfd.h"
|
||||
#include "cgroup_util.h"
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include <sys/sysinfo.h>
|
||||
#include <pthread.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
#include "cgroup_util.h"
|
||||
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include <errno.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
#include "cgroup_util.h"
|
||||
|
||||
static bool has_localevents;
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
#include "cgroup_util.h"
|
||||
|
||||
static int run_success(const char *cgroup, void *arg)
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <sys/wait.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
#include "cgroup_util.h"
|
||||
|
||||
static int read_int(const char *path, size_t *value)
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include <unistd.h>
|
||||
#include <sched.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
#include "clone3_selftests.h"
|
||||
|
||||
enum test_mode {
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include <unistd.h>
|
||||
#include <sched.h>
|
||||
|
||||
#include "../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
#include "clone3_selftests.h"
|
||||
|
||||
static void child_exit(int ret)
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include <sys/syscall.h>
|
||||
#include <sys/wait.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
#include "clone3_selftests.h"
|
||||
|
||||
static void nop_handler(int signo)
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <syscall.h>
|
||||
#include <sys/wait.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
#define ptr_to_u64(ptr) ((__u64)((uintptr_t)(ptr)))
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include <unistd.h>
|
||||
#include <sched.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
#include "clone3_selftests.h"
|
||||
|
||||
#define MAX_PID_NS_LEVEL 32
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <signal.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
#define NL_MESSAGE_SIZE (sizeof(struct nlmsghdr) + sizeof(struct cn_msg) + \
|
||||
sizeof(struct proc_input))
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include <sys/resource.h>
|
||||
#include <linux/close_range.h>
|
||||
|
||||
#include "../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
#include "../clone3/clone3_selftests.h"
|
||||
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include <sys/resource.h>
|
||||
#include <linux/close_range.h>
|
||||
|
||||
#include "../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
#include "../clone3/clone3_selftests.h"
|
||||
|
||||
TEST(unshare_EMFILE)
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include <sys/un.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
#include "../filesystems/wrappers.h"
|
||||
#include "../pidfd/pidfd.h"
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include <linux/dma-buf.h>
|
||||
#include <linux/dma-heap.h>
|
||||
#include <drm/drm.h>
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
#define DEVPATH "/dev/dma_heap"
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <sys/mman.h>
|
||||
#include <linux/memfd.h>
|
||||
#include <linux/udmabuf.h>
|
||||
#include "../../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
#define TEST_PREFIX "drivers/dma-buf/udmabuf"
|
||||
#define NUM_PAGES 4
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "../../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
#include "../../net/lib/ksft.h"
|
||||
|
||||
#define DPORT 8000
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
#include <ynl.h>
|
||||
#include "ethtool-user.h"
|
||||
|
||||
#include "../../../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
#include "../../../net/lib/ksft.h"
|
||||
|
||||
#define TOEPLITZ_KEY_MIN_LEN 40
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include <time.h>
|
||||
#include <pthread.h>
|
||||
#include <linux/ntsync.h>
|
||||
#include "../../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
|
||||
static int read_sem_state(int sem, __u32 *count, __u32 *max)
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
#include <asm/uvdevice.h>
|
||||
|
||||
#include "../../../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
|
||||
#define UV_PATH "/dev/uv"
|
||||
#define BUFFER_SIZE 0x200
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#define _ASM_GENERIC_FCNTL_H
|
||||
#include <linux/fcntl.h>
|
||||
|
||||
#include "../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
|
||||
static int sys_execveat(int dirfd, const char *pathname, char *const argv[],
|
||||
char *const envp[], int flags)
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
#define TESTS_EXPECTED 54
|
||||
#define TEST_NAME_LEN (PATH_MAX * 4)
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
struct Statistics {
|
||||
unsigned long long load_address;
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <sys/sysmacros.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
|
||||
/* Remove a file, ignoring the result if it didn't exist. */
|
||||
void rm(struct __test_metadata *_metadata, const char *pathname,
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
#define FORK(exec) \
|
||||
do { \
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include <fcntl.h>
|
||||
#include <sys/mount.h>
|
||||
#include <unistd.h>
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
int main(void)
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <syscall.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
int sys_fchmodat2(int dfd, const char *filename, mode_t mode, int flags)
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
static int lock_set(int fd, struct flock *fl)
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include <stdio.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
#include "wrappers.h"
|
||||
|
||||
TEST(anon_inode_no_chown)
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include <linux/android/binder.h>
|
||||
#include <linux/android/binderfs.h>
|
||||
|
||||
#include "../../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
|
||||
#define DEFAULT_THREADS 4
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <asm/ioctls.h>
|
||||
#include <sys/mount.h>
|
||||
#include <sys/wait.h>
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
static bool terminal_dup2(int duplicate, int original)
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <sys/epoll.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/eventfd.h>
|
||||
#include "../../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
|
||||
struct epoll_mtcontext
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <pthread.h>
|
||||
#include <sys/epoll.h>
|
||||
#include <sys/eventfd.h>
|
||||
#include "../../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
|
||||
#define EVENTFD_TEST_ITERATIONS 100000UL
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include <unistd.h>
|
||||
#include <sys/mount.h>
|
||||
|
||||
#include "../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
|
||||
#define ASSERT_ERRNO(expected, _t, seen) \
|
||||
__EXPECT(expected, #expected, \
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include <sys/mount.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <linux/mount.h>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include <sched.h>
|
||||
#include <linux/limits.h>
|
||||
|
||||
#include "../../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
|
||||
#define FUSECTL_MOUNTPOINT "/sys/fs/fuse/connections"
|
||||
#define FUSE_MOUNTPOINT "/tmp/fuse_mnt_XXXXXX"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <sys/xattr.h>
|
||||
|
||||
#include "../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
#include "wrappers.h"
|
||||
|
||||
TEST(kernfs_listxattr)
|
||||
|
||||
@@ -19,7 +19,7 @@ typedef struct {
|
||||
#include <sys/syscall.h>
|
||||
#include <sys/fanotify.h>
|
||||
|
||||
#include "../../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
#include "../statmount/statmount.h"
|
||||
#include "../utils.h"
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ typedef struct {
|
||||
#include <sys/syscall.h>
|
||||
#include <sys/fanotify.h>
|
||||
|
||||
#include "../../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
#include "../statmount/statmount.h"
|
||||
#include "../utils.h"
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include <sys/mount.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "../../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
|
||||
#define MNT_NS_COUNT 11
|
||||
#define MNT_NS_LAST_INDEX 10
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include <sched.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#include "../../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
#include "log.h"
|
||||
#include "../wrappers.h"
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include <sys/mount.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "../../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
#include "../../pidfd/pidfd.h"
|
||||
#include "log.h"
|
||||
#include "../utils.h"
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include "statmount.h"
|
||||
#include "../../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
|
||||
#ifndef LISTMOUNT_REVERSE
|
||||
#define LISTMOUNT_REVERSE (1 << 0) /* List later mounts first */
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include <linux/stat.h>
|
||||
|
||||
#include "statmount.h"
|
||||
#include "../../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
static const char *const known_fs[] = {
|
||||
"9p", "adfs", "affs", "afs", "aio", "anon_inodefs", "apparmorfs",
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
#include "statmount.h"
|
||||
#include "../utils.h"
|
||||
#include "../../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
#define NSID_PASS 0
|
||||
#define NSID_FAIL 1
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include <sys/xattr.h>
|
||||
#include <sys/mount.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
#include "wrappers.h"
|
||||
#include "utils.h"
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
#include "futextest.h"
|
||||
#include "futex2test.h"
|
||||
#include "../../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
|
||||
#define MAX_THREADS 64
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include <linux/prctl.h>
|
||||
#include <sys/prctl.h>
|
||||
|
||||
#include "../../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
|
||||
#define MAX_THREADS 64
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <limits.h>
|
||||
|
||||
#include "futextest.h"
|
||||
#include "../../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
|
||||
#define timeout_ns 30000000
|
||||
#define WAKE_WAIT_US 10000
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
#include "atomic.h"
|
||||
#include "futextest.h"
|
||||
#include "../../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
|
||||
#define MAX_WAKE_ITERS 1000
|
||||
#define THREAD_MAX 10
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <time.h>
|
||||
|
||||
#include "futextest.h"
|
||||
#include "../../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
|
||||
futex_t f1 = FUTEX_INITIALIZER;
|
||||
futex_t f2 = FUTEX_INITIALIZER;
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
#include "atomic.h"
|
||||
#include "futextest.h"
|
||||
#include "../../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
|
||||
#define DELAY_US 100
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <fcntl.h>
|
||||
|
||||
#include "futextest.h"
|
||||
#include "../../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
|
||||
#define timeout_ns 30000000
|
||||
#define WAKE_WAIT_US 10000
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include <signal.h>
|
||||
|
||||
#include "futextest.h"
|
||||
#include "../../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
|
||||
#define PAGE_SZ 4096
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
#include "futextest.h"
|
||||
#include "futex2test.h"
|
||||
#include "../../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
|
||||
static long timeout_ns = 100000; /* 100us default timeout */
|
||||
static futex_t futex_pi;
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include <libgen.h>
|
||||
|
||||
#include "futextest.h"
|
||||
#include "../../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
|
||||
#define WAIT_US 5000000
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
#include "futextest.h"
|
||||
#include "futex2test.h"
|
||||
#include "../../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
|
||||
#define timeout_ns 100000
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
#include "futextest.h"
|
||||
#include "futex2test.h"
|
||||
#include "../../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
|
||||
#define WAKE_WAIT_US 10000
|
||||
#define NR_FUTEXES 30
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
/* Copyright (c) 2022-2024 Red Hat */
|
||||
|
||||
#include "../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <fnmatch.h>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
#define MSEC_PER_SEC 1000L
|
||||
#define NSEC_PER_MSEC 1000000L
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <assert.h>
|
||||
#include <poll.h>
|
||||
|
||||
#include "../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
#include "../../../../drivers/iommu/iommufd/iommufd_test.h"
|
||||
|
||||
/* Hack to make assertions more readable */
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <sys/msg.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
#define MAX_MSG_SIZE 32
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include <dirent.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
#define TEST_SCANCODES 10
|
||||
#define SYSFS_PATH_MAX 256
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include <sys/wait.h>
|
||||
#include <sys/epoll.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
static long sys_kcmp(int pid1, int pid2, int type, unsigned long fd1, unsigned long fd2)
|
||||
{
|
||||
|
||||
@@ -59,6 +59,7 @@ function build_kernel() {
|
||||
tee "$kconfig" > "$kho_config" <<EOF
|
||||
CONFIG_BLK_DEV_INITRD=y
|
||||
CONFIG_KEXEC_HANDOVER=y
|
||||
CONFIG_KEXEC_HANDOVER_DEBUGFS=y
|
||||
CONFIG_TEST_KEXEC_HANDOVER=y
|
||||
CONFIG_DEBUG_KERNEL=y
|
||||
CONFIG_DEBUG_VM=y
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
*
|
||||
* .. code-block:: c
|
||||
*
|
||||
* #include "../kselftest_harness.h"
|
||||
* #include "kselftest_harness.h"
|
||||
*
|
||||
* TEST(standalone_test) {
|
||||
* do_some_stuff;
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
/* Avoid any inconsistencies */
|
||||
#define TH_LOG_STREAM stdout
|
||||
|
||||
#include "../kselftest_harness.h"
|
||||
#include "kselftest_harness.h"
|
||||
|
||||
static void test_helper(struct __test_metadata *_metadata)
|
||||
{
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "../kselftest.h"
|
||||
#include "kselftest.h"
|
||||
|
||||
#ifndef ARRAY_SIZE
|
||||
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user