Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3261865ybn; Fri, 27 Sep 2019 03:46:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwno/1TONz0i90OpNEaz9hWAEQ7CFd21YwL1H07OAbawunX0EAzou8UeBUUwYUG7J+2UnhC X-Received: by 2002:a17:906:4d58:: with SMTP id b24mr7179436ejv.263.1569581191779; Fri, 27 Sep 2019 03:46:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569581191; cv=none; d=google.com; s=arc-20160816; b=Qkds6ttfQDUNvtiCAzT0B6y3FvYOh6h50XjWet4UYKcc7PD55M7IgIE5lcSAK6EMue Vgf+PXN4LvCpFbbv+XzO6qfLY+kafbJuTlRIs75R9gs4JjfnNlF3iJIhlytKk9GjJSW1 +vFeEUAe31R8olMCcYy4se86J7+oGbFkMWzWt4OIs60cVRmVtcgQFCk7p0ByvMgVsaE2 PZ+LuL6qZKuqbc8xE1dAjhjbLhQ3tDCHCSRtUHGHWHKx0JmrHV3rNUD/KtMrduFYy/lP Oa0j1P+j+EqWgnxmWYuUX8WqcN90Vh9gKfZQUFg56DHuI37ddi6yQNqZgmYqO225mRHR pgkA== 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=vXb04VjXRBJNbgvHa2d9acJn1MaM26eV6wZi//UGg2A=; b=TzrBtTTi4T8eFRNoWP2KUsmNLxDV5J8qrOrLIHwd1Oryz9WBKcKNSQzcVbLNnpBeIU tnpJe+jDtSKT53/JK6KICVwdDhciO3X+jwtsFGjaPeMmHiZCxqaOZQrCGoM64G4D5aMQ X9S7lLI/sYbmsSVGOcgXKfqLjFYPVQg8gJoa+gwkXERrzXjwwK5hZDyD+fBu667Rhz9N FgfXXOUzX9B0Kdf0GTCKqVcl5TsSZH29kOcu+aSRcmUr3ejVUNkvuGhCGwDAKd5LgTxa 3BF2J4x2CYKRxhhSPwGNny5jw0CZ2f+VOyQJu500Iy3EDLMhND4kEOFN36Flq7kJhQy5 4CpQ== 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 e48si1298017eda.130.2019.09.27.03.46.06; Fri, 27 Sep 2019 03:46:31 -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 S1727272AbfI0Knl (ORCPT + 99 others); Fri, 27 Sep 2019 06:43:41 -0400 Received: from mx2.suse.de ([195.135.220.15]:39508 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726179AbfI0Knk (ORCPT ); Fri, 27 Sep 2019 06:43:40 -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 50BF2AF43; Fri, 27 Sep 2019 10:43:37 +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:43:33 +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="=-TTn77CsG6HpjG9UNDv8f" 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 --=-TTn77CsG6HpjG9UNDv8f 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 [ 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 --=-TTn77CsG6HpjG9UNDv8f 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/4FAl2N59UACgkQlfZmHno8 x/4Z6Af/YYUR7sSrY9UKKrQHLe/gNtaid1RF/GLam6IO+PNRXjDCXklGqHNArz0u DiHhodmi3k93pPeSduHZCvR6IqLWr6zkWsZdRmFb/IvdJedaO3R3xls8ciJDcqDX PqASlawX+MV78w4Oa8WTW4Ny+BBpzuuvsLZlLa3A1KaSkGk9TCiDlGp/FdUbbYAP XeKFVV229oiagfQraVRydyq+9iDGlWanMADV2QuzkusZFtz29/kmEP0aiKEme8Q2 cBpx/PVWnl1S+pLXUVk0VYUDXN2NevrCZgvbonXAUP/ctmZlYQvgthi6jMT9Z4jC JeInmX+aSPbCZ7SIjMGeJmsJl3KFkQ== =E3mP -----END PGP SIGNATURE----- --=-TTn77CsG6HpjG9UNDv8f--