Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1236603pxb; Fri, 13 Nov 2020 07:35:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJyciEPm7GnSf+/3ismBa2La1X1olGTk8DVXcCEfG42Y+QOUBaQvHk/ElkF3ZpvkHo1DZHR9 X-Received: by 2002:a17:906:af47:: with SMTP id ly7mr2577401ejb.532.1605281749440; Fri, 13 Nov 2020 07:35:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605281749; cv=none; d=google.com; s=arc-20160816; b=IlEbxPUA5vlEyhApJuGhFl2zByPWf8eKMUH3MQrHSuGfEvTkn+GZouGwc+7+176lJl hv0h7Fvs4DLzbj8wUay+PeZRNcsbif/P9478sPRXIuYPmrsk5Ir6kQs/HsCJRl1LvXPr DUyVoUOkMesAYUKQChROwGmo1JH92c0M+sQHj45K6UDraCVYxvcmdf/gN/tjhnLRrGLB JRg2HAcEjl9pZ3RF8ohxkHcTrNPBRntAMOEgrysgD2zQj/aFe0YcwCp/XgHk2T2LV27p vk3CEVT0U5bSpGcumqICLnyIgEVOk7g1qNiYQTsVoRpqvFPHuFdPMeTuElX8ftgsvs/h edPw== 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=7arVd7FgBpFURnrmYbSewF6NnZlG07UWb85bBS0Xlwo=; b=ukPkK//NOcIYSVjVPWYWjMXDvFm3yH/ar6mvZXnws0Sb3VEEahLXUA+pGv89O3OgjU NvZs100oV6wpa2WOv69EV2fXQwCkufUC5A4/faOcxB8iE1HlxQtEPjIxMfzDmiVUjfnL 54ZVaaqszpFAI8UXOKEabR38WTvIdzQotuu2+H3CIPiY4P7b1HCzgN1huA8VMiQW09a/ hLxg4bOGeGgHWHGuYOyicrWKbrmSrRkf+QkVqt5zv80rKX4bwdKr9FffOPlXcFDnjFp1 Qp9h9za7NLY96h7bgjoXlB3FzxyyXU0MyJPC9GO4Kb5SoEliL5yo+vcM9Ghusj8RmTJ+ M1dg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v14si6249514edb.336.2020.11.13.07.35.25; Fri, 13 Nov 2020 07:35:49 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726692AbgKMPdn (ORCPT + 99 others); Fri, 13 Nov 2020 10:33:43 -0500 Received: from www62.your-server.de ([213.133.104.62]:56100 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726324AbgKMPdm (ORCPT ); Fri, 13 Nov 2020 10:33:42 -0500 Received: from sslproxy03.your-server.de ([88.198.220.132]) by www62.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1kdb52-0000Z9-KS; Fri, 13 Nov 2020 16:33:40 +0100 Received: from [85.7.101.30] (helo=pc-9.home) by sslproxy03.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kdb52-000XAi-CI; Fri, 13 Nov 2020 16:33:40 +0100 Subject: Re: [PATCH bpf-next 2/2] bpf: Expose bpf_d_path helper to sleepable LSM hooks To: Yonghong Song , KP Singh , linux-kernel@vger.kernel.org, bpf@vger.kernel.org Cc: Alexei Starovoitov , Martin KaFai Lau , Song Liu , Jann Horn , Hao Luo , Florent Revest , Brendan Jackman References: <20201112171907.373433-1-kpsingh@chromium.org> <20201112171907.373433-2-kpsingh@chromium.org> <63870297-fffe-f01e-9747-219b63c5d7f4@fb.com> From: Daniel Borkmann Message-ID: <8ca075b7-1fda-bd63-e2c2-68618d30b414@iogearbox.net> Date: Fri, 13 Nov 2020 16:33:39 +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: <63870297-fffe-f01e-9747-219b63c5d7f4@fb.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.102.4/25987/Fri Nov 13 14:19:33 2020) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/13/20 4:18 AM, Yonghong Song wrote: > > > On 11/12/20 9:19 AM, KP Singh wrote: >> From: KP Singh >> >> Sleepable hooks are never called from an NMI/interrupt context, so it is >> safe to use the bpf_d_path helper in LSM programs attaching to these >> hooks. >> >> The helper is not restricted to sleepable programs and merely uses the >> list of sleeable hooks as the initial subset of LSM hooks where it can > > sleeable => sleepable > > probably not need to resend if no other major changes. The maintainer > can just fix it up before merging. Did while rebasing & applying, thanks everyone! >> be used. >> >> Signed-off-by: KP Singh > > Acked-by: Yonghong Song