rpms/kernel/devel linux-2.6-kmemleak-scan-stack-by-default.patch, NONE, 1.1 kernel.spec, 1.1591, 1.1592

Dave Jones davej at fedoraproject.org
Thu Jun 25 15:34:36 UTC 2009


Author: davej

Update of /cvs/pkgs/rpms/kernel/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv18662

Modified Files:
	kernel.spec 
Added Files:
	linux-2.6-kmemleak-scan-stack-by-default.patch 
Log Message:
Make kmemleak scan process stacks by default.
  Should reduce false positives (which does also increase false negatives,
  but that's at least less noisy)

linux-2.6-kmemleak-scan-stack-by-default.patch:

--- NEW FILE linux-2.6-kmemleak-scan-stack-by-default.patch ---
--- linux-2.6.30.noarch/mm/kmemleak.c~	2009-06-25 11:31:30.000000000 -0400
+++ linux-2.6.30.noarch/mm/kmemleak.c	2009-06-25 11:31:38.000000000 -0400
@@ -194,7 +194,7 @@ static unsigned long jiffies_min_age;
 /* delay between automatic memory scannings */
 static signed long jiffies_scan_wait;
 /* enables or disables the task stacks scanning */
-static int kmemleak_stack_scan;
+static int kmemleak_stack_scan = 1;
 /* mutex protecting the memory scanning */
 static DEFINE_MUTEX(scan_mutex);
 /* mutex protecting the access to the /sys/kernel/debug/kmemleak file */


Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/devel/kernel.spec,v
retrieving revision 1.1591
retrieving revision 1.1592
diff -u -p -r1.1591 -r1.1592
--- kernel.spec	25 Jun 2009 01:27:31 -0000	1.1591
+++ kernel.spec	25 Jun 2009 15:34:05 -0000	1.1592
@@ -676,6 +676,8 @@ Patch2903: linux-2.6-revert-dvb-net-kabi
 # fs fixes
 Patch3000: linux-2.6-btrfs-experimental-branch.patch
 
+Patch4000: linux-2.6-kmemleak-scan-stack-by-default.patch
+
 #snmp fixes
 Patch10000: linux-2.6-missing-rfc2465-stats.patch
 
@@ -1136,6 +1138,8 @@ ApplyPatch linux-2.6-execshield.patch
 # btrfs
 #ApplyPatch linux-2.6-btrfs-experimental-branch.patch
 
+ApplyPatch linux-2.6-kmemleak-scan-stack-by-default.patch
+
 # USB
 
 # ACPI
@@ -1842,6 +1846,11 @@ fi
 # and build.
 
 %changelog
+* Thu Jun 25 2009 Dave Jones <davej at redhat.com> 2.6.31-0.29.rc1
+- Make kmemleak scan process stacks by default.
+  Should reduce false positives (which does also increase false negatives,
+  but that's at least less noisy)
+
 * Wed Jun 24 2009 Kyle McMartin <kyle at redhat.com> 2.6.31-0.28.rc1
 - 2.6.31-rc1
 - linux-2.6-utrace.patch: rebase on kernel/Makefile changes




More information about the fedora-extras-commits mailing list