[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#317787: kernel-source-2.6.10: md memory leak



Package: kernel-source-2.6.10
Version: 2.6.10-5
Severity: important
Tags: patch


The attached patch against 2.6.10-5, due to Neil Brown, corrects a
problem in 2.6.10 which causes the md driver to leak bios -- eventually
resulting in a OOM condition. The problem appears to have been corrected
upstream for 2.6.11, but my system hates that version :-) so I would
like to see this backported if you release additional 2.6.10 updates. I
have been running this patch on my system for over 4 days with no sign
of the slab growth that was forcing me to reboot a couple times a week
previously.

Thanks,

  Scott Bailey
  scott.bailey@eds.com

--- drivers/md/md.c.orig	2005-02-07 15:44:50.000000000 -0500
+++ drivers/md/md.c	2005-07-06 10:55:56.000000000 -0400
@@ -336,8 +336,6 @@
 	struct completion event;
 	int ret;
 
-	bio_get(bio);
-
 	rw |= (1 << BIO_RW_SYNC);
 
 	bio->bi_bdev = bdev;



-- System Information:
Debian Release: testing/unstable
Architecture: alpha
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.10-hamster.5c
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages kernel-source-2.6.10 depends on:
ii  binutils                      2.15-7     The GNU assembler, linker and bina
ii  bzip2                         1.0.2-7    high-quality block-sorting file co
ii  coreutils [fileutils]         5.2.1-2    The GNU core utilities
ii  fileutils                     5.2.1-2    The GNU file management utilities 

Versions of packages kernel-source-2.6.10 recommends:
ii  gcc                         4:3.3.5-3    The GNU C compiler
ii  libc6.1-dev [libc6-dev]     2.3.2.ds1-22 GNU C Library: Development Librari
ii  make                        3.80-9       The GNU version of the "make" util

-- no debconf information



Reply to: