From 0c26e79c37586c3e5f37ff237985782dae054b57 Mon Sep 17 00:00:00 2001 From: Marco Elver Date: Fri, 22 Jan 2021 09:18:34 +0000 Subject: [PATCH] FROMGIT: kfence: add missing copyright and description headers Add missing copyright and description headers to KFENCE source files. Link: https://lkml.kernel.org/r/20210118092159.145934-1-elver@google.com Signed-off-by: Marco Elver Reviewed-by: Alexander Potapenko Cc: Andrey Konovalov Cc: Dmitry Vyukov Signed-off-by: Andrew Morton Bug: 177201466 (cherry picked from commit b86d1ed1155ce1d2420057bfbdcc62b9fd53c1d6 https://github.com/hnaz/linux-mm v5.11-rc4-mmots-2021-01-21-20-10) Test: CONFIG_KFENCE_KUNIT_TEST=y passes on Cuttlefish Signed-off-by: Alexander Potapenko Change-Id: I95eb6756baaa0d8ca1dbc656708667372cff546d --- include/linux/kfence.h | 6 ++++++ mm/kfence/core.c | 5 +++++ mm/kfence/kfence.h | 6 ++++++ mm/kfence/report.c | 5 +++++ 4 files changed, 22 insertions(+) diff --git a/include/linux/kfence.h b/include/linux/kfence.h index ed4affc4f6ac..81f3911cb298 100644 --- a/include/linux/kfence.h +++ b/include/linux/kfence.h @@ -1,4 +1,10 @@ /* SPDX-License-Identifier: GPL-2.0 */ +/* + * Kernel Electric-Fence (KFENCE). Public interface for allocator and fault + * handler integration. For more info see Documentation/dev-tools/kfence.rst. + * + * Copyright (C) 2020, Google LLC. + */ #ifndef _LINUX_KFENCE_H #define _LINUX_KFENCE_H diff --git a/mm/kfence/core.c b/mm/kfence/core.c index a3e1cbae464b..9ff74bcf23f2 100644 --- a/mm/kfence/core.c +++ b/mm/kfence/core.c @@ -1,4 +1,9 @@ // SPDX-License-Identifier: GPL-2.0 +/* + * KFENCE guarded object allocator and fault handling. + * + * Copyright (C) 2020, Google LLC. + */ #define pr_fmt(fmt) "kfence: " fmt diff --git a/mm/kfence/kfence.h b/mm/kfence/kfence.h index f115aabc2052..1014060f9707 100644 --- a/mm/kfence/kfence.h +++ b/mm/kfence/kfence.h @@ -1,4 +1,10 @@ /* SPDX-License-Identifier: GPL-2.0 */ +/* + * Kernel Electric-Fence (KFENCE). For more info please see + * Documentation/dev-tools/kfence.rst. + * + * Copyright (C) 2020, Google LLC. + */ #ifndef MM_KFENCE_KFENCE_H #define MM_KFENCE_KFENCE_H diff --git a/mm/kfence/report.c b/mm/kfence/report.c index 0fdaa3ddf1b4..64f27c8d46a3 100644 --- a/mm/kfence/report.c +++ b/mm/kfence/report.c @@ -1,4 +1,9 @@ // SPDX-License-Identifier: GPL-2.0 +/* + * KFENCE reporting. + * + * Copyright (C) 2020, Google LLC. + */ #include