From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752415AbdKFLIi (ORCPT ); Mon, 6 Nov 2017 06:08:38 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:43447 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752266AbdKFLIe (ORCPT ); Mon, 6 Nov 2017 06:08:34 -0500 Date: Mon, 6 Nov 2017 12:08:33 +0100 From: Pavel Machek To: Miroslav Benes Cc: jpoimboe@redhat.com, jeyu@kernel.org, jikos@kernel.org, pmladek@suse.com, lpechacek@suse.cz, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, Oleg Nesterov , Michael Ellerman , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Andy Lutomirski , linuxppc-dev@lists.ozlabs.org, x86@kernel.org Subject: Re: [PATCH v3 1/2] livepatch: send a fake signal to all blocking tasks Message-ID: <20171106110833.GB24863@amd> References: <20171031114853.841-1-mbenes@suse.cz> <20171031114853.841-2-mbenes@suse.cz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xXmbgvnjoT4axfJE" Content-Disposition: inline In-Reply-To: <20171031114853.841-2-mbenes@suse.cz> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --xXmbgvnjoT4axfJE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > --- a/Documentation/ABI/testing/sysfs-kernel-livepatch > +++ b/Documentation/ABI/testing/sysfs-kernel-livepatch > @@ -33,6 +33,15 @@ Contact: live-patching@vger.kernel.org > An attribute which indicates whether the patch is currently in > transition. > =20 > +What: /sys/kernel/livepatch//signal > +Date: Oct 2017 > +KernelVersion: 4.15.0 > +Contact: live-patching@vger.kernel.org > +Description: > + A writable attribute that allows administrator to affect the > + course of an existing transition. Writing 1 sends a signal to > + all remaining blocking tasks. What kind of signal? > What: /sys/kernel/livepatch// > Date: Nov 2014 > KernelVersion: 3.19.0 > diff --git a/Documentation/livepatch/livepatch.txt b/Documentation/livepa= tch/livepatch.txt > index ecdb18104ab0..6694530d0894 100644 > --- a/Documentation/livepatch/livepatch.txt > +++ b/Documentation/livepatch/livepatch.txt > @@ -178,6 +178,12 @@ transition, it shows -1. Any tasks which are blocki= ng the transition > can be signaled with SIGSTOP and SIGCONT to force them to change their > patched state. > =20 > +Administrator can also affect a transition through > +/sys/kernel/livepatch//signal attribute. Writing 1 to the attribu= te sends > +a signal to all remaining blocking tasks. This is an alternative for > +SIGSTOP/SIGCONT approach mentioned in the previous paragraph. It should = also be > +less harmful to the system. Well... If SIGSTOP / SIGCONT is considered harmful (it probably is), it should be mentioned above, and not in note here... Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --xXmbgvnjoT4axfJE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAloAQrAACgkQMOfwapXb+vK1YQCfZTYld5Xapwyx+UHxqVu7BTsn AicAoKk+hmbgt/wGPwEq8YgqlJcxAP5p =Jg0X -----END PGP SIGNATURE----- --xXmbgvnjoT4axfJE--