* [linux-next:master 2605/2770] mm/kasan/report.c:233:2: error: implicit declaration of function 'dump_stack_lvl'; did you mean 'dump_stack'?
@ 2021-05-13 9:03 kernel test robot
2021-05-13 11:14 ` [PATCH] fix for "printk: introduce dump_stack_lvl()" Marco Elver
0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2021-05-13 9:03 UTC (permalink / raw)
To: Alexander Potapenko
Cc: kbuild-all, Linux Memory Management List, Marco Elver, Andrew Morton
[-- Attachment #1: Type: text/plain, Size: 2489 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: ec2618180c3450d06a6a4ba951d4c9a2c689b517
commit: 9fb7170c7fba3f6099d57b3d028c500df70a9980 [2605/2770] kasan: use dump_stack_lvl(KERN_ERR) to print stacks
config: arm64-randconfig-r014-20210513 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=9fb7170c7fba3f6099d57b3d028c500df70a9980
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 9fb7170c7fba3f6099d57b3d028c500df70a9980
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
mm/kasan/report.c: In function 'print_address_description':
>> mm/kasan/report.c:233:2: error: implicit declaration of function 'dump_stack_lvl'; did you mean 'dump_stack'? [-Werror=implicit-function-declaration]
233 | dump_stack_lvl(KERN_ERR);
| ^~~~~~~~~~~~~~
| dump_stack
cc1: some warnings being treated as errors
vim +233 mm/kasan/report.c
228
229 static void print_address_description(void *addr, u8 tag)
230 {
231 struct page *page = kasan_addr_to_page(addr);
232
> 233 dump_stack_lvl(KERN_ERR);
234 pr_err("\n");
235
236 if (page && PageSlab(page)) {
237 struct kmem_cache *cache = page->slab_cache;
238 void *object = nearest_obj(cache, page, addr);
239
240 describe_object(cache, object, addr, tag);
241 }
242
243 if (kernel_or_module_addr(addr) && !init_task_stack_addr(addr)) {
244 pr_err("The buggy address belongs to the variable:\n");
245 pr_err(" %pS\n", addr);
246 }
247
248 if (page) {
249 pr_err("The buggy address belongs to the page:\n");
250 dump_page(page, "kasan: bad access detected");
251 }
252
253 kasan_print_address_stack_frame(addr);
254 }
255
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34099 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] fix for "printk: introduce dump_stack_lvl()"
2021-05-13 9:03 [linux-next:master 2605/2770] mm/kasan/report.c:233:2: error: implicit declaration of function 'dump_stack_lvl'; did you mean 'dump_stack'? kernel test robot
@ 2021-05-13 11:14 ` Marco Elver
2021-05-13 11:20 ` Alexander Potapenko
0 siblings, 1 reply; 3+ messages in thread
From: Marco Elver @ 2021-05-13 11:14 UTC (permalink / raw)
To: Andrew Morton
Cc: Alexander Potapenko, kbuild-all, Linux Memory Management List,
kernel test robot, Petr Mladek, Sergey Senozhatsky,
Steven Rostedt, John Ogness, linux-kernel
Add missing dump_stack_lvl() stub if CONFIG_PRINTK=n.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Marco Elver <elver@google.com>
---
include/linux/printk.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/linux/printk.h b/include/linux/printk.h
index abe274305d79..f589b8b60806 100644
--- a/include/linux/printk.h
+++ b/include/linux/printk.h
@@ -270,6 +270,10 @@ static inline void show_regs_print_info(const char *log_lvl)
{
}
+static inline void dump_stack_lvl(const char *log_lvl)
+{
+}
+
static inline void dump_stack(void)
{
}
--
2.31.1.607.g51e8a6a459-goog
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] fix for "printk: introduce dump_stack_lvl()"
2021-05-13 11:14 ` [PATCH] fix for "printk: introduce dump_stack_lvl()" Marco Elver
@ 2021-05-13 11:20 ` Alexander Potapenko
0 siblings, 0 replies; 3+ messages in thread
From: Alexander Potapenko @ 2021-05-13 11:20 UTC (permalink / raw)
To: Marco Elver
Cc: Andrew Morton, kbuild-all, Linux Memory Management List,
kernel test robot, Petr Mladek, Sergey Senozhatsky,
Steven Rostedt, John Ogness, LKML
On Thu, May 13, 2021 at 1:14 PM Marco Elver <elver@google.com> wrote:
>
> Add missing dump_stack_lvl() stub if CONFIG_PRINTK=n.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Marco Elver <elver@google.com>
Reviewed-by: Alexander Potapenko <glider@google.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-05-13 11:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-13 9:03 [linux-next:master 2605/2770] mm/kasan/report.c:233:2: error: implicit declaration of function 'dump_stack_lvl'; did you mean 'dump_stack'? kernel test robot
2021-05-13 11:14 ` [PATCH] fix for "printk: introduce dump_stack_lvl()" Marco Elver
2021-05-13 11:20 ` Alexander Potapenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).