From mboxrd@z Thu Jan 1 00:00:00 1970 From: Evgeniy Subject: [PATCH 2.6.15] Re: Oops in ufs_fill_super at mount time Date: Fri, 13 Jan 2006 18:12:15 +0300 Message-ID: <20060113151215.GA25854@rain.homenetwork> References: <20060113005450.GA7971@mipter.zuzino.mipt.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Return-path: To: Alexey Dobriyan Content-Disposition: inline In-Reply-To: <20060113005450.GA7971@mipter.zuzino.mipt.ru> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Fri, Jan 13, 2006 at 03:54:50AM +0300, Alexey Dobriyan wrote: > Version 2.6.15-43ecb9a33ba8c93ebbda81d48ca05f0d1bbf9056 > > Actually more or less latest -git is affected too, but > I'm sick of recompiling right now so please wait for bisecting results. > > It's random wrt one mount of UFS, but several mount/umounts in a row > reproduce it reliably: > I suppose problem in a couple of brackets in fs/ufs/utils.h, instead of 512th byte of buffer, usb2 point to nth structure of type ufs_super_block_second. This patch fix problem for me, can you test it? Signed-off-by: Evgeniy Dushistov --- --- linux-2.6.15/fs/ufs/util.h.orig 2006-01-13 17:33:49.123946250 +0300 +++ linux-2.6.15/fs/ufs/util.h 2006-01-13 17:35:50.127508500 +0300 @@ -255,8 +255,8 @@ extern void _ubh_memcpyubh_(struct ufs_s ((struct ufs_super_block_first *)((ubh)->bh[0]->b_data)) #define ubh_get_usb_second(ubh) \ - ((struct ufs_super_block_second *)(ubh)-> \ - bh[UFS_SECTOR_SIZE >> uspi->s_fshift]->b_data + (UFS_SECTOR_SIZE & ~uspi->s_fmask)) + ((struct ufs_super_block_second *)((ubh)->\ + bh[UFS_SECTOR_SIZE >> uspi->s_fshift]->b_data + (UFS_SECTOR_SIZE & ~uspi->s_fmask))) #define ubh_get_usb_third(ubh) \ ((struct ufs_super_block_third *)((ubh)-> \ -- /Evgeniy