Message ID | 20230721152432.196382-1-deller@gmx.de |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp300124vqg; Fri, 21 Jul 2023 08:56:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlE2RLKiLROOG5lsAWAY2QAHodVOlHFy4d9VnRhCMgshLiSWrdg5SWNQM1LhrjRE3WgPV1r0 X-Received: by 2002:a17:903:258c:b0:1b8:9b1d:d7fa with SMTP id jb12-20020a170903258c00b001b89b1dd7famr1839069plb.59.1689955004914; Fri, 21 Jul 2023 08:56:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689955004; cv=none; d=google.com; s=arc-20160816; b=CbkX56P3UhzoiBBp7zIXigaUn0LIXFOdaWosbPBgMh2uuh1qFHjNYx4pvbINvlxgxI yFT/phoLXovCEatem9reqnrRtN7QiQiizpvCdkxszO61BtKdPgYsnTgUDL8B8tIQsABC 4WNwt1K8XG4ltqiws4X6X7c2I5ZbtWkTlRty4c6ap+Dsx+nneyoaGacFiYtwtyN0z6UY I3+vE2T+ez5AEhcM1HRA/7ofE71xEfhtJsHdYOp3+P/pIUCYn0AiAdcHrYevezrK4qAB 9pyLQVf+OUHXlS1pPexhWaV7Hedpe+JMy9oLj7wEcjyLlIQdIrVz+btgGayVvlpK8peb OKHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=PaQ43sbPsd3LmdypFG1tGKMBpYx3Iq0UFkB4i7z2rWo=; fh=XIlqAaRWkgkm1YRKEa3MB+m/tUUrHUBoBRIQAvSNi3s=; b=y98vWD4pQICaI7WxClonScXJmdZ+UlnE5F4crsxVagCIO+Z8U45U2w07Tya8Wwng3z hX/gbAkkP0RMjZOQa1B1cyPHbHfcFueRzAIilJSXrmGN0UhWJk554hZTf3NfYJUlsFcO ntmXfLLv+n1hHXs/RmtopeP8T6OX9NKx8GCRtQp19PLgPwsn0aOHWuZGPitqRf1bCBe3 AMZo13DcyH6ehPvPTbrtiqRGBMAKPJmz3lb0Uew/6iUb818IkxbOL3wNXrl6r9dnipTX BqYP7HENfHy/JwYvJu+jHqPrLPUwrOxzVaWHv+/5HeuuMiyTpzoxhs89bh3402mLZAed wP4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=oVhFyvUf; 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=gmx.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u7-20020a170902714700b001b891cfb1dcsi3030859plm.153.2023.07.21.08.56.31; Fri, 21 Jul 2023 08:56:44 -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=@gmx.de header.s=s31663417 header.b=oVhFyvUf; 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=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231169AbjGUPYs (ORCPT <rfc822;chrisben.tianve@gmail.com> + 99 others); Fri, 21 Jul 2023 11:24:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230001AbjGUPYm (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 21 Jul 2023 11:24:42 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62B3030E8; Fri, 21 Jul 2023 08:24:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1689953073; x=1690557873; i=deller@gmx.de; bh=Bma+M1sMIhrZ2XEr1uAufjvTaxAHToWtl3NVzIYXa14=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=oVhFyvUfT3uKdLtDPb/xewr3NQYeXfeepkV2ODHtc7LQBg3kiO72Gdeyn99D3xtttxlsEIn RXR9KDeJxhb8ZXFCmy1qzikGuXHX51Vsm3GuPm1VRQqvExCIINF+x/Z6NYlPNvGZsWtc5V+nR Yz6voEMzMOiO7pvSpvir9Y39QfTc/aV2yNr6cqPO2goGtXDIMM18kWnnJ1NSmzupb/vMJlfad jtq1lGHuyjKTbH5TJw2/Mh819aBoYvI11P6+zd6kfVEU7/Dy7KaZk85rRYuqBVVNqpyn8s2Q2 5p9cwwlTBGzSVRq0dVNdBOvlcoTJX4SDtmIJXH0hhJHqfpjcWsrg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from p100.fritz.box ([94.134.144.189]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MWRRT-1qOqs61Bkp-00Xv0v; Fri, 21 Jul 2023 17:24:33 +0200 From: Helge Deller <deller@gmx.de> To: linux-kernel@vger.kernel.org, io-uring@vger.kernel.org, Jens Axboe <axboe@kernel.dk>, linux-ia64@vger.kernel.org, Jiri Slaby <jirislaby@kernel.org>, linux-parisc@vger.kernel.org Cc: Helge Deller <deller@gmx.de> Subject: [PATCH 0/2] io_uring: Fix io_uring mmap() by using architecture-provided get_unmapped_area() Date: Fri, 21 Jul 2023 17:24:30 +0200 Message-ID: <20230721152432.196382-1-deller@gmx.de> X-Mailer: git-send-email 2.41.0 Content-Type: text/plain; charset="utf-8" MIME-Version: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qub90jb0u8IfLWza0/li2a23oZjLNWB3KfYzbHCnzdcJ1bZrO8SKnhCWdqrL S6y3+5+VTxXqGJoyK0SP1VandvDBkPJGJ1dMCxupQRXlN5AdFCXa8Diw5y4+liFZC+HMUKGGD VIK/78Tqup0rPy8Ed5SmN8HdbKG6INPxmqSqZo/Dud+BcRD3kZDuD6KF7flwJVQBMrf/HGs4y B35vWfi53ORsP8aXqBjMa6wmvYU= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772045905406654957 X-GMAIL-MSGID: 1772046259163660151 |
Series |
io_uring: Fix io_uring mmap() by using architecture-provided get_unmapped_area()
|
|
Message
Helge Deller
July 21, 2023, 3:24 p.m. UTC
Fix io_uring on IA64 (and x86-32?) which was broken since commit d808459b2e31 ("io_uring: Adjust mapping wrt architecture aliasing requirements"). The fix is to switch back to the get_unmapped_area() which is provided by each architecture. Patch 1 switches io_uring back to use per-arch get_unmapped_area(). Patch 2 (for IA64) is an independend cleanup. Helge Helge Deller (2): io_uring: Fix io_uring mmap() by using architecture-provided get_unmapped_area() ia64: mmap: Consider pgoff when searching for free mapping arch/ia64/kernel/sys_ia64.c | 2 +- arch/parisc/kernel/sys_parisc.c | 15 ++++++++---- io_uring/io_uring.c | 42 +++++++++++++-------------------- 3 files changed, 28 insertions(+), 31 deletions(-) -- 2.41.0
Comments
On 7/21/23 9:24?AM, Helge Deller wrote: > Fix io_uring on IA64 (and x86-32?) which was broken since commit > d808459b2e31 ("io_uring: Adjust mapping wrt architecture aliasing > requirements"). > The fix is to switch back to the get_unmapped_area() which is provided by > each architecture. > > Patch 1 switches io_uring back to use per-arch get_unmapped_area(). > Patch 2 (for IA64) is an independend cleanup. Let's get this queued up - I marked it for stable as well, for 6.4. Thanks for taking care of this!