Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp238670pxj; Fri, 28 May 2021 02:50:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzz+jTlm9GpRtF6JpcmpV16sKej4Zj7opn1dgLSi9U4kUCjVs3wrw7mGk5SXqrRgYucizbU X-Received: by 2002:a92:9411:: with SMTP id c17mr6987119ili.264.1622195438458; Fri, 28 May 2021 02:50:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622195438; cv=none; d=google.com; s=arc-20160816; b=aPP9valJG8u94D5NJbN3ds/sX711rxiBNmi2pn/aDdIVciU7HVNkO/ay0v8kF7qhjt 0CrFjeH5V2ORDYi1i184+q2wjALpab17tJS294piT0UspMumKvjlt1E3PHjhCBCOjzGR WlKTFF6L3ekULROaxzGo5tvkGwu78O+jcR4A3fkWnJNhDiEw6HB/5YlapseEhcG8Von0 1wtGxA8QKqLf7ih2sQeWRy2A33cI2Ky5e9gS3YEL4DZK2PmQjctbh1sZ5M7+1VmohsWX gfhVfH2/ZB/Z2hwjspmQ54QYkaaCAo8cv+g9tsKat6r/U4m8iZTBMZSqZ1p76TxRClCT bO7g== 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=AG/OG9rlBuUHV/BpdsCEKajh0dtUz7Uu6V+mWdXxSzs=; b=wLcVcf7WHyWGU2wn+lpRw+W9mdcECazDAIVabIrUP4Tjn0HwkNva2DJxeyaEh4LA/5 uiMjr4IuBV6QXDt517Yv/tZKFOjuUKUmcWlTKADt2D8Hm6Xs3ZcFWIrtf6rVQe4JVQDT 4QB5Q8TGZKTVtDDAJ2u+xSelZz3rss0DknR6UiNe1KFrJDNa4jLlY9FKbqnv2MQ2kd1f NkOdvJdPtJmL+EJazKSzuTptLUNUuficVBeVW4OaaXtHpIlXm2/cFpEkWZrVnLqhqnZI VV0oiBKXgrXeiREniOWWl/YEBNsLrcTHhCP31h8km5TNxNkmFJ1mtaC2nouWSlwNoS0s iDLg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y10si3466215iom.14.2021.05.28.02.50.24; Fri, 28 May 2021 02:50:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S236037AbhE1JvK convert rfc822-to-8bit (ORCPT + 99 others); Fri, 28 May 2021 05:51:10 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([185.58.86.151]:41818 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234926AbhE1JvI (ORCPT ); Fri, 28 May 2021 05:51:08 -0400 Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-275-yccOMhXpN7i8SNWlKAUUQw-1; Fri, 28 May 2021 10:49:31 +0100 X-MC-Unique: yccOMhXpN7i8SNWlKAUUQw-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 28 May 2021 10:49:29 +0100 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.015; Fri, 28 May 2021 10:49:29 +0100 From: David Laight To: 'Mel Gorman' CC: 'Andrii Nakryiko' , Christoph Hellwig , Andrew Morton , "Arnaldo Carvalho de Melo" , Michal Suchanek , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , "Yonghong Song" , John Fastabend , KP Singh , open list , Jiri Olsa , Hritik Vijay , bpf , Linux-Net , Linux-MM Subject: RE: [PATCH] mm/page_alloc: Work around a pahole limitation with zero-sized struct pagesets Thread-Topic: [PATCH] mm/page_alloc: Work around a pahole limitation with zero-sized struct pagesets Thread-Index: AQHXUwZwxICJrzVIrECdOMP8p5MLKKr4istw////SYCAABppAA== Date: Fri, 28 May 2021 09:49:28 +0000 Message-ID: <2755b39d723146168e875f3b4a851a0d@AcuMS.aculab.com> References: <20210526080741.GW30378@techsingularity.net> <20210527090422.GA30378@techsingularity.net> <8fe547e9e87f40aebce82021d76a2d08@AcuMS.aculab.com> <20210528090421.GK30378@techsingularity.net> In-Reply-To: <20210528090421.GK30378@techsingularity.net> 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 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mel Gorman > Sent: 28 May 2021 10:04 > > On Fri, May 28, 2021 at 08:09:39AM +0000, David Laight wrote: > > From: Andrii Nakryiko > > > Sent: 27 May 2021 15:42 > > ... > > > I agree that empty structs are useful, but here we are talking about > > > per-CPU variables only, which is the first use case so far, as far as > > > I can see. If we had pahole 1.22 released and widely packaged it could > > > have been a viable option to force it on everyone. > > ... > > > > Would it be feasible to put the sources for pahole into the > > kernel repository and build it at the same time as objtool? > > We don't store other build dependencies like compilers, binutils etc in > the kernel repository even though minimum versions are mandated. > Obviously tools/ exists but for the most part, they are tools that do > not exist in other repositories and are kernel-specific. I don't know if > pahole would be accepted and it introduces the possibility that upstream > pahole and the kernel fork of it would diverge. The other side of the coin is that is you want reproducible builds the smaller the number of variables that need to match the better. I can see there might be similar issues with the version of libelf-devel (needed by objtool). If I compile anything with gcc 10 (I'm doing build-root builds) I get object files that the hosts 2.30 binutils complain about. I can easily see that updating gcc and binutils might leave a broken objtool unless the required updated libelf-devel package can be found. Statically linking the required parts of libelf into objtool would save any such problems. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)