Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp703245ybi; Fri, 7 Jun 2019 15:39:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxERaNw0gPB72teZ5GNtOfmOC4kI9DUdV7xYO2SbRMy7tmvaRnkhDt+0dDyyJh5qKkmjsea X-Received: by 2002:a17:90a:ac18:: with SMTP id o24mr8570077pjq.116.1559947154194; Fri, 07 Jun 2019 15:39:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559947154; cv=none; d=google.com; s=arc-20160816; b=L2WQolKLpYPDSmXLZBHQhNoZRE0GonQvzvXTn9tsiVGK+JGF1Fhbx9H+bYncgdra39 5sjBdW+OE7IaPTwGIDXbjcl6S9gXCKlEsoxNlvE6Vsa3aVOUd4aeGqLe9lYxuWyl3WJd kvxs2yjGW8TR953uVnjVZ659aTVNuwMGfY6h8qK9JWdrZ71/I27WnFA5wIMfErKEtC/7 geWOa/Eoqt4XLyqXscr6XbhNs5HX52KTepmGAu4YQOWkm0GjKHMkdg9C4q4RNGWEoTxD JvcXqpviS0/KpWtVBh4fUbntxWciHiFDbkFFJr/1VTGupLuQT44p5CJ+tYa3NSnd6MOx /r9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=hraLxNELwM1NZ3lrrobGX779u9y1WVgm2X9KZ6MnzVU=; b=f1bIlxFki7FSNUh5yO/0L38bQACesQcK01QZbGkA1raDBZFDFtCxIsPRTB5CzoVnaR Q5EklBz4rBmBslu/eyXbCvzmaR4DgdFuBgi4TK5Fh9hK0mA7+S+g75+dTqU4ng6599vf Y8iJft/ueEu5KP7lznYiJ2DFZ91ahuLYiRHlHOHjNRUxjCHviviVzQPS6/+tj5xuboRE v3ZNmhbvPzjBEFzZ/uNHS0q17UKt6kleQeA0Wg7n+pmAP8js81OgYMS9YManJdcg/bXw cz4su4WCNxyc9hE+Y+EcJNDO2cwE4vrFZLTnk4BMlKhAXCO8wLO0sKy8WrrTWDlXQD0q SSuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=fAQwIxWx; 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 k4si3037756pgq.293.2019.06.07.15.38.58; Fri, 07 Jun 2019 15:39:14 -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=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=fAQwIxWx; 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 S1731451AbfFGW1U (ORCPT + 99 others); Fri, 7 Jun 2019 18:27:20 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:46311 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731343AbfFGW1U (ORCPT ); Fri, 7 Jun 2019 18:27:20 -0400 Received: by mail-pg1-f196.google.com with SMTP id v9so142354pgr.13 for ; Fri, 07 Jun 2019 15:27:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=hraLxNELwM1NZ3lrrobGX779u9y1WVgm2X9KZ6MnzVU=; b=fAQwIxWx36GcX9oIEt7f+jVMHginM+LONwFdfMNqwIhko+8c0QHYbEF8bNlyIqbI9j NQNEvOKC/rk/tH80WaLOxYfIeLrNuLs39w+NLcIj3q54Q271veY67rrkNFKpfdqfZfj7 zJroDKjRWmVDQ90XGnNScGmFaTzL9du1I7zDspqbrM6NsrWdM1i+JbmO4PVz/elLIgeu 6BrmpgiXUF9dz/S6HaFuV5ThOeSRhvAkGNBoMZMOPzaVaIgbNw2niqpkC+G9ce07EdDH qP3J8OITji6PPDgyiEOb7pbi42mIE/z0MQOvU/LZER5Na/CvkkoUFll6uwuMASm3splg LFTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=hraLxNELwM1NZ3lrrobGX779u9y1WVgm2X9KZ6MnzVU=; b=WhC807rLH5L4MD3vP3zTgtBQ137eF3YwjOTUen35udCudBgWtxk9BSBq6aEFRJxN6I PaoWREEmVE8rnkPT4vS/o2PdkTdTRx9x9IP0yT3zAyE/KxQ4vZM+jDxuz+Rb3ITrGovS Iid7GSHdUaZxsGirtMBXoUd0z+v360uz1NanwDxdqkVCbLuc9P0CLOZV80vwU6AP8hl7 p6kteZQiAAjloVh3ZKpzdPAwZ+Y+dNSkFOLjCqvLW47+GfqNoIJO+Ekrm2dyIV5VkQDo Bj6GY9YsS1eJhKBXUq/EJrz1mDtkm/k2V7/foSrYNlrOSqoEef1YY8sKbpXXkFzTkZiz NNBw== X-Gm-Message-State: APjAAAX4ndQIvimGMwzmEDTNSUvJhvwXz2dPeV6l/sCKPJV5M8fgvysF uzhQyuv5Qe2OtryrbzmP+RWqDQ== X-Received: by 2002:a62:3287:: with SMTP id y129mr55579697pfy.101.1559946439420; Fri, 07 Jun 2019 15:27:19 -0700 (PDT) Received: from ?IPv6:2600:1012:b018:c314:403f:c95d:60d3:b732? ([2600:1012:b018:c314:403f:c95d:60d3:b732]) by smtp.gmail.com with ESMTPSA id 2sm3147331pfo.41.2019.06.07.15.27.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Jun 2019 15:27:18 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: [PATCH v7 03/14] x86/cet/ibt: Add IBT legacy code bitmap setup function From: Andy Lutomirski X-Mailer: iPhone Mail (16F203) In-Reply-To: Date: Fri, 7 Jun 2019 15:27:16 -0700 Cc: Yu-cheng Yu , 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 Content-Transfer-Encoding: quoted-printable Message-Id: <4F7D0C3C-F239-4B67-BB05-31350F809293@amacapital.net> 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> <4b448cde-ee4e-1c95-0f7f-4fe694be7db6@intel.com> <0e505563f7dae3849b57fb327f578f41b760b6f7.camel@intel.com> To: Dave Hansen Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Jun 7, 2019, at 2:09 PM, Dave Hansen wrote: >=20 > On 6/7/19 1:06 PM, Yu-cheng Yu wrote: >>> Huh, how does glibc know about all possible past and future legacy code >>> in the application? >> When dlopen() gets a legacy binary and the policy allows that, it will ma= nage >> the bitmap: >>=20 >> If a bitmap has not been created, create one. >> Set bits for the legacy code being loaded. >=20 > I was thinking about code that doesn't go through GLIBC like JITs. CRIU is another consideration: it would be rather annoying if CET programs c= an=E2=80=99t migrate between LA57 and normal machines.=