Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3151528pxb; Mon, 25 Jan 2021 08:13:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzUtS4xIdrGAryQNaSPnN2A4PU4ZDhJc0tQrynQ12lDAfGjNfB4CoruLon8Vvd3/OLLABr6 X-Received: by 2002:a17:906:6b02:: with SMTP id q2mr890589ejr.122.1611591224669; Mon, 25 Jan 2021 08:13:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611591224; cv=none; d=google.com; s=arc-20160816; b=LUy3n0s9lOiKc1fXYrT2dFBU87xAQZIn3wOs4o1Qc1dKozKidcKD2v+NSm+hBb9O8m 9OvxrXt/WaDpjSZIL6ff2X//nFheW63GgTJGdKewp/evHR56Asd8hTbm4OsAQqKZwwEr l2+7ELZvdtelyTt+wWdYA/RJ8aiQJRhfIEBGRrs0hMZnBYYcm92IflgPNLOHU5wpWIeo ItdHPeu7lxzNPxUKOfgmy0mMppGylh42iMS1CbDCNQYSpnm1WezPVThpyX6evx9qsEIH 5vEzMYhsLNrG0xBXAHH0QKGZQTKYudgHq///T4yGvmerVaA+yBbQaMiCZ4DvhfDoLpo3 qUhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Q8bxUP4SZLC7pRMbVLxdU+OOQgW0ishf2aucQ47lV0g=; b=pFUer5f0YSfs6Mfjc6kL0eRr4MqeIjdLveo3f1eWoXDlZePCjmBixN41Z28k2GXUYi skRDDepI4miY2MPFH6hPW6IaWGz9CxVmlajkwe2z46upf5nkvs1W5WgQJedXW9ctz4Xc irQAHxolvW53+MP95jJxwOkYUbZxFXOng683/LqlswssMowkN4wXMHRXZUCOoiY9l9eK Q0oqj9HDROl9pvTxCDUTLv1TH514cVIKm93WNKda0xY78QQF/o7OCEm1z2Pbg7pC6fYO belHSxxZGxNS55EOXRUzEh3BTPHKByupgiSFNmSaA3ktsaRX0U9kKojFTrEpIiP/VrE6 OvzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=CSL31hCU; 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 q22si6137659ejy.339.2021.01.25.08.13.20; Mon, 25 Jan 2021 08:13:44 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=CSL31hCU; 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 S1729870AbhAYQK7 (ORCPT + 99 others); Mon, 25 Jan 2021 11:10:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730606AbhAYQKj (ORCPT ); Mon, 25 Jan 2021 11:10:39 -0500 Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D67A8C0613D6 for ; Mon, 25 Jan 2021 08:09:51 -0800 (PST) Received: by mail-qt1-x831.google.com with SMTP id t14so6399503qto.8 for ; Mon, 25 Jan 2021 08:09:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Q8bxUP4SZLC7pRMbVLxdU+OOQgW0ishf2aucQ47lV0g=; b=CSL31hCUQXPjH3ulEF0/gUF6JbaFvZ8v9/Q4qwzK142bF6wJZ841wdymvwRUMlVMSA 9YV4h8k7ArrTGRwMH/650FwwfI+F0juz3IgcwA0LooUGNhJYYNpSHMaRwt5OZyDZWn7L xurgpX0TFeple36KrsmxypbJ3VCHrjEoaMXEmRhQsuZcuJwZ2O9SZsobmt1AyIl4Kc4I uD7AwGNsriyD52r7sn72OTLXLdjcOsdj2I/kou6TTLiwCmimLn00usup7f7x6s08rx8G S1esD7sHjj1dCQAhjTuzGlvzwKmqQ+JQZ/hwiGp0dBcyvaFwDH0Yh5RmXFIkU0W3B1za LQJQ== 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=Q8bxUP4SZLC7pRMbVLxdU+OOQgW0ishf2aucQ47lV0g=; b=ALxuUH0YFuknFY1OBbh5ySBCjk/qdFKu75vKPFA2n9O4hTT6Fs3UoKt3OI6BERZJbA SUajiBwkG1zhBe0VvY0W15YJhRk4IJZZLdkz9Bx5ItZI67asvtlN541HOrbe/sRsGlTJ w6u0sJh110Q/c60VkNWjDhVgsBCqhbN8d1uhWCCL6YcufdQUCb7SeN6hNvl6zzBqA3ys NZQzfrhpeoBU2Vk08QSf1g7wDeFQHw/O0J0nvimD5V7pg4T0NWihWNB8bNrgES434KCH zP4nYo59p7Olnf6pkEjJxvazdRUvD7pZNAxVa26dkPx0YGU0VyvxARokOBMqQs1oZZPM M3mA== X-Gm-Message-State: AOAM530ApRx0NIWB7Xtwn70zoXjaB6d67Q6lC/1qZbPdqLbC8+ucW3v2 HB+N65P44tdIlvCsMrL+Tx8hkkHQA2JEBS6NWOAcCA== X-Received: by 2002:ac8:5bc2:: with SMTP id b2mr1154243qtb.98.1611590990621; Mon, 25 Jan 2021 08:09:50 -0800 (PST) MIME-Version: 1.0 References: <20210125111223.2540294c@canb.auug.org.au> In-Reply-To: <20210125111223.2540294c@canb.auug.org.au> From: Stanislav Fomichev Date: Mon, 25 Jan 2021 08:09:06 -0800 Message-ID: Subject: Re: linux-next: manual merge of the bpf-next tree with the net-next tree To: Stephen Rothwell Cc: Daniel Borkmann , Alexei Starovoitov , David Miller , Networking , Arjun Roy , Jakub Kicinski , Linux Kernel Mailing List , Linux Next Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks, the merge resolution looks good to me! On Sun, Jan 24, 2021 at 4:12 PM Stephen Rothwell wrote: > > Hi all, > > Today's linux-next merge of the bpf-next tree got a conflict in: > > net/ipv4/tcp.c > > between commit: > > 7eeba1706eba ("tcp: Add receive timestamp support for receive zerocopy.") > > from the net-next tree and commit: > > 9cacf81f8161 ("bpf: Remove extra lock_sock for TCP_ZEROCOPY_RECEIVE") > > from the bpf-next tree. > > I fixed it up (see below) and can carry the fix as necessary. This > is now fixed as far as linux-next is concerned, but any non trivial > conflicts should be mentioned to your upstream maintainer when your tree > is submitted for merging. You may also want to consider cooperating > with the maintainer of the conflicting tree to minimise any particularly > complex conflicts. > > -- > Cheers, > Stephen Rothwell > > diff --cc net/ipv4/tcp.c > index e1a17c6b473c,26aa923cf522..000000000000 > --- a/net/ipv4/tcp.c > +++ b/net/ipv4/tcp.c > @@@ -4160,18 -4098,13 +4160,20 @@@ static int do_tcp_getsockopt(struct soc > if (copy_from_user(&zc, optval, len)) > return -EFAULT; > lock_sock(sk); > - err = tcp_zerocopy_receive(sk, &zc); > + err = tcp_zerocopy_receive(sk, &zc, &tss); > + err = BPF_CGROUP_RUN_PROG_GETSOCKOPT_KERN(sk, level, optname, > + &zc, &len, err); > release_sock(sk); > - if (len >= offsetofend(struct tcp_zerocopy_receive, err)) > - goto zerocopy_rcv_sk_err; > + if (len >= offsetofend(struct tcp_zerocopy_receive, msg_flags)) > + goto zerocopy_rcv_cmsg; > switch (len) { > + case offsetofend(struct tcp_zerocopy_receive, msg_flags): > + goto zerocopy_rcv_cmsg; > + case offsetofend(struct tcp_zerocopy_receive, msg_controllen): > + case offsetofend(struct tcp_zerocopy_receive, msg_control): > + case offsetofend(struct tcp_zerocopy_receive, flags): > + case offsetofend(struct tcp_zerocopy_receive, copybuf_len): > + case offsetofend(struct tcp_zerocopy_receive, copybuf_address): > case offsetofend(struct tcp_zerocopy_receive, err): > goto zerocopy_rcv_sk_err; > case offsetofend(struct tcp_zerocopy_receive, inq):