Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp33154924rwd; Sat, 8 Jul 2023 06:15:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlH6kxIQAbx/KKpXiK0Egwq3XLSUhSUJvroEezv4D/cwnu5Qj1h2BxezJ+mtc5GCYJny5ehG X-Received: by 2002:a05:6402:135a:b0:51e:357:3782 with SMTP id y26-20020a056402135a00b0051e03573782mr5394976edw.9.1688822106910; Sat, 08 Jul 2023 06:15:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688822106; cv=none; d=google.com; s=arc-20160816; b=cFa6fIVNwak0vfNndbJGrC3wP9ykc9uSXhiSDsZeZRvoB1T7LkuAX+09lpQzrha5MR H5QFBwBuftQ0DzzMhcjTwPF5e53NjnNSqUoSMktAhFn+Jx/UxfhIjxswsvqMLPkQbq+A J28Wm4ASKajEajlBOUzclLfGefkrPOv+X1XRRLLpzmx8fBrvR/PjqVFsXAtOWd6Ees33 UK+kM1YU0CMtX6ZIP/ys9H8DM62833R/9qP4xU9imW5H5l5sdQy9Mt1JBGqdltVLcIvT xEeAA/49QtVWazNWtlolQbhomN4XgLBBGmztTohqQco/U/WkNT3B2DLZmnIe829E3lLY EzMA== 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; bh=UqJlduoTQOyBIFI9wT/oLtRjyLfk3jWkAwjS3WzqvZw=; fh=1pOdfrPKoO5o6XNMABG5gv/ebo7FKdnia14HYJQWg7w=; b=IBJqYS5UmIHu/O8aSWriJ6uH0RzGSr/C0gOrF21qvKSeWrVzQnjl+VZS0mm3nuErBS IlZehqH/XWPDZG9OE2Y84t27cZG7rRekvaN4g6Cp2cUBFndIgUHsmT+7rR4zZKsnzKUo kY9QQk47mqwWB9ddPnJ8SNUeLq02BIwGd+qhYAcCX1+VyxhBMYZcbNFY1n+R4CeIjieM Qk/vjr2/SpstcrD+XOvmEt5sG5DVNsiGuNQAEq//gdYWmJw811j98now0OJONk0ycVlE Pk7PRAX0/VwNPw/o5Q+DwZtOuiq35KmXC1Din5zKcVYnvWRB/rvF3++rA3i21/kkM29z 7RTA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e10-20020a50fb8a000000b0051e0252e3e9si3344525edq.362.2023.07.08.06.14.43; Sat, 08 Jul 2023 06:15:06 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229780AbjGHLfg (ORCPT + 99 others); Sat, 8 Jul 2023 07:35:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbjGHLff (ORCPT ); Sat, 8 Jul 2023 07:35:35 -0400 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0060BC for ; Sat, 8 Jul 2023 04:35:33 -0700 (PDT) Received: from [2a02:8108:8980:2478:8cde:aa2c:f324:937e]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1qI6Dm-0004GA-MM; Sat, 08 Jul 2023 13:35:26 +0200 Message-ID: Date: Sat, 8 Jul 2023 13:35:25 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: Fwd: Memory corruption in multithreaded user space program while calling fork Content-Language: en-US, de-DE To: Andrew Morton , Linus Torvalds Cc: Suren Baghdasaryan , Bagas Sanjaya , Jacob Young , Laurent Dufour , Linux Kernel Mailing List , Linux Memory Management , Linux PowerPC , Linux ARM , Greg KH , Linux regressions mailing list References: <5c7455db-4ed8-b54f-e2d5-d2811908123d@leemhuis.info> <2023070359-evasive-regroup-f3b8@gregkh> <2023070453-plod-swipe-cfbf@gregkh> <20230704091808.aa2ed3c11a5351d9bf217ac9@linux-foundation.org> <2023070509-undertow-pulverize-5adc@gregkh> <7668c45a-70b1-dc2f-d0f5-c0e76ec17145@leemhuis.info> <20230705084906.22eee41e6e72da588fce5a48@linux-foundation.org> From: Thorsten Leemhuis In-Reply-To: <20230705084906.22eee41e6e72da588fce5a48@linux-foundation.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1688816133;4ce8089e; X-HE-SMSGID: 1qI6Dm-0004GA-MM X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,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 [adding Linus to the list of recipients to ensure the fix makes it into -rc1 (and can finally be backported to -stable). Linus, here is the backstory, as I assume you haven't seen this yet: CONFIG_PER_VMA_LOCK (which defaults to Y; merged for v6.4-rc1 in 0bff0aaea03 ("x86/mm: try VMA lock-based page fault handling first")) sometimes causes memory corruption reported here: https://lore.kernel.org/all/dbdef34c-3a07-5951-e1ae-e9c6e3cdf51b@kernel.org/ https://bugzilla.kernel.org/show_bug.cgi?id=217624 The plan since early this week is to mark CONFIG_PER_VMA_LOCK as broken; latest patch that does this is this one afaics: https://lore.kernel.org/all/20230706011400.2949242-3-surenb@google.com/ But that change or something similar hasn't reached you yet afaics; note, this is the second patch of a series with two patches] On 05.07.23 17:49, Andrew Morton wrote: > On Wed, 5 Jul 2023 10:51:57 +0200 "Linux regression tracking (Thorsten Leemhuis)" wrote: > >>>>> I'm in wait-a-few-days-mode on this. To see if we have a backportable >>>>> fix rather than disabling the feature in -stable. >> >> Andrew, how long will you remain in "wait-a-few-days-mode"? Given what >> Greg said below and that we already had three reports I know of I'd >> prefer if we could fix this rather sooner than later in mainline -- >> especially as Arch Linux and openSUSE Tumbleweed likely have switched to >> 6.4.y already or will do so soon. > > I'll send today's 2-patch series to Linus today or tomorrow. That afaics did not happen until now. :-( This makes me regret that I did not CC Linus earlier. I always feel like a snitcher when I do that. But in retrospective it seems it would have been the right thing to do given the problem, as I suspect Linus would have quickly applied the patch or marked the feature as broken himself. So thx to this (and a handful of earlier, similar situations) I now fully made my peace with feeling like a snitcher (I always knew that it's kinda part of the position). When something in me says "Ick, this looks bad to my untrained eyes" I'll immediately CC Linus. Linus, if I take things to far just let me know. But I assume you get a lot of mails and won't mind a few more. Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) -- Everything you wanna know about Linux kernel regression tracking: https://linux-regtracking.leemhuis.info/about/#tldr If I did something stupid, please tell me, as explained on that page.