Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1148726pxb; Fri, 6 Nov 2020 02:10:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJyL0FGANf/R7sVZ9qpTR3cCwrWsvr1H2o5U0EJK9zCbo8PMPgZQRLuo9lDtW2J834m2Q3/t X-Received: by 2002:a17:906:3ada:: with SMTP id z26mr1215363ejd.151.1604657404310; Fri, 06 Nov 2020 02:10:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604657404; cv=none; d=google.com; s=arc-20160816; b=WizIu252UZUv3uugOxyi+dMJZ99CEjFtfvjvxuXsLQmuS4pDAywTebYnx7Cm5qSYJ8 DvnLZKYZG/gYWDtPkYbyBI5wOsm9MuvawQOMKadNxAr6yWkMY4BuPd5NLXJ9NJ2U2Cn/ IR+AMdbZikd+hfzAQsZeh+pw/hgJZ4NzaufTUpXEnhB9bYJAR8+fGYlcG1psjHBvcrBV /8Nq+25wD47JMfmOc3Uqc7VpRf3NEPbDlB8MJkE5slot420eJaQmD3wLsEsiWqY72Xn0 jZtgv+l+LnevzXFCc25hZyYqrpBlo+9vVErxl9PC2Vr4uST5NyDPIkXWtkHVO01npOTm XwUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=1DOWGwhmi8U1nySYo8n2vsg9Xo6AK8+09BTn8n2jAe0=; b=StKFhwpCddCeNpxLWz0rwKNGMjvYO2mHjAEfWbiDJ7dVyR8J36dxukLy6ruyTQsGzD Uqg2/4sdaRrrUk6YubR1y1lchd7szuORtzXOSkYexCp6ivJ+JXQW/78fnntWA3yAJ8eX WJmXuvN2nStWYy+rwE92WW35a6ddF7C/CyUTNCluFXkt7t4Uvk4++P5E2v1Be8NrJgkx x59hhyssZ/3D2qgMOhZT8XTqONYNsTtzlfiOEi6C1xDhxI8u8iIo2DdUOESupo6jbZnB C62Wr/ApXxDa9XnXY3JrBSMXo7eDRGavLSDrL0YFS09/AfNdTDHvAldOT6hRFs5EvP3Q fYKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w8si508594ejv.203.2020.11.06.02.09.41; Fri, 06 Nov 2020 02:10:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726841AbgKFKH1 (ORCPT + 99 others); Fri, 6 Nov 2020 05:07:27 -0500 Received: from mx2.suse.de ([195.135.220.15]:46708 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726139AbgKFKH0 (ORCPT ); Fri, 6 Nov 2020 05:07:26 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 5F249AB8F; Fri, 6 Nov 2020 10:07:24 +0000 (UTC) Date: Fri, 6 Nov 2020 11:07:24 +0100 (CET) From: Miroslav Benes To: Steven Rostedt cc: linux-kernel@vger.kernel.org, Masami Hiramatsu , Andrew Morton , Peter Zijlstra , Ingo Molnar , Josh Poimboeuf , Jiri Kosina , Petr Mladek , Joe Lawrence , live-patching@vger.kernel.org Subject: Re: [PATCH 07/11 v3] livepatch: Trigger WARNING if livepatch function fails due to recursion In-Reply-To: <20201106023547.312639435@goodmis.org> Message-ID: References: <20201106023235.367190737@goodmis.org> <20201106023547.312639435@goodmis.org> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 5 Nov 2020, Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > If for some reason a function is called that triggers the recursion > detection of live patching, trigger a warning. By not executing the live > patch code, it is possible that the old unpatched function will be called > placing the system into an unknown state. > > Link: https://lore.kernel.org/r/20201029145709.GD16774@alley > > Cc: Josh Poimboeuf > Cc: Jiri Kosina > Cc: Joe Lawrence > Cc: live-patching@vger.kernel.org > Suggested-by: Miroslav Benes > Reviewed-by: Petr Mladek > Signed-off-by: Steven Rostedt (VMware) Acked-by: Miroslav Benes > --- > Changes since v2: > > - Blame Miroslav instead of Petr ;-) Thanks. Fortunately, if printk is broken in WARN_ON_ONCE(), I can always blame Petr again :) M