Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C96E2C80 for ; Mon, 15 Nov 2021 23:40:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1637019616; 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=7HlFFpHLOnkuYOySwouZ7s09DUlv+hLAMcjMTeeobTQ=; b=RSlDA0wj+76jahzm/5m2mIhbBqb6ipscrAJEA0c7ppr5j/IbnRwSNBWDS+Pm1jpheRitZi /kLURq5HZAYdYyx6gpcWPeOoZELHyisW+m3J9CClPWedAP7SXe20rLLIxq1YM9T0djonIE WEbIZbOMl840T7W5fdDgs5MsHo9kgbU= Received: from mail-ot1-f72.google.com (mail-ot1-f72.google.com [209.85.210.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-341-Gk0McQBOOwyhtICOt8yaNA-1; Mon, 15 Nov 2021 18:40:15 -0500 X-MC-Unique: Gk0McQBOOwyhtICOt8yaNA-1 Received: by mail-ot1-f72.google.com with SMTP id 61-20020a9d02c3000000b00553c97d94abso11498018otl.9 for ; Mon, 15 Nov 2021 15:40:15 -0800 (PST) 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:message-id:references :mime-version:content-disposition:in-reply-to; bh=7HlFFpHLOnkuYOySwouZ7s09DUlv+hLAMcjMTeeobTQ=; b=plDoFyK1NkrjQBrT9kkvTADrSNYItgoOjIKBLCLgPDka77w6gquA8G/8ItjrLEWCjb YawFequZUnzxH6AWgLzS9pufylrMnwc0cOcsmdEcrmKnkRo8DCUoeVRe+/hz04jZsR2c ofEdzbQ0vhqh+qgTPGnikCu/FqXfcgieedt89u0m7kpKPSX9mzFLftNGEG9XG2i8tzqY SpQQtMlAm66pOvZBSIckkoIQogfSQd1I2QpGZqTETdp7T/fTkpfCoGw35mvI+FAaOL6T /z0Qt8yo/SMpKxZTSaToum9Q3LAsr0MsCfuBiQMTpNFZfCrPjps9QPJ86kdAIGbPem2T 1/KA== X-Gm-Message-State: AOAM531Psmpl7e7FzFv19rBS+/GvGwiXPu1DP0AK6GgGF/BT/psMU7CG /gMz9n07zbjWcM3fLFKLAyalHGTDNnEmFETkuALv2qg8nwmOHKBr3KoWsDSgXKT9qM86QxEzaiw 5p24Gg8SHyKBnTQ== X-Received: by 2002:a05:6808:1802:: with SMTP id bh2mr2439572oib.142.1637019615083; Mon, 15 Nov 2021 15:40:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAnEdzKPq9JP3nnZ3nNYQbcWfDg+gSGSyz459dA3eAqEL3e6U/qm4mcDqoW5PIR90cfpX6dA== X-Received: by 2002:a05:6808:1802:: with SMTP id bh2mr2439540oib.142.1637019614874; Mon, 15 Nov 2021 15:40:14 -0800 (PST) Received: from treble ([2600:1700:6e32:6c00::35]) by smtp.gmail.com with ESMTPSA id j20sm2289939ota.76.2021.11.15.15.40.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Nov 2021 15:40:14 -0800 (PST) Date: Mon, 15 Nov 2021 15:40:11 -0800 From: Josh Poimboeuf To: Joe Lawrence Cc: Miroslav Benes , Peter Zijlstra , David Laight , Nick Desaulniers , Bill Wendling , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , "mark.rutland@arm.com" , "dvyukov@google.com" , "seanjc@google.com" , "pbonzini@redhat.com" , "llvm@lists.linux.dev" , "linux-toolchains@vger.kernel.org" , live-patching@vger.kernel.org Subject: Re: [PATCH 20/22] x86,word-at-a-time: Remove .fixup usage Message-ID: <20211115230327.m3zswzgrshotocju@treble> References: <20211109210736.GV174703@worktop.programming.kicks-ass.net> <2734a37ebed2432291345aaa8d9fd47e@AcuMS.aculab.com> <20211112015003.pefl656m3zmir6ov@treble> <20211113053500.jcnx5airbn7g763a@treble> <68b37450-d4bd-fa46-7bad-08d237e922b1@redhat.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <68b37450-d4bd-fa46-7bad-08d237e922b1@redhat.com> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=jpoimboe@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Disposition: inline On Mon, Nov 15, 2021 at 08:01:13AM -0500, Joe Lawrence wrote: > > This reminded me... one of the things I have on my todo list for a long > > time is to add an option for a live patch creator to specify functions > > which are not contained in the live patch but their presence on stacks > > should be checked for. It could save some space in the final live patch > > when one would add functions (callers) just because the consistency > > requires it. > > > > Yea, I've used this technique once (adding a nop to a function so > kpatch-build would detect and include in klp_funcs[]) to make a set of > changes safer with respect to the consistency model. Making it simpler > to for the livepatch author to say, "I'm not changing foo(), but I don't > want it doing anything while patching a task" sounds reasonable. > > > I took as a convenience feature with a low priority and forgot about it. > > The problem above changes it. So should we take the opportunity and > > implement both in one step? I wanted to include a list of functions in > > on a patch level (klp_patch structure) and klp_check_stack() would just > > have more to check. > > > > As far as I read the original problem, I think it would solve for that, > too, so I would say go for it. Sounds good to me. Miroslav, do I understand correctly that you're volunteering to make this change? ;-) -- Josh