Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp473959imm; Fri, 3 Aug 2018 06:33:31 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeUb6v6WRhwqmRsvjZLC6P+ZG6Hbpo0SLriyNtjswrQN2hrn0jPc5risw0agLAqEkD2XmYS X-Received: by 2002:a62:1016:: with SMTP id y22-v6mr4546714pfi.109.1533303211611; Fri, 03 Aug 2018 06:33:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533303211; cv=none; d=google.com; s=arc-20160816; b=ifdsF7itiswoYPRka8nVsIvuo1MMAf8OzktKaVJJAoauA/dY93U9gvAY1utk6Ssuuq qNScG+arDYdWyK7PpagTymVgfK6a2mUk8kMZ8vewvzxuvHn6I738xrOjL7Ph19i65U6k L5hmef0X1K8HarAmuSvX4nB7PPai7JwXASQGgW1SWS9gfHrf0XFjtBs/z5auzdN/IBiV G+ioySGqUQqDz1RT75d0AEZr7ieyEPh4Ad7zMmj4E5SohNjkGbUUa7U+ua2fJTvhz0RN /0VOj5asYDyWPqR8m8ndeeTK2X/pEqkXwBOefmf3B73AAZjbEXF4Mnl7Jy7ATCz0nyUK /Erg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :arc-authentication-results; bh=5YuArpTMx51KqLLAgDg3LseutZ6i3x9cWV89GF+EEEc=; b=PYqPs+IgqtvunJ1jTiOksb0+f7HU3W0hsT7j8yVaN8+5WiQHMkcrOgCU24fng8Cd8Q 63P0FGC+oo1oPJ/DzO1QA8S3B1v44t3ndXUL7exFQEbH+v4pih8h2GT2d3a5/nVWXYVN KsprxuEQgG42TxUnH7SH7ynN/GvEJBkJJQexN+STNwyYkBKa7Pr8g5Rw9Pz9GouhR4OI ZQuG1Q50Uwe9NyNLkctNnTD80myfcEoAvIGqDvOcIewAL+98wlis/FJAcHmWNhOfHatJ 2e2BJ/QmZqEYhIoJ5tnFvTaeQxUVwvsTzNnHt5HZsgqbsX5466O6+tCmgpddX49JwRRi U21Q== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bh7-v6si3588313plb.367.2018.08.03.06.33.17; Fri, 03 Aug 2018 06:33:31 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732308AbeHCP1s (ORCPT + 99 others); Fri, 3 Aug 2018 11:27:48 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:45022 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732286AbeHCP1s (ORCPT ); Fri, 3 Aug 2018 11:27:48 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0018F40241D6; Fri, 3 Aug 2018 13:31:25 +0000 (UTC) Received: from [10.43.17.201] (unknown [10.43.17.201]) by smtp.corp.redhat.com (Postfix) with ESMTP id 099EF1D080; Fri, 3 Aug 2018 13:31:19 +0000 (UTC) Subject: Re: LVM snapshot broke between 4.14 and 4.16 To: Linus Torvalds , wgh@torlan.ru Cc: Ilya Dryomov , Jens Axboe , linux-block , Linux Kernel Mailing List , Sagi Grimberg , Mike Snitzer , dm-devel@redhat.com References: <226835ba-2197-b850-6e5b-8ba14f7fd016@torlan.ru> <93bff248-6897-4867-841b-2dace11597de@torlan.ru> <1ec0a220-d5b0-1c27-e63b-c4d3f4ce9d77@torlan.ru> From: Zdenek Kabelac Organization: Red Hat Message-ID: Date: Fri, 3 Aug 2018 15:31:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Fri, 03 Aug 2018 13:31:26 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Fri, 03 Aug 2018 13:31:26 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'zkabelac@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dne 2.8.2018 v 23:52 Linus Torvalds napsal(a): > On Thu, Aug 2, 2018 at 2:39 PM WGH wrote: >> >> I've just found one public report of this bug, though: >> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=900442 > > Yeah, it does sound like we should fix this issue. > Hi IMHO (as the author of fixing lvm2 patch) user should not be upgrading kernels and keep running older lvm2 user-land tool (and there are very good reasons for this). Kernel had a bug which has been fixed, lvm2 misused this kernel bug and was also fixed. Keeping kernel bug present allowing certain device to write to read-only devices can be possibly seen as some security risk. Also the number of users who ever create a read-only snapshot is probably very low. Maybe there could be some 'dm-snapshot' loading modinfo option to allowing to create in case user really wants to have this bug being present in kernel (reinstantiate old buggy logic), but on default the user should get error when it tries to write to read-only volume and should upgrade lvm2. Regards Zdenek