Skip to contentSkip to conversation

kcsan: Add missing license and copyright headers

PATCH In review Marco Elver 2 participants 5 messages Jan 15, 2021

Subsystems (3)
lore
Share & tools
lore

Marco Elver

author maintainer
#0 lore raw

PATCH 1/1 kcsan: Add missing license and copyright headers

Adds missing license and/or copyright headers for KCSAN source files.

---
 Documentation/dev-tools/kcsan.rst | 3 +++
 include/linux/kcsan-checks.h      | 6 ++++++
 include/linux/kcsan.h             | 7 +++++++
 kernel/kcsan/atomic.h             | 5 +++++
 kernel/kcsan/core.c               | 5 +++++
 kernel/kcsan/debugfs.c            | 5 +++++
 kernel/kcsan/encoding.h           | 5 +++++
 kernel/kcsan/kcsan.h              | 3 ++-
 kernel/kcsan/report.c             | 5 +++++
 kernel/kcsan/selftest.c           | 5 +++++
 10 files changed, 48 insertions(+), 1 deletion(-)
Documentation/dev-tools/kcsan.rst +3 -0
index be7a0b0e1f28..d85ce238ace7 100644
@@ -1,3 +1,6 @@
+.. SPDX-License-Identifier: GPL-2.0
+.. Copyright (C) 2019, Google LLC.
+
 The Kernel Concurrency Sanitizer (KCSAN)
 ========================================
 
include/linux/kcsan-checks.h +6 -0
index cf14840609ce..9fd0ad80fef6 100644
@@ -1,4 +1,10 @@
 /* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * KCSAN access checks and modifiers. These can be used to explicitly check
+ * uninstrumented accesses, or change KCSAN checking behaviour of accesses.
+ *
+ * Copyright (C) 2019, Google LLC.
+ */
 
 #ifndef _LINUX_KCSAN_CHECKS_H
 #define _LINUX_KCSAN_CHECKS_H
include/linux/kcsan.h +7 -0
index 53340d8789f9..fc266ecb2a4d 100644
@@ -1,4 +1,11 @@
 /* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * The Kernel Concurrency Sanitizer (KCSAN) infrastructure. Public interface and
+ * data structures to set up runtime. See kcsan-checks.h for explicit checks and
+ * modifiers. For more info please see Documentation/dev-tools/kcsan.rst.
+ *
+ * Copyright (C) 2019, Google LLC.
+ */
 
 #ifndef _LINUX_KCSAN_H
 #define _LINUX_KCSAN_H
kernel/kcsan/atomic.h +5 -0
index 75fe701f4127..530ae1bda8e7 100644
@@ -1,4 +1,9 @@
 /* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Rules for implicitly atomic memory accesses.
+ *
+ * Copyright (C) 2019, Google LLC.
+ */
 
 #ifndef _KERNEL_KCSAN_ATOMIC_H
 #define _KERNEL_KCSAN_ATOMIC_H
kernel/kcsan/core.c +5 -0
index 3bf98db9c702..8c3867640c21 100644
@@ -1,4 +1,9 @@
 // SPDX-License-Identifier: GPL-2.0
+/*
+ * KCSAN core runtime.
+ *
+ * Copyright (C) 2019, Google LLC.
+ */
 
 #define pr_fmt(fmt) "kcsan: " fmt
 
kernel/kcsan/debugfs.c +5 -0
index 3c8093a371b1..c837ce6c52e6 100644
@@ -1,4 +1,9 @@
 // SPDX-License-Identifier: GPL-2.0
+/*
+ * KCSAN debugfs interface.
+ *
+ * Copyright (C) 2019, Google LLC.
+ */
 
 #define pr_fmt(fmt) "kcsan: " fmt
 
kernel/kcsan/encoding.h +5 -0
index 7ee405524904..170a2bb22f53 100644
@@ -1,4 +1,9 @@
 /* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * KCSAN watchpoint encoding.
+ *
+ * Copyright (C) 2019, Google LLC.
+ */
 
 #ifndef _KERNEL_KCSAN_ENCODING_H
 #define _KERNEL_KCSAN_ENCODING_H
kernel/kcsan/kcsan.h +2 -1
index 8d4bf3431b3c..594a5dd4842a 100644
@@ -1,8 +1,9 @@
 /* SPDX-License-Identifier: GPL-2.0 */
-
 /*
  * The Kernel Concurrency Sanitizer (KCSAN) infrastructure. For more info please
  * see Documentation/dev-tools/kcsan.rst.
+ *
+ * Copyright (C) 2019, Google LLC.
  */
 
 #ifndef _KERNEL_KCSAN_KCSAN_H
kernel/kcsan/report.c +5 -0
index d3bf87e6007c..13dce3c664d6 100644
@@ -1,4 +1,9 @@
 // SPDX-License-Identifier: GPL-2.0
+/*
+ * KCSAN reporting.
+ *
+ * Copyright (C) 2019, Google LLC.
+ */
 
 #include <linux/debug_locks.h>
 #include <linux/delay.h>
kernel/kcsan/selftest.c +5 -0
index 9014a3a82cf9..7f29cb0f5e63 100644
@@ -1,4 +1,9 @@
 // SPDX-License-Identifier: GPL-2.0
+/*
+ * KCSAN short boot-time selftests.
+ *
+ * Copyright (C) 2019, Google LLC.
+ */
 
 #define pr_fmt(fmt) "kcsan: " fmt
 
Signature · 1 line
2.30.0.284.gd98b1dd5eaa7-goog
#1 lore raw
Quoted 3 lines · Marco Elver

Adds missing license and/or copyright headers for KCSAN source files.

This one seemed straightforward and I heard no objections to the previous two-patch series, so I queued them for the v5.13 merge window, thank you!

If any of them need adjustment, please send me the updated patch and tell me which one it replaces. Something about -rcu being in heavy experimental mode at the moment. ;-)

Thanx, Paul

Quoted 157 lines
---
 Documentation/dev-tools/kcsan.rst | 3 +++
 include/linux/kcsan-checks.h      | 6 ++++++
 include/linux/kcsan.h             | 7 +++++++
 kernel/kcsan/atomic.h             | 5 +++++
 kernel/kcsan/core.c               | 5 +++++
 kernel/kcsan/debugfs.c            | 5 +++++
 kernel/kcsan/encoding.h           | 5 +++++
 kernel/kcsan/kcsan.h              | 3 ++-
 kernel/kcsan/report.c             | 5 +++++
 kernel/kcsan/selftest.c           | 5 +++++
 10 files changed, 48 insertions(+), 1 deletion(-)
Documentation/dev-tools/kcsan.rst +3 -0
index be7a0b0e1f28..d85ce238ace7 100644
@@ -1,3 +1,6 @@
+.. SPDX-License-Identifier: GPL-2.0
+.. Copyright (C) 2019, Google LLC.
+
 The Kernel Concurrency Sanitizer (KCSAN)
 ========================================
 
include/linux/kcsan-checks.h +6 -0
index cf14840609ce..9fd0ad80fef6 100644
@@ -1,4 +1,10 @@
 /* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * KCSAN access checks and modifiers. These can be used to explicitly check
+ * uninstrumented accesses, or change KCSAN checking behaviour of accesses.
+ *
+ * Copyright (C) 2019, Google LLC.
+ */
 
 #ifndef _LINUX_KCSAN_CHECKS_H
 #define _LINUX_KCSAN_CHECKS_H
include/linux/kcsan.h +7 -0
index 53340d8789f9..fc266ecb2a4d 100644
@@ -1,4 +1,11 @@
 /* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * The Kernel Concurrency Sanitizer (KCSAN) infrastructure. Public interface and
+ * data structures to set up runtime. See kcsan-checks.h for explicit checks and
+ * modifiers. For more info please see Documentation/dev-tools/kcsan.rst.
+ *
+ * Copyright (C) 2019, Google LLC.
+ */
 
 #ifndef _LINUX_KCSAN_H
 #define _LINUX_KCSAN_H
kernel/kcsan/atomic.h +5 -0
index 75fe701f4127..530ae1bda8e7 100644
@@ -1,4 +1,9 @@
 /* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Rules for implicitly atomic memory accesses.
+ *
+ * Copyright (C) 2019, Google LLC.
+ */
 
 #ifndef _KERNEL_KCSAN_ATOMIC_H
 #define _KERNEL_KCSAN_ATOMIC_H
kernel/kcsan/core.c +5 -0
index 3bf98db9c702..8c3867640c21 100644
@@ -1,4 +1,9 @@
 // SPDX-License-Identifier: GPL-2.0
+/*
+ * KCSAN core runtime.
+ *
+ * Copyright (C) 2019, Google LLC.
+ */
 
 #define pr_fmt(fmt) "kcsan: " fmt
 
kernel/kcsan/debugfs.c +5 -0
index 3c8093a371b1..c837ce6c52e6 100644
@@ -1,4 +1,9 @@
 // SPDX-License-Identifier: GPL-2.0
+/*
+ * KCSAN debugfs interface.
+ *
+ * Copyright (C) 2019, Google LLC.
+ */
 
 #define pr_fmt(fmt) "kcsan: " fmt
 
kernel/kcsan/encoding.h +5 -0
index 7ee405524904..170a2bb22f53 100644
@@ -1,4 +1,9 @@
 /* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * KCSAN watchpoint encoding.
+ *
+ * Copyright (C) 2019, Google LLC.
+ */
 
 #ifndef _KERNEL_KCSAN_ENCODING_H
 #define _KERNEL_KCSAN_ENCODING_H
kernel/kcsan/kcsan.h +2 -1
index 8d4bf3431b3c..594a5dd4842a 100644
@@ -1,8 +1,9 @@
 /* SPDX-License-Identifier: GPL-2.0 */
-
 /*
  * The Kernel Concurrency Sanitizer (KCSAN) infrastructure. For more info please
  * see Documentation/dev-tools/kcsan.rst.
+ *
+ * Copyright (C) 2019, Google LLC.
  */
 
 #ifndef _KERNEL_KCSAN_KCSAN_H
kernel/kcsan/report.c +5 -0
index d3bf87e6007c..13dce3c664d6 100644
@@ -1,4 +1,9 @@
 // SPDX-License-Identifier: GPL-2.0
+/*
+ * KCSAN reporting.
+ *
+ * Copyright (C) 2019, Google LLC.
+ */
 
 #include <linux/debug_locks.h>
 #include <linux/delay.h>
kernel/kcsan/selftest.c +5 -0
index 9014a3a82cf9..7f29cb0f5e63 100644
@@ -1,4 +1,9 @@
 // SPDX-License-Identifier: GPL-2.0
+/*
+ * KCSAN short boot-time selftests.
+ *
+ * Copyright (C) 2019, Google LLC.
+ */
 
 #define pr_fmt(fmt) "kcsan: " fmt
 
Signature · 1 line
2.30.0.284.gd98b1dd5eaa7-goog
author maintainer
#2 lore raw
Quoted 6 lines · Paul E. McKenney

This one seemed straightforward and I heard no objections to the previous two-patch series, so I queued them for the v5.13 merge window, thank you!

If any of them need adjustment, please send me the updated patch and tell me which one it replaces. Something about -rcu being in heavy experimental mode at the moment. ;-)

Thank you!

I would have given the go-ahead for the other series next week Monday, but I think that's a holiday anyway. :-)

Thanks,
-- Marco

#3 lore raw
Quoted 5 lines · Marco Elver
Quoted 3 lines · Paul E. McKenney

This one seemed straightforward and I heard no objections to the previous two-patch series, so I queued them for the v5.13 merge window, thank you!

Quoted 8 lines
Quoted 3 lines

If any of them need adjustment, please send me the updated patch and tell me which one it replaces. Something about -rcu being in heavy experimental mode at the moment. ;-)

Thank you!

I would have given the go-ahead for the other series next week Monday, but I think that's a holiday anyway. :-)

It is indeed! I guess you had Wednesday last week, with next up being Friday April 2? ;-)

Thanx, Paul

author maintainer
#4 lore raw
Quoted 10 lines · Paul E. McKenney
Quoted 9 lines · Marco Elver
Quoted 6 lines · Paul E. McKenney

This one seemed straightforward and I heard no objections to the previous two-patch series, so I queued them for the v5.13 merge window, thank you!

If any of them need adjustment, please send me the updated patch and tell me which one it replaces. Something about -rcu being in heavy experimental mode at the moment. ;-)

Quoted 7 lines
Quoted 4 lines

Thank you!

I would have given the go-ahead for the other series next week Monday, but I think that's a holiday anyway. :-)

It is indeed! I guess you had Wednesday last week, with next up being Friday April 2? ;-)

We did, correct, and the next one is quite a while then. :-)

Happy holidays,
-- Marco