Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3275561ybn; Fri, 27 Sep 2019 04:01:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqySgl1E3sOdLLWs+VMXjZM7yXbsocZdUwH4wce1BK/hFpUV6hFw4Cjs+SRxKcFIEdNQId8A X-Received: by 2002:a05:6402:14d0:: with SMTP id f16mr3718445edx.41.1569582109066; Fri, 27 Sep 2019 04:01:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569582109; cv=none; d=google.com; s=arc-20160816; b=fmu+21omKHI7XGyQ1EgUDg3k2DgFnQ/aWnj1mLGg4Z0llvNPh0Lq8YP7KD3ZMDs8ot QFdmIO9ydpE7WgL59vnTGfl9jKA1E2uyDtel5h3L0bR76op6AJa8v11vDgiQFPRrXoVY P6M4zuc9FoHXaOoIZYYSTW6hpjAWlXw7qIcCNkXVhddQBz+IDH8WX61JoMBMRch3dgm+ nwmZWrJq0zDKVjWUFMpmwc5zmyKQCYfA5yhJts5SRBjbg0e3dp/5bSjbzVXBGotGjAYj 3Y+TynNfJtkbUsGU8qET8UpDoxJiSm6aCI8BVJ62x5/iN7XP8tGBBdEa4PHYnYkcyxbH 8eFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=3F9R95iVopQgiQm4Hv9xU1a62EkjUjEq96fNaQdobN0=; b=qkwzkSF8uNBnLoq2usGu4JsUR9gXKdHixpY232RtU/zdpWOCxhDspac/0veazVoXF4 IqGzAwHW9XXqufJ0/lxq5gjxAq3CG9URtx5hyPNgx34STWUTM9lilhYfO04uFMGeml3D BfhI0YJyRDIG7mFtQyn3g5yxpV/vVMdI8EHlYc75j6TvS5kXOITcEBa0OXGbEhVgAQlw 1IZeLQ2M7jrmPchFdTnU3XomH3VYTODTDARBM4+Qv35KaowlEhOpCNHzI9FEGJVKH0Bp D6QEdez/w+WeBeSs7Pkv6fHM4NIq+GGX5hHQ0ClAkG9cNXoyem2lc4HG04/fLCB61KaG fryA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w20si1340417edc.202.2019.09.27.04.01.12; Fri, 27 Sep 2019 04:01:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726883AbfI0K6o (ORCPT + 99 others); Fri, 27 Sep 2019 06:58:44 -0400 Received: from mx2.suse.de ([195.135.220.15]:46012 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726339AbfI0K6o (ORCPT ); Fri, 27 Sep 2019 06:58:44 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id A0676ABBD; Fri, 27 Sep 2019 10:58:41 +0000 (UTC) Message-ID: Subject: Re: [PATCH] compiler: enable CONFIG_OPTIMIZE_INLINING forcibly From: Nicolas Saenz Julienne To: Masahiro Yamada , Andrew Morton Cc: Ingo Molnar , Borislav Petkov , Linus Torvalds , Nick Desaulniers , Miguel Ojeda , linux-arch , linux-kernel@vger.kernel.org, Catalin Marinas , rmk+kernel@arm.linux.org.uk, Will Deacon , Stefan Wahren Date: Fri, 27 Sep 2019 12:58:39 +0200 In-Reply-To: <20190830034304.24259-1-yamada.masahiro@socionext.com> References: <20190830034304.24259-1-yamada.masahiro@socionext.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-JZ6pLibdn1iko2ZTM9LG" User-Agent: Evolution 3.32.4 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-JZ6pLibdn1iko2ZTM9LG Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 2019-08-30 at 12:43 +0900, Masahiro Yamada wrote: > Commit 9012d011660e ("compiler: allow all arches to enable > CONFIG_OPTIMIZE_INLINING") allowed all architectures to enable > this option. A couple of build errors were reported by randconfig, > but all of them have been ironed out. >=20 > Towards the goal of removing CONFIG_OPTIMIZE_INLINING entirely > (and it will simplify the 'inline' macro in compiler_types.h), > this commit changes it to always-on option. Going forward, the > compiler will always be allowed to not inline functions marked > 'inline'. >=20 > This is not a problem for x86 since it has been long used by > arch/x86/configs/{x86_64,i386}_defconfig. >=20 > I am keeping the config option just in case any problem crops up for > other architectures. >=20 > The code clean-up will be done after confirming this is solid. >=20 > Signed-off-by: Masahiro Yamada [ Resending as the mail delivery system failed to resolve some the hosts, namely Masahiro's ] [ Adding some ARM people as they might be able to help ] This was found to cause a regression on a Raspberry Pi 2 B built with bcm2835_defconfig which among other things has no SMP support. The relevant logs (edited to remove the noise) are: [ 5.827333] Run /init as init process Loading, please wait... Failed to set SO_PASSCRED: Bad address Failed to bind netlink socket: Bad address Failed to create manager: Bad address Failed to set SO_PASSCRED: Bad address [ 9.021623] systemd[1]: SO_PASSCRED failed: Bad address [!!!!!!] Failed to start up manager. [ 9.079148] systemd[1]: Freezing execution. I looked into it, it turns out that the call to get_user() in sock_setsocko= pt() is returning -EFAULT. Down the assembly rabbit hole that get_user() is I found-out that it's the macro 'check_uaccess' who's triggering the error. I'm clueless at this point, so I hope you can give me some hints on what's going bad here. Regards, Nicolas --=-JZ6pLibdn1iko2ZTM9LG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEErOkkGDHCg2EbPcGjlfZmHno8x/4FAl2N618ACgkQlfZmHno8 x/6+HggAhZEzBiG9BUNoaWjD8le/0hiblE7XfJOVHfaBiti3ehz5R3wnt0UQMSAe fwCdZdPkL96AsL23XDqrr3enTTe5nCKB5nM7qG2dJtDAiWsYVH/1Dcvn4pFQNT7m jKHagHOkcs3By4FkWQ2doBtKcbTkMlddljmbWAxbg3hXTAdNdlMvFzGWO88LWGoX R9zaedt2oDgF8BX+ctJ2ExNyueAqhJUiyBAQIaMgaHjtXVDL7czb+Qu90Tedp1Mn mVYwg+o9rda9frK7ZI8TRfYTMJPuUMVlOWIhHb23jQ4VCJJ0oP3Yl2AYuYMqhDSn Cte1dV9SuV0sE0F87cVbsc9COKvvHQ== =cwjV -----END PGP SIGNATURE----- --=-JZ6pLibdn1iko2ZTM9LG--