diff options
| author | Dave Weinstein <olorin@google.com> | 2017-01-11 16:02:44 -0800 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-09-14 17:24:45 +0200 |
| commit | d808b73c6007df3f6fc3a72b8144b6028c7d6dfb (patch) | |
| tree | c53c0e7d62fd009c9928915b5b5987b407422301 /include | |
| parent | 2a8070b5db6723e223f610377acc014811d49f1d (diff) | |
lib: vsprintf: whitelist stack traces
Use the %pP functionality to explicitly allow kernel
pointers to be logged for stack traces
BUG: 30368199
Change-Id: I495915465565293e9e4da5aa28fbd1d14538d99b
Signed-off-by: Dave Weinstein <olorin@google.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/kallsyms.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kallsyms.h b/include/linux/kallsyms.h index 6883e197a..e4a205deb 100644 --- a/include/linux/kallsyms.h +++ b/include/linux/kallsyms.h @@ -122,7 +122,7 @@ static inline void print_symbol(const char *fmt, unsigned long addr) static inline void print_ip_sym(unsigned long ip) { - printk("[<%p>] %pS\n", (void *) ip, (void *) ip); + printk("[<%pP>] %pS\n", (void *) ip, (void *) ip); } #endif /*_LINUX_KALLSYMS_H*/ |
