Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1776511ybk; Thu, 21 May 2020 15:12:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJtukyPFmsjH7dN8oMDNY/H5BdDAlJt8Nj0AaklJNlXbhtP8+EliQQf/9rt6BHHlH49dKr X-Received: by 2002:a17:906:1ed3:: with SMTP id m19mr5808131ejj.429.1590099152009; Thu, 21 May 2020 15:12:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590099152; cv=none; d=google.com; s=arc-20160816; b=ADc+Z5/nG5O464NpqQqXtmWA31idY0mE/Qe2qpsu4zboz/W3TmgAxrAE4XOPfPrSFd /kigAjXsgwJQtDQhTd7tmb9CDAJv3qLC6Ze4BZidMfq29ZEeJ9uGegyKsycbjqIGiRYB dB3wFmnTXmvrGNr48sM4RObktR3Uq5BOy2bCHmvyW9GHLxE7JE2zrMs84+MzJpwr01ZP YSMPFHoYRykvNbAw0rTVltWF6WYwfM4gDIYsX7MvjnN7XKq4ViGa47Prla31vcY+SYDY kpPrYyeYQTCPIceNTAvPGoNJNavSS/LqqSSZ4k2HYOJ/gEpRU+XljowN05UZRHCYZREi Zj6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=fm4JD807X5RrjTwsFUI7w3BEzpMypViAerLd/aB5r74=; b=iKG/hStFdGWg3Ollx5VnLdHS4qfxgw6y+vFyB3yvPfKbNsSgAHHQImgH5ck9xjM5c3 0nCV/2Pwi5TTY1bN6Q+6fHdZC8QvJleaRn+rEEIPZHDeUvQuf9W/fBbWC5xU99JoOTPc slB94GHOKPn5Kk+eGcF/5JFm9kGZwJ2zoAluMcBth/Jihwe6zhuMDcP0+HkuINXLAh9q vzpIcVgQoQsNp1x62yD7i1rreUCKYg4Ik5xRNIUfE+kbXsvgytpVLM+/1GnekHi0j5G6 /JJur8t3SfgyJWoh6VTcSm5LXA5yhlNUQAFhxsrshgR9wKMvIqPfNfNtgw88isoSndjR H2/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=J8AydxJv; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n20si2907608eje.640.2020.05.21.15.12.07; Thu, 21 May 2020 15:12:31 -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=@gmail.com header.s=20161025 header.b=J8AydxJv; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730639AbgEUWKq (ORCPT + 99 others); Thu, 21 May 2020 18:10:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728701AbgEUWKp (ORCPT ); Thu, 21 May 2020 18:10:45 -0400 Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22966C061A0E; Thu, 21 May 2020 15:10:45 -0700 (PDT) Received: by mail-qk1-x744.google.com with SMTP id w3so3380544qkb.6; Thu, 21 May 2020 15:10:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fm4JD807X5RrjTwsFUI7w3BEzpMypViAerLd/aB5r74=; b=J8AydxJvTfOLj4SnXaGjYeBAkg2KcbONigWAqFhy28XWe0yoJSm2mqXTvJxPUdz4vn 8csb1VJ846w+CN438dl2Kd9l3C73W6h4oKEYXoALOVTin7KbZ/YDlKFLF0AAA4nbJqFp LB1X3Hn5mhIhPavMozO/KMXf6gthpTGbRdfqH9PzmVymTuezcrONofpWVb61Js8EVDpD 4pbUlvLX2ye6Sf9Rnhp+0IxPOYwwYikWR57bi9J2cXHzgLs31qHiq+XRCvC7s0Ay6mem 07lgQH3Sz3f5gduyy8vQZYJru94h9wd40ax2jSnBP3+ZJ7hlV7fwe7o5DnnsyqeeIJkb nEMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fm4JD807X5RrjTwsFUI7w3BEzpMypViAerLd/aB5r74=; b=trLDoQZA3ADhbuMd/2smbQqDKd6ueP+2G3POiGSfGX2JdjCZfSuatsz9tV2Dw9B+Bk b5p1YZannR2PD3UYNYgoyVEtQqCv+jEK8EPEY5ZRbru4Rbcasb158P1l4x5BulXjwP99 hjreG0e8S8WwJVHukC5Rlp1t+qA2jHUrVhOIehvC9D/dcmOGOldKCW6AJGP2Y7C00gyy fNf97w2se4zGwSXgDJyr46+9emYWA5X1TruYKl0mypf322cbb82SGba1jnbH2IUc3pGz UwLQBMqBmDXEP6q+g+EfQQXG9LezKLhakrGALpOJ/6GTVa9voJ0wlJh2exyyTYTR4ZDb +t4A== X-Gm-Message-State: AOAM533DeMymvj67KXQkeH7FUGUoQFiXRJ+YZy717iqOTIR0UnsbDCfl Qj5bqCaoKvpOaxXxoEMv0xhGy90AYwYX+14yfic= X-Received: by 2002:a05:620a:14a1:: with SMTP id x1mr11755356qkj.92.1590099044250; Thu, 21 May 2020 15:10:44 -0700 (PDT) MIME-Version: 1.0 References: <20200521152301.2587579-1-hch@lst.de> <20200521152301.2587579-12-hch@lst.de> In-Reply-To: <20200521152301.2587579-12-hch@lst.de> From: Andrii Nakryiko Date: Thu, 21 May 2020 15:10:33 -0700 Message-ID: Subject: Re: [PATCH 11/23] bpf: factor out a bpf_trace_copy_string helper To: Christoph Hellwig Cc: x86@kernel.org, Alexei Starovoitov , Daniel Borkmann , Masami Hiramatsu , Linus Torvalds , Andrew Morton , linux-parisc@vger.kernel.org, linux-um@lists.infradead.org, Networking , bpf , linux-mm@kvack.org, open list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 21, 2020 at 8:25 AM Christoph Hellwig wrote: > > Split out a helper to do the fault free access to the string pointer > to get it out of a crazy indentation level. > > Signed-off-by: Christoph Hellwig > --- LGTM. Acked-by: Andrii Nakryiko > kernel/trace/bpf_trace.c | 42 +++++++++++++++++++++++----------------- > 1 file changed, 24 insertions(+), 18 deletions(-) > [...]