Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2812394pxm; Mon, 28 Feb 2022 06:36:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxBpUp/9LXKyxbcmXX/wR8o7ctkw7EvhGDxVAVvBB2psmffn0kIjCnZEcD0tw+EZTZDZIRs X-Received: by 2002:a50:ee90:0:b0:40f:349f:7368 with SMTP id f16-20020a50ee90000000b0040f349f7368mr19401697edr.236.1646058975655; Mon, 28 Feb 2022 06:36:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646058975; cv=none; d=google.com; s=arc-20160816; b=dOqyWpTU35mrpyNzHNdaRldOUFbfR4wPcBeq34bAWUQFoa4Cs+Q687yvPncrgTsuwJ sWke5d8a5K+ybVGAiEnhXeywHVy9q2O0vfkAOR0eAWxaKUL+Y6435EWqt5MugGFpOIbo SXmWfF/jr9+NwOYhmJNrm+4Js2Qic/w5fnIA34H/AOWO3abUPYyU/9BAuCfi67jLoXuW u5taApr6lTkbPq7doVZFdy6UgkRvzG0ozMez+3RpLff909Ndjgk8m7ekz8XUVpSalBdG FFt9XwxMMIPySk7eGA4jYS7cEQY/01yEZa6aZ+SVSrVjDj2WNEOMY5vNTfvv/bSyHhpZ XsgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=59/XOR4VyuZs6Vkjj7902uLBuPW00GF5Ik7kp+A6eZQ=; b=JUt0qo1tb5nAohX7JZRYKvhKFfRnQiBkIHLudhil0sQ9cj4fxKz3N0B4favdapeBk3 5jxtWGMdlnh/7TiIWIa7BvRE+qpD1FGgsrIrzPg1SbeKJHIeoJa89Hwxn5v3vzdupTCz BmprNVJ0Wr494AsKHH8xz8n+q8iBc3JsMkEAuvdxHu4C0Ws289DEiU5UXmMVC2OB6jJr CF1Zq0f9QcqC3NZcUdQX1cJyzBjc0xDvc5Y3Pd5Tc8i2tHWt/HW9ehQQv4C4WaGaNi/y oLIjWyTEHBxYADmQ9D4BdHPo4z4dwrbWVkXOf2fK/ZZRs5QngIWS6kXjgLx12fc/Ovt/ PWBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z7-20020aa7c647000000b00412ca61c4bcsi6562766edr.129.2022.02.28.06.35.51; Mon, 28 Feb 2022 06:36:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235712AbiB1N00 (ORCPT + 99 others); Mon, 28 Feb 2022 08:26:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235498AbiB1N0Y (ORCPT ); Mon, 28 Feb 2022 08:26:24 -0500 Received: from www62.your-server.de (www62.your-server.de [213.133.104.62]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6ED757A99E; Mon, 28 Feb 2022 05:25:46 -0800 (PST) Received: from sslproxy02.your-server.de ([78.47.166.47]) by www62.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1nOg21-000A8i-H2; Mon, 28 Feb 2022 14:25:41 +0100 Received: from [85.1.206.226] (helo=linux.home) by sslproxy02.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nOg21-000XD9-63; Mon, 28 Feb 2022 14:25:41 +0100 Subject: Re: [PATCH bpf-next] bpf: add config to allow loading modules with BTF mismatches To: Shung-Hsi Yu , Connor O'Brien Cc: Alexei Starovoitov , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?Q?Michal_Such=c3=a1nek?= References: <20220223012814.1898677-1-connoro@google.com> From: Daniel Borkmann Message-ID: <6a979467-7bfb-68eb-57d6-f5294846bac4@iogearbox.net> Date: Mon, 28 Feb 2022 14:25:40 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.103.5/26467/Mon Feb 28 10:24:05 2022) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/23/22 5:34 AM, Shung-Hsi Yu wrote: > On Wed, Feb 23, 2022 at 01:28:14AM +0000, Connor O'Brien wrote: >> BTF mismatch can occur for a separately-built module even when the ABI >> is otherwise compatible and nothing else would prevent successfully >> loading. Add a new config to control how mismatches are handled. By >> default, preserve the current behavior of refusing to load the >> module. If MODULE_ALLOW_BTF_MISMATCH is enabled, load the module but >> ignore its BTF information. >> >> Suggested-by: Yonghong Song >> Suggested-by: Michal Suchánek >> Signed-off-by: Connor O'Brien > > Maybe reference the discussion thread as well? > > Link: https://lore.kernel.org/bpf/CAADnVQJ+OVPnBz8z3vNu8gKXX42jCUqfuvhWAyCQDu8N_yqqwQ@mail.gmail.com/ LGTM, and added above into the commit log while applying. Thanks everyone!