Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9611518rwr; Thu, 11 May 2023 18:28:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5RxpWPcnqy5nikKwn7KLApz/hNLfKp7eDcWNGPAViUNAbiyXzhzmtntaAftJ0D+pOtz/Y9 X-Received: by 2002:a05:6a20:4297:b0:102:35cf:d57 with SMTP id o23-20020a056a20429700b0010235cf0d57mr11609110pzj.48.1683854887761; Thu, 11 May 2023 18:28:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683854887; cv=none; d=google.com; s=arc-20160816; b=oQqMZUcZijEeZemcj0O1pD3fNOgu7CBwJm+Gip22TA3FaqW+nVMlg9iwR6Pyab807S MGedbbfieD0icRZg42P7oWjp1Wkelv8ZR00qIY+eZ1FoblMrvr7/25z6O6ZIqkM4p82V v2k071NR99aSwCHRCdsAa2CyH/BA2n4mgc9vzPyqcg2aO7HCn7SwxVQAzQ5iUXmFzX8j yfBjX9co3jP2ZP+4mt4eETCywuWwbIVT8QeXd6kToH9CM3/rCqyCV92iJB87nAtrRQ3d GVW0IAx3OYhz4y72ILg7MsAzGcSxKYneNl1YdsrRk5X6W5QJUXTQmLveQy3r2hRF4cc/ g0Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:message-id:subject:from:to:dkim-signature:date; bh=eW8VYt649iHlSfC7rA85sOfcTbUxdoz43qnBQi+euQs=; b=g1+AWag5I/67jEc2YxON+xznhOpaCo89RG6StqB2VAK9wMAX4Bigax63yrNGS9E8nP bmBe47/8UPZb4i2820cWr5pvEemZOnEXJGAnLCQg98wD+GDeXycXRVl+Qe8JhAoWHnMp YqRNvk2u0ZMqh/pNAXMH9tyijROfWMFHbdvQJOMSDuEhxSoJYngqdC77lhO0LLtK706g B4NRjMdPo45ZymXsP2BmEGSxNmTG3iQT02HeTunGwicX1DW60J5ZVlnFn6qt2Sm3C288 5LYrsvZPkROFC551jNU1Mckt3+jfDrEpbo/nBH2S8DF+ty5MjaVK0e1DsqFiG38uuf81 UN0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hercules-ci.com header.s=protonmail3 header.b=I92RvO7r; 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=hercules-ci.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f16-20020a63f110000000b0051b930b2b4esi8460036pgi.620.2023.05.11.18.27.53; Thu, 11 May 2023 18:28:07 -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=@hercules-ci.com header.s=protonmail3 header.b=I92RvO7r; 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=hercules-ci.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239682AbjELBCu (ORCPT + 99 others); Thu, 11 May 2023 21:02:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230085AbjELBCs (ORCPT ); Thu, 11 May 2023 21:02:48 -0400 Received: from mail-0201.mail-europe.com (mail-0201.mail-europe.com [51.77.79.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B7297287 for ; Thu, 11 May 2023 18:02:44 -0700 (PDT) Date: Fri, 12 May 2023 01:02:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hercules-ci.com; s=protonmail3; t=1683853360; x=1684112560; bh=eW8VYt649iHlSfC7rA85sOfcTbUxdoz43qnBQi+euQs=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=I92RvO7rmW9Owqcp3XwfOfWeAUaxO9tbBuw+hC9Cd0ijPbBpiBc1pI/ooLuz0qM9R oX8opZWoz+I84jfeOJ9OWxR6r1DfMuDeqSMrgkoPaslNsiJ7U7D3+YDULke69D5Y/L emOUvKTaXG4Qb3Tglps6pcNH2gtVIgzcMvPscNcLh2bcFDh1iMB1/jNqEtMaK2N2t9 xTB/RYtjAXWJM5H0r5Umwy6gBbekCJc18cY9tFvLpCGaarwG1bGI5KcRfPH8oP3EVW eTJUTSip73c0TJkXnMoX6w+fZmrnrrLueY3Q02VLuEv6Ow1AmZKObOcnzt1OrhmfGc WQDcjELanrBxw== To: "Liam R. Howlett" , Snild Dolkow , "Matthew Wilcox (Oracle)" , "regressions@lists.linux.dev" , LKML , Linux-MM , "maple-tree@lists.infradead.org" , Andrew Morton From: Robert Hensing Subject: Re: [Regression] mmap with MAP_32BIT randomly fails since 6.1 Message-ID: <190c5b1b-df67-eb54-1559-706ed4e5719a@hercules-ci.com> Feedback-ID: 43583703:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_LOW,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: X-Mailing-List: linux-kernel@vger.kernel.org It appears that commit 58c5d0d6d522112577c7eeb71d382ea642ed7be4 causes another regression of allocations with MAP_32BIT. Reverting it fixes the reproducer from https://lore.kernel.org/linux-mm/cb8dc31a-fef2-1d09-f133-e9f7b9f9e77a@sony.= com/ Do you think this commit is somewhat safe to revert? The following may be superfluous, but adds some context and might help someone find this thread. It merely confirms to the observation of this regression in https://lore.kernel.org/linux-mm/e6108286ac025c268964a7ead3aab9899f9bc6e9.c= amel@spotco.us/ From what I can tell it also fixes my own use case, and =C2=A0- The program I maintain, =C2=A0=C2=A0 https://github.com/hercules-ci/hercules-ci-agent/issues/514 =C2=A0- Another program, also Haskell: =C2=A0=C2=A0 https://github.com/aristanetworks/nix-serve-ng/issues/27 =C2=A0- An FPGA interface process. I've found them because they list the s= ame =C2=A0=C2=A0 commit id on their blog. =C2=A0=C2=A0 https://jia.je/software/2023/05/06/linux-regression-vivado-en= / On 3/2/23 19:43, Liam R. Howlett wrote: > * Snild Dolkow [230302 10:33]: >> After upgrading a machine from 5.17.4 to 6.1.12 a couple of weeks ago, I >> started getting (inconsistent) failures when building Android: >> While it claims to be using 0x22 (MAP_PRIVATE | MAP_ANONYMOUS) for the >> flags, it really uses 0x40 (MAP_32BIT) as well, as shown by strace: >> The same applies to the dynamic linker in the GHC Haskell runtime system. It also uses MAP_32BIT, in its linker, and reports the error ghc: mmap 4096 bytes at (nil): Cannot allocate memory I hope this was a somewhat useful contribution to the regressions thread. (also hi, I'm new here) Cheers, Robert Hensing