summaryrefslogtreecommitdiff
path: root/mm/kasan/tags.c
blob: fd11d10a4ffc60c3ef3d619ab6e34b277b110c31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// SPDX-License-Identifier: GPL-2.0
/*
 * This file contains common tag-based KASAN code.
 *
 * Copyright (c) 2018 Google, Inc.
 * Copyright (c) 2020 Google, Inc.
 */

#include <linux/init.h>
#include <linux/kasan.h>
#include <linux/kernel.h>
#include <linux/memory.h>
#include <linux/mm.h>
#include <linux/static_key.h>
#include <linux/string.h>
#include <linux/types.h>

#include "kasan.h"

void kasan_save_alloc_info(struct kmem_cache *cache, void *object, gfp_t flags)
{
}

void kasan_save_free_info(struct kmem_cache *cache, void *object)
{
}

struct kasan_track *kasan_get_alloc_track(struct kmem_cache *cache,
						void *object)
{
	return NULL;
}

struct kasan_track *kasan_get_free_track(struct kmem_cache *cache,
						void *object, u8 tag)
{
	return NULL;
}