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

Alexander Potapenko
2021-01-18T10:28:20Z

> Add missing copyright and description headers to KFENCE source files.
>
> Signed-off-by: Marco Elver <elver@google.com>
Reviewed-by: Alexander Potapenko <glider@google.com>
> ---
> 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