Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1716540rwr; Fri, 28 Apr 2023 00:19:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4aFrjPLkJBFBNWjLxMS/vishzNGhuPDjjVEuiHiIUKhdUaA67zmcc7QqjdnYiRfD2/wEjw X-Received: by 2002:a17:902:e747:b0:1a9:88a0:9b5d with SMTP id p7-20020a170902e74700b001a988a09b5dmr5624101plf.57.1682666380812; Fri, 28 Apr 2023 00:19:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682666380; cv=none; d=google.com; s=arc-20160816; b=xf7zaFZ2ov+jvZ7ZBAVKqY8g926P8dRhJ1JlVa0cpf6oLWhRHAgOFH2LZxkrrZ63hN Q/yGlFw4r1pQldXLM+PU/2AwK6WWRh2adR3B+72NuT2eLc1mQlKiOjX4Un++VPyscor6 4Bn4EH9Lq7syMlCFsoLYoFs/qE2w9LTHzFQ58Vnzv0oUw0YeQ3IuqhafknAkDFBlXovx V/D49HFDHIEv51oRamvNeEP8WaRNAC3gqfh3rlx5m5GklYbOIgzpwew4PwM/67P9tcpJ t+Os1SwO70GcVk2+RPMddZJWUIkWTSG7Ozy/UNXKTqJdIVx2oAlILyWOwoYGQ1xmVf/S tBRg== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=LJ+TMkCiDgfegvvsz0b3841mXTh3rnZkeHoyCdZ3g2o=; b=bc6v3T52plf7Uk21e7USZs76xBV5vyPL/Ctg7i3NI4FhxlCu8G35uniD7eFfAvftiM C5wNOACmkuVzM1AszMZMJhhtt8pK+NpQMAV+KUyIf6y5iHyCXB86BJkcOmpZcXAq5l2X KysmwNSeG20MJYv4i8Asq49hvre2d1b65l99N4LpAyFYgaoXmuW0vl1uvUmIJuhs2WxZ 0q3UeQhojjuhRakH4dYC+vCRPw75/n4Xak6PM6plZ5XKSWe3sH2YLIZ+mxAfxug1Be3Z 38c6kVOLSDafuaYLmlPceIz6StX1HSFSOwR3fxSW7yPXdDdB2pfvhABJRodKUZ1KTu03 xN5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=W9kYRwWG; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b="hI0/yIUG"; 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 f13-20020a170902684d00b0019ca19614c7si20122647pln.69.2023.04.28.00.19.28; Fri, 28 Apr 2023 00:19:40 -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=@suse.cz header.s=susede2_rsa header.b=W9kYRwWG; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b="hI0/yIUG"; 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 S1345450AbjD1HNT (ORCPT + 99 others); Fri, 28 Apr 2023 03:13:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229680AbjD1HNR (ORCPT ); Fri, 28 Apr 2023 03:13:17 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CD2F3C01; Fri, 28 Apr 2023 00:13:12 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 428511FFFA; Fri, 28 Apr 2023 07:13:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1682665991; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LJ+TMkCiDgfegvvsz0b3841mXTh3rnZkeHoyCdZ3g2o=; b=W9kYRwWGdploRnynCxhQA6nn/OPsw3CdOInic8+pvp7oDcet2eShcDStKef/Ma72D5kMp5 UZKPdwh88ZSsAnYG5r/die/XpbmsAO+GjZ6/fTaD4HG3bAyUtYN5zzdnI7kaTWpJCLHYXH I9BsMVyxKILhHqhDrWtTZ08UPT5OcmQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1682665991; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LJ+TMkCiDgfegvvsz0b3841mXTh3rnZkeHoyCdZ3g2o=; b=hI0/yIUG0x80oyE863aFGoetKlHqs9fMKCgzSEVLD5N7r6P4oduv/mBvD++Lt7TDCNEvNn irMGXGwb/GBARwBQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 0F36D138FA; Fri, 28 Apr 2023 07:13:11 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 60bxAgdyS2SzTQAAMHmgww (envelope-from ); Fri, 28 Apr 2023 07:13:11 +0000 Message-ID: Date: Fri, 28 Apr 2023 09:13:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH for v6.3 regression] mm/mremap: fix vm_pgoff in vma_merge() case 3 To: Linus Torvalds Cc: Greg KH , Andrew Morton , "Liam R. Howlett" , lstoakes@gmail.com, regressions@lists.linux.dev, linux-mm@kvack.org, patches@lists.linux.dev, linux-kernel@vger.kernel.org, Jiri Slaby , Fabian Vogt , stable@vger.kernel.org References: <20230427140959.27655-1-vbabka@suse.cz> <2023042719-stratus-pavestone-505e@gregkh> <3cc6e10c-f054-a30a-bf87-966098ccb7bf@suse.cz> Content-Language: en-US From: Vlastimil Babka In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, 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 On 4/28/23 04:53, Linus Torvalds wrote: > Hi Vlastimil, Hi Linus, > On Thu, Apr 27, 2023 at 8:12 AM Linus Torvalds > wrote: >> >> Ack. It's in my tree as commit 7e7757876f25 right now (not pushed out >> yet, will do the usual build tests and look around for other things >> pending). > > Gaah. I just merged Andrew's MM tree, and while it had a lot of small > conflicts (and the ext4 ones were annoying semantic ones), the only > one that was in *confusing* code was the one introduced by this > one-liner fix. > > I'm pretty sure I did the right thing, particularly given your other > patch for the mm tree, but please humor me and take a look at it? Sure, took a look and looks correct to me, thanks! > That 'vma_merge()' function is the function from hell. Yeah, unfortunately. But despite the bugs, I believe Liam's changes in 6.3 improved it a lot, as with __vma_adjust() it was much worse (it did e.g. things like "swap(vma, expand)" in some cases). And hopefully the cleanups from me and Lorenzo in the mm 6.4 pull request improved readability too, even though it made the merge tricky. > I haven't pushed out yet because it's still going through my build > tests, but it should be out soon. > > Linus