linux/mm/page_poison.c

// SPDX-License-Identifier: GPL-2.0
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/mmdebug.h>
#include <linux/highmem.h>
#include <linux/poison.h>
#include <linux/ratelimit.h>
#include <linux/kasan.h>

bool _page_poisoning_enabled_early;
EXPORT_SYMBOL();
DEFINE_STATIC_KEY_FALSE(_page_poisoning_enabled);
EXPORT_SYMBOL();

static int __init early_page_poison_param(char *buf)
{}
early_param();

static void poison_page(struct page *page)
{}

void __kernel_poison_pages(struct page *page, int n)
{}

static bool single_bit_flip(unsigned char a, unsigned char b)
{}

static void check_poison_mem(struct page *page, unsigned char *mem, size_t bytes)
{}

static void unpoison_page(struct page *page)
{}

void __kernel_unpoison_pages(struct page *page, int n)
{}

#ifndef CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC
void __kernel_map_pages(struct page *page, int numpages, int enable)
{
	/* This function does nothing, all work is done via poison pages */
}
#endif