Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp15575854rwd; Sun, 25 Jun 2023 20:54:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7mb1b0te/HKisukwv3AuNUfbNRTvciXjJ1EX9y4tkzf5Qaxj9ixud21pTRKFOCzXj58yC2 X-Received: by 2002:a17:907:6295:b0:979:65f0:cd12 with SMTP id nd21-20020a170907629500b0097965f0cd12mr27392665ejc.15.1687751678888; Sun, 25 Jun 2023 20:54:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687751678; cv=none; d=google.com; s=arc-20160816; b=NnK3mVEpgCJGvgCLNgJyqloujxebJ8jcWilu8gaxDqjXleuNuhDo6vsDNddNU6eNHs seYqmSyUgo4qVS8B9VvHfiEoFSXwki9E7WhiuF9CCsSh/ahDQuaHNF7oGlDP2Z4b45yW DS8+WtpRz2/4Ph5cJvJhg7HroG7UYyrEyMsx0JBORIKGtZUXdLLBo8dcIpOOndgdQ86P 1rWjtflhaH6KfHwFLKePqYRRPlJM27ksr8x3dCV7+vVrCm7vdlJCDsLA+uy7jmoKxaE/ BDLkNSRenw3WvOwe/UjHLcCJcfMPlpnYQvBBDE8rJO72IvsCSuk6vagBiCiugnrN7q+D YdSw== 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=nW+gk4tqRBDSjlpCVThkyz/Is6m0YP4thr/RaTzC5Tw=; fh=2gUfqjAJtH/1HHPdlNREDMmxw7i6dW17ouw2+b8jcQU=; b=bcf3McWs/ljmboCMnX09NdL9ScmO09mewdVMmHZXS69tXWMERc2KTrQuHmL5OAPMEo Dhm8DcO03pxcrDyjlBw7Ptrnx9TyRzVOEbVQohFj3DnOysTxUABP2mda3PK15/G+Ycay Yr0UWokMjLe7yz81jNhNMASNwBZjxUHMF8KSdws3zrPNVcOs803ap/VPz0UWYYWsvnTh puqBoViNbQp2tGkVUpFtSxTJ0plnOI8OASQ5oDFKCmC68RF5oiA6A4h6cvvFl8flRQPk tdBZCRfC9J8gYW842ip45h4D6um/V3T7G4iTZ42xdU/HXAYvq4G1PekOnuqoMfcNoN7X Caqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=iPtnMJv9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k13-20020a17090646cd00b009878e5b1217si2506206ejs.912.2023.06.25.20.54.14; Sun, 25 Jun 2023 20:54:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=iPtnMJv9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230223AbjFZDEQ (ORCPT + 99 others); Sun, 25 Jun 2023 23:04:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229616AbjFZDEN (ORCPT ); Sun, 25 Jun 2023 23:04:13 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 502A51A7; Sun, 25 Jun 2023 20:04:12 -0700 (PDT) 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 4QqCNp1hgvz4wZv; Mon, 26 Jun 2023 13:04:10 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1687748650; bh=nW+gk4tqRBDSjlpCVThkyz/Is6m0YP4thr/RaTzC5Tw=; h=Date:From:To:Cc:Subject:From; b=iPtnMJv9ZU5Lef7TGbo///iWdCz+amklWeLzzJmeSVNaNd6qrU827kqNnXDW1aTCp /wsQMOOotg2JJTCK+hKBeaR859X7uctmty522NDxUdVeO8Qdxlo2dszicaFOAoTvQr /Xyp9B3l+QgZgfKs7etT6qXNoex4/54Uy3waOm3cAJ0YRhOLrTHgMl7Jam3cefJ7oW iDvlIP9dDQEdGipiW7b3d0W6z7yEA3hd7t0wr64dOCLxNGeog5ABMkrm5MPTor2M76 ejG1gbBuNSdpSEUVJSSXtt5bUi1RWzFuzVYwBGInBplv4vnfWKJfKe86V85ave1tZe lzUpBoobeAKNg== Date: Mon, 26 Jun 2023 13:04:09 +1000 From: Stephen Rothwell To: Jens Axboe Cc: Linux Kernel Mailing List , Linux Next Mailing List Subject: linux-next: manual merge of the block tree with Linus' tree Message-ID: <20230626130409.1ae2b54e@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/bOHHKOyCXE1/DXONO1ubTfv"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/bOHHKOyCXE1/DXONO1ubTfv Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, Today's linux-next merge of the block tree got a conflict in: io_uring/net.c between commit: 78d0d2063bab ("io_uring/net: disable partial retries for recvmsg with cms= g") from Linus' tree and commit: 88fc8b8463b0 ("io_uring/net: initalize msghdr->msg_inq to known value") from the block 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 io_uring/net.c index 4b8e84768d2a,369167e45fa8..000000000000 --- a/io_uring/net.c +++ b/io_uring/net.c @@@ -790,19 -794,17 +803,20 @@@ retry_multishot flags =3D sr->msg_flags; if (force_nonblock) flags |=3D MSG_DONTWAIT; - if (flags & MSG_WAITALL) - min_ret =3D iov_iter_count(&kmsg->msg.msg_iter); =20 kmsg->msg.msg_get_inq =3D 1; + kmsg->msg.msg_inq =3D -1U; - if (req->flags & REQ_F_APOLL_MULTISHOT) + if (req->flags & REQ_F_APOLL_MULTISHOT) { ret =3D io_recvmsg_multishot(sock, sr, kmsg, flags, &mshot_finished); - else + } else { + /* disable partial retry for recvmsg with cmsg attached */ + if (flags & MSG_WAITALL && !kmsg->msg.msg_controllen) + min_ret =3D iov_iter_count(&kmsg->msg.msg_iter); + ret =3D __sys_recvmsg_sock(sock, &kmsg->msg, sr->umsg, kmsg->uaddr, flags); + } =20 if (ret < min_ret) { if (ret =3D=3D -EAGAIN && force_nonblock) { --Sig_/bOHHKOyCXE1/DXONO1ubTfv Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmSZACkACgkQAVBC80lX 0Gxc0wgAixPa1rtWmoFbpvyRB0jZhW1fmPsfJZiVVoVwFQO9Ws9vNqOZdxBJg3vD GqQHXaXx5O5+SF7QR8uCnPeeFSLXcFidtz1baGu4XOo7rc8BT39Ghjz4dDi4BXTJ DqSPKhAU3R2fsvbeWnScDn+nMG+DwWuQXX2pMavVuawKyK8/ttsYKX3VxB2swJxz PmxnoFGwSjZWTLEWejRjRiWJqe2WTiwCDbf7amZwiXUuF7mzAJ8iJan0ZBbzNMwL gSP45bp0UBWbxlh/Et3MW7K/GuTaQyTdfZsZCyyG7SMT/4ZCfdC3TX73xR7EIWti aZ/YwNfipXFFziR8pyUhJLQw/SOMeA== =W4lm -----END PGP SIGNATURE----- --Sig_/bOHHKOyCXE1/DXONO1ubTfv--