Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp274351lqh; Fri, 31 May 2024 00:21:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVfxfc9rOyiv/Ncm6+H3hRG3LhlxZ2WUq5VPqKlz2Xme7eEvK7QcgA02PUGx8O19F+5//+YnAvWPwgutloVYzp8xAL1Nx7OvdqIxpli6Q== X-Google-Smtp-Source: AGHT+IEqkT4k+E3yxEShnA7Dn8gTM9oETqmFqsHjG7F2UsBtAC+rTae/ykYOhHR/qscekpFli+ZE X-Received: by 2002:a17:902:da89:b0:1f6:2ab1:6037 with SMTP id d9443c01a7336-1f6370ad379mr14006495ad.53.1717140092333; Fri, 31 May 2024 00:21:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717140092; cv=pass; d=google.com; s=arc-20160816; b=vPpbAB8nZzZU1uFcCjoyvazdjU3ExlD1CcVauArNS65DvGKLFwUAyN9+xNqv00ImSa X/y//tGY43OlIJku6ysc9JkG5o18Eh1E+gTn7muAwDKIcgxBTkz2n+C4vnLJ7UNDiIXd yX/GEHfEoKKABm4UqDuKb9kfuAKH5QFsR590GTr2kPo1FBjOjriCI+nuyfQq7hpBy5bg g23SR/ugIHbgRKq8/mrU+TL5AmScruElUxfXnbXEZSoA7g/qT6GQ3WuIzjrFV1Xhbhbw 0lms96ZLOAVjV756Hb4/EMv1Ittj0WJjMnAK5DAQg2tg39WZXSv5hoX+ORwYAsEMhmhD SoNg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:message-id:in-reply-to:subject:cc:to:from :date:dkim-signature:dkim-signature:dkim-signature:dkim-signature; bh=mME7ND+1fw4Ag9qCWwBXJVKGO9KiVcUzOs9hS3quG9A=; fh=Q3vnkluPzXmqvaCFLv2MeJsAyuarEpYLIcG1Cg3g5L0=; b=kiQqoqqSRy7+6bWQ90gna97hNo5kAriU91LMAlvY0KIv/mEYyKCqkO+uJlm80btQG2 grz6/xqw62UzTmUyrmEzWdKQ2beQ/iSq29oVNlzvP3hXCCWQ+ULEnOolnYvk23FSENuv auPkmg2ZmBgMtU1HY0y2T7DCQBxS9KsNKvFD7D/nNvx3+CahAfu0oM94T0uaqFq2f3bd iwSvkAZPWGuOnRWMeLgBqOKnMqJVKH1k681I+aQ3xc0xs3z6cPAwAwe0P3DCD8kTN6pi bjKu/llie12XORmHIKfvtQAcg5ziwPfXDgMKWzHukStfKrFPvNDv54UfdpA8R3tBfvxZ AWFw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=06CD4QJc; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=06CD4QJc; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-196398-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196398-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f6323eb090si10980505ad.386.2024.05.31.00.21.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 00:21:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196398-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=06CD4QJc; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=06CD4QJc; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-196398-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196398-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id CF6DC283670 for ; Fri, 31 May 2024 07:21:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 837DA811F7; Fri, 31 May 2024 07:21:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="06CD4QJc"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="QNGDBlmy"; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="06CD4QJc"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="QNGDBlmy" Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4F425187569; Fri, 31 May 2024 07:21:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717140067; cv=none; b=e56gB9fuy0F/eBRWG2zXDvuyit7/F81n0RGBk4axBAQ3rsaVm5+HtetvPlRDQkXtvB4cbA2bMUGywEiIcq6GhpHz/UKAkRRZzukbo9yi1UjrCAkjM+U9j5xFf4GILjd5OBVm5ZAKRGlczEablOsjXZs7R0XL6KgDTbh08JTxKGQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717140067; c=relaxed/simple; bh=WYR+7i4NKLmwsDynggsJJNLVcGwGcGmywKQVHvO9Yig=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=gtXhB0OdIDKdhurJX3YpiXmCDPsFO6uz4FJ0M0aRzXJT0jxLTrV+nOAqhxJWzU6zfu7jec4qVc3Ro3sPtH33bYqIas4zqo7SflbY4d9qMaI39Tdw2LtBH1Bu/SvD5pRRZY03uL0pjjUwDYqmJaw+pnH8nOkg5cTP1CnPyq+pD1o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz; spf=pass smtp.mailfrom=suse.cz; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=06CD4QJc; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=QNGDBlmy; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=06CD4QJc; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=QNGDBlmy; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.cz Received: from pobox.suse.cz (unknown [10.100.2.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 6175121A5C; Fri, 31 May 2024 07:21:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1717140063; h=from:from:reply-to: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=mME7ND+1fw4Ag9qCWwBXJVKGO9KiVcUzOs9hS3quG9A=; b=06CD4QJcoiAlFmY3pOIXXoEB/iSty75+1WbC0oHmoDBUSUKV3rVAHMNdjFOXVOMOYrRYuf H/45hV9nC+M8FfgBdE+8l0AaRVl0LzJmY9DRtAHvqOyMIB0F+TLiqdh5ntW0lx6RHDNBk9 qENIPJhgJvE+pAJVZyuUksKJfqyniiA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1717140063; h=from:from:reply-to: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=mME7ND+1fw4Ag9qCWwBXJVKGO9KiVcUzOs9hS3quG9A=; b=QNGDBlmy2dpLwHhipLQA8OCuXl8t2lisB48rOLWk+gU/P4HInZv3ytg8t8fAGcXYQbNjzl nKvY98TTMmbAUeAA== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1717140063; h=from:from:reply-to: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=mME7ND+1fw4Ag9qCWwBXJVKGO9KiVcUzOs9hS3quG9A=; b=06CD4QJcoiAlFmY3pOIXXoEB/iSty75+1WbC0oHmoDBUSUKV3rVAHMNdjFOXVOMOYrRYuf H/45hV9nC+M8FfgBdE+8l0AaRVl0LzJmY9DRtAHvqOyMIB0F+TLiqdh5ntW0lx6RHDNBk9 qENIPJhgJvE+pAJVZyuUksKJfqyniiA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1717140063; h=from:from:reply-to: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=mME7ND+1fw4Ag9qCWwBXJVKGO9KiVcUzOs9hS3quG9A=; b=QNGDBlmy2dpLwHhipLQA8OCuXl8t2lisB48rOLWk+gU/P4HInZv3ytg8t8fAGcXYQbNjzl nKvY98TTMmbAUeAA== Date: Fri, 31 May 2024 09:21:02 +0200 (CEST) From: Miroslav Benes To: zhang warden cc: Petr Mladek , Josh Poimboeuf , Jiri Kosina , Joe Lawrence , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] livepatch: introduce klp_func called interface In-Reply-To: <2551BBD9-735E-4D1E-B1AE-F5A3F0C38815@gmail.com> Message-ID: References: <20240520005826.17281-1-zhangwarden@gmail.com> <2551BBD9-735E-4D1E-B1AE-F5A3F0C38815@gmail.com> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Flag: NO X-Spam-Score: -4.30 X-Spam-Level: X-Spamd-Result: default: False [-4.30 / 50.00]; BAYES_HAM(-3.00)[99.99%]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_SEVEN(0.00)[7]; ARC_NA(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_COUNT_ZERO(0.00)[0]; MID_RHS_MATCH_FROMTLD(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_SOME(0.00)[] Hi, On Fri, 31 May 2024, zhang warden wrote: > > Hi Bros, > > How about my patch? I do think it is a viable feature to show the state > of the patched function. If we add an unlikely branch test before we set > the 'called' state, once this function is called, there maybe no > negative effect to the performance. you have not replied to my questions/feedback yet. Also, I do not think that unlikely changes anything here. It is a simple branch after all. Miroslav