Linux 2.6.33.9
Subsystems (29)
I'm announcing the release of the 2.6.33.9 kernel.
This is primarily for the use of those people who are stuck using the .33-rt kernel. Anyone else who really wants to use the .33 kernel tree is welcome to use this one as well.
I'll be maintaining it for a while longer as it looks like the -rt tree isn't moving forward to any newer kernel any time soon.
The updated 2.6.33.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/longterm/linux-2.6.33.y.git
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/longterm/linux-2.6.33.y.git;a=summarythanks,
greg k-h
------------
Documentation/i2c/instantiating-devices | 2 - Makefile | 2 - arch/parisc/kernel/irq.c | 2 - arch/powerpc/kernel/crash.c | 27 +++++++++++++++++++ arch/powerpc/kernel/rtas_flash.c | 39 ++++++++++++++------------- arch/x86/kernel/entry_64.S | 2 - arch/x86/kernel/head64.c | 3 -- arch/x86/kernel/setup.c | 5 +++ arch/x86/mm/init.c | 19 ------------- arch/x86/mm/init_64.c | 11 ++++--- arch/x86/xen/mmu.c | 13 ++++----- drivers/firmware/dcdbas.c | 4 ++ drivers/hwmon/sht15.c | 4 +- drivers/input/xen-kbdfront.c | 45 +++++++++++++++++--------------- drivers/media/video/uvc/uvc_driver.c | 8 +++++ drivers/media/video/uvc/uvc_video.c | 14 ++++++--- drivers/mmc/core/sdio.c | 8 +++++ drivers/pci/hotplug/acpiphp_glue.c | 1 drivers/pci/pci-sysfs.c | 7 ++++ drivers/pci/quirks.c | 20 -------------- drivers/usb/class/cdc-acm.c | 7 ++++ drivers/usb/host/ehci-q.c | 12 -------- drivers/usb/misc/uss720.c | 7 ++-- drivers/video/console/tileblit.c | 2 - fs/aio.c | 4 +- fs/dcache.c | 3 ++ fs/ext3/super.c | 7 ++++ fs/nfsd/nfs4proc.c | 4 +- fs/nfsd/nfs4xdr.c | 5 --- fs/proc/array.c | 4 +- fs/proc/task_mmu.c | 4 +- kernel/signal.c | 16 ++++++++--- kernel/smp.c | 13 +++++++-- mm/shmem.c | 1 net/sunrpc/xprtsock.c | 2 + sound/pci/hda/patch_via.c | 14 +++++++-- 36 files changed, 196 insertions(+), 145 deletions(-)
Aaro Koskinen (1):
procfs: fix /proc/<pid>/maps heap check
Alan Stern (1):
ehci-hcd: Bug fix: don't set a QH's Halt bit
Alexander van Heukelum (1):
x86, binutils, xen: Fix another wrong size directive
Amir Goldstein (1):
ext3: skip orphan cleanup on rocompat fs
Greg Kroah-Hartman (2):
Revert "intel_idle: PCI quirk to prevent Lenovo Ideapad s10-3 boot hang" Linux 2.6.33.9
Henry Nestler (1):
fbcon: Bugfix soft cursor detection in Tile Blitting
Hugh Dickins (1):
shmem: let shared anonymous be nonlinear again
Johan Hovold (3):
USB: cdc-acm: fix memory corruption / panic
USB: cdc-acm: fix potential null-pointer dereference
USB: cdc-acm: fix potential null-pointer dereference on disconnect
Josef Bacik (1):
fs: call security_d_instantiate in d_obtain_alias V2
Julien Tinnes (1):
Prevent rt_sigqueueinfo and rt_tgsigqueueinfo from spoofing the signal code
Kees Cook (1):
proc: protect mm start_code/end_code in /proc/pid/stat
Laurent Pinchart (1):
uvcvideo: Fix descriptor parsing for video output devices
Lydia Wang (2):
ALSA: hda - VIA: Fix stereo mixer recording no sound issue
ALSA: hda - VIA: Add missing support for VT1718S in A-A path
Mi Jinlong (2):
nfsd41: modify the members value of nfsd4_op_flags
nfsd: wrong index used in inner loop
Michael Neuling (1):
powerpc/kdump: Fix race in kdump shutdown
Michal Schmidt (1):
PCI: return correct value when writing to the "reset" attribute
Milton Miller (2):
smp_call_function_many: handle concurrent clearing of mask
powerpc: rtas_flash needs to use rtas_data_buf
Olaf Hering (1):
Input: xen-kbdfront - advertise either absolute or relative coordinates
Peter Holik (1):
USB: uss720 fixup refcount position
Roland Dreier (1):
aio: wake all waiters when destroying ctx
Roman Fietze (1):
i2c: Fix typo in instantiating-devices document
Stefan Nilsson XK (1):
mmc: sdio: remember new card RCA when redetecting card
Stefano Stabellini (2):
PCI hotplug: acpiphp: set current_state to D0 in register_slot
xen: set max_pfn_mapped to the last pfn mapped
Stephan Lachowsky (1):
uvcvideo: Fix uvc_fixup_video_ctrl() format search
Stuart Hayes (1):
dcdbas: force SMI to happen when expected
Thomas Gleixner (1):
fix per-cpu flag problem in the cpu affinity checkers
Trond Myklebust (1):
SUNRPC: Never reuse the socket port after an xs_close()
Vivien Didelot (1):
hwmon: (sht15) Fix integer overflow in humidity calculation
Yinghai Lu (1):
x86: Cleanup highmap after brk is concluded
Documentation/i2c/instantiating-devices +1 -1
@@ -100,7 +100,7 @@ static int __devinit usb_hcd_pnx4008_probe(struct platform_device *pdev) (...) i2c_adap = i2c_get_adapter(2); memset(&i2c_info, 0, sizeof(struct i2c_board_info)); - strlcpy(i2c_info.name, "isp1301_pnx", I2C_NAME_SIZE); + strlcpy(i2c_info.type, "isp1301_pnx", I2C_NAME_SIZE); isp1301_i2c_client = i2c_new_probed_device(i2c_adap, &i2c_info, normal_i2c); i2c_put_adapter(i2c_adap);
Makefile +1 -1
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 33 -EXTRAVERSION = .8 +EXTRAVERSION = .9 NAME = Man-Eating Seals of Antiquity # *DOCUMENTATION*
arch/parisc/kernel/irq.c +1 -1
@@ -117,7 +117,7 @@ int cpu_check_affinity(unsigned int irq, const struct cpumask *dest)int cpu_dest;/* timer and ipi have to always be received on all CPUs */ -if (CHECK_IRQ_PER_CPU (irq)) { +if (CHECK_IRQ_PER_CPU (irq_to_desc (irq)->status)) {/* Bad linux design decision. The mask has already * been set; we must reset it */ cpumask_setall (irq_desc[irq].affinity);
arch/powerpc/kernel/crash.c +27 -0
@@ -162,6 +162,32 @@ static void crash_kexec_prepare_cpus(int cpu)/* Leave the IPI callback set */ } +/* wait for all the CPUs to hit real mode but timeout if they don't come in */ +static void crash_kexec_wait_realmode (int cpu) +{ +unsigned int msecs; +int i; + + msecs =10000 ; +for (i=0 ; i <NR_CPUS && msecs >0 ; i++) { +if (i == cpu) +continue ; + +while (paca[i].kexec_state <KEXEC_STATE_REAL_MODE ) { +barrier (); +if (!cpu_possible (i)) { +break ; + } +if (!cpu_online (i)) { +break ; + } + msecs--; +mdelay (1 ); + } + } +mb (); +} +/* * This function will be called by secondary cpus or by kexec cpu * if soft-reset is activated to stop some CPUs.
@@ -419,6 +445,7 @@ void default_machine_crash_shutdown(struct pt_regs *regs)crash_kexec_prepare_cpus (crashing_cpu);cpu_set (crashing_cpu, cpus_in_crash);crash_kexec_stop_spus (); +crash_kexec_wait_realmode (crashing_cpu);if (ppc_md.kexec_cpu_down) ppc_md.kexec_cpu_down (1 ,0 ); }
arch/powerpc/kernel/rtas_flash.c +21 -18
@@ -93,12 +93,8 @@ struct flash_block_list {struct flash_block_list *next;struct flash_block blocks[FLASH_BLOCKS_PER_NODE ]; }; -struct flash_block_list_header {/* just the header of flash_block_list */ -unsigned long num_blocks; -struct flash_block_list *next; -}; -static struct flash_block_list_header rtas_firmware_flash_list = {0 ,NULL }; +static struct flash_block_list *rtas_firmware_flash_list;/* Use slab cache to guarantee 4k alignment */ static struct kmem_cache *flash_block_cache =NULL ;
@@ -107,13 +103,14 @@ static struct kmem_cache *flash_block_cache = NULL;/* Local copy of the flash block list. * We only allow one open of the flash proc file and create this -* list as we go. This list will be put in the -* rtas_firmware_flash_list var once it is fully read. +* list as we go. The rtas_firmware_flash_list varable will be +* set once the data is fully read. * * For convenience as we build the list we use virtual addrs, * we do not fill in the version number, and the length field * is treated as the number of entries currently in the block -* (i.e. not a byte count). This is all fixed on release. +* (i.e. not a byte count). This is all fixed when calling +* the flash routine. */ /* Status int must be first member of struct */
@@ -200,16 +197,16 @@ static int rtas_flash_release(struct inode *inode, struct file *file)if (uf->flist) {/* File was opened in write mode for a new flash attempt */ /* Clear saved list */ -if (rtas_firmware_flash_list.next) { -free_flash_list (rtas_firmware_flash_list.next); - rtas_firmware_flash_list.next =NULL ; +if (rtas_firmware_flash_list) { +free_flash_list (rtas_firmware_flash_list); + rtas_firmware_flash_list =NULL ; }if (uf->status !=FLASH_AUTH ) uf->status =flash_list_valid (uf->flist);if (uf->status ==FLASH_IMG_READY ) - rtas_firmware_flash_list.next = uf->flist; + rtas_firmware_flash_list = uf->flist;else free_flash_list (uf->flist);
@@ -592,7 +589,7 @@ static void rtas_flash_firmware(int reboot_type)unsigned long rtas_block_list;int i, status, update_token; -if (rtas_firmware_flash_list.next ==NULL ) +if (rtas_firmware_flash_list ==NULL )return ;/* nothing to do */ if (reboot_type !=SYS_RESTART ) {
@@ -609,20 +606,25 @@ static void rtas_flash_firmware(int reboot_type)return ; } -/* NOTE: the "first" block list is a global var with no data -* blocks in the kernel data segment. We do this because -* we want to ensure this block_list addr is under 4GB. +/* +* NOTE: the "first" block must be under 4GB, so we create +* an entry with no data blocks in the reserved buffer in +* the kernel data segment. */ - rtas_firmware_flash_list.num_blocks =0 ; - flist = (struct flash_block_list *)&rtas_firmware_flash_list; +spin_lock (&rtas_data_buf_lock); + flist = (struct flash_block_list *)&rtas_data_buf[0 ]; + flist->num_blocks =0 ; + flist->next = rtas_firmware_flash_list; rtas_block_list =virt_to_abs (flist);if (rtas_block_list >=4UL *1024 *1024 *1024 ) {printk (KERN_ALERT "FLASH: kernel bug...flash list header addr above 4GB\n" ); +spin_unlock (&rtas_data_buf_lock);return ; }printk (KERN_ALERT "FLASH: preparing saved firmware image for flash\n" );/* Update the block_list in place. */ + rtas_firmware_flash_list =NULL ;/* too hard to backout on error */ image_size =0 ;for (f = flist; f; f = next) {/* Translate data addrs to absolute */
@@ -663,6 +665,7 @@ static void rtas_flash_firmware(int reboot_type)printk (KERN_ALERT "FLASH: unknown flash return code %d\n" , status);break ; } +spin_unlock (&rtas_data_buf_lock); }static void remove_flash_pde (struct proc_dir_entry *dp)
arch/x86/kernel/entry_64.S +1 -1
@@ -1268,7 +1268,7 @@ ENTRY(xen_do_hypervisor_callback) # do_hypervisor_callback(struct *pt_regs) decl PER_CPU_VAR(irq_count) jmp error_exit CFI_ENDPROC -END(do_hypervisor_callback) +END(xen_do_hypervisor_callback) /* * Hypervisor uses this for application faults while it executes.
arch/x86/kernel/head64.c +0 -3
@@ -76,9 +76,6 @@ void __init x86_64_start_kernel(char * real_mode_data)/* Make NULL pointers segfault */ zap_identity_mappings (); -/* Cleanup the over mapped high alias */ -cleanup_highmap (); -for (i =0 ; i <NUM_EXCEPTION_VECTORS ; i++) {#ifdef CONFIG_EARLY_PRINTK set_intr_gate (i, &early_idt_handlers[i]);
arch/x86/kernel/setup.c +5 -0
@@ -295,6 +295,9 @@ static void __init init_gbpages(void)static inline void init_gbpages (void ) { } +static void __init cleanup_highmap (void ) +{ +}#endif static void __init reserve_brk (void )
@@ -895,6 +898,8 @@ void __init setup_arch(char **cmdline_p)reserve_brk (); +cleanup_highmap (); +/* * Find and reserve possible boot-time SMP configuration: */
arch/x86/mm/init.c +0 -19
@@ -283,25 +283,6 @@ unsigned long __init_refok init_memory_mapping(unsigned long start,load_cr3 (swapper_pg_dir);#endif -#ifdef CONFIG_X86_64 -if (!after_bootmem && !start) { -pud_t *pud; -pmd_t *pmd; - - mmu_cr4_features =read_cr4 (); - -/* -* _brk_end cannot change anymore, but it and _end may be -* located on different 2M pages. cleanup_highmap(), however, -* can only consider _end when it runs, so destroy any -* mappings beyond _brk_end here. -*/ - pud =pud_offset (pgd_offset_k (_brk_end), _brk_end); - pmd =pmd_offset (pud, _brk_end -1 ); -while (++pmd <=pmd_offset (pud, (unsigned long )_end -1 )) -pmd_clear (pmd); - } -#endif __flush_tlb_all ();if (!after_bootmem && e820_table_end > e820_table_start)
arch/x86/mm/init_64.c +6 -5
@@ -49,6 +49,7 @@#include <asm/numa.h> #include <asm/cacheflush.h> #include <asm/init.h> +#include <asm/setup.h> #include <linux/bootmem.h> static unsigned long dma_reserve__initdata ;
@@ -257,18 +258,18 @@ void __init init_extra_mapping_uc(unsigned long phys, unsigned long size)* to the compile time generated pmds. This results in invalid pmds up * to the point where we hit the physaddr 0 mapping. * -* We limit the mappings to the region from _text to _end. _end is -* rounded up to the 2MB boundary. This catches the invalid pmds as +* We limit the mappings to the region from _text to _brk_end. _brk_end +* is rounded up to the 2MB boundary. This catches the invalid pmds as * well, as they are located before _text: */ void __init cleanup_highmap (void ) {unsigned long vaddr = __START_KERNEL_map; -unsigned long end =roundup ((unsigned long )_end,PMD_SIZE ) -1 ; +unsigned long vaddr_end = __START_KERNEL_map + (max_pfn_mapped <<PAGE_SHIFT ); +unsigned long end =roundup ((unsigned long )_brk_end,PMD_SIZE ) -1 ;pmd_t *pmd = level2_kernel_pgt; -pmd_t *last_pmd = pmd +PTRS_PER_PMD ; -for (; pmd < last_pmd; pmd++, vaddr +=PMD_SIZE ) { +for (; vaddr +PMD_SIZE -1 < vaddr_end; pmd++, vaddr +=PMD_SIZE ) {if (pmd_none (*pmd))continue ;if (vaddr < (unsigned long ) _text || vaddr > end)
arch/x86/xen/mmu.c +7 -6
@@ -1658,9 +1658,6 @@ static __init void xen_map_identity_early(pmd_t *pmd, unsigned long max_pfn)for (pteidx =0 ; pteidx <PTRS_PER_PTE ; pteidx++, pfn++) {pte_t pte; -if (pfn > max_pfn_mapped) - max_pfn_mapped = pfn; -if (!pte_none (pte_page[pteidx]))continue ;
@@ -1704,6 +1701,12 @@ __init pgd_t *xen_setup_kernel_pagetable(pgd_t *pgd,pud_t *l3;pmd_t *l2; +/* max_pfn_mapped is the last pfn mapped in the initial memory +* mappings. Considering that on Xen after the kernel mappings we +* have the mappings of some pages that don't exist in pfn space, we +* set max_pfn_mapped to the last real pfn mapped. */ + max_pfn_mapped =PFN_DOWN (__pa (xen_start_info->mfn_list)); +/* Zap identity mapping */ init_level4_pgt[0 ] =__pgd (0 );
@@ -1767,9 +1770,7 @@ __init pgd_t *xen_setup_kernel_pagetable(pgd_t *pgd, {pmd_t *kernel_pmd; - max_pfn_mapped =PFN_DOWN (__pa (xen_start_info->pt_base) + - xen_start_info->nr_pt_frames *PAGE_SIZE + -512 *1024 ); + max_pfn_mapped =PFN_DOWN (__pa (xen_start_info->mfn_list)); kernel_pmd =m2v (pgd[KERNEL_PGD_BOUNDARY ].pgd);memcpy (level2_kernel_pgt, kernel_pmd,sizeof (pmd_t) *PTRS_PER_PMD );
drivers/firmware/dcdbas.c +3 -1
@@ -267,8 +267,10 @@ int dcdbas_smi_request(struct smi_cmd *smi_cmd) }/* generate SMI */ +/* inb to force posted write through and make SMI happen now */ asm volatile ( - "outb %b0,%w1" + "outb %b0,%w1\n" + "inb %w1" : /* no output args */ : "a" (smi_cmd->command_code), "d" (smi_cmd->command_address),
drivers/hwmon/sht15.c +2 -2
@@ -332,11 +332,11 @@ static inline int sht15_calc_humid(struct sht15_data *data)const int c1 =-4 ;const int c2 =40500 ;/* x 10 ^ -6 */ -const int c3 =-2800 ;/* x10 ^ -9 */ +const int c3 =-28 ;/* x 10 ^ -7 */ RHlinear = c1*1000 + c2 * data->val_humid/1000 - + (data->val_humid * data->val_humid * c3)/1000000 ; + + (data->val_humid * data->val_humid * c3) /10000 ;return (temp -25000 ) * (10000 +80 * data->val_humid) /1000000 + RHlinear; }
drivers/input/xen-kbdfront.c +24 -21
84 lines not on this page · raw message
drivers/media/video/uvc/uvc_driver.c +8 -0
@@ -1260,6 +1260,14 @@ static int uvc_scan_chain_entity(struct uvc_video_chain *chain,break ; +case UVC_OTT_VENDOR_SPECIFIC : +case UVC_OTT_DISPLAY : +case UVC_OTT_MEDIA_TRANSPORT_OUTPUT : +if (uvc_trace_param &UVC_TRACE_PROBE ) +printk (" OT %d" , entity->id); + +break ; +case UVC_TT_STREAMING :if (UVC_ENTITY_IS_ITERM (entity)) {if (uvc_trace_param &UVC_TRACE_PROBE )
drivers/media/video/uvc/uvc_video.c +9 -5
@@ -64,15 +64,19 @@ int uvc_query_ctrl(struct uvc_device *dev, __u8 query, __u8 unit,static void uvc_fixup_video_ctrl (struct uvc_streaming *stream,struct uvc_streaming_control *ctrl) { -struct uvc_format *format; +struct uvc_format *format =NULL ;struct uvc_frame *frame =NULL ;unsigned int i; -if (ctrl->bFormatIndex <=0 || - ctrl->bFormatIndex > stream->nformats) -return ; +for (i =0 ; i < stream->nformats; ++i) { +if (stream->format[i].index == ctrl->bFormatIndex) { + format = &stream->format[i]; +break ; + } + } - format = &stream->format[ctrl->bFormatIndex -1 ]; +if (format ==NULL ) +return ;for (i =0 ; i < format->nframes; ++i) {if (format->frame[i].bFrameIndex == ctrl->bFrameIndex) {
drivers/mmc/core/sdio.c +8 -0
@@ -267,6 +267,14 @@ static int mmc_sdio_init_card(struct mmc_host *host, u32 ocr,if (err) goto remove; +/* +* Update oldcard with the new RCA received from the SDIO +* device -- we're doing this so that it's updated in the +* "card" struct when oldcard overwrites that later. +*/ +if (oldcard) + oldcard->rca = card->rca; +mmc_set_bus_mode (host,MMC_BUSMODE_PUSHPULL ); }
drivers/pci/hotplug/acpiphp_glue.c +1 -0
@@ -211,6 +211,7 @@ register_slot(acpi_handle handle, u32 lvl, void *context, void **rv) pdev =pci_get_slot (pbus,PCI_DEVFN (device, function));if (pdev) { + pdev->current_state =PCI_D0 ; slot->flags |= (SLOT_ENABLED |SLOT_POWEREDON );pci_dev_put (pdev); }
drivers/pci/pci-sysfs.c +6 -1
@@ -966,7 +966,12 @@ static ssize_t reset_store(struct device *dev,if (val !=1 )return -EINVAL ; -return pci_reset_function (pdev); + + result =pci_reset_function (pdev); +if (result <0 ) +return result; + +return count; }static struct device_attribute reset_attr =__ATTR (reset,0200 ,NULL , reset_store);
drivers/pci/quirks.c +0 -20
@@ -155,26 +155,6 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_NEC, PCI_DEVICE_ID_NEC_CBUS_2, quirk_isa_dDECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_NEC ,PCI_DEVICE_ID_NEC_CBUS_3 , quirk_isa_dma_hangs);/* -* Intel NM10 "TigerPoint" LPC PM1a_STS.BM_STS must be clear -* for some HT machines to use C4 w/o hanging. -*/ -static void __devinit quirk_tigerpoint_bm_sts (struct pci_dev *dev) -{ -u32 pmbase; -u16 pm1a; - -pci_read_config_dword (dev,0x40 , &pmbase); - pmbase = pmbase &0xff80 ; - pm1a =inw (pmbase); - -if (pm1a &0x10 ) { -dev_info (&dev->dev,FW_BUG "TigerPoint LPC.BM_STS cleared\n" ); -outw (0x10 , pmbase); - } -} -DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,PCI_DEVICE_ID_INTEL_TGP_LPC , quirk_tigerpoint_bm_sts); - -/* * Chipsets where PCI->PCI transfers vanish or hang */ static void __devinit quirk_nopcipci (struct pci_dev *dev)
drivers/usb/class/cdc-acm.c +6 -1
@@ -297,6 +297,8 @@ static void acm_ctrl_irq(struct urb *urb)if (!ACM_READY (acm)) goto exit; +usb_mark_last_busy (acm->dev); + data = (unsigned char *)(dr +1 );switch (dr->bNotificationType) {case USB_CDC_NOTIFY_NETWORK_CONNECTION :
@@ -336,7 +338,6 @@ static void acm_ctrl_irq(struct urb *urb)break ; } exit: -usb_mark_last_busy (acm->dev); retval =usb_submit_urb (urb,GFP_ATOMIC );if (retval) dev_err(&urb->dev->dev, "%s - usb_submit_urb failed with "
@@ -534,6 +535,8 @@ static void acm_softint(struct work_struct *work)if (!ACM_READY (acm))return ; tty =tty_port_tty_get (&acm->port); +if (!tty) +return ;tty_wakeup (tty);tty_kref_put (tty); }
@@ -652,8 +655,10 @@ static void acm_port_down(struct acm *acm, int drain)usb_kill_urb (acm->ctrlurb);for (i =0 ; i <ACM_NW ; i++)usb_kill_urb (acm->wb[i].urb); +tasklet_disable (&acm->urb_task);for (i =0 ; i < nr; i++)usb_kill_urb (acm->ru[i].urb); +tasklet_enable (&acm->urb_task); acm->control->needs_remote_wakeup =0 ;usb_autopm_put_interface (acm->control); }
drivers/usb/host/ehci-q.c +0 -12
@@ -315,7 +315,6 @@ qh_completions (struct ehci_hcd *ehci, struct ehci_qh *qh)int stopped;unsigned count =0 ;u8 state; -const __le32 halt =HALT_BIT (ehci);struct ehci_qh_hw *hw = qh->hw;if (unlikely (list_empty (&qh->qtd_list)))
@@ -422,7 +421,6 @@ qh_completions (struct ehci_hcd *ehci, struct ehci_qh *qh) && !(qtd->hw_alt_next & EHCI_LIST_END(ehci))) { stopped =1 ; - goto halt; }/* stop scanning when we reach qtds the hc is using */
@@ -456,16 +454,6 @@ qh_completions (struct ehci_hcd *ehci, struct ehci_qh *qh)*/ ehci_clear_tt_buffer (ehci, qh, urb, token); } - -/* force halt for unlinked or blocked qh, so we'll -* patch the qh later and so that completions can't -* activate it while we "know" it's stopped. -*/ -if ((halt & hw->hw_token) ==0 ) { -halt: - hw->hw_token |= halt; -wmb (); - } }/* unless we already know the urb's status, collect qtd status
drivers/usb/misc/uss720.c +3 -4
@@ -176,12 +176,11 @@ static struct uss720_async_request *submit_async_request(struct parport_uss720_pspin_lock_irqsave (&priv->asynclock, flags);list_add_tail (&rq->asynclist, &priv->asynclist);spin_unlock_irqrestore (&priv->asynclock, flags); +kref_get (&rq->ref_count); ret =usb_submit_urb (rq->urb, mem_flags); -if (!ret) { -kref_get (&rq->ref_count); +if (!ret)return rq; - } -kref_put (&rq->ref_count, destroy_async); +destroy_async (&rq->ref_count);err ("submit_async_request submit_urb failed with %d" , ret);return NULL ; }
drivers/video/console/tileblit.c +1 -1
@@ -83,7 +83,7 @@ static void tile_cursor(struct vc_data *vc, struct fb_info *info, int mode, int softback_lines, int fg, int bg) { struct fb_tilecursor cursor; -int use_sw = (vc->vc_cursor_type &0x01 ); +int use_sw = (vc->vc_cursor_type &0x10 ); cursor.sx = vc->vc_x; cursor.sy = vc->vc_y;
fs/aio.c +2 -2
@@ -511,7 +511,7 @@ static inline void really_put_req(struct kioctx *ctx, struct kiocb *req) ctx->reqs_active--;if (unlikely (!ctx->reqs_active && ctx->dead)) -wake_up (&ctx->wait); +wake_up_all (&ctx->wait); }static void aio_fput_routine (struct work_struct *data)
@@ -1224,7 +1224,7 @@ static void io_destroy(struct kioctx *ioctx)* by other CPUs at this point. Right now, we rely on the * locking done by the above calls to ensure this consistency. */ -wake_up (&ioctx->wait); +wake_up_all (&ioctx->wait);put_ioctx (ioctx);/* once for the lookup */ }
fs/dcache.c +3 -0
@@ -1176,9 +1176,12 @@ struct dentry *d_obtain_alias(struct inode *inode)spin_unlock (&tmp->d_lock);spin_unlock (&dcache_lock); +security_d_instantiate (tmp, inode);return tmp; out_iput: +if (res && !IS_ERR (res)) +security_d_instantiate (res, inode);iput (inode);return res; }
fs/ext3/super.c +7 -0
@@ -1440,6 +1440,13 @@ static void ext3_orphan_cleanup (struct super_block * sb,return ; } +/* Check if feature set allows readwrite operations */ +if (EXT3_HAS_RO_COMPAT_FEATURE (sb, ~EXT3_FEATURE_RO_COMPAT_SUPP )) { +ext3_msg (sb,KERN_INFO ,"Skipping orphan cleanup due to " +"unknown ROCOMPAT features" ); +return ; + } +if (EXT3_SB (sb)->s_mount_state &EXT3_ERROR_FS ) {if (es->s_last_orphan) jbd_debug(1, "Errors on filesystem, "
fs/nfsd/nfs4proc.c +2 -2
@@ -953,8 +953,8 @@ typedef __be32(*nfsd4op_func)(struct svc_rqst *, struct nfsd4_compound_state *, void *);enum nfsd4_op_flags {ALLOWED_WITHOUT_FH =1 <<0 ,/* No current filehandle required */ -ALLOWED_ON_ABSENT_FS =2 <<0 ,/* ops processed on absent fs */ -ALLOWED_AS_FIRST_OP =3 <<0 ,/* ops reqired first in compound */ +ALLOWED_ON_ABSENT_FS =1 <<1 ,/* ops processed on absent fs */ +ALLOWED_AS_FIRST_OP =1 <<2 ,/* ops reqired first in compound */ };struct nfsd4_operation {
fs/nfsd/nfs4xdr.c +1 -4
@@ -1106,7 +1106,7 @@ nfsd4_decode_create_session(struct nfsd4_compoundargs *argp,u32 dummy;char *machine_name; -int i, j; +int i;int nr_secflavs;READ_BUF (16 );
@@ -1179,8 +1179,6 @@ nfsd4_decode_create_session(struct nfsd4_compoundargs *argp,READ_BUF (4 );READ32 (dummy);READ_BUF (dummy *4 ); -for (j =0 ; j < dummy; ++j) -READ32 (dummy);break ;case RPC_AUTH_GSS : dprintk("RPC_AUTH_GSS callback secflavor "
@@ -1196,7 +1194,6 @@ nfsd4_decode_create_session(struct nfsd4_compoundargs *argp,READ_BUF (4 );READ32 (dummy);READ_BUF (dummy); - p +=XDR_QUADLEN (dummy);break ;default :dprintk ("Illegal callback secflavor\n" );
fs/proc/array.c +2 -2
@@ -488,8 +488,8 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns, vsize, mm ?get_mm_rss (mm) :0 , rsslim, - mm ? mm->start_code :0 , - mm ? mm->end_code :0 , + mm ? (permitted ? mm->start_code :1 ) :0 , + mm ? (permitted ? mm->end_code :1 ) :0 , (permitted && mm) ? mm->start_stack :0 , esp, eip,
fs/proc/task_mmu.c +2 -2
@@ -243,8 +243,8 @@ static void show_map_vma(struct seq_file *m, struct vm_area_struct *vma)const char *name =arch_vma_name (vma);if (!name) {if (mm) { -if (vma->vm_start <= mm->start_brk && - vma->vm_end >= mm->brk) { +if (vma->vm_start <= mm->brk && + vma->vm_end >= mm->start_brk) { name ="[heap]" ; }else if (vma->vm_start <= mm->start_stack && vma->vm_end >= mm->start_stack) {
kernel/signal.c +12 -4
@@ -2406,9 +2406,13 @@ SYSCALL_DEFINE3(rt_sigqueueinfo, pid_t, pid, int, sig,return -EFAULT ;/* Not even root can pretend to send signals from the kernel. -Nor can they impersonate a kill(), which adds source info. */ -if (info.si_code >=0 ) +* Nor can they impersonate a kill()/tgkill(), which adds source info. +*/ +if (info.si_code !=SI_QUEUE ) { +/* We used to allow any < 0 si_code */ +WARN_ON_ONCE (info.si_code <0 );return -EPERM ; + } info.si_signo = sig;/* POSIX.1b doesn't mention process groups. */
@@ -2422,9 +2426,13 @@ long do_rt_tgsigqueueinfo(pid_t tgid, pid_t pid, int sig, siginfo_t *info)return -EINVAL ;/* Not even root can pretend to send signals from the kernel. -Nor can they impersonate a kill(), which adds source info. */ -if (info->si_code >=0 ) +* Nor can they impersonate a kill()/tgkill(), which adds source info. +*/ +if (info->si_code !=SI_QUEUE ) { +/* We used to allow any < 0 si_code */ +WARN_ON_ONCE (info->si_code <0 );return -EPERM ; + } info->si_signo = sig;return do_send_specific (tgid, pid, sig, info);
kernel/smp.c +10 -3
@@ -428,7 +428,7 @@ void smp_call_function_many(const struct cpumask *mask, {struct call_function_data *data;unsigned long flags; -int cpu, next_cpu, this_cpu =smp_processor_id (); +int refs, cpu, next_cpu, this_cpu =smp_processor_id ();/* * Can deadlock when called with interrupts disabled.
@@ -439,7 +439,7 @@ void smp_call_function_many(const struct cpumask *mask,WARN_ON_ONCE (cpu_online (this_cpu) &&irqs_disabled () && !oops_in_progress); -/* So, what's a CPU they want? Ignoring this one. */ +/* Try to fastpath. So, what's a CPU they want? Ignoring this one. */ cpu =cpumask_first_and (mask, cpu_online_mask);if (cpu == this_cpu) cpu =cpumask_next_and (cpu, mask, cpu_online_mask);
@@ -497,6 +497,13 @@ void smp_call_function_many(const struct cpumask *mask,/* We rely on the "and" being processed before the store */ cpumask_and (data->cpumask, mask, cpu_online_mask);cpumask_clear_cpu (this_cpu, data->cpumask); + refs =cpumask_weight (data->cpumask); + +/* Some callers race with other cpus changing the passed mask */ +if (unlikely (!refs)) { +csd_unlock (&data->csd); +return ; + }raw_spin_lock_irqsave (&call_function.lock, flags);/*
@@ -510,7 +517,7 @@ void smp_call_function_many(const struct cpumask *mask,* to the cpumask before this write to refs, which indicates * data is on the list and is ready to be processed. */ -atomic_set (&data->refs,cpumask_weight (data->cpumask)); +atomic_set (&data->refs, refs);raw_spin_unlock_irqrestore (&call_function.lock, flags);/*
mm/shmem.c +1 -0
@@ -2701,5 +2701,6 @@ int shmem_zero_setup(struct vm_area_struct *vma)fput (vma->vm_file); vma->vm_file = file; vma->vm_ops = &shmem_vm_ops; + vma->vm_flags |=VM_CAN_NONLINEAR ;return 0 ; }
net/sunrpc/xprtsock.c +2 -0
@@ -729,6 +729,8 @@ static void xs_reset_transport(struct sock_xprt *transport)if (sk ==NULL )return ; + transport->srcport =0 ; +write_lock_bh (&sk->sk_callback_lock); transport->inet =NULL ; transport->sock =NULL ;
sound/pci/hda/patch_via.c +11 -3
@@ -1060,6 +1060,7 @@ static int via_mux_enum_put(struct snd_kcontrol *kcontrol,struct hda_codec *codec =snd_kcontrol_chip (kcontrol);struct via_spec *spec = codec->spec;unsigned int adc_idx =snd_ctl_get_ioffidx (kcontrol, &ucontrol->id); +int ret;if (!spec->mux_nids[adc_idx])return -EINVAL ;
@@ -1068,12 +1069,14 @@ static int via_mux_enum_put(struct snd_kcontrol *kcontrol, AC_VERB_GET_POWER_STATE, 0x00) != AC_PWRST_D0)snd_hda_codec_write (codec, spec->mux_nids[adc_idx],0 ,AC_VERB_SET_POWER_STATE ,AC_PWRST_D0 ); -/* update jack power state */ -set_jack_power_state (codec); -return snd_hda_input_mux_put (codec, spec->input_mux, ucontrol, + ret =snd_hda_input_mux_put (codec, spec->input_mux, ucontrol, spec->mux_nids[adc_idx], &spec->cur_mux[adc_idx]); +/* update jack power state */ +set_jack_power_state (codec); + +return ret; } static int via_independent_hp_info(struct snd_kcontrol *kcontrol,
@@ -1262,6 +1265,11 @@ static void mute_aa_path(struct hda_codec *codec, int mute) start_idx =2 ; end_idx =4 ;break ; +case VT1718S : + nid_mixer =0x21 ; + start_idx =1 ; + end_idx =3 ; +break ;default :return ; }