Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp2127336img; Wed, 27 Feb 2019 10:49:37 -0800 (PST) X-Google-Smtp-Source: AHgI3IayVquEIjonY9H3gprBFmMFTTphhxknzzMFzw8nqAXTDmDGOh+OwGzWLEJd2NRNg4yO8H8Z X-Received: by 2002:a62:6e07:: with SMTP id j7mr3193113pfc.135.1551293377323; Wed, 27 Feb 2019 10:49:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551293377; cv=none; d=google.com; s=arc-20160816; b=IhcidUyjWz1YQ94u0jv8gDpQ8GBVXAhvZV7AysvIecmvllyI2SvAbfUl0aldC/+paR G40G7Pa1WhaQg7eNb+9uLesUK6AnX16re6pQBSck4Z+CYs2eETPPKt+4wdiKeJNkcQ7w jqv0BpvQOKU4gvTk3U+QsLimdqecliuC8JD4uk+m8U8lmxL6hGpApB9ZPc/jA8b3red9 wx11TPKAxbamtNMbISar3BB1QEmLkCtfdvRKwVpbucH3aSm9VQHNqtDRPcXKV21hUtAP lsXWwDqLjjABateKxQonsk3kmEbIYCMuY7PgHSVkQs/83ejq6dV6O71ZGuT7un3MWl84 OVsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=t0GIkSZcd/ZF+fixuvJfOmvkTzSUjag+8msp6TZ0Tq0=; b=KQN6m9b6yIi+QPC5T6baji98Ur7t8QMrnR9s+XKczySlam0+36NdvZfwOuBv/9qS95 pq05pCtissxOjHHLodY+JpV92RIARR9VuOYNzoIv9h4jzGf9kXeSyEpmeBWb2Cc/akmq 1qnAIIlPnDd7YQX+QY6k4f41mOT8taaK6YdhwgEoz7h7qVH1iw8Q2c3242FTpBpm4Z6H /3+E4ehnO0jjvGBzT3Gn+RoW99QSg5sqWTcSUB13xe1uz/JY9W9zXj24f5rcrOH6+bVQ CgM3wr6OSpqvY0FdEFqUU1NZ/99fLsluXXfesA1RZgDE/q+PZYGPmYmIiDkV7nCzJ0IG HLKg== 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 a15si12346580pgg.560.2019.02.27.10.49.17; Wed, 27 Feb 2019 10:49:37 -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; 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 S1730089AbfB0Sse (ORCPT + 99 others); Wed, 27 Feb 2019 13:48:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:62259 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726389AbfB0Sse (ORCPT ); Wed, 27 Feb 2019 13:48:34 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 78E7D30CF844; Wed, 27 Feb 2019 18:48:34 +0000 (UTC) Received: from localhost (unknown [10.18.25.174]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 37FA219C7B; Wed, 27 Feb 2019 18:48:34 +0000 (UTC) Date: Wed, 27 Feb 2019 13:48:33 -0500 From: Mike Snitzer To: Sasha Levin Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH AUTOSEL 4.20 42/77] dm: fix clone_bio() to trigger blk_recount_segments() Message-ID: <20190227184833.GA16859@redhat.com> References: <20190215020855.176727-1-sashal@kernel.org> <20190215020855.176727-42-sashal@kernel.org> <20190215034909.GB17226@redhat.com> <20190227173821.GK10616@sasha-vm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190227173821.GK10616@sasha-vm> User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Wed, 27 Feb 2019 18:48:34 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 27 2019 at 12:38pm -0500, Sasha Levin wrote: > On Thu, Feb 14, 2019 at 10:49:09PM -0500, Mike Snitzer wrote: > >On Thu, Feb 14 2019 at 9:08pm -0500, > >Sasha Levin wrote: > > > >>From: Mike Snitzer > >> > >>[ Upstream commit 57c36519e4b949f89381053f7283f5d605595b42 ] > >> > >>DM's clone_bio() now benefits from using bio_trim() by fixing the fact > >>that clone_bio() wasn't clearing BIO_SEG_VALID like bio_trim() does; > >>which triggers blk_recount_segments() via bio_phys_segments(). > >> > >>Reviewed-by: Ming Lei > >>Signed-off-by: Mike Snitzer > >>Signed-off-by: Sasha Levin > > > >Please no, I later effectively reverted this change with commit > >fa8db4948f522 ("dm: don't use bio_trim() afterall") > > I've dropped it, thank you. > > >(As and aside, I really shouldn't have to defend against stable@ bots > >picking up a commit, like 57c36519e4b949f, that wasn't marked for > >stable@.) > > Is it the case that this commit isn't appropriate for stable for some > reason, or was it just buggy? Commit 57c36519e4b9 exposed a bug elsewhere, as fixed by a truly "stable" fix: ff0c129d3b5ec ("dm crypt: don't overallocate the integrity tag space") So the end result is commit 57c36519e4b9 is just bad to bring to a "stable" kernel. It unlocks another bug for no meaningful benefit. Mike