Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AD7EAC61DA4 for ; Fri, 3 Feb 2023 16:04:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232409AbjBCQEq (ORCPT ); Fri, 3 Feb 2023 11:04:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231216AbjBCQEn (ORCPT ); Fri, 3 Feb 2023 11:04:43 -0500 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C81E9E9F7 for ; Fri, 3 Feb 2023 08:04:40 -0800 (PST) Received: from zn.tnic (p5de8e9fe.dip0.t-ipconnect.de [93.232.233.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 28EB71EC056D; Fri, 3 Feb 2023 17:04:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1675440279; 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: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=XnZGp/+lSExcuzhYLTWQkvwciK483VsilpIhN9a04dE=; b=MixwCGRru3FmNLTI/7W9dcuJYglOCqPbnG90uctWWjXdGVEpdvsgv537vVdnZUoR+p95Q/ HD6tarxtBuC787EMqYVsx+ILFYZfehbgeOFAgApWheFli1Sj1qpsfkGfECWeWSGnVC+hp6 HOcRcGvLTpTEUkPO7tspzRgwRLpxGeM= Date: Fri, 3 Feb 2023 17:04:35 +0100 From: Borislav Petkov To: Peter Zijlstra Cc: x86@kernel.org, Masami Hiramatsu , "Kirill A. Shutemov" , Andrew Cooper , Josh Poimboeuf , linux-kernel@vger.kernel.org Subject: Re: [RFC] x86/alternative: Support relocations in alternatives Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 03, 2023 at 04:04:55PM +0100, Peter Zijlstra wrote: > How about: > > apply_relocation(u8 *buf, size_t len, u8 *dst, u8 *src, size_t src_len) > > Because I get horribly confused by the whole instr and repl thing. And I get confused by the @src thing. :-) When it says repl, I know it is the replacement instruction and its length. You could add kernel-doc as a help I guess... Rest on IRC. :) -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette