Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp8101413rwi; Tue, 25 Oct 2022 02:27:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7e/gWw/KAjeRJ3kUP/GJWyOpstSL+ndSndknvHFwqYV1k6jwR4imzjGu6E2NbbrMqAOf4K X-Received: by 2002:a17:907:761b:b0:7a3:86dd:d330 with SMTP id jx27-20020a170907761b00b007a386ddd330mr12057770ejc.34.1666690077741; Tue, 25 Oct 2022 02:27:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666690077; cv=none; d=google.com; s=arc-20160816; b=KJ7CSB7ru4PUBcZc6CRZEhhnqXYcm1yrq+3Lf9YUZSZ0hiIwPOJmENGN43/G+CMM7W QjpzR0MZrRqd+4q1I81qygXUz4awBhiRybZkip3IDvAXmU5mpMCFL+fQlvJSng69Fyzi si1Ywg0Lx0aEHjkb7nbISEECB2962nOGt2xw16pYPYUezobGQSlj2TDfwd8RMDy1uzcP uBRN8sauMYDAmEyq5xL4sX+26cqYOsj7wRuPcfurTs6fAVJu5Ug1lGGE2uL0lwIRyTw1 trBF/BCGOdFdCWqY/5oTIZSDen5e9MoccsQsycfbwWeRb7oV/O+WW8vPg7HQTm5ibpWI BnoA== 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:dkim-signature:dkim-signature; bh=zD8OApJsTbBnv3iSDEQ49cotr+aBwY7HUsO9Mmm7DyI=; b=no8/pvnvRbArZL9pvv6Lxu2CoQKqme0jKIlZP8FPcnEZz32LIcFcOcQpueB1U8GyTe vp246sUkGbAsmOqDtRcZXD4agO11tQ3CjkYPa6pU3t+cItO9Oks+f0Hvzzb5dmhDpOwV 5Y9ymBg+Bcznb3JHEdp066YyKdke9WAGt3e93ZTrzl2BGMV4WBVadIcKZzAqPmodTl1S F+T5bGS6FQ/SbvkBV5GxjCVMZasWxQOn+sD/5MCQSzGxfx3nnju2rLlPc4lBir3gGxfL +B/vA17dCaSNvwQEW6GxhMSebSzk3VIJoPMqThTGJMHomHD6azvm5/+lohjoMUDfzQtU 3ZAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=tZNaBpgR; dkim=neutral (no key) header.i=@suse.cz; 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 qk6-20020a1709077f8600b007aa784a3cb8si2193520ejc.687.2022.10.25.02.27.32; Tue, 25 Oct 2022 02:27:57 -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=tZNaBpgR; dkim=neutral (no key) header.i=@suse.cz; 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 S231829AbiJYJW5 (ORCPT + 99 others); Tue, 25 Oct 2022 05:22:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231213AbiJYJWU (ORCPT ); Tue, 25 Oct 2022 05:22:20 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 289BDFCA; Tue, 25 Oct 2022 02:17:41 -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 01ECD1FD6C; Tue, 25 Oct 2022 09:17:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1666689460; 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=zD8OApJsTbBnv3iSDEQ49cotr+aBwY7HUsO9Mmm7DyI=; b=tZNaBpgRS2zftFAhvMLdtVxWOpW3DR3e9FK3I5hXXbAIDvLr7G8T7UgYtxstGKE/nJRrVq YkqlGUdwW1JyGmNM5dF/AEGZiKHNwqSZ/GIyJgG8RGfUcxLBb00POG5rljywVvmsQIhxbO d8CgwSKzMPKy2RxSJd63ru2SkcOBq0k= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1666689460; 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=zD8OApJsTbBnv3iSDEQ49cotr+aBwY7HUsO9Mmm7DyI=; b=UIV++LU+F+Fv84uskaMlBHpmjO0+klcnp4ZLkqUp4JULhXo9MLl/3WPaZOU53Zf1hyW9N+ BsaLrSFTvaqfQ8DQ== 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 CAC8C134CA; Tue, 25 Oct 2022 09:17:39 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id FIDSMLOpV2McOwAAMHmgww (envelope-from ); Tue, 25 Oct 2022 09:17:39 +0000 Message-ID: <32fe01dc-dda1-2154-af8e-7e9f64d6f811@suse.cz> Date: Tue, 25 Oct 2022 11:17:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: amusing SLUB compaction bug when CC_OPTIMIZE_FOR_SIZE Content-Language: en-US To: Hugh Dickins Cc: Matthew Wilcox , Hyeonggon Yoo <42.hyeyoo@gmail.com>, David Laight , Joel Fernandes , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, rcu@vger.kernel.org, David Laight , Kees Cook References: <35502bdd-1a78-dea1-6ac3-6ff1bcc073fa@suse.cz> <7dddca4c-bc36-2cf0-de1c-a770bef9e1b7@suse.cz> <904cc831-eb16-b1e5-10e5-9e7a171ef83@google.com> From: Vlastimil Babka In-Reply-To: <904cc831-eb16-b1e5-10e5-9e7a171ef83@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 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,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 10/25/22 06:19, Hugh Dickins wrote: > On Mon, 24 Oct 2022, Vlastimil Babka wrote: >> >> [1] https://lore.kernel.org/all/aec59f53-0e53-1736-5932-25407125d4d4@suse.cz/ > > Ignore me, don't let me distract if you're happy with Matthew's patch > (I know little of PageMovable, and I haven't tried to understand it); > but it did look to me more like 6.2 material, Yes, it is targetted towards 6.2 now. > and I was surprised that > you dropped the simple align(4) approach for 6.1. > > Because of Hyeonggon's rcu_leak_callback() observation? That was a > good catch, but turned out to be irrelevant, because it was only for > an RCU debugging option, which would never be set up on a struct page > (well, maybe it would in a dynamically-allocated-struct-page future). It was mainly due to David's observation: https://lore.kernel.org/all/c1c8920a56014a179dbb82d483f2ad28@AcuMS.aculab.com/ I did also conclude that align(4) indeed overrides anything set via CONFIG_FUNCTION_ALIGNMENT (and passed by -falign-functions) in a way that a globally configured larger alignment can be made smaller by this macro, and it was all too risky and last minute to me, while Joel's series wasn't targetted to 6.1 anyway so there was no urgency. And yeah it looks like a gcc bug to me. > Hugh