Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp49064ybh; Tue, 21 Jul 2020 16:05:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdt/5efR2uhKcsMFq4foefq2XJ9uIyU9jAZeaULN0w+O+dVSXw6wDIC5ZB4V95p0zLA7s+ X-Received: by 2002:a17:906:a449:: with SMTP id cb9mr26469845ejb.115.1595372748500; Tue, 21 Jul 2020 16:05:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595372748; cv=none; d=google.com; s=arc-20160816; b=hVQq4t3ICwyD77Ndsex8pZ984HqpCQBjkxRc5UTWGFmE8U/2ci61zj4pPI0x+3GOBd mUvqHVMzPmtspwH1Hyy3IIYyNlCy+52Z6DnH/bFTSBZ+IZKJl9sqG7YrijPGJbpzTLUf yd9Fe2ddnIMFFWTLPDCpUoy6UuMo3osIbZlV1nc5dXjO3iWKWSHSHuK9bG+pK92nGTzB CTxqmPVgpW8P7+hKL+N83m1hmUlfrr0epPseLIw2JD0ITLmBo3doI//s8pnNHDuGyRev dhOzE9pckr8e9sJSXhCYoAwKiRNyxwdnl6aJbRzDVWjWTLCiRbmXcHW9kR0RLKQfTlvA 8Vmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Kx0Hqea23204+1Vxqe4zJbIPov8gmWienWErS47JZPw=; b=cJR/qBek5mBPjLMqKpxI2kZu6HfrHd7Lmgja8YQ2LWPPIu+fDMGJEkSjqolAyyjVdf TyQiRKsKWNTx2kNR/msK05RdoFajVKKIEsiL/uDWK7oSPSbUf2x4jjFMH6yJEqynKj33 d/clhV7ty7ZGJof6swcnLJfyvLKubdZp9VHD8Tf769TibfvIIY2k0HkHgEEkv1viCKTY HD2Le/GGx+lxS1cK2xU7HoBDVXUVvV3kAj5QxHcCGKuhWGBkDWYAZPT7FT0lUanHFgDU NLRP/BItC6em69MzgEJzDBse2Prv760vRJEzopB3qm393FOnMhR1ZxwgmK9NYrEFOu2+ 47Mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="JV31/m4u"; 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 g7si12406740ejr.748.2020.07.21.16.05.24; Tue, 21 Jul 2020 16:05:48 -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="JV31/m4u"; 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 S1731228AbgGUXFA (ORCPT + 99 others); Tue, 21 Jul 2020 19:05:00 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:58016 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726555AbgGUXE7 (ORCPT ); Tue, 21 Jul 2020 19:04:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1595372698; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Kx0Hqea23204+1Vxqe4zJbIPov8gmWienWErS47JZPw=; b=JV31/m4udR6AcIfnthBj1CTr/8aQ1gWb3n1zRh6UcGpjms0CWgr9/2tLLH/lcKp4RCtCTQ 5e3+8tA4RVepSG7FU5+1Vv67kfq1V5pS6+ojx2y+jgEnqZeHnD8wqoxufLl6RbXv0/Q1tG qV2LjxqjA3Lb5o4kWXBFgn6k0lv9KA8= 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-203-sUelSXFeOdqLma5mtRQ2jw-1; Tue, 21 Jul 2020 19:04:54 -0400 X-MC-Unique: sUelSXFeOdqLma5mtRQ2jw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9D3741005510; Tue, 21 Jul 2020 23:04:53 +0000 (UTC) Received: from treble (ovpn-113-106.rdu2.redhat.com [10.10.113.106]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F279369316; Tue, 21 Jul 2020 23:04:49 +0000 (UTC) Date: Tue, 21 Jul 2020 18:04:42 -0500 From: Josh Poimboeuf To: Joe Lawrence Cc: live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] docs/livepatch: Add new compiler considerations doc Message-ID: <20200721230442.5v6ah7bpjx4puqva@treble> References: <20200721161407.26806-1-joe.lawrence@redhat.com> <20200721161407.26806-2-joe.lawrence@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200721161407.26806-2-joe.lawrence@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 21, 2020 at 12:14:06PM -0400, Joe Lawrence wrote: > Compiler optimizations can have serious implications on livepatching. > Create a document that outlines common optimization patterns and safe > ways to livepatch them. > > Signed-off-by: Joe Lawrence There's a lot of good info here, but I wonder if it should be reorganized a bit and instead called "how to create a livepatch module", because that's really the point of it all. I'm thinking a newcomer reading this might be lost. It's not necessarily clear that there are currently two completely different approaches to creating a livepatch module, each with their own quirks and benefits/drawbacks. There is one mention of a "source-based livepatch author" but no explanation of what that means. Maybe it could begin with an overview of the two approaches, and then delve more into the details of each approach, and then delve even more into the gory details about compiler optimizations. Also the kpatch-build section can reference the patch author guide which we have on github. -- Josh