From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [2.6.23 PATCH 07/18] dm io: fix panic on large request Date: Tue, 17 Jul 2007 19:50:17 +0200 Message-ID: <469D0159.1010506@trash.net> References: <20070711205846.GY24114@agk.fab.redhat.com> <469CC11B.2020103@trash.net> <469CF0CD.6060006@ce.jp.nec.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <469CF0CD.6060006@ce.jp.nec.com> Sender: linux-kernel-owner@vger.kernel.org To: Jun'ichi Nomura Cc: Alasdair G Kergon , Andrew Morton , dm-devel@redhat.com, linux-kernel@vger.kernel.org List-Id: dm-devel.ids Jun'ichi Nomura wrote: >>>From: "Jun'ichi Nomura" >>> >>>bio_alloc_bioset() will return NULL if 'num_vecs' is too large. >>>Use bio_get_nr_vecs() to get estimation of maximum number. >>> >>>Signed-off-by: "Jun'ichi Nomura" >>>Signed-off-by: Alasdair G Kergon >>> >> >>This patch reproducibly oopses my box: > > > Thanks for the report. > But I'm not sure how the patch is related to the oops. > > The stack trace shows the oops occurred in dm-crypt, > which doesn't use the part of the code modified by the patch > (dm-io). I tried reverting the individual patches until it stopped oopsing, it may have been by luck. I'll try if I can break it again by reverting the revert. > Are you using other dm modules such as dm-multipath, dm-mirror > or dm-snapshot? > If so, can you take the output of 'dmsetup table' and 'dmsetup ls'? No other modules. > Do you have a reliable way to reproduce the oops which I can try? "/etc/init.d/cryptdisk start" (debian) on a luks partition triggered it for me.