2021-01-18 09:59:05

by Marco Elver

[permalink] [raw]
Subject: [PATCH mm 1/4] kfence: add missing copyright and description headers

Add missing copyright and description headers to KFENCE source files.

Signed-off-by: Marco Elver <[email protected]>
---
If appropriate, to be squashed into:

mm: add Kernel Electric-Fence infrastructure
---
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 c2c1dd100cba..a70d1ea03532 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 a5f8aa410a30..cfe3d32ac5b7 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 97282fa77840..1accc840dbbe 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 1996295ae71d..901bd7ee83d8 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 <stdarg.h>

--
2.30.0.284.gd98b1dd5eaa7-goog


2021-01-18 09:59:25

by Marco Elver

[permalink] [raw]
Subject: [PATCH mm 3/4] kfence, arm64: add missing copyright and description header

Add missing copyright and description header to KFENCE source file.

Signed-off-by: Marco Elver <[email protected]>
---
If appropriate, to be squashed into:

arm64, kfence: enable KFENCE for ARM64
---
arch/arm64/include/asm/kfence.h | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/arch/arm64/include/asm/kfence.h b/arch/arm64/include/asm/kfence.h
index 6c0afeeab635..d061176d57ea 100644
--- a/arch/arm64/include/asm/kfence.h
+++ b/arch/arm64/include/asm/kfence.h
@@ -1,4 +1,9 @@
/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * arm64 KFENCE support.
+ *
+ * Copyright (C) 2020, Google LLC.
+ */

#ifndef __ASM_KFENCE_H
#define __ASM_KFENCE_H
--
2.30.0.284.gd98b1dd5eaa7-goog

2021-01-18 10:00:42

by Marco Elver

[permalink] [raw]
Subject: [PATCH mm 4/4] kfence: add missing copyright header to documentation

Add missing copyright header to KFENCE documentation.

Signed-off-by: Marco Elver <[email protected]>
---
If appropriate, to be squashed into:

kfence, Documentation: add KFENCE documentation
---
Documentation/dev-tools/kfence.rst | 1 +
1 file changed, 1 insertion(+)

diff --git a/Documentation/dev-tools/kfence.rst b/Documentation/dev-tools/kfence.rst
index 06a454ec7712..58a0a5fa1ddc 100644
--- a/Documentation/dev-tools/kfence.rst
+++ b/Documentation/dev-tools/kfence.rst
@@ -1,4 +1,5 @@
.. SPDX-License-Identifier: GPL-2.0
+.. Copyright (C) 2020, Google LLC.

Kernel Electric-Fence (KFENCE)
==============================
--
2.30.0.284.gd98b1dd5eaa7-goog

2021-01-18 10:14:39

by Marco Elver

[permalink] [raw]
Subject: [PATCH mm 2/4] kfence, x86: add missing copyright and description header

Add missing copyright and description header to KFENCE source file.

Signed-off-by: Marco Elver <[email protected]>
---
If appropriate, to be squashed into:

x86, kfence: enable KFENCE for x86
---
arch/x86/include/asm/kfence.h | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/arch/x86/include/asm/kfence.h b/arch/x86/include/asm/kfence.h
index 2f3f877a7a5c..97bbb4a9083a 100644
--- a/arch/x86/include/asm/kfence.h
+++ b/arch/x86/include/asm/kfence.h
@@ -1,4 +1,9 @@
/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * x86 KFENCE support.
+ *
+ * Copyright (C) 2020, Google LLC.
+ */

#ifndef _ASM_X86_KFENCE_H
#define _ASM_X86_KFENCE_H
--
2.30.0.284.gd98b1dd5eaa7-goog

2021-01-18 10:54:27

by Alexander Potapenko

[permalink] [raw]
Subject: Re: [PATCH mm 2/4] kfence, x86: add missing copyright and description header

On Mon, Jan 18, 2021 at 10:22 AM Marco Elver <[email protected]> wrote:
>
> Add missing copyright and description header to KFENCE source file.
>
> Signed-off-by: Marco Elver <[email protected]>
Reviewed-by: Alexander Potapenko <[email protected]>

2021-01-18 10:55:33

by Alexander Potapenko

[permalink] [raw]
Subject: Re: [PATCH mm 3/4] kfence, arm64: add missing copyright and description header

On Mon, Jan 18, 2021 at 10:22 AM Marco Elver <[email protected]> wrote:
>
> Add missing copyright and description header to KFENCE source file.
>
> Signed-off-by: Marco Elver <[email protected]>
Reviewed-by: Alexander Potapenko <[email protected]>

2021-01-19 03:08:19

by Alexander Potapenko

[permalink] [raw]
Subject: Re: [PATCH mm 1/4] kfence: add missing copyright and description headers

On Mon, Jan 18, 2021 at 10:22 AM Marco Elver <[email protected]> wrote:
>
> Add missing copyright and description headers to KFENCE source files.
>
> Signed-off-by: Marco Elver <[email protected]>
Reviewed-by: Alexander Potapenko <[email protected]>
> ---
> If appropriate, to be squashed into:
>
> mm: add Kernel Electric-Fence infrastructure
> ---
> 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 c2c1dd100cba..a70d1ea03532 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 a5f8aa410a30..cfe3d32ac5b7 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 97282fa77840..1accc840dbbe 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 1996295ae71d..901bd7ee83d8 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 <stdarg.h>
>
> --
> 2.30.0.284.gd98b1dd5eaa7-goog
>


--
Alexander Potapenko
Software Engineer

Google Germany GmbH
Erika-Mann-Straße, 33
80636 München

Geschäftsführer: Paul Manicle, Halimah DeLaine Prado
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg

2021-01-19 03:37:48

by Alexander Potapenko

[permalink] [raw]
Subject: Re: [PATCH mm 4/4] kfence: add missing copyright header to documentation

On Mon, Jan 18, 2021 at 10:22 AM Marco Elver <[email protected]> wrote:
>
> Add missing copyright header to KFENCE documentation.
>
> Signed-off-by: Marco Elver <[email protected]>
Reviewed-by: Alexander Potapenko <[email protected]>