Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4548819pxj; Tue, 22 Jun 2021 02:49:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMLhFv+4ymlhU2KtxslEecQ274q+RGtQCXZEypYsXTdlSa33y7/69Ot96L3GzY9dJzRHrx X-Received: by 2002:a05:6e02:1d96:: with SMTP id h22mr2060211ila.36.1624355365529; Tue, 22 Jun 2021 02:49:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624355365; cv=none; d=google.com; s=arc-20160816; b=lwVo0bY4a0thjb+dSIvwcvJDo/5xkYFt4IruEbcwEi4RgXjNWJngz0MMaR+hr6WRAb Yxm0xBb6t2fo/UOdj0Nf6mgy255BuM2s/M65tLoLDb2Rg32OoVvBUR3Ck4Hj/cLee+Zp DVVhYNolkgf1RwkPgY9TBWLtXOGo3cUqyFmKMC5XMemOLNYUF6glVKVy6PbJrHyMQUz+ 5T04KFI1idaawt38skZz4ITJZvuc09bTL7L5aIZ2BBqKRa5xnC704pp7Z/shXDRH0ixA w559UDFx3u/Dd52AT6AJwJ2F4/PIq7OM88jutA9UBBilMzX5bV+o2EYBVdF/Z+lRRba3 Wvjw== 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:dkim-signature; bh=8RElOEKvFjVDV6P4V4jZfTHZh2xq8goB+o7Uy2R9On8=; b=SIiN717rdYqqouA7n9uMgRDIPRbwqOHPRPnRavaSB/F78Kv1v+MjX/TwBIbaJ6bejQ MxHAOYtjy/eoIPmcrGbS8DPf1QVJ1nhrlVBrx7YkQ0eOhShnQDAZYLvo73e2cruWJILz sdluCUeu/n67L7LO2l3Ml9BehtXt6ek4+0vghgMT4X+tAV8GozdOZkMIPWYYFSVlO4XX /sLGCJw2OVLY2ICIUcrlRod34DHDuRBgnCxPosJrO6YK0MjU9yBt5SQliKwcGdtZ/ES3 lDBL3bZJUz6nIiCeC9Osv+mrooJaVX/nul4+qStUFI/bxABBbFfiDMeYa+gwmAZN2COj v4pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=PNXBWT02; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i13si14731767ils.127.2021.06.22.02.49.13; Tue, 22 Jun 2021 02:49:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=PNXBWT02; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229852AbhFVJuy (ORCPT + 99 others); Tue, 22 Jun 2021 05:50:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229663AbhFVJuw (ORCPT ); Tue, 22 Jun 2021 05:50:52 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6F35C061574 for ; Tue, 22 Jun 2021 02:48:35 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id bu12so290864ejb.0 for ; Tue, 22 Jun 2021 02:48:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.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=8RElOEKvFjVDV6P4V4jZfTHZh2xq8goB+o7Uy2R9On8=; b=PNXBWT02dfS8FqE1Q/wf5z9bqcxP+j2CyosODpK7IQNn+TElZpoF/HJw523KHpCwd5 CQEULM8QGFRDTrKLgG8Z6GEeN+0H0Zxf8S36C9EfX5/iEJELDOehZGGHcNT3zx4YMGCz QtS0t1ba2e5lFd2A/t1uIEAGPE7sHHcX+6uswrkdjutpisbKoYQab1ctWGae/RGCQkfE ympmhOfTUYJ6WMqyzh+TPrFvbRAX7F9ZUxO8MvBBjcxlxEtFK+yKVNR4s9XOyQC4rzrg QwBri5bUUiyJArh9h9PbulPHlADaaK+k/Lio85lN1uJB0IhRePg2IXOjDQzcVBXzLf/6 Jhdg== 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=8RElOEKvFjVDV6P4V4jZfTHZh2xq8goB+o7Uy2R9On8=; b=bHFeGy/zkVtGRUiguHDUqVqek20qXQG7wwXlnris2k05rjiml7O9N16OlWMxqor3Tk NYEyvMJ8QekaUKXQ30zxKWwn9nTT4/Ak6Wz2hhou1UmMbN6kY/u2Of0emRQbByOs+fAf IE3ViXFlktE55dTexPI+42aoGu1QYiYmRxPo9U0ON5fZGgRkSxFsR5716gGj8VnE0WAT A8v/5s0v6Bu9UeOI9JiqFaqVHkUWZH+J8pJS/PiHyqIN9ZNV5OFIRY3KK7Ajlj7yuhoS FXNNW/flgjuE+jsU8GNptmp+pq9/gX3CmQNALGKDkg19b7d1isdT2UvMNo3rk94hXXNQ NtBQ== X-Gm-Message-State: AOAM533/+1hACkzzNYIxwUYaNAnXMvaZWsuWSEqbwC07uFvEAq/2KEWn Z/8YKm8uWw4fTFATyNABfWL71Q== X-Received: by 2002:a17:907:9c9:: with SMTP id bx9mr3035256ejc.144.1624355313123; Tue, 22 Jun 2021 02:48:33 -0700 (PDT) Received: from [192.168.1.204] (83-86-74-64.cable.dynamic.v4.ziggo.nl. [83.86.74.64]) by smtp.gmail.com with ESMTPSA id gx4sm2213955ejc.34.2021.06.22.02.48.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Jun 2021 02:48:32 -0700 (PDT) Subject: Re: [PATCH bpf] Revert "bpf: program: Refuse non-O_RDWR flags in BPF_OBJ_GET" To: =?UTF-8?Q?Maciej_=c5=bbenczykowski?= , =?UTF-8?Q?Maciej_=c5=bbenczykowski?= , Alexei Starovoitov , Daniel Borkmann Cc: Linux Network Development Mailing List , Linux Kernel Mailing List , BPF Mailing List , "David S . Miller" , Andrii Nakryiko , Lorenz Bauer References: <20210618105526.265003-1-zenczykowski@gmail.com> From: Greg Kroah-Hartman Message-ID: Date: Tue, 22 Jun 2021 11:48:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210618105526.265003-1-zenczykowski@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/18/21 12:55 PM, Maciej Żenczykowski wrote: > From: Maciej Żenczykowski > > This reverts commit d37300ed182131f1757895a62e556332857417e5. > > This breaks Android userspace which expects to be able to > fetch programs with just read permissions. > > See: https://cs.android.com/android/platform/superproject/+/master:frameworks/libs/net/common/native/bpf_syscall_wrappers/include/BpfSyscallWrappers.h;drc=7005c764be23d31fa1d69e826b4a2f6689a8c81e;l=124 > > Cc: Alexei Starovoitov > Cc: Andrii Nakryiko > Cc: Daniel Borkmann > Cc: Greg Kroah-Hartman > Cc: Lorenz Bauer > Fixes: d37300ed1821 ("bpf: program: Refuse non-O_RDWR flags in BPF_OBJ_GET") > Signed-off-by: Maciej Żenczykowski > --- Acked-by: Greg Kroah-Hartman