diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2025-10-02 08:31:44 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2025-10-02 08:31:44 -0700 |
| commit | d7a018eb761f44f1f48667540185d025354f33b6 (patch) | |
| tree | c4b82deb76e45bfff2812067e58d878f1559f7b5 | |
| parent | 7f7072574127c9e971cad83a0274e86f6275c0d5 (diff) | |
| parent | 800348aa34b2bc40d558bb17b6719c51fac0b6de (diff) | |
Merge tag 'kcsan-20250929-v6.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/melver/linux
Pull Kernel Concurrency Sanitizer (KCSAN) update from Marco Elver:
- Replace deprecated strcpy() with strscpy()
* tag 'kcsan-20250929-v6.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/melver/linux:
kcsan: test: Replace deprecated strcpy() with strscpy()
| -rw-r--r-- | kernel/kcsan/kcsan_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/kcsan/kcsan_test.c b/kernel/kcsan/kcsan_test.c index a13a090bb2a7..219d22857c98 100644 --- a/kernel/kcsan/kcsan_test.c +++ b/kernel/kcsan/kcsan_test.c @@ -125,7 +125,7 @@ static void probe_console(void *ignore, const char *buf, size_t len) goto out; /* No second line of interest. */ - strcpy(observed.lines[nlines++], "<none>"); + strscpy(observed.lines[nlines++], "<none>"); } } @@ -231,7 +231,7 @@ static bool __report_matches(const struct expect_report *r) if (!r->access[1].fn) { /* Dummy string if no second access is available. */ - strcpy(cur, "<none>"); + strscpy(expect[2], "<none>"); break; } } |
