Messages in this thread Patch in this message | | | Date | Fri, 12 Nov 1999 10:07:05 +0100 (CET) | From | Ingo Molnar <> | Subject | [patch] highmem-2.3.27-A0 |
| |
attached patch against 2.3.27 fixes an oversight, only affects highmem boxes. Result of the bug is rare (strictly non-metadata) data corruption and potential crashes in kunmap_atomic().
-- mingo --- linux/mm/highmem.c.orig Fri Nov 12 00:31:13 1999 +++ linux/mm/highmem.c Fri Nov 12 00:32:30 1999 @@ -269,9 +269,9 @@ unsigned long vto; p_to = to->b_page; - vto = kmap_atomic(p_to, KM_BOUNCE_WRITE); + vto = kmap_atomic(p_to, KM_BOUNCE_READ); memcpy((char *)vto + bh_offset(to), from->b_data, to->b_size); - kunmap_atomic(vto, KM_BOUNCE_WRITE); + kunmap_atomic(vto, KM_BOUNCE_READ); } static inline void bounce_end_io (struct buffer_head *bh, int uptodate)
| |