Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2674430pxb; Sun, 24 Jan 2021 16:21:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJxWaPSlIlzBnUnJYFywZokQI/8FpSn28LzKeswx5fLN1mjVj6BlihPyxG07AlWyfuD3VdHN X-Received: by 2002:a17:906:4955:: with SMTP id f21mr1027526ejt.384.1611534106082; Sun, 24 Jan 2021 16:21:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611534106; cv=none; d=google.com; s=arc-20160816; b=Y4uZL1frPgHkQAsj38rger4fijvXSWa2oT0ispA3OM8Af66vWijvE8POimIEDzgAgV euHpJ/GoHyKYz+Uk0lR8T+tyj34SsnuO0vrQLzXYvFmD5I9VL2dGrnyFl3NmJ3mGS95z hZT87XH2SVeT2dgvSQgFa9XOaSaQDXj/PrPA16NNI7eR/1fAX81quzmciw9hvpDA7+ZG /9xOpXFXp5NHUfCeU7aL9PJ+vbBNsRn5THyphE96EaAAxEcjfq8591QxvAUbL80FPU1s RUsV0Hhf0qYACGOrA58XBmbdo3r3gU0dTmr55+QX2fcCK8jk/Uf9oHYzBx+0yzKoclNY HmGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=Drl5v7UUOxESkSUHmhdpG+UHpuRxOXbv+nnaN+tTmLw=; b=movcRC0w8hA1ueipUzEirmBti7Ud3pzlSngrKQ3/rhy21kA8SrtIIpe8QiOo6r6hHP /EaDAr8zbfSkgaUf/FaXF2TTM14Uojod1tNJOvVmxG0Bvs5q5N1qIFQCFTV23aCJ/WZy 0w1t+OeN9/dKvQ0CqOUIUyJTvKJnB07sA0rZMl6d7jO/UrrEQ+tTNdU0RDQnExLGlP1F gD9Ux8UE+kiEnLTgPCCQ/4kVjDxqASkuSYygYJdxXWsYArzqZfVLea6C8MM+iZi8y5zM tXalynKsU9K4BQlFWla/qQGmAV+BZgRy59CvNDLOkc23ohFWDyEJj/VfYuddSW9/aX/P jLaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=grYIoux2; 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 j12si5613550ejs.13.2021.01.24.16.21.22; Sun, 24 Jan 2021 16:21:46 -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=@canb.auug.org.au header.s=201702 header.b=grYIoux2; 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 S1726552AbhAYAUZ (ORCPT + 99 others); Sun, 24 Jan 2021 19:20:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726149AbhAYARR (ORCPT ); Sun, 24 Jan 2021 19:17:17 -0500 Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 506ECC061574 for ; Sun, 24 Jan 2021 16:16:23 -0800 (PST) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4DP9Kj34RLz9sS8; Mon, 25 Jan 2021 11:12:24 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1611533546; bh=44tq4/OfMcgWECL37VZAQvGTgZNPvpAZkSSqPeepzqU=; h=Date:From:To:Cc:Subject:From; b=grYIoux24BKw04Evb9w4AKMmyBnYLqxLLpRrSkiydfs52Qd1f60w5JFa+DhKNZbxe m3bZjcAtzm3aPCz4qQoz3uf3J1ddXtoOfWsqwFODaEa0obhEn58Wk8sFhZMZ6trtHA XbgwsGNM8zlNVxYVi3ULc75MFjWQ4Bd2Uz+nnzH+Hs80+WBtzieH/EQcvv2REl2XGq ei9lgEAlLfCm3MtkvBq/wEKCzLS83NxxHSnw1xFzA8L2Tot/O8CVCk7/9vvvGXrYgf UHjZ5uaPXaiItLrnCwoixw4P32JlTaNUVGgenMQVnn/KjfpI5/tdxY4Kt4xAQut5/h nwCTJJ+X94ciA== Date: Mon, 25 Jan 2021 11:12:23 +1100 From: Stephen Rothwell To: Daniel Borkmann , Alexei Starovoitov , David Miller , Networking Cc: Arjun Roy , Jakub Kicinski , Linux Kernel Mailing List , Linux Next Mailing List , Stanislav Fomichev Subject: linux-next: manual merge of the bpf-next tree with the net-next tree Message-ID: <20210125111223.2540294c@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/9JTGJ/xWlo3l.+DokjWso99"; protocol="application/pgp-signature"; micalg=pgp-sha256 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/9JTGJ/xWlo3l.+DokjWso99 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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. --=20 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 =3D tcp_zerocopy_receive(sk, &zc); + err =3D tcp_zerocopy_receive(sk, &zc, &tss); + err =3D BPF_CGROUP_RUN_PROG_GETSOCKOPT_KERN(sk, level, optname, + &zc, &len, err); release_sock(sk); - if (len >=3D offsetofend(struct tcp_zerocopy_receive, err)) - goto zerocopy_rcv_sk_err; + if (len >=3D 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): --Sig_/9JTGJ/xWlo3l.+DokjWso99 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmAODOcACgkQAVBC80lX 0Gx1IAf8DfeFGwju4aCfqdSEJEz4kyxubepTOBzSK/aqu+WE4/o+iEVO0n16n1YG vM4lgVwCONu/O9XB9S1EKBbac7/q/ZujX/fdOOOVboYM3gSnEHTXeUkbdquiuVEc kDWuSFLlGuQl5Ya2+t8zt62h0irGJMr7U/hsFsbFwgTr9ajZq9ditFxHPAvx269y Ooo98XiQ49+u21tyGFMGxOlrUZvj0P0AAnRJAC14XOEUirUpTphWsmVngC+vNElh lqtvttfJTYB0ZCfjbwPs5hKymnwvR7luPwjYOJcoJeRYs70TqoB29350q0VWXrMD MOdLtECEpczC6ZNMhR0x3k/kXsRetA== =UY0M -----END PGP SIGNATURE----- --Sig_/9JTGJ/xWlo3l.+DokjWso99--