Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1097096ybi; Fri, 14 Jun 2019 08:34:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqy1uVzsseMrMbB+dXIW2ksCorc8wUH87K6Mk1tTffzCws+iz3DnAZVWz5B8E+s4mU3eG+Yq X-Received: by 2002:a63:c508:: with SMTP id f8mr36959364pgd.48.1560526465666; Fri, 14 Jun 2019 08:34:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560526465; cv=none; d=google.com; s=arc-20160816; b=lbwcx9cd3dkxt7H1/ar6mr6w9Yeqzyauugql3h0Z7B0MdS1ZHEz3aYIoiwxNgp/Lwo 0jNHe9ILjCgfY56H3884cMJgmAz4+BDSkzGh8FIG0dNWQxfoiJZtDyqFrrmo1p3h4rZt YbHLdw+h495rBv2KIPZQS3nEEGUxbm4i0XlUICMD/Iw4Vhk2o1w9Qen6KaVBdBpWnpF0 7Myb00c7qzjRL3KY5c2j9Savef6/2Q+VeKPrmrCHzr78YRdFaRKrWw+nsjAa667vylfu YWFSTUXZXnawy0oqR7b4SQmihygx/VmKnh9pwY1SwQ8fRLMRMH1wLDz3i4IgKMfLNvx6 cIcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=aH3gK9v8tKykePmoqb2fTSoLTmJZNNo3+edMZP+r0Gk=; b=jKFO1/V+49fE0PrOISkeXqmToTjsXLW63u6/Mdr6me9msTH3zk/VfRXebmFMYx+TIa lvdDsYbTC0+5TL8j7TWrkGz38sId4wujUFByyXI+7CCZOv4vqK93XvhEJYBifSZD1VWS bBIjYrEqpY4X+sRo4buOET8A6f1ha/kvAtd9r04/LRoCrll67W/umPg6aofZJcSHdYo3 UMzE9fRW0KthwzcMJbt57ZtMQ222oC7NIBT6tbRMpAUk5lLd90iUuv3c1YuVXMh4iHYZ 5JCV0FN7hGxcPhM8gqzUBs+GznriO4wdmzMWkdK8uhMqXjGiLxPK53CmwmPgyrhjHwAK 6lzg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y2si3034760pgh.524.2019.06.14.08.34.09; Fri, 14 Jun 2019 08:34:25 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726764AbfFNPdV (ORCPT + 99 others); Fri, 14 Jun 2019 11:33:21 -0400 Received: from mga18.intel.com ([134.134.136.126]:64871 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725780AbfFNPdV (ORCPT ); Fri, 14 Jun 2019 11:33:21 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Jun 2019 08:33:20 -0700 X-ExtLoop1: 1 Received: from yyu32-desk1.sc.intel.com ([10.144.153.205]) by fmsmga001.fm.intel.com with ESMTP; 14 Jun 2019 08:33:20 -0700 Message-ID: Subject: Re: [PATCH v7 03/14] x86/cet/ibt: Add IBT legacy code bitmap setup function From: Yu-cheng Yu To: Dave Hansen , Andy Lutomirski Cc: Peter Zijlstra , x86@kernel.org, "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Arnd Bergmann , Balbir Singh , Borislav Petkov , Cyrill Gorcunov , Dave Hansen , Eugene Syromiatnikov , Florian Weimer , "H.J. Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Randy Dunlap , "Ravi V. Shankar" , Vedvyas Shanbhogue , Dave Martin Date: Fri, 14 Jun 2019 08:25:16 -0700 In-Reply-To: References: <20190606200926.4029-1-yu-cheng.yu@intel.com> <20190606200926.4029-4-yu-cheng.yu@intel.com> <20190607080832.GT3419@hirez.programming.kicks-ass.net> <20190607174336.GM3436@hirez.programming.kicks-ass.net> <34E0D316-552A-401C-ABAA-5584B5BC98C5@amacapital.net> <7e0b97bf1fbe6ff20653a8e4e147c6285cc5552d.camel@intel.com> <25281DB3-FCE4-40C2-BADB-B3B05C5F8DD3@amacapital.net> <3f19582d-78b1-5849-ffd0-53e8ca747c0d@intel.com> <5aa98999b1343f34828414b74261201886ec4591.camel@intel.com> <0665416d-9999-b394-df17-f2a5e1408130@intel.com> <5c8727dde9653402eea97bfdd030c479d1e8dd99.camel@intel.com> <328275c9b43c06809c9937c83d25126a6e3efcbd.camel@intel.com> <92e56b28-0cd4-e3f4-867b-639d9b98b86c@intel.com> <1b961c71d30e31ecb22da2c5401b1a81cb802d86.camel@intel.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2019-06-10 at 15:59 -0700, Dave Hansen wrote: > On 6/10/19 3:40 PM, Yu-cheng Yu wrote: > > Ok, we will go back to do_mmap() with MAP_PRIVATE, MAP_NORESERVE and > > VM_DONTDUMP. The bitmap will cover only 48-bit address space. > > Could you make sure to discuss the downsides of only doing a 48-bit > address space? The downside is that we cannot load legacy lib's above 48-bit address space, but currently ld-linux does not do that. Should ld-linux do that in the future, dlopen() fails. Considering CRIU migration, we probably need to do this anyway? > What are the reasons behind and implications of VM_DONTDUMP? The bitmap is very big. In GDB, it should be easy to tell why a control-protection fault occurred without the bitmap. Yu-cheng