diff options
| author | Kees Cook <[email protected]> | 2019-09-25 23:48:01 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2019-09-26 00:51:40 +0000 |
| commit | d38aba49a9f72b862f1220739ca837c886fdc319 (patch) | |
| tree | 5fbd7c166348c540777455a66c26635c8cde4c75 /lib/strncpy_from_user.c | |
| parent | bug: consolidate warn_slowpath_fmt() usage (diff) | |
| download | kernel-d38aba49a9f72b862f1220739ca837c886fdc319.tar.gz kernel-d38aba49a9f72b862f1220739ca837c886fdc319.zip | |
bug: lift "cut here" out of __warn()
In preparation for cleaning up "cut here", move the "cut here" logic up
out of __warn() and into callers that pass non-NULL args. For anyone
looking closely, there are two callers that pass NULL args: one already
explicitly prints "cut here". The remaining case is covered by how a WARN
is built, which will be cleaned up in the next patch.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Kees Cook <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Christophe Leroy <[email protected]>
Cc: Drew Davenport <[email protected]>
Cc: Feng Tang <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Petr Mladek <[email protected]>
Cc: "Steven Rostedt (VMware)" <[email protected]>
Cc: YueHaibing <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/strncpy_from_user.c')
0 files changed, 0 insertions, 0 deletions
