From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 19AADC35DF5 for ; Tue, 25 Feb 2020 12:36:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E715E218AC for ; Tue, 25 Feb 2020 12:36:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729976AbgBYMg5 (ORCPT ); Tue, 25 Feb 2020 07:36:57 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:52876 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725851AbgBYMg4 (ORCPT ); Tue, 25 Feb 2020 07:36:56 -0500 Received: from p5de0bf0b.dip0.t-ipconnect.de ([93.224.191.11] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1j6ZRg-0002g5-4R; Tue, 25 Feb 2020 13:36:16 +0100 Received: by nanos.tec.linutronix.de (Postfix, from userid 1000) id 135EB101226; Tue, 25 Feb 2020 13:36:15 +0100 (CET) From: Thomas Gleixner To: Alexei Starovoitov Cc: LKML , David Miller , bpf@vger.kernel.org, netdev@vger.kernel.org, Alexei Starovoitov , Daniel Borkmann , Sebastian Sewior , Peter Zijlstra , Clark Williams , Steven Rostedt , Juri Lelli , Ingo Molnar , Mathieu Desnoyers , Vinicius Costa Gomes , Jakub Kicinski Subject: Re: [patch V3 06/22] bpf/trace: Remove redundant preempt_disable from trace_call_bpf() In-Reply-To: <20200225003351.vvsrgyta47ciqhvo@ast-mbp> References: <20200224140131.461979697@linutronix.de> <20200224145643.059995527@linutronix.de> <20200224194017.rtwjcgjxnmltisfe@ast-mbp> <875zfvk983.fsf@nanos.tec.linutronix.de> <20200225003351.vvsrgyta47ciqhvo@ast-mbp> Date: Tue, 25 Feb 2020 13:36:15 +0100 Message-ID: <8736aykfnk.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Alexei Starovoitov writes: > On Mon, Feb 24, 2020 at 09:42:52PM +0100, Thomas Gleixner wrote: >> > But looking at your patch cant_sleep() seems unnecessary strong. >> > Should it be cant_migrate() instead? >> >> Yes, if we go with the migrate_disable(). OTOH, having a >> preempt_disable() in that uprobe callsite should work as well, then we >> can keep the cant_sleep() check which covers all other callsites >> properly. No strong opinion though. > > ok. I went with preempt_disable() for uprobes. It's simpler. > And pushed the whole set to bpf-next. > In few days we'll send it to Dave for net-next and on the way > to Linus's next release. imo it's a big milestone. > Thank you for the hard work to make it happen. Thank you for guidance and review! tglx