- bug-test-1.patch removed from -mm tree

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

 



The patch titled

     bug-test-1

has been removed from the -mm tree.  Its filename is

     bug-test-1.patch

This patch was dropped because an updated version will be merged

------------------------------------------------------
Subject: bug-test-1
From: Jeremy Fitzhardinge <jeremy@xxxxxxxx>

add bugs!

Cc: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Cc: Andi Kleen <ak@xxxxxx>
Cc: Hugh Dickens <hugh@xxxxxxxxxxx>
Cc: Michael Ellerman <michael@xxxxxxxxxxxxxx>
Cc: Paul Mackerras <paulus@xxxxxxxxx>
Cc: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>
Cc: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/char/raw.c |   33 +++++++++++++++++++++++++++++++++
 fs/drop_caches.c   |    4 ++++
 2 files changed, 37 insertions(+)

diff -puN drivers/char/raw.c~bug-test-1 drivers/char/raw.c
--- a/drivers/char/raw.c~bug-test-1
+++ a/drivers/char/raw.c
@@ -19,6 +19,7 @@
 #include <linux/cdev.h>
 #include <linux/device.h>
 #include <linux/mutex.h>
+#include <linux/sysctl.h>
 
 #include <asm/uaccess.h>
 
@@ -260,6 +261,36 @@ static struct cdev raw_cdev = {
 	.owner	=	THIS_MODULE,
 };
 
+static int go_bug(ctl_table *table, int write,
+        struct file *file, void __user *buffer, size_t *length, loff_t *ppos)
+{
+	BUG_ON(1);
+	return 0;
+}
+
+static int go_warn(ctl_table *table, int write,
+        struct file *file, void __user *buffer, size_t *length, loff_t *ppos)
+{
+	WARN_ON(1);
+	return 0;
+}
+
+static ctl_table raw_table[] = {
+	{
+		.ctl_name =	1,
+		.procname = 	"go-bug",
+		.mode =		0600,
+		.proc_handler =	go_bug,
+	},
+	{
+		.ctl_name =	2,
+		.procname = 	"go-warn",
+		.mode =		0600,
+		.proc_handler =	go_warn,
+	},
+	{0}
+};
+
 static int __init raw_init(void)
 {
 	dev_t dev = MKDEV(RAW_MAJOR, 0);
@@ -285,6 +316,8 @@ static int __init raw_init(void)
 	}
 	class_device_create(raw_class, NULL, MKDEV(RAW_MAJOR, 0), NULL, "rawctl");
 
+	register_sysctl_table(raw_table, 0);
+
 	return 0;
 
 error_region:
diff -puN fs/drop_caches.c~bug-test-1 fs/drop_caches.c
--- a/fs/drop_caches.c~bug-test-1
+++ a/fs/drop_caches.c
@@ -63,6 +63,10 @@ int drop_caches_sysctl_handler(ctl_table
 			drop_pagecache();
 		if (sysctl_drop_caches & 2)
 			drop_slab();
+		if (sysctl_drop_caches & 4)
+			WARN_ON(1);
+		if (sysctl_drop_caches & 8)
+			BUG();
 	}
 	return 0;
 }
_

Patches currently in -mm which might be from jeremy@xxxxxxxx are

x86-remove-default_ldt-and-simplify-ldt-setting.patch
generic-implementatation-of-bug-fix.patch
uml-add-generic-bug-support.patch
use-generic-bug-for-ppc.patch
bug-test-1.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux