* lib/slub_kunit.c:82 test_first_word() error: dereferencing freed memory 'p'
@ 2021-12-04 21:37 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-12-04 21:37 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 2238 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Oliver Glitta <glittao@gmail.com>
CC: Vlastimil Babka <vbabka@suse.cz>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: bbef3c7a63d2a4cb0f3f839db9e767f168c5e348
commit: 1f9f78b1b376f82cdd8ed73cc0abdb74d0453d43 mm/slub, kunit: add a KUnit test for SLUB debugging functionality
date: 5 months ago
:::::: branch date: 5 hours ago
:::::: commit date: 5 months ago
config: nios2-randconfig-m031-20211202 (https://download.01.org/0day-ci/archive/20211205/202112050504.lOFmsMEL-lkp(a)intel.com/config)
compiler: nios2-linux-gcc (GCC) 11.2.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
lib/slub_kunit.c:82 test_first_word() error: dereferencing freed memory 'p'
vim +/p +82 lib/slub_kunit.c
1f9f78b1b376f8 Oliver Glitta 2021-06-28 74
1f9f78b1b376f8 Oliver Glitta 2021-06-28 75 static void test_first_word(struct kunit *test)
1f9f78b1b376f8 Oliver Glitta 2021-06-28 76 {
1f9f78b1b376f8 Oliver Glitta 2021-06-28 77 struct kmem_cache *s = kmem_cache_create("TestSlub_1th_word_free", 64, 0,
1f9f78b1b376f8 Oliver Glitta 2021-06-28 78 SLAB_POISON, NULL);
1f9f78b1b376f8 Oliver Glitta 2021-06-28 79 u8 *p = kmem_cache_alloc(s, GFP_KERNEL);
1f9f78b1b376f8 Oliver Glitta 2021-06-28 80
1f9f78b1b376f8 Oliver Glitta 2021-06-28 81 kmem_cache_free(s, p);
1f9f78b1b376f8 Oliver Glitta 2021-06-28 @82 *p = 0x78;
1f9f78b1b376f8 Oliver Glitta 2021-06-28 83
1f9f78b1b376f8 Oliver Glitta 2021-06-28 84 validate_slab_cache(s);
1f9f78b1b376f8 Oliver Glitta 2021-06-28 85 KUNIT_EXPECT_EQ(test, 2, slab_errors);
1f9f78b1b376f8 Oliver Glitta 2021-06-28 86
1f9f78b1b376f8 Oliver Glitta 2021-06-28 87 kmem_cache_destroy(s);
1f9f78b1b376f8 Oliver Glitta 2021-06-28 88 }
1f9f78b1b376f8 Oliver Glitta 2021-06-28 89
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] 2+ messages in thread
* lib/slub_kunit.c:82 test_first_word() error: dereferencing freed memory 'p'
@ 2021-12-08 22:11 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-12-08 22:11 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 2239 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Oliver Glitta <glittao@gmail.com>
CC: Vlastimil Babka <vbabka@suse.cz>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 2a987e65025e2b79c6d453b78cb5985ac6e5eb26
commit: 1f9f78b1b376f82cdd8ed73cc0abdb74d0453d43 mm/slub, kunit: add a KUnit test for SLUB debugging functionality
date: 5 months ago
:::::: branch date: 23 hours ago
:::::: commit date: 5 months ago
config: nios2-randconfig-m031-20211202 (https://download.01.org/0day-ci/archive/20211209/202112090618.yt3w9zDV-lkp(a)intel.com/config)
compiler: nios2-linux-gcc (GCC) 11.2.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
lib/slub_kunit.c:82 test_first_word() error: dereferencing freed memory 'p'
vim +/p +82 lib/slub_kunit.c
1f9f78b1b376f8 Oliver Glitta 2021-06-28 74
1f9f78b1b376f8 Oliver Glitta 2021-06-28 75 static void test_first_word(struct kunit *test)
1f9f78b1b376f8 Oliver Glitta 2021-06-28 76 {
1f9f78b1b376f8 Oliver Glitta 2021-06-28 77 struct kmem_cache *s = kmem_cache_create("TestSlub_1th_word_free", 64, 0,
1f9f78b1b376f8 Oliver Glitta 2021-06-28 78 SLAB_POISON, NULL);
1f9f78b1b376f8 Oliver Glitta 2021-06-28 79 u8 *p = kmem_cache_alloc(s, GFP_KERNEL);
1f9f78b1b376f8 Oliver Glitta 2021-06-28 80
1f9f78b1b376f8 Oliver Glitta 2021-06-28 81 kmem_cache_free(s, p);
1f9f78b1b376f8 Oliver Glitta 2021-06-28 @82 *p = 0x78;
1f9f78b1b376f8 Oliver Glitta 2021-06-28 83
1f9f78b1b376f8 Oliver Glitta 2021-06-28 84 validate_slab_cache(s);
1f9f78b1b376f8 Oliver Glitta 2021-06-28 85 KUNIT_EXPECT_EQ(test, 2, slab_errors);
1f9f78b1b376f8 Oliver Glitta 2021-06-28 86
1f9f78b1b376f8 Oliver Glitta 2021-06-28 87 kmem_cache_destroy(s);
1f9f78b1b376f8 Oliver Glitta 2021-06-28 88 }
1f9f78b1b376f8 Oliver Glitta 2021-06-28 89
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-08 22:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-04 21:37 lib/slub_kunit.c:82 test_first_word() error: dereferencing freed memory 'p' kernel test robot
2021-12-08 22:11 kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.