Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp6548827ybn; Sun, 29 Sep 2019 23:06:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxdMt/+oli5XOviMleMR2WpeXdTxhH5OBx8NZLcXGeps1KAYRjwPflbhGnQrf8803R3lP1h X-Received: by 2002:a17:906:a2c7:: with SMTP id by7mr17750092ejb.13.1569823576317; Sun, 29 Sep 2019 23:06:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569823576; cv=none; d=google.com; s=arc-20160816; b=jnw89FHn4asr3kpfxbBsmbNGNHSlFkG6sqGQ7XzWtmIMgs1/csX1p+Dx7iVulfD652 lYvEEQyLUKyO/+E34l5LCLa2W4Y3+aZ8wG3p2aQ3zfwBFxVh1yEFwRGfJZE8/oN3+6wh T1H2/XWbJAm7Cd10s75u1Y2CcNfmI2F6mpciW95PMXXftSKwYNK4SWqYC2ZItT0n3z9j YdmIxIYoW2rkPF+oukLvuFbhxwOfhc80QqdrUtk+zRbf0y/35zg++S9DyaYF5tPGUcl3 v6eo9k0UGVIM9QRW9OvuC94ZsKiYKkPBu5XYtEVSFMyBjdVrSk1rdFa6ikL7djPpcsl+ fyfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=Fjk0klSYABTqCF5sFdsjgvAIAla/kChqyCj9TYKize0=; b=qdpvS2ksLWXI8Hwx9V+TzMzrWbPLfZd0+960S9xw7NpWcNE+oY8wi9W7SAxSdUl6+Q N9Ji8Adi4+haxaoMWpR3p1xShfzDBo8IzjH/xj64OzsbxAN497BqiJcEl7hU3e2KtzGp OIP5QiR2eFPJi3+541yp1CQz0JRyuGXEnbUmPBPYq2HGUf2fOyL6pDR0EkdgiuXpFsa0 8LLJ/zs8EHQhUOdy+qlcbPYX6B70Sv3L/3WzfkOCLIVokg5Rd7sFAFhE8BFsNfPE/mgq llAAvGv8LqYKPNMcpa9LLhy04UfKncN95Y++M+Wx5CH+TJPy2aPZ8aRogQUQ3OPk0ixk B5Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=CDj6+GMG; 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 h14si7205488edk.315.2019.09.29.23.05.51; Sun, 29 Sep 2019 23:06:16 -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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=CDj6+GMG; 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 S1729533AbfI3GFD (ORCPT + 99 others); Mon, 30 Sep 2019 02:05:03 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:20323 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725767AbfI3GFD (ORCPT ); Mon, 30 Sep 2019 02:05:03 -0400 Received: from mail-vs1-f44.google.com (mail-vs1-f44.google.com [209.85.217.44]) (authenticated) by conssluserg-02.nifty.com with ESMTP id x8U64s0r025410; Mon, 30 Sep 2019 15:04:55 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com x8U64s0r025410 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1569823495; bh=Fjk0klSYABTqCF5sFdsjgvAIAla/kChqyCj9TYKize0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=CDj6+GMGJU7z0RPnmHqPyb2W0xC+NoGJV0Kc7Ab9MlTiXSh7G+8jA2Mii4/1ycNmQ SphMTG9JN9U01uhTzXUi8Yl7oti06VwfDY8B1bl/cavsg9QtCMIWHhgEG/NqkRCyD2 fHRireT2HxVJbYmmBlI1nh9JsO0YEUFaDmySyvRvAyaJszhlnlU4R6aVetkaKkgslN qc7XKaAvjFHMmO1O1ck2Z5G4DPB5cfKzSrgkn5ee1ymZ4krwszbN8CIM+i7piPVhm1 vhQ2IYaD4tQvgEwObe8ZxsqUg8K4Z86UHIVqixOvkQCWvUspUrD8sjQ3/CzXGsr4O/ ungeXpgT+EJyQ== X-Nifty-SrcIP: [209.85.217.44] Received: by mail-vs1-f44.google.com with SMTP id d204so5929068vsc.12; Sun, 29 Sep 2019 23:04:55 -0700 (PDT) X-Gm-Message-State: APjAAAVPnXG0c/L/d7ObNsVJ48SAFQwgGG+6H/k2dtZ929XAIPAkofFa kGCrX6sG9IPxasJBwWp7YWS1S/bosGuOfiWvPYM= X-Received: by 2002:a67:1e87:: with SMTP id e129mr9153690vse.179.1569823494293; Sun, 29 Sep 2019 23:04:54 -0700 (PDT) MIME-Version: 1.0 References: <20190830034304.24259-1-yamada.masahiro@socionext.com> In-Reply-To: From: Masahiro Yamada Date: Mon, 30 Sep 2019 15:04:18 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] compiler: enable CONFIG_OPTIMIZE_INLINING forcibly To: Nicolas Saenz Julienne Cc: Andrew Morton , Ingo Molnar , Borislav Petkov , Linus Torvalds , Nick Desaulniers , Miguel Ojeda , linux-arch , Linux Kernel Mailing List , Catalin Marinas , Russell King , Will Deacon , Stefan Wahren Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi. On Fri, Sep 27, 2019 at 7:58 PM Nicolas Saenz Julienne wrote: > > 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. > > > > 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'. > > > > This is not a problem for x86 since it has been long used by > > arch/x86/configs/{x86_64,i386}_defconfig. > > > > I am keeping the config option just in case any problem crops up for > > other architectures. > > > > The code clean-up will be done after confirming this is solid. > > > > 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_setsockopt() > 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 > > I posted a fix: https://lore.kernel.org/patchwork/patch/1132459/ Thanks. -- Best Regards Masahiro Yamada