From mboxrd@z Thu Jan 1 00:00:00 1970 From: Edward Shishkin Subject: Re: Panic with corrupted reiserfs image Date: Wed, 21 Jan 2009 16:12:25 +0300 Message-ID: <49771F39.4030808@gmail.com> References: <20090121090325.GB24169@alice> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20090121090325.GB24169@alice> Sender: reiserfs-devel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Eric Sesterhenn Cc: reiserfs-devel@vger.kernel.org, robm@fastmail.fm, carlos@fisica.ufpr.br Ok, thanks, we'll take a look at this. However, I am not sure, that reiserfs will be actively harden against such attacks in future: it wasn't a task of high priority even at the best times of Namesys. Another reason is that reiserfs (v3) doesn't have efficient means for it. Disadvantages of reiserfs design were taken into consideration of reiser4 filesystem: it is planned to create a special "protected" format 4.1.X for commodity hardware. This format will include support of ECC signatures, etc.. that will allow code to not bloat with tons of checks. Edward. Eric Sesterhenn wrote: > Mounting the corrupted image at > http://www.cccmz.de/~snakebyte/reiserfs.23.img.bck.bz2 > results in a panic > > [ 290.056469] Pid: 5947, comm: mount Not tainted > 2.6.29-rc2-00021-gd84d31c #216 > [ 290.056650] Call Trace: > [ 290.056832] [] reiserfs_panic+0x22/0x42 > [ 290.056974] [] journal_init+0x4b0/0x861 > [ 290.057211] [] ? trace_hardirqs_on_caller+0x11c/0x15a > [ 290.057368] [] ? vsprintf+0x10/0x12 > [ 290.057528] [] ? prepare_error_buf+0x3a0/0x3a8 > [ 290.057675] [] ? __vmalloc_area_node+0xbf/0xda > [ 290.057851] [] ? printk+0x1a/0x1c > [ 290.057985] [] ? reiserfs_info+0x37/0x52 > [ 290.058200] [] reiserfs_fill_super+0x349/0xc58 > [ 290.058342] [] ? __lock_acquire+0x6a8/0x6fe > [ 290.058517] [] ? native_sched_clock+0x41/0x68 > [ 290.058657] [] ? snprintf+0x1b/0x1d > [ 290.058828] [] get_sb_bdev+0xf1/0x13f > [ 290.058972] [] ? kstrdup+0x2f/0x51 > [ 290.059182] [] get_super_block+0x18/0x1a > [ 290.059321] [] ? reiserfs_fill_super+0x0/0xc58 > [ 290.059485] [] vfs_kern_mount+0x40/0x7b > [ 290.059624] [] do_kern_mount+0x37/0xbf > [ 290.059794] [] do_mount+0x5cc/0x609 > [ 290.059934] [] ? lock_kernel+0x19/0x8c > [ 290.060142] [] ? sys_mount+0x56/0xa0 > [ 290.060275] [] sys_mount+0x69/0xa0 > [ 290.060432] [] sysenter_do_call+0x12/0x31 > [ 290.060569] Kernel panic - not syncing: <0>REISERFS: panic (device > loop0): sh-464: bad blocksize (1024) > [ 290.060575] > > Greetings, Eric > -- > To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > >