Linux 2.6.37.6
Subsystems (38)
I'm announcing the release of the 2.6.37.6 kernel.
All users of the 2.6.37 kernel series must upgrade.
No, scrap that, they should move to the 2.6.38 kernel series as the .37 series is now end-of-life and will get no more updates.
The updated 2.6.37.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.37.y.git
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.37.y.git;a=summarythanks,
greg k-h
------------
Makefile | 2 arch/sh/kernel/ptrace_32.c | 8 + arch/sh/kernel/ptrace_64.c | 6 + arch/x86/include/asm/msr-index.h | 5 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/gpu/drm/drm_crtc.c | 51 +++++++++ drivers/gpu/drm/drm_gem.c | 5 drivers/gpu/drm/i915/i915_gem.c | 6 - drivers/gpu/drm/radeon/atombios_crtc.c | 6 - drivers/gpu/drm/radeon/radeon_combios.c | 21 ++- drivers/gpu/drm/radeon/radeon_connectors.c | 30 +++++ drivers/gpu/drm/radeon/radeon_mode.h | 1 drivers/idle/intel_idle.c | 24 ++++ drivers/input/xen-kbdfront.c | 45 ++++---- drivers/media/video/uvc/uvc_driver.c | 8 + drivers/media/video/uvc/uvc_video.c | 14 +- drivers/pci/hotplug/acpiphp_glue.c | 1 drivers/usb/class/cdc-acm.c | 7 + drivers/usb/class/cdc-wdm.c | 2 drivers/usb/core/devio.c | 2 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/ext4/super.c | 8 + fs/nfs/write.c | 31 +++-- fs/nfsd/nfs4proc.c | 4 fs/nfsd/nfs4state.c | 155 +++++++++++++++-------------- fs/nfsd/nfs4xdr.c | 5 fs/proc/array.c | 4 fs/proc/task_mmu.c | 4 fs/super.c | 2 fs/sync.c | 4 include/linux/ethtool.h | 34 ++++++ kernel/cgroup.c | 14 +- kernel/perf_event.c | 13 +- kernel/signal.c | 16 ++ kernel/sysctl.c | 18 +++ mm/backing-dev.c | 2 mm/oom_kill.c | 50 +++++---- mm/shmem.c | 1 mm/slab.c | 8 - mm/swapfile.c | 7 + net/socket.c | 114 ++++++++++++++++++++- net/sunrpc/xprtsock.c | 2 sound/pci/hda/patch_sigmatel.c | 18 +++ sound/pci/hda/patch_via.c | 53 +++++++-- 54 files changed, 646 insertions(+), 255 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
Alex Deucher (2):
drm/radeon/kms: prefer legacy pll algo for tv-out drm/radeon/kms: fix hardcoded EDID handling
Amir Goldstein (2):
ext3: skip orphan cleanup on rocompat fs
ext4: skip orphan cleanup if fs has unknown ROCOMPAT features
Andrey Vagin (1):
oom: skip zombies when iterating tasklist
Ben Hutchings (1):
ethtool: Compat handling for struct ethtool_rxnfc
Chris Wilson (1):
drm: Fix use-after-free in drm_gem_vm_close()
Dave Airlie (1):
drm: check for modesetting on modeset ioctls
David Engraf (1):
sh: Fix ptrace hw_breakpoint handling
David Henningsson (1):
ALSA: HDA: Fix internal mic on Dell E5420/E5520
David Rientjes (2):
oom: prevent unnecessary oom kills or kernel panics
oom: avoid deferring oom killer if exiting task is being traced
Greg Kroah-Hartman (1):
Linux 2.6.37.6
Henry Nestler (1):
fbcon: Bugfix soft cursor detection in Tile Blitting
Herton Ronaldo Krzesinski (1):
drm/i915: Prevent racy removal of request from client list
Hugh Dickins (1):
shmem: let shared anonymous be nonlinear again
J. Bruce Fields (2):
nfsd4: minor nfs4state.c reshuffling
nfsd4: fix struct file leak
Jens Axboe (1):
fs: assign sb->s_bdi to default_backing_dev_info if the bdi is going away
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
Len Brown (2):
intel_idle: disable NHM/WSM HW C-state auto-demotion
intel_idle: disable Atom/Lincroft HW C-state auto-demotion
Lydia Wang (6):
ALSA: hda - VIA: Fix stereo mixer recording no sound issue
ALSA: hda - VIA: Fix independent headphone no sound issue
ALSA: hda - VIA: Add missing support for VT1718S in A-A path
ALSA: hda - VIA: Fix invalid A-A path volume adjust issue
ALSA: hda - VIA: Fix codec type for VT1708BCE at the right timing
ALSA: hda - VIA: Fix VT1708 can't build up Headphone control issue
Mel Gorman (1):
mm: swap: unlock swapfile inode mutex before closing file on bad swapfiles
Mi Jinlong (2):
nfsd41: modify the members value of nfsd4_op_flags
nfsd: wrong index used in inner loop
Michal Sojka (1):
USB: Do not pass negative length to snoop_urb()
Olaf Hering (1):
Input: xen-kbdfront - advertise either absolute or relative coordinates
Pekka Enberg (1):
Revert "slab: Fix missing DEBUG_SLAB last user"
Peter Holik (1):
USB: uss720 fixup refcount position
Peter Zijlstra (1):
perf: Fix tear-down of inherited group events
Phil Carmody (1):
cgroups: if you list_empty() a head then don't list_del() it
Phil Edworthy (1):
sh: Fix ptrace fpu state initialisation
Richard Weinberger (1):
sysctl: restrict write access to dmesg_restrict
Robert Lukassen (1):
USB: Fix 'bad dma' problem on WDM device disconnect
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 (2):
NFS: Fix a hang/infinite loop in nfs_wb_page()
SUNRPC: Never reuse the socket port after an xs_close()
Yinghai Lu (1):
x86: Cleanup highmap after brk is concluded
Makefile +1 -1
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 37 -EXTRAVERSION = .5 +EXTRAVERSION = .6 NAME = Flesh-Eating Bats with Fangs # *DOCUMENTATION*
arch/sh/kernel/ptrace_32.c +8 -0
@@ -101,6 +101,8 @@ static int set_single_step(struct task_struct *tsk, unsigned long addr) attr = bp->attr; attr.bp_addr = addr; +/* reenable breakpoint */ + attr.disabled = false; err =modify_user_hw_breakpoint (bp, &attr);if (unlikely (err))return err;
@@ -392,6 +394,9 @@ long arch_ptrace(struct task_struct *child, long request, tmp =0 ; }else {unsigned long index; + ret =init_fpu (child); +if (ret) +break ; index = addr - offsetof(struct user , fpu); tmp = ((unsigned long *)child->thread.xstate) [index >>2 ];
@@ -423,6 +428,9 @@ long arch_ptrace(struct task_struct *child, long request,else if (addr >= offsetof(struct user , fpu) && addr < offsetof(struct user , u_fpvalid)) {unsigned long index; + ret =init_fpu (child); +if (ret) +break ; index = addr - offsetof(struct user , fpu);set_stopped_child_used_math (child); ((unsigned long *)child->thread.xstate)
arch/sh/kernel/ptrace_64.c +6 -0
@@ -403,6 +403,9 @@ long arch_ptrace(struct task_struct *child, long request,else if ((addr >= offsetof(struct user , fpu)) && (addr < offsetof(struct user , u_fpvalid))) {unsigned long index; + ret =init_fpu (child); +if (ret) +break ; index = addr - offsetof(struct user , fpu); tmp =get_fpu_long (child, index); }else if (addr == offsetof(struct user , u_fpvalid)) {
@@ -442,6 +445,9 @@ long arch_ptrace(struct task_struct *child, long request,else if ((addr >= offsetof(struct user , fpu)) && (addr < offsetof(struct user , u_fpvalid))) {unsigned long index; + ret =init_fpu (child); +if (ret) +break ; index = addr - offsetof(struct user , fpu); ret =put_fpu_long (child, index, data); }
arch/x86/include/asm/msr-index.h +5 -0
@@ -36,6 +36,11 @@#define MSR_IA32_PERFCTR1 0x000000c2#define MSR_FSB_FREQ 0x000000cd +#define MSR_NHM_SNB_PKG_CST_CFG_CTL 0x000000e2 +#define NHM_C3_AUTO_DEMOTE (1UL << 25) +#define NHM_C1_AUTO_DEMOTE (1UL << 26) +#define ATM_LNC_C6_AUTO_DEMOTE (1UL << 25) +#define MSR_MTRRcap 0x000000fe#define MSR_IA32_BBL_CR_CTL 0x00000119
arch/x86/kernel/head64.c +0 -3
@@ -77,9 +77,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 (); - max_pfn_mapped =KERNEL_IMAGE_SIZE >>PAGE_SHIFT ;for (i =0 ; i <NUM_EXCEPTION_VECTORS ; i++) {
arch/x86/kernel/setup.c +5 -0
@@ -297,6 +297,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 )
@@ -922,6 +925,8 @@ void __init setup_arch(char **cmdline_p)*/ reserve_brk (); +cleanup_highmap (); + memblock.current_limit =get_max_mapped ();memblock_x86_fill ();
arch/x86/mm/init.c +0 -19
@@ -279,25 +279,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
@@ -51,6 +51,7 @@#include <asm/numa.h> #include <asm/cacheflush.h> #include <asm/init.h> +#include <asm/setup.h> static int __init parse_direct_gbpages_off (char *arg) {
@@ -293,18 +294,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
@@ -2027,9 +2027,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 ;
@@ -2087,6 +2084,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 );
@@ -2191,9 +2194,7 @@ __init pgd_t *xen_setup_kernel_pagetable(pgd_t *pgd, initial_kernel_pmd =extend_brk (sizeof (pmd_t) *PTRS_PER_PMD ,PAGE_SIZE ); - 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 (initial_kernel_pmd, kernel_pmd,sizeof (pmd_t) *PTRS_PER_PMD );
drivers/firmware/dcdbas.c +3 -1
@@ -268,8 +268,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/gpu/drm/drm_crtc.c +51 -0
153 lines not on this page · raw message
drivers/gpu/drm/drm_gem.c +3 -2
@@ -498,11 +498,12 @@ EXPORT_SYMBOL(drm_gem_vm_open);void drm_gem_vm_close (struct vm_area_struct *vma) {struct drm_gem_object *obj = vma->vm_private_data; +struct drm_device *dev = obj->dev; -mutex_lock (&obj->dev->struct_mutex); +mutex_lock (&dev->struct_mutex);drm_vm_close_locked (vma);drm_gem_object_unreference (obj); -mutex_unlock (&obj->dev->struct_mutex); +mutex_unlock (&dev->struct_mutex); }EXPORT_SYMBOL (drm_gem_vm_close);
drivers/gpu/drm/i915/i915_gem.c +4 -2
@@ -1748,8 +1748,10 @@ i915_gem_request_remove_from_client(struct drm_i915_gem_request *request)return ;spin_lock (&file_priv->mm.lock); -list_del (&request->client_list); - request->file_priv =NULL ; +if (request->file_priv) { +list_del (&request->client_list); + request->file_priv =NULL ; + }spin_unlock (&file_priv->mm.lock); }
drivers/gpu/drm/radeon/atombios_crtc.c +5 -1
@@ -921,7 +921,11 @@ static void atombios_crtc_set_pll(struct drm_crtc *crtc, struct drm_display_mode/* adjust pixel clock as needed */ adjusted_clock =atombios_adjust_pll (crtc, mode, pll, ss_enabled, &ss); -if (ASIC_IS_AVIVO (rdev)) +if (radeon_encoder->active_device & (ATOM_DEVICE_TV_SUPPORT )) +/* TV seems to prefer the legacy algo on some boards */ +radeon_compute_pll_legacy (pll, adjusted_clock, &pll_clock, &fb_div, &frac_fb_div, + &ref_div, &post_div); +else if (ASIC_IS_AVIVO (rdev))radeon_compute_pll_avivo (pll, adjusted_clock, &pll_clock, &fb_div, &frac_fb_div, &ref_div, &post_div);else
drivers/gpu/drm/radeon/radeon_combios.c +16 -5
@@ -448,7 +448,7 @@ static uint16_t combios_get_table_offset(struct drm_device *dev,bool radeon_combios_check_hardcoded_edid (struct radeon_device *rdev) { -int edid_info; +int edid_info, size;struct edid *edid;unsigned char *raw; edid_info =combios_get_table_offset (rdev->ddev,COMBIOS_HARDCODED_EDID_TABLE );
@@ -456,11 +456,12 @@ bool radeon_combios_check_hardcoded_edid(struct radeon_device *rdev)return false; raw = rdev->bios + edid_info; - edid =kmalloc (EDID_LENGTH * (raw[0x7e ] +1 ),GFP_KERNEL ); + size =EDID_LENGTH * (raw[0x7e ] +1 ); + edid =kmalloc (size,GFP_KERNEL );if (edid ==NULL )return false; -memcpy ((unsigned char *)edid, raw,EDID_LENGTH * (raw[0x7e ] +1 )); +memcpy ((unsigned char *)edid, raw, size);if (!drm_edid_is_valid (edid)) {kfree (edid);
@@ -468,14 +469,24 @@ bool radeon_combios_check_hardcoded_edid(struct radeon_device *rdev) } rdev->mode_info.bios_hardcoded_edid = edid; + rdev->mode_info.bios_hardcoded_edid_size = size;return true; }struct edid *radeon_combios_get_hardcoded_edid (struct radeon_device *rdev) { -if (rdev->mode_info.bios_hardcoded_edid) -return rdev->mode_info.bios_hardcoded_edid; +struct edid *edid; + +if (rdev->mode_info.bios_hardcoded_edid) { + edid =kmalloc (rdev->mode_info.bios_hardcoded_edid_size,GFP_KERNEL ); +if (edid) { +memcpy ((unsigned char *)edid, + (unsigned char *)rdev->mode_info.bios_hardcoded_edid, + rdev->mode_info.bios_hardcoded_edid_size); +return edid; + } + }return NULL ; }
drivers/gpu/drm/radeon/radeon_connectors.c +28 -2
@@ -626,6 +626,8 @@ static int radeon_vga_mode_valid(struct drm_connector *connector,static enum drm_connector_status radeon_vga_detect (struct drm_connector *connector,bool force) { +struct drm_device *dev = connector->dev; +struct radeon_device *rdev = dev->dev_private;struct radeon_connector *radeon_connector =to_radeon_connector (connector);struct drm_encoder *encoder;struct drm_encoder_helper_funcs *encoder_funcs;
@@ -676,6 +678,17 @@ radeon_vga_detect(struct drm_connector *connector, bool force)if (ret == connector_status_connected) ret =radeon_connector_analog_encoder_conflict_solve (connector, encoder, ret, true); + +/* RN50 and some RV100 asics in servers often have a hardcoded EDID in the +* vbios to deal with KVMs. If we have one and are not able to detect a monitor +* by other means, assume the CRT is connected and use that EDID. +*/ +if ((!rdev->is_atom_bios) && + (ret == connector_status_disconnected) && + rdev->mode_info.bios_hardcoded_edid_size) { + ret = connector_status_connected; + } +radeon_connector_update_scratch_regs (connector, ret);return ret; }
@@ -787,6 +800,8 @@ static int radeon_dvi_get_modes(struct drm_connector *connector)static enum drm_connector_status radeon_dvi_detect (struct drm_connector *connector,bool force) { +struct drm_device *dev = connector->dev; +struct radeon_device *rdev = dev->dev_private;struct radeon_connector *radeon_connector =to_radeon_connector (connector);struct drm_encoder *encoder =NULL ;struct drm_encoder_helper_funcs *encoder_funcs;
@@ -826,8 +841,6 @@ radeon_dvi_detect(struct drm_connector *connector, bool force)* you don't really know what's connected to which port as both are digital. */ if (radeon_connector->shared_ddc && (ret == connector_status_connected)) { -struct drm_device *dev = connector->dev; -struct radeon_device *rdev = dev->dev_private;struct drm_connector *list_connector;struct radeon_connector *list_radeon_connector;list_for_each_entry (list_connector, &dev->mode_config.connector_list, head) {
@@ -892,6 +905,19 @@ radeon_dvi_detect(struct drm_connector *connector, bool force) ret =radeon_connector_analog_encoder_conflict_solve (connector, encoder, ret, true); } +/* RN50 and some RV100 asics in servers often have a hardcoded EDID in the +* vbios to deal with KVMs. If we have one and are not able to detect a monitor +* by other means, assume the DFP is connected and use that EDID. In most +* cases the DVI port is actually a virtual KVM port connected to the service +* processor. +*/ +if ((!rdev->is_atom_bios) && + (ret == connector_status_disconnected) && + rdev->mode_info.bios_hardcoded_edid_size) { + radeon_connector->use_digital = true; + ret = connector_status_connected; + } + out:/* updated in get modes as well since we need to know if it's analog or digital */ radeon_connector_update_scratch_regs (connector, ret);
drivers/gpu/drm/radeon/radeon_mode.h +1 -0
@@ -239,6 +239,7 @@ struct radeon_mode_info {struct drm_property *underscan_vborder_property;/* hardcoded DFP edid from BIOS */ struct edid *bios_hardcoded_edid; +int bios_hardcoded_edid_size;/* pointer to fbdev info structure */ struct radeon_fbdev *rfbdev;
drivers/idle/intel_idle.c +24 -0
@@ -62,6 +62,7 @@#include <linux/notifier.h> #include <linux/cpu.h> #include <asm/mwait.h> +#include <asm/msr.h> #define INTEL_IDLE_VERSION "0.4"#define PREFIX "intel_idle: "
@@ -85,6 +86,12 @@ static int intel_idle(struct cpuidle_device *dev, struct cpuidle_state *state);static struct cpuidle_state *cpuidle_state_table;/* +* Hardware C-state auto-demotion may not always be optimal. +* Indicate which enable bits to clear here. +*/ +static unsigned long long auto_demotion_disable_flags; + +/* * States are indexed by the cstate number, * which is also the index into the MWAIT hint array. * Thus C0 is a dummy.
@@ -276,6 +283,15 @@ static struct notifier_block setup_broadcast_notifier = { .notifier_call = setup_broadcast_cpuhp_notify, }; +static void auto_demotion_disable (void *dummy) +{ +unsigned long long msr_bits; + +rdmsrl (MSR_NHM_SNB_PKG_CST_CFG_CTL , msr_bits); + msr_bits &= ~auto_demotion_disable_flags; +wrmsrl (MSR_NHM_SNB_PKG_CST_CFG_CTL , msr_bits); +} +/* * intel_idle_probe() */
@@ -319,11 +335,17 @@ static int intel_idle_probe(void)case 0x25 :/* Westmere */ case 0x2C :/* Westmere */ cpuidle_state_table = nehalem_cstates; + auto_demotion_disable_flags = + (NHM_C1_AUTO_DEMOTE |NHM_C3_AUTO_DEMOTE );break ;case 0x1C :/* 28 - Atom Processor */ + cpuidle_state_table = atom_cstates; +break ; +case 0x26 :/* 38 - Lincroft Atom Processor */ cpuidle_state_table = atom_cstates; + auto_demotion_disable_flags =ATM_LNC_C6_AUTO_DEMOTE ;break ;case 0x2A :/* SNB */
@@ -431,6 +453,8 @@ static int intel_idle_cpuidle_devices_init(void)return -EIO ; } } +if (auto_demotion_disable_flags) +smp_call_function (auto_demotion_disable,NULL ,1 );return 0 ; }
drivers/input/xen-kbdfront.c +24 -21
84 lines not on this page · raw message
drivers/media/video/uvc/uvc_driver.c +8 -0
@@ -1264,6 +1264,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
@@ -89,15 +89,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
@@ -212,6 +212,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/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 "
@@ -533,6 +534,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); }
@@ -646,8 +649,10 @@ static void acm_port_down(struct acm *acm)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/class/cdc-wdm.c +1 -1
@@ -281,7 +281,7 @@ static void cleanup(struct wdm_device *desc) desc->sbuf, desc->validity->transfer_dma);usb_free_coherent (interface_to_usbdev (desc->intf), - desc->wMaxCommand, + desc->bMaxPacketSize0, desc->inbuf, desc->response->transfer_dma);kfree (desc->orq);
drivers/usb/core/devio.c +1 -1
@@ -802,7 +802,7 @@ static int proc_control(struct dev_state *ps, void __user *arg) tbuf, ctrl.wLength, tmo);usb_lock_device (dev);snoop_urb (dev,NULL , pipe,max (i,0 ),min (i,0 ),COMPLETE , - tbuf, i); + tbuf,max (i,0 ));if ((i >0 ) && ctrl.wLength) {if (copy_to_user (ctrl.data, tbuf, i)) {free_page ((unsigned long )tbuf);
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
@@ -177,12 +177,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
@@ -512,7 +512,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)
@@ -1233,7 +1233,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
@@ -1201,9 +1201,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/ext4/super.c +8 -0
@@ -75,6 +75,7 @@ static void ext4_write_super(struct super_block *sb);static int ext4_freeze (struct super_block *sb);static struct dentry *ext4_mount (struct file_system_type *fs_type,int flags,const char *dev_name,void *data); +static int ext4_feature_set_ok (struct super_block *sb,int readonly);static void ext4_destroy_lazyinit_thread (void );static void ext4_unregister_li_request (struct super_block *sb);static void ext4_clear_request_list (void );
@@ -2107,6 +2108,13 @@ static void ext4_orphan_cleanup(struct super_block *sb,return ; } +/* Check if feature set would not allow a r/w mount */ +if (!ext4_feature_set_ok (sb,0 )) { +ext4_msg (sb,KERN_INFO ,"Skipping orphan cleanup due to " +"unknown ROCOMPAT features" ); +return ; + } +if (EXT4_SB (sb)->s_mount_state &EXT4_ERROR_FS ) {if (es->s_last_orphan) jbd_debug(1, "Errors on filesystem, "
fs/nfs/write.c +19 -12
@@ -1214,13 +1214,17 @@ int nfs_writeback_done(struct rpc_task *task, struct nfs_write_data *data)#if defined(CONFIG_NFS_V3 ) || defined(CONFIG_NFS_V4 )static int nfs_commit_set_lock (struct nfs_inode *nfsi,int may_wait) { +int ret; +if (!test_and_set_bit (NFS_INO_COMMIT , &nfsi->flags))return 1 ; -if (may_wait && !out_of_line_wait_on_bit_lock (&nfsi->flags, -NFS_INO_COMMIT , nfs_wait_bit_killable, -TASK_KILLABLE )) -return 1 ; -return 0 ; +if (!may_wait) +return 0 ; + ret =out_of_line_wait_on_bit_lock (&nfsi->flags, +NFS_INO_COMMIT , + nfs_wait_bit_killable, +TASK_KILLABLE ); +return (ret <0 ) ? ret :1 ; }static void nfs_commit_clear_lock (struct nfs_inode *nfsi)
@@ -1394,9 +1398,10 @@ int nfs_commit_inode(struct inode *inode, int how) {LIST_HEAD (head);int may_wait = how &FLUSH_SYNC ; -int res =0 ; +int res; -if (!nfs_commit_set_lock (NFS_I (inode), may_wait)) + res =nfs_commit_set_lock (NFS_I (inode), may_wait); +if (res <=0 ) goto out_mark_dirty;spin_lock (&inode->i_lock); res =nfs_scan_commit (inode, &head,0 ,0 );
@@ -1405,12 +1410,14 @@ int nfs_commit_inode(struct inode *inode, int how)int error =nfs_commit_list (inode, &head, how);if (error <0 )return error; -if (may_wait) -wait_on_bit (&NFS_I (inode)->flags,NFS_INO_COMMIT , - nfs_wait_bit_killable, -TASK_KILLABLE ); -else +if (!may_wait) goto out_mark_dirty; + error =wait_on_bit (&NFS_I (inode)->flags, +NFS_INO_COMMIT , + nfs_wait_bit_killable, +TASK_KILLABLE ); +if (error <0 ) +return error; }else nfs_commit_clear_lock (NFS_I (inode));return res;
fs/nfsd/nfs4proc.c +2 -2
@@ -954,8 +954,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/nfs4state.c +81 -74
206 lines not on this page · raw message
fs/nfsd/nfs4xdr.c +1 -4
@@ -1107,7 +1107,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 );
@@ -1180,8 +1180,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 "
@@ -1197,7 +1195,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
@@ -489,8 +489,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
@@ -248,8 +248,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) {
fs/super.c +2 -0
@@ -70,6 +70,7 @@ static struct super_block *alloc_super(struct file_system_type *type)#else INIT_LIST_HEAD (&s->s_files);#endif + s->s_bdi = &default_backing_dev_info;INIT_LIST_HEAD (&s->s_instances);INIT_HLIST_HEAD (&s->s_anon);INIT_LIST_HEAD (&s->s_inodes);
@@ -996,6 +997,7 @@ vfs_kern_mount(struct file_system_type *type, int flags, const char *name, void }BUG_ON (!mnt->mnt_sb);WARN_ON (!mnt->mnt_sb->s_bdi); +WARN_ON (mnt->mnt_sb->s_bdi == &default_backing_dev_info); mnt->mnt_sb->s_flags |=MS_BORN ; error =security_sb_kern_mount (mnt->mnt_sb, flags, secdata);
fs/sync.c +2 -2
@@ -33,7 +33,7 @@ static int __sync_filesystem(struct super_block *sb, int wait)* This should be safe, as we require bdi backing to actually * write out data in the first place */ -if (!sb->s_bdi || sb->s_bdi == &noop_backing_dev_info) +if (sb->s_bdi == &noop_backing_dev_info)return 0 ;if (sb->s_qcop && sb->s_qcop->quota_sync)
@@ -79,7 +79,7 @@ EXPORT_SYMBOL_GPL(sync_filesystem);static void sync_one_sb (struct super_block *sb,void *arg) { -if (!(sb->s_flags &MS_RDONLY ) && sb->s_bdi) +if (!(sb->s_flags &MS_RDONLY ))__sync_filesystem (sb, *(int *)arg); }/*
include/linux/ethtool.h +34 -0
@@ -13,6 +13,9 @@#ifndef _LINUX_ETHTOOL_H#define _LINUX_ETHTOOL_H +#ifdef __KERNEL__ +#include <linux/compat.h> +#endif #include <linux/types.h> #include <linux/if_ether.h>
@@ -449,6 +452,37 @@ struct ethtool_rxnfc {__u32 rule_locs[0 ]; }; +#ifdef __KERNEL__ +#ifdef CONFIG_COMPAT + +struct compat_ethtool_rx_flow_spec { +u32 flow_type; +union { +struct ethtool_tcpip4_spec tcp_ip4_spec; +struct ethtool_tcpip4_spec udp_ip4_spec; +struct ethtool_tcpip4_spec sctp_ip4_spec; +struct ethtool_ah_espip4_spec ah_ip4_spec; +struct ethtool_ah_espip4_spec esp_ip4_spec; +struct ethtool_usrip4_spec usr_ip4_spec; +struct ethhdr ether_spec; +u8 hdata[72 ]; + } h_u, m_u; +compat_u64 ring_cookie; +u32 location; +}; + +struct compat_ethtool_rxnfc { +u32 cmd; +u32 flow_type; +compat_u64 data; +struct compat_ethtool_rx_flow_spec fs; +u32 rule_cnt; +u32 rule_locs[0 ]; +}; + +#endif /* CONFIG_COMPAT */ +#endif /* __KERNEL__ */ +/** * struct ethtool_rxfh_indir - command to get or set RX flow hash indirection * @cmd: Specific command number - %ETHTOOL_GRXFHINDIR or %ETHTOOL_SRXFHINDIR
kernel/cgroup.c +6 -8
@@ -1791,10 +1791,8 @@ int cgroup_attach_task(struct cgroup *cgrp, struct task_struct *tsk)/* Update the css_set linked lists if we're using them */ write_lock (&css_set_lock); -if (!list_empty (&tsk->cg_list)) { -list_del (&tsk->cg_list); -list_add (&tsk->cg_list, &newcg->tasks); - } +if (!list_empty (&tsk->cg_list)) +list_move (&tsk->cg_list, &newcg->tasks);write_unlock (&css_set_lock);for_each_subsys (root, ss) {
@@ -3630,12 +3628,12 @@ again:spin_lock (&release_list_lock);set_bit (CGRP_REMOVED , &cgrp->flags);if (!list_empty (&cgrp->release_list)) -list_del (&cgrp->release_list); +list_del_init (&cgrp->release_list);spin_unlock (&release_list_lock);cgroup_lock_hierarchy (cgrp->root);/* delete this cgroup from parent->children */ -list_del (&cgrp->sibling); +list_del_init (&cgrp->sibling);cgroup_unlock_hierarchy (cgrp->root);spin_lock (&cgrp->dentry->d_lock);
@@ -3856,7 +3854,7 @@ void cgroup_unload_subsys(struct cgroup_subsys *ss) subsys[ss->subsys_id] =NULL ;/* remove subsystem from rootnode's list of subsystems */ -list_del (&ss->sibling); +list_del_init (&ss->sibling);/* * disentangle the css from all css_sets attached to the dummytop. as
@@ -4230,7 +4228,7 @@ void cgroup_exit(struct task_struct *tsk, int run_callbacks)if (!list_empty (&tsk->cg_list)) {write_lock (&css_set_lock);if (!list_empty (&tsk->cg_list)) -list_del (&tsk->cg_list); +list_del_init (&tsk->cg_list);write_unlock (&css_set_lock); }
kernel/perf_event.c +8 -5
@@ -5863,17 +5863,20 @@ __perf_event_exit_task(struct perf_event *child_event, struct perf_event_context *child_ctx, struct task_struct *child) { - struct perf_event *parent_event; +if (child_event->parent) { +raw_spin_lock_irq (&child_ctx->lock); +perf_group_detach (child_event); +raw_spin_unlock_irq (&child_ctx->lock); + }perf_event_remove_from_context (child_event); - parent_event = child_event->parent;/* -* It can happen that parent exits first, and has events +* It can happen that the parent exits first, and has events * that are still around due to the child reference. These -* events need to be zapped - but otherwise linger. +* events need to be zapped. */ -if (parent_event) { +if (child_event->parent) {sync_child_event (child_event, child);free_event (child_event); }
kernel/signal.c +12 -4
@@ -2421,9 +2421,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. */
@@ -2437,9 +2441,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/sysctl.c +17 -1
@@ -168,6 +168,11 @@ static int proc_taint(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos);#endif +#ifdef CONFIG_PRINTK +static int proc_dmesg_restrict (struct ctl_table *table,int write, +void __user *buffer,size_t *lenp,loff_t *ppos); +#endif +#ifdef CONFIG_MAGIC_SYSRQ /* Note: sysrq code uses it's own private copy */ static int __sysrq_enabled =SYSRQ_DEFAULT_ENABLE ;
@@ -1469,7 +1474,7 @@ static struct ctl_table fs_table[] = { .data = &suid_dumpable, .maxlen = sizeof(int), .mode = 0644, - .proc_handler = proc_dointvec_minmax, + .proc_handler = proc_dmesg_restrict, .extra1 = &zero, .extra2 = &two, },
@@ -2400,6 +2405,17 @@ static int proc_taint(struct ctl_table *table, int write,return err; } +#ifdef CONFIG_PRINTK +static int proc_dmesg_restrict (struct ctl_table *table,int write, +void __user *buffer,size_t *lenp,loff_t *ppos) +{ +if (write && !capable (CAP_SYS_ADMIN )) +return -EPERM ; + +return proc_dointvec_minmax (table, write, buffer, lenp, ppos); +} +#endif +struct do_proc_dointvec_minmax_conv_param {int *min;int *max;
mm/backing-dev.c +1 -1
@@ -604,7 +604,7 @@ static void bdi_prune_sb(struct backing_dev_info *bdi)spin_lock (&sb_lock);list_for_each_entry (sb, &super_blocks, s_list) {if (sb->s_bdi == bdi) - sb->s_bdi =NULL ; + sb->s_bdi = &default_backing_dev_info; }spin_unlock (&sb_lock); }
mm/oom_kill.c +31 -19
85 lines not on this page · raw message
mm/shmem.c +1 -0
@@ -2784,5 +2784,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 ; }
mm/slab.c +4 -4
@@ -2288,8 +2288,8 @@ kmem_cache_create (const char *name, size_t size, size_t align,if (ralign < align) { ralign = align; } -/* disable debug if not aligning with REDZONE_ALIGN */ -if (ralign & (__alignof__(unsigned long long ) -1 )) +/* disable debug if necessary */ +if (ralign > __alignof__(unsigned long long )) flags &= ~(SLAB_RED_ZONE |SLAB_STORE_USER );/* * 4) Store it.
@@ -2315,8 +2315,8 @@ kmem_cache_create (const char *name, size_t size, size_t align,*/ if (flags &SLAB_RED_ZONE ) {/* add space for red zone words */ - cachep->obj_offset += align; - size += align +sizeof (unsigned long long ); + cachep->obj_offset +=sizeof (unsigned long long ); + size +=2 *sizeof (unsigned long long ); }if (flags &SLAB_STORE_USER ) {/* user store requires one word storage behind the end of
mm/swapfile.c +6 -1
@@ -2146,8 +2146,13 @@ bad_swap_2: p->flags =0 ;spin_unlock (&swap_lock);vfree (swap_map); -if (swap_file) +if (swap_file) { +if (did_down) { +mutex_unlock (&inode->i_mutex); + did_down =0 ; + }filp_close (swap_file,NULL ); + } out:if (page && !IS_ERR (page)) {kunmap (page);
net/socket.c +107 -7
130 lines not on this page · raw message
net/sunrpc/xprtsock.c +2 -0
@@ -710,6 +710,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_sigmatel.c +18 -0
@@ -94,6 +94,7 @@ enum {STAC_92HD83XXX_REF ,STAC_92HD83XXX_PWR_REF ,STAC_DELL_S14 , +STAC_DELL_E5520M ,STAC_92HD83XXX_HP ,STAC_HP_DV7_4000 ,STAC_92HD83XXX_MODELS
@@ -1649,6 +1650,13 @@ static unsigned int dell_s14_pin_configs[10] = { 0x40f000f0, 0x40f000f0, }; +/* Switch int mic from 0x20 to 0x11 */ +static unsigned int dell_e5520m_pin_configs[10 ] = { +0x04a11020 ,0x0421101f ,0x400000f0 ,0x90170110 , +0x23011050 ,0x23a1102e ,0x400000f3 ,0xd5a30130 , +0x400000f0 ,0x40f000f0 , +}; +static unsigned int hp_dv7_4000_pin_configs[10 ] = {0x03a12050 ,0x0321201f ,0x40f000f0 ,0x90170110 ,0x40f000f0 ,0x40f000f0 ,0x90170110 ,0xd5a30140 ,
@@ -1659,6 +1667,7 @@ static unsigned int *stac92hd83xxx_brd_tbl[STAC_92HD83XXX_MODELS] = { [STAC_92HD83XXX_REF] = ref92hd83xxx_pin_configs, [STAC_92HD83XXX_PWR_REF] = ref92hd83xxx_pin_configs, [STAC_DELL_S14] = dell_s14_pin_configs, + [STAC_DELL_E5520M] = dell_e5520m_pin_configs, [STAC_HP_DV7_4000] = hp_dv7_4000_pin_configs, };
@@ -1667,6 +1676,7 @@ static const char *stac92hd83xxx_models[STAC_92HD83XXX_MODELS] = { [STAC_92HD83XXX_REF] = "ref", [STAC_92HD83XXX_PWR_REF] = "mic-ref", [STAC_DELL_S14] = "dell-s14", + [STAC_DELL_E5520M] = "dell-e5520m", [STAC_92HD83XXX_HP] = "hp", [STAC_HP_DV7_4000] = "hp-dv7-4000", };
@@ -1679,6 +1689,14 @@ static struct snd_pci_quirk stac92hd83xxx_cfg_tbl[] = { "DFI LanParty", STAC_92HD83XXX_REF),SND_PCI_QUIRK (PCI_VENDOR_ID_DELL ,0x02ba ,"unknown Dell" ,STAC_DELL_S14 ), +SND_PCI_QUIRK (PCI_VENDOR_ID_DELL ,0x049a , +"Dell E5520" ,STAC_DELL_E5520M ), +SND_PCI_QUIRK (PCI_VENDOR_ID_DELL ,0x049b , +"Dell E5420" ,STAC_DELL_E5520M ), +SND_PCI_QUIRK (PCI_VENDOR_ID_DELL ,0x04eb , +"Dell E5420m" ,STAC_DELL_E5520M ), +SND_PCI_QUIRK (PCI_VENDOR_ID_DELL ,0x04ec , +"Dell E5520m" ,STAC_DELL_E5520M ),SND_PCI_QUIRK_MASK (PCI_VENDOR_ID_HP ,0xff00 ,0x3600 , "HP", STAC_92HD83XXX_HP), {} /* terminator */
sound/pci/hda/patch_via.c +41 -12
117 lines not on this page · raw message