Linux 2.6.15.5
Subsystems (26)
We (the -stable team) are announcing the release of the 2.6.15.5 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.15.4 and 2.6.15.5, as it is small enough to do so.
The updated 2.6.15.y git tree can be found at:
rsync://rsync.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.15.y.git
and can be browsed at the normal kernel.org git web browser:
www.kernel.org/git/
thanks,
-chris
--------
Documentation/hwmon/it87 | 2 Makefile | 2 arch/i386/kernel/cpu/common.c | 17 +++--- arch/ia64/ia32/ia32_signal.c | 1 arch/ppc/boot/common/util.S | 6 +- arch/s390/kernel/compat_signal.c | 3 - drivers/hwmon/it87.c | 6 +- drivers/ieee1394/sbp2.c | 10 +++ drivers/infiniband/hw/mthca/mthca_qp.c | 62 +++++++++++++----------- drivers/md/dm.c | 8 ++- drivers/mtd/chips/cfi_cmdset_0001.c | 1 drivers/net/skge.c | 85 ++++++++++++++++++++------------- drivers/net/skge.h | 1 drivers/scsi/sd.c | 19 ++++++- drivers/video/Kconfig | 2 drivers/video/gbefb.c | 3 + fs/binfmt_elf.c | 5 + fs/exec.c | 2 fs/ext2/xattr.c | 6 +- fs/hugetlbfs/inode.c | 4 - fs/nfs/direct.c | 5 + fs/ramfs/inode.c | 2 fs/reiserfs/super.c | 2 fs/xfs/linux-2.6/xfs_aops.c | 2 include/asm-s390/setup.h | 10 ++- include/linux/netlink.h | 3 - include/linux/ptrace.h | 1 include/linux/sched.h | 2 ipc/mqueue.c | 3 - ipc/shm.c | 1 kernel/ptrace.c | 25 +++++---- kernel/signal.c | 9 +-- mm/mempolicy.c | 2 net/bridge/br_netfilter.c | 4 - net/bridge/br_stp_if.c | 4 - net/core/datagram.c | 81 ++++++++++++++++++++----------- net/ipv6/addrconf.c | 3 + net/netlink/af_netlink.c | 7 +- sound/core/control_compat.c | 16 ++++-- sound/drivers/opl3/opl3_oss.c | 2 40 files changed, 277 insertions(+), 152 deletions(-)
Summary of changes from v2.6.15.4 to v2.6.15.5
==============================================
Adrian Drzewiecki:
Fix deadlock in br_stp_disable_bridge
Alexey Kuznetsov:
Fix a severe bug
Andi Kleen:
i386: Move phys_proc_id/early intel workaround to correct function
Andrew Morton:
ramfs: update dir mtime and ctime
Chris Wright:
sys_mbind sanity checking
Linux 2.6.15.5
Dave Jones:
Fix s390 build failure.
David S. Miller:
Revert skb_copy_datagram_iovec() recursion elimination.
Heiko Carstens:
s390: add #ifdef __KERNEL__ to asm-s390/setup.h
Horms:
netfilter missing symbol has_bridge_parent
Hugh Dickins:
hugetlbfs mmap ENOMEM failure
Jack Morgenstein:
IB/mthca: max_inline_data handling tweaks
Jean Delvare:
it87: Fix oops on removal
hwmon it87: Probe i2c 0x2d only
Jeff Mahoney:
reiserfs: disable automatic enabling of reiserfs inode attributes
Juergen Kreileder:
Fix snd-usb-audio in 32-bit compat environment
Jun'ichi Nomura:
dm: missing bdput/thaw_bdev at removal
dm: free minor after unlink gendisk
Kaj-Michael Lang:
gbefb: IP32 gbefb depth change fix
KAMEZAWA Hiroyuki:
shmdt cannot detach not-alined shm segment cleanly.
Kristian Slavov:
Address autoconfiguration does not work after device down/up cycle
Martin Michlmayr:
gbefb: Set default of FB_GBE_MEM to 4 MB
Mike O'Connor:
XFS ftruncate() bug could expose stale data (CVE-2006-0554)
Oleg Nesterov:
sys_signal: initialize ->sa_mask
do_sigaction: cleanup ->sa_mask manipulation
fix zap_thread's ptrace related problemsPeter Staubach:
fix deadlock in ext2
Simon Vogl:
cfi: init wait queue in chip struct
Stefan Richter:
sd: fix memory corruption with broken mode page headers
sbp2: fix another deadlock after disconnection
Stephen Hemminger:
skge: speed setting
skge: fix NAPI/irq race
skge: genesis phy initialization fix
skge: fix SMP race
Suresh Siddha:
x86_64: Check for bad elf entry address (CVE-2006-0741)
Takashi Iwai:
alsa: fix bogus snd_device_free() in opl3-oss.c
Tom Rini:
ppc32: Put cache flush routines back into .relocate_code section
Tony Luck:
sys32_signal() forgets to initialize ->sa_mask
Trond Myklebust:
Normal user can panic NFS client with direct I/O (CVE-2006-0555)
Documentation/hwmon/it87 +1 -1
@@ -9,7 +9,7 @@ Supported chips: http://www.ite.com.tw/ * IT8712F Prefix: 'it8712' - Addresses scanned: I2C 0x28 - 0x2f + Addresses scanned: I2C 0x2d from Super I/O config space (8 I/O ports) Datasheet: Publicly available at the ITE website http://www.ite.com.tw/
Makefile +1 -1
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 15 -EXTRAVERSION = .4 +EXTRAVERSION = .5 NAME=Sliding Snow Leopard # *DOCUMENTATION*
arch/i386/kernel/cpu/common.c +10 -7
@@ -207,7 +207,10 @@ static int __devinit have_cpuid_p(void)/* Do minimum CPU detection early. Fields really needed: vendor, cpuid_level, family, model, mask, cache alignment. -The others are not touched to avoid unwanted side effects. */ +The others are not touched to avoid unwanted side effects. + +WARNING: this function is only called on the BP. Don't add code here +that is supposed to run on all CPUs. */ static void __init early_cpu_detect (void ) {struct cpuinfo_x86 *c = &boot_cpu_data;
@@ -239,12 +242,6 @@ static void __init early_cpu_detect(voidif (cap0 & (1 <<19 )) c->x86_cache_alignment = ((misc >>8 ) &0xff ) *8 ; } - -early_intel_workaround (c); - -#ifdef CONFIG_X86_HT - phys_proc_id[smp_processor_id ()] = (cpuid_ebx (1 ) >>24 ) &0xff ; -#endif }void __devinit generic_identify (struct cpuinfo_x86 * c)
@@ -292,6 +289,12 @@ void __devinit generic_identify(struct cget_model_name (c);/* Default name */ } } + +early_intel_workaround (c); + +#ifdef CONFIG_X86_HT + phys_proc_id[smp_processor_id ()] = (cpuid_ebx (1 ) >>24 ) &0xff ; +#endif }static void __devinit squash_the_stupid_serial_number (struct cpuinfo_x86 *c)
arch/ia64/ia32/ia32_signal.c +1 -0
@@ -515,6 +515,7 @@ sys32_signal (int sig, unsigned int handsigact_set_handler (&new_sa, handler,0 ); new_sa.sa.sa_flags =SA_ONESHOT |SA_NOMASK ; +sigemptyset (&new_sa.sa.sa_mask); ret =do_sigaction (sig, &new_sa, &old_sa);
arch/ppc/boot/common/util.S +4 -2
@@ -234,7 +234,8 @@ udelay: * First, flush the data cache in case it was enabled and may be * holding instructions for copy back. */ -_GLOBAL(flush_instruction_cache) + .globl flush_instruction_cache +flush_instruction_cache: mflr r6 bl flush_data_cache
@@ -279,7 +280,8 @@ _GLOBAL(flush_instruction_cache) * Flush data cache * Do this by just reading lots of stuff into the cache. */ -_GLOBAL(flush_data_cache) + .globl flush_data_cache +flush_data_cache: lis r3,cache_flush_buffer@h ori r3,r3,cache_flush_buffer@l li r4,NUM_CACHE_LINES
arch/s390/kernel/compat_signal.c +0 -3
@@ -258,9 +258,6 @@ sys32_sigaction(int sig, const struct olreturn ret; } -int -do_sigaction (int sig,const struct k_sigaction *act,struct k_sigaction *oact); -asmlinkage long sys32_rt_sigaction (int sig,const struct sigaction32 __user *act,struct sigaction32 __user *oact,size_t sigsetsize)
drivers/hwmon/it87.c +3 -3
@@ -45,8 +45,7 @@/* Addresses to scan */ -static unsigned short normal_i2c[] = {0x28 ,0x29 ,0x2a ,0x2b ,0x2c ,0x2d , -0x2e ,0x2f ,I2C_CLIENT_END }; +static unsigned short normal_i2c[] = {0x2d ,I2C_CLIENT_END };static unsigned short isa_address;/* Insmod parameters */
@@ -1180,7 +1179,8 @@ static int __init sm_it87_init(void) static void __exit sm_it87_exit(void) { -i2c_isa_del_driver (&it87_isa_driver); +if (isa_address) +i2c_isa_del_driver (&it87_isa_driver);i2c_del_driver (&it87_driver); }
drivers/ieee1394/sbp2.c +8 -2
@@ -650,9 +650,15 @@ static int sbp2_remove(struct device *deif (!scsi_id)return 0 ; -/* Trigger shutdown functions in scsi's highlevel. */ -if (scsi_id->scsi_host) +if (scsi_id->scsi_host) { +/* Get rid of enqueued commands if there is no chance to +* send them. */ +if (!sbp2util_node_is_available (scsi_id)) +sbp2scsi_complete_all_commands (scsi_id,DID_NO_CONNECT ); +/* scsi_remove_device() will trigger shutdown functions of SCSI +* highlevel drivers which would deadlock if blocked. */ scsi_unblock_requests (scsi_id->scsi_host); + } sdev = scsi_id->sdev;if (sdev) { scsi_id->sdev =NULL ;
drivers/infiniband/hw/mthca/mthca_qp.c +36 -26
106 lines not on this page · raw message
drivers/md/dm.c +7 -1
@@ -812,10 +812,16 @@ static struct mapped_device *alloc_dev(ustatic void free_dev (struct mapped_device *md) { -free_minor (md->disk->first_minor); +unsigned int minor = md->disk->first_minor; + +if (md->frozen_bdev) { +thaw_bdev (md->frozen_bdev,NULL ); +bdput (md->frozen_bdev); + }mempool_destroy (md->tio_pool);mempool_destroy (md->io_pool);del_gendisk (md->disk); +free_minor (minor);put_disk (md->disk);blk_put_queue (md->queue);kfree (md);
drivers/mtd/chips/cfi_cmdset_0001.c +1 -0
@@ -408,6 +408,7 @@ struct mtd_info *cfi_cmdset_0001(struct cfi->chips[i].buffer_write_time =1 <<cfi->cfiq->BufWriteTimeoutTyp; cfi->chips[i].erase_time =1 <<cfi->cfiq->BlockEraseTimeoutTyp; cfi->chips[i].ref_point_counter =0 ; +init_waitqueue_head (&(cfi->chips[i].wq)); } map->fldrv = &cfi_intelext_chipdrv;
drivers/net/skge.c +54 -31
201 lines not on this page · raw message
drivers/net/skge.h +1 -0
@@ -2473,6 +2473,7 @@ struct skge_hw {struct tasklet_struct ext_tasklet;spinlock_t phy_lock; +spinlock_t hw_lock; };enum {
drivers/scsi/sd.c +16 -3
@@ -88,6 +88,11 @@#define SD_MAX_RETRIES 5#define SD_PASSTHROUGH_RETRIES 1 +/* +* Size of the initial data buffer for mode and read capacity data +*/ +#define SD_BUF_SIZE 512 +static void scsi_disk_release (struct kref *kref);struct scsi_disk {
@@ -1299,7 +1304,7 @@ sd_do_mode_sense(struct scsi_device *sdp/* * read write protect setting, if possible - called only in sd_revalidate_disk() -* called with buffer of length 512 +* called with buffer of length SD_BUF_SIZE */ static void sd_read_write_protect_flag(struct scsi_disk *sdkp, char *diskname,
@@ -1357,7 +1362,7 @@ sd_read_write_protect_flag(struct scsi_d/* * sd_read_cache_type - called only from sd_revalidate_disk() -* called with buffer of length 512 +* called with buffer of length SD_BUF_SIZE */ static void sd_read_cache_type(struct scsi_disk *sdkp, char *diskname,
@@ -1402,6 +1407,8 @@ sd_read_cache_type(struct scsi_disk *sdk/* Take headers and block descriptors into account */ len += data.header_length + data.block_descriptor_length; +if (len >SD_BUF_SIZE ) + goto bad_sense;/* Get the data */ res =sd_do_mode_sense (sdp, dbd, modepage, buffer, len, &data, &sshdr);
@@ -1414,6 +1421,12 @@ sd_read_cache_type(struct scsi_disk *sdkint ct =0 ;int offset = data.header_length + data.block_descriptor_length; +if (offset >=SD_BUF_SIZE -2 ) { +printk (KERN_ERR "%s: malformed MODE SENSE response" , + diskname); + goto defaults; + } +if ((buffer[offset] &0x3f ) != modepage) {printk (KERN_ERR "%s: got wrong page\n" , diskname); goto defaults;
@@ -1472,7 +1485,7 @@ static int sd_revalidate_disk(struct genif (!scsi_device_online (sdp)) goto out; - buffer =kmalloc (512 ,GFP_KERNEL | __GFP_DMA); + buffer =kmalloc (SD_BUF_SIZE ,GFP_KERNEL | __GFP_DMA);if (!buffer) {printk (KERN_WARNING "(sd_revalidate_disk:) Memory allocation " "failure.\n" );
drivers/video/Kconfig +1 -1
@@ -520,7 +520,7 @@ config FB_GBE config FB_GBE_MEM int "Video memory size in MB" depends on FB_GBE - default 8 + default 4 help This is the amount of memory reserved for the framebuffer, which can be any value between 1MB and 8MB.
drivers/video/gbefb.c +3 -0
@@ -656,12 +656,15 @@ static int gbefb_set_par(struct fb_infoswitch (bytesPerPixel) {case 1 :SET_GBE_FIELD (WID ,TYP , val,GBE_CMODE_I8 ); + info->fix.visual =FB_VISUAL_PSEUDOCOLOR ;break ;case 2 :SET_GBE_FIELD (WID ,TYP , val,GBE_CMODE_ARGB5 ); + info->fix.visual =FB_VISUAL_TRUECOLOR ;break ;case 4 :SET_GBE_FIELD (WID ,TYP , val,GBE_CMODE_RGB8 ); + info->fix.visual =FB_VISUAL_TRUECOLOR ;break ; }SET_GBE_FIELD (WID ,BUF , val,GBE_BMODE_BOTH );
fs/binfmt_elf.c +5 -0
@@ -932,6 +932,11 @@ static int load_elf_binary(struct linux_kfree (elf_interpreter); }else { elf_entry = loc->elf_ex.e_entry; +if (BAD_ADDR (elf_entry)) { +send_sig (SIGSEGV , current,0 ); + retval = -ENOEXEC ;/* Nobody gets to see this, but.. */ + goto out_free_dentry; + } }kfree (elf_phdata);
fs/exec.c +1 -1
@@ -1403,7 +1403,7 @@ static void zap_threads (struct mm_struc do_each_thread(g,p) {if (mm == p->mm && p != tsk && p->ptrace && p->parent->mm == mm) { -__ptrace_unlink (p); +__ptrace_detach (p,0 ); } }while_each_thread (g,p);write_unlock_irq (&tasklist_lock);
fs/ext2/xattr.c +4 -2
@@ -796,18 +796,20 @@ ext2_xattr_delete_inode(struct inode *inext2_free_blocks (inode,EXT2_I (inode)->i_file_acl,1 );get_bh (bh);bforget (bh); +unlock_buffer (bh); }else {HDR (bh)->h_refcount =cpu_to_le32 (le32_to_cpu (HDR (bh)->h_refcount) -1 );if (ce)mb_cache_entry_release (ce); +ea_bdebug (bh,"refcount now=%d" , +le32_to_cpu (HDR (bh)->h_refcount)); +unlock_buffer (bh);mark_buffer_dirty (bh);if (IS_SYNC (inode))sync_dirty_buffer (bh);DQUOT_FREE_BLOCK (inode,1 ); } -ea_bdebug (bh,"refcount now=%d" ,le32_to_cpu (HDR (bh)->h_refcount) -1 ); -unlock_buffer (bh);EXT2_I (inode)->i_file_acl =0 ; cleanup:
fs/hugetlbfs/inode.c +2 -2
@@ -71,8 +71,8 @@ huge_pages_needed(struct address_space *unsigned long start = vma->vm_start;unsigned long end = vma->vm_end;unsigned long hugepages = (end - start) >>HPAGE_SHIFT ; -pgoff_t next = vma->vm_pgoff; -pgoff_t endpg = next + ((end - start) >>PAGE_SHIFT ); +pgoff_t next = vma->vm_pgoff >> (HPAGE_SHIFT -PAGE_SHIFT ); +pgoff_t endpg = next + hugepages;pagevec_init (&pvec,0 );while (next < endpg) {
fs/nfs/direct.c +5 -0
@@ -106,6 +106,11 @@ nfs_get_user_pages(int rw, unsigned long result =get_user_pages (current, current->mm, user_addr, page_count, (rw ==READ ),0 , *pages,NULL ); +if (result >=0 && result < page_count) { +nfs_free_user_pages (*pages, result,0 ); + *pages =NULL ; + result = -EFAULT ; + }up_read (¤t->mm->mmap_sem); }return result;
fs/ramfs/inode.c +2 -0
@@ -27,6 +27,7 @@#include <linux/fs.h> #include <linux/pagemap.h> #include <linux/highmem.h> +#include <linux/time.h> #include <linux/init.h> #include <linux/string.h> #include <linux/smp_lock.h>
@@ -105,6 +106,7 @@ ramfs_mknod(struct inode *dir, struct ded_instantiate (dentry, inode);dget (dentry);/* Extra count - pin the dentry in core */ error =0 ; + dir->i_mtime = dir->i_ctime =CURRENT_TIME ; }return error; }
fs/reiserfs/super.c +0 -2
@@ -1130,8 +1130,6 @@ static void handle_attrs(struct super_bl "reiserfs: cannot support attributes until flag is set in super-block");REISERFS_SB (s)->s_mount_opt &= ~(1 <<REISERFS_ATTRS ); } - }else if (le32_to_cpu (rs->s_flags) & reiserfs_attrs_cleared) { -REISERFS_SB (s)->s_mount_opt |= (1 <<REISERFS_ATTRS ); } }
fs/xfs/linux-2.6/xfs_aops.c +1 -1
@@ -385,7 +385,7 @@ xfs_probe_unmapped_cluster(/* First sum forwards in this page */ do { -if (buffer_mapped (bh)) +if (buffer_mapped (bh) || !buffer_uptodate (bh))break ; total += bh->b_size; }while ((bh = bh->b_this_page) != head);
include/asm-s390/setup.h +6 -4
@@ -8,6 +8,8 @@#ifndef _ASM_S390_SETUP_H#define _ASM_S390_SETUP_H +#ifdef __KERNEL__ +#include <asm/types.h> #define PARMAREA 0x10400
@@ -114,7 +116,7 @@ extern u16 ipl_devno; IPL_PARMBLOCK_ORIGIN)#define IPL_PARMBLOCK_SIZE (IPL_PARMBLOCK_START->hdr.length) -#else +#else /* __ASSEMBLY__ */ #ifndef __s390x__#define IPL_DEVICE 0x10404
@@ -127,6 +129,6 @@ extern u16 ipl_devno;#endif /* __s390x__ */ #define COMMAND_LINE 0x10480 -#endif - -#endif +#endif /* __ASSEMBLY__ */ +#endif /* __KERNEL__ */ +#endif /* _ASM_S390_SETUP_H */
include/linux/netlink.h +2 -1
@@ -160,7 +160,8 @@ extern int netlink_unregister_notifier(s/* finegrained unicast helpers: */ struct sock *netlink_getsockbyfilp (struct file *filp); -int netlink_attachskb (struct sock *sk,struct sk_buff *skb,int nonblock,long timeo); +int netlink_attachskb (struct sock *sk,struct sk_buff *skb,int nonblock, +long timeo,struct sock *ssk);void netlink_detachskb (struct sock *sk,struct sk_buff *skb);int netlink_sendskb (struct sock *sk,struct sk_buff *skb,int protocol);
include/linux/ptrace.h +1 -0
@@ -84,6 +84,7 @@ extern int ptrace_readdata(struct task_sextern int ptrace_writedata (struct task_struct *tsk,char __user *src,unsigned long dst,int len);extern int ptrace_attach (struct task_struct *tsk);extern int ptrace_detach (struct task_struct *,unsigned int ); +extern void __ptrace_detach (struct task_struct *,unsigned int );extern void ptrace_disable (struct task_struct *);extern int ptrace_check_attach (struct task_struct *task,int kill);extern int ptrace_request (struct task_struct *child,long request,long addr,long data);
include/linux/sched.h +1 -1
@@ -1075,7 +1075,7 @@ extern struct sigqueue *sigqueue_alloc(vextern void sigqueue_free (struct sigqueue *);extern int send_sigqueue (int ,struct sigqueue *,struct task_struct *);extern int send_group_sigqueue (int ,struct sigqueue *,struct task_struct *); -extern int do_sigaction (int ,const struct k_sigaction *,struct k_sigaction *); +extern int do_sigaction (int ,struct k_sigaction *,struct k_sigaction *);extern int do_sigaltstack (const stack_t __user *,stack_t __user *,unsigned long );/* These can be the second arg to send_sig_info/send_group_sig_info. */
ipc/mqueue.c +2 -1
@@ -1017,7 +1017,8 @@ retry: goto out; } - ret =netlink_attachskb (sock, nc,0 ,MAX_SCHEDULE_TIMEOUT ); + ret =netlink_attachskb (sock, nc,0 , +MAX_SCHEDULE_TIMEOUT ,NULL );if (ret ==1 ) goto retry;if (ret) {
ipc/shm.c +1 -0
@@ -863,6 +863,7 @@ asmlinkage long sys_shmdt(char __user *s* could possibly have landed at. Also cast things to loff_t to * prevent overflows and make comparisions vs. equal-width types. */ + size =PAGE_ALIGN (size);while (vma && (loff_t)(vma->vm_end - addr) <= size) { next = vma->vm_next;
kernel/ptrace.c +15 -10
@@ -71,8 +71,8 @@ void ptrace_untrace(task_t *child)*/ void __ptrace_unlink (task_t *child) { -if (!child->ptrace) -BUG (); +BUG_ON (!child->ptrace); + child->ptrace =0 ;if (!list_empty (&child->ptrace_list)) {list_del_init (&child->ptrace_list);
@@ -183,22 +183,27 @@ bad:return retval; } +void __ptrace_detach (struct task_struct *child,unsigned int data) +{ + child->exit_code = data; +/* .. re-parent .. */ +__ptrace_unlink (child); +/* .. and wake it up. */ +if (child->exit_state !=EXIT_ZOMBIE ) +wake_up_process (child); +} +int ptrace_detach (struct task_struct *child,unsigned int data) {if (!valid_signal (data)) -return -EIO ; +return -EIO ;/* Architecture-specific hardware disable .. */ ptrace_disable (child); -/* .. re-parent .. */ - child->exit_code = data; -write_lock_irq (&tasklist_lock); -__ptrace_unlink (child); -/* .. and wake it up. */ -if (child->exit_state !=EXIT_ZOMBIE ) -wake_up_process (child); +if (child->ptrace) +__ptrace_detach (child, data);write_unlock_irq (&tasklist_lock);return 0 ;
kernel/signal.c +4 -5
@@ -2335,7 +2335,7 @@ sys_rt_sigqueueinfo(int pid, int sig, si }int -do_sigaction (int sig,const struct k_sigaction *act,struct k_sigaction *oact) +do_sigaction (int sig,struct k_sigaction *act,struct k_sigaction *oact) {struct k_sigaction *k;
@@ -2358,6 +2358,8 @@ do_sigaction(int sig, const struct k_sig *oact = *k;if (act) { +sigdelsetmask (&act->sa.sa_mask, +sigmask (SIGKILL ) |sigmask (SIGSTOP ));/* * POSIX 3.3.1.3: * "Setting a signal action to SIG_IGN for a signal that is
@@ -2383,8 +2385,6 @@ do_sigaction(int sig, const struct k_sigread_lock (&tasklist_lock);spin_lock_irq (&t->sighand->siglock); *k = *act; -sigdelsetmask (&k->sa.sa_mask, -sigmask (SIGKILL ) |sigmask (SIGSTOP ));rm_from_queue (sigmask (sig), &t->signal->shared_pending); do { rm_from_queue(sigmask(sig), &t->pending);
@@ -2397,8 +2397,6 @@ do_sigaction(int sig, const struct k_sig } *k = *act; -sigdelsetmask (&k->sa.sa_mask, -sigmask (SIGKILL ) |sigmask (SIGSTOP )); }spin_unlock_irq (¤t->sighand->siglock);
@@ -2604,6 +2602,7 @@ sys_signal(int sig, __sighandler_t handl new_sa.sa.sa_handler = handler; new_sa.sa.sa_flags =SA_ONESHOT |SA_NOMASK ; +sigemptyset (&new_sa.sa.sa_mask); ret =do_sigaction (sig, &new_sa, &old_sa);
mm/mempolicy.c +2 -0
@@ -524,6 +524,8 @@ static int get_nodes(nodemask_t *nodes,nodes_clear (*nodes);if (maxnode ==0 || !nmask)return 0 ; +if (maxnode >PAGE_SIZE *BITS_PER_BYTE ) +return -EINVAL ; nlongs =BITS_TO_LONGS (maxnode);if ((maxnode %BITS_PER_LONG ) ==0 )
net/bridge/br_netfilter.c +2 -2
@@ -794,8 +794,8 @@ static unsigned int br_nf_post_routing(u print_error:if (skb->dev !=NULL ) {printk ("[%s]" , skb->dev->name); -if (has_bridge_parent (skb->dev)) -printk ("[%s]" ,bridge_parent (skb->dev)->name); +if (realoutdev) +printk ("[%s]" , realoutdev->name); }printk (" head:%p, raw:%p, data:%p\n" , skb->head, skb->mac.raw, skb->data);
net/bridge/br_stp_if.c +2 -2
@@ -67,7 +67,7 @@ void br_stp_disable_bridge(struct net_br {struct net_bridge_port *p; -spin_lock (&br->lock); +spin_lock_bh (&br->lock);list_for_each_entry (p, &br->port_list, list) {if (p->state !=BR_STATE_DISABLED )br_stp_disable_port (p);
@@ -76,7 +76,7 @@ void br_stp_disable_bridge(struct net_br br->topology_change =0 ; br->topology_change_detected =0 ; -spin_unlock (&br->lock); +spin_unlock_bh (&br->lock);del_timer_sync (&br->hello_timer);del_timer_sync (&br->topology_change_timer);
net/core/datagram.c +53 -28
102 lines not on this page · raw message
net/ipv6/addrconf.c +3 -0
@@ -2164,6 +2164,9 @@ static int addrconf_notify(struct notifi dev->name);break ; } + +if (idev) + idev->if_flags |=IF_READY ; }else {if (!netif_carrier_ok (dev)) {/* device is still not ready. */
net/netlink/af_netlink.c +4 -3
@@ -701,7 +701,8 @@ struct sock *netlink_getsockbyfilp(struc* 0: continue * 1: repeat lookup - reference dropped while waiting for socket memory. */ -int netlink_attachskb (struct sock *sk,struct sk_buff *skb,int nonblock,long timeo) +int netlink_attachskb (struct sock *sk,struct sk_buff *skb,int nonblock, +long timeo,struct sock *ssk) {struct netlink_sock *nlk;
@@ -711,7 +712,7 @@ int netlink_attachskb(struct sock *sk, s test_bit(0, &nlk->state)) {DECLARE_WAITQUEUE (wait, current);if (!timeo) { -if (!nlk->pid) +if (!ssk ||nlk_sk (ssk)->pid ==0 )netlink_overrun (sk);sock_put (sk);kfree_skb (skb);
@@ -796,7 +797,7 @@ retry:kfree_skb (skb);return PTR_ERR (sk); } - err =netlink_attachskb (sk, skb, nonblock, timeo); + err =netlink_attachskb (sk, skb, nonblock, timeo, ssk);if (err ==1 ) goto retry;if (err)
sound/core/control_compat.c +11 -5
@@ -164,7 +164,7 @@ struct sndrv_ctl_elem_value32 {static int get_ctl_type (snd_card_t *card,snd_ctl_elem_id_t *id,int *countp) {snd_kcontrol_t *kctl; -snd_ctl_elem_info_t info; +snd_ctl_elem_info_t *info;int err;down_read (&card->controls_rwsem);
@@ -173,13 +173,19 @@ static int get_ctl_type(snd_card_t *cardup_read (&card->controls_rwsem);return -ENXIO ; } - info.id = *id; - err = kctl->info (kctl, &info); + info =kzalloc (sizeof (*info),GFP_KERNEL ); +if (info ==NULL ) { +up_read (&card->controls_rwsem); +return -ENOMEM ; + } + info->id = *id; + err = kctl->info (kctl, info);up_read (&card->controls_rwsem);if (err >=0 ) { - err = info.type; - *countp = info.count; + err = info->type; + *countp = info->count; } +kfree (info);return err; }
sound/drivers/opl3/opl3_oss.c +1 -1
@@ -146,7 +146,7 @@ void snd_opl3_init_seq_oss(opl3_t *opl3,void snd_opl3_free_seq_oss (opl3_t *opl3) {if (opl3->oss_seq_dev) { -snd_device_free (opl3->card, opl3->oss_seq_dev); +/* The instance should have been released in prior */ opl3->oss_seq_dev =NULL ; } }
* Chris Wright <[email protected]>:
Quoted 2 lines
Alexey Kuznetsov:
Fix a severe bug
Ah, a plethora of details!
Signature · 4 lines
Ralf Hildebrandt (i.A. des IT-Zentrums) [email protected] Charite - Universitätsmedizin Berlin Tel. +49 (0)30-450 570-155 Gemeinsame Einrichtung von FU- und HU-Berlin Fax. +49 (0)30-450 570-962 IT-Zentrum Standort CBF send no mail to [email protected]
Quoted 6 lines · Chris Wright
We (the -stable team) are announcing the release of the 2.6.15.5 kernel.
[...]
Alexey Kuznetsov: Fix a severe bug
Can we have more descriptive patch summaries in future? At least include the subsystem!
Here's the description I dug out of the web interface to git:
"netlink overrun was broken while improvement of netlink. Destination socket is used in the place where it was meant to be source socket, so that now overrun is never sent to user netlink sockets, when it should be, and it even can be set on kernel socket, which results in complete deadlock of rtnetlink."
David Vrabel
Quoted 2 lines · * David Vrabel ([email protected]) wrote:
Can we have more descriptive patch summaries in future? At least include the subsystem!
Yes, will do. I agree, that's a bad summary.
thanks,
-chris