Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1612216ybg; Thu, 11 Jun 2020 14:39:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYBRWJqrDf8FqOoL+/g2XJxH9cHo99NrDh5dHU2zANhR2dF2cMWeySsfnhLmu9EoCT7XNz X-Received: by 2002:a17:906:8244:: with SMTP id f4mr10422272ejx.257.1591911592236; Thu, 11 Jun 2020 14:39:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591911592; cv=none; d=google.com; s=arc-20160816; b=0JcvSqIXLXy7iUWjzxXDBwXFPGMYvn9lvXfYqK5LABhR4oSOfib2upq0gd/DYhhkjp l3Zc3/rbvwwPkgz2Iy1XiVc2c9CbIwNURymNvqGcKIv/YjomquuvqHcnZpxew58HYAJ4 uboRUyO5GKJQWBkrQFsqki8V9x6cjGU+fo/+olkqRxNzAahAp0trviaPQkGOveD55/LW KMIqf2aqpxuAPo5SOtySbUiPgUUA/3pxcCyw4I8CGSHwV9ur9yiU735fbpd0lJ6XaHRL HgMI72J/eX6KUWHNOLd6oXoUOKWA6xEZaUz8wQEX+WW28uTFxZTSfC6OTtQRUOq8Lj3n snBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:subject :from:cc:to:dkim-signature; bh=jYhsRw+x2h3yVSINWDasBRC/3u0YL3yghV7G1msGuR4=; b=pbFZqVhsjtTrbrS1JrmocObAwgY/Q7ZClrXy5iN/0NiFqGXvGpxlBXpBobo3uTV2rq Yj0x1eR+oPabvaRxdU33EykeaJuZoRBLacM48jXodobgzxM4Dhp7QTlZc7/v1gRHhRCD axYajfHz0xUjrO2/HmVSs/5FeG1lq0fa6EUrn+XUp6jHdDR67c0v2tW+HohZ4MXLHDZV f9vRci8wIKp7P9J1p4EMgJqQxTSmIZQpWIMVU4X2CGcS9wUP5a7Xa5SnIt1SlsuC36yw rydHMyDlPfyYG+oU4rSjRKZ/rSO5kBEhCcbLHsYmMr96ghf9Hu2bWchgi9ElHpxyKAIX ITew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=un0XfoiD; 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 dc9si2731839ejb.98.2020.06.11.14.39.26; Thu, 11 Jun 2020 14:39:52 -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=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=un0XfoiD; 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 S1726405AbgFKVf0 (ORCPT + 99 others); Thu, 11 Jun 2020 17:35:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726326AbgFKVf0 (ORCPT ); Thu, 11 Jun 2020 17:35:26 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04CDFC08C5C2 for ; Thu, 11 Jun 2020 14:35:25 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id bh7so2822821plb.11 for ; Thu, 11 Jun 2020 14:35:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=to:cc:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=jYhsRw+x2h3yVSINWDasBRC/3u0YL3yghV7G1msGuR4=; b=un0XfoiDgSk4wtPUKLmHvaXQpKehMEh5W496xGe1kRdp16yYLb3iMN7OlsJQdbDUqG wvtgiZ3CkfBI2Vx31Zi767jvOgp1CfhiyIHSkyzomGkhjEw14+maecf1VuFOe2bFm4kt jVhp6C8bel81wvlwStrRpPAFRcCCSHe6873WhL3LS9tMLxIMvyxD3U4y/HdSLA04YfVX iu4n2GmjrFdLXrx92itNoryNJvqgI/yngY+LvKPx/OgeUdcVv8bflL7cV+C3C/5GeGJL 6otbzy0mqN1+/KgXJcJoU8g05XCafp3YXYtME3fE7fDNnb2cq2m57H6AlnnX3yKHJEKf a5og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=jYhsRw+x2h3yVSINWDasBRC/3u0YL3yghV7G1msGuR4=; b=UihoxChas9mXE59J4wYu1IhjbfSPVjgO3Kvmf5FIaHRJtqHV65JusfaIYYcHY0GBwg tZselBqd8ytos09NoNgcuotsw/6QnTwZsgJ+RpDhf4Ko7N3UGAmSHPcOGuqbLlR0nQm4 OjlV6h3CccvneuKeOMOICVZTZThGSPi4EPf6zsgMvgwzfPUrO//dUd5eyv29rhzJCpxD LRMB+ska07aqaBsY4Q63+Ebe2dcjGPHxlvJPSpr4s8pGMoVDoIZEjstU/u+xYw7b+PJQ mSAMWIFiZ/zXxPVa/wGbMqib0h1jHTzkIiLd/WjOiUHvOSKE1MRGv0kG2Igta+BKOc5p 44Vw== X-Gm-Message-State: AOAM532S8AK0EYHFFLj2lMsHnqisteBNHTnf7WRPmhbWnoSwBhNERrgi 04q3d1AAxpqT2oa/RRJbXyBMPusiolrBcQ== X-Received: by 2002:a17:90a:1117:: with SMTP id d23mr9982887pja.136.1591911324223; Thu, 11 Jun 2020 14:35:24 -0700 (PDT) Received: from [192.168.1.188] ([66.219.217.173]) by smtp.gmail.com with ESMTPSA id nl8sm3786740pjb.13.2020.06.11.14.35.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Jun 2020 14:35:23 -0700 (PDT) To: Linus Torvalds Cc: io-uring , "linux-kernel@vger.kernel.org" From: Jens Axboe Subject: [GIT PULL] io_uring fixes for 5.8-rc1 Message-ID: <75aa6bc8-488a-07dd-feea-545500e51966@kernel.dk> Date: Thu, 11 Jun 2020 15:35:22 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, A few late stragglers in here. In particular: - Validate full range for provided buffers (Bijan) - Fix bad use of kfree() in buffer registration failure (Denis) - Don't allow close of ring itself, it's not fully safe. Making it fully safe would require making the system call more expensive, which isn't worth it. - Buffer selection fix - Regression fix for O_NONBLOCK retry - Make IORING_OP_ACCEPT honor O_NONBLOCK (Jiufei) - Restrict opcode handling for SQ/IOPOLL (Pavel) - io-wq work handling cleanups and improvements (Pavel, Xiaoguang) - IOPOLL race fix (Xiaoguang) Please pull! The following changes since commit 1ee08de1e234d95b5b4f866878b72fceb5372904: Merge tag 'for-5.8/io_uring-2020-06-01' of git://git.kernel.dk/linux-block (2020-06-02 15:42:50 -0700) are available in the Git repository at: git://git.kernel.dk/linux-block.git tags/io_uring-5.8-2020-06-11 for you to fetch changes up to 65a6543da386838f935d2f03f452c5c0acff2a68: io_uring: fix io_kiocb.flags modification race in IOPOLL mode (2020-06-11 09:45:21 -0600) ---------------------------------------------------------------- io_uring-5.8-2020-06-11 ---------------------------------------------------------------- Bijan Mottahedeh (1): io_uring: validate the full range of provided buffers for access Denis Efremov (1): io_uring: use kvfree() in io_sqe_buffer_register() Jens Axboe (3): io_uring: disallow close of ring itself io_uring: re-set iov base/len for buffer select retry io_uring: allow O_NONBLOCK async retry Jiufei Xue (1): io_uring: check file O_NONBLOCK state for accept Pavel Begunkov (8): io_uring: fix {SQ,IO}POLL with unsupported opcodes io_uring: do build_open_how() only once io_uring: deduplicate io_openat{,2}_prep() io_uring: move send/recv IOPOLL check into prep io_uring: don't derive close state from ->func io_uring: remove custom ->func handlers io_uring: don't arm a timeout through work.func io_wq: add per-wq work handler instead of per work Xiaoguang Wang (3): io_uring: avoid whole io_wq_work copy for requests completed inline io_uring: avoid unnecessary io_wq_work copy for fast poll feature io_uring: fix io_kiocb.flags modification race in IOPOLL mode fs/io-wq.c | 10 +- fs/io-wq.h | 8 +- fs/io_uring.c | 424 ++++++++++++++++++++++++++-------------------------------- 3 files changed, 201 insertions(+), 241 deletions(-) -- Jens Axboe