From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 11D46C433F5 for ; Sat, 7 May 2022 06:35:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383464AbiEGGjh (ORCPT ); Sat, 7 May 2022 02:39:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229980AbiEGGjc (ORCPT ); Sat, 7 May 2022 02:39:32 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B96A31836B; Fri, 6 May 2022 23:35:46 -0700 (PDT) Received: from dggpemm500021.china.huawei.com (unknown [172.30.72.54]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4KwHd1099KzXdlN; Sat, 7 May 2022 14:31:01 +0800 (CST) Received: from dggpemm500013.china.huawei.com (7.185.36.172) by dggpemm500021.china.huawei.com (7.185.36.109) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sat, 7 May 2022 14:35:44 +0800 Received: from [127.0.0.1] (10.67.108.67) by dggpemm500013.china.huawei.com (7.185.36.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sat, 7 May 2022 14:35:43 +0800 Message-ID: Date: Sat, 7 May 2022 14:35:41 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [RFC PATCH v4 22/37] arm64: kernel: Skip validation of kuser32.o Content-Language: en-US To: Mark Rutland CC: Peter Zijlstra , , , , , , , , , , , , , , , References: <20220429094355.122389-1-chenzhongjin@huawei.com> <20220429094355.122389-23-chenzhongjin@huawei.com> <20220505092448.GE2501@worktop.programming.kicks-ass.net> <51ce37b5-f527-9743-36d3-50247cb0939f@huawei.com> From: Chen Zhongjin In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.108.67] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemm500013.china.huawei.com (7.185.36.172) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/5/6 18:06, Mark Rutland wrote: >> However for my build kuser32.o content is in .text > > We should be able to move that into .rodata; it's never executed in kernel context. > >> and there is only `vdso` symbol in .rodata without `vdso32`. > > That means you're not building with CROSS_COMPILE_COMPAT, and so we can't build > the 32-bit VDSO. > >> And for defconfig the CONFIG_KUSER_HELPERS=y is on. > > Yes. > >> According to your description, it seems something wrong here? > > Sorry, I was wrong about how we linked the kuser32 code. > > I believe we can move that into .rodata by adding: > > .section .rodata > > ... to the start of that. It works. Thanks! > I think that'd be a nice cleanup to do regardless of objtool. > > Thanks, > Mark. > .