From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751951AbcL1SzR (ORCPT ); Wed, 28 Dec 2016 13:55:17 -0500 Received: from mail-wj0-f196.google.com ([209.85.210.196]:33643 "EHLO mail-wj0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751865AbcL1SzQ (ORCPT ); Wed, 28 Dec 2016 13:55:16 -0500 Date: Wed, 28 Dec 2016 18:53:34 +0000 From: Karl Beldan To: Richard Weinberger Cc: Brian Norris , Boris Brezillon , "linux-mtd@lists.infradead.org" , David Woodhouse , "linux-kernel@vger.kernel.org" , Daniel Walter , Stable Subject: Re: [PATCH v2 01/46] mtdpart: Propagate _get/put_device() Message-ID: <20161228185334.yxn5tyselki464m3@gobelin> References: <984fd8eb53b742bd46e7b42605ae4e0ceaf5ba08.1474450295.git.dwalter@sigma-star.at> <20160921121531.7786ee9b@bbrezillon> <20160928201611.GB142302@google.com> <20161214210935.GA135941@google.com> <4a84fc5f-5980-5be0-6488-af77e0e8548a@nod.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4a84fc5f-5980-5be0-6488-af77e0e8548a@nod.at> User-Agent: NeoMutt/20161014 (1.7.1) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 15, 2016 at 08:51:06AM +0100, Richard Weinberger wrote: > On 15.12.2016 08:09, Karl Beldan wrote: > >>> I think this should also go into -stable. > >> > >> Why? Do you have real use cases that are broken by this? I understand > > > > I do, some code adding partitions on a gluebi master. > > What exactly are you doing? > > >> this is a problem, but I'm curious on how this satisfies the stable > >> rules. > >> > >> Also, note that this isn't a regression; it's been broken forever and > >> apparently no one noticed. IMO that raises the bar a bit (but not > >> impossibly so) for -stable. > >> > > > > I just encountered the bug yesterday and yes it is obvious it has been > > broken forever. > > I don't have strong opinion about these things so no worries. > > If existing stuff is broken, and you can trigger it. Please let us > know. Then it should go into -stable. > I thought that's what I already did. Anyways, it didn't require much imagination to come up with a script triggering the issue so here you are: #{{ modprobe nandsim modprobe gluebi ubiattach -p /dev/mtd1 -b 1 ubimkvol /dev/ubi0 -S 4 -N vol_0 mtdpart add /dev/mtd2 vol_0_0 0 0x1000 tail -F /dev/mtd2 & while :; do dd bs=1 count=1 if=/dev/mtd3 >/dev/null 2>&1 || break; done kill -9 %1 # Oops #}} Karl