Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp298853lqb; Tue, 4 Jun 2024 11:39:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUIHfPImbAAn5zrxZ7/UIku8w35OM/dAhjPc9UlYZKHMTl7WEI9SNCl0d0b+ZVq+B4tE7PtyCIOXxVPuySvdDMV7R78xKNA0RrqRRTTRA== X-Google-Smtp-Source: AGHT+IFdY77nZvgqjQPzQ5espKM2s4eNpJ0pyTbzat7UvxiIWKFcx0wjmMMTxGf5dlWM4JJBfJ3K X-Received: by 2002:a05:6e02:174a:b0:374:9c39:18dc with SMTP id e9e14a558f8ab-374b1f5a105mr1170735ab.30.1717526358413; Tue, 04 Jun 2024 11:39:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717526358; cv=pass; d=google.com; s=arc-20160816; b=eVZOhHStYkoMV7iIuE40AdDtMpyk7hEKztqexRCIvuS2A51uY7c4UakcCAyo+fCkaS Grpa4EBbwvHomMkY8lfe5PNJwAI76xTKKs6gLrgs6iNldkRzo2wG6zeW2zsqkNKuDM57 7l5y0sbBSh8mLdC2a+99Okc2chn3R3PanBvUMSQj29JQuDFPDG4xrjlKceSht95ZfTo/ ayuBp1zZp78QQ0T3fi78QmGO680TVNFh4RRxeQ6D15Qqcxau2yvHO3nLf6MTGqfhsgRe YNExqMnI58A0OsVrDHtSNq9kysaxn6BZJlsy4z0y7etCrWz1w0mtrmTZFm/es1k7c6kE 4EnQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/91xk/bJbfVq3tbd0vXxIGIhiCMBEED20dA29kFKyVw=; fh=Fj7ycsb67FOnqmUUHDS8cSPb7t5mhKxzzpd/9cMHBug=; b=ZBOO1nb6BMsGXLKWOmDR1585zSPAyRs7rt2WZ7IVAWNwIXW+HOi87QgGYnb+WCmj8V huaNpw6465S/dhwmukUWZFBfoFDTK14s4tIA74rNKmRb1BHUiVV5Uh8SvvlBFKNv0QKy HWKFue0u7QMk17s6fpc+aU+RBwlcPL9ctRFEpqeKx4i3pSqPzmv2DY8DJKULodn2p056 1nq2iETbs0i3ZMAOlPkSp11afZKAfJsNzjytz/XXyR5ut5bDqDkZc814uf1EFIqhlWZN miIjUClI3Ycxy9jYqGB2srVRa86ZQ4wqRzZHc+fCq/hHj9wKi7aizcws//zH0n7Fnd9A 3w9Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BsoflhVV; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-201231-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201231-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c91e940c4asi5920969a12.503.2024.06.04.11.39.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 11:39:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201231-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BsoflhVV; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-201231-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201231-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 8CC46B21981 for ; Tue, 4 Jun 2024 18:10:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4411C14A4D2; Tue, 4 Jun 2024 18:10:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="BsoflhVV" 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 EB381149006 for ; Tue, 4 Jun 2024 18:10:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717524648; cv=none; b=poCALOj1xRi3L6ylvNzVWTnfcd/Hyz3Fy4FLL1O8/O2Mbih4bSSLG4Zoi8nB+JHKxgAXlcU32HZU93SFnDI5fk4+OTj1ealkgY5KVHf/I3mqGwPReQsre3mYZlH91wlLWdAbwUPcgqnYGukCwcCmvWcpuawrHS0qzxC5H01rI9Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717524648; c=relaxed/simple; bh=2J2obyLXuZLm84OoVhVs+u+eDYt1l0tpsTiknUdmAOs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CJjvYWwStbGU6KUsvZ2LqHo5YZBWnASNEaUZJZ1FcVBz9Giv7oNr2E/Fx3ZcPjCaREKMt5wrOmGjFveUeNvByyvZFTqz6o95XoB5X+fWA2uSmsLOP0YwkyFLeZhagp9RIoSIINv/JTeL+Ux8RAShXCf76oCDTXjUd9sRgS1B//o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=BsoflhVV; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1717524645; 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=/91xk/bJbfVq3tbd0vXxIGIhiCMBEED20dA29kFKyVw=; b=BsoflhVVn4Ih5phA/heVKJE2hOZr3JXsDVlZZ/S8/zNUqL9k6vdVX/37+brQc1ee1TjbJ8 321YLxQfMAJi9IZHOw/lHmcgfOLw1s7qyOmpw3T90lchQnWvYYm6/uEhZoSfYqo4xbVz+O QzdAicnC3qAetWQzCKPs0G37vVttuxc= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-615-UkLDSWeDNxC6OgfwtjWxcA-1; Tue, 04 Jun 2024 14:10:42 -0400 X-MC-Unique: UkLDSWeDNxC6OgfwtjWxcA-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E452A29ABA03; Tue, 4 Jun 2024 18:10:41 +0000 (UTC) Received: from redhat.com (unknown [10.22.32.74]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 791C120230B8; Tue, 4 Jun 2024 18:10:41 +0000 (UTC) Date: Tue, 4 Jun 2024 14:10:40 -0400 From: Joe Lawrence To: Marcos Paulo de Souza Cc: Josh Poimboeuf , Jiri Kosina , Miroslav Benes , Petr Mladek , Shuah Khan , live-patching@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] selftests: livepatch: Test atomic replace against multiple modules Message-ID: References: <20240603-lp-atomic-replace-v3-1-9f3b8ace5c9f@suse.com> 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 Content-Disposition: inline In-Reply-To: <20240603-lp-atomic-replace-v3-1-9f3b8ace5c9f@suse.com> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 On Mon, Jun 03, 2024 at 02:26:19PM -0300, Marcos Paulo de Souza wrote: > Adapt the current test-livepatch.sh script to account the number of > applied livepatches and ensure that an atomic replace livepatch disables > all previously applied livepatches. > > Signed-off-by: Marcos Paulo de Souza > --- > Changes since v2: > * Used variables to stop the name of other livepatches applied to test > the atomic replace. (Joe) > > Changes since v1: > * Added checks in the existing test-livepatch.sh instead of creating a > new test file. (Joe) > * Fixed issues reported by ShellCheck (Joe) > --- > Changes in v3: > - EDITME: describe what is new in this series revision. > - EDITME: use bulletpoints and terse descriptions. > - Link to v2: https://lore.kernel.org/r/20240525-lp-atomic-replace-v2-1-142199bb65a1@suse.com > --- > .../testing/selftests/livepatch/test-livepatch.sh | 138 +++++++++++++-------- > 1 file changed, 89 insertions(+), 49 deletions(-) > > diff --git a/tools/testing/selftests/livepatch/test-livepatch.sh b/tools/testing/selftests/livepatch/test-livepatch.sh > index e3455a6b1158..ca770b8c62fc 100755 > --- a/tools/testing/selftests/livepatch/test-livepatch.sh > +++ b/tools/testing/selftests/livepatch/test-livepatch.sh > > [ ... snip ... ] > > # - load a livepatch that modifies the output from /proc/cmdline and > # verify correct behavior > -# - load an atomic replace livepatch and verify that only the second is active > -# - remove the first livepatch and verify that the atomic replace livepatch > -# is still active > +# - load two addtional livepatches and check the number of livepatch modules nit: s/addtional/additional as Miroslav spotted in v2 Otherwise LGTM, Acked-by: Joe Lawrence -- Joe