Received: by 10.192.165.156 with SMTP id m28csp613189imm; Mon, 16 Apr 2018 06:03:19 -0700 (PDT) X-Google-Smtp-Source: AIpwx48pZk1HIlfNq4vJtJZ4INp0TLhGDYchEgeiof2D+L+gZognrURRkdbIGlKKx+hKPeFXszVe X-Received: by 2002:a17:902:a609:: with SMTP id u9-v6mr15451818plq.56.1523883799333; Mon, 16 Apr 2018 06:03:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523883799; cv=none; d=google.com; s=arc-20160816; b=kC5JeJCeIVBUJxyp8nFyNk8n0bHksfHfWAYaT1KysVnkPKhXBZrRngx7c1k8ziqX1c tpOtrjH++hS9AsJFPVe3RbeGCyeXzY+XWz6bCaS3YvIbFvNhvJ9yC6C/eziq3bPkKFWb neRm5fcIG+lDLTkeDGV6wSvYd4JJiZ7s6+gPHMk5Z13M0kjY3k29A9EabViauvjWsNhd 2UF60oVZUhUv0KjNClVLuVfv9lCr5c0lYNw6uUrOSSo9NOQ4FwVDywrfpPzPb2QhckUT ApgxIpCKiOFeoRAhWaGSWJ5r7Z2ZQc4B5IlykOA7V9DzXvnmzRPGx0F5H52xCXryjEZu vc1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=4kN8lttRa++Ez+kz9G2ARvl7Ey2UIWmQUNDojhc2li4=; b=P1StGBOKtMIuQhCsyeJGucYwywqyhRo0CXcXypQDUOPyUlWHoeFhjV7zpxfyyvAzQw YrQG3bqmHIKmHkpjrbBH0x/20ToFjCWx9TJg4uFbaA34B6Kh40g0VY0LF0b18JMYn8sW Q/iEd/u7W9UuJP6G2ZnV9hRKpkzXSNV1RGXQQ6htvVjeSEspDL56TPKZugxogm66Pt0G A4MeUvmKU5bCWmbc+AAo4SsHwaS2Z+Ek2sHgByiLqgVSNtm2m0MA+rk1g7U/Rx/Q+K/h 1glphDMV7iXUc9ZZ6wETmsV1vdESrLPNlSnYiJBFCF/zKTROHTGYqpKdDBQW+j3+ZnQJ O36w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z63si6899728pgb.28.2018.04.16.06.02.25; Mon, 16 Apr 2018 06:03:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754207AbeDPMtv (ORCPT + 99 others); Mon, 16 Apr 2018 08:49:51 -0400 Received: from mx2.suse.de ([195.135.220.15]:43656 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752040AbeDPMtt (ORCPT ); Mon, 16 Apr 2018 08:49:49 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id E3DEFACEE; Mon, 16 Apr 2018 12:49:47 +0000 (UTC) Date: Mon, 16 Apr 2018 14:49:47 +0200 From: Petr Mladek To: Joe Lawrence Cc: live-patching@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Kosina , Josh Poimboeuf , Miroslav Benes , Libor =?utf-8?B?UGVjaMOhxI1law==?= , Nicolai Stange , Artem Savkov Subject: Re: [PATCH v3] selftests/livepatch: introduce tests Message-ID: <20180416124947.4ehk7xbxoiqrklue@pathway.suse.cz> References: <1523544871-29444-1-git-send-email-joe.lawrence@redhat.com> <1523544871-29444-2-git-send-email-joe.lawrence@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1523544871-29444-2-git-send-email-joe.lawrence@redhat.com> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 2018-04-12 10:54:31, Joe Lawrence wrote: > Add a few livepatch modules and simple target modules that the included > regression suite can run tests against. > > > diff --git a/Documentation/livepatch/callbacks.txt b/Documentation/livepatch/callbacks.txt > index c9776f48e458..6ca2801a6bb9 100644 > --- a/Documentation/livepatch/callbacks.txt > +++ b/Documentation/livepatch/callbacks.txt > @@ -116,490 +116,3 @@ virtnet_probe() initialized its driver's net_device features. A It might make sense to add a note about sample modules in lib/livepatch/ > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > index 64155e310a9f..e4a0e81542ff 100644 > --- a/lib/Kconfig.debug > +++ b/lib/Kconfig.debug > @@ -1932,6 +1932,18 @@ config TEST_DEBUG_VIRTUAL > > If unsure, say N. > > +config TEST_LIVEPATCH > + tristate "Test livepatching" > + default n > + depends on LIVEPATCH > + depends on m > + help > + Test various kernel livepatching features for correctness. > + The tests will load test modules that will be livepatched > + in various scenarios. It would be great to make a clue how to run the test. Something like: To run tests call: tools/testing/selftests/livepatch/test-callbacks.sh tools/testing/selftests/livepatch/test-livepatch.sh tools/selftests/livepatch/test-shadow-vars.sh This is inspired by config TEST_KMOD description. > + If unsure, say N. > + > endif # RUNTIME_TESTING_MENU > > config MEMTEST > diff --git a/lib/Makefile b/lib/Makefile > index a90d4fcd748f..98a38441afb0 100644 Otherwise, it looks great to me. Thanks a lot for getting this together. Best Regards, Petr