Received: by 10.213.65.68 with SMTP id h4csp209786imn; Fri, 6 Apr 2018 19:43:01 -0700 (PDT) X-Google-Smtp-Source: AIpwx49uX3nBf+CEFNugMgwAOJ920ZVKQkt3gw4TpHlLP43cwRZZP34lea4S+gdnzSXNm/m4SiKs X-Received: by 2002:a17:902:b789:: with SMTP id e9-v6mr23941071pls.246.1523068981486; Fri, 06 Apr 2018 19:43:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523068981; cv=none; d=google.com; s=arc-20160816; b=xioUGSKx8QnhEgqOmX+tZFzobr2LtBmwzqrO/sgZxi1PxDwylQMZNCe5e+Bl4SCwQj e0NEBJ1KBbXxUPJ7tBJief7l5Uef6kuxbjctZecwEnlMaHeB5GKIGWofCLVneTzcVg5b yoi6fGexGmRi1vh2J38Jojua+sNobdICjuyXuLzXPi+yz2uv1LWVAQ0L/itik3q9Q4uK 1U1lw1mGmfqJqpyDCoLq8RavY0y8QQDsHONe3x0REyoVplEzekzUZBD3QdhW0pOhcqz7 tnMFrB0pGPEeUs9eWn6smnl2AzzsLZk650WHh84VT2NxIlwnMUG+vztHViWwEC8+SrgK HnRA== 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=w3t/7rqdVUiXdpznIfZ39alX6v4Nf1t0iJ880dWxdwM=; b=L71yio+TTDRfJu178y4mcC1fJS7DWYpR6Bnkfgh2KB/ViB8hdoWm6D++nhJ/UGHLlv SlJvEvxubm+xw2CDMOJAffEMQrSOXvqEb2q2hlWzN7ZMptUBqYyedK9sFnWjMz10NENG 7fa4OV7AezPMzeX9lK2lqLYaeGStoF+t8KIoRoA3Lionzz+Wffn7Plx8FTk9u/klqf+S hLFplDpkCTmznSmAtdScdDVe7oIv+YxjuheOTjB+InNAa2P//I1Fm8Jz1y5y3WTJV57z cHvjhF6M8b8tTjxqZRHLkAfLJp70OOsAoCn06v2aSgvozCkPJ+PiJIGA19E+gJJHYgaG ghFw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z23-v6si10186382plo.540.2018.04.06.19.41.55; Fri, 06 Apr 2018 19:43:01 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752011AbeDGCgv (ORCPT + 99 others); Fri, 6 Apr 2018 22:36:51 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:41012 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751949AbeDGCgu (ORCPT ); Fri, 6 Apr 2018 22:36:50 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B3DE34068023; Sat, 7 Apr 2018 02:36:49 +0000 (UTC) Received: from treble (ovpn-120-110.rdu2.redhat.com [10.10.120.110]) by smtp.corp.redhat.com (Postfix) with SMTP id 4537DBDC3C; Sat, 7 Apr 2018 02:36:47 +0000 (UTC) Date: Fri, 6 Apr 2018 21:36:46 -0500 From: Josh Poimboeuf To: Joe Lawrence Cc: live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] selftests/livepatch: introduce tests Message-ID: <20180407023646.k3gjrgjwzhwgu6fq@treble> References: <1522266588-11806-1-git-send-email-joe.lawrence@redhat.com> <1522266588-11806-2-git-send-email-joe.lawrence@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1522266588-11806-2-git-send-email-joe.lawrence@redhat.com> User-Agent: Mutt/1.6.0.1 (2016-04-01) X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Sat, 07 Apr 2018 02:36:49 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Sat, 07 Apr 2018 02:36:49 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jpoimboe@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 28, 2018 at 03:49:48PM -0400, Joe Lawrence wrote: > Add a few livepatch modules and simple target modules that the included > regression suite can run tests against. > > Signed-off-by: Joe Lawrence > --- > lib/Kconfig.debug | 12 + > lib/Makefile | 2 + > lib/livepatch/Makefile | 18 + > lib/livepatch/test_klp_atomic_replace.c | 69 +++ > lib/livepatch/test_klp_callbacks_busy.c | 43 ++ > lib/livepatch/test_klp_callbacks_demo.c | 132 ++++++ > lib/livepatch/test_klp_callbacks_demo2.c | 104 ++++ > lib/livepatch/test_klp_callbacks_mod.c | 24 + > lib/livepatch/test_klp_livepatch.c | 62 +++ > tools/testing/selftests/Makefile | 1 + > tools/testing/selftests/livepatch/Makefile | 8 + > tools/testing/selftests/livepatch/config | 1 + > tools/testing/selftests/livepatch/functions.sh | 202 ++++++++ > .../testing/selftests/livepatch/test-callbacks.sh | 526 +++++++++++++++++++++ > .../testing/selftests/livepatch/test-livepatch.sh | 177 +++++++ > .../selftests/livepatch/test-shadow-vars.sh | 13 + > 16 files changed, 1394 insertions(+) > create mode 100644 lib/livepatch/Makefile > create mode 100644 lib/livepatch/test_klp_atomic_replace.c > create mode 100644 lib/livepatch/test_klp_callbacks_busy.c > create mode 100644 lib/livepatch/test_klp_callbacks_demo.c > create mode 100644 lib/livepatch/test_klp_callbacks_demo2.c > create mode 100644 lib/livepatch/test_klp_callbacks_mod.c > create mode 100644 lib/livepatch/test_klp_livepatch.c > create mode 100644 tools/testing/selftests/livepatch/Makefile > create mode 100644 tools/testing/selftests/livepatch/config > create mode 100644 tools/testing/selftests/livepatch/functions.sh > create mode 100755 tools/testing/selftests/livepatch/test-callbacks.sh > create mode 100755 tools/testing/selftests/livepatch/test-livepatch.sh > create mode 100755 tools/testing/selftests/livepatch/test-shadow-vars.sh I love this. Nice work! As you and Petr discussed, it would be nice to get rid of some of the delays, and also the callback tests will be very important. -- Josh