Skip to content

Commit d7a018e

Browse files
committed
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()
2 parents 7f70725 + 800348a commit d7a018e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/kcsan/kcsan_test.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ static void probe_console(void *ignore, const char *buf, size_t len)
125125
goto out;
126126

127127
/* No second line of interest. */
128-
strcpy(observed.lines[nlines++], "<none>");
128+
strscpy(observed.lines[nlines++], "<none>");
129129
}
130130
}
131131

@@ -231,7 +231,7 @@ static bool __report_matches(const struct expect_report *r)
231231

232232
if (!r->access[1].fn) {
233233
/* Dummy string if no second access is available. */
234-
strcpy(cur, "<none>");
234+
strscpy(expect[2], "<none>");
235235
break;
236236
}
237237
}

0 commit comments

Comments
 (0)