The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] kcsan: Add missing license and copyright headers
@ 2021-01-15 17:09 Marco Elver
  2021-01-15 21:58 ` Paul E. McKenney
  0 siblings, 1 reply; 5+ messages in thread
From: Marco Elver @ 2021-01-15 17:09 UTC (permalink / raw)
  To: elver, paulmck; +Cc: dvyukov, glider, andreyknvl, kasan-dev, linux-kernel

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

Signed-off-by: Marco Elver <elver@google.com>
---
 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(-)

diff --git a/Documentation/dev-tools/kcsan.rst b/Documentation/dev-tools/kcsan.rst
index be7a0b0e1f28..d85ce238ace7 100644
--- a/Documentation/dev-tools/kcsan.rst
+++ b/Documentation/dev-tools/kcsan.rst
@@ -1,3 +1,6 @@
+.. SPDX-License-Identifier: GPL-2.0
+.. Copyright (C) 2019, Google LLC.
+
 The Kernel Concurrency Sanitizer (KCSAN)
 ========================================
 
diff --git a/include/linux/kcsan-checks.h b/include/linux/kcsan-checks.h
index cf14840609ce..9fd0ad80fef6 100644
--- a/include/linux/kcsan-checks.h
+++ b/include/linux/kcsan-checks.h
@@ -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
diff --git a/include/linux/kcsan.h b/include/linux/kcsan.h
index 53340d8789f9..fc266ecb2a4d 100644
--- a/include/linux/kcsan.h
+++ b/include/linux/kcsan.h
@@ -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
diff --git a/kernel/kcsan/atomic.h b/kernel/kcsan/atomic.h
index 75fe701f4127..530ae1bda8e7 100644
--- a/kernel/kcsan/atomic.h
+++ b/kernel/kcsan/atomic.h
@@ -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
diff --git a/kernel/kcsan/core.c b/kernel/kcsan/core.c
index 3bf98db9c702..8c3867640c21 100644
--- a/kernel/kcsan/core.c
+++ b/kernel/kcsan/core.c
@@ -1,4 +1,9 @@
 // SPDX-License-Identifier: GPL-2.0
+/*
+ * KCSAN core runtime.
+ *
+ * Copyright (C) 2019, Google LLC.
+ */
 
 #define pr_fmt(fmt) "kcsan: " fmt
 
diff --git a/kernel/kcsan/debugfs.c b/kernel/kcsan/debugfs.c
index 3c8093a371b1..c837ce6c52e6 100644
--- a/kernel/kcsan/debugfs.c
+++ b/kernel/kcsan/debugfs.c
@@ -1,4 +1,9 @@
 // SPDX-License-Identifier: GPL-2.0
+/*
+ * KCSAN debugfs interface.
+ *
+ * Copyright (C) 2019, Google LLC.
+ */
 
 #define pr_fmt(fmt) "kcsan: " fmt
 
diff --git a/kernel/kcsan/encoding.h b/kernel/kcsan/encoding.h
index 7ee405524904..170a2bb22f53 100644
--- a/kernel/kcsan/encoding.h
+++ b/kernel/kcsan/encoding.h
@@ -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
diff --git a/kernel/kcsan/kcsan.h b/kernel/kcsan/kcsan.h
index 8d4bf3431b3c..594a5dd4842a 100644
--- a/kernel/kcsan/kcsan.h
+++ b/kernel/kcsan/kcsan.h
@@ -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
diff --git a/kernel/kcsan/report.c b/kernel/kcsan/report.c
index d3bf87e6007c..13dce3c664d6 100644
--- a/kernel/kcsan/report.c
+++ b/kernel/kcsan/report.c
@@ -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>
diff --git a/kernel/kcsan/selftest.c b/kernel/kcsan/selftest.c
index 9014a3a82cf9..7f29cb0f5e63 100644
--- a/kernel/kcsan/selftest.c
+++ b/kernel/kcsan/selftest.c
@@ -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
 
-- 
2.30.0.284.gd98b1dd5eaa7-goog


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] kcsan: Add missing license and copyright headers
  2021-01-15 17:09 [PATCH] kcsan: Add missing license and copyright headers Marco Elver
@ 2021-01-15 21:58 ` Paul E. McKenney
  2021-01-15 23:21   ` Marco Elver
  0 siblings, 1 reply; 5+ messages in thread
From: Paul E. McKenney @ 2021-01-15 21:58 UTC (permalink / raw)
  To: Marco Elver; +Cc: dvyukov, glider, andreyknvl, kasan-dev, linux-kernel

On Fri, Jan 15, 2021 at 06:09:53PM +0100, Marco Elver wrote:
> Adds missing license and/or copyright headers for KCSAN source files.
> 
> Signed-off-by: Marco Elver <elver@google.com>

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

> ---
>  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(-)
> 
> diff --git a/Documentation/dev-tools/kcsan.rst b/Documentation/dev-tools/kcsan.rst
> index be7a0b0e1f28..d85ce238ace7 100644
> --- a/Documentation/dev-tools/kcsan.rst
> +++ b/Documentation/dev-tools/kcsan.rst
> @@ -1,3 +1,6 @@
> +.. SPDX-License-Identifier: GPL-2.0
> +.. Copyright (C) 2019, Google LLC.
> +
>  The Kernel Concurrency Sanitizer (KCSAN)
>  ========================================
>  
> diff --git a/include/linux/kcsan-checks.h b/include/linux/kcsan-checks.h
> index cf14840609ce..9fd0ad80fef6 100644
> --- a/include/linux/kcsan-checks.h
> +++ b/include/linux/kcsan-checks.h
> @@ -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
> diff --git a/include/linux/kcsan.h b/include/linux/kcsan.h
> index 53340d8789f9..fc266ecb2a4d 100644
> --- a/include/linux/kcsan.h
> +++ b/include/linux/kcsan.h
> @@ -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
> diff --git a/kernel/kcsan/atomic.h b/kernel/kcsan/atomic.h
> index 75fe701f4127..530ae1bda8e7 100644
> --- a/kernel/kcsan/atomic.h
> +++ b/kernel/kcsan/atomic.h
> @@ -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
> diff --git a/kernel/kcsan/core.c b/kernel/kcsan/core.c
> index 3bf98db9c702..8c3867640c21 100644
> --- a/kernel/kcsan/core.c
> +++ b/kernel/kcsan/core.c
> @@ -1,4 +1,9 @@
>  // SPDX-License-Identifier: GPL-2.0
> +/*
> + * KCSAN core runtime.
> + *
> + * Copyright (C) 2019, Google LLC.
> + */
>  
>  #define pr_fmt(fmt) "kcsan: " fmt
>  
> diff --git a/kernel/kcsan/debugfs.c b/kernel/kcsan/debugfs.c
> index 3c8093a371b1..c837ce6c52e6 100644
> --- a/kernel/kcsan/debugfs.c
> +++ b/kernel/kcsan/debugfs.c
> @@ -1,4 +1,9 @@
>  // SPDX-License-Identifier: GPL-2.0
> +/*
> + * KCSAN debugfs interface.
> + *
> + * Copyright (C) 2019, Google LLC.
> + */
>  
>  #define pr_fmt(fmt) "kcsan: " fmt
>  
> diff --git a/kernel/kcsan/encoding.h b/kernel/kcsan/encoding.h
> index 7ee405524904..170a2bb22f53 100644
> --- a/kernel/kcsan/encoding.h
> +++ b/kernel/kcsan/encoding.h
> @@ -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
> diff --git a/kernel/kcsan/kcsan.h b/kernel/kcsan/kcsan.h
> index 8d4bf3431b3c..594a5dd4842a 100644
> --- a/kernel/kcsan/kcsan.h
> +++ b/kernel/kcsan/kcsan.h
> @@ -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
> diff --git a/kernel/kcsan/report.c b/kernel/kcsan/report.c
> index d3bf87e6007c..13dce3c664d6 100644
> --- a/kernel/kcsan/report.c
> +++ b/kernel/kcsan/report.c
> @@ -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>
> diff --git a/kernel/kcsan/selftest.c b/kernel/kcsan/selftest.c
> index 9014a3a82cf9..7f29cb0f5e63 100644
> --- a/kernel/kcsan/selftest.c
> +++ b/kernel/kcsan/selftest.c
> @@ -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
>  
> -- 
> 2.30.0.284.gd98b1dd5eaa7-goog
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] kcsan: Add missing license and copyright headers
  2021-01-15 21:58 ` Paul E. McKenney
@ 2021-01-15 23:21   ` Marco Elver
  2021-01-15 23:31     ` Paul E. McKenney
  0 siblings, 1 reply; 5+ messages in thread
From: Marco Elver @ 2021-01-15 23:21 UTC (permalink / raw)
  To: Paul E. McKenney
  Cc: Dmitry Vyukov, Alexander Potapenko, Andrey Konovalov, kasan-dev,
	LKML

On Fri, 15 Jan 2021 at 22:58, Paul E. McKenney <paulmck@kernel.org> wrote:

> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] kcsan: Add missing license and copyright headers
  2021-01-15 23:21   ` Marco Elver
@ 2021-01-15 23:31     ` Paul E. McKenney
  2021-01-15 23:41       ` Marco Elver
  0 siblings, 1 reply; 5+ messages in thread
From: Paul E. McKenney @ 2021-01-15 23:31 UTC (permalink / raw)
  To: Marco Elver
  Cc: Dmitry Vyukov, Alexander Potapenko, Andrey Konovalov, kasan-dev,
	LKML

On Sat, Jan 16, 2021 at 12:21:53AM +0100, Marco Elver wrote:
> On Fri, 15 Jan 2021 at 22:58, Paul E. McKenney <paulmck@kernel.org> wrote:
> 
> > 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. :-)

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

							Thanx, Paul

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] kcsan: Add missing license and copyright headers
  2021-01-15 23:31     ` Paul E. McKenney
@ 2021-01-15 23:41       ` Marco Elver
  0 siblings, 0 replies; 5+ messages in thread
From: Marco Elver @ 2021-01-15 23:41 UTC (permalink / raw)
  To: Paul E. McKenney
  Cc: Dmitry Vyukov, Alexander Potapenko, Andrey Konovalov, kasan-dev,
	LKML

On Sat, 16 Jan 2021 at 00:31, Paul E. McKenney <paulmck@kernel.org> wrote:
> On Sat, Jan 16, 2021 at 12:21:53AM +0100, Marco Elver wrote:
> > On Fri, 15 Jan 2021 at 22:58, Paul E. McKenney <paulmck@kernel.org> wrote:
> >
> > > 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. :-)
>
> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-01-15 23:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-15 17:09 [PATCH] kcsan: Add missing license and copyright headers Marco Elver
2021-01-15 21:58 ` Paul E. McKenney
2021-01-15 23:21   ` Marco Elver
2021-01-15 23:31     ` Paul E. McKenney
2021-01-15 23:41       ` Marco Elver

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox