Linux 2.6.32.36
Subsystems (23)
Makefile +1 -1
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 32 -EXTRAVERSION = .35 +EXTRAVERSION = .36 NAME = Man-Eating Seals of Antiquity # *DOCUMENTATION*
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
@@ -294,6 +294,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 )
@@ -921,6 +924,8 @@ void __init setup_arch(char **cmdline_p)reserve_brk (); +cleanup_highmap (); +init_gbpages ();/* max_pfn_mapped is updated here */
arch/x86/mm/init.c +0 -19
@@ -287,25 +287,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/input/xen-kbdfront.c +24 -21
84 lines not on this page · raw message
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/pci/hotplug/acpiphp_glue.c +1 -0
@@ -213,6 +213,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
@@ -939,7 +939,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/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
@@ -497,7 +497,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)
@@ -1219,7 +1219,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
@@ -1175,9 +1175,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
@@ -1404,6 +1404,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 )) { +printk (KERN_INFO "EXT3-fs: %s: Skipping orphan cleanup due to " +"unknown ROCOMPAT features\n" , sb->s_id); +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
@@ -964,8 +964,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
@@ -1114,7 +1114,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 );
@@ -1187,8 +1187,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 "
@@ -1204,7 +1202,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
@@ -473,8 +473,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
@@ -244,8 +244,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
@@ -2351,9 +2351,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. */
@@ -2367,9 +2371,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);
mm/shmem.c +1 -0
@@ -2691,5 +2691,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
@@ -743,6 +743,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 ;
I'm announcing the release of the 2.6.32.36 kernel.
All users of the 2.6.32 series must upgrade.
The updated 2.6.32.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/longterm/linux-2.6.32.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.32.y.git;a=summarythanks,
greg k-h
------------
Makefile | 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/input/xen-kbdfront.c | 45 +++++++++++++++++++----------------- drivers/media/video/uvc/uvc_video.c | 14 +++++++---- drivers/pci/hotplug/acpiphp_glue.c | 1 drivers/pci/pci-sysfs.c | 7 ++++- 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 +++++++++--- mm/shmem.c | 1 net/sunrpc/xprtsock.c | 2 + 25 files changed, 106 insertions(+), 96 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
Amir Goldstein (1):
ext3: skip orphan cleanup on rocompat fs
Greg Kroah-Hartman (1):
Linux 2.6.32.36
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
Mi Jinlong (2):
nfsd41: modify the members value of nfsd4_op_flags
nfsd: wrong index used in inner loop
Michal Schmidt (1):
PCI: return correct value when writing to the "reset" attribute
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
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
Trond Myklebust (1):
SUNRPC: Never reuse the socket port after an xs_close()
Yinghai Lu (1):
x86: Cleanup highmap after brk is concluded