Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp33491536rwd; Sat, 8 Jul 2023 13:15:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlH817iEz5RXHokWDa0WkxnFty5+xpDA3zPESBHO58KX0rQsXQ0mDrBfpBI8yuV+XOteJCZQ X-Received: by 2002:a2e:7802:0:b0:2b6:fcd0:2aa1 with SMTP id t2-20020a2e7802000000b002b6fcd02aa1mr6667818ljc.43.1688847333514; Sat, 08 Jul 2023 13:15:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688847333; cv=none; d=google.com; s=arc-20160816; b=0XnG5gzR/RUnKu9d5RFR+I0mLhm90WE4F5S2JQvANxtpPCqClcNn1utxsa1yw/jnXe y+j/vwqQruoRue/kEuMDhw6tySklkebnHb09R/pB9RIMtROC78/XU68MEcz1u6NBX9jI vSjSsue3cQkgRCzCeXy3ZD6TKk2f+hoN1js6lF9cR43wiAM/bBHSmbJCM2tkyprKGdEX uXil5IuYqhsQ8hdZfyfUzQxgD5SCuM05obe1iHob815wirOawj1ssf6sQEMjCSjgQvGX TrVBFB+h9PM7G04gfw1BdKTp3WsEm/ea7AbO66Ut7uPQAUoulQJqPMuK3cNF2YsccdoO SWig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=joV2BdE7YOFZ22mdVaTCQPGn7sLlO9d89m2/O8Ni8nw=; fh=lOdGX4qdkGVvGjzt64fNFv7jwI2UEQ3ndFXL97DxIoQ=; b=GnVO69/aSLmtgdU8FNbh7mvd1pu3HROi5cIEX/3gZFC5Ms/QfAl7AVcg2AuXd4busz TzaXUAb1VeiYWrorRqLgYvYQHjIihvvGM208RYwt87/kbv4n22DNy5ClO5+Gn8qXg1hU SHKutiAhkCxpWG+aORDi2y6QT4KMppRp+eLNjrLoTbxlLdQBXmkrHyU3tZllE9DoJMpx 7Aab7NgX/FOkdz3JYJFF02ktwxXXxd3vBC0b19qN+c1FCmDiRsCO9183XqpDJOIRzYwd uQg/CEIWGW0qtzmc5J+OXJhFtuierknhRCzq0BSjTvKrXsrt3rxOBkbdVZjeRrMEgV+4 A1fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=T2pqC72E; 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 h20-20020a1709063b5400b00992b66e2b20si3295863ejf.523.2023.07.08.13.15.09; Sat, 08 Jul 2023 13:15:33 -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=@linux-foundation.org header.s=google header.b=T2pqC72E; 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 S229484AbjGHTXO (ORCPT + 99 others); Sat, 8 Jul 2023 15:23:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjGHTXN (ORCPT ); Sat, 8 Jul 2023 15:23:13 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BD26FD for ; Sat, 8 Jul 2023 12:23:12 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-51dff848168so4005407a12.2 for ; Sat, 08 Jul 2023 12:23:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1688844190; x=1691436190; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=joV2BdE7YOFZ22mdVaTCQPGn7sLlO9d89m2/O8Ni8nw=; b=T2pqC72EzC/l5ocPTlE8QR8Er9U2w4UWsADfntO5p1ri/2LUBttZT8aWbBWWcrt3RK iamWIuuZApdp95ZOW6KlpJPLAMPAgVdg866cttW1wX0ohDXsvoqgWS482/jgBRe1CHVF DCjbOKIqCilAWeeVgKAkuChWygZqj55JlRdso= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688844190; x=1691436190; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=joV2BdE7YOFZ22mdVaTCQPGn7sLlO9d89m2/O8Ni8nw=; b=Su6cr/UeDdeaH5bjJZxCiOsMzEyCUNprT0d8DS+g4HjAwjafl0NN7QgfG7G9w0t655 YKR7y1nQfeKnC6iZvETwd23L0BSWd+drqoujc2Zzp/H6sFWngP70Tqdh5TKwEZijFMWy st+gCocZ8UECAztTey9g6TfdBOYL46g7x2ZzsfvpuM5qfiMe6eDz6TakAjfNlJvzltrp DbP/ymGZHABCgBDvZMCKi7Py97iPIaqPPFiKHFdS5YMKp36w2WAWdIt/Hw0RI1kryCNT KgytAlW7AIBBWzw8IAi9NhMBMcwHgwY9IVXpopQolNix6C/0CtlZ745J0RfiTCv6MHjM AAog== X-Gm-Message-State: ABy/qLaF6yB6psgTwZCCLOFQhXFlyP/rfWDkT7D0hPjRbO9h2d2UFgRU FOtOvnZSTDXYoJvaPXSq3MzqrUO/dlcVor/Y4iu98NtU X-Received: by 2002:a05:6402:350:b0:51d:f589:9c7a with SMTP id r16-20020a056402035000b0051df5899c7amr5644501edw.17.1688844190558; Sat, 08 Jul 2023 12:23:10 -0700 (PDT) Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com. [209.85.128.54]) by smtp.gmail.com with ESMTPSA id f15-20020a056402150f00b0051e06693590sm3588142edw.91.2023.07.08.12.23.10 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 08 Jul 2023 12:23:10 -0700 (PDT) Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-3fbc59de0e2so33792645e9.3 for ; Sat, 08 Jul 2023 12:23:10 -0700 (PDT) X-Received: by 2002:a5d:684c:0:b0:314:4915:689 with SMTP id o12-20020a5d684c000000b0031449150689mr7611320wrw.34.1688844189725; Sat, 08 Jul 2023 12:23:09 -0700 (PDT) MIME-Version: 1.0 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> <20230708103936.4f6655cd0d8e8a0478509e25@linux-foundation.org> In-Reply-To: From: Linus Torvalds Date: Sat, 8 Jul 2023 12:22:53 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Fwd: Memory corruption in multithreaded user space program while calling fork To: Suren Baghdasaryan Cc: Andrew Morton , Thorsten Leemhuis , Bagas Sanjaya , Jacob Young , Laurent Dufour , Linux Kernel Mailing List , Linux Memory Management , Linux PowerPC , Linux ARM , Greg KH , Linux regressions mailing list Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no 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 Sat, 8 Jul 2023 at 12:17, Suren Baghdasaryan wrote: > > Do you want me to disable per-VMA locks by default as well? No. I seriously believe that if the per-vma locking is so broken that it needs to be disabled in a development kernel, we should just admit failure, and revert it all. And not in a "revert it for a later attempt" kind of way. So it would be a "revert it because it added insurmountable problems that we couldn't figure out" thing that implies *not* trying it again in that form at all, and much soul-searching before somebody decides that they have a more maintainable model for it all. If stable decides that the fixes are not back-portable, and the whole thing needs to be disabled for stable, that's one thing. But if we decide that in mainline, it's a "this was a failure" thing. Linus