Linux 2.6.32.55
Subsystems (30)
I'm announcing the release of the 2.6.32.55 kernel.
All users of the 2.6.32 kernel series must upgrade.
The updated 2.6.32.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-2.6.32.y and can be browsed at the normal kernel.org git web browser: http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=shortlog;h=refs/heads/linux-2.6.32.y
thanks,
greg k-h
------------
Makefile | 2 - arch/score/kernel/entry.S | 2 - arch/x86/mm/mmap.c | 4 +-- block/scsi_ioctl.c | 7 +++++ drivers/block/cciss.c | 6 ++-- drivers/block/ub.c | 3 -- drivers/block/virtio_blk.c | 4 +-- drivers/cdrom/cdrom.c | 3 -- drivers/hid/hid-core.c | 2 - drivers/i2c/busses/i2c-ali1535.c | 11 +++++---- drivers/i2c/busses/i2c-nforce2.c | 2 - drivers/i2c/busses/i2c-sis5595.c | 4 +-- drivers/i2c/busses/i2c-sis630.c | 6 ++++ drivers/i2c/busses/i2c-viapro.c | 7 ++++- drivers/ide/ide-floppy_ioctl.c | 3 -- drivers/media/video/v4l2-ioctl.c | 6 ++++ drivers/mtd/ubi/cdev.c | 3 ++ drivers/mtd/ubi/wl.c | 7 +++-- drivers/pci/msi.c | 10 ++++++++ drivers/pnp/quirks.c | 42 ++++++++++++++++++++++++++++++++++ drivers/scsi/sd.c | 2 - drivers/scsi/sym53c8xx_2/sym_glue.c | 4 +++ drivers/usb/class/cdc-wdm.c | 4 +-- drivers/xen/xenbus/xenbus_xs.c | 6 ++++ fs/ext4/super.c | 7 ++--- fs/nfsd/export.c | 2 - fs/proc/uptime.c | 9 +++++-- include/linux/blkdev.h | 2 + include/linux/kernel.h | 44 ++++++++++++++++++++++++++++++++++++ include/linux/pci_regs.h | 2 - include/linux/sunrpc/svcsock.h | 2 - include/linux/videodev2.h | 1 include/xen/interface/io/xs_wire.h | 3 ++ kernel/kprobes.c | 2 - net/sunrpc/svc.c | 10 +++----- net/sunrpc/svc_xprt.c | 11 ++++++++- security/integrity/ima/ima_api.c | 4 +-- security/integrity/ima/ima_queue.c | 1 sound/pci/hda/hda_local.h | 7 ++++- sound/pci/hda/hda_proc.c | 2 + sound/pci/hda/patch_sigmatel.c | 2 - sound/pci/ice1712/amp.c | 7 ++++- sound/usb/usx2y/usb_stream.c | 6 +--- 43 files changed, 215 insertions(+), 59 deletions(-)
Alex Williamson (1):
PCI: Fix PCI_EXP_TYPE_RC_EC value
Ananth N Mavinakayanahalli (1):
kprobes: initialize before using a hlist
Artem Bityutskiy (1):
UBI: fix use-after-free on error path
Bjorn Helgaas (1):
PNP: work around Dell 1536/1546 BIOS MMCONFIG bug that breaks USB
Chase Douglas (1):
HID: bump maximum global item tag report size to 96 bytes
Dan Carpenter (1):
V4L/DVB: v4l2-ioctl: integer overflow in video_usercopy()
Dan Rosenberg (1):
score: fix off-by-one index into syscall table
David Henningsson (1):
ALSA: HDA: Fix internal microphone on Dell Studio 16 XPS 1645
David Sterba (1):
USB: cdc-wdm: fix misuse of logical operation in place of bitop
Eric W. Biederman (1):
PCI: msi: Disable msi interrupts when we initialize a pci device
Greg Kroah-Hartman (1):
Linux 2.6.32.55
Ian Campbell (1):
xen/xenbus: Reject replies with payload > XENSTORE_PAYLOAD_MAX.
J. Bruce Fields (2):
svcrpc: fix double-free on shutdown of nfsd after changing pool mode
svcrpc: destroy server sockets all at once
Jean Delvare (1):
i2c: Fix error value returned by several bus drivers
Joe Perches (1):
kernel.h: add printk_ratelimited and pr_<level>_rl
Karsten Wiese (1):
ALSA: snd-usb-us122l: Delete calls to preempt_disable
Ludwig Nussel (1):
x86: Fix mmap random address range
Martin Schwidefsky (1):
fix cputime overflow in uptime_proc_show
Paolo Bonzini (1):
block: add and use scsi_blk_cmd_ioctl
Pavel Hofman (1):
ALSA: ice1724 - Check for ac97 to avoid kernel oops
Richard Weinberger (1):
UBI: fix nameless volumes handling
Robert Lukassen (1):
USB: Fix 'bad dma' problem on WDM device disconnect
Roberto Sassu (1):
ima: free duplicate measurement memory
Sasha Levin (1):
nfsd: Fix oops when parsing a 0 length export
Stratos Psomadakis (1):
sym53c8xx: Fix NULL pointer dereference in slave_destroy
Takashi Iwai (1):
ALSA: hda - Return the error from get_wcaps_type() for invalid NIDs
Xi Wang (1):
ext4: fix undefined behavior in ext4_fill_flex_info()
Makefile +1 -1
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 32 -EXTRAVERSION = .54 +EXTRAVERSION = .55 NAME = Man-Eating Seals of Antiquity # *DOCUMENTATION*
arch/score/kernel/entry.S +1 -1
@@ -408,7 +408,7 @@ ENTRY(handle_sys) sw r9, [r0, PT_EPC] cmpi.c r27, __NR_syscalls # check syscall number - bgtu illegal_syscall + bgeu illegal_syscall slli r8, r27, 2 # get syscall routine la r11, sys_call_table
arch/x86/mm/mmap.c +2 -2
@@ -87,9 +87,9 @@ static unsigned long mmap_rnd(void)*/ if (current->flags &PF_RANDOMIZE ) {if (mmap_is_ia32 ()) - rnd = (long )get_random_int () % (1 <<8 ); + rnd =get_random_int () % (1 <<8 );else - rnd = (long )(get_random_int () % (1 <<28 )); + rnd =get_random_int () % (1 <<28 ); }return rnd <<PAGE_SHIFT ; }
block/scsi_ioctl.c +7 -0
@@ -689,6 +689,13 @@ int scsi_cmd_ioctl(struct request_queue *q, struct gendisk *bd_disk, fmode_t mod }EXPORT_SYMBOL (scsi_cmd_ioctl); +int scsi_cmd_blk_ioctl (struct block_device *bd,fmode_t mode, +unsigned int cmd,void __user *arg) +{ +return scsi_cmd_ioctl (bd->bd_disk->queue, bd->bd_disk, mode, cmd, arg); +} +EXPORT_SYMBOL (scsi_cmd_blk_ioctl); +int __init blk_scsi_ioctl_init (void ) {blk_set_cmd_filter_defaults (&blk_default_cmd_filter);
drivers/block/cciss.c +3 -3
@@ -1583,7 +1583,7 @@ static int cciss_ioctl(struct block_device *bdev, fmode_t mode,return status; } -/* scsi_cmd_ioctl handles these, below, though some are not */ +/* scsi_cmd_blk_ioctl handles these, below, though some are not */ /* very meaningful for cciss. SG_IO is the main one people want. */ case SG_GET_VERSION_NUM :
@@ -1594,9 +1594,9 @@ static int cciss_ioctl(struct block_device *bdev, fmode_t mode,case SG_EMULATED_HOST :case SG_IO :case SCSI_IOCTL_SEND_COMMAND : -return scsi_cmd_ioctl (disk->queue, disk, mode, cmd, argp); +return scsi_cmd_blk_ioctl (bdev, mode, cmd, argp); -/* scsi_cmd_ioctl would normally handle these, below, but */ +/* scsi_cmd_blk_ioctl would normally handle these, below, but */ /* they aren't a good fit for cciss, as CD-ROMs are */ /* not supported, and we don't have any bus/target/lun */ /* which we present to the kernel. */
drivers/block/ub.c +1 -2
@@ -1726,10 +1726,9 @@ static int ub_bd_release(struct gendisk *disk, fmode_t mode)static int ub_bd_ioctl (struct block_device *bdev,fmode_t mode,unsigned int cmd,unsigned long arg) { -struct gendisk *disk = bdev->bd_disk;void __user *usermem = (void __user *) arg; -return scsi_cmd_ioctl (disk->queue, disk, mode, cmd, usermem); +return scsi_cmd_blk_ioctl (bdev, mode, cmd, usermem); }/*
drivers/block/virtio_blk.c +2 -2
@@ -200,8 +200,8 @@ static int virtblk_ioctl(struct block_device *bdev, fmode_t mode,if (!virtio_has_feature (vblk->vdev,VIRTIO_BLK_F_SCSI ))return -ENOTTY ; -return scsi_cmd_ioctl (disk->queue, disk, mode, cmd, - (void __user *)data); +return scsi_cmd_blk_ioctl (bdev, mode, cmd, + (void __user *)data); }/* We provide getgeo only to please some old bootloader/partitioning tools */
drivers/cdrom/cdrom.c +1 -2
@@ -2684,12 +2684,11 @@ int cdrom_ioctl(struct cdrom_device_info *cdi, struct block_device *bdev, {void __user *argp = (void __user *)arg;int ret; -struct gendisk *disk = bdev->bd_disk;/* * Try the generic SCSI command ioctl's first. */ - ret =scsi_cmd_ioctl (disk->queue, disk, mode, cmd, argp); + ret =scsi_cmd_blk_ioctl (bdev, mode, cmd, argp);if (ret != -ENOTTY )return ret;
drivers/hid/hid-core.c +1 -1
@@ -350,7 +350,7 @@ static int hid_parser_global(struct hid_parser *parser, struct hid_item *item)case HID_GLOBAL_ITEM_TAG_REPORT_SIZE : parser->global.report_size =item_udata (item); -if (parser->global.report_size >32 ) { +if (parser->global.report_size >96 ) {dbg_hid ("invalid report_size %d\n" , parser->global.report_size);return -1 ;
drivers/i2c/busses/i2c-ali1535.c +7 -4
@@ -140,7 +140,7 @@ static unsigned short ali1535_smba;defined to make the transition easier. */ static int ali1535_setup (struct pci_dev *dev) { -int retval = -ENODEV ; +int retval;unsigned char temp;/* Check the following things:
@@ -155,6 +155,7 @@ static int ali1535_setup(struct pci_dev *dev)if (ali1535_smba ==0 ) {dev_warn (&dev->dev,"ALI1535_smb region uninitialized - upgrade BIOS?\n" ); + retval = -ENODEV ; goto exit; }
@@ -167,6 +168,7 @@ static int ali1535_setup(struct pci_dev *dev) ali1535_driver.name)) {dev_err (&dev->dev,"ALI1535_smb region 0x%x already in use!\n" , ali1535_smba); + retval = -EBUSY ; goto exit; }
@@ -174,6 +176,7 @@ static int ali1535_setup(struct pci_dev *dev)pci_read_config_byte (dev,SMBCFG , &temp);if ((temp &ALI1535_SMBIO_EN ) ==0 ) {dev_err (&dev->dev,"SMB device not enabled - upgrade BIOS?\n" ); + retval = -ENODEV ; goto exit_free; }
@@ -181,6 +184,7 @@ static int ali1535_setup(struct pci_dev *dev)pci_read_config_byte (dev,SMBHSTCFG , &temp);if ((temp &1 ) ==0 ) {dev_err (&dev->dev,"SMBus controller not enabled - upgrade BIOS?\n" ); + retval = -ENODEV ; goto exit_free; }
@@ -198,12 +202,11 @@ static int ali1535_setup(struct pci_dev *dev)dev_dbg (&dev->dev,"SMBREV = 0x%X\n" , temp);dev_dbg (&dev->dev,"ALI1535_smba = 0x%X\n" , ali1535_smba); - retval =0 ; -exit: -return retval; +return 0 ; exit_free:release_region (ali1535_smba,ALI1535_SMB_IOSIZE ); +exit:return retval; }
drivers/i2c/busses/i2c-nforce2.c +1 -1
@@ -355,7 +355,7 @@ static int __devinit nforce2_probe_smb (struct pci_dev *dev, int bar, error =acpi_check_region (smbus->base, smbus->size, nforce2_driver.name);if (error) -return -1 ; +return error;if (!request_region (smbus->base, smbus->size, nforce2_driver.name)) { dev_err(&smbus->adapter.dev, "Error requesting region %02x .. %02X for %s\n",
drivers/i2c/busses/i2c-sis5595.c +2 -2
@@ -147,7 +147,7 @@ static int sis5595_setup(struct pci_dev *SIS5595_dev)u16 a;u8 val;int *i; -int retval = -ENODEV ; +int retval;/* Look for imposters */ for (i = blacklist; *i !=0 ; i++) {
@@ -223,7 +223,7 @@ static int sis5595_setup(struct pci_dev *SIS5595_dev) error:release_region (sis5595_base +SMB_INDEX ,2 ); -return retval; +return -ENODEV ; }static int sis5595_transaction (struct i2c_adapter *adap)
drivers/i2c/busses/i2c-sis630.c +5 -1
@@ -393,7 +393,7 @@ static int sis630_setup(struct pci_dev *sis630_dev) {unsigned char b;struct pci_dev *dummy =NULL ; -int retval = -ENODEV , i; +int retval, i;/* check for supported SiS devices */ for (i=0 ; supported[i] >0 ; i++) {
@@ -418,18 +418,21 @@ static int sis630_setup(struct pci_dev *sis630_dev)*/ if (pci_read_config_byte (sis630_dev,SIS630_BIOS_CTL_REG ,&b)) {dev_err (&sis630_dev->dev,"Error: Can't read bios ctl reg\n" ); + retval = -ENODEV ; goto exit; }/* if ACPI already enabled , do nothing */ if (!(b &0x80 ) &&pci_write_config_byte (sis630_dev,SIS630_BIOS_CTL_REG , b |0x80 )) {dev_err (&sis630_dev->dev,"Error: Can't enable ACPI\n" ); + retval = -ENODEV ; goto exit; }/* Determine the ACPI base address */ if (pci_read_config_word (sis630_dev,SIS630_ACPI_BASE_REG ,&acpi_base)) {dev_err (&sis630_dev->dev,"Error: Can't determine ACPI base address\n" ); + retval = -ENODEV ; goto exit; }
@@ -445,6 +448,7 @@ static int sis630_setup(struct pci_dev *sis630_dev) sis630_driver.name)) {dev_err (&sis630_dev->dev,"SMBus registers 0x%04x-0x%04x already " "in use!\n" , acpi_base +SMB_STS , acpi_base +SMB_SAA ); + retval = -EBUSY ; goto exit; }
drivers/i2c/busses/i2c-viapro.c +5 -2
@@ -330,7 +330,7 @@ static int __devinit vt596_probe(struct pci_dev *pdev, const struct pci_device_id *id) {unsigned char temp; -int error = -ENODEV ; +int error;/* Determine the address of the SMBus areas */ if (force_addr) {
@@ -396,6 +396,7 @@ found:dev_err (&pdev->dev,"SMBUS: Error: Host SMBus " "controller not enabled! - upgrade BIOS or " "use force=1\n" ); + error = -ENODEV ; goto release_region; } }
@@ -428,9 +429,11 @@ found: "SMBus Via Pro adapter at %04x", vt596_smba); vt596_pdev =pci_dev_get (pdev); -if (i2c_add_adapter (&vt596_adapter)) { + error =i2c_add_adapter (&vt596_adapter); +if (error) {pci_dev_put (vt596_pdev); vt596_pdev =NULL ; + goto release_region; }/* Always return failure here. This is to allow other drivers to bind
drivers/ide/ide-floppy_ioctl.c +1 -2
@@ -287,8 +287,7 @@ int ide_floppy_ioctl(ide_drive_t *drive, struct block_device *bdev,* and CDROM_SEND_PACKET (legacy) ioctls */ if (cmd !=CDROM_SEND_PACKET && cmd !=SCSI_IOCTL_SEND_COMMAND ) - err =scsi_cmd_ioctl (bdev->bd_disk->queue, bdev->bd_disk, - mode, cmd, argp); + err =scsi_cmd_blk_ioctl (bdev, mode, cmd, argp);if (err == -ENOTTY ) err =generic_ide_ioctl (drive, bdev, cmd, arg);
drivers/media/video/v4l2-ioctl.c +6 -0
@@ -414,6 +414,9 @@ video_usercopy(struct file *file, unsigned int cmd, unsigned long arg, p->error_idx = p->count; user_ptr = (void __user *)p->controls;if (p->count) { + err = -EINVAL ; +if (p->count >V4L2_CID_MAX_CTRLS ) + goto out_ext_ctrl; ctrls_size =sizeof (struct v4l2_ext_control ) * p->count;/* Note: v4l2_ext_controls fits in sbuf[] so mbuf is still NULL. */ mbuf =kmalloc (ctrls_size,GFP_KERNEL );
@@ -1912,6 +1915,9 @@ long video_ioctl2(struct file *file, p->error_idx = p->count; user_ptr = (void __user *)p->controls;if (p->count) { + err = -EINVAL ; +if (p->count >V4L2_CID_MAX_CTRLS ) + goto out_ext_ctrl; ctrls_size =sizeof (struct v4l2_ext_control ) * p->count;/* Note: v4l2_ext_controls fits in sbuf[] so mbuf is still NULL. */ mbuf =kmalloc (ctrls_size,GFP_KERNEL );
drivers/mtd/ubi/cdev.c +3 -0
@@ -628,6 +628,9 @@ static int verify_mkvol_req(const struct ubi_device *ubi,if (req->alignment !=1 && n) goto bad; +if (!req->name[0 ] || !req->name_len) + goto bad; +if (req->name_len >UBI_VOL_NAME_MAX ) { err = -ENAMETOOLONG ; goto bad;
drivers/mtd/ubi/wl.c +4 -3
@@ -1036,7 +1036,6 @@ static int erase_worker(struct ubi_device *ubi, struct ubi_work *wl_wrk,ubi_err ("failed to erase PEB %d, error %d" , pnum, err);kfree (wl_wrk); -kmem_cache_free (ubi_wl_entry_slab, e);if (err == -EINTR || err == -ENOMEM || err == -EAGAIN || err == -EBUSY ) {
@@ -1049,14 +1048,16 @@ static int erase_worker(struct ubi_device *ubi, struct ubi_work *wl_wrk, goto out_ro; }return err; - }else if (err != -EIO ) { + } + +kmem_cache_free (ubi_wl_entry_slab, e); +if (err != -EIO )/* * If this is not %-EIO, we have no idea what to do. Scheduling * this physical eraseblock for erasure again would cause * errors again and again. Well, lets switch to R/O mode. */ goto out_ro; - }/* It is %-EIO, the PEB went bad */
drivers/pci/msi.c +10 -0
@@ -863,5 +863,15 @@ EXPORT_SYMBOL(pci_msi_enabled);void pci_msi_init_pci_dev (struct pci_dev *dev) { +int pos;INIT_LIST_HEAD (&dev->msi_list); + +/* Disable the msi hardware to avoid screaming interrupts +* during boot. This is the power on reset default so +* usually this should be a noop. +*/ + pos =pci_find_capability (dev,PCI_CAP_ID_MSI ); +if (pos) +msi_set_enable (dev, pos,0 ); +msix_set_enable (dev,0 ); }
drivers/pnp/quirks.c +42 -0
54 lines not on this page · raw message
drivers/scsi/sd.c +1 -1
@@ -838,7 +838,7 @@ static int sd_ioctl(struct block_device *bdev, fmode_t mode,case SCSI_IOCTL_GET_BUS_NUMBER :return scsi_ioctl (sdp, cmd, p);default : - error =scsi_cmd_ioctl (disk->queue, disk, mode, cmd, p); + error =scsi_cmd_blk_ioctl (bdev, mode, cmd, p);if (error != -ENOTTY )return error; }
drivers/scsi/sym53c8xx_2/sym_glue.c +4 -0
@@ -837,6 +837,10 @@ static void sym53c8xx_slave_destroy(struct scsi_device *sdev)struct sym_lcb *lp =sym_lp (tp, sdev->lun);unsigned long flags; +/* if slave_alloc returned before allocating a sym_lcb, return */ +if (!lp) +return ; +spin_lock_irqsave (np->s.host->host_lock, flags);if (lp->busy_itlq || lp->busy_itl) {
drivers/usb/class/cdc-wdm.c +2 -2
@@ -277,7 +277,7 @@ static void cleanup(struct wdm_device *desc) desc->sbuf, desc->validity->transfer_dma);usb_buffer_free (interface_to_usbdev (desc->intf), - desc->wMaxCommand, + desc->bMaxPacketSize0, desc->inbuf, desc->response->transfer_dma);kfree (desc->orq);
@@ -314,7 +314,7 @@ static ssize_t wdm_writeif (r <0 ) goto outnp; -if (!file->f_flags &&O_NONBLOCK ) +if (!(file->f_flags &O_NONBLOCK )) r =wait_event_interruptible (desc->wait, !test_bit (WDM_IN_USE , &desc->flags));else
drivers/xen/xenbus/xenbus_xs.c +6 -0
@@ -766,6 +766,12 @@ static int process_msg(void) goto out; } +if (msg->hdr.len >XENSTORE_PAYLOAD_MAX ) { +kfree (msg); + err = -EINVAL ; + goto out; + } + body =kmalloc (msg->hdr.len +1 ,GFP_NOIO | __GFP_HIGH);if (body ==NULL ) {kfree (msg);
fs/ext4/super.c +3 -4
@@ -1705,17 +1705,16 @@ static int ext4_fill_flex_info(struct super_block *sb)struct ext4_group_desc *gdp =NULL ;ext4_group_t flex_group_count;ext4_group_t flex_group; -int groups_per_flex =0 ; +unsigned int groups_per_flex =0 ;size_t size;int i; sbi->s_log_groups_per_flex = sbi->s_es->s_log_groups_per_flex; - groups_per_flex =1 << sbi->s_log_groups_per_flex; - -if (groups_per_flex <2 ) { +if (sbi->s_log_groups_per_flex <1 || sbi->s_log_groups_per_flex >31 ) { sbi->s_log_groups_per_flex =0 ;return 1 ; } + groups_per_flex =1 << sbi->s_log_groups_per_flex;/* We allocate both existing and potentially added groups */ flex_group_count = ((sbi->s_groups_count + groups_per_flex - 1) +
fs/nfsd/export.c +1 -1
@@ -106,7 +106,7 @@ static int expkey_parse(struct cache_detail *cd, char *mesg, int mlen)struct svc_expkey key;struct svc_expkey *ek =NULL ; -if (mesg[mlen-1 ] !='\n' ) +if (mlen <1 || mesg[mlen-1 ] !='\n' )return -EINVAL ; mesg[mlen-1 ] =0 ;
fs/proc/uptime.c +7 -2
@@ -11,15 +11,20 @@ static int uptime_proc_show(struct seq_file *m, void *v) {struct timespec uptime;struct timespec idle; +cputime64_t idletime; +u64 nsec; +u32 rem;int i; -cputime_t idletime = cputime_zero; + idletime =0 ;for_each_possible_cpu (i) idletime =cputime64_add (idletime,kstat_cpu (i).cpustat.idle);do_posix_clock_monotonic_gettime (&uptime);monotonic_to_bootbased (&uptime); -cputime_to_timespec (idletime, &idle); + nsec =cputime64_to_jiffies64 (idletime) *TICK_NSEC ; + idle.tv_sec =div_u64_rem (nsec,NSEC_PER_SEC , &rem); + idle.tv_nsec = rem; seq_printf(m, "%lu.%02lu %lu.%02lu\n", (unsigned long) uptime.tv_sec, (uptime.tv_nsec / (NSEC_PER_SEC / 100)),
include/linux/blkdev.h +2 -0
@@ -777,6 +777,8 @@ extern void blk_plug_device(struct request_queue *);extern void blk_plug_device_unlocked (struct request_queue *);extern int blk_remove_plug (struct request_queue *);extern void blk_recount_segments (struct request_queue *,struct bio *); +extern int scsi_cmd_blk_ioctl (struct block_device *,fmode_t , +unsigned int ,void __user *);extern int scsi_cmd_ioctl (struct request_queue *,struct gendisk *,fmode_t ,unsigned int ,void __user *); extern int sg_scsi_ioctl(struct request_queue *, struct gendisk *, fmode_t,
include/linux/kernel.h +44 -0
50 lines not on this page · raw message
include/linux/pci_regs.h +1 -1
@@ -377,7 +377,7 @@#define PCI_EXP_TYPE_DOWNSTREAM 0x6/* Downstream Port */ #define PCI_EXP_TYPE_PCI_BRIDGE 0x7/* PCI/PCI-X Bridge */ #define PCI_EXP_TYPE_RC_END 0x9/* Root Complex Integrated Endpoint */ -#define PCI_EXP_TYPE_RC_EC 0x10/* Root Complex Event Collector */ +#define PCI_EXP_TYPE_RC_EC 0xa/* Root Complex Event Collector */ #define PCI_EXP_FLAGS_SLOT 0x0100/* Slot implemented */ #define PCI_EXP_FLAGS_IRQ 0x3e00/* Interrupt message number */ #define PCI_EXP_DEVCAP 4/* Device capabilities */
include/linux/sunrpc/svcsock.h +1 -1
@@ -34,7 +34,7 @@ struct svc_sock {/* * Function prototypes. */ -void svc_close_all (struct list_head *); +void svc_close_all (struct svc_serv *);int svc_recv (struct svc_rqst *,long );int svc_send (struct svc_rqst *);void svc_drop (struct svc_rqst *);
include/linux/videodev2.h +1 -0
@@ -858,6 +858,7 @@ struct v4l2_querymenu {#define V4L2_CTRL_FLAG_NEXT_CTRL 0x80000000/* User-class control IDs defined by V4L2 */ +#define V4L2_CID_MAX_CTRLS 1024#define V4L2_CID_BASE (V4L2_CTRL_CLASS_USER | 0x900)#define V4L2_CID_USER_BASE V4L2_CID_BASE/* IDs reserved for driver specific controls */
include/xen/interface/io/xs_wire.h +3 -0
@@ -84,4 +84,7 @@ struct xenstore_domain_interface { XENSTORE_RING_IDX rsp_cons, rsp_prod; }; +/* Violating this is very bad. See docs/misc/xenstore.txt. */ +#define XENSTORE_PAYLOAD_MAX 4096 +#endif /* _XS_WIRE_H */
kernel/kprobes.c +1 -1
@@ -466,6 +466,7 @@ void __kprobes kprobe_flush_task(struct task_struct *tk)/* Early boot. kretprobe_table_locks not yet initialized. */ return ; +INIT_HLIST_HEAD (&empty_rp); hash =hash_ptr (tk,KPROBE_HASH_BITS ); head = &kretprobe_inst_table[hash];kretprobe_table_lock (hash, &flags);
@@ -474,7 +475,6 @@ void __kprobes kprobe_flush_task(struct task_struct *tk)recycle_rp_inst (ri, &empty_rp); }kretprobe_table_unlock (hash, &flags); -INIT_HLIST_HEAD (&empty_rp);hlist_for_each_entry_safe (ri, node, tmp, &empty_rp, hlist) {hlist_del (&ri->hlist);kfree (ri);
net/sunrpc/svc.c +4 -6
@@ -166,6 +166,7 @@ svc_pool_map_alloc_arrays(struct svc_pool_map *m, unsigned int maxpools) fail_free:kfree (m->to_pool); + m->to_pool =NULL ; fail:return -ENOMEM ; }
@@ -286,7 +287,9 @@ svc_pool_map_put(void)if (!--m->count) { m->mode =SVC_POOL_DEFAULT ;kfree (m->to_pool); + m->to_pool =NULL ;kfree (m->pool_to); + m->pool_to =NULL ; m->npools =0 ; }
@@ -472,16 +475,11 @@ svc_destroy(struct svc_serv *serv)del_timer_sync (&serv->sv_temptimer); -svc_close_all (&serv->sv_tempsocks); +svc_close_all (serv);if (serv->sv_shutdown) serv->sv_shutdown (serv); -svc_close_all (&serv->sv_permsocks); - -BUG_ON (!list_empty (&serv->sv_permsocks)); -BUG_ON (!list_empty (&serv->sv_tempsocks)); -cache_clean_deferred (serv);if (svc_serv_is_pooled (serv))
net/sunrpc/svc_xprt.c +10 -1
@@ -927,7 +927,7 @@ void svc_close_xprt(struct svc_xprt *xprt) }EXPORT_SYMBOL_GPL (svc_close_xprt); -void svc_close_all (struct list_head *xprt_list) +static void svc_close_list (struct list_head *xprt_list) {struct svc_xprt *xprt;struct svc_xprt *tmp;
@@ -945,6 +945,15 @@ void svc_close_all(struct list_head *xprt_list) } } +void svc_close_all (struct svc_serv *serv) +{ +svc_close_list (&serv->sv_tempsocks); +svc_close_list (&serv->sv_permsocks); +BUG_ON (!list_empty (&serv->sv_permsocks)); +BUG_ON (!list_empty (&serv->sv_tempsocks)); + +} +/* * Handle defer and revisit of requests */
security/integrity/ima/ima_api.c +2 -2
@@ -183,8 +183,8 @@ void ima_store_measurement(struct ima_iint_cache *iint, struct file *file,strncpy (entry->template.file_name, filename,IMA_EVENT_NAME_LEN_MAX ); result =ima_store_template (entry, violation, inode); -if (!result) +if (!result || result == -EEXIST ) iint->flags |=IMA_MEASURED ; -else +if (result <0 )kfree (entry); }
security/integrity/ima/ima_queue.c +1 -0
@@ -113,6 +113,7 @@ int ima_add_template_entry(struct ima_template_entry *entry, int violation,memcpy (digest, entry->digest,sizeof digest);if (ima_lookup_digest_entry (digest)) { audit_cause ="hash_exists" ; + result = -EEXIST ; goto out; } }
sound/pci/hda/hda_local.h +6 -1
@@ -408,7 +408,12 @@ static inline u32 get_wcaps(struct hda_codec *codec, hda_nid_t nid) }/* get the widget type from widget capability bits */ -#define get_wcaps_type (wcaps) (((wcaps) & AC_WCAP_TYPE) >> AC_WCAP_TYPE_SHIFT) +static inline int get_wcaps_type (unsigned int wcaps) +{ +if (!wcaps) +return -1 ;/* invalid type */ +return (wcaps &AC_WCAP_TYPE ) >>AC_WCAP_TYPE_SHIFT ; +}static inline unsigned int get_wcaps_channels (u32 wcaps) {
sound/pci/hda/hda_proc.c +2 -0
@@ -39,6 +39,8 @@ static const char *get_wid_type_name(unsigned int wid_value) [AC_WID_BEEP] = "Beep Generator Widget", [AC_WID_VENDOR] = "Vendor Defined Widget", }; +if (wid_value ==-1 ) +return "UNKNOWN Widget" ; wid_value &=0xf ;if (names[wid_value])return names[wid_value];
sound/pci/hda/patch_sigmatel.c +1 -1
@@ -1598,7 +1598,7 @@ static struct snd_pci_quirk stac92hd73xx_cfg_tbl[] = {SND_PCI_QUIRK (PCI_VENDOR_ID_DELL ,0x02bd ,"Dell Studio 1557" ,STAC_DELL_M6_DMIC ),SND_PCI_QUIRK (PCI_VENDOR_ID_DELL ,0x02fe , -"Dell Studio XPS 1645" ,STAC_DELL_M6_BOTH ), +"Dell Studio XPS 1645" ,STAC_DELL_M6_DMIC ),SND_PCI_QUIRK (PCI_VENDOR_ID_DELL ,0x0413 , "Dell Studio 1558", STAC_DELL_M6_DMIC), {} /* terminator */
sound/pci/ice1712/amp.c +5 -2
@@ -69,8 +69,11 @@ static int __devinit snd_vt1724_amp_init(struct snd_ice1712 *ice)static int __devinit snd_vt1724_amp_add_controls (struct snd_ice1712 *ice) { -/* we use pins 39 and 41 of the VT1616 for left and right read outputs */ -snd_ac97_write_cache (ice->ac97,0x5a ,snd_ac97_read (ice->ac97,0x5a ) & ~0x8000 ); +if (ice->ac97) +/* we use pins 39 and 41 of the VT1616 for left and right +read outputs */ +snd_ac97_write_cache (ice->ac97,0x5a , +snd_ac97_read (ice->ac97,0x5a ) & ~0x8000 );return 0 ; }
sound/usb/usx2y/usb_stream.c +2 -4
@@ -673,7 +673,7 @@ dotry: inurb->transfer_buffer_length = inurb->number_of_packets * inurb->iso_frame_desc[0 ].length; -preempt_disable (); +if (u ==0 ) {int now;struct usb_device *dev = inurb->dev;
@@ -685,19 +685,17 @@ dotry: } err =usb_submit_urb (inurb,GFP_ATOMIC );if (err <0 ) { -preempt_enable ();snd_printk (KERN_ERR "usb_submit_urb(sk->inurb[%i])" " returned %i\n" , u, err);return err; } err =usb_submit_urb (outurb,GFP_ATOMIC );if (err <0 ) { -preempt_enable ();snd_printk (KERN_ERR "usb_submit_urb(sk->outurb[%i])" " returned %i\n" , u, err);return err; } -preempt_enable (); +if (inurb->start_frame != outurb->start_frame) { snd_printd(KERN_DEBUG "u[%i] start_frames differ in:%u out:%u\n",
Quoted 1 line · Greg KH
I'm announcing the release of the 2.6.32.55 kernel.
...
Quoted 2 lines
Bjorn Helgaas (1): PNP: work around Dell 1536/1546 BIOS MMCONFIG bug that breaks USB
Hi, this one is dependant on 24d25dbfa63c3 (x86/PCI: amd: factor out MMCONFIG discovery), otherwise amd_get_mmconfig_range is undefined...
regards,
Signature · 2 lines
js suse labs
Hi Jiri!
Quoted 8 lines · Jiri Slaby
Quoted 1 line · Greg KH
I'm announcing the release of the 2.6.32.55 kernel.
...
Quoted 2 lines
Bjorn Helgaas (1): PNP: work around Dell 1536/1546 BIOS MMCONFIG bug that breaks USB
Hi, this one is dependant on
24d25dbfa63c3(x86/PCI: amd: factor out MMCONFIG discovery), otherwiseamd_get_mmconfig_rangeis undefined...
Thanks for the info, I'm queuing this one right now for .60.
Thanks,
Willy
Greg KH
maintainerQuoted 8 lines · Jiri Slaby
Quoted 1 line · Greg KH
I'm announcing the release of the 2.6.32.55 kernel.
...
Quoted 2 lines
Bjorn Helgaas (1): PNP: work around Dell 1536/1546 BIOS MMCONFIG bug that breaks USB
Hi, this one is dependant on
24d25dbfa63c3(x86/PCI: amd: factor out MMCONFIG discovery), otherwiseamd_get_mmconfig_rangeis undefined...
Interesting that this was reported almost 6 months after it was released :)
Anyway, I'm no longer handling 2.6.32 kernel stuff anymore, so there's nothing I can do here, sorry.
greg k-h
Quoted 11 lines · Greg KH
Quoted 8 lines · Jiri Slaby
Quoted 1 line · Greg KH
I'm announcing the release of the 2.6.32.55 kernel.
...
Quoted 2 lines
Bjorn Helgaas (1): PNP: work around Dell 1536/1546 BIOS MMCONFIG bug that breaks USB
Hi, this one is dependant on
24d25dbfa63c3(x86/PCI: amd: factor out MMCONFIG discovery), otherwiseamd_get_mmconfig_rangeis undefined...Interesting that this was reported almost 6 months after it was released :)
Yes :). This is because it is inside #ifdef CONFIG_AMD_NB which perhaps nobody has set in 2.6.32. (Other than that we have the kernel in suse enterprise for some time already.)
@Willy: 24d25dbfa63c3 is not enough. The header referenced in 2.6.32.55's patch does not exist in that tree yet. It was renamed from asm/k8.h to asm/amd_nb.h later (by 23ac4ae827e62).
Given nobody noticed till now, I would incline to drop that patch from 2.6.32 series. Opinions?
Quoted 2 lines
Anyway, I'm no longer handling 2.6.32 kernel stuff anymore, so there's nothing I can do here, sorry.
Yeah, I see, I replied to the announcement and added Willy. Your email was @ suse, so you should have not received a copy anyway :).
thanks,
Signature · 2 lines
js suse labs
Quoted 17 lines · Jiri Slaby
Quoted 11 lines · Greg KH
Quoted 8 lines · Jiri Slaby
Quoted 1 line · Greg KH
I'm announcing the release of the 2.6.32.55 kernel.
...
Quoted 2 lines
Bjorn Helgaas (1): PNP: work around Dell 1536/1546 BIOS MMCONFIG bug that breaks USB
Hi, this one is dependant on
24d25dbfa63c3(x86/PCI: amd: factor out MMCONFIG discovery), otherwiseamd_get_mmconfig_rangeis undefined...Interesting that this was reported almost 6 months after it was released :)
Yes :). This is because it is inside #ifdef
CONFIG_AMD_NBwhich perhaps nobody has set in 2.6.32. (Other than that we have the kernel in suse enterprise for some time already.)
Quoted 6 lines
@Willy:
24d25dbfa63c3is not enough. The header referenced in 2.6.32.55's patch does not exist in that tree yet. It was renamed fromasm/k8.htoasm/amd_nb.hlater (by23ac4ae827e62).Given nobody noticed till now, I would incline to drop that patch from 2.6.32 series. Opinions?
Which one would you drop then ? You got me lost now. I mean, since you've been the only one to notice an issue, I have no problem with following you on the best way to fix it but I need to understand what you want then :-)
Thanks,
Willy
Quoted 6 lines · Willy Tarreau
Quoted 2 lines
Given nobody noticed till now, I would incline to drop that patch from 2.6.32 series. Opinions?
Which one would you drop then ? You got me lost now. I mean, since you've been the only one to notice an issue, I have no problem with following you on the best way to fix it but I need to understand what you want then :-)
Ok, now I spent some time to look into that.
I thought suse does not need the original patch (PNP: work around Dell 1536/1546 BIOS MMCONFIG bug that breaks USB) as we do not support CONFIG_AMD_NB. But in 2.6.32.55, it is named CONFIG_K8_NB. So actually we need it.
There are two problems with the backport:
* missing amd_get_mmconfig_range (added by 24d25dbfa6)
* used wrong names: CONFIG_AMD_NB and asm/amd_nb.h
The latter can be fixed in two ways:
* easier: change CONFIG_AMD_NB to CONFIG_K8_NB and asm/amd_nb.h to asm/k8.h (obviously, there will be no "upstream commit" for that)
* maybe harder: backport 23ac4ae827 including dependencies (I haven't looked if there are any)
thanks,
Signature · 2 lines
js suse labs
Hi Jiri,
Quoted 9 lines · Jiri Slaby
Quoted 6 lines · Willy Tarreau
Quoted 2 lines
Given nobody noticed till now, I would incline to drop that patch from 2.6.32 series. Opinions?
Which one would you drop then ? You got me lost now. I mean, since you've been the only one to notice an issue, I have no problem with following you on the best way to fix it but I need to understand what you want then :-)
Ok, now I spent some time to look into that.
thank you.
Quoted 7 lines
I thought suse does not need the original patch (PNP: work around Dell 1536/1546 BIOS MMCONFIG bug that breaks USB) as we do not support
CONFIG_AMD_NB. But in 2.6.32.55, it is namedCONFIG_K8_NB. So actually we need it.There are two problems with the backport:
* missingamd_get_mmconfig_range(added by24d25dbfa6)
Indeed I can see it now. Thanks for the pointer to the patch.
Quoted 5 lines
* used wrong names:
CONFIG_AMD_NBandasm/amd_nb.hThe latter can be fixed in two ways:
* easier: changeCONFIG_AMD_NBtoCONFIG_K8_NBandasm/amd_nb.htoasm/k8.h(obviously, there will be no "upstream commit" for that)
OK I can see it in quirks.c. Indeed, it looks like this is the way to go. I'm not opposed to merging it even without upstream commit since it's a fix for a regression we introduced during a backport. So that's fine.
Quoted 2 lines
* maybe harder: backport
23ac4ae827including dependencies (I haven't looked if there are any)
I'd rather avoid backporting such changes into stable when the fix is obvious.
Thanks for these precisions, it's clear to me now. I'm queuing it.
Cheers,
Willy