Received: by 10.223.185.116 with SMTP id b49csp8166785wrg; Thu, 1 Mar 2018 19:02:22 -0800 (PST) X-Google-Smtp-Source: AG47ELtBHamX8gcMXY0OhC3xEvMAGNYvdPmVkWV0+T5m9rFRcx+og7wW6Sq4EcAuHGPDN3+KYpwU X-Received: by 10.99.167.2 with SMTP id d2mr3320064pgf.408.1519959742761; Thu, 01 Mar 2018 19:02:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519959742; cv=none; d=google.com; s=arc-20160816; b=N/7d7O58ISX6BTHDNiWGJjuNEdlMDNxeGzJN179oWge0JVUJ+LxObmmpLQKC0QQrip x+ZvMeT3epWRpu0ID/acwkgGehpA6lTCz/NIY73OICwNvBFyZ58BSPWbe4hRtsr/kFsV kJudLXBE1BFN5rxg801qSrbeEKkZBSKC8sgvkbiHRKy0yeKS9HP2l+0xcxlQnzaBXzgr Pg5oYA1IUaTeK65KK3V4Y7UD0OfTkG7nHfs8q3Z+PmNfpc5ZAokfXlaYawOYDB1dJDKo U7Op0p9iiz5R5Obzp8k1DRddB17OrkzGzQqWsgjqyppNQACCjTPrw5gng+kDF+O2A7/3 GRKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=elc8RoXzCFpTllYCJh0CWulJX8H585ENSRSit7X1vw4=; b=YWCcS+48pAyIjSHx5KOcGacZHZixFKu6o58J2GlirMCxf4G6dvuI4m6K8D9m11SNSP LLAEzlb943GZv8HDL0DAblGvE+OXPiM4HadDma146DOq1hrRIcaepVUcaV0yLDmnOWAt uXYmM+eD4hWBBuiYn77wXj+m19N9QdsVCabZ6mGBaTZVGCS4H6zuolcHfXLFxsigBSCC 5ecO3nrLtL0SrZo2vOzHRjibXnrYJ/+GqgjuXnRNcGZGIyJsrSbCeUyLLoqcz30ujoVu zhJbP23+4ZosDCa8Q3tpgaYCx9pMq0QoBNMrURMViK/kBrGuadaYnKiQ//YhEhGNVoyk 4K9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nexb-com.20150623.gappssmtp.com header.s=20150623 header.b=bE3wfN/n; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y16-v6si2587916plr.424.2018.03.01.19.02.07; Thu, 01 Mar 2018 19:02:22 -0800 (PST) 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; dkim=pass header.i=@nexb-com.20150623.gappssmtp.com header.s=20150623 header.b=bE3wfN/n; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1163954AbeCBBUM (ORCPT + 99 others); Thu, 1 Mar 2018 20:20:12 -0500 Received: from mail-wr0-f194.google.com ([209.85.128.194]:45233 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1163943AbeCBBUK (ORCPT ); Thu, 1 Mar 2018 20:20:10 -0500 Received: by mail-wr0-f194.google.com with SMTP id p104so8473131wrc.12 for ; Thu, 01 Mar 2018 17:20:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=elc8RoXzCFpTllYCJh0CWulJX8H585ENSRSit7X1vw4=; b=bE3wfN/ndluyyapIGThz+UqXG9bPHHQA3nHsscH/n68/h5DARFtrZQakf+jHL6otWD LofodqGL5wMgbsK21ZdMqwmDfTT6sQcpFGbPdRoq7K5bP0Uasr7vuOhfDkr3xnPfVKpU ANkpBIvot6wou8fxC5FkbyfC3M8J6U1OSfOeK4/TW5U2Z2Xcj8e6cOwraknIDp69Sfoi QgDDkNVeCMVBLyt8JWdxRQ4Jlz++G+lbQY769BNoS9HE/Qoyo3+xf4B5QHwtZm8PvF8n 9o2Uu4Kjz92UcZXaOWE2D9TfnH2zWyuSiPYnCixEwNn1lVoYcUGXjrPTr7kdION7JM5R 4dXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=elc8RoXzCFpTllYCJh0CWulJX8H585ENSRSit7X1vw4=; b=ampI90uB3vHArEe0A0wUMlRU5ypsqe00rPU3QizoqW8U/BhyivYkMOW/SqUJvQXx7I iPuwXqTZKaIKZKF9QmDAuTBRuTxdBxFMIat/z+rGxRWmlKmVrYUzxzyqN2dIvh8aw2n1 0voI1EgTKEFEnzEPjqRml172KboZ8hI9eEhTtxHBzbxOMETw3kWnEpZW9FmRFIIrZyJx vDd1eBz+UOyIK89TsMH/K0xoI4pS56H8I2HVjDbff/i2kp137wWi6F65Gnv1+N/ptX7R 6R961xxuQ7axiBz2DdEeqn13M9LcCpPFnE8DtzVqSeFyVzEBsiAC7aE5snFP9OR9fC8+ Z3vg== X-Gm-Message-State: APf1xPC1N/UiRlUbGUiPUDGwqbHFjiAGpA8Gk5I8E9SYOikDFO5Au/J4 rCcnhfDRkiOuPlOzz6nbOIidjpgbMNGxPzCaN/KdzA== X-Received: by 10.223.151.140 with SMTP id s12mr3511494wrb.37.1519953608670; Thu, 01 Mar 2018 17:20:08 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.195.139 with HTTP; Thu, 1 Mar 2018 17:19:28 -0800 (PST) In-Reply-To: References: <1519421630-12025-1-git-send-email-joe.lawrence@redhat.com> <1519421630-12025-2-git-send-email-joe.lawrence@redhat.com> From: Philippe Ombredanne Date: Thu, 1 Mar 2018 17:19:28 -0800 Message-ID: Subject: Re: [PATCH v0 1/3] livepatch: add sample cumulative patch To: Miroslav Benes Cc: Greg Kroah-Hartman , Joe Lawrence , live-patching@vger.kernel.org, LKML , Josh Poimboeuf , Jessica Yu , Jiri Kosina , Petr Mladek , Jason Baron , Evgenii Shatokhin Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Miroslav, On Tue, Feb 27, 2018 at 3:54 AM, Miroslav Benes wrote: > On Sat, 24 Feb 2018, Philippe Ombredanne wrote: > >> Joe, >> >> On Fri, Feb 23, 2018 at 1:33 PM, Joe Lawrence wrote: >> > Add a simple atomic replace / cumulative livepatch example. >> > >> > Signed-off-by: Joe Lawrence >> > --- >> > samples/livepatch/Makefile | 1 + >> > samples/livepatch/livepatch-cumulative.c | 216 +++++++++++++++++++++++++++++++ >> > 2 files changed, 217 insertions(+) >> > create mode 100644 samples/livepatch/livepatch-cumulative.c >> > >> > diff --git a/samples/livepatch/Makefile b/samples/livepatch/Makefile >> > index 2472ce39a18d..dd0e2a8af1af 100644 >> > --- a/samples/livepatch/Makefile >> > +++ b/samples/livepatch/Makefile >> > @@ -5,3 +5,4 @@ obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch-shadow-fix2.o >> > obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch-callbacks-demo.o >> > obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch-callbacks-mod.o >> > obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch-callbacks-busymod.o >> > +obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch-cumulative.o >> > diff --git a/samples/livepatch/livepatch-cumulative.c b/samples/livepatch/livepatch-cumulative.c >> > new file mode 100644 >> > index 000000000000..ab036439e08c >> > --- /dev/null >> > +++ b/samples/livepatch/livepatch-cumulative.c >> > @@ -0,0 +1,216 @@ >> > +/* >> > + * Copyright (C) 2018 Joe Lawrence >> > + * >> > + * This program is free software; you can redistribute it and/or >> > + * modify it under the terms of the GNU General Public License >> > + * as published by the Free Software Foundation; either version 2 >> > + * of the License, or (at your option) any later version. >> > + * >> > + * This program is distributed in the hope that it will be useful, >> > + * but WITHOUT ANY WARRANTY; without even the implied warranty of >> > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >> > + * GNU General Public License for more details. >> > + * >> > + * You should have received a copy of the GNU General Public License >> > + * along with this program; if not, see . >> > + */ >> >> May be you could use the new SPDX tags instead of this fine but long >> legalese? [1] >> This would replace ~12 lines of comment by a single line with the same effect. >> Thanks! > > I don't know about that. How come it is perceived as equivalent? I mean, > we have a well-established way how to say that a particular source > code/file is distributed with GPL license. Well-established means that > it's been tested in court AFAIK many times. Even the license itself (found > in COPYING file) mentions this as way how to attach the license to a file. > > Now you want it to be replaced with a tag. Does it say the same? It might. > It might not. Do we know? Have you got a court ruling which would say that > this is also a way how to attach a license to a file? I doubt it. It may > seem trivially clear, but there are no such things in the legal world. > > Don't make me wrong. I don't like that copyright thingie much. I don't > like that you can find even different versions of the text in the kernel > source code (and not only there). > > However I'd prefer to leave at least a note there that the file is still > distributed under the terms of GPL found in COPYING file. The tag can be > there too, if it makes someone happy. > > Regards, > Miroslav > >> [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/license-rules.rst >> -- >> Philippe >> > To the best of my knowledge, this has been debated in person and on list among maintainers and agreed to. This has also been reviewed by the LF lawyers. The result of is the documentation in [1] You are welcomed not to agree of course, but this would make your contributions stand out with its legalese boilerplate when we are trying to get of it. Greg, anything else to add? CC: Greg Kroah-Hartman -- Cordially Philippe Ombredanne