Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp103066rdb; Thu, 1 Feb 2024 03:31:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IFHifDSGZxwNeMT3XBPQ8JVK5emtsQbwq7cnx+dVkOglGLMO6FD6zMj0zBUGu4ov0Mufpcq X-Received: by 2002:a17:906:1d4b:b0:a35:f8fc:dc8b with SMTP id o11-20020a1709061d4b00b00a35f8fcdc8bmr1334596ejh.65.1706787099375; Thu, 01 Feb 2024 03:31:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706787099; cv=pass; d=google.com; s=arc-20160816; b=T3VLwEDJ0JNxT258YOA0d6aj9pXd//8mUSsD0YgOicSsLeZrH4iuz9SE2i+uwJu4e9 m2ThbTB6xEg6EdZ504KCo8Re2RycYXg5LfD6M1dXyGh8Qz8U8iE0NzFA1APRO+t3iHR/ ow4H/Zg2eDcSvRUOowKVy1Wt2bqxFXcf4sf543PhbQdJ5V/9WwSYnNdHsfZo/F1VLYeK tcYI/rdUuRxB/GCOG6MtA0bKq9krmKGoi5mwcgQJk8/nprSih+ZL59i7EsuXako6vArc AiKUrkTWFSrviYrtTC/DuAGKK8LgZiGMxSP/a0o9arfeK8ePZ4Io8dVhy7fmibR2FsK9 2Shg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:cms-type:content-transfer-encoding:in-reply-to:from:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature:dkim-filter; bh=wQ0RO1zhNPtAJDp+vpA11gjRu7eZ5H9BUbR2r8jxAJg=; fh=QheBZfteuP2Zd7NeLQFXrMRLm3398zp9EVhVP/FxkqY=; b=t8OT6ah+hosLoMCL23/4IP5vF+naR7bdi5k4IdW1h+XeYizJ+YHd6mN212K04wPVB8 kndcSbvYbdtXw/9ilb9sqYe32gijqlgVGCdkzHiIaQg3tmuL0yAXV1bv3migFVTC0yGe EZN6zpNjggErtcPlKCq6kYj1fl08/IezangzD94rdFH1ui3QJ8vpbqtTmeVYqpyqhZY6 9A9hIlHqMk42qACwxhqTtqU24qlXOAfwvmvAIiU0ksxWQmIFQCC63PQUxdP/CaTyaV9k NUbLAgF8l5K9R65/zen8Bq2Ikn3fXgkTvtjWZbGK0Gp3eu+oDmBhArPUwp7zaz940dgG jwtA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=WqJBI7BU; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-48016-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48016-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com X-Forwarded-Encrypted: i=1; AJvYcCVVSnCFw6VP4JoRVApUJgR3V9Xy9MQsKRUT9KinuRXDK2ouesq7/oQpya4eG+XPaVBLiGo8ULmDuwO0ZcjvYoB+tvXqj/SIjfIqHWIazg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id q6-20020a170906360600b00a23619be213si6590136ejb.159.2024.02.01.03.31.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 03:31:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48016-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=WqJBI7BU; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-48016-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48016-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B29491F23D48 for ; Thu, 1 Feb 2024 11:31:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E495115D5B4; Thu, 1 Feb 2024 11:31:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="WqJBI7BU" Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) (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 640A74DA1E for ; Thu, 1 Feb 2024 11:31:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.118.77.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706787084; cv=none; b=cqZh5G9J99heepEdx/iEz0SVH5mo4WJoXplyIFqC8hgW/hsij9tXkEWShzmeDIdYA8VNEgumVeX2duEc2D3fNXXth73lC6GHck/Hau9G3JRTt59m++SmAxk9WQu+Obwq8+O66Ck3bcabIppbAJUIIxgqssuKB6arcHra0gI+/bs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706787084; c=relaxed/simple; bh=Y43K/9Pr3/J8pQcr6auVY9urd1fE9ip+x6T1JXZeiuk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:From:In-Reply-To: Content-Type:References; b=hjpGBmMWrucMm1p4v6lvesX62w1eomOPMiwW17tIFaI7fd/BGjLDMbg0fjwEHj7jZmIK53yridnyVjPIm+SugSQl/n4qLUdypq/gt6GHjoYbzaIP0pkFxQ93Ep5RLF/ZUzcQhqArjk8A7Ewaf8IAqPL4wSJDmo5xRQ1zwJ85MqQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=WqJBI7BU; arc=none smtp.client-ip=210.118.77.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20240201113120euoutp02f680de284b781ca6509b956d7ca2d5f4~vuc6DqpIy3263232632euoutp02I for ; Thu, 1 Feb 2024 11:31:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20240201113120euoutp02f680de284b781ca6509b956d7ca2d5f4~vuc6DqpIy3263232632euoutp02I DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1706787080; bh=wQ0RO1zhNPtAJDp+vpA11gjRu7eZ5H9BUbR2r8jxAJg=; h=Date:Subject:To:Cc:From:In-Reply-To:References:From; b=WqJBI7BUqlsQWq4Nl5Vbm8WSh+YyvYXFd/Y7Nm4F4SOyS+1tb2pcYKwEYN7pl6ww7 Ex49vc1woFrv7ESyyhIz6Q4yanew77f3qZfqBQH2dtftAlbMLskeGxFDnGpxu0uvib otK/+gjlfOR7CE9Hrz1qTlKoKajO3dzxiezlLi28= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20240201113120eucas1p10dcc6b1b835492224c4a86b115a06ffa~vuc50RlLF2368023680eucas1p1L; Thu, 1 Feb 2024 11:31:20 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 03.3B.09814.7018BB56; Thu, 1 Feb 2024 11:31:20 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20240201113119eucas1p2da4ad2b5b7549c5fb99e540531411c2a~vuc5cxAS32810128101eucas1p2T; Thu, 1 Feb 2024 11:31:19 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20240201113119eusmtrp11e8a64689c0d3b7776afca799a2da318~vuc5cI-wg2587625876eusmtrp1N; Thu, 1 Feb 2024 11:31:19 +0000 (GMT) X-AuditID: cbfec7f4-727ff70000002656-88-65bb81078e1c Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id BD.13.09146.7018BB56; Thu, 1 Feb 2024 11:31:19 +0000 (GMT) Received: from [106.210.134.192] (unknown [106.210.134.192]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20240201113119eusmtip28cd4f02af464816248dc207c234d9b95~vuc45F0fP0033700337eusmtip2Y; Thu, 1 Feb 2024 11:31:19 +0000 (GMT) Message-ID: Date: Thu, 1 Feb 2024 12:31:18 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: linux-next: runtime warnings after merge of the bpf-next tree Content-Language: en-US To: Daniel Xu , Stephen Rothwell Cc: Daniel Borkmann , Alexei Starovoitov , Andrii Nakryiko , bpf , Networking , Linux Kernel Mailing List , Linux Next Mailing List From: Marek Szyprowski In-Reply-To: Content-Transfer-Encoding: 7bit X-Brightmail-Trac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e1xFpU+88XzbrkJsws8SbrvIj U6Qu7W7/v1HsSEFJ6knNAOYHi9alK38V3afEUpyRaKjFXFScCAB14NLfTQMAAA== X-CMS-MailID: 20240201113119eucas1p2da4ad2b5b7549c5fb99e540531411c2a X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20240201113119eucas1p2da4ad2b5b7549c5fb99e540531411c2a X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20240201113119eucas1p2da4ad2b5b7549c5fb99e540531411c2a References: <20240201142348.38ac52d5@canb.auug.org.au> Dear All, On 01.02.2024 04:55, Daniel Xu wrote: > Hi Stephen, > > Thanks for the report. > > On Thu, Feb 01, 2024 at 02:23:48PM +1100, Stephen Rothwell wrote: >> Hi all, >> >> After merging the bpf-next tree, today's linux-next build (powerpc >> pseries_le_defconfig) produced these runtime warnings in my qemu boot > I can't quite find that config in-tree. Mind giving me a pointer? > >> tests: >> >> ipip: IPv4 and MPLS over IPv4 tunneling driver >> ------------[ cut here ]------------ >> WARNING: CPU: 0 PID: 1 at kernel/bpf/btf.c:8131 register_btf_kfunc_id_set+0x68/0x74 >> Modules linked in: >> CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.8.0-rc2-03380-gd0c0d80c1162 #2 >> Hardware name: IBM pSeries (emulated by qemu) POWER8 (raw) 0x4d0200 0xf000004 of:SLOF,HEAD pSeries >> NIP: c0000000003bfbfc LR: c00000000209ba3c CTR: c00000000209b9a4 >> REGS: c0000000049bf960 TRAP: 0700 Not tainted (6.8.0-rc2-03380-gd0c0d80c1162) >> MSR: 8000000002029033 CR: 24000482 XER: 00000000 >> CFAR: c0000000003bfbb0 IRQMASK: 0 >> GPR00: c00000000209ba3c c0000000049bfc00 c0000000015c9900 000000000000001b >> GPR04: c0000000012bc980 000000000000019a 000000000000019a 0000000000000133 >> GPR08: c000000002969900 0000000000000001 c000000002969900 c000000002969900 >> GPR12: c00000000209b9a4 c000000002b60000 c0000000000110cc 0000000000000000 >> GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 >> GPR20: 0000000000000000 0000000000000000 0000000000000000 c0000000014cd250 >> GPR24: c000000002003e6c c000000001582c78 000000000000018b c0000000020c1060 >> GPR28: 0000000000000000 0000000000000007 c0000000020c10a8 c000000002968f80 >> NIP [c0000000003bfbfc] register_btf_kfunc_id_set+0x68/0x74 >> LR [c00000000209ba3c] cubictcp_register+0x98/0xc8 >> Call Trace: >> [c0000000049bfc30] [c000000000010d58] do_one_initcall+0x80/0x2f8 >> [c0000000049bfd00] [c000000002005aec] kernel_init_freeable+0x32c/0x520 >> [c0000000049bfde0] [c0000000000110f8] kernel_init+0x34/0x25c >> [c0000000049bfe50] [c00000000000debc] ret_from_kernel_user_thread+0x14/0x1c >> --- interrupt: 0 at 0x0 >> Code: 60420000 3d22ffc6 39290708 7d291a14 89290270 7d290774 79230020 4bfff8c0 60420000 e9240000 7d290074 7929d182 <0b090000> 3860ffea 4e800020 3c4c0121 >> ---[ end trace 0000000000000000 ]--- >> NET: Registered PF_INET6 protocol family > [...] > >> Exposed (and maybe caused) by commit >> >> 6e7769e6419f ("bpf: treewide: Annotate BPF kfuncs in BTF") >> > My guess is the config does not enable CONFIG_DEBUG_INFO_BTF which > causes compilation to use the dummy definitions for BTF_KFUNCS_START(). > > I think there's probably a few ways to fix it. This untested diff should > work if I am guessing correctly. There's probably a cleaner way to do > this. I'll take a closer look in the morning. I've observed this issue while testing today's linux-next on ARM64 bit boards. The below patch fixes (or hides?) this warning. Feel free to add: Tested-by: Marek Szyprowski > diff --git a/include/linux/btf_ids.h b/include/linux/btf_ids.h > index 0fe4f1cd1918..e24aabfe8ecc 100644 > --- a/include/linux/btf_ids.h > +++ b/include/linux/btf_ids.h > @@ -227,7 +227,7 @@ BTF_SET8_END(name) > #define BTF_SET_END(name) > #define BTF_SET8_START(name) static struct btf_id_set8 __maybe_unused name = { 0 }; > #define BTF_SET8_END(name) > -#define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { 0 }; > +#define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; > #define BTF_KFUNCS_END(name) > > #endif /* CONFIG_DEBUG_INFO_BTF */ > > > Thanks, > Daniel Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland