[linux-next:master 5822/13260] ld: net/xfrm/xfrm_interface.c:901: undefined reference to `xfrm4_tunnel_deregister'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 01830e6c042e8eb6eb202e05d7df8057135b4c26
commit: da9bbf0598c9e66b8a46ceabaa6172596795acf2 [5822/13260] xfrm: interface: support IPIP and IPIP6 tunnels processing with .cb_handler
config: i386-randconfig-a016-20200731 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce (this is a W=1 build):
git checkout da9bbf0598c9e66b8a46ceabaa6172596795acf2
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the linux-next/master HEAD 01830e6c042e8eb6eb202e05d7df8057135b4c26 builds fine.
It may have been fixed somewhere.
All errors (new ones prefixed by >>):
ld: net/xfrm/xfrm_interface.o: in function `xfrmi6_rcv_tunnel':
net/xfrm/xfrm_interface.c:808: undefined reference to `xfrm6_tunnel_spi_lookup'
ld: net/xfrm/xfrm_interface.o: in function `xfrmi4_fini':
net/xfrm/xfrm_interface.c:900: undefined reference to `xfrm4_tunnel_deregister'
>> ld: net/xfrm/xfrm_interface.c:901: undefined reference to `xfrm4_tunnel_deregister'
ld: net/xfrm/xfrm_interface.o: in function `xfrmi4_init':
net/xfrm/xfrm_interface.c:873: undefined reference to `xfrm4_tunnel_register'
>> ld: net/xfrm/xfrm_interface.c:876: undefined reference to `xfrm4_tunnel_register'
ld: net/xfrm/xfrm_interface.c:885: undefined reference to `xfrm4_tunnel_deregister'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[intel-linux-intel-lts:5.4/yocto 2/3] drivers/tcc/tcc_buffer.c:234:18: warning: variable 'entry_format' set but not used
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: bda68cfc97bb728fbb144928c2269de95e433a76
commit: a83e0909a8eb378a3a62a3c14d2a555784216cec [2/3] tcc: this is kernel driver to interface to TCC PTCM pesudo SRAM
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce (this is a W=1 build):
git checkout a83e0909a8eb378a3a62a3c14d2a555784216cec
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/tcc/tcc_buffer.c: In function 'tcc_parse_ptct':
>> drivers/tcc/tcc_buffer.c:234:18: warning: variable 'entry_format' set but not used [-Wunused-but-set-variable]
234 | u32 offset = 0, entry_format, entry_size, entry_type;
| ^~~~~~~~~~~~
vim +/entry_format +234 drivers/tcc/tcc_buffer.c
230
231 static int tcc_parse_ptct(void)
232 {
233 u32 *tbl_swap;
> 234 u32 offset = 0, entry_format, entry_size, entry_type;
235 struct tcc_ptct_entry_header *entry_header;
236 struct tcc_ptct_mhlatency *entry_mhl;
237 struct tcc_ptct_psram *entry_psram;
238 struct psram *p_new_psram;
239 struct memory_slot_info *p_memslot;
240
241 tbl_swap = (u32 *)acpi_ptct_tbl;
242
243 tcc_get_cache_info();
244
245 p_tcc_config->ptct_size = acpi_ptct_tbl->length;
246 p_tcc_config->num_of_psram = 0;
247 /* offset in INTEGER size*/
248 offset = ACPI_HEADER_SIZE;
249 tbl_swap = tbl_swap + offset;
250
251 do {
252 entry_header = (struct tcc_ptct_entry_header *)tbl_swap;
253
254 entry_format = entry_header->format;
255 entry_size = entry_header->size;
256 entry_type = entry_header->type;
257
258 if (entry_type == PTCT_MEMORY_HIERARCHY_LATENCY) {
259 entry_mhl = (struct tcc_ptct_mhlatency *)(tbl_swap + ENTRY_HEADER_SIZE);
260 if (entry_mhl->cache_level == RGN_L2)
261 p_tcc_config->l2_latency = entry_mhl->latency;
262 else if (entry_mhl->cache_level == RGN_L3)
263 p_tcc_config->l3_latency = entry_mhl->latency;
264 }
265
266 offset += entry_size / sizeof(u32);
267 tbl_swap = tbl_swap + entry_size / sizeof(u32);
268 } while ((offset < (acpi_ptct_tbl->length) / sizeof(u32)) && entry_size);
269
270 tbl_swap = (u32 *)acpi_ptct_tbl;
271 offset = ACPI_HEADER_SIZE;
272 tbl_swap = tbl_swap + offset;
273
274 do {
275 entry_header = (struct tcc_ptct_entry_header *)tbl_swap;
276
277 entry_format = entry_header->format;
278 entry_size = entry_header->size;
279 entry_type = entry_header->type;
280
281 switch (entry_type) {
282 case PTCT_PESUDO_SRAM:
283 entry_psram = (struct tcc_ptct_psram *)(tbl_swap + ENTRY_HEADER_SIZE);
284 if (entry_psram->cache_level != RGN_L2 && entry_psram->cache_level != RGN_L3)
285 break;
286
287 p_new_psram = kzalloc(sizeof(struct psram), GFP_KERNEL);
288 if (!p_new_psram)
289 return -1;
290
291 p_new_psram->config.id = p_tcc_config->num_of_psram++;
292 p_new_psram->config.type = entry_psram->cache_level;
293 p_new_psram->paddr = ((u64)(entry_psram->phyaddr_hi) << 32) | entry_psram->phyaddr_lo;
294 p_new_psram->config.size = entry_psram->size;
295 p_new_psram->config.ways = entry_psram->cache_ways;
296
297 if (entry_psram->cache_level == RGN_L2) {
298 p_new_psram->config.latency = p_tcc_config->l2_latency;
299 tcc_get_psram_cpumask(entry_psram->apic_id, p_tcc_config->l2_num_of_threads_share, &p_new_psram->cpumask);
300
301 } else if (entry_psram->cache_level == RGN_L3) {
302 p_new_psram->config.latency = p_tcc_config->l3_latency;
303 tcc_get_psram_cpumask(entry_psram->apic_id, p_tcc_config->l3_num_of_threads_share, &p_new_psram->cpumask);
304 }
305
306 p_new_psram->config.cpu_mask_p = (void *)&p_new_psram->cpumask;
307 p_new_psram->vaddr = memremap(p_new_psram->paddr, p_new_psram->config.size, MEMREMAP_WB);
308 INIT_LIST_HEAD(&p_new_psram->memslots);
309
310 p_memslot = kzalloc(sizeof(struct memory_slot_info), GFP_KERNEL);
311 if (!p_memslot)
312 return -1;
313
314 p_memslot->paddr = p_new_psram->paddr;
315 p_memslot->size = p_new_psram->config.size;
316 p_memslot->status = MEM_FREE;
317 p_memslot->minor = UNDEFINED_DEVNODE;
318
319 list_add_tail(&p_new_psram->node, &p_tcc_config->psrams);
320 list_add_tail(&p_memslot->node, &p_new_psram->memslots);
321 break;
322
323 default:
324 break;
325 }
326 /* move to next entry*/
327 offset += entry_size / sizeof(u32);
328 tbl_swap = tbl_swap + entry_size / sizeof(u32);
329 } while ((offset < (acpi_ptct_tbl->length) / sizeof(u32)) && entry_size);
330 return 0;
331 }
332
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[peterz-queue:locking/core 1/2] arch/x86/include/asm/thread_info.h:208:5: error: 'GOOD_FRAME' undeclared
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/core
head: c4dfe2b515b510d7db6858c14f9b2492130a543b
commit: 589bcab3e46636fc4fb4f56b3f51adba98f50ee0 [1/2] seqlock,headers: Untangle the spaghetti monster
config: i386-randconfig-a014-20200731 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce (this is a W=1 build):
git checkout 589bcab3e46636fc4fb4f56b3f51adba98f50ee0
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from arch/x86/include/asm/smp.h:18,
from arch/x86/include/asm/apic.h:485,
from arch/x86/kernel/apic/local.h:13,
from arch/x86/kernel/apic/ipi.c:6:
arch/x86/include/asm/thread_info.h: In function 'arch_within_stack_frames':
>> arch/x86/include/asm/thread_info.h:208:5: error: 'GOOD_FRAME' undeclared (first use in this function)
208 | GOOD_FRAME : BAD_STACK;
| ^~~~~~~~~~
arch/x86/include/asm/thread_info.h:208:5: note: each undeclared identifier is reported only once for each function it appears in
>> arch/x86/include/asm/thread_info.h:208:18: error: 'BAD_STACK' undeclared (first use in this function)
208 | GOOD_FRAME : BAD_STACK;
| ^~~~~~~~~
arch/x86/kernel/apic/ipi.c: At top level:
arch/x86/kernel/apic/ipi.c:315:5: warning: no previous prototype for 'safe_smp_processor_id' [-Wmissing-prototypes]
315 | int safe_smp_processor_id(void)
| ^~~~~~~~~~~~~~~~~~~~~
--
In file included from arch/x86/include/asm/smp.h:18,
from arch/x86/include/asm/apic.h:485,
from arch/x86/kernel/apic/probe_32.c:13:
arch/x86/include/asm/thread_info.h: In function 'arch_within_stack_frames':
>> arch/x86/include/asm/thread_info.h:208:5: error: 'GOOD_FRAME' undeclared (first use in this function)
208 | GOOD_FRAME : BAD_STACK;
| ^~~~~~~~~~
arch/x86/include/asm/thread_info.h:208:5: note: each undeclared identifier is reported only once for each function it appears in
>> arch/x86/include/asm/thread_info.h:208:18: error: 'BAD_STACK' undeclared (first use in this function)
208 | GOOD_FRAME : BAD_STACK;
| ^~~~~~~~~
vim +/GOOD_FRAME +208 arch/x86/include/asm/thread_info.h
2052e8d40ad58b1 include/asm-x86/thread_info.h Christoph Lameter 2008-05-12 172
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 173 /*
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 174 * Walks up the stack frames to make sure that the specified object is
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 175 * entirely contained by a single stack frame.
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 176 *
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 177 * Returns:
96dc4f9fb64690f arch/x86/include/asm/thread_info.h Sahara 2017-02-16 178 * GOOD_FRAME if within a frame
96dc4f9fb64690f arch/x86/include/asm/thread_info.h Sahara 2017-02-16 179 * BAD_STACK if placed across a frame boundary (or outside stack)
96dc4f9fb64690f arch/x86/include/asm/thread_info.h Sahara 2017-02-16 180 * NOT_STACK unable to determine (no frame pointers, etc)
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 181 */
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 182 static inline int arch_within_stack_frames(const void * const stack,
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 183 const void * const stackend,
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 184 const void *obj, unsigned long len)
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 185 {
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 186 #if defined(CONFIG_FRAME_POINTER)
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 187 const void *frame = NULL;
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 188 const void *oldframe;
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 189
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 190 oldframe = __builtin_frame_address(1);
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 191 if (oldframe)
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 192 frame = __builtin_frame_address(2);
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 193 /*
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 194 * low ----------------------------------------------> high
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 195 * [saved bp][saved ip][args][local vars][saved bp][saved ip]
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 196 * ^----------------^
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 197 * allow copies only within here
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 198 */
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 199 while (stack <= frame && frame < stackend) {
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 200 /*
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 201 * If obj + len extends past the last frame, this
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 202 * check won't pass and the next frame will be 0,
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 203 * causing us to bail out and correctly report
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 204 * the copy as invalid.
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 205 */
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 206 if (obj + len <= frame)
96dc4f9fb64690f arch/x86/include/asm/thread_info.h Sahara 2017-02-16 207 return obj >= oldframe + 2 * sizeof(void *) ?
96dc4f9fb64690f arch/x86/include/asm/thread_info.h Sahara 2017-02-16 @208 GOOD_FRAME : BAD_STACK;
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 209 oldframe = frame;
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 210 frame = *(const void * const *)frame;
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 211 }
96dc4f9fb64690f arch/x86/include/asm/thread_info.h Sahara 2017-02-16 212 return BAD_STACK;
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 213 #else
96dc4f9fb64690f arch/x86/include/asm/thread_info.h Sahara 2017-02-16 214 return NOT_STACK;
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 215 #endif
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 216 }
0f60a8efe4005ab arch/x86/include/asm/thread_info.h Kees Cook 2016-07-12 217
:::::: The code at line 208 was first introduced by commit
:::::: 96dc4f9fb64690fc34410415fd1fc609cf803f61 usercopy: Move enum for arch_within_stack_frames()
:::::: TO: Sahara <keun-o.park(a)darkmatter.ae>
:::::: CC: Kees Cook <keescook(a)chromium.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months