Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1147804rwb; Fri, 23 Sep 2022 08:46:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5QMs8lmiHftZL+Jt2/jaSjpuKcwzOtLfIB+bjDQKonHYR7+8QMMXjFnlhQsSCcOufHZcUM X-Received: by 2002:a17:907:78a:b0:782:2223:a7cd with SMTP id xd10-20020a170907078a00b007822223a7cdmr7409196ejb.532.1663947985753; Fri, 23 Sep 2022 08:46:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663947985; cv=none; d=google.com; s=arc-20160816; b=PMVHYmw0Pq/+v1qPzsDXPfDANkeBaeSQhhLoIMW9ZHQ2ZVfdWSCg0zEpAzki+xLolC eCCfmI3BXv0nle01BymsVID5HwsqroV+BMrdxmEf/D3RZFYuFoun0nepx1nOh9TTclg/ BfhvDuwuQAif2Ryqxj8aR6Q7ENuFjXeg+Ls3c0qN4GvOu6N9DBW3CtZ6e0E9+MVhlwrw Tg5r21403jeqH2D4fiwVVMmMt9HN1iHe4AP43/XL9TdjwqrEv3P1CsK3rJOt5s1i4qvp FzkvFygNc4TdxG05oPn31RODG2vwW+XwdQAKhhCiOnA81GaE/z5afwxSlP01f7j9Ej/D TVxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YQrlWL6wNFbRYikCHxQb3xp14YQTW/zz/u0eDQpZh5U=; b=VfEIm7HpYwMthXO6K9qnFV2V/3q8/0ifglRuGwBeFcWdVlnlzad3I9YKuxaVL/RUPw HXNvuSFsrTNTkNsVjcHP7yhjt83j7TqYtXKgbclC4dtvb/DEqGKUTmY6hPyeL+c9Uoii JIeLj/i3FuEYANdq9T1nKCZDFdT/3QH9TL4vNMCbATGiBBhwcqcPtuu8An6Fn1CzReWu Uz0Vt/rFs1Dt9FHVXcPfWG6D2hJ4SiUwBhXv0klvioqGDB6lxFyxwTMjNyoFQxNqIvT/ aaIx/CqH9HIFUXON7ZvRs5oBJT934lsNYzHLLEsSyMabMLrbgavH2W4LXUZ3EZFBsZ5K wVtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=SY5dKo+2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp1-20020a1709073e0100b0078200f886bbsi6270419ejc.361.2022.09.23.08.45.59; Fri, 23 Sep 2022 08:46:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=SY5dKo+2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231705AbiIWOum (ORCPT + 99 others); Fri, 23 Sep 2022 10:50:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230055AbiIWOuk (ORCPT ); Fri, 23 Sep 2022 10:50:40 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99FB7F1D50; Fri, 23 Sep 2022 07:50:38 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 38501219F9; Fri, 23 Sep 2022 14:50:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1663944637; 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=YQrlWL6wNFbRYikCHxQb3xp14YQTW/zz/u0eDQpZh5U=; b=SY5dKo+2rGkQTOEJ6mJAnQ1z7MCFJtli2MQp5nmsRex8xjp7v03xwyrhY2kHDXdPeeS/MU co/OMVRGrRhufxs/ZnRKTinTQTD/DsVhCUj7kQl3DgQTZdDSBW2dUOoXGRCyI2SRdVes4U KX8UwNmsmX0TN6cAsz1CvT7EwZeNrKM= Received: from suse.cz (unknown [10.100.201.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 1290C2C15A; Fri, 23 Sep 2022 14:50:37 +0000 (UTC) Date: Fri, 23 Sep 2022 16:50:36 +0200 From: Petr Mladek To: Song Liu Cc: live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, jpoimboe@kernel.org, jikos@kernel.org, mbenes@suse.cz, joe.lawrence@redhat.com Subject: Re: [PATCH v3 0/2] add sysfs entry "patched" for each klp_object Message-ID: References: <20220902205208.3117798-1-song@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220902205208.3117798-1-song@kernel.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 2022-09-02 13:52:06, Song Liu wrote: > I was debugging an issue that a livepatch appears to be attached, but > actually not. It turns out that there is a mismatch in module name > (abc-xyz vs. abc_xyz), klp_find_object_module failed to find the module. > Add a sysfs entry for each klp_object, so that it is easier to debug > such issues. > > Changes v2 => v3: > 1. Improve selftest. (Petr Mladek and Joe Lawrence) > > Changes v1 => v2: > 1. Add selftest. (Petr Mladek) > 2. Update documentation. (Petr Mladek) > 3. Use sysfs_emit. (Petr Mladek) > > Song Liu (2): > livepatch: add sysfs entry "patched" for each klp_object > selftests/livepatch: add sysfs test For both patches: Reviewed-by: Petr Mladek And I have pushed the patchset into livepatching.git, for-6.1/sysfs-patched-object. Best Regards, Petr