Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2006286rwb; Thu, 29 Sep 2022 05:12:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5qBLDg9yZd2wkrUZjKmm9bTKTYFuiW8nVXNXn9vvfBmzpwpKm5fM98qtvGGT0aCi6x+DtZ X-Received: by 2002:a05:6402:f0f:b0:451:1ecd:a61f with SMTP id i15-20020a0564020f0f00b004511ecda61fmr3039964eda.125.1664453521565; Thu, 29 Sep 2022 05:12:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664453521; cv=none; d=google.com; s=arc-20160816; b=htSo8VH8/p0uP5GWfwuqmOov/katIdoixw1GfHr1je7We95yu5EMWrdZ/l81zyYboI Hvu4x8lMA54YD8kWErR+ROciYOcY1lgKXGq6rdLWC4lJjeBumsqhMy2xJ3dQwKpIFBjf Qtm+77m+G2YrI8s45FoG66W8jYdocoj+YI3OigKbSA81aa9rcibD97wrkvBoCw+GYa36 htcTojRNS0q2N1SSDKi24+kdxR0UmGp4jQVjSJmmGi6+E4pQxlDPzGXBoD5niznxiTnC aVn7rguDZwk3ekVomGYu9aq/dk7COMV+/TAv9Za2/PqL8J4e7KL7ko4ym6KhS6LQvnBl LlOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=bUO7wDHGrnOCwa5KHoYepLmHYi+awlKq7rAwTovwe68=; b=odAcBjL0PaqLuWg7sQXTEz5r2Nr54kGIJRKTglAPygrqF39/EKCRQtwtvYDXRcPJfN t9NGXArkCNzdgQodEYEsh5bPXeb2PKNh4izfGcobRAfVqW0zyfbRs3mXd64rNmOY8EfE P9OFfJJejykNYXja/8wVAD/efGhBOCql6bYhthE5FpQvitDzYCPDvu5DplvOmTYU1oU6 jk9Mf08gN5QcXDl0yaIntVV5wplC0bFAW1U6Fbaj0HNH53/TB5M1rFNhjzWXwA/6lqNo ZEEAYTmMGRnD6PH+mKcLvwWK7DW7hWQyiHesM7lhQqFwqU0UeFehIKUZeKx/EG5qbTgn U2og== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g1-20020a056402320100b0044df8fa1d5fsi6310767eda.575.2022.09.29.05.11.20; Thu, 29 Sep 2022 05:12:01 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234987AbiI2Lx1 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 29 Sep 2022 07:53:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235036AbiI2LxZ (ORCPT ); Thu, 29 Sep 2022 07:53:25 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC3A7151B10 for ; Thu, 29 Sep 2022 04:53:23 -0700 (PDT) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-322-FG1UcietOBqlK6YUwDSrzw-1; Thu, 29 Sep 2022 12:53:20 +0100 X-MC-Unique: FG1UcietOBqlK6YUwDSrzw-1 Received: from AcuMS.Aculab.com (10.202.163.4) by AcuMS.aculab.com (10.202.163.4) with Microsoft SMTP Server (TLS) id 15.0.1497.38; Thu, 29 Sep 2022 12:53:17 +0100 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.040; Thu, 29 Sep 2022 12:53:17 +0100 From: David Laight To: 'Hugh Dickins' , Vlastimil Babka CC: Joel Fernandes , Hyeonggon Yoo <42.hyeyoo@gmail.com>, Matthew Wilcox , Andrew Morton , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" Subject: RE: amusing SLUB compaction bug when CC_OPTIMIZE_FOR_SIZE Thread-Topic: amusing SLUB compaction bug when CC_OPTIMIZE_FOR_SIZE Thread-Index: AQHY02LHNvo5HN+EEECxPXiP8YKQXa32TN+Q Date: Thu, 29 Sep 2022 11:53:17 +0000 Message-ID: <9368c760191448bba0e062709cc7c799@AcuMS.aculab.com> References: <35502bdd-1a78-dea1-6ac3-6ff1bcc073fa@suse.cz> In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 > -static void rcu_free_slab(struct rcu_head *h) > +/* > + * rcu_free_slab() must be __aligned(4) because its address is saved > + * in the rcu_head field, which coincides with page->mapping, which > + * causes trouble if compaction mistakes it for PAGE_MAPPING_MOVABLE. > + */ > +__aligned(4) static void rcu_free_slab(struct rcu_head *h) > { > struct slab *slab = container_of(h, struct slab, rcu_head); > Isn't that going to cause grief with options that align functions on 16/32byte boundaries when adding space for 'other stuff'? David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)