Linux 2.6.38.2
Subsystems (46)
I'm announcing the release of the 2.6.38.2 kernel.
All users of the 2.6.38 kernel series must upgrade.
The updated 2.6.38.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.38.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.38.y.git;a=summarythanks,
greg k-h
------------
Makefile | 2 arch/arm/mach-s3c2440/mach-mini2440.c | 7 + arch/sh/kernel/ptrace_32.c | 8 + arch/sh/kernel/ptrace_64.c | 6 + arch/x86/kernel/entry_32.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/gpu/drm/drm_crtc.c | 51 +++++++++ drivers/gpu/drm/drm_gem.c | 5 drivers/gpu/drm/i915/i915_gem.c | 6 - drivers/gpu/drm/i915/i915_gem_execbuffer.c | 21 +++ 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/input/xen-kbdfront.c | 44 ++++---- 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/usb/musb/blackfin.c | 6 - 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/namespace.c | 16 -- 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/compaction.h | 9 - include/linux/ethtool.h | 34 ++++++ include/linux/mm.h | 11 +- kernel/cgroup.c | 14 +- kernel/perf_event.c | 13 +- kernel/signal.c | 16 ++ kernel/sysctl.c | 18 +++ mm/backing-dev.c | 2 mm/compaction.c | 24 ---- mm/oom_kill.c | 50 +++++---- mm/page_alloc.c | 4 mm/shmem.c | 1 mm/slab.c | 8 - mm/swapfile.c | 7 + mm/vmscan.c | 18 --- net/socket.c | 114 ++++++++++++++++++++- net/sunrpc/xprtsock.c | 2 sound/pci/hda/patch_realtek.c | 25 +++- sound/pci/hda/patch_sigmatel.c | 18 +++ sound/pci/hda/patch_via.c | 53 +++++++-- sound/soc/codecs/uda134x.c | 3 sound/soc/samsung/s3c24xx_uda134x.c | 3 65 files changed, 688 insertions(+), 332 deletions(-)
Aaro Koskinen (1):
procfs: fix /proc/<pid>/maps heap check
Al Viro (1):
fix deadlock in pivot_root()
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
Andrea Arcangeli (2):
mm: compaction: prevent kswapd compacting memory to reduce CPU usage
mm: PageBuddy and mapcount robustness
Andrey Vagin (1):
oom: skip zombies when iterating tasklist
Ben Hutchings (1):
ethtool: Compat handling for struct ethtool_rxnfc
Bob Liu (1):
usb: musb: blackfin: fix typo in new dev_pm_ops struct
Chris Wilson (2):
drm/i915: Disable pagefaults along execbuffer relocation fast path
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 (2):
ALSA: HDA: Realtek: Avoid unnecessary volume control index on Surround/Side
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.38.2
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
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
Marek Belisko (1):
ASoC: mini2440: Fix uda134x codec problem.
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()
Mike Frysinger (2):
usb: musb: blackfin: fix typo in platform driver name
usb: musb: blackfin: fix typo in new bfin_musb_vbus_status func
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
Sedat Dilek (1):
x86: Fix binutils-2.21 symbol related build failures
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 = 38 -EXTRAVERSION = .1 +EXTRAVERSION = .2 NAME = Flesh-Eating Bats with Fangs # *DOCUMENTATION*
arch/arm/mach-s3c2440/mach-mini2440.c +7 -0
@@ -506,6 +506,11 @@ static struct i2c_board_info mini2440_i2c_devs[] __initdata = { }, }; +static struct platform_device uda1340_codec = { + .name ="uda134x-codec" , + .id =-1 , +}; +static struct platform_device *mini2440_devices[]__initdata = { &s3c_device_ohci, &s3c_device_wdt,
@@ -521,7 +526,9 @@ static struct platform_device *mini2440_devices[] __initdata = { &s3c_device_nand, &s3c_device_sdi, &s3c_device_iis, + &uda1340_codec, &mini2440_audio, + &samsung_asoc_dma, };static void __init mini2440_map_io (void )
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/kernel/entry_32.S +1 -1
@@ -1413,7 +1413,7 @@ ENTRY(async_page_fault) CFI_ADJUST_CFA_OFFSET 4 jmp error_code CFI_ENDPROC -END(apf_page_fault) +END(async_page_fault) #endif /*
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
@@ -1651,9 +1651,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 ;
@@ -1711,6 +1708,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 );
@@ -1815,9 +1818,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
@@ -1749,8 +1749,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/i915/i915_gem_execbuffer.c +17 -4
@@ -388,6 +388,10 @@ i915_gem_execbuffer_relocate_entry(struct drm_i915_gem_object *obj,uint32_t __iomem *reloc_entry;void __iomem *reloc_page; +/* We can't wait for rendering with pagefaults disabled */ +if (obj->active &&in_atomic ()) +return -EFAULT ; + ret =i915_gem_object_set_to_gtt_domain (obj,1 );if (ret)return ret;
@@ -461,15 +465,24 @@ i915_gem_execbuffer_relocate(struct drm_device *dev, struct list_head *objects) {struct drm_i915_gem_object *obj; -int ret; - +int ret =0 ; + +/* This is the fast path and we cannot handle a pagefault whilst +* holding the struct mutex lest the user pass in the relocations +* contained within a mmaped bo. For in such a case we, the page +* fault handler would call i915_gem_fault() and we would try to +* acquire the struct mutex again. Obviously this is bad and so +* lockdep complains vehemently. +*/ +pagefault_disable ();list_for_each_entry (obj, objects, exec_list) { ret =i915_gem_execbuffer_relocate_object (obj, eb);if (ret) -return ret; +break ; } +pagefault_enable (); -return 0 ; +return ret; } static int
drivers/gpu/drm/radeon/atombios_crtc.c +5 -1
@@ -957,7 +957,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,6 +469,7 @@ 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; }
@@ -475,8 +477,17 @@ bool radeon_combios_check_hardcoded_edid(struct radeon_device *rdev)struct edid *radeon_bios_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
@@ -629,6 +629,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;
@@ -679,6 +681,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; }
@@ -790,6 +803,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;
@@ -829,8 +844,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) {
@@ -895,6 +908,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/input/xen-kbdfront.c +24 -20
83 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/usb/musb/blackfin.c +3 -3
@@ -322,7 +322,7 @@ static void bfin_musb_try_idle(struct musb *musb, unsigned long timeout)mod_timer (&musb_conn_timer, jiffies +TIMER_DELAY ); } -static int bfin_musb_get_vbus_status (struct musb *musb) +static int bfin_musb_vbus_status (struct musb *musb) {return 0 ; }
@@ -540,7 +540,7 @@ static struct dev_pm_ops bfin_pm_ops = { .resume = bfin_resume, }; -#define DEV_PM_OPS &bfin_pm_op, +#define DEV_PM_OPS &bfin_pm_ops#else #define DEV_PM_OPS NULL#endif
@@ -548,7 +548,7 @@ static struct dev_pm_ops bfin_pm_ops = {static struct platform_driver bfin_driver = { .remove =__exit_p (bfin_remove), .driver = { - .name ="musb-bfin" , + .name ="musb-blackfin" , .pm =DEV_PM_OPS , }, };
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
@@ -520,7 +520,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)
@@ -1229,7 +1229,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
@@ -1612,10 +1612,13 @@ struct dentry *d_obtain_alias(struct inode *inode)__bit_spin_unlock (0 , (unsigned long *)&tmp->d_sb->s_anon.first);spin_unlock (&tmp->d_lock);spin_unlock (&inode->i_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
@@ -1464,6 +1464,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 );
@@ -2120,6 +2121,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/namespace.c +5 -11
@@ -2469,9 +2469,6 @@ SYSCALL_DEFINE2(pivot_root, const char __user *, new_root, error =user_path_dir (new_root, &new);if (error) goto out0; - error = -EINVAL ; -if (!check_mnt (new.mnt)) - goto out1; error =user_path_dir (put_old, &old);if (error)
@@ -2491,7 +2488,7 @@ SYSCALL_DEFINE2(pivot_root, const char __user *, new_root, IS_MNT_SHARED(new.mnt->mnt_parent) || IS_MNT_SHARED(root.mnt->mnt_parent)) goto out2; -if (!check_mnt (root.mnt)) +if (!check_mnt (root.mnt) || !check_mnt (new.mnt)) goto out2; error = -ENOENT ;if (cant_mount (old.dentry))
@@ -2515,19 +2512,19 @@ SYSCALL_DEFINE2(pivot_root, const char __user *, new_root, goto out2;/* not attached */ /* make sure we can reach put_old from new_root */ tmp = old.mnt; -br_write_lock (vfsmount_lock);if (tmp != new.mnt) {for (;;) {if (tmp->mnt_parent == tmp) - goto out3;/* already mounted on put_old */ + goto out2;/* already mounted on put_old */ if (tmp->mnt_parent == new.mnt)break ; tmp = tmp->mnt_parent; }if (!is_subdir (tmp->mnt_mountpoint, new.dentry)) - goto out3; + goto out2; }else if (!is_subdir (old.dentry, new.dentry)) - goto out3; + goto out2; +br_write_lock (vfsmount_lock);detach_mnt (new.mnt, &parent_path);detach_mnt (root.mnt, &root_parent);/* mount old root on put_old */
@@ -2550,9 +2547,6 @@ out1:path_put (&new); out0:return error; -out3: -br_write_unlock (vfsmount_lock); - goto out2; }static void __init init_mount_tree (void )
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)
@@ -1396,9 +1400,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 );
@@ -1407,12 +1412,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
@@ -984,8 +984,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
@@ -1142,7 +1142,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 );
@@ -1215,8 +1215,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 "
@@ -1232,7 +1230,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
@@ -249,8 +249,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
@@ -71,6 +71,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_BL_HEAD (&s->s_anon);INIT_LIST_HEAD (&s->s_inodes);
@@ -1003,6 +1004,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/compaction.h +2 -7
@@ -11,9 +11,6 @@/* The full zone was compacted */ #define COMPACT_COMPLETE 3 -#define COMPACT_MODE_DIRECT_RECLAIM 0 -#define COMPACT_MODE_KSWAPD 1 -#ifdef CONFIG_COMPACTION extern int sysctl_compact_memory; extern int sysctl_compaction_handler(struct ctl_table *table, int write,
@@ -28,8 +25,7 @@ extern unsigned long try_to_compact_pages(struct zonelist *zonelist, bool sync);extern unsigned long compaction_suitable (struct zone *zone,int order);extern unsigned long compact_zone_order (struct zone *zone,int order, -gfp_t gfp_mask,bool sync, -int compact_mode); +gfp_t gfp_mask,bool sync);/* Do not skip compaction more than 64 times */ #define COMPACT_MAX_DEFER_SHIFT 6
@@ -74,8 +70,7 @@ static inline unsigned long compaction_suitable(struct zone *zone, int order) }static inline unsigned long compact_zone_order (struct zone *zone,int order, -gfp_t gfp_mask,bool sync, -int compact_mode) +gfp_t gfp_mask,bool sync) {return COMPACT_CONTINUE ; }
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
include/linux/mm.h +9 -2
@@ -402,16 +402,23 @@ static inline void init_page_count(struct page *page)/* * PageBuddy() indicate that the page is free and in the buddy system * (see mm/page_alloc.c). +* +* PAGE_BUDDY_MAPCOUNT_VALUE must be <= -2 but better not too close to +* -2 so that an underflow of the page_mapcount() won't be mistaken +* for a genuine PAGE_BUDDY_MAPCOUNT_VALUE. -128 can be created very +* efficiently by most CPU architectures. */ +#define PAGE_BUDDY_MAPCOUNT_VALUE (-128) +static inline int PageBuddy (struct page *page) { -return atomic_read (&page->_mapcount) ==-2 ; +return atomic_read (&page->_mapcount) ==PAGE_BUDDY_MAPCOUNT_VALUE ; }static inline void __SetPageBuddy (struct page *page) {VM_BUG_ON (atomic_read (&page->_mapcount) !=-1 ); -atomic_set (&page->_mapcount,-2 ); +atomic_set (&page->_mapcount,PAGE_BUDDY_MAPCOUNT_VALUE ); }static inline void __ClearPageBuddy (struct page *page)
kernel/cgroup.c +6 -8
@@ -1813,10 +1813,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) {
@@ -3655,12 +3653,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); d =dget (cgrp->dentry);
@@ -3879,7 +3877,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
@@ -4253,7 +4251,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
@@ -6115,17 +6115,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
@@ -169,6 +169,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 ;
@@ -713,7 +718,7 @@ static struct ctl_table kern_table[] = { .data = &kptr_restrict, .maxlen = sizeof(int), .mode = 0644, - .proc_handler = proc_dointvec_minmax, + .proc_handler = proc_dmesg_restrict, .extra1 = &zero, .extra2 = &two, },
@@ -2397,6 +2402,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/compaction.c +3 -21
@@ -42,8 +42,6 @@ struct compact_control {unsigned int order;/* order a direct compactor needs */ int migratetype;/* MOVABLE, RECLAIMABLE etc */ struct zone *zone; - -int compact_mode; };static unsigned long release_freepages (struct list_head *freelist)
@@ -397,10 +395,7 @@ static int compact_finished(struct zone *zone,return COMPACT_COMPLETE ;/* Compaction run is not finished if the watermark is not met */ -if (cc->compact_mode !=COMPACT_MODE_KSWAPD ) - watermark =low_wmark_pages (zone); -else - watermark =high_wmark_pages (zone); + watermark =low_wmark_pages (zone); watermark += (1 << cc->order);if (!zone_watermark_ok (zone, cc->order, watermark,0 ,0 ))
@@ -413,15 +408,6 @@ static int compact_finished(struct zone *zone,if (cc->order ==-1 )return COMPACT_CONTINUE ; -/* -* Generating only one page of the right order is not enough -* for kswapd, we must continue until we're above the high -* watermark as a pool for high order GFP_ATOMIC allocations -* too. -*/ -if (cc->compact_mode ==COMPACT_MODE_KSWAPD ) -return COMPACT_CONTINUE ; -/* Direct compactor: Is a suitable page free? */ for (order = cc->order; order <MAX_ORDER ; order++) {/* Job done if page is free of the right migratetype */
@@ -543,8 +529,7 @@ static int compact_zone(struct zone *zone, struct compact_control *cc)unsigned long compact_zone_order (struct zone *zone,int order,gfp_t gfp_mask, -bool sync, -int compact_mode) +bool sync) {struct compact_control cc = { .nr_freepages =0 ,
@@ -553,7 +538,6 @@ unsigned long compact_zone_order(struct zone *zone, .migratetype = allocflags_to_migratetype(gfp_mask), .zone = zone, .sync = sync, - .compact_mode = compact_mode, };INIT_LIST_HEAD (&cc.freepages);INIT_LIST_HEAD (&cc.migratepages);
@@ -599,8 +583,7 @@ unsigned long try_to_compact_pages(struct zonelist *zonelist, nodemask) {int status; - status =compact_zone_order (zone, order, gfp_mask, sync, -COMPACT_MODE_DIRECT_RECLAIM ); + status =compact_zone_order (zone, order, gfp_mask, sync); rc =max (status, rc);/* If a normal allocation would succeed, stop compacting */
@@ -631,7 +614,6 @@ static int compact_node(int nid) .nr_freepages = 0, .nr_migratepages = 0, .order = -1, - .compact_mode = COMPACT_MODE_DIRECT_RECLAIM, }; zone = &pgdat->node_zones[zoneid];
mm/oom_kill.c +31 -19
85 lines not on this page · raw message
mm/page_alloc.c +2 -2
@@ -286,7 +286,7 @@ static void bad_page(struct page *page)/* Don't complain about poisoned pages */ if (PageHWPoison (page)) { -__ClearPageBuddy (page); +reset_page_mapcount (page);/* remove PageBuddy */ return ; }
@@ -317,7 +317,7 @@ static void bad_page(struct page *page)dump_stack (); out:/* Leave bad fields for debug, except PageBuddy could make trouble */ -__ClearPageBuddy (page); +reset_page_mapcount (page);/* remove PageBuddy */ add_taint (TAINT_BAD_PAGE ); }
mm/shmem.c +1 -0
@@ -2791,5 +2791,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
@@ -2149,8 +2149,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);
mm/vmscan.c +1 -17
@@ -2397,7 +2397,6 @@ loop_again:* cause too much scanning of the lower zones. */ for (i =0 ; i <= end_zone; i++) { -int compaction;struct zone *zone = pgdat->node_zones + i;int nr_slab;
@@ -2428,24 +2427,9 @@ loop_again: sc.nr_reclaimed += reclaim_state->reclaimed_slab; total_scanned += sc.nr_scanned; - compaction =0 ; -if (order && -zone_watermark_ok (zone,0 , -high_wmark_pages (zone), - end_zone,0 ) && - !zone_watermark_ok (zone, order, -high_wmark_pages (zone), - end_zone,0 )) { -compact_zone_order (zone, - order, - sc.gfp_mask, false, -COMPACT_MODE_KSWAPD ); - compaction =1 ; - } -if (zone->all_unreclaimable)continue ; -if (!compaction && nr_slab ==0 && +if (nr_slab ==0 && !zone_reclaimable (zone)) zone->all_unreclaimable =1 ;/*
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_realtek.c +17 -8
@@ -16085,9 +16085,12 @@ static int alc861_auto_create_multi_out_ctls(struct hda_codec *codec,return err; }else {const char *name = pfx; -if (!name) +int index = i; +if (!name) { name = chname[i]; - err =__alc861_create_out_sw (codec, name, nid, i,3 ); + index =0 ; + } + err =__alc861_create_out_sw (codec, name, nid, index,3 );if (err <0 )return err; }
@@ -17238,16 +17241,19 @@ static int alc861vd_auto_create_multi_out_ctls(struct alc_spec *spec,return err; }else {const char *name = pfx; -if (!name) +int index = i; +if (!name) { name = chname[i]; + index =0 ; + } err =__add_pb_vol_ctrl (spec,ALC_CTL_WIDGET_VOL , - name, i, + name, index,HDA_COMPOSE_AMP_VAL (nid_v,3 ,0 ,HDA_OUTPUT ));if (err <0 )return err; err =__add_pb_sw_ctrl (spec,ALC_CTL_BIND_MUTE , - name, i, + name, index,HDA_COMPOSE_AMP_VAL (nid_s,3 ,2 ,HDA_INPUT ));if (err <0 )
@@ -19296,12 +19302,15 @@ static int alc662_auto_create_multi_out_ctls(struct hda_codec *codec,return err; }else {const char *name = pfx; -if (!name) +int index = i; +if (!name) { name = chname[i]; - err =__alc662_add_vol_ctl (spec, name, nid, i,3 ); + index =0 ; + } + err =__alc662_add_vol_ctl (spec, name, nid, index,3 );if (err <0 )return err; - err =__alc662_add_sw_ctl (spec, name, mix, i,3 ); + err =__alc662_add_sw_ctl (spec, name, mix, index,3 );if (err <0 )return err; }
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
@@ -1657,6 +1658,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 ,
@@ -1667,6 +1675,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, };
@@ -1675,6 +1684,7 @@ static const char * const 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", };
@@ -1687,6 +1697,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
sound/soc/codecs/uda134x.c +2 -1
@@ -486,7 +486,8 @@ static struct snd_soc_dai_driver uda134x_dai = {static int uda134x_soc_probe (struct snd_soc_codec *codec) {struct uda134x_priv *uda134x; -struct uda134x_platform_data *pd =dev_get_drvdata (codec->card->dev); +struct uda134x_platform_data *pd = codec->card->dev->platform_data; +int ret;printk (KERN_INFO "UDA134X SoC Audio Codec\n" );
sound/soc/samsung/s3c24xx_uda134x.c +2 -1
@@ -226,7 +226,7 @@ static struct snd_soc_ops s3c24xx_uda134x_ops = {static struct snd_soc_dai_link s3c24xx_uda134x_dai_link = { .name ="UDA134X" , .stream_name ="UDA134X" , - .codec_name ="uda134x-hifi" , + .codec_name ="uda134x-codec" , .codec_dai_name ="uda134x-hifi" , .cpu_dai_name ="s3c24xx-iis" , .ops = &s3c24xx_uda134x_ops,
@@ -321,6 +321,7 @@ static int s3c24xx_uda134x_probe(struct platform_device *pdev)platform_set_drvdata (s3c24xx_uda134x_snd_device, &snd_soc_s3c24xx_uda134x); +platform_device_add_data (s3c24xx_uda134x_snd_device, &s3c24xx_uda134x,sizeof (s3c24xx_uda134x)); ret =platform_device_add (s3c24xx_uda134x_snd_device);if (ret) {printk (KERN_ERR "S3C24XX_UDA134X SoC Audio: Unable to add\n" );