From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id EFB30C433EF for ; Mon, 25 Jul 2022 16:37:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 737948E0002; Mon, 25 Jul 2022 12:37:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6BF7B8E0001; Mon, 25 Jul 2022 12:37:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 561A98E0002; Mon, 25 Jul 2022 12:37:34 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 4078C8E0001 for ; Mon, 25 Jul 2022 12:37:34 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 1AF931404BD for ; Mon, 25 Jul 2022 16:37:34 +0000 (UTC) X-FDA: 79726178028.02.8C48256 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) by imf08.hostedemail.com (Postfix) with ESMTP id 30F691600A0 for ; Mon, 25 Jul 2022 16:37:33 +0000 (UTC) Received: by mail-pf1-f176.google.com with SMTP id y141so10892213pfb.7 for ; Mon, 25 Jul 2022 09:37:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zYTmFE+j9kyarfUgtDZBQZvI7xw9CNjXKy2fVdoUTrs=; b=AahEQ+C2FQcdP+FlQbxs+7kMUPlNT8dE/pk61+uvJkcd/1+4ywxtBSLnuWftKwtQBr bazHXi+SLE8xaOJEW2kqPJtpWQuHenoczVlBkPYLSOJ2IbXQKeRkwyd/nCqKkNCaJV7L K5ElC83PrmZwlJgpe2X9qdI1GZi2t+puRS7+tD2U7BVL52/Jle6uJxmxE+pz4NjphzwP Zdn5QNfVQ96FawKlzIfv5kWYNlvFhBtzXtJgqaNP1yjKNYHeQ415GFsPolry8bXOVv+Z JlBBrIvY0XRWu4Tdhqx3kIHjZfBWFOrlYZnXfo/IhOdFYmwgonOcIdwoYInh+r4/Pqqg TaxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zYTmFE+j9kyarfUgtDZBQZvI7xw9CNjXKy2fVdoUTrs=; b=SS9Rss5Jwwp4XVChxFhgSq7eefwTOFWGyexiiuG2xITC4YsKB0Zgo+k2YFh3uEqWRI GGESGJ6ObD+YL09MotqbKEvJZgrlklr9Z2RLvQgFzG4tcgG/lTcqDBfmMyBlxCHL8udy KLRUufuxIw5UQyef8LWp9Gc7OmnWKZcEZDcT30TDoxc7d7QDKdMDVmu3OjHcmqNbD6b3 gqxXMkzEjS+Q0HeHY/VlZznVVXHfYC8ikHDci9FGWUARWSz02/6tBOKolGfK9P90g5sm 02oX7loKncHrPSYKIVacJ9GPzwaRuyLCDhtp/Ex7w2IQXujI19r9znbwHsnYnJDGOM5+ +vTQ== X-Gm-Message-State: AJIora/CP4FflPIBUue38tAOOCcAymImI8w9isL+VQHn/c+EGDwdy5a9 GBPbqtppf6stHxmg6JraHl4glTIErUOisgR3cU7uhQ== X-Google-Smtp-Source: AGRyM1vf+P7IJlL3R+of2a3zKc9sOIzJD32WZZVR5h8rMV8E95UxwuNYJUFalv0rA5rIv4bS8wThKyiS7SRtuSfC5QU= X-Received: by 2002:a63:85c6:0:b0:412:a94c:16d0 with SMTP id u189-20020a6385c6000000b00412a94c16d0mr11898994pgd.253.1658767051787; Mon, 25 Jul 2022 09:37:31 -0700 (PDT) MIME-Version: 1.0 References: <202207242322.9ymWznA0-lkp@intel.com> In-Reply-To: From: Stanislav Fomichev Date: Mon, 25 Jul 2022 09:37:20 -0700 Message-ID: Subject: Re: [linux-next:master 11295/12552] cgroup.c:undefined reference to `bpf_trampoline_link_cgroup_shim' To: kernel test robot Cc: kbuild-all@lists.01.org, Linux Memory Management List , Alexei Starovoitov Content-Type: text/plain; charset="UTF-8" ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1658767053; a=rsa-sha256; cv=none; b=FCCBF68iurYAyV9Bml67VY287bOTI1Ivyl2zPhGFGfK1qQvYM0erCp/We3fAJoYLvGRHCY TZWv+luovjoeBLfmgam7EK2m9JIY8Jlk++9pmm9Tl31pkJyzeZKhV5PvW4T4a3NAADuYMn VmvaAtyomRWDZDUDTsdPqzQVX8aTaYM= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=AahEQ+C2; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf08.hostedemail.com: domain of sdf@google.com designates 209.85.210.176 as permitted sender) smtp.mailfrom=sdf@google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1658767053; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=zYTmFE+j9kyarfUgtDZBQZvI7xw9CNjXKy2fVdoUTrs=; b=Q2Hu53Bus7DELFlRqywxBrd3EyX8T4W3R/XsS09hie5V91rSaAarFd2Pyxt8XRSnrJxsot ZM9Q1Fup1uITRkCGEI37v6FiGNG2GGeR8StSEHu8lyxNhBkF2s8G3Ss6/p9O5LAz1uvDU5 vCpd+q1vie1rUFfh+M2C/sovA3GN/iw= X-Stat-Signature: 8ofh1w1fe9a99upr8u66a3p3w7jug3dw X-Rspamd-Queue-Id: 30F691600A0 X-Rspam-User: Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=AahEQ+C2; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf08.hostedemail.com: domain of sdf@google.com designates 209.85.210.176 as permitted sender) smtp.mailfrom=sdf@google.com X-Rspamd-Server: rspam07 X-HE-Tag: 1658767053-514772 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Mon, Jul 25, 2022 at 9:27 AM Stanislav Fomichev wrote: > > On Sun, Jul 24, 2022 at 8:19 AM kernel test robot wrote: > > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > > head: 18c107a1f120d095404d141dfad8f594bdc44020 > > commit: 3908fcddc65d04e069b03be49b33fae90e424631 [11295/12552] bpf: fix lsm_cgroup build errors on esoteric configs > > config: x86_64-randconfig-a016-20220718 (https://download.01.org/0day-ci/archive/20220724/202207242322.9ymWznA0-lkp@intel.com/config) > > compiler: gcc-11 (Debian 11.3.0-3) 11.3.0 > > reproduce (this is a W=1 build): > > # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=3908fcddc65d04e069b03be49b33fae90e424631 > > 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 3908fcddc65d04e069b03be49b33fae90e424631 > > # save the config file > > mkdir build_dir && cp config build_dir/.config > > make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash > > > > If you fix the issue, kindly add following tag where applicable > > Reported-by: kernel test robot > > > > Note: the linux-next/master HEAD 18c107a1f120d095404d141dfad8f594bdc44020 builds fine. > > It may have been fixed somewhere. > > > > All errors (new ones prefixed by >>): > > > > ld: vmlinux.o: in function `cgroup_bpf_release': > > cgroup.c:(.text+0x22faf7): undefined reference to `bpf_trampoline_unlink_cgroup_shim' > > ld: cgroup.c:(.text+0x22fb46): undefined reference to `bpf_trampoline_unlink_cgroup_shim' > > ld: vmlinux.o: in function `__cgroup_bpf_attach': > > >> cgroup.c:(.text+0x23039c): undefined reference to `bpf_trampoline_link_cgroup_shim' > > ld: cgroup.c:(.text+0x2303dd): undefined reference to `bpf_trampoline_unlink_cgroup_shim' > > ld: cgroup.c:(.text+0x230411): undefined reference to `bpf_trampoline_unlink_cgroup_shim' > > ld: vmlinux.o: in function `__cgroup_bpf_detach': > > cgroup.c:(.text+0x23096c): undefined reference to `bpf_trampoline_unlink_cgroup_shim' > > ld: vmlinux.o: in function `bpf_cgroup_link_release': > > cgroup.c:(.text+0x230a57): undefined reference to `bpf_trampoline_unlink_cgroup_shim' > > Hm, looks like [1] is not enough? I'll take another look.. > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git/commit/?id=9cb61fda8c71baaff423fe5be2e609100860fa78 With the config above: $ git checkout 3908fcddc65d04e069b03be49b33fae90e424631 $ make ld: vmlinux.o: in function `cgroup_bpf_release': cgroup.c:(.text+0x22e8bf): undefined reference to `bpf_trampoline_unlink_cgroup_shim' ld: cgroup.c:(.text+0x22e90e): undefined reference to `bpf_trampoline_unlink_cgroup_shim' ld: vmlinux.o: in function `__cgroup_bpf_attach': cgroup.c:(.text+0x22f164): undefined reference to `bpf_trampoline_link_cgroup_shim' ld: cgroup.c:(.text+0x22f1a5): undefined reference to `bpf_trampoline_unlink_cgroup_shim' ld: cgroup.c:(.text+0x22f1d9): undefined reference to `bpf_trampoline_unlink_cgroup_shim' ld: vmlinux.o: in function `__cgroup_bpf_detach': cgroup.c:(.text+0x22f734): undefined reference to `bpf_trampoline_unlink_cgroup_shim' ld: vmlinux.o: in function `bpf_cgroup_link_release': cgroup.c:(.text+0x22f81f): undefined reference to `bpf_trampoline_unlink_cgroup_shim' make: *** [Makefile:1164: vmlinux] Error 1 $ git checkout bpf-next $ make olddefconfig $ make $ So seems fine? I'm assuming this failure is from the old next-20220722 and the latest linux-next is ok. > > -- > > 0-DAY CI Kernel Test Service > > https://01.org/lkp