Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2728234pxb; Tue, 21 Sep 2021 06:28:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0CZyzDv6E+Q1JXIE1wHvrWak10kPMxFgpZgilO3W6Nz018ScUclLW/RcGdZJIkEL05OVi X-Received: by 2002:a17:906:2505:: with SMTP id i5mr34541551ejb.450.1632230914474; Tue, 21 Sep 2021 06:28:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632230914; cv=none; d=google.com; s=arc-20160816; b=wM34Z44CUnkVeOJZj6G125O70Cvykji7pvmr6yOw+qX/ILzytMSyEtsOJmyNgs/vev zgh9B1LYPBQYzYIu+w6GQvpDulYZdADsAzl21BnpyyGy/saEILTghBKuiJdCVRJBHAOt HGB7zLuM8qp9uLivDvfCS1T0OOn3XajuyQEHYBJBqoztUhkezsi+c7Qh2eycD9frKXG8 UvgTliy1VQUrM/iHvMHW1FfNQzrFqCVUSfiUhRGQH3mbaHxMTsNcipntlfUNHVbTOuwt APNRGaTh0NPJrTH8bKaIxPxNtP5MN7PpiQm8BabxLj4LOD4LDA+0uLUKcXDJKETj67j5 0Lmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:references:in-reply-to:user-agent:subject:cc:to:from :date:dkim-signature; bh=wQuO8izXOG9jisgArSNnzAfoi7ywDch/eMphXmwo30s=; b=CMY6raZnD/fN3klmi6V5CV+csuI+34hMZEYV8dkyZhZDUDB2yEpC9iys3eOKqfL52u 4q2/aMoBIJVrwzwV1p7ZGfqe/zBs9blIMDB0zASvxSZMM3HjrWBS5/OtJllIhLrTaLeg Ur/xGxMpJqC75Fi7uTixrhGGtaHK8viXqwT/dXZGNc0Yz4mdvKRlZR4HdAYKbw4OTOSr 1oBO5TGhPtSHybWIr+JsPfCXnk6acDxLRfhO7M3XaHSOinb90D17TLyVeNnCbS7XGjTy vC5qDzp7S7fqccT1Q1Kg1lqpBiH84fOt8WMGmLH9ilBu9zPivpoSmkiGliwQ6HSsjIhk Fl0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=i1jSkmGn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n24si19564178edt.361.2021.09.21.06.28.08; Tue, 21 Sep 2021 06:28:34 -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; dkim=pass header.i=@chromium.org header.s=google header.b=i1jSkmGn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232957AbhIUNZk (ORCPT + 99 others); Tue, 21 Sep 2021 09:25:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231658AbhIUNZj (ORCPT ); Tue, 21 Sep 2021 09:25:39 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DD4CC061574 for ; Tue, 21 Sep 2021 06:24:11 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id k23so14396892pji.0 for ; Tue, 21 Sep 2021 06:24:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:user-agent:in-reply-to:references :message-id:mime-version:content-transfer-encoding; bh=wQuO8izXOG9jisgArSNnzAfoi7ywDch/eMphXmwo30s=; b=i1jSkmGnMkevvu9xk+mg9I+kzvRGylUKLX72O5ED1bwMYAWFjErFIZ0+RfQ/LGqmRT DxnagITP+RUe4/z5sGB9VKt9Vl/r60h++1Rt0fMEeiva62IWkPwVzDT7PmoZkNXVZc8Z ednx1gzrikLIyyM0+6pVECLtUsGNp4o6Da71g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:user-agent:in-reply-to :references:message-id:mime-version:content-transfer-encoding; bh=wQuO8izXOG9jisgArSNnzAfoi7ywDch/eMphXmwo30s=; b=BjsoHvmnD5bUuK2z+P6Gq2C7rR/jzcufxcjPg+0mRQbnbz5FrlNK5yfYVPzMozOE7i J5NzEY6yGpbS23zSQe16D0M8B0r2EapQ15xiuQiEgxkuhj8c1Yf3wVJ9Axq7yMt40uvL E7Z7JxD39yKkYYQeptfChD3AHQK5Gy0uvsPnjGSMKtLuDaFt83AReyrGMoqzWuRdvbV6 7sGteEOlQoulvK/Xf3TNaQ4/xIZeRHdkuGlgP7PCWpNneF4sygg0GKrtdiND49jISVPx +n2BL6txjP+PlhxTMxPkz2MfTu53yydO2cAgUNdDBVYrvaYXSFnITCXRS1oPe9dL7uuK z8Pg== X-Gm-Message-State: AOAM532DmtaMgtZiU3ILFRsQj6Tr4VeOSFE9wQYRfXpuiJIu1+eW0fTK f0aR4fNM8KJUXOdv8VZk1MsIlw== X-Received: by 2002:a17:90b:1b0b:: with SMTP id nu11mr5327709pjb.74.1632230650798; Tue, 21 Sep 2021 06:24:10 -0700 (PDT) Received: from [127.0.0.1] (173-164-112-133-Oregon.hfc.comcastbusiness.net. [173.164.112.133]) by smtp.gmail.com with ESMTPSA id x13sm17520273pff.70.2021.09.21.06.24.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Sep 2021 06:24:10 -0700 (PDT) Date: Tue, 21 Sep 2021 06:24:07 -0700 From: Kees Cook To: sxwjean@me.com, x86@kernel.org, linux-mm@kvack.org CC: Xiongwei Song , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Andy Lutomirski , Gabriel Krisman Bertazi , "Chang S. Bae" , Al Viro , Arvind Sankar , Alexey Dobriyan , Oleg Nesterov , Balbir Singh , Jens Axboe , Lai Jiangshan , Dave Hansen , Peter Zijlstra , Andrew Morton , Arnd Bergmann , "David S. Miller" , Kim Phillips , Yazen Ghannam , Davidlohr Bueso , Stefan Metzmacher , Marco Elver , "Eric W. Biederman" , Christophe Leroy , linux-kernel@vger.kernel.org Subject: =?US-ASCII?Q?Re=3A_=5BPATCH_0/2=5D_Use_generic_code_for_v?= =?US-ASCII?Q?irtual_address_of_randomization_of_x86?= User-Agent: K-9 Mail for Android In-Reply-To: <20210921110252.2593542-1-sxwjean@me.com> References: <20210921110252.2593542-1-sxwjean@me.com> Message-ID: <4EB3D825-264D-447A-8C55-FA0CE8BC31F6@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On September 21, 2021 4:02:50 AM PDT, sxwjean@me=2Ecom wrote: >From: Xiongwei Song > >Hello, > >The two patches are to use generic code for randomization of virtual >address of x86=2E Since the basic code logic of x86 is same as generic >code, so no need to implement these functions on x86, please see the >details in comments of patch 2=2E Hi! The other patches do not seem to have arrived; I only see 0/2=2E -Kees > >Please review it=2E > >Cc: Thomas Gleixner >Cc: Ingo Molnar >Cc: Borislav Petkov >Cc: "H=2E Peter Anvin" >Cc: Andy Lutomirski >Cc: Gabriel Krisman Bertazi >Cc: "Chang S=2E Bae" >Cc: Al Viro >Cc: Arvind Sankar >Cc: Alexey Dobriyan >Cc: Oleg Nesterov >Cc: Balbir Singh >Cc: Jens Axboe >Cc: Lai Jiangshan >Cc: Dave Hansen >Cc: Peter Zijlstra >Cc: Andrew Morton >Cc: Arnd Bergmann >Cc: "David S=2E Miller" >Cc: Kees Cook >Cc: Kim Phillips >Cc: Yazen Ghannam >Cc: Davidlohr Bueso >Cc: Stefan Metzmacher >Cc: Marco Elver >Cc: "Eric W=2E Biederman" >Cc: Christophe Leroy >Cc: linux-kernel@vger=2Ekernel=2Eorg > >Xiongwei Song (2): > x86: Rename TIF_ADDR32 to TIF_32BIT > x86/mm: Randomize va with generic arch_pick_mmap_layout() > > arch/x86/Kconfig | 2 +- > arch/x86/include/asm/compat=2Eh | 7 +- > arch/x86/include/asm/elf=2Eh | 2 +- > arch/x86/include/asm/page_64_types=2Eh | 6 +- > arch/x86/include/asm/processor=2Eh | 4 +- > arch/x86/include/asm/thread_info=2Eh | 4 +- > arch/x86/kernel/process=2Ec | 5 -- > arch/x86/kernel/process_64=2Ec | 4 +- > arch/x86/mm/mmap=2Ec | 112 --------------------------- > include/linux/compat=2Eh | 4 + > mm/util=2Ec | 18 ++++- > 11 files changed, 37 insertions(+), 131 deletions(-) >