Received: by 10.192.165.156 with SMTP id m28csp52389imm; Tue, 17 Apr 2018 06:27:05 -0700 (PDT) X-Google-Smtp-Source: AIpwx48ij92l4UzVjMk5Hye9VtkrsXHewXcTinE+MpndgXtru/IqapbxebfVz9JgQK+Nr/tL5Yrr X-Received: by 10.101.69.77 with SMTP id x13mr1827347pgr.429.1523971625265; Tue, 17 Apr 2018 06:27:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523971625; cv=none; d=google.com; s=arc-20160816; b=uovgi/5YP4Ahaoh8PJ5uw6buML2lPCRTEj/FDpcOjiE+A0Z38umQ5ItOJ2dfqStlDr r/E0tt+C/vs2dAim+Uq3jGbDSMvoDUG8Qc5GKs+PTOy0ILH9Ibg27UM5WYiE0fKmFlub +x3nqIU4bBUxTh7KwkTwhn1nOVsQBwrfA5RTWQQa+PNxA26l/RmbJJvgCHdObtoYldfW /7F/lK4nxWTHD80LhRSiz/GESP7yTOLmpnArXROrx8CMDOFX/WpcYOiGjWdMcLH5H0SK 6LJPEYkmH3qlTxL9iDQD7KXjh3whaKzAFequ/QBS8lFjl7uMQJA6fqWET0/1XbFCJ3Ka sJlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :arc-authentication-results; bh=ZOnmNTiHDd6ugJT1bJ4HS5XmvfzYJTrz+7E0cbTBhrA=; b=eS92nT62QL2T1tDgKqP5SDY8k/93SvUwyOc4Yt0Wy/V32lh/su08xf2mz54Th0TtsY tbRuL+D0YRYLDGt6DYdtEnQ6WyYsBA4bbTF9Jqj/a5oe9b4K2zDmsZEJSKA8/O7pAhBb 23x9R/2FC1ALKcxcgNmwSln7U1Dr1ktlGxEkS7PH+ygVpA/xvZB5ZmlUrcQ9WsOOLRPI JXeqvoTDstwUJGUtEtor2V5aWrKBspz4tMIj5k4HEaRyJRM2NRCB7OXFKJsYgHjV72pn eMQ1qswKhmziT+1++IDeh4Q3L3SPs3cHKMuQaC4FVqxwE3uAQDJPQGPEtSFQqviWv/Rq jOBg== 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 m18si11310089pgv.360.2018.04.17.06.26.50; Tue, 17 Apr 2018 06:27:05 -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 S1753562AbeDQNZd (ORCPT + 99 others); Tue, 17 Apr 2018 09:25:33 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:47948 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753074AbeDQNZb (ORCPT ); Tue, 17 Apr 2018 09:25:31 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BA15781A88A3; Tue, 17 Apr 2018 13:25:30 +0000 (UTC) Received: from jlaw-desktop.bos.csb (dhcp-17-208.bos.redhat.com [10.18.17.208]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5889B20BC8C7; Tue, 17 Apr 2018 13:25:30 +0000 (UTC) Subject: Re: [PATCH v3] selftests/livepatch: introduce tests To: Miroslav Benes , Petr Mladek Cc: live-patching@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Kosina , Josh Poimboeuf , =?UTF-8?Q?Libor_Pech=c3=a1=c4=8dek?= , Nicolai Stange , Artem Savkov References: <1523544871-29444-1-git-send-email-joe.lawrence@redhat.com> <1523544871-29444-2-git-send-email-joe.lawrence@redhat.com> <20180416150230.6ys6ya7alpodxp3d@pathway.suse.cz> From: Joe Lawrence Organization: Red Hat Message-ID: <771e3d3b-214f-a49c-20f8-d0e8a4baffac@redhat.com> Date: Tue, 17 Apr 2018 09:25:30 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Tue, 17 Apr 2018 13:25:30 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Tue, 17 Apr 2018 13:25:30 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'joe.lawrence@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/17/2018 04:06 AM, Miroslav Benes wrote: > On Mon, 16 Apr 2018, Petr Mladek wrote: > >> On Mon 2018-04-16 13:33:55, Miroslav Benes wrote: >>> On Fri, 13 Apr 2018, Joe Lawrence wrote: >>>> Thanks for reviewing. I'll hold off on posting v4 until Petr (and >>>> others) get a chance to comment. Perhaps there are other tests that >>>> would be helpful? >> >>> I think it would be useful to have tests for a stack checking and a >>> consistency. Nicolai has written some lately for our internal testing, but >>> it would take some time to transform them appropriately, I think. >> >> The future of the stack handling is not clear at the moment. We should >> wait how the discussion goes before spending time on test cases for >> the current behavior. Roger that on the patch stack discussion. Once we figure out where that is heading, we can create tests to verify that we're accurately following the new rules. > > You're talking about something different. We have to check stacks of all > tasks while patching in order to achieve consistency. Tests for that would > be useful. FWIW there is the "busy target module" test in this patch. It's main purpose is to verify the behavior of the callbacks in a situation where one livepatch target holds up the transition (aka the "busy mod"). If Nicolai has created test(s) that specifically target the stack safeness, even better for future inclusion. -- Joe