Linux 3.7.9
Greg KH
maintainerI'm announcing the release of the 3.7.9 kernel.
All users of the 3.7 kernel series must upgrade.
The updated 3.7.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.7.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=summary
thanks,
greg k-h
------------
Makefile | 2 +- arch/s390/kernel/time.c | 3 +++ arch/x86/include/asm/pgtable.h | 5 +++++ arch/x86/kernel/apic/x2apic_phys.c | 21 +++++++++++---------- arch/x86/mm/fault.c | 8 +++++--- arch/x86/mm/init_64.c | 3 +++ arch/x86/platform/efi/efi.c | 2 +- arch/x86/xen/xen-asm_32.S | 14 +++++++------- drivers/pci/remove.c | 2 ++ drivers/rtc/rtc-pl031.c | 4 +++- fs/xfs/xfs_buf.c | 18 ------------------ mm/mlock.c | 6 +++--- 12 files changed, 44 insertions(+), 44 deletions(-)
Gerald Schaefer (1):
mm: don't overwrite mm->def_flags in do_mlockall()
Greg Kroah-Hartman (2):
Revert: xfs: fix _xfs_buf_find oops on blocks beyond the filesystem end Linux 3.7.9
Heiko Carstens (1):
s390/timer: avoid overflow when programming clock comparator
Jan Beulich (1):
x86/xen: don't assume %ds is usable in xen_iret for 32-bit PVOPS.
Kees Cook (1):
x86: Do not leak kernel page mapping locations
Linus Walleij (1):
drivers/rtc/rtc-pl031.c: restore ST variant functionality
Mel Gorman (1):
x86/mm: Check if PUD is large when validating a kernel address
Rafael J. Wysocki (1):
PCI/PM: Clean up PME state when removing a device
Satoru Takeuchi (1):
efi: Clear EFI_RUNTIME_SERVICES rather than EFI_BOOT by "noefi" boot parameter
Stoney Wang (1):
x86/apic: Work around boot failure on HP ProLiant DL980 G7 Server systems
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 7 -SUBLEVEL = 8 +SUBLEVEL = 9 EXTRAVERSION = NAME = Terrified Chipmunk
arch/s390/kernel/time.c +3 -0
@@ -120,6 +120,9 @@ static int s390_next_ktime(ktime_t expires, nsecs =ktime_to_ns (ktime_add (timespec_to_ktime (ts), expires));do_div (nsecs,125 ); S390_lowcore.clock_comparator = sched_clock_base_cc + (nsecs <<9 ); +/* Program the maximum value if we have an overflow (== year 2042) */ +if (unlikely (S390_lowcore.clock_comparator < sched_clock_base_cc)) + S390_lowcore.clock_comparator =-1ULL ;set_clock_comparator (S390_lowcore.clock_comparator);return 0 ; }
arch/x86/include/asm/pgtable.h +5 -0
@@ -142,6 +142,11 @@ static inline unsigned long pmd_pfn(pmd_t pmd)return (pmd_val (pmd) &PTE_PFN_MASK ) >>PAGE_SHIFT ; } +static inline unsigned long pud_pfn (pud_t pud) +{ +return (pud_val (pud) &PTE_PFN_MASK ) >>PAGE_SHIFT ; +} +#define pte_page (pte) pfn_to_page(pte_pfn(pte))static inline int pmd_large (pmd_t pte)
arch/x86/kernel/apic/x2apic_phys.c +11 -10
@@ -20,18 +20,19 @@ static int set_x2apic_phys_mode(char *arg) }early_param ("x2apic_phys" , set_x2apic_phys_mode); -static int x2apic_acpi_madt_oem_check (char *oem_id,char *oem_table_id) +static bool x2apic_fadt_phys (void ) { -if (x2apic_phys) -return x2apic_enabled (); -else if ((acpi_gbl_FADT.header.revision >=FADT2_REVISION_ID ) && - (acpi_gbl_FADT.flags &ACPI_FADT_APIC_PHYSICAL ) && -x2apic_enabled ()) { +if ((acpi_gbl_FADT.header.revision >=FADT2_REVISION_ID ) && + (acpi_gbl_FADT.flags &ACPI_FADT_APIC_PHYSICAL )) {printk (KERN_DEBUG "System requires x2apic physical mode\n" ); -return 1 ; +return true; } -else -return 0 ; +return false; +} + +static int x2apic_acpi_madt_oem_check (char *oem_id,char *oem_table_id) +{ +return x2apic_enabled () && (x2apic_phys ||x2apic_fadt_phys ()); } static void
@@ -82,7 +83,7 @@ static void init_x2apic_ldr(void)static int x2apic_phys_probe (void ) { -if (x2apic_mode && x2apic_phys) +if (x2apic_mode && (x2apic_phys ||x2apic_fadt_phys ()))return 1 ;return apic == &apic_x2apic_phys;
arch/x86/mm/fault.c +5 -3
@@ -748,13 +748,15 @@ __bad_area_nosemaphore(struct pt_regs *regs, unsigned long error_code, return; }#endif +/* Kernel addresses are always protection faults: */ +if (address >=TASK_SIZE ) + error_code |=PF_PROT ; -if (unlikely (show_unhandled_signals)) +if (likely (show_unhandled_signals))show_signal_msg (regs, error_code, address, tsk); -/* Kernel addresses are always protection faults: */ tsk->thread.cr2 = address; - tsk->thread.error_code = error_code | (address >=TASK_SIZE ); + tsk->thread.error_code = error_code; tsk->thread.trap_nr =X86_TRAP_PF ;force_sig_info_fault (SIGSEGV , si_code, address, tsk,0 );
arch/x86/mm/init_64.c +3 -0
@@ -829,6 +829,9 @@ int kern_addr_valid(unsigned long addr)if (pud_none (*pud))return 0 ; +if (pud_large (*pud)) +return pfn_valid (pud_pfn (*pud)); + pmd =pmd_offset (pud, addr);if (pmd_none (*pmd))return 0 ;
arch/x86/platform/efi/efi.c +1 -1
@@ -87,7 +87,7 @@ EXPORT_SYMBOL(efi_enabled);static int __init setup_noefi (char *arg) { -clear_bit (EFI_BOOT , &x86_efi_facility); +clear_bit (EFI_RUNTIME_SERVICES , &x86_efi_facility);return 0 ; }early_param ("noefi" , setup_noefi);
arch/x86/xen/xen-asm_32.S +7 -7
@@ -89,11 +89,11 @@ ENTRY(xen_iret) */ #ifdef CONFIG_SMP GET_THREAD_INFO(%eax) - movl TI_cpu(%eax), %eax - movl __per_cpu_offset(,%eax,4), %eax - mov xen_vcpu(%eax), %eax + movl %ss:TI_cpu(%eax), %eax + movl %ss:__per_cpu_offset(,%eax,4), %eax + mov %ss:xen_vcpu(%eax), %eax #else - movl xen_vcpu, %eax + movl %ss:xen_vcpu, %eax #endif /* check IF state we're restoring */
@@ -106,11 +106,11 @@ ENTRY(xen_iret) * resuming the code, so we don't have to be worried about * being preempted to another CPU. */ - setz XEN_vcpu_info_mask(%eax) + setz %ss:XEN_vcpu_info_mask(%eax) xen_iret_start_crit: /* check for unmasked and pending */ - cmpw $0x0001, XEN_vcpu_info_pending(%eax) + cmpw $0x0001, %ss:XEN_vcpu_info_pending(%eax) /* * If there's something pending, mask events again so we can
@@ -118,7 +118,7 @@ xen_iret_start_crit: * touch XEN_vcpu_info_mask. */ jne 1f - movb $1, XEN_vcpu_info_mask(%eax) + movb $1, %ss:XEN_vcpu_info_mask(%eax) 1: popl %eax
drivers/pci/remove.c +2 -0
@@ -19,6 +19,8 @@ static void pci_free_resources(struct pci_dev *dev)static void pci_stop_dev (struct pci_dev *dev) { +pci_pme_active (dev, false); +if (dev->is_added) {pci_proc_detach_device (dev);pci_remove_sysfs_dev_files (dev);
drivers/rtc/rtc-pl031.c +3 -1
@@ -350,7 +350,9 @@ static int pl031_probe(struct amba_device *adev, const struct amba_id *id)/* Enable the clockwatch on ST Variants */ if (vendor->clockwatch) data |=RTC_CR_CWEN ; -writel (data |RTC_CR_EN , ldata->base +RTC_CR ); +else + data |=RTC_CR_EN ; +writel (data, ldata->base +RTC_CR );/* * On ST PL031 variants, the RTC reset value does not provide correct
fs/xfs/xfs_buf.c +0 -18
@@ -487,7 +487,6 @@ _xfs_buf_find(struct rb_node *parent;xfs_buf_t *bp;xfs_daddr_t blkno = map[0 ].bm_bn; -xfs_daddr_t eofs;int numblks =0 ;int i;
@@ -499,23 +498,6 @@ _xfs_buf_find(ASSERT (!(numbytes < (1 << btp->bt_sshift)));ASSERT (!(BBTOB (blkno) & (xfs_off_t )btp->bt_smask)); -/* -* Corrupted block numbers can get through to here, unfortunately, so we -* have to check that the buffer falls within the filesystem bounds. -*/ - eofs =XFS_FSB_TO_BB (btp->bt_mount, btp->bt_mount->m_sb.sb_dblocks); -if (blkno >= eofs) { -/* -* XXX (dgc): we should really be returning EFSCORRUPTED here, -* but none of the higher level infrastructure supports -* returning a specific error on buffer lookup failures. -*/ -xfs_alert (btp->bt_mount, -"%s: Block out of range: block 0x%llx, EOFS 0x%llx " , - __func__, blkno, eofs); -return NULL ; - } -/* get tree root */ pag =xfs_perag_get (btp->bt_mount,xfs_daddr_to_agno (btp->bt_mount, blkno));
mm/mlock.c +3 -3
@@ -517,11 +517,11 @@ SYSCALL_DEFINE2(munlock, unsigned long, start, size_t, len)static int do_mlockall (int flags) {struct vm_area_struct * vma, * prev =NULL ; -unsigned int def_flags =0 ;if (flags &MCL_FUTURE ) - def_flags =VM_LOCKED ; - current->mm->def_flags = def_flags; + current->mm->def_flags |=VM_LOCKED ; +else + current->mm->def_flags &= ~VM_LOCKED ;if (flags ==MCL_FUTURE ) goto out;