Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp588454imi; Thu, 21 Jul 2022 07:09:54 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sjyPZcniOX9LdFC6NpcOt9b3OEUJOmWJc5pOGo1mYRKHKzcEVu1SdrK28na8MzttLQLK1o X-Received: by 2002:a05:6402:11d3:b0:43a:c43b:7ff9 with SMTP id j19-20020a05640211d300b0043ac43b7ff9mr58546330edw.130.1658412594149; Thu, 21 Jul 2022 07:09:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658412594; cv=none; d=google.com; s=arc-20160816; b=lIbVsITH3reNmNNUBzm0EW6SqCmr894RULWSFusomkM1Bb4FDF0DbOXxu+hNLaw2DU WwJOUtJpZD7G+TcRrF+c4aUiDCBKxzNZ7YZn6jYBYuYbjfj43g/f3yDxXScjYPI+EKzI tp2dJhJOLAJMQRkKK0x2cDYNdXwqrKBF0fGhSrQI63vK4F49uQzvCFasPDG8yWJhiiwu 0DNb4WEgX6RafYFlK3khMzNFFdy/tgd80foypL2hpHAEb/CGVxXyjo9ZkU0eK0VAcGPl e4uA2Ew6jTTqD9MpE/OJx3k+m75vKBx8WAZ6Q88HhZg5gvnqpcvYLZ3hgonniFKw5NqV wA0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=nRZnykbVwZnlaUr/ICrFyboTi3k/h/VqcdSUjbeVMfo=; b=feurBvM570kgJ5i0fu2p2a34naA31q1VZ66KPoC/g9JFrsIYrbVIuxg6RkayYNe9Bd vx/d3q8Q9+XVSTwGZvFxfIGuwKye8WFHLYHB2UssUioD48cFJhVbHjYeMja1oaLGZGjA fUr8WLHGG1DC7geVKHkwiUmEAhWMj1VlDXCqE83XmeC2+OQZY5UvVpS3K7XYqcnx/BCj nitKTItn8D4tu3SLTLby+CvtmT8zeMOqi0GH+u2EOMuD666mB88FpAAE2RGE6+spQvuY qcBHsrQlMCCQkkddMJBEB/HKZJ5Bx0Fqjwnru06FDBsVaUEYHjwLd3hwfZGUSPt3LqS1 HNYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gnuweeb.org header.s=default header.b=UQ52k7JV; 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=gnuweeb.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ga30-20020a1709070c1e00b0072b324267cfsi2911609ejc.647.2022.07.21.07.09.28; Thu, 21 Jul 2022 07:09:54 -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=@gnuweeb.org header.s=default header.b=UQ52k7JV; 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=gnuweeb.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233801AbiGUNJ3 (ORCPT + 99 others); Thu, 21 Jul 2022 09:09:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234053AbiGUNI7 (ORCPT ); Thu, 21 Jul 2022 09:08:59 -0400 Received: from gnuweeb.org (gnuweeb.org [51.81.211.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80EAA1FCDE; Thu, 21 Jul 2022 06:08:28 -0700 (PDT) Received: from [192.168.88.254] (unknown [125.160.97.11]) by gnuweeb.org (Postfix) with ESMTPSA id 0FF2A7E24B; Thu, 21 Jul 2022 13:08:24 +0000 (UTC) X-GW-Data: lPqxHiMPbJw1wb7CM9QUryAGzr0yq5atzVDdxTR0iA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1658408907; bh=8c6DdywAwBIRE/n+UmqEj4dgROYwPvas+8/IzXZ355g=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=UQ52k7JVTOzrvedUUP/PSYuZMkcAfkJMr0e+KquX36/k7Jo2sPLxv+6JBAmGVhrwF rGxxdEqXLAX9/vAhD1yYTfUoRAM3CAV6ZMLHyF3G39jGzSTGo74drkTDCOxx1t4p6Z t4FmHtGD9on3Yxd+Z3blwT2ae3MpdYZPnv+LNJLAcivz5Zo8ATK+MJfvU2MgRJg/gA 8eU3GTuBKYOAq8fswgm/b5Ka27HcSN+rPN67AwX4M3vRRlNPUKdeU5/H7Lpw1/8STD I5TgQ1phD5ECE3yTaPYQYC2knUKc9JGxeGd8uFF0Yorpjiy7wIVtKFMnVCinWOZ53p DLCqp80spwbAA== Message-ID: <3761ef37-85fc-de81-b211-39eaf3fe2362@gnuweeb.org> Date: Thu, 21 Jul 2022 20:08:19 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: Linux 5.19-rc7 liburing test `poll-mshot-overflow.t` and `read-write.t` fail Content-Language: en-US To: Dylan Yudaken Cc: Jens Axboe , Pavel Begunkov , Fernanda Ma'rouf , Linux Kernel Mailing List , io-uring Mailing List , GNU/Weeb Mailing List References: <2709ed98-6459-70ea-50d4-f24b7278fb24@gnuweeb.org> <3489ef4e810b822d6fdb0948ef7fdaeb5547eeba.camel@fb.com> From: Ammar Faizi In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS, SPF_PASS 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 On 7/21/22 7:05 PM, Dylan Yudaken wrote: > It seems to be a problem with blocking reads, buffer select and READV. > My guess is that ext4/xfs are not blocking. > > in b66e65f41426 ("io_uring: never call io_buffer_select() for a buffer > re-select"), this line was added in __io_iov_buffer_select > > - iov[0].iov_len = len; > + req->rw.len = iov[0].iov_len = len; > > Basically stashing the buffer length in rw.len. The problem is that the > next time around that breaks at > > if (req->rw.len != 1) > return -EINVAL; > > > The below fixes it as an example, but it's not great. Maybe someone can > figure out a better patch? Otherwise I can try tomorrow: It's 8:05 PM from my end. I'll try to play with your patch after dinner while waiting for others say something. -- Ammar Faizi