Linux 2.6.16.6
Subsystems (24)
We (the -stable team) are announcing the release of the 2.6.16.6 kernel.
The diffstat and short summary of the fixes are below.
I'll also be replying to this message with a copy of the patch between 2.6.16.5 and 2.6.16.6, as it is small enough to do so.
The updated 2.6.16.y git tree can be found at:
rsync://rsync.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.16.y.git
and can be browsed at the normal kernel.org git web browser:
www.kernel.org/git/
thanks,
greg k-h
--------
Makefile | 2 arch/alpha/kernel/setup.c | 17 ++ arch/alpha/kernel/smp.c | 8 - arch/m32r/kernel/m32r_ksyms.c | 4 arch/m32r/kernel/setup.c | 12 - arch/m32r/kernel/smpboot.c | 19 +- arch/m32r/lib/Makefile | 4 arch/m32r/lib/getuser.S | 88 ------------- arch/m32r/lib/putuser.S | 84 ------------ arch/powerpc/kernel/setup_64.c | 10 - arch/powerpc/kernel/signal_64.c | 2 drivers/block/cciss.c | 96 +++++++------- drivers/char/tlclk.c | 36 ++--- drivers/edac/Kconfig | 2 drivers/net/sky2.c | 4 drivers/net/sky2.h | 1 drivers/usb/serial/console.c | 2 drivers/usb/storage/Kconfig | 3 fs/cifs/cifsencrypt.c | 36 +++-- fs/ext3/resize.c | 1 fs/fuse/file.c | 8 - fs/partitions/check.c | 5 fs/xfs/linux-2.6/xfs_iops.c | 3 include/asm-m32r/smp.h | 3 include/asm-m32r/uaccess.h | 266 +++++++++++++++++----------------------- include/linux/mm.h | 5 include/linux/page-flags.h | 8 + include/net/ip.h | 1 ipc/shm.c | 2 kernel/power/process.c | 3 kernel/ptrace.c | 7 - kernel/signal.c | 5 kernel/sys.c | 14 +- mm/page_alloc.c | 31 ++-- net/atm/clip.c | 42 ++++-- net/bridge/br_netfilter.c | 13 + net/ipv4/ip_output.c | 6 37 files changed, 360 insertions(+), 493 deletions(-)
Summary of changes from v2.6.16.5 to v2.6.16.6
==============================================
Ananiev, Leonid I:
ext3: Fix missed mutex unlock
Andrew Morton:
RLIMIT_CPU: fix handling of a zero limit
Brian Uhrain says:
alpha: SMP boot fixes
Greg Kroah-Hartman:
Linux 2.6.16.6
Hirokazu Takata:
m32r: security fix of {get, put}_user macros
m32r: Fix cpu_possible_map and cpu_present_map initialization for SMP kernel
Hugh Dickins:
shmat: stop mprotect from giving write permission to a readonly attachment (CVE-2006-1524)
Laurent MEYER:
powerpc: fix incorrect SA_ONSTACK behaviour for 64-bit processes
Mark Bellon:
MPBL0010 driver sysfs permissions wide open
Mike Miller:
cciss: bug fix for crash when running hpacucli
Miklos Szeredi:
fuse: fix oops in fuse_send_readpages()
Nathan Scott:
Fix utime(2) in the case that no times parameter was passed in.
Nick Piggin:
Fix buddy list race that could lead to page lru list corruptions
Patrick McHardy:
NETFILTER: Fix fragmentation issues with bridge netfilter
Paul Fulghum:
USB: remove __init from usb_console_setup
Pavel Machek:
Fix suspend with traced tasks
Randy Dunlap:
isd200: limit to BLK_DEV_IDE
edac_752x needs CONFIG_HOTPLUG
Roland McGrath:
fix non-leader exec under ptrace
Stephen Hemminger:
sky2: bad memory reference on dual port cards
atm: clip causes unregister hang
Stephen Rothwell:
powerpc: iSeries needs slb_initialize to be called Fix block device symlink name
Steve French:
Incorrect signature sent on SMB Read
Makefile +1 -1
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 16 -EXTRAVERSION = .5 +EXTRAVERSION = .6 NAME=Sliding Snow Leopard # *DOCUMENTATION*
arch/alpha/kernel/setup.c +17 -0
@@ -24,6 +24,7 @@#include <linux/config.h> /* CONFIG_ALPHA_LCA etc */ #include <linux/mc146818rtc.h> #include <linux/console.h> +#include <linux/cpu.h> #include <linux/errno.h> #include <linux/init.h> #include <linux/string.h>
@@ -477,6 +478,22 @@ page_is_ram(unsigned long pfn)#undef PFN_PHYS#undef PFN_MAX +static int __init +register_cpus (void ) +{ +int i; + +for_each_possible_cpu (i) { +struct cpu *p =kzalloc (sizeof (*p),GFP_KERNEL ); +if (!p) +return -ENOMEM ; +register_cpu (p, i,NULL ); + } +return 0 ; +} + +arch_initcall (register_cpus); +void __init setup_arch (char **cmdline_p) {
arch/alpha/kernel/smp.c +3 -5
@@ -439,7 +439,7 @@ setup_smp(void)if ((cpu->flags &0x1cc ) ==0x1cc ) { smp_num_probed++;/* Assume here that "whami" == index */ -cpu_set (i, cpu_possible_map); +cpu_set (i, cpu_present_mask); cpu->pal_revision = boot_cpu_palrev; }
@@ -450,9 +450,8 @@ setup_smp(void) } }else { smp_num_probed =1 ; -cpu_set (boot_cpuid, cpu_possible_map); +cpu_set (boot_cpuid, cpu_present_mask); } - cpu_present_mask =cpumask_of_cpu (boot_cpuid);printk (KERN_INFO "SMP: %d CPUs probed -- cpu_present_mask = %lx\n" , smp_num_probed, cpu_possible_map.bits[0 ]);
@@ -488,9 +487,8 @@ void __devinitsmp_prepare_boot_cpu (void) {/* -* Mark the boot cpu (current cpu) as both present and online +* Mark the boot cpu (current cpu) as online */ -cpu_set (smp_processor_id (), cpu_present_mask);cpu_set (smp_processor_id (), cpu_online_map); }
arch/m32r/kernel/m32r_ksyms.c +0 -4
@@ -38,10 +38,6 @@ EXPORT_SYMBOL(__udelay);EXPORT_SYMBOL (__delay);EXPORT_SYMBOL (__const_udelay); -EXPORT_SYMBOL (__get_user_1); -EXPORT_SYMBOL (__get_user_2); -EXPORT_SYMBOL (__get_user_4); -EXPORT_SYMBOL (strpbrk);EXPORT_SYMBOL (strstr);
arch/m32r/kernel/setup.c +5 -7
@@ -9,6 +9,7 @@#include <linux/config.h> #include <linux/init.h> +#include <linux/kernel.h> #include <linux/stddef.h> #include <linux/fs.h> #include <linux/sched.h>
@@ -218,8 +219,6 @@ static unsigned long __init setup_memoryextern unsigned long setup_memory (void );#endif /* CONFIG_DISCONTIGMEM */ -#define M32R_PCC_PCATCR 0x00ef7014/* will move to m32r.h */ -void __init setup_arch (char **cmdline_p) {ROOT_DEV =old_decode_dev (ORIG_ROOT_DEV );
@@ -268,15 +267,14 @@ void __init setup_arch(char **cmdline_p)paging_init (); } -static struct cpu cpu[NR_CPUS ]; +static struct cpu cpu_devices[NR_CPUS ];static int __init topology_init (void ) { -int cpu_id; +int i; -for (cpu_id =0 ; cpu_id <NR_CPUS ; cpu_id++) -if (cpu_possible (cpu_id)) -register_cpu (&cpu[cpu_id], cpu_id,NULL ); +for_each_present_cpu (i) +register_cpu (&cpu_devices[i], i,NULL );return 0 ; }
arch/m32r/kernel/smpboot.c +10 -9
@@ -39,8 +39,10 @@* Martin J. Bligh : Added support for multi-quad systems */ +#include <linux/module.h> #include <linux/config.h> #include <linux/init.h> +#include <linux/kernel.h> #include <linux/mm.h> #include <linux/smp_lock.h> #include <linux/irq.h>
@@ -72,11 +74,15 @@ physid_mask_t phys_cpu_present_map;/* Bitmask of currently online CPUs */ cpumask_t cpu_online_map; +EXPORT_SYMBOL (cpu_online_map);cpumask_t cpu_bootout_map;cpumask_t cpu_bootin_map; -cpumask_t cpu_callout_map;static cpumask_t cpu_callin_map; +cpumask_t cpu_callout_map; +EXPORT_SYMBOL (cpu_callout_map); +cpumask_t cpu_possible_map =CPU_MASK_ALL ; +EXPORT_SYMBOL (cpu_possible_map);/* Per CPU bogomips and other parameters */ struct cpuinfo_m32r cpu_data[NR_CPUS] __cacheline_aligned;
@@ -110,7 +116,6 @@ static unsigned int calibration_result;void smp_prepare_boot_cpu (void );void smp_prepare_cpus (unsigned int ); -static void smp_tune_scheduling (void );static void init_ipi_lock (void );static void do_boot_cpu (int );int __cpu_up (unsigned int );
@@ -177,6 +182,9 @@ void __init smp_prepare_cpus(unsigned in }for (phys_id =0 ; phys_id < nr_cpu ; phys_id++)physid_set (phys_id, phys_cpu_present_map); +#ifndef CONFIG_HOTPLUG_CPU + cpu_present_map = cpu_possible_map; +#endif show_mp_info (nr_cpu);
@@ -186,7 +194,6 @@ void __init smp_prepare_cpus(unsigned in* Setup boot CPU information */ smp_store_cpu_info (0 );/* Final full version of the data */ -smp_tune_scheduling ();/* * If SMP should be disabled, then really disable it!
@@ -230,11 +237,6 @@ smp_done:Dprintk ("Boot done.\n" ); } -static void __init smp_tune_scheduling (void ) -{ -/* Nothing to do. */ -} -/* * init_ipi_lock : Initialize IPI locks. */
@@ -629,4 +631,3 @@ static void __init unmap_cpu_to_physid(i physid_2_cpu[phys_id] =-1 ; cpu_2_physid[cpu_id] =-1 ; } -
arch/m32r/lib/Makefile +2 -2
@@ -2,6 +2,6 @@ # Makefile for M32R-specific library files.. # -lib-y := checksum.o ashxdi3.o memset.o memcpy.o getuser.o \ - putuser.o delay.o strlen.o usercopy.o csum_partial_copy.o +lib-y := checksum.o ashxdi3.o memset.o memcpy.o \ + delay.o strlen.o usercopy.o csum_partial_copy.o
arch/m32r/lib/getuser.S deleted +0 -88
88 lines not on this page · raw message
arch/m32r/lib/putuser.S deleted +0 -84
84 lines not on this page · raw message
arch/powerpc/kernel/setup_64.c +4 -6
@@ -256,12 +256,10 @@ void __init early_setup(unsigned long dt/* * Initialize stab / SLB management except on iSeries */ -if (!firmware_has_feature (FW_FEATURE_ISERIES )) { -if (cpu_has_feature (CPU_FTR_SLB )) -slb_initialize (); -else -stab_initialize (lpaca->stab_real); - } +if (cpu_has_feature (CPU_FTR_SLB )) +slb_initialize (); +else if (!firmware_has_feature (FW_FEATURE_ISERIES )) +stab_initialize (lpaca->stab_real);DBG (" <- early_setup()\n" ); }
arch/powerpc/kernel/signal_64.c +1 -1
@@ -213,7 +213,7 @@ static inline void __user * get_sigframe/* Default to using normal stack */ newsp = regs->gpr[1 ]; -if (ka->sa.sa_flags &SA_ONSTACK ) { +if ((ka->sa.sa_flags &SA_ONSTACK ) && current->sas_ss_size) {if (!on_sig_stack (regs->gpr[1 ])) newsp = (current->sas_ss_sp + current->sas_ss_size); }
drivers/block/cciss.c +49 -47
120 lines not on this page · raw message
drivers/char/tlclk.c +18 -18
@@ -327,7 +327,7 @@ static ssize_t store_received_ref_clk3a(return strnlen (buf, count); } -static DEVICE_ATTR(received_ref_clk3a, S_IWUGO, NULL, +static DEVICE_ATTR(received_ref_clk3a, (S_IWUSR|S_IWGRP), NULL, store_received_ref_clk3a);
@@ -349,7 +349,7 @@ static ssize_t store_received_ref_clk3b(return strnlen (buf, count); } -static DEVICE_ATTR(received_ref_clk3b, S_IWUGO, NULL, +static DEVICE_ATTR(received_ref_clk3b, (S_IWUSR|S_IWGRP), NULL, store_received_ref_clk3b);
@@ -371,7 +371,7 @@ static ssize_t store_enable_clk3b_outputreturn strnlen (buf, count); } -static DEVICE_ATTR(enable_clk3b_output, S_IWUGO, NULL, +static DEVICE_ATTR(enable_clk3b_output, (S_IWUSR|S_IWGRP), NULL, store_enable_clk3b_output); static ssize_t store_enable_clk3a_output(struct device *d,
@@ -392,7 +392,7 @@ static ssize_t store_enable_clk3a_outputreturn strnlen (buf, count); } -static DEVICE_ATTR(enable_clk3a_output, S_IWUGO, NULL, +static DEVICE_ATTR(enable_clk3a_output, (S_IWUSR|S_IWGRP), NULL, store_enable_clk3a_output); static ssize_t store_enable_clkb1_output(struct device *d,
@@ -413,7 +413,7 @@ static ssize_t store_enable_clkb1_outputreturn strnlen (buf, count); } -static DEVICE_ATTR(enable_clkb1_output, S_IWUGO, NULL, +static DEVICE_ATTR(enable_clkb1_output, (S_IWUSR|S_IWGRP), NULL, store_enable_clkb1_output);
@@ -435,7 +435,7 @@ static ssize_t store_enable_clka1_outputreturn strnlen (buf, count); } -static DEVICE_ATTR(enable_clka1_output, S_IWUGO, NULL, +static DEVICE_ATTR(enable_clka1_output, (S_IWUSR|S_IWGRP), NULL, store_enable_clka1_output); static ssize_t store_enable_clkb0_output(struct device *d,
@@ -456,7 +456,7 @@ static ssize_t store_enable_clkb0_outputreturn strnlen (buf, count); } -static DEVICE_ATTR(enable_clkb0_output, S_IWUGO, NULL, +static DEVICE_ATTR(enable_clkb0_output, (S_IWUSR|S_IWGRP), NULL, store_enable_clkb0_output); static ssize_t store_enable_clka0_output(struct device *d,
@@ -477,7 +477,7 @@ static ssize_t store_enable_clka0_outputreturn strnlen (buf, count); } -static DEVICE_ATTR(enable_clka0_output, S_IWUGO, NULL, +static DEVICE_ATTR(enable_clka0_output, (S_IWUSR|S_IWGRP), NULL, store_enable_clka0_output); static ssize_t store_select_amcb2_transmit_clock(struct device *d,
@@ -519,7 +519,7 @@ static ssize_t store_select_amcb2_transmreturn strnlen (buf, count); } -static DEVICE_ATTR(select_amcb2_transmit_clock, S_IWUGO, NULL, +static DEVICE_ATTR(select_amcb2_transmit_clock, (S_IWUSR|S_IWGRP), NULL, store_select_amcb2_transmit_clock); static ssize_t store_select_amcb1_transmit_clock(struct device *d,
@@ -560,7 +560,7 @@ static ssize_t store_select_amcb1_transmreturn strnlen (buf, count); } -static DEVICE_ATTR(select_amcb1_transmit_clock, S_IWUGO, NULL, +static DEVICE_ATTR(select_amcb1_transmit_clock, (S_IWUSR|S_IWGRP), NULL, store_select_amcb1_transmit_clock); static ssize_t store_select_redundant_clock(struct device *d,
@@ -581,7 +581,7 @@ static ssize_t store_select_redundant_clreturn strnlen (buf, count); } -static DEVICE_ATTR(select_redundant_clock, S_IWUGO, NULL, +static DEVICE_ATTR(select_redundant_clock, (S_IWUSR|S_IWGRP), NULL, store_select_redundant_clock); static ssize_t store_select_ref_frequency(struct device *d,
@@ -602,7 +602,7 @@ static ssize_t store_select_ref_frequencreturn strnlen (buf, count); } -static DEVICE_ATTR(select_ref_frequency, S_IWUGO, NULL, +static DEVICE_ATTR(select_ref_frequency, (S_IWUSR|S_IWGRP), NULL, store_select_ref_frequency); static ssize_t store_filter_select(struct device *d,
@@ -623,7 +623,7 @@ static ssize_t store_filter_select(strucreturn strnlen (buf, count); } -static DEVICE_ATTR(filter_select, S_IWUGO, NULL, store_filter_select); +static DEVICE_ATTR(filter_select, (S_IWUSR|S_IWGRP), NULL, store_filter_select);static ssize_t store_hardware_switching_mode (struct device *d,struct device_attribute *attr,const char *buf,size_t count)
@@ -643,7 +643,7 @@ static ssize_t store_hardware_switching_return strnlen (buf, count); } -static DEVICE_ATTR(hardware_switching_mode, S_IWUGO, NULL, +static DEVICE_ATTR(hardware_switching_mode, (S_IWUSR|S_IWGRP), NULL, store_hardware_switching_mode); static ssize_t store_hardware_switching(struct device *d,
@@ -664,7 +664,7 @@ static ssize_t store_hardware_switching(return strnlen (buf, count); } -static DEVICE_ATTR(hardware_switching, S_IWUGO, NULL, +static DEVICE_ATTR(hardware_switching, (S_IWUSR|S_IWGRP), NULL, store_hardware_switching); static ssize_t store_refalign (struct device *d,
@@ -684,7 +684,7 @@ static ssize_t store_refalign (struct dereturn strnlen (buf, count); } -static DEVICE_ATTR(refalign, S_IWUGO, NULL, store_refalign); +static DEVICE_ATTR(refalign, (S_IWUSR|S_IWGRP), NULL, store_refalign);static ssize_t store_mode_select (struct device *d,struct device_attribute *attr,const char *buf,size_t count)
@@ -704,7 +704,7 @@ static ssize_t store_mode_select (structreturn strnlen (buf, count); } -static DEVICE_ATTR(mode_select, S_IWUGO, NULL, store_mode_select); +static DEVICE_ATTR(mode_select, (S_IWUSR|S_IWGRP), NULL, store_mode_select);static ssize_t store_reset (struct device *d,struct device_attribute *attr,const char *buf,size_t count)
@@ -724,7 +724,7 @@ static ssize_t store_reset (struct devicreturn strnlen (buf, count); } -static DEVICE_ATTR(reset, S_IWUGO, NULL, store_reset); +static DEVICE_ATTR(reset, (S_IWUSR|S_IWGRP), NULL, store_reset);static struct attribute *tlclk_sysfs_entries[] = { &dev_attr_current_ref.attr,
drivers/edac/Kconfig +1 -1
@@ -71,7 +71,7 @@ config EDAC_E7XXX config EDAC_E752X tristate "Intel e752x (e7520, e7525, e7320)" - depends on EDAC_MM_EDAC && PCI + depends on EDAC_MM_EDAC && PCI && HOTPLUG help Support for error detection and correction on the Intel E7520, E7525, E7320 server chipsets.
drivers/net/sky2.c +2 -2
@@ -579,8 +579,8 @@ static void sky2_mac_init(struct sky2_hw reg =gma_read16 (hw, port,GM_PHY_ADDR );gma_write16 (hw, port,GM_PHY_ADDR , reg |GM_PAR_MIB_CLR ); -for (i =0 ; i <GM_MIB_CNT_SIZE ; i++) -gma_read16 (hw, port,GM_MIB_CNT_BASE +8 * i); +for (i =GM_MIB_CNT_BASE ; i <=GM_MIB_CNT_END ; i +=4 ) +gma_read16 (hw, port, i);gma_write16 (hw, port,GM_PHY_ADDR , reg);/* transmit control */
drivers/net/sky2.h +1 -0
@@ -1380,6 +1380,7 @@ enum {/* MIB Counters */ #define GM_MIB_CNT_BASE 0x0100/* Base Address of MIB Counters */ #define GM_MIB_CNT_SIZE 44/* Number of MIB Counters */ +#define GM_MIB_CNT_END 0x025C/* Last MIB counter */ /* * MIB Counters base address definitions (low word) -
drivers/usb/serial/console.c +1 -1
@@ -54,7 +54,7 @@ static struct console usbcons;* serial.c code, except that the specifier is "ttyUSB" instead * of "ttyS". */ -static int __init usb_console_setup (struct console *co,char *options) +static int usb_console_setup (struct console *co,char *options) {struct usbcons_info *info = &usbcons_info;int baud =9600 ;
drivers/usb/storage/Kconfig +2 -1
@@ -48,7 +48,8 @@ config USB_STORAGE_FREECOM config USB_STORAGE_ISD200 bool "ISD-200 USB/ATA Bridge support" - depends on USB_STORAGE && BLK_DEV_IDE + depends on USB_STORAGE + depends on BLK_DEV_IDE=y || BLK_DEV_IDE=USB_STORAGE ---help--- Say Y here if you want to use USB Mass Store devices based on the In-Systems Design ISD-200 USB/ATA bridge.
fs/cifs/cifsencrypt.c +23 -13
@@ -56,9 +56,6 @@ int cifs_sign_smb(struct smb_hdr * cifs_int rc =0 ;char smb_signature[20 ]; -/* BB remember to initialize sequence number elsewhere and initialize mac_signing key elsewhere BB */ -/* BB remember to add code to save expected sequence number in midQ entry BB */ -if ((cifs_pdu ==NULL ) || (server ==NULL ))return -EINVAL ;
@@ -85,20 +82,33 @@ int cifs_sign_smb(struct smb_hdr * cifs_static int cifs_calc_signature2 (const struct kvec * iov,int n_vec,const char * key,char * signature) { -struct MD5Context context; - -if ((iov ==NULL ) || (signature ==NULL )) -return -EINVAL ; +struct MD5Context context; +int i; -MD5Init (&context); -MD5Update (&context,key,CIFS_SESSION_KEY_SIZE +16 ); +if ((iov ==NULL ) || (signature ==NULL )) +return -EINVAL ; -/* MD5Update(&context,cifs_pdu->Protocol,cifs_pdu->smb_buf_length); */ /* BB FIXME BB */ +MD5Init (&context); +MD5Update (&context,key,CIFS_SESSION_KEY_SIZE +16 ); +for (i=0 ;i<n_vec;i++) { +if (iov[i].iov_base ==NULL ) { +cERROR (1 ,("null iovec entry" )); +return -EIO ; + }else if (iov[i].iov_len ==0 ) +break ;/* bail out if we are sent nothing to sign */ +/* The first entry includes a length field (which does not get +signed that occupies the first 4 bytes before the header */ +if (i==0 ) { +if (iov[0 ].iov_len <=8 )/* cmd field at offset 9 */ +break ;/* nothing to sign or corrupt header */ +MD5Update (&context,iov[0 ].iov_base+4 , iov[0 ].iov_len-4 ); + }else +MD5Update (&context,iov[i].iov_base, iov[i].iov_len); + } -MD5Final (signature,&context); +MD5Final (signature,&context); -return -EOPNOTSUPP ; -/* return 0; */ +return 0 ; }
fs/ext3/resize.c +1 -0
@@ -974,6 +974,7 @@ int ext3_group_extend(struct super_blockif (o_blocks_count !=le32_to_cpu (es->s_blocks_count)) {ext3_warning (sb, __FUNCTION__,"multiple resizers run on filesystem!" ); +unlock_super (sb); err = -EBUSY ; goto exit_put; }
fs/fuse/file.c +6 -2
@@ -397,8 +397,12 @@ static int fuse_readpages(struct file *freturn -EINTR ; err =read_cache_pages (mapping, pages, fuse_readpages_fill, &data); -if (!err) -fuse_send_readpages (data.req, file, inode); +if (!err) { +if (data.req->num_pages) +fuse_send_readpages (data.req, file, inode); +else +fuse_put_request (fc, data.req); + }return err; }
fs/partitions/check.c +5 -0
@@ -345,6 +345,7 @@ static char *make_block_name(struct gendchar *name;static char *block_str ="block:" ;int size; +char *s; size =strlen (block_str) +strlen (disk->disk_name) +1 ; name =kmalloc (size,GFP_KERNEL );
@@ -352,6 +353,10 @@ static char *make_block_name(struct gendreturn NULL ;strcpy (name, block_str);strcat (name, disk->disk_name); +/* ewww... some of these buggers have / in name... */ + s =strchr (name,'/' ); +if (s) + *s ='!' ;return name; }
fs/xfs/linux-2.6/xfs_iops.c +1 -2
@@ -673,8 +673,7 @@ linvfs_setattr(if (ia_valid &ATTR_ATIME ) { vattr.va_mask |=XFS_AT_ATIME ; vattr.va_atime = attr->ia_atime; -if (ia_valid &ATTR_ATIME_SET ) - inode->i_atime = attr->ia_atime; + inode->i_atime = attr->ia_atime; }if (ia_valid &ATTR_MTIME ) { vattr.va_mask |=XFS_AT_MTIME ;
include/asm-m32r/smp.h +2 -1
@@ -67,7 +67,8 @@ extern volatile int cpu_2_physid[NR_CPUS#define raw_smp_processor_id () (current_thread_info()->cpu)extern cpumask_t cpu_callout_map; -#define cpu_possible_map cpu_callout_map +extern cpumask_t cpu_possible_map; +extern cpumask_t cpu_present_map;static __inline__int hard_smp_processor_id (void ) {
include/asm-m32r/uaccess.h +115 -151
387 lines not on this page · raw message
include/linux/mm.h +2 -3
@@ -229,10 +229,9 @@ struct page {unsigned long private;/* Mapping-private opaque data: * usually used for buffer_heads * if PagePrivate set; used for -* swp_entry_t if PageSwapCache. -* When page is free, this +* swp_entry_t if PageSwapCache; * indicates order in the buddy -* system. +* system if PG_buddy is set. */ struct address_space *mapping;/* If low bit clear, points to * inode address_space, or NULL.
include/linux/page-flags.h +7 -1
@@ -74,7 +74,9 @@#define PG_mappedtodisk 16/* Has blocks allocated on-disk */ #define PG_reclaim 17/* To be reclaimed asap */ #define PG_nosave_free 18/* Free, should not be written */ -#define PG_uncached 19/* Page has been mapped as uncached */ +#define PG_buddy 19/* Page is free, on buddy lists */ + +#define PG_uncached 20/* Page has been mapped as uncached */ /* * Global page accounting. One instance per CPU. Only unsigned longs are
@@ -319,6 +321,10 @@ extern void __mod_page_state_offset(unsi#define SetPageNosaveFree (page) set_bit(PG_nosave_free, &(page)->flags)#define ClearPageNosaveFree (page) clear_bit(PG_nosave_free, &(page)->flags) +#define PageBuddy (page) test_bit(PG_buddy, &(page)->flags) +#define __SetPageBuddy (page) __set_bit(PG_buddy, &(page)->flags) +#define __ClearPageBuddy (page) __clear_bit(PG_buddy, &(page)->flags) +#define PageMappedToDisk (page) test_bit(PG_mappedtodisk, &(page)->flags)#define SetPageMappedToDisk (page) set_bit(PG_mappedtodisk, &(page)->flags)#define ClearPageMappedToDisk (page) clear_bit(PG_mappedtodisk, &(page)->flags)
include/net/ip.h +1 -0
@@ -95,6 +95,7 @@ extern int ip_local_deliver(struct sk_bextern int ip_mr_input (struct sk_buff *skb);extern int ip_output (struct sk_buff *skb);extern int ip_mc_output (struct sk_buff *skb); +extern int ip_fragment (struct sk_buff *skb,int (*output)(struct sk_buff *));extern int ip_do_nat (struct sk_buff *skb);extern void ip_send_check (struct iphdr *ip);extern int ip_queue_xmit (struct sk_buff *skb,int ipfragok);
ipc/shm.c +2 -0
@@ -161,6 +161,8 @@ static int shm_mmap(struct file * file, ret =shmem_mmap (file, vma);if (ret ==0 ) { vma->vm_ops = &shm_vm_ops; +if (!(vma->vm_flags &VM_WRITE )) + vma->vm_flags &= ~VM_MAYWRITE ;shm_inc (file->f_dentry->d_inode->i_ino); }
kernel/power/process.c +1 -2
@@ -25,8 +25,7 @@ static inline int freezeable(struct task (p->flags &PF_NOFREEZE ) || (p->exit_state ==EXIT_ZOMBIE ) || (p->exit_state ==EXIT_DEAD ) || - (p->state ==TASK_STOPPED ) || - (p->state == TASK_TRACED)) + (p->state == TASK_STOPPED)) return 0;return 1 ; }
kernel/ptrace.c +2 -5
@@ -57,10 +57,6 @@ void ptrace_untrace(task_t *child)signal_wake_up (child,1 ); } } -if (child->signal->flags &SIGNAL_GROUP_EXIT ) { -sigaddset (&child->pending.signal,SIGKILL ); -signal_wake_up (child,1 ); - }spin_unlock (&child->sighand->siglock); }
@@ -82,7 +78,8 @@ void __ptrace_unlink(task_t *child)SET_LINKS (child); } -ptrace_untrace (child); +if (child->state ==TASK_TRACED ) +ptrace_untrace (child); }/*
kernel/signal.c +3 -2
@@ -1688,6 +1688,7 @@ static void ptrace_stop(int exit_code, i/* Let the debugger run. */ set_current_state (TASK_TRACED );spin_unlock_irq (¤t->sighand->siglock); +try_to_freeze ();read_lock (&tasklist_lock);if (likely (current->ptrace &PT_PTRACED ) && likely(current->parent != current->real_parent ||
@@ -1941,9 +1942,9 @@ relock:/* Let the debugger run. */ ptrace_stop (signr, signr, info); -/* We're back. Did the debugger cancel the sig or group_exit? */ +/* We're back. Did the debugger cancel the sig? */ signr = current->exit_code; -if (signr ==0 || current->signal->flags &SIGNAL_GROUP_EXIT ) +if (signr ==0 )continue ; current->exit_code =0 ;
kernel/sys.c +13 -1
@@ -1657,7 +1657,19 @@ asmlinkage long sys_setrlimit(unsigned i (cputime_eq(current->signal->it_prof_expires, cputime_zero) || new_rlim.rlim_cur <= cputime_to_secs( current->signal->it_prof_expires))) { -cputime_t cputime =secs_to_cputime (new_rlim.rlim_cur); +unsigned long rlim_cur = new_rlim.rlim_cur; +cputime_t cputime; + +if (rlim_cur ==0 ) { +/* +* The caller is asking for an immediate RLIMIT_CPU +* expiry. But we use the zero value to mean "it was +* never set". So let's cheat and make it one second +* instead +*/ + rlim_cur =1 ; + } + cputime =secs_to_cputime (rlim_cur);read_lock (&tasklist_lock);spin_lock_irq (¤t->sighand->siglock); set_process_cpu_timer(current, CPUCLOCK_PROF,
mm/page_alloc.c +18 -13
@@ -153,7 +153,8 @@ static void bad_page(struct page *page)1 << PG_reclaim |1 << PG_slab |1 << PG_swapcache | - 1 << PG_writeback ); +1 << PG_writeback | + 1 << PG_buddy );set_page_count (page,0 );reset_page_mapcount (page); page->mapping =NULL ;
@@ -224,12 +225,12 @@ static inline unsigned long page_order(sstatic inline void set_page_order (struct page *page,int order) {set_page_private (page, order); -__SetPagePrivate (page); +__SetPageBuddy (page); }static inline void rmv_page_order (struct page *page) { -__ClearPagePrivate (page); +__ClearPageBuddy (page);set_page_private (page,0 ); }
@@ -268,11 +269,13 @@ __find_combined_index(unsigned long page* This function checks whether a page is free && is the buddy * we can do coalesce a page and its buddy if * (a) the buddy is not in a hole && -* (b) the buddy is free && -* (c) the buddy is on the buddy system && -* (d) a page and its buddy have the same order. -* for recording page's order, we use page_private(page) and PG_private. +* (b) the buddy is in the buddy system && +* (c) a page and its buddy have the same order. +* +* For recording whether a page is in the buddy system, we use PG_buddy. +* Setting, clearing, and testing PG_buddy is serialized by zone->lock. * +* For recording page's order, we use page_private(page). */ static inline int page_is_buddy (struct page *page,int order) {
@@ -281,10 +284,10 @@ static inline int page_is_buddy(struct preturn 0 ;#endif -if (PagePrivate (page) && - (page_order (page) == order) && -page_count (page) ==0 ) +if (PageBuddy (page) &&page_order (page) == order) { +BUG_ON (page_count (page) !=0 );return 1 ; + }return 0 ; }
@@ -301,7 +304,7 @@ static inline int page_is_buddy(struct p* as necessary, plus some accounting needed to play nicely with other * parts of the VM system. * At each level, we keep a list of pages, which are heads of continuous -* free pages of length of (1 << order) and marked with PG_Private.Page's +* free pages of length of (1 << order) and marked with PG_buddy. Page's * order is recorded in page_private(page) field. * So when we are allocating or freeing one, we can derive the state of the * other. That is, if we allocate a small block, and both were
@@ -364,7 +367,8 @@ static inline int free_pages_check(struc 1 << PG_slab | 1 << PG_swapcache | 1 << PG_writeback | - 1 << PG_reserved )))) + 1 << PG_reserved | + 1 << PG_buddy ))))bad_page (page);if (PageDirty (page))__ClearPageDirty (page);
@@ -522,7 +526,8 @@ static int prep_new_page(struct page *pa 1 << PG_slab | 1 << PG_swapcache | 1 << PG_writeback | - 1 << PG_reserved )))) + 1 << PG_reserved | + 1 << PG_buddy ))))bad_page (page);/*
net/atm/clip.c +27 -15
82 lines not on this page · raw message
net/bridge/br_netfilter.c +11 -2
@@ -739,6 +739,15 @@ out:return NF_STOLEN ; } +static int br_nf_dev_queue_xmit (struct sk_buff *skb) +{ +if (skb->protocol ==htons (ETH_P_IP ) && + skb->len > skb->dev->mtu && + !(skb_shinfo (skb)->ufo_size ||skb_shinfo (skb)->tso_size)) +return ip_fragment (skb, br_dev_queue_push_xmit); +else +return br_dev_queue_push_xmit (skb); +}/* PF_BRIDGE/POST_ROUTING ********************************************/ static unsigned int br_nf_post_routing(unsigned int hook, struct sk_buff **pskb,
@@ -798,7 +807,7 @@ static unsigned int br_nf_post_routing(u realoutdev = nf_bridge->netoutdev;#endif NF_HOOK (pf,NF_IP_POST_ROUTING , skb,NULL , realoutdev, - br_dev_queue_push_xmit); + br_nf_dev_queue_xmit);return NF_STOLEN ;
@@ -843,7 +852,7 @@ static unsigned int ip_sabotage_out(unsi if ((out->hard_start_xmit == br_dev_xmit && okfn != br_nf_forward_finish && okfn != br_nf_local_out_finish && - okfn != br_dev_queue_push_xmit) + okfn != br_nf_dev_queue_xmit)#if defined(CONFIG_VLAN_8021Q ) || defined(CONFIG_VLAN_8021Q_MODULE ) || ((out->priv_flags & IFF_802_1Q_VLAN) &&VLAN_DEV_INFO (out)->real_dev->hard_start_xmit == br_dev_xmit)
net/ipv4/ip_output.c +3 -3
@@ -86,8 +86,6 @@int sysctl_ip_default_ttl =IPDEFTTL ; -static int ip_fragment (struct sk_buff *skb,int (*output)(struct sk_buff *)); -/* Generate a checksum for an outgoing IP datagram. */ __inline__void ip_send_check (struct iphdr *iph) {
@@ -421,7 +419,7 @@ static void ip_copy_metadata(struct sk_b* single device frame, and queue such a frame for sending. */ -static int ip_fragment (struct sk_buff *skb,int (*output)(struct sk_buff *)) +int ip_fragment (struct sk_buff *skb,int (*output)(struct sk_buff *)) {struct iphdr *iph;int raw =0 ;
@@ -673,6 +671,8 @@ fail:return err; } +EXPORT_SYMBOL (ip_fragment); +int ip_generic_getfrag (void *from,char *to,int offset,int len,int odd,struct sk_buff *skb) {
fs/partitions/check.c static char *make_block_name(struct gend · line 361
Quoted 10 lines · you
fs/partitions/check.c +4
-0@@ -352,6 +353,10 @@ static char *make_block_name(struct gendreturn NULL ;strcpy (name, block_str);strcat (name, disk->disk_name); +/* ewww... some of these buggers have / in name... */ + s =strchr (name,'/' ); +if (s) + *s ='!' ;return name; }
Is only one / possible, or better something like this?
/* ewww... some of these buggers have / in name... */ s = name; while ((s = strchr(s, '/')) != NULL) *s = '!';
Signature · 1 line
Greetings Michael.
Quoted 6 lines · Michael Buesch
Is only one / possible, or better something like this?
/* ewww... some of these buggers have / in name... */ s = name; while ((s = strchr(s, '/')) != NULL) *s = '!';
Or perhaps the more obvious, efficient, and function-call-free:
for (s = name; *s; s++)
if (*s == '/') *s = '!';
Cheers,
Kyle Moffett
Quoted 14 lines · Michael Buesch
fs/partitions/check.c static char *make_block_name(struct gend · line 361
Quoted 10 lines · you
fs/partitions/check.c +4
-0@@ -352,6 +353,10 @@ static char *make_block_name(struct gendreturn NULL ;strcpy (name, block_str);strcat (name, disk->disk_name); +/* ewww... some of these buggers have / in name... */ + s =strchr (name,'/' ); +if (s) + *s ='!' ;return name; }Is only one / possible, or better something like this?
Quoted 4 lines
/* ewww... some of these buggers have / in name... */ s = name; while ((s = strchr(s, '/')) != NULL) *s = '!';
I wonder why people like '!' as a replacement for '/'. It's nasty for shell expansion, and it looks visually strange too (at least to me). Wouldn't it be a lot nicer to just use something like '.' or ':' instead, which is not as visually! distracting! and! screaming!
As to whether it's simpler to just use a character-at-a-time comparison over strchr, I dunno. Maybe.
Linus