From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2C05349CFD; Sun, 18 Oct 2026 03:46:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792295221; cv=none; b=ayF7K3A/oR/rpmUiZbfvU1RPkdwXDnv9FZRpUB5TzHkfCXCYjDAj4t2LwV6A5uDqt60G/8/og0O5z4R1rT9t6J1zFQYUaHTtjUuRT2j7IhWYgH2pDdil7ehlZG5AIahMZXYaYQGae2LaZ14TzA/WBj7JGeC1e85F0/5c8kTCA1Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792295221; c=relaxed/simple; bh=TnlLL+kSdfBTHy2er0Odwu5fnbzTG2kKx5edc0IjVR4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZVjFx/IiDjDcMJbwCVJCUW7duIbOzp5c7q89QF23RAR1RNJy24bA4H50QA37jTM85hPNtGbDGzAqQA0dZ/mHrC2cBXfYDj4QE7Ba5asg8durqsjexS8rTdRi9mMi+Y4HfnV7OA2NPmuY7aZeG0ecIT4w1xuvVHU9kS3ei9Oub4I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=czC7Xa9Z; arc=none smtp.client-ip=198.175.65.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="czC7Xa9Z" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1792295219; x=1823831219; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=TnlLL+kSdfBTHy2er0Odwu5fnbzTG2kKx5edc0IjVR4=; b=czC7Xa9ZidUefzFlLchxLeSfFl6QnuJSsb0gv7LthD6hwnhY75juwP9u L/Fz2kzYmyU4U/8/bXfaGdZiQlDdLUdoLoSFvCSvMCRuFK1ViF1xNDEyN F9075apFBNsqIn5J7oPwSiXSyzCRX51Q3idWnXvLZ6fn6BDaOYZRki67r gdchq9177HZ7ZrGZzl2FtWMIoH0BlUUfOuxpN2a/2y/5FFJIaMEtQUrZE 6ZChDrOEx4+Dcy1gqHobe33QoJAhBk5VtdMsyqS8UlSRXTzlfHBnM9330 Xon1OK1V6QPJgxgj4mdrvRudKLrRnzHeYL6IqRnyDPUXHbeDfZAUd7NB0 w==; X-CSE-ConnectionGUID: IGl1/o0ARWqwL2uE06E2tA== X-CSE-MsgGUID: 7sr/zAhYQJOOCESgxMTgEQ== X-IronPort-AV: E=McAfee;i="6800,10657,11938"; a="1028947" X-IronPort-AV: E=Sophos;i="6.27,165,1787036400"; d="scan'208";a="1028947" Received: from fmviesa013.fm.intel.com ([10.60.135.153]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2026 20:46:59 -0700 X-CSE-ConnectionGUID: Xv/bWGnITGedwc8FCp+V6g== X-CSE-MsgGUID: pKi0NCHdTgiiAjuihecQWg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,165,1787036400"; d="scan'208";a="4018129" Received: from lkp-server01.sh.intel.com (HELO 0caa9d2d175c) ([10.239.97.150]) by fmviesa013.fm.intel.com with ESMTP; 17 Oct 2026 20:46:53 -0700 Received: from kbuild by 0caa9d2d175c with local (Exim 4.98.2) (envelope-from ) id 1xIHrF-00000000K3C-0HEZ; Sun, 18 Oct 2026 03:46:49 +0000 Date: Sun, 18 Oct 2026 11:46:48 +0800 From: kernel test robot To: Leon Hwang , bpf@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Eduard Zingerman , Kumar Kartikeya Dwivedi , Martin KaFai Lau , Song Liu , Yonghong Song , Jiri Olsa , Emil Tsalapatis , Ihor Solodrai , Jesper Dangaard Brouer , John Fastabend , Stanislav Fomichev , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Shuah Khan , Kuniyuki Iwashima , Hangbin Liu , Martin Karsten , Masashi Honma , linux-kernel@vger.kernel.org Subject: Re: [PATCH bpf-next 2/6] bpf: Add syscall common attrs support for xdp link_create Message-ID: <202610181115.hv8jYAxy-lkp@intel.com> References: <20261017142649.51047-3-leon.hwang@linux.dev> Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261017142649.51047-3-leon.hwang@linux.dev> Hi Leon, kernel test robot noticed the following build errors: [auto build test ERROR on bpf-next/master] url: https://github.com/intel-lab-lkp/linux/commits/Leon-Hwang/bpf-Add-syscall-common-attrs-support-for-link_create/20261017-222644 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master patch link: https://lore.kernel.org/r/20261017142649.51047-3-leon.hwang%40linux.dev patch subject: [PATCH bpf-next 2/6] bpf: Add syscall common attrs support for xdp link_create config: um-defconfig (https://download.01.org/0day-ci/archive/20261018/202610181115.hv8jYAxy-lkp@intel.com/config) compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 6719b9e31d6a93099612c474eec76d9f41d0275a) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261018/202610181115.hv8jYAxy-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202610181115.hv8jYAxy-lkp@intel.com/ All errors (new ones prefixed by >>): /usr/bin/ld: warning: .tmp_vmlinux1 has a LOAD segment with RWX permissions /usr/bin/ld: net/core/dev.o: in function `bpf_xdp_link_attach': >> net/core/dev.c:10789:(.ltext+0xcb71): undefined reference to `bpf_log' clang: error: linker command failed with exit code 1 (use -v to see invocation) vim +10789 net/core/dev.c 10774 10775 int bpf_xdp_link_attach(const union bpf_attr *attr, struct bpf_prog *prog, 10776 struct bpf_verifier_log *log) 10777 { 10778 struct net *net = current->nsproxy->net_ns; 10779 struct bpf_link_primer link_primer; 10780 struct netlink_ext_ack extack = {}; 10781 struct bpf_xdp_link *link; 10782 struct net_device *dev; 10783 int err, fd; 10784 10785 rtnl_lock(); 10786 dev = dev_get_by_index(net, attr->link_create.target_ifindex); 10787 if (!dev) { 10788 rtnl_unlock(); 10789 bpf_log(log, "Invalid target_ifindex.\n"); 10790 return -EINVAL; 10791 } 10792 10793 link = kzalloc_obj(*link, GFP_USER); 10794 if (!link) { 10795 err = -ENOMEM; 10796 goto unlock; 10797 } 10798 10799 bpf_link_init(&link->link, BPF_LINK_TYPE_XDP, &bpf_xdp_link_lops, prog, 10800 attr->link_create.attach_type); 10801 link->dev = dev; 10802 link->flags = attr->link_create.flags; 10803 10804 err = bpf_link_prime(&link->link, &link_primer); 10805 if (err) { 10806 kfree(link); 10807 goto unlock; 10808 } 10809 10810 netdev_lock_ops(dev); 10811 err = dev_xdp_attach_link(dev, &extack, link); 10812 netdev_unlock_ops(dev); 10813 rtnl_unlock(); 10814 10815 if (err) { 10816 link->dev = NULL; 10817 bpf_link_cleanup(&link_primer); 10818 bpf_log(log, extack._msg); 10819 trace_bpf_xdp_link_attach_failed(extack._msg); 10820 goto out_put_dev; 10821 } 10822 10823 fd = bpf_link_settle(&link_primer); 10824 /* link itself doesn't hold dev's refcnt to not complicate shutdown */ 10825 dev_put(dev); 10826 return fd; 10827 10828 unlock: 10829 rtnl_unlock(); 10830 10831 out_put_dev: 10832 dev_put(dev); 10833 return err; 10834 } 10835 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki