Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp849509ybh; Tue, 21 Jul 2020 09:17:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0s0ba2qeHDGR0qIjW2jjTpBvtRoxn/uStS6vRuY5Te/UXCPee5aQxPN/DbEEsBZOa+xbd X-Received: by 2002:a17:907:6fc:: with SMTP id yh28mr25650723ejb.267.1595348229841; Tue, 21 Jul 2020 09:17:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595348229; cv=none; d=google.com; s=arc-20160816; b=P4aTqORaaRdwdqBWr3B93fR7hJwxQx0WFDa0FaTE2Nug55bO5H8d2R3pvUqbBu/Xjl a8Nrw7EHthu2iwqJZHvd6ZJKw56gWQTGdiIqWTDQpdQnz6OgT6LE1m2soiUA1WOIzzgi BjtyErAUPO18UzHxie6HrQ0Z2XSpAGC6Y74UHZf+Okg9+ZAX7w9vAUIV9yTB4+6zbX7u 84jDdvH6irsZL8jZuV4m/4CBClbFiTgCCdrlyonqNohBdk1l40gtsXFotB3OBEaWzNR+ 6fEhOZi1lD1G0nUtOVvRs1NJoGHryGsGWKQuoW5Tk0v2dimgN3ng+sRhoee8Zf5L0fTy 2/NQ== 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 :message-id:date:subject:to:from:dkim-signature; bh=nU4GN8DzMVkB2B4BGU+FEKLwNEwIFvzsJZa/gMO7RWg=; b=MwYFRbwiIXu0ZWFdD622CKjMY7pT/nmNhAK3PgXbiAoVUs3RdHjWBjG25SJIkkJWxG wYDmlIm8SWDUoDCuTgNSxFhHZEKmKZCwkTg5c2asYlsO5vsNIBqglpQsSxbxa++xg8xJ X/S2y9dclFccLOJ4TmdFPM+Cr6QUPUAJGsxpQW0IZiOrh3g8W+7gMank6EVvruBHmcwh 1JMXlRoCOZCT8ZjauREAdmblNITaXDHz90HV44koOJGAcT1snl+lw0MN/VT9QsK7XhRE mNY8w/sZHSXwrfmatLr/j8/Z51ZPYOelsF14Ci/56THAC0EBSA5Uppd1m/ygCU+Pjm+1 HI4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Xx89Zf9h; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h5si12709413eji.26.2020.07.21.09.16.46; Tue, 21 Jul 2020 09:17:09 -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=@redhat.com header.s=mimecast20190719 header.b=Xx89Zf9h; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730277AbgGUQO0 (ORCPT + 99 others); Tue, 21 Jul 2020 12:14:26 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:46524 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727860AbgGUQOZ (ORCPT ); Tue, 21 Jul 2020 12:14:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1595348064; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=nU4GN8DzMVkB2B4BGU+FEKLwNEwIFvzsJZa/gMO7RWg=; b=Xx89Zf9hSmeAYAfKdSdIFrHYwX2EGWouS4DwXRrowhusz4stSstJ48oM3Np+JJy0OxNjN2 NBtnwMaJt84D0DOWwW058VNpVofV/dKgFsIE9SIg1DCVXYMlKKot0g/9BV7IInU15V75BA LN4lO2EfKMG9EG1o6PxEbaV0X4kv5DE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-223-xGPIJL10Pvahp9if4m2pyA-1; Tue, 21 Jul 2020 12:14:17 -0400 X-MC-Unique: xGPIJL10Pvahp9if4m2pyA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2EFBD800469; Tue, 21 Jul 2020 16:14:16 +0000 (UTC) Received: from jlaw-desktop.redhat.com (ovpn-114-255.rdu2.redhat.com [10.10.114.255]) by smtp.corp.redhat.com (Postfix) with ESMTP id D18958730C; Tue, 21 Jul 2020 16:14:15 +0000 (UTC) From: Joe Lawrence To: live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] livepatch: Add compiler optimization disclaimer/docs Date: Tue, 21 Jul 2020 12:14:05 -0400 Message-Id: <20200721161407.26806-1-joe.lawrence@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In light of [PATCH] Revert "kbuild: use -flive-patching when CONFIG_LIVEPATCH is enabled" [1], we should add some loud disclaimers and explanation of the impact compiler optimizations have on livepatching. The first commit provides detailed explanations and examples. The list was taken mostly from Miroslav's LPC talk a few years back. This is a bit rough, so corrections and additional suggestions welcome. Expanding upon the source-based patching approach would be helpful, too. The second commit adds a small README.rst file in the livepatch samples directory pointing the reader to the doc introduced in the first commit. I didn't touch the livepatch kselftests yet as I'm still unsure about how to best account for IPA here. We could add the same README.rst disclaimer here, too, but perhaps we have a chance to do something more. Possibilities range from checking for renamed functions as part of their build, or the selftest scripts, or even adding something to the kernel API. I think we'll have a better idea after reviewing the compiler considerations doc. [1] https://lore.kernel.org/lkml/696262e997359666afa053fe7d1a9fb2bb373964.1595010490.git.jpoimboe@redhat.com/ Joe Lawrence (2): docs/livepatch: Add new compiler considerations doc samples/livepatch: Add README.rst disclaimer .../livepatch/compiler-considerations.rst | 220 ++++++++++++++++++ Documentation/livepatch/index.rst | 1 + Documentation/livepatch/livepatch.rst | 7 + samples/livepatch/README.rst | 15 ++ 4 files changed, 243 insertions(+) create mode 100644 Documentation/livepatch/compiler-considerations.rst create mode 100644 samples/livepatch/README.rst -- 2.21.3