Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp28745024rwd; Wed, 5 Jul 2023 01:58:38 -0700 (PDT) X-Google-Smtp-Source: APBJJlFM0+Ftp8AVxfJTRhBqqq16jMxQGWaFsn2uvtghaYC3MfQe27SfgBdpwgYrhNS91o0/U042 X-Received: by 2002:a05:6808:255:b0:3a3:95cb:bf1c with SMTP id m21-20020a056808025500b003a395cbbf1cmr11367969oie.27.1688547517784; Wed, 05 Jul 2023 01:58:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688547517; cv=none; d=google.com; s=arc-20160816; b=QttlU/2EqtfPuKNwjM7YeoFYzb6JobZiugRwVxLE6qBhjpGkBvgP6wwvIdNP3fl8Tq DGl3eVKwmGdssoRr+FC4Yz0OVplprR6yiGW3oQi1/qCHmLppWRtUbpgmmCdOWe66pMIT 1Cf7Az62c486xcR0H4IsQi5Wc1MjbwoSkwvs0ihp/F8W9+3DvnSp5fnw8sUnyENveHWi DzECoI0A8XFhvzsNvgGrmNoAj3QUTtiARenklaCxgTdJwfZlKl8MqYa5J0GLHo6QIgWr nDrPcGshpu7MLr4VaARMycFXJjmsaGL9/YZ5IriQ6K7mn/WbbBdU/ytl7WtkqJif+IW6 rpjw== 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:reply-to :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id; bh=5d5nH3HvU8LasZ0gd+MaIwmUXwfg+pN0UiyQ7EIVZE8=; fh=G3hKUVhixMJvRBqZiV1l1TFBFS+NlIvonWFEh41UsdQ=; b=wsFqLe7RYwDk4oCalD1UGWClLMI9Fn6niX+hUdaaIx3qE4p0aKSXTpjdBevZy550id TnwdweFliCh02JrNGSEIouz1GC79mO+qJLjoPedgLLEV/cv3IUPt+KtVSXQUpeOehfYB +r8a7wcrYb78JQ6MlX0H2D1BY3rx9fLvI0g0ZLUwFMXwpQ/HEaM+nGSOfpfY11xXWGq2 k41E9zzj4qEH+qzZ5YwROgF3W4g5BPXpCO5MxnzbouAiR/H60fYjhJg7BFzmUf2sAYqX vfOFXaDP44nH+AqFa4xfqbA/ZrLMPNj/PUi9CpX/tvq0schmPvF6k7KKXlHBCi/D775Z 4MfA== 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 r18-20020a635152000000b0054fd53f37dcsi22895388pgl.380.2023.07.05.01.58.22; Wed, 05 Jul 2023 01:58:37 -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 S232128AbjGEIwM (ORCPT + 99 others); Wed, 5 Jul 2023 04:52:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231734AbjGEIwK (ORCPT ); Wed, 5 Jul 2023 04:52:10 -0400 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5894810D5 for ; Wed, 5 Jul 2023 01:52:09 -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 1qGyF1-0002O0-Fp; Wed, 05 Jul 2023 10:52:03 +0200 Message-ID: <7668c45a-70b1-dc2f-d0f5-c0e76ec17145@leemhuis.info> Date: Wed, 5 Jul 2023 10:51:57 +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: Suren Baghdasaryan , Andrew Morton Cc: Linux regressions mailing list , Bagas Sanjaya , Jacob Young , Laurent Dufour , Linux Kernel Mailing List , Linux Memory Management , Linux PowerPC , Linux ARM , Greg KH 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> From: "Linux regression tracking (Thorsten Leemhuis)" Reply-To: Linux regressions mailing list In-Reply-To: <2023070509-undertow-pulverize-5adc@gregkh> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1688547129;a7c2b9be; X-HE-SMSGID: 1qGyF1-0002O0-Fp 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 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 05.07.23 09:08, Greg KH wrote: > On Tue, Jul 04, 2023 at 01:22:54PM -0700, Suren Baghdasaryan wrote: >> On Tue, Jul 4, 2023 at 9:18 AM Andrew Morton wrote: >>> On Tue, 4 Jul 2023 09:00:19 +0100 Greg KH wrote: >>>>>>>> Thanks! I'll investigate this later today. After discussing with >>>>>>>> Andrew, we would like to disable CONFIG_PER_VMA_LOCK by default until >>>>>>>> the issue is fixed. I'll post a patch shortly. >>>>>>> >>>>>>> Posted at: https://lore.kernel.org/all/20230703182150.2193578-1-surenb@google.com/ >>>>>> >>>>>> As that change fixes something in 6.4, why not cc: stable on it as well? >>>>> >>>>> Sorry, I thought since per-VMA locks were introduced in 6.4 and this >>>>> patch is fixing 6.4 I didn't need to send it to stable for older >>>>> versions. Did I miss something? >>>> >>>> 6.4.y is a stable kernel tree right now, so yes, it needs to be included >>>> there :) >>> >>> 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. >> Ok, I think we have a fix posted at [2] and it's cleanly applies to >> 6.4.y stable branch as well. However fork() performance might slightly >> regress, therefore disabling per-VMA locks by default for now seems to >> be preferable even with this fix (see discussion at >> https://lore.kernel.org/all/54cd9ffb-8f4b-003f-c2d6-3b6b0d2cb7d9@google.com/). >> IOW, both [1] and [2] should be applied to 6.4.y stable. Both apply >> cleanly and I CC'ed stable on [2]. Greg, should I send [1] separately >> to stable@vger? > > We can't do anything for stable until it lands in Linus's tree, so if > you didn't happen to have the stable@ tag in the patch, just email us > the git SHA1 and I can pick it up that way. > > thanks, > > greg k-h Ciao, Thorsten