Received: by 10.192.165.148 with SMTP id m20csp2201431imm; Thu, 3 May 2018 12:06:43 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrkKPEWilh7dWxyrwo0lZAZTtbCTLBm0JxbPdoXSzlu+9I/JMYVw+Mi6h5uWvlBE9e9HokW X-Received: by 2002:a63:7c01:: with SMTP id x1-v6mr20068609pgc.286.1525374403216; Thu, 03 May 2018 12:06:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525374403; cv=none; d=google.com; s=arc-20160816; b=Kf7rdFWPuHUctlzNEOkE8L6i0FeeR2DYuDhGv/5ktVFRrjI5q6pB+1mKoHP5DSVrcM 3FHRVO4+hGT9K8dgQK2QFA0BXUmJnYufxL485ocNRWS4TTb1C64vcSjn+f2szYPM3HaL s618/zfq6+GgD+YoEZKN0+2ej6BdUNmYHpwyRfvBwAnsNIRhFFTMMxpAGKbQ5q5/mVqu eS5bsqLGC5vGjNNWMlaDT5r1u04UyErMNiYor+LdRn4wqXibfwjO3p7OvRkGwjzRqgKR MLQUMTzGdyqp54HcZ7afIFFKjlg8jUVZMo9BXzG/Gzgm1USfOoTc5qlC+VYwdqCjV7E3 GA/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=EOaHDlG8ri7hFoVDH15GelTSUyqh2mViMFS9yb5vjAM=; b=csA3eRreyQfaE9PeowmTrmtadsbHEw+oy5b50iDEc7gZydgu4FUrufJwCYtHeEbR1A q/S9J/s8WuTuvoO6qxx7KUdLMkqRJM0pGIiv+/MX5Is5AZJS007lLi5oKQvQqDbX4pHt wDextco2mlYaDO5ONDgyC0nx1yvEF/tgc1nXNSHZLMPDZwlsDZ8q8NxoNeNaPhvFrD8o h4U1OmllaJ9l/cDKVDaFruQQ9ibiB1yfYvQDdBKaPLifnFYev+X42wV0EDSfS6hTigE6 oTizLHZFE2CWN3Y4K9sYYJJA6QalGvG6QZMFS3RIIKTtJV9bBKCQnBzY94aFou2GHXCk kARQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=jWePqVDS; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u71-v6si11898761pgb.332.2018.05.03.12.06.28; Thu, 03 May 2018 12:06:43 -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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=jWePqVDS; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751501AbeECTEl (ORCPT + 99 others); Thu, 3 May 2018 15:04:41 -0400 Received: from mail-dm3nam03on0132.outbound.protection.outlook.com ([104.47.41.132]:42958 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751196AbeECTEh (ORCPT ); Thu, 3 May 2018 15:04:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=EOaHDlG8ri7hFoVDH15GelTSUyqh2mViMFS9yb5vjAM=; b=jWePqVDSSHLjih/bv+j9uknVAggUZOiFW/Hrlm6PZdKicUho/wKY2huOCWg47I5wuigUfbsPu3SFIuJQZ8C9qidkJbU6KMK81ONRvnQI75pVCUBtJFa9NGmVrCuA/cMXKGKeXQheCWvLXSTYDrC9he0KEe7ADokHJ+MEh90Tzug= Received: from MW2PR2101MB1003.namprd21.prod.outlook.com (52.132.146.28) by MW2PR2101MB1033.namprd21.prod.outlook.com (52.132.146.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.755.4; Thu, 3 May 2018 19:04:34 +0000 Received: from MW2PR2101MB1003.namprd21.prod.outlook.com ([fe80::1958:87f0:1598:af6f]) by MW2PR2101MB1003.namprd21.prod.outlook.com ([fe80::1958:87f0:1598:af6f%13]) with mapi id 15.20.0755.002; Thu, 3 May 2018 19:04:34 +0000 From: Sasha Levin To: Al Viro CC: "Theodore Y. Ts'o" , Geert Uytterhoeven , Greg KH , "linux-kernel@vger.kernel.org" , "w@1wt.eu" , "ksummit-discuss@lists.linuxfoundation.org" Subject: Re: [Ksummit-discuss] bug-introducing patches Thread-Topic: [Ksummit-discuss] bug-introducing patches Thread-Index: AQHT4WrQpZfAdTeY4k22b0OVmzGN0aQcksOAgABIXgCAAA4OAIAAORwAgAD11QCAACPrAIAACxEAgAAM7oCAAAxCgA== Date: Thu, 3 May 2018 19:04:34 +0000 Message-ID: <20180503190431.GV18390@sasha-vm> References: <20180501163818.GD1468@sasha-vm> <20180502195138.GC18390@sasha-vm> <20180503000620.GA29205@thunk.org> <20180503144612.GJ18390@sasha-vm> <20180503165446.GB30522@ZenIV.linux.org.uk> <20180503173422.GR18390@sasha-vm> <20180503182039.GC30522@ZenIV.linux.org.uk> In-Reply-To: <20180503182039.GC30522@ZenIV.linux.org.uk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;MW2PR2101MB1033;7:NOaaUiGmTya+Aw/C0zCGq2MYYdSlbX9cnN2nP98N6DeV2/ifS1xj0GTMuinjANwNvFAP4DIH+60LLpCS4CDdsKZv5j9QcQqrDgA7val1V+P2NqJic9TTedCM2YfcUk8NAtVDgm7mbbnKu2Ndxj1Zhgc8v9La87/xfavsHD3IpHBB5kLxxmr0d5Xz+cgW4VIwZjH4XFLjWsGr4drbr1ttrWTjCIZ6gndnGKzcBfwOEnjWf7J4XT0LpHQz4QFL/Sb3;20:O0dmBT+EK4YOEfY0wCmEONm0BZivrN6IzMa9M4v5zAcS8gRFLYCLJzNnBaEKFmJpmb1BcGdzCTDQ9Ad6TCUcZ5l8NqpZkuBInyopDbpNkTqxI53tK1dBTQn5NktVXXeHLEb3XJQHhL/H9BtT24L1iapQyxj3IMp5hSNoP4qI8HU= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:MW2PR2101MB1033; x-ms-traffictypediagnostic: MW2PR2101MB1033: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231254)(2018427008)(944501410)(52105095)(3002001)(10201501046)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123564045)(20161123562045)(6072148)(201708071742011);SRVR:MW2PR2101MB1033;BCL:0;PCL:0;RULEID:;SRVR:MW2PR2101MB1033; x-forefront-prvs: 066153096A x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(7916004)(366004)(396003)(346002)(39860400002)(39380400002)(376002)(43544003)(189003)(199004)(93886005)(33656002)(97736004)(22452003)(10090500001)(2900100001)(53936002)(316002)(5250100002)(10290500003)(2906002)(105586002)(33716001)(14454004)(6436002)(68736007)(1076002)(3846002)(3280700002)(6116002)(478600001)(54906003)(9686003)(6346003)(59450400001)(106356001)(3660700001)(186003)(6506007)(6916009)(76176011)(26005)(5660300001)(6486002)(102836004)(6512007)(72206003)(99286004)(229853002)(8936002)(476003)(66066001)(11346002)(25786009)(86362001)(4326008)(8676002)(575784001)(86612001)(81166006)(6246003)(486006)(7736002)(81156014)(305945005)(446003)(33896004)(556444002)(31884003);DIR:OUT;SFP:1102;SCL:1;SRVR:MW2PR2101MB1033;H:MW2PR2101MB1003.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-message-info: s/VEO+IfXXQz56GRs5GqEqb+D1EMxGUpjAgt6D7tqw5liMGEsZUPdrRt3VUBcQW+iRPbxGLIgUeOragfQr5csIXvtPpI/rBDZY8+zrnlPjBnaCMcsNuH/jg4EqayONhvdmqpF4ZenyGcxkRm1Ob+VbImRUZeP2ueygX2MOr3qgTB4iyuAAiJSSdTXkAdUTss spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: c47e37f4-cdab-4d42-cf59-08d5b128b566 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: c47e37f4-cdab-4d42-cf59-08d5b128b566 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 May 2018 19:04:34.1765 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR2101MB1033 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 03, 2018 at 07:20:39PM +0100, Al Viro wrote: >On Thu, May 03, 2018 at 05:34:24PM +0000, Sasha Levin wrote: > >> >Moreover, what the hell do you suggest in situation when >> > * foofs_barf() is b0rken in quite a few ways. There's an >> >easily triggerable memory corruptor that can be fixed locally as well >> >as something else that needs a change of e.g. ->mkdir() calling >> >conventions to take care of. The change is mechanical and fairly >> >simple, but it's already -rc4. >> >> I'm not advocating to forcefully block people from submitting patches >> after -rc4 (that was Ted's suggesting). > >I am, though - change of a method signature when we have several dozens >of instances does *not* belong in -rc5; if nothing else, it guarantees >a nightmare pile of conflicts with individual filesystem trees. > >> I'm just saying that as a maintainer, you should use your brain and >> figure out how critical the bug is, how good is the fix and how well was >> it tested, and decide if you want to merge it in or not. >> >> If it fixed the bug and didn't introduce a regression, great! If it >> messed something else, you'd have some input on how to address it better >> in the future. >> >> I'm trying to come up with a tool/system to help maintainers with >> this task because right now it's not working too well. I'm not trying to >> introduce arbitrary rules to make your life miserable. > >And I am asking you what kind of rules do you want/expect/would prefer >for Fixes: pseudo-header. *I* do not give a flying fuck for its >contents; I can put it in, if there is a good reason, though. And >the obvious consumers of that thing are -stable maintainers. Including >yourself. Which is why I am asking you what should go in there in >situation described above. And no, that's not a rhetorical question; >I really want to know. > >Let me describe it again: > * a bunch of holes is found in a function; all of them go back >several years > * a clean fix for the whole pile is a composition of >1) local fix of trivially triggered memory corruptor >2) tree-wide mechanical change of method signature + matching modification= s >of callers of that method (say, all five of them). >3) further changes in the function in question and its caller (which happe= ns >to be an instance of the method modified by (2). > * dependencies between parts: (1) is standalone, (3) has a hard >dependency on (2), (1) can be reordered past (2)+(modified 3), but modific= ations >needed in (1) and (3) are not trivial. > * the crap fixed by (1) is much more severe than that fixed by (3) >(and (2) is an equivalent transformation which does not affect behaviour o= f >anything). > * too late in the cycle for tree-wide patches like (2). > >As far as I'm concerned (and if it makes -stable folks' lives unpleasant, >too fucking bad) the merge order is: (1) as soon as it's sufficiently >reviewed and tested, (2) and (3) - next merge window. The only question >is what kind of metadata should go into commit messages to minimize the >PITA for -stable folks, *given* *that* *merge* *timing*. Right, -stable shouldn't affect how/when you merge your patches in. Also, in scenarios such as this we have enough tools in place to figure out the dependency chain, and we could address it when backporting to stable. I don't want to create additional work that you wouldn't do anyways. Keep in mind that the Fixes: tag will also be useful for yourself later on if you have to go back to this patch a few years later. As to the question you actually asked, assuming patch (3) is important=20 for stable as well (you didn't state it explicitly), the correct=20 tagging would be: For patch (1): Fixes: AAA ("Commit from several years ago that introduced the hole") Cc: stable@vger.kernel.org For patch (2): No tags For patch (3): Fixes: AAA ("Commit from several years ago that introduced the hole") Cc: stable@vger.kernel.org # commit-id-of-(2)