Re: [PATCH] bio_uncopy_user mem leak

From: Andrew Morton
Date: Tue Aug 17 2004 - 17:52:36 EST


Kurt Garloff <garloff@xxxxxxx> wrote:
>
> When using bounce buffers for SG_IO commands with unaligned
> buffers in blk_rq_map_user(), we should free the pages from
> blk_rq_unmap_user() which calls bio_uncopy_user() for the
> non-BIO_USER_MAPPED case. That function failed to free the
> pages for write requests.
>
> So we leaked pages and you machine would go OOM. Rebooting
> helped ;-)

Eureka. Thanks.

This really should trigger a 2.6.8.2. We'll see.

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