- sysctl-allow-proc-sys-without-sys_sysctl-fix.patch removed from -mm tree

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

 



The patch titled

     sysctl: warn if someone uses not-present sys_sysctl()

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

     sysctl-allow-proc-sys-without-sys_sysctl-fix.patch

This patch was dropped because it was folded into sysctl-allow-proc-sys-without-sys_sysctl.patch

------------------------------------------------------
Subject: sysctl: warn if someone uses not-present sys_sysctl()
From: Andrew Morton <akpm@xxxxxxxx>

If sys_sysctl() is not compiled-in, emit a warning.

Cc: Eric W. Biederman <ebiederm@xxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 kernel/sysctl.c |    8 ++++++++
 1 files changed, 8 insertions(+)

diff -puN kernel/sysctl.c~sysctl-allow-proc-sys-without-sys_sysctl-fix kernel/sysctl.c
--- a/kernel/sysctl.c~sysctl-allow-proc-sys-without-sys_sysctl-fix
+++ a/kernel/sysctl.c
@@ -2486,6 +2486,14 @@ int sysctl_ms_jiffies(ctl_table *table, 
 
 asmlinkage long sys_sysctl(struct __sysctl_args __user *args)
 {
+	static int msg_count;
+
+	if (msg_count < 5) {
+		msg_count++;
+		printk(KERN_INFO
+			"warning: process `%s' used the removed sysctl "
+			"system call\n", current->comm);
+	}
 	return -ENOSYS;
 }
 
_

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

origin.patch
revert-x86_64-mm-i386-remove-lock-section.patch
fix-x86_64-mm-spinlock-cleanup.patch
have-x86-use-add_active_range-and-free_area_init_nodes.patch
vm-add-per-zone-writeout-counter.patch
slab-fix-kmalloc_node-applying-memory-policies-if-nodeid-==-numa_node_id.patch
gfp_thisnode-for-the-slab-allocator-v2.patch
do_no_pfn.patch
nommu-set-bdi-capabilities-for-dev-mem-and-dev-kmem.patch
nommu-move-the-fallback-arch_vma_name-to-a-sensible-place.patch
inode-diet-eliminate-i_blksize-and-use-a-per-superblock-default.patch
x86-microcode-microcode-driver-cleanup.patch
x86-microcode-add-sysfs-and-hotplug-support.patch
eisa-bus-modalias-attributes-support-1.patch
alloc_fdtable-cleanup.patch
sysctl-allow-proc-sys-without-sys_sysctl.patch
sysctl-allow-proc-sys-without-sys_sysctl-fix.patch
add-probe_kernel_address.patch
x86-use-probe_kernel_address-in-handle_bug.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