Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1530181yba; Thu, 25 Apr 2019 01:04:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqzHiMk3h1dUD6MRSDzkO1w6flUFSWBLCd7+C1SRsQB5hdutqfTy01cpjyziPgLkll07QOP/ X-Received: by 2002:a17:902:4481:: with SMTP id l1mr18746006pld.75.1556179491794; Thu, 25 Apr 2019 01:04:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556179491; cv=none; d=google.com; s=arc-20160816; b=MOG9ejxAn6B8CTt88JFLMHsi8YgmWXUQxNo64nXJomahIrEPVg6WpaU08tJRyH/Owd ZBfmWiK/fQJgm6lJWn1OL8xUm68KPAxTWOjjbCP4CAzO+N7jn/242I5eU3m2ckvrKCrN x93sKIb5h5nCmHmXs/gWui1SvndTeFmS7v/GAmhYs697P04v/QmpkxAD6KV25u1Y/nJq Yxq5v+oDLo8uaQASGd+f3WA344sgFAVSJvCEUjmlHilVT4q4zb2ffKJtBCOqSsAWodWT vXaPz+ZKW19Marsn1i6ONoSd55qYRe33aACZA7myiQJ/xZFmYOrqpi3BJvNfC+EjAe7A Bejw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:subject:cc:to:from:date; bh=dn68i4RpvUWoSauuR9L5ZpfLR4unFJfNcgEHD1qSSDY=; b=hIfRuHmMW8f77/eCj+os8IJGGWsMwTRItmXgSE4pO+MY4ll1/d+4RXd+tNsp7XS8r6 mPUolP8d0MzrKzTyVk5TnLCaqRegN0vWuLB0Bt3VaN9e9/cWquUIVzPdf+t4+aZ5vwz2 TFKuGdGHlUdLaO3GwTyAJNFygECPNj5XQZMcBJEHS5Pf53nDmBJyhGHkFuIKF7zAs+wR 2uia9nZmXgWXzWgCYgrIlgFaiOgghIkB6h5uuIherstHQbM7BvmAQP+pZ82anCD8nSRs hGt6hS/wCqtP5vXvbVZ8545dHAXt3OG6a/2gB2IT0POh70iTn1FEXO7qOjnNukcldgoh qQgQ== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x6si6507218pln.74.2019.04.25.01.04.36; Thu, 25 Apr 2019 01:04:51 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388866AbfDYDSp (ORCPT + 99 others); Wed, 24 Apr 2019 23:18:45 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:39738 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388178AbfDYDSp (ORCPT ); Wed, 24 Apr 2019 23:18:45 -0400 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x3P394eo146998 for ; Wed, 24 Apr 2019 23:18:44 -0400 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 2s31bd72k6-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 24 Apr 2019 23:18:44 -0400 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 25 Apr 2019 04:18:42 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp03.uk.ibm.com (192.168.101.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 25 Apr 2019 04:18:40 +0100 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x3P3IcIV49676478 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 25 Apr 2019 03:18:39 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B978A52054; Thu, 25 Apr 2019 03:18:38 +0000 (GMT) Received: from JAVRIS.in.ibm.com (unknown [9.124.31.152]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTPS id 867335205F; Thu, 25 Apr 2019 03:18:37 +0000 (GMT) Date: Thu, 25 Apr 2019 08:48:32 +0530 From: Kamalesh Babulal To: Petr Mladek Cc: Jiri Kosina , Josh Poimboeuf , Miroslav Benes , Joe Lawrence , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] livepatch: Convert error about unsupported reliable stacktrace into a warning References: <20190424085550.29612-1-pmladek@suse.com> <20190424085550.29612-2-pmladek@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190424085550.29612-2-pmladek@suse.com> User-Agent: Mutt/1.11.3 (2019-02-01) X-TM-AS-GCONF: 00 x-cbid: 19042503-0012-0000-0000-00000313E92A X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19042503-0013-0000-0000-0000214C40D6 Message-Id: <20190425031832.GA24416@JAVRIS.in.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-04-25_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=974 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904250020 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 24, 2019 at 10:55:48AM +0200, Petr Mladek wrote: > The commit d0807da78e11d46f ("livepatch: Remove immediate feature") caused > that any livepatch was refused when reliable stacktraces were not supported > on the given architecture. > > The limitation is too strong. User space processes are safely migrated > even when entering or leaving the kernel. Kthreads transition would > need to get forced. But it is safe when: > > + The livepatch does not change the semantic of the code. > + Callbacks do not depend on a safely finished transition. > > Suggested-by: Josh Poimboeuf > Signed-off-by: Petr Mladek Reviewed-by: Kamalesh Babulal -- Kamalesh