Adds missing license and/or copyright headers for KCSAN source files.
Unified · Split
| @@ -1,3 +1,6 @@ | |||
| 1 | .. SPDX-License-Identifier: GPL-2.0 | ||
| 2 | .. Copyright (C) 2019, Google LLC. | ||
| 3 | |||
| 1 | The Kernel Concurrency Sanitizer (KCSAN) | 4 | The Kernel Concurrency Sanitizer (KCSAN) |
| 2 | ======================================== | 5 | ======================================== |
| 3 | 6 | ||
| @@ -1,4 +1,10 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | /* | ||
| 3 | * KCSAN access checks and modifiers. These can be used to explicitly check | ||
| 4 | * uninstrumented accesses, or change KCSAN checking behaviour of accesses. | ||
| 5 | * | ||
| 6 | * Copyright (C) 2019, Google LLC. | ||
| 7 | */ | ||
| 2 | 8 | ||
| 3 | #ifndef _LINUX_KCSAN_CHECKS_H | 9 | #ifndef _LINUX_KCSAN_CHECKS_H |
| 4 | #define _LINUX_KCSAN_CHECKS_H | 10 | #define _LINUX_KCSAN_CHECKS_H |
| @@ -1,4 +1,11 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | /* | ||
| 3 | * The Kernel Concurrency Sanitizer (KCSAN) infrastructure. Public interface and | ||
| 4 | * data structures to set up runtime. See kcsan-checks.h for explicit checks and | ||
| 5 | * modifiers. For more info please see Documentation/dev-tools/kcsan.rst. | ||
| 6 | * | ||
| 7 | * Copyright (C) 2019, Google LLC. | ||
| 8 | */ | ||
| 2 | 9 | ||
| 3 | #ifndef _LINUX_KCSAN_H | 10 | #ifndef _LINUX_KCSAN_H |
| 4 | #define _LINUX_KCSAN_H | 11 | #define _LINUX_KCSAN_H |
| @@ -1,4 +1,9 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | /* | ||
| 3 | * Rules for implicitly atomic memory accesses. | ||
| 4 | * | ||
| 5 | * Copyright (C) 2019, Google LLC. | ||
| 6 | */ | ||
| 2 | 7 | ||
| 3 | #ifndef _KERNEL_KCSAN_ATOMIC_H | 8 | #ifndef _KERNEL_KCSAN_ATOMIC_H |
| 4 | #define _KERNEL_KCSAN_ATOMIC_H | 9 | #define _KERNEL_KCSAN_ATOMIC_H |
| @@ -1,4 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* | ||
| 3 | * KCSAN core runtime. | ||
| 4 | * | ||
| 5 | * Copyright (C) 2019, Google LLC. | ||
| 6 | */ | ||
| 2 | 7 | ||
| 3 | #define pr_fmt(fmt) "kcsan: " fmt | 8 | #define pr_fmt(fmt) "kcsan: " fmt |
| 4 | 9 | ||
| @@ -1,4 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* | ||
| 3 | * KCSAN debugfs interface. | ||
| 4 | * | ||
| 5 | * Copyright (C) 2019, Google LLC. | ||
| 6 | */ | ||
| 2 | 7 | ||
| 3 | #define pr_fmt(fmt) "kcsan: " fmt | 8 | #define pr_fmt(fmt) "kcsan: " fmt |
| 4 | 9 | ||
| @@ -1,4 +1,9 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | /* | ||
| 3 | * KCSAN watchpoint encoding. | ||
| 4 | * | ||
| 5 | * Copyright (C) 2019, Google LLC. | ||
| 6 | */ | ||
| 2 | 7 | ||
| 3 | #ifndef _KERNEL_KCSAN_ENCODING_H | 8 | #ifndef _KERNEL_KCSAN_ENCODING_H |
| 4 | #define _KERNEL_KCSAN_ENCODING_H | 9 | #define _KERNEL_KCSAN_ENCODING_H |
| @@ -1,8 +1,9 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | |||
| 3 | /* | 2 | /* |
| 4 | * The Kernel Concurrency Sanitizer (KCSAN) infrastructure. For more info please | 3 | * The Kernel Concurrency Sanitizer (KCSAN) infrastructure. For more info please |
| 5 | * see Documentation/dev-tools/kcsan.rst. | 4 | * see Documentation/dev-tools/kcsan.rst. |
| 5 | * | ||
| 6 | * Copyright (C) 2019, Google LLC. | ||
| 6 | */ | 7 | */ |
| 7 | 8 | ||
| 8 | #ifndef _KERNEL_KCSAN_KCSAN_H | 9 | #ifndef _KERNEL_KCSAN_KCSAN_H |
| @@ -1,4 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* | ||
| 3 | * KCSAN reporting. | ||
| 4 | * | ||
| 5 | * Copyright (C) 2019, Google LLC. | ||
| 6 | */ | ||
| 2 | 7 | ||
| 3 | #include <linux/debug_locks.h> | 8 | #include <linux/debug_locks.h> |
| 4 | #include <linux/delay.h> | 9 | #include <linux/delay.h> |
| @@ -1,4 +1,9 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* | ||
| 3 | * KCSAN short boot-time selftests. | ||
| 4 | * | ||
| 5 | * Copyright (C) 2019, Google LLC. | ||
| 6 | */ | ||
| 2 | 7 | ||
| 3 | #define pr_fmt(fmt) "kcsan: " fmt | 8 | #define pr_fmt(fmt) "kcsan: " fmt |
| 4 | 9 | ||