lkml.org 
[lkml]   [1999]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Bug in ll_rw_blk.c in 2.3.10/11

On Tue, 27 Jul 1999, Jan Kara wrote:

> I think I've found a bug in make_request() in ll_rw_blk.c in 2.3.10 or
> 11. The problem is that when access beyond the end of device is done,
> all flags except BH_Locked are cleared. This also means clearing of flag
> BH_Mapped so when you try to read the block second time, ll_rw_block()
> complains about not mapped buffer and does BUG()... My fix simply
> preserves the BH_mapped flag too but I'm not sure this is the right fix.
> If it is, the patch is attached.

yes, this is the correct fix. We should not crash if we detect nonfatal
beyond-limit IO access.

-- mingo


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.035 / U:0.844 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site