From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f72.google.com (mail-lf0-f72.google.com [209.85.215.72]) by kanga.kvack.org (Postfix) with ESMTP id 8394A828EE for ; Mon, 13 Jun 2016 19:51:39 -0400 (EDT) Received: by mail-lf0-f72.google.com with SMTP id g18so16452151lfg.2 for ; Mon, 13 Jun 2016 16:51:39 -0700 (PDT) Received: from mail-wm0-x232.google.com (mail-wm0-x232.google.com. [2a00:1450:400c:c09::232]) by mx.google.com with ESMTPS id bz9si31837402wjc.115.2016.06.13.16.51.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Jun 2016 16:51:38 -0700 (PDT) Received: by mail-wm0-x232.google.com with SMTP id v199so98459182wmv.0 for ; Mon, 13 Jun 2016 16:51:37 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20160613141123.fcb245b6a7fd3199ae8a32d7@linux-foundation.org> References: <201606140353.WeDaHl1M%fengguang.wu@intel.com> <20160613141123.fcb245b6a7fd3199ae8a32d7@linux-foundation.org> From: Kees Cook Date: Mon, 13 Jun 2016 16:51:36 -0700 Message-ID: Subject: Re: [mel:mm-vmscan-node-lru-v7r3 38/200] slub.c:undefined reference to `cache_random_seq_create' Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: Andrew Morton Cc: kbuild test robot , kbuild-all@01.org, Mel Gorman , Thomas Garnier , Linux Memory Management List On Mon, Jun 13, 2016 at 2:11 PM, Andrew Morton wrote: > On Tue, 14 Jun 2016 03:37:57 +0800 kbuild test robot wrote: > >> tree: https://git.kernel.org/pub/scm/linux/kernel/git/mel/linux mm-vmscan-node-lru-v7r3 >> head: 276a5614a25ce20248f42bd4fb025b80ae0c9be1 >> commit: 44c61fe5d7f13025a2a1f6efbbc0da75ad93ee19 [38/200] mm: SLUB freelist randomization >> config: x86_64-randconfig-x018-06140033 (attached as .config) >> compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430 >> reproduce: >> git checkout 44c61fe5d7f13025a2a1f6efbbc0da75ad93ee19 >> # save the attached .config to linux build tree >> make ARCH=x86_64 >> >> All errors (new ones prefixed by >>): >> >> mm/built-in.o: In function `init_cache_random_seq': >> >> slub.c:(.text+0x507dc): undefined reference to `cache_random_seq_create' >> mm/built-in.o: In function `__kmem_cache_release': >> >> (.text+0x53979): undefined reference to `cache_random_seq_destroy' With that config, I get these errors. > I don't even get that far with that .config. With gcc-4.4.4 I get > > init/built-in.o: In function `initcall_blacklisted': > main.c:(.text+0x41): undefined reference to `__stack_chk_guard' > main.c:(.text+0xbe): undefined reference to `__stack_chk_guard' > init/built-in.o: In function `do_one_initcall': > (.text+0xeb): undefined reference to `__stack_chk_guard' > init/built-in.o: In function `do_one_initcall': > (.text+0x22b): undefined reference to `__stack_chk_guard' > init/built-in.o: In function `name_to_dev_t': > (.text+0x320): undefined reference to `__stack_chk_guard' > init/built-in.o:(.text+0x52e): more undefined references to `__stack_chk_guard' This, I don't. I'm scratching my head about how that's possible. The __stack_chk_guard is a compiler alias on x86... > Kees touched it last :) I'll take a closer look tomorrow... -Kees -- Kees Cook Chrome OS & Brillo Security -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org