Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1762629ybn; Thu, 26 Sep 2019 01:42:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqzBx70dkwqp2Spz6Pp7VzopdA7x+jWOOa5KTzc38MFnh1bt6sv+/ZcHTS/ACY+gZPgBuEOc X-Received: by 2002:a17:906:1e57:: with SMTP id i23mr2042394ejj.204.1569487320311; Thu, 26 Sep 2019 01:42:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569487320; cv=none; d=google.com; s=arc-20160816; b=KBACNcULANboDZBE4b69i7GjHNFy7xXyUb4fhnmL/uGDWFljhYBgnzla1SSPfKi9Aq PJbw+kkpYiTv/ZsD5qxIyDGesjehlZtMIyziunPnxDNsDk1jIIgr9E4J4PfZsQ39Asqk 4oTK7yzkyXoYWGHGRK7t+Z1U9XdQQZcM+8fErirBrIS3VeY3/QV7kxlHiHXIImpYei9/ 16/QiZUGNqSRTNLVieaU64+9V4LXVDODq9b26WvLf5CT1t+jCXSxUWTA5SD4jEbuDWgI zXFcVhoSRAanuOjGNzOwNDOjbOiekD/aOkWdJSngr5jBuf44KoIMod/nyFJ/9umxkzsv KmKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=uuYvKDdlCCY0lggc9sBBXzR54+aLnXoUJm8jnQudcgU=; b=OLdSYqKZsvQO9QjDv6MqSzh3g9pNoltAlxFEtS8Iot6FjHpKUdjQ8UyHRGkSsZL+Bl eYcmDVXWltlJSM4660lfL16iiQRfQODYqthYU8tdj07qPj6ByOfOcMzOlmuh9PJJPHZT zuB8XmG/+ub9jN/Qkr6L6W2tRFRZceK5JiWXH/JCtlAihnkGZF+CzJ1cBzSCmLojMWGM 36D3Ou4C9irLJug3zFr8TtSdJ5YctEsiimvekRHA+8smTxBqcFaD1MLdPTuXaWs3t7+S ihvCJTuzW16YBXnxnHzFqe7hnarJtsxD7+jxMzPknuCLGCEicDrHnjL8fRxOeZhSJBEs yCug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=npKdJkon; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f29si669337ejj.110.2019.09.26.01.41.36; Thu, 26 Sep 2019 01:42:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=npKdJkon; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2441913AbfIXTRH (ORCPT + 99 others); Tue, 24 Sep 2019 15:17:07 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:36543 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2441899AbfIXTRH (ORCPT ); Tue, 24 Sep 2019 15:17:07 -0400 Received: by mail-pf1-f195.google.com with SMTP id y22so1937993pfr.3; Tue, 24 Sep 2019 12:17:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=uuYvKDdlCCY0lggc9sBBXzR54+aLnXoUJm8jnQudcgU=; b=npKdJkon5qmHu+jpnZddVbrF8Pa8QGihVlW++CGVzdxayedYxp3dzYNLRYB11cF5L7 /MqRAlTN0vIKtdNhuUAac/aZw7TYMtO4xdRolhbRrYZXJ5oqKPvEQMWmaFe2fYL63jDb c02/h8rRWN1g/7pbFc/16rPH4fHQBUYq+4Kvo9b9i5GVflEQc7onbvKIX7Kxalv9eonn 3Nj7GC0X3N/00h3cxmeFOVp4Yh3S2K/7wPqFbuNQF+/GlEaUXERJxkscInYJqtnUox0H SRYQ66qFJuQcnGMHFW9hDIf2YBe/UZQT/8kk/BGUhlzdWPunls5Aamub6o9uGtrolJeM hd6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=uuYvKDdlCCY0lggc9sBBXzR54+aLnXoUJm8jnQudcgU=; b=kp0AsZo8S+HRjPs5MErtqtYPmc40q6X2WS647ph8P7gtqsQitVvYPAJTAL1cH9dcEE cKQoOH1QzKY5atIqjb9VsEg+xRIeGSiv4hBe3r8a41JJlNCV0uQpK6FzxuTmFDunvEzr mm601xqK5CzG/gPtVIzllWKlqiKkhYwXHtjnT7yibjxzKZpJcIuU/oQY4EcB8eHKqjai gZgGrtUUNQgAFoqlap0ICveumturTkj0gAmIrG/W5cQF3x/7HgnFBlMb33bssCxz2Jyc qk6BMOU4wGVe7o5ThTs2nzq7qXeBh3yZerOfPnty28KsZO7PQ1laY9RvUYWsBMOzwRsb k1Kg== X-Gm-Message-State: APjAAAUQBjlDigM9cxhsN19sr0DKW5BKdjwkCDGf/15v4Fmcvflvy0iy GIQGjef4vxmSiUjdemNw3gALlfIl X-Received: by 2002:a17:90b:946:: with SMTP id dw6mr1772489pjb.48.1569352626062; Tue, 24 Sep 2019 12:17:06 -0700 (PDT) Received: from ?IPv6:2620:15c:2c1:200:55c7:81e6:c7d8:94b? ([2620:15c:2c1:200:55c7:81e6:c7d8:94b]) by smtp.gmail.com with ESMTPSA id l62sm5360360pfl.167.2019.09.24.12.17.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Sep 2019 12:17:05 -0700 (PDT) Subject: Re: [PATCH] kcm: use BPF_PROG_RUN To: Daniel Borkmann Cc: Alexei Starovoitov , Yonghong Song , Sami Tolvanen , "David S. Miller" , Tom Herbert , "netdev@vger.kernel.org" , "bpf@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <20190905211528.97828-1-samitolvanen@google.com> <0f77cc31-4df5-a74f-5b64-a1e3fc439c6d@fb.com> <048e82f4-5b31-f9f4-5bf7-82dfbf7ec8f3@gmail.com> <20190924185908.GC5889@pc-63.home> From: Eric Dumazet Message-ID: <589ccc1c-12b9-4700-f6d9-b2efd3f9a347@gmail.com> Date: Tue, 24 Sep 2019 12:17:04 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190924185908.GC5889@pc-63.home> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/24/19 11:59 AM, Daniel Borkmann wrote: > On Mon, Sep 23, 2019 at 02:31:04PM -0700, Eric Dumazet wrote: >> On 9/6/19 10:06 AM, Alexei Starovoitov wrote: >>> On Fri, Sep 6, 2019 at 3:03 AM Yonghong Song wrote: >>>> On 9/5/19 2:15 PM, Sami Tolvanen wrote: >>>>> Instead of invoking struct bpf_prog::bpf_func directly, use the >>>>> BPF_PROG_RUN macro. >>>>> >>>>> Signed-off-by: Sami Tolvanen >>>> >>>> Acked-by: Yonghong Song >>> >>> Applied. Thanks >> >> Then we probably need this as well, what do you think ? > > Yep, it's broken. 6cab5e90ab2b ("bpf: run bpf programs with preemption > disabled") probably forgot about it since it wasn't using BPF_PROG_RUN() > in the first place. If you get a chance, please send a proper patch, > thanks! Sure, I will send this today.