Re: sshd segmentation fault on ia64 on 28-rc7-mmotm-081203 - bisected

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Franck Bui-Huu
Date: Thursday, December 18, 2008 - 12:54 pm

Hello,

[ Sorry for the late reply ]

Lee Schermerhorn wrote:

Unfortunately I don't see why this patch causes such breakage.

Could you apply the following patch with the previous patch applied
and see if sshd still segfaults ?

It basically reverts:

   do_mpage_readpage-remove-first_logical_block-parameter-fix.patch

Therefore I can see which part of the patch is broken.

Also can you tell me what the block size used by the file system
hosting sshd ?

Thanks !

                Franck

--- 8< ---

diff --git a/fs/mpage.c b/fs/mpage.c
index ca33b28..b5ac1ff 100644
--- a/fs/mpage.c
+++ b/fs/mpage.c
@@ -163,10 +163,7 @@ map_buffer_to_page(struct page *page, struct buffer_head *bh, int page_block)
 */
 static int last_mapped_page(struct buffer_head *map_bh, struct page *page)
 {
-	pgoff_t map_index = map_bh->b_page->index;
-
-	return buffer_boundary(map_bh) &&
-		page->index >= map_index + (map_bh->b_size>>PAGE_CACHE_SHIFT);
+	return buffer_boundary(map_bh);
 }
 
 /*
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: sshd segmentation fault on ia64 on 28-rc7-mmotm-081203 ..., Franck Bui-Huu, (Thu Dec 18, 12:54 pm)