Linux 2.6.27.23
Subsystems (20)
I'm announcing the release of the 2.6.27.23 kernel. All users of the 2.6.27 kernel series are very strongly encouraged to upgrade.
I'll also be replying to this message with a copy of the patch between 2.6.27.22 and 2.6.27.23
The updated 2.6.27.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.27.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.27.y.git;a=summarythanks,
greg k-h
------------
Makefile | 2 arch/mips/Kconfig | 1 arch/mips/kernel/linux32.c | 69 ++++++++++++++----------- arch/mips/kernel/scall32-o32.S | 4 - arch/mips/kernel/scall64-64.S | 2 arch/mips/kernel/scall64-n32.S | 28 +++++----- arch/mips/kernel/scall64-o32.S | 40 +++++++------- arch/mips/kernel/signal.c | 5 + arch/mips/kernel/signal32.c | 28 +++++----- arch/mips/kernel/syscall.c | 26 ++++----- arch/mips/mm/cache.c | 5 + arch/x86/pci/mmconfig-shared.c | 6 +- drivers/acpi/resources/rscreate.c | 27 ---------- drivers/char/hw_random/virtio-rng.c | 4 - drivers/gpu/drm/i915/i915_drv.h | 6 +- drivers/net/forcedeth.c | 3 + drivers/net/mv643xx_eth.c | 2 drivers/net/wireless/b43/dma.c | 50 ++++++++++++++---- drivers/net/wireless/rndis_wlan.c | 14 +++-- drivers/pci/quirks.c | 1 drivers/usb/serial/usb-serial.c | 97 ++++++++++++++++++++++++------------ drivers/usb/storage/unusual_devs.h | 6 ++ fs/proc/array.c | 13 +++- fs/proc/base.c | 5 + fs/proc/task_mmu.c | 4 + include/drm/drm_pciids.h | 1 kernel/time/tick-common.c | 12 ++++ mm/madvise.c | 8 ++ scripts/mod/modpost.c | 1 29 files changed, 287 insertions(+), 183 deletions(-)
Alan Stern (1):
USB: serial: fix lifetime and locking problems
Cedric Hombourger (1):
kbuild: fix Module.markers permission error under cygwin
Christian Borntraeger (1):
virtio-rng: Remove false BUG for spurious callbacks
Chuck Short (1):
USB: Unusual Device support for Gold MP3 Player Energy
Ed Swierk (1):
forcedeth: Fix resume from hibernation regression.
Greg Kroah-Hartman (1):
Linux 2.6.27.23
Jake Edge (1):
proc: avoid information leaks to non-privileged processes
John Stultz (1):
clockevents: prevent endless loop in tick_handle_periodic()
Jussi Kivilinna (1):
rndis_wlan: fix initialization order for workqueue&workers
Lennert Buytenhek (1):
mv643xx_eth: 64bit mib counter read fix
Mel Gorman (1):
Ignore madvise(MADV_WILLNEED) for hugetlbfs-backed regions
Michael Buesch (2):
b43: Poison RX buffers
b43: Refresh RX poison on buffer recycling
Thomas Renninger (1):
PCI quirk: disable MSI on VIA VT3364 chipsets
Vitaly Mayatskikh (1):
pagemap: require aligned-length, non-null reads of /proc/pid/pagemap
Yinghai Lu (1):
x86/PCI: don't call e820_all_mapped with -1 in the mmconfig case
Zhang Rui (1):
ACPI: Revert conflicting workaround for BIOS w/ mangled PRT entries
Zhenyu Wang (1):
drm/i915: add support for G41 chipset
dann frazier (1):
MIPS: CVE-2009-0029: Enable syscall wrappers
Makefile +1 -1
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 27 -EXTRAVERSION = .22 +EXTRAVERSION = .23 NAME = Trembling Tortoise # *DOCUMENTATION*
arch/mips/Kconfig +1 -0
@@ -1293,6 +1293,7 @@ config 32BIT config 64BIT bool "64-bit kernel" depends on CPU_SUPPORTS_64BIT_KERNEL && SYS_SUPPORTS_64BIT_KERNEL + select HAVE_SYSCALL_WRAPPERS help Select this option if you want to build a 64-bit kernel.
arch/mips/kernel/linux32.c +39 -30
171 lines not on this page · raw message
arch/mips/kernel/scall32-o32.S +2 -2
@@ -402,7 +402,7 @@ einval: li v0, -EINVAL sys sys_swapon 2 sys sys_reboot 3 sys sys_old_readdir 3 - sys old_mmap 6 /* 4090 */ + sys sys_mips_mmap 6 /* 4090 */ sys sys_munmap 2 sys sys_truncate 2 sys sys_ftruncate 2
@@ -522,7 +522,7 @@ einval: li v0, -EINVAL sys sys_sendfile 4 sys sys_ni_syscall 0 sys sys_ni_syscall 0 - sys sys_mmap2 6 /* 4210 */ + sys sys_mips_mmap2 6 /* 4210 */ sys sys_truncate64 4 sys sys_ftruncate64 4 sys sys_stat64 2
arch/mips/kernel/scall64-64.S +1 -1
@@ -207,7 +207,7 @@ sys_call_table: PTR sys_newlstat PTR sys_poll PTR sys_lseek - PTR old_mmap + PTR sys_mips_mmap PTR sys_mprotect /* 5010 */ PTR sys_munmap PTR sys_brk
arch/mips/kernel/scall64-n32.S +14 -14
@@ -129,12 +129,12 @@ EXPORT(sysn32_call_table) PTR sys_newlstat PTR sys_poll PTR sys_lseek - PTR old_mmap + PTR sys_mips_mmap PTR sys_mprotect /* 6010 */ PTR sys_munmap PTR sys_brk - PTR sys32_rt_sigaction - PTR sys32_rt_sigprocmask + PTR sys_32_rt_sigaction + PTR sys_32_rt_sigprocmask PTR compat_sys_ioctl /* 6015 */ PTR sys_pread64 PTR sys_pwrite64
@@ -159,7 +159,7 @@ EXPORT(sysn32_call_table) PTR compat_sys_setitimer PTR sys_alarm PTR sys_getpid - PTR sys32_sendfile + PTR sys_32_sendfile PTR sys_socket /* 6040 */ PTR sys_connect PTR sys_accept
@@ -181,14 +181,14 @@ EXPORT(sysn32_call_table) PTR sys_exit PTR compat_sys_wait4 PTR sys_kill /* 6060 */ - PTR sys32_newuname + PTR sys_32_newuname PTR sys_semget PTR sys_semop - PTR sysn32_semctl + PTR sys_n32_semctl PTR sys_shmdt /* 6065 */ PTR sys_msgget - PTR sysn32_msgsnd - PTR sysn32_msgrcv + PTR sys_n32_msgsnd + PTR sys_n32_msgrcv PTR compat_sys_msgctl PTR compat_sys_fcntl /* 6070 */ PTR sys_flock
@@ -245,15 +245,15 @@ EXPORT(sysn32_call_table) PTR sys_getsid PTR sys_capget PTR sys_capset - PTR sys32_rt_sigpending /* 6125 */ + PTR sys_32_rt_sigpending /* 6125 */ PTR compat_sys_rt_sigtimedwait - PTR sys32_rt_sigqueueinfo + PTR sys_32_rt_sigqueueinfo PTR sysn32_rt_sigsuspend PTR sys32_sigaltstack PTR compat_sys_utime /* 6130 */ PTR sys_mknod - PTR sys32_personality - PTR sys32_ustat + PTR sys_32_personality + PTR sys_32_ustat PTR compat_sys_statfs PTR compat_sys_fstatfs /* 6135 */ PTR sys_sysfs
@@ -265,14 +265,14 @@ EXPORT(sysn32_call_table) PTR sys_sched_getscheduler PTR sys_sched_get_priority_max PTR sys_sched_get_priority_min - PTR sys32_sched_rr_get_interval /* 6145 */ + PTR sys_32_sched_rr_get_interval /* 6145 */ PTR sys_mlock PTR sys_munlock PTR sys_mlockall PTR sys_munlockall PTR sys_vhangup /* 6150 */ PTR sys_pivot_root - PTR sys32_sysctl + PTR sys_32_sysctl PTR sys_prctl PTR compat_sys_adjtimex PTR compat_sys_setrlimit /* 6155 */
arch/mips/kernel/scall64-o32.S +20 -20
@@ -267,12 +267,12 @@ sys_call_table: PTR sys_olduname PTR sys_umask /* 4060 */ PTR sys_chroot - PTR sys32_ustat + PTR sys_32_ustat PTR sys_dup2 PTR sys_getppid PTR sys_getpgrp /* 4065 */ PTR sys_setsid - PTR sys32_sigaction + PTR sys_32_sigaction PTR sys_sgetmask PTR sys_ssetmask PTR sys_setreuid /* 4070 */
@@ -295,7 +295,7 @@ sys_call_table: PTR sys_swapon PTR sys_reboot PTR compat_sys_old_readdir - PTR old_mmap /* 4090 */ + PTR sys_mips_mmap /* 4090 */ PTR sys_munmap PTR sys_truncate PTR sys_ftruncate
@@ -322,12 +322,12 @@ sys_call_table: PTR compat_sys_wait4 PTR sys_swapoff /* 4115 */ PTR compat_sys_sysinfo - PTR sys32_ipc + PTR sys_32_ipc PTR sys_fsync PTR sys32_sigreturn PTR sys32_clone /* 4120 */ PTR sys_setdomainname - PTR sys32_newuname + PTR sys_32_newuname PTR sys_ni_syscall /* sys_modify_ldt */ PTR compat_sys_adjtimex PTR sys_mprotect /* 4125 */
@@ -341,11 +341,11 @@ sys_call_table: PTR sys_fchdir PTR sys_bdflush PTR sys_sysfs /* 4135 */ - PTR sys32_personality + PTR sys_32_personality PTR sys_ni_syscall /* for afs_syscall */ PTR sys_setfsuid PTR sys_setfsgid - PTR sys32_llseek /* 4140 */ + PTR sys_32_llseek /* 4140 */ PTR compat_sys_getdents PTR compat_sys_select PTR sys_flock
@@ -358,7 +358,7 @@ sys_call_table: PTR sys_ni_syscall /* 4150 */ PTR sys_getsid PTR sys_fdatasync - PTR sys32_sysctl + PTR sys_32_sysctl PTR sys_mlock PTR sys_munlock /* 4155 */ PTR sys_mlockall
@@ -370,7 +370,7 @@ sys_call_table: PTR sys_sched_yield PTR sys_sched_get_priority_max PTR sys_sched_get_priority_min - PTR sys32_sched_rr_get_interval /* 4165 */ + PTR sys_32_sched_rr_get_interval /* 4165 */ PTR compat_sys_nanosleep PTR sys_mremap PTR sys_accept
@@ -399,25 +399,25 @@ sys_call_table: PTR sys_getresgid PTR sys_prctl PTR sys32_rt_sigreturn - PTR sys32_rt_sigaction - PTR sys32_rt_sigprocmask /* 4195 */ - PTR sys32_rt_sigpending + PTR sys_32_rt_sigaction + PTR sys_32_rt_sigprocmask /* 4195 */ + PTR sys_32_rt_sigpending PTR compat_sys_rt_sigtimedwait - PTR sys32_rt_sigqueueinfo + PTR sys_32_rt_sigqueueinfo PTR sys32_rt_sigsuspend - PTR sys32_pread /* 4200 */ - PTR sys32_pwrite + PTR sys_32_pread /* 4200 */ + PTR sys_32_pwrite PTR sys_chown PTR sys_getcwd PTR sys_capget PTR sys_capset /* 4205 */ PTR sys32_sigaltstack - PTR sys32_sendfile + PTR sys_32_sendfile PTR sys_ni_syscall PTR sys_ni_syscall - PTR sys32_mmap2 /* 4210 */ - PTR sys32_truncate64 - PTR sys32_ftruncate64 + PTR sys_mips_mmap2 /* 4210 */ + PTR sys_32_truncate64 + PTR sys_32_ftruncate64 PTR sys_newstat PTR sys_newlstat PTR sys_newfstat /* 4215 */
@@ -483,7 +483,7 @@ sys_call_table: PTR compat_sys_mq_notify /* 4275 */ PTR compat_sys_mq_getsetattr PTR sys_ni_syscall /* sys_vserver */ - PTR sys32_waitid + PTR sys_32_waitid PTR sys_ni_syscall /* available, was setaltroot */ PTR sys_add_key /* 4280 */ PTR sys_request_key
arch/mips/kernel/signal.c +3 -2
@@ -19,6 +19,7 @@#include <linux/ptrace.h> #include <linux/unistd.h> #include <linux/compiler.h> +#include <linux/syscalls.h> #include <linux/uaccess.h> #include <asm/abi.h>
@@ -338,8 +339,8 @@ asmlinkage int sys_rt_sigsuspend(nabi_no_regargs struct pt_regs regs) }#ifdef CONFIG_TRAD_SIGNALS -asmlinkage int sys_sigaction(int sig, const struct sigaction __user *act, -struct sigaction __user *oact) +SYSCALL_DEFINE3(sigaction, int, sig, const struct sigaction __user *, act, + struct sigaction __user *, oact) {struct k_sigaction new_ka, old_ka;int ret;
arch/mips/kernel/signal32.c +14 -14
@@ -349,8 +349,8 @@ asmlinkage int sys32_rt_sigsuspend(nabi_no_regargs struct pt_regs regs)return -ERESTARTNOHAND ; } -asmlinkage int sys32_sigaction(int sig, const struct sigaction32 __user *act, -struct sigaction32 __user *oact) +SYSCALL_DEFINE3(32_sigaction, long, sig, const struct sigaction32 __user *, act, + struct sigaction32 __user *, oact) {struct k_sigaction new_ka, old_ka;int ret;
@@ -692,9 +692,9 @@ struct mips_abi mips_abi_32 = { .restart = __NR_O32_restart_syscall }; -asmlinkage int sys32_rt_sigaction(int sig, const struct sigaction32 __user *act, -struct sigaction32 __user *oact, -unsigned int sigsetsize) +SYSCALL_DEFINE4(32_rt_sigaction, int, sig, + const struct sigaction32 __user *, act, + struct sigaction32 __user *, oact, unsigned int, sigsetsize) {struct k_sigaction new_sa, old_sa;int ret = -EINVAL ;
@@ -736,8 +736,8 @@ out:return ret; } -asmlinkage int sys32_rt_sigprocmask(int how, compat_sigset_t __user *set, -compat_sigset_t __user *oset,unsigned int sigsetsize) +SYSCALL_DEFINE4(32_rt_sigprocmask, int, how, compat_sigset_t __user *, set, + compat_sigset_t __user *, oset, unsigned int, sigsetsize) {sigset_t old_set, new_set;int ret;
@@ -758,8 +758,8 @@ asmlinkage int sys32_rt_sigprocmask(int how, compat_sigset_t __user *set,return ret; } -asmlinkage int sys32_rt_sigpending(compat_sigset_t __user *uset, -unsigned int sigsetsize) +SYSCALL_DEFINE2(32_rt_sigpending, compat_sigset_t __user *, uset, + unsigned int, sigsetsize) {int ret;sigset_t set;
@@ -775,7 +775,8 @@ asmlinkage int sys32_rt_sigpending(compat_sigset_t __user *uset,return ret; } -asmlinkage int sys32_rt_sigqueueinfo(int pid, int sig, compat_siginfo_t __user *uinfo) +SYSCALL_DEFINE3(32_rt_sigqueueinfo, int, pid, int, sig, + compat_siginfo_t __user *, uinfo) {siginfo_t info;int ret;
@@ -790,10 +791,9 @@ asmlinkage int sys32_rt_sigqueueinfo(int pid, int sig, compat_siginfo_t __user *return ret; } -asmlinkage long -sys32_waitid (int which,compat_pid_t pid, -compat_siginfo_t __user *uinfo,int options, -struct compat_rusage __user *uru) +SYSCALL_DEFINE5(32_waitid, int, which, compat_pid_t, pid, + compat_siginfo_t __user *, uinfo, int, options, + struct compat_rusage __user *, uru) {siginfo_t info;struct rusage ru;
arch/mips/kernel/syscall.c +13 -13
@@ -153,9 +153,9 @@ out:return error; } -asmlinkage unsigned long -old_mmap (unsigned long addr,unsigned long len,int prot, -int flags,int fd,off_t offset) +SYSCALL_DEFINE6(mips_mmap, unsigned long, addr, unsigned long, len, + unsigned long, prot, unsigned long, flags, unsigned long, + fd, off_t, offset) {unsigned long result;
@@ -169,9 +169,9 @@ out:return result; } -asmlinkage unsigned long -sys_mmap2 (unsigned long addr,unsigned long len,unsigned long prot, -unsigned long flags,unsigned long fd,unsigned long pgoff) +SYSCALL_DEFINE6(mips_mmap2, unsigned long, addr, unsigned long, len, + unsigned long, prot, unsigned long, flags, unsigned long, fd, + unsigned long, pgoff) {if (pgoff & (~PAGE_MASK >>12 ))return -EINVAL ;
@@ -241,7 +241,7 @@ out:/* * Compacrapability ... */ -asmlinkage int sys_uname(struct old_utsname __user * name) +SYSCALL_DEFINE1(uname, struct old_utsname __user *, name) {if (name && !copy_to_user (name,utsname (),sizeof (*name)))return 0 ;
@@ -251,7 +251,7 @@ asmlinkage int sys_uname(struct old_utsname __user * name)/* * Compacrapability ... */ -asmlinkage int sys_olduname(struct oldold_utsname __user * name) +SYSCALL_DEFINE1(olduname, struct oldold_utsname __user *, name) {int error;
@@ -280,7 +280,7 @@ asmlinkage int sys_olduname(struct oldold_utsname __user * name)return error; } -asmlinkage int sys_set_thread_area(unsigned long addr) +SYSCALL_DEFINE1(set_thread_area, unsigned long, addr) {struct thread_info *ti =task_thread_info (current);
@@ -291,7 +291,7 @@ asmlinkage int sys_set_thread_area(unsigned long addr)return 0 ; } -asmlinkage int _sys_sysmips(int cmd, long arg1, int arg2, int arg3) +asmlinkage int _sys_sysmips(long cmd, long arg1, long arg2, long arg3) {switch (cmd) {case MIPS_ATOMIC_SET :
@@ -326,8 +326,8 @@ asmlinkage int _sys_sysmips(int cmd, long arg1, int arg2, int arg3)* * This is really horribly ugly. */ -asmlinkage int sys_ipc(unsigned int call, int first, int second, -unsigned long third,void __user *ptr,long fifth) +SYSCALL_DEFINE6(ipc, unsigned int, call, int, first, int, second, + unsigned long, third, void __user *, ptr, long, fifth) {int version, ret;
@@ -412,7 +412,7 @@ asmlinkage int sys_ipc(unsigned int call, int first, int second,/* * No implemented yet ... */ -asmlinkage int sys_cachectl(char *addr, int nbytes, int op) +SYSCALL_DEFINE3(cachectl, char *, addr, int, nbytes, int, op) {return -ENOSYS ; }
arch/mips/mm/cache.c +3 -2
@@ -13,6 +13,7 @@#include <linux/linkage.h> #include <linux/module.h> #include <linux/sched.h> +#include <linux/syscalls.h> #include <linux/mm.h> #include <asm/cacheflush.h>
@@ -58,8 +59,8 @@ EXPORT_SYMBOL(_dma_cache_wback_inv);* We could optimize the case where the cache argument is not BCACHE but * that seems very atypical use ... */ -asmlinkage int sys_cacheflush(unsigned long addr, -unsigned long bytes,unsigned int cache) +SYSCALL_DEFINE3(cacheflush, unsigned long, addr, unsigned long, bytes, + unsigned int, cache) {if (bytes ==0 )return 0 ;
arch/x86/pci/mmconfig-shared.c +3 -3
@@ -255,7 +255,7 @@ static acpi_status __init check_mcfg_resource(struct acpi_resource *res,if (!fixmem32)return AE_OK ;if ((mcfg_res->start >= fixmem32->address) && - (mcfg_res->end < (fixmem32->address + + (mcfg_res->end <= (fixmem32->address + fixmem32->address_length))) { mcfg_res->flags =1 ;return AE_CTRL_TERMINATE ;
@@ -272,7 +272,7 @@ static acpi_status __init check_mcfg_resource(struct acpi_resource *res,return AE_OK ;if ((mcfg_res->start >= address.minimum) && - (mcfg_res->end < (address.minimum + address.address_length))) { + (mcfg_res->end <= (address.minimum + address.address_length))) { mcfg_res->flags =1 ;return AE_CTRL_TERMINATE ; }
@@ -319,7 +319,7 @@ static int __init is_mmconf_reserved(check_reserved_t is_reserved,u64 old_size = size;int valid =0 ; -while (!is_reserved (addr, addr + size -1 ,E820_RESERVED )) { +while (!is_reserved (addr, addr + size,E820_RESERVED )) { size >>=1 ;if (size < (16UL <<20 ))break ;
drivers/acpi/resources/rscreate.c +2 -25
@@ -191,8 +191,6 @@ acpi_rs_create_pci_routing_table(union acpi_operand_object *package_object, user_prt = ACPI_CAST_PTR(struct acpi_pci_routing_table, buffer);for (index =0 ; index < number_of_elements; index++) { -int source_name_index =2 ; -int source_index_index =3 ;/* * Point user_prt past this current structure
@@ -261,27 +259,6 @@ acpi_rs_create_pci_routing_table(union acpi_operand_object *package_object,return_ACPI_STATUS (AE_BAD_DATA ); } -/* -* If BIOS erroneously reversed the _PRT source_name and source_index, -* then reverse them back. -*/ -if (ACPI_GET_OBJECT_TYPE (sub_object_list[3 ]) != -ACPI_TYPE_INTEGER ) { -if (acpi_gbl_enable_interpreter_slack) { - source_name_index =3 ; - source_index_index =2 ; -printk (KERN_WARNING -"ACPI: Handling Garbled _PRT entry\n" ); - }else { -ACPI_ERROR ((AE_INFO , -"(PRT[%X].source_index) Need Integer, found %s" , - index, -acpi_ut_get_object_type_name - (sub_object_list[3 ]))); -return_ACPI_STATUS (AE_BAD_DATA ); - } - } - user_prt->pin = (u32 ) obj_desc->integer.value;/*
@@ -305,7 +282,7 @@ acpi_rs_create_pci_routing_table(union acpi_operand_object *package_object,* 3) Third subobject: Dereference the PRT.source_name * The name may be unresolved (slack mode), so allow a null object */ - obj_desc = sub_object_list[source_name_index]; + obj_desc = sub_object_list[2 ];if (obj_desc) {switch (ACPI_GET_OBJECT_TYPE (obj_desc)) {case ACPI_TYPE_LOCAL_REFERENCE :
@@ -380,7 +357,7 @@ acpi_rs_create_pci_routing_table(union acpi_operand_object *package_object,/* 4) Fourth subobject: Dereference the PRT.source_index */ - obj_desc = sub_object_list[source_index_index]; + obj_desc = sub_object_list[3 ];if (ACPI_GET_OBJECT_TYPE (obj_desc) !=ACPI_TYPE_INTEGER ) { ACPI_ERROR((AE_INFO, "(PRT[%X].SourceIndex) Need Integer, found %s",
drivers/char/hw_random/virtio-rng.c +2 -2
@@ -37,9 +37,9 @@ static void random_recv_done(struct virtqueue *vq) {int len; -/* We never get spurious callbacks. */ +/* We can get spurious callbacks, e.g. shared IRQs + virtio_pci. */ if (!vq->vq_ops->get_buf (vq, &len)) -BUG (); +return ; data_left = len /sizeof (random_data[0 ]);complete (&have_data);
drivers/gpu/drm/i915/i915_drv.h +4 -2
@@ -1115,7 +1115,8 @@ extern int i915_wait_ring(struct drm_device * dev, int n, const char *caller); (dev)->pci_device == 0x2A42 || \ (dev)->pci_device == 0x2E02 || \ (dev)->pci_device == 0x2E12 || \ - (dev)->pci_device == 0x2E22) + (dev)->pci_device == 0x2E22 || \ + (dev)->pci_device == 0x2E32)#define IS_I965GM (dev) ((dev)->pci_device == 0x2A02)
@@ -1123,7 +1124,8 @@ extern int i915_wait_ring(struct drm_device * dev, int n, const char *caller);#define IS_G4X (dev) ((dev)->pci_device == 0x2E02 || \ (dev)->pci_device == 0x2E12 || \ - (dev)->pci_device == 0x2E22) + (dev)->pci_device == 0x2E22 || \ + (dev)->pci_device == 0x2E32)#define IS_G33 (dev) ((dev)->pci_device == 0x29C2 || \ (dev)->pci_device == 0x29B2 || \
drivers/net/forcedeth.c +3 -0
@@ -5967,6 +5967,9 @@ static int nv_resume(struct pci_dev *pdev)for (i =0 ;i <= np->register_size/sizeof (u32); i++)writel (np->saved_config_space[i], base+i*sizeof (u32)); +/* restore phy state, including autoneg */ +phy_init (dev); +netif_device_attach (dev);if (netif_running (dev)) { rc =nv_open (dev);
drivers/net/mv643xx_eth.c +0 -2
@@ -1060,7 +1060,6 @@ static void mib_counters_update(struct mv643xx_eth_private *mp)struct mib_counters *p = &mp->mib_counters; p->good_octets_received +=mib_read (mp,0x00 ); - p->good_octets_received += (u64 )mib_read (mp,0x04 ) <<32 ; p->bad_octets_received +=mib_read (mp,0x08 ); p->internal_mac_transmit_err +=mib_read (mp,0x0c ); p->good_frames_received +=mib_read (mp,0x10 );
@@ -1074,7 +1073,6 @@ static void mib_counters_update(struct mv643xx_eth_private *mp) p->frames_512_to_1023_octets +=mib_read (mp,0x30 ); p->frames_1024_to_max_octets +=mib_read (mp,0x34 ); p->good_octets_sent +=mib_read (mp,0x38 ); - p->good_octets_sent += (u64 )mib_read (mp,0x3c ) <<32 ; p->good_frames_sent +=mib_read (mp,0x40 ); p->excessive_collision +=mib_read (mp,0x44 ); p->multicast_frames_sent +=mib_read (mp,0x48 );
drivers/net/wireless/b43/dma.c +40 -10
104 lines not on this page · raw message
drivers/net/wireless/rndis_wlan.c +10 -4
@@ -2556,6 +2556,11 @@ static int rndis_wext_bind(struct usbnet *usbdev, struct usb_interface *intf)mutex_init (&priv->command_lock);spin_lock_init (&priv->stats_lock); +/* because rndis_command() sleeps we need to use workqueue */ + priv->workqueue =create_singlethread_workqueue ("rndis_wlan" ); +INIT_WORK (&priv->work, rndis_wext_worker); +INIT_DELAYED_WORK (&priv->stats_work, rndis_update_wireless_stats); +/* try bind rndis_host */ retval =generic_rndis_bind (usbdev, intf,FLAG_RNDIS_PHYM_WIRELESS );if (retval <0 )
@@ -2600,16 +2605,17 @@ static int rndis_wext_bind(struct usbnet *usbdev, struct usb_interface *intf)disassociate (usbdev,1 );netif_carrier_off (usbdev->net); -/* because rndis_command() sleeps we need to use workqueue */ - priv->workqueue =create_singlethread_workqueue ("rndis_wlan" ); -INIT_DELAYED_WORK (&priv->stats_work, rndis_update_wireless_stats);queue_delayed_work (priv->workqueue, &priv->stats_work,round_jiffies_relative (STATS_UPDATE_JIFFIES )); -INIT_WORK (&priv->work, rndis_wext_worker);return 0 ; fail: +cancel_delayed_work_sync (&priv->stats_work); +cancel_work_sync (&priv->work); +flush_workqueue (priv->workqueue); +destroy_workqueue (priv->workqueue); +kfree (priv);return retval; }
drivers/pci/quirks.c +1 -0
@@ -1832,6 +1832,7 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_RS400_200, quirk_diDECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_ATI ,PCI_DEVICE_ID_ATI_RS480 , quirk_disable_all_msi);DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_VIA ,PCI_DEVICE_ID_VIA_VT3336 , quirk_disable_all_msi);DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_VIA ,PCI_DEVICE_ID_VIA_VT3351 , quirk_disable_all_msi); +DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_VIA ,PCI_DEVICE_ID_VIA_VT3364 , quirk_disable_all_msi);/* Disable MSI on chipsets that are known to not support it */ static void __devinit quirk_disable_msi (struct pci_dev *dev)
drivers/usb/serial/usb-serial.c +67 -30
205 lines not on this page · raw message
drivers/usb/storage/unusual_devs.h +6 -0
@@ -2147,6 +2147,12 @@ UNUSUAL_DEV( 0xed06, 0x4500, 0x0001, 0x0001, US_SC_DEVICE, US_PR_DEVICE, NULL, US_FL_CAPACITY_HEURISTICS), +/* Reported by Alessio Treglia <[email protected]> */ +UNUSUAL_DEV (0xed10 ,0x7636 ,0x0001 ,0x0001 , +"TGE" , +"Digital MP3 Audio Player" , +US_SC_DEVICE ,US_PR_DEVICE ,NULL ,US_FL_NOT_LOCKABLE ), +/* Control/Bulk transport for all SubClass values */ USUAL_DEV (US_SC_RBC ,US_PR_CB ,USB_US_TYPE_STOR ), USUAL_DEV(US_SC_8020, US_PR_CB, USB_US_TYPE_STOR),
fs/proc/array.c +9 -4
@@ -80,6 +80,7 @@#include <linux/delayacct.h> #include <linux/seq_file.h> #include <linux/pid_namespace.h> +#include <linux/ptrace.h> #include <linux/tracehook.h> #include <asm/pgtable.h>
@@ -347,6 +348,7 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,char state;pid_t ppid =0 , pgid =-1 , sid =-1 ;int num_threads =0 ; +int permitted;struct mm_struct *mm;unsigned long long start_time;unsigned long cmin_flt =0 , cmaj_flt =0 ;
@@ -359,11 +361,14 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns, state = *get_task_state (task); vsize = eip = esp =0 ; + permitted =ptrace_may_access (task,PTRACE_MODE_READ ); mm =get_task_mm (task);if (mm) { vsize =task_vsize (mm); - eip =KSTK_EIP (task); - esp =KSTK_ESP (task); +if (permitted) { + eip =KSTK_EIP (task); + esp =KSTK_ESP (task); + } }get_task_comm (tcomm, task);
@@ -419,7 +424,7 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,unlock_task_sighand (task, &flags); } -if (!whole || num_threads <2 ) +if (permitted && (!whole || num_threads <2 )) wchan =get_wchan (task);if (!whole) { min_flt = task->min_flt;
@@ -471,7 +476,7 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns, rsslim, mm ? mm->start_code :0 , mm ? mm->end_code :0 , - mm ? mm->start_stack :0 , + (permitted && mm) ? mm->start_stack :0 , esp, eip,/* The signal information here is obsolete.
fs/proc/base.c +4 -1
@@ -327,7 +327,10 @@ static int proc_pid_wchan(struct task_struct *task, char *buffer) wchan =get_wchan (task);if (lookup_symbol_name (wchan, symname) <0 ) -return sprintf (buffer,"%lu" , wchan); +if (!ptrace_may_access (task,PTRACE_MODE_READ )) +return 0 ; +else +return sprintf (buffer,"%lu" , wchan);else return sprintf (buffer,"%s" , symname); }
fs/proc/task_mmu.c +4 -0
@@ -665,6 +665,10 @@ static ssize_t pagemap_read(struct file *file, char __user *buf, goto out_task; ret =0 ; + +if (!count) + goto out_task; + mm =get_task_mm (task);if (!mm) goto out_task;
include/drm/drm_pciids.h +1 -0
@@ -412,4 +412,5 @@ {0x8086, 0x2e02, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, \ {0x8086, 0x2e12, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, \ {0x8086, 0x2e22, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, \ + {0x8086, 0x2e32, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, \ {0, 0, 0}
kernel/time/tick-common.c +11 -1
@@ -93,7 +93,17 @@ void tick_handle_periodic(struct clock_event_device *dev)for (;;) {if (!clockevents_program_event (dev, next,ktime_get ()))return ; -tick_periodic (cpu); +/* +* Have to be careful here. If we're in oneshot mode, +* before we call tick_periodic() in a loop, we need +* to be sure we're using a real hardware clocksource. +* Otherwise we could get trapped in an infinite +* loop, as the tick_periodic() increments jiffies, +* when then will increment time, posibly causing +* the loop to trigger again and again. +*/ +if (timekeeping_valid_for_hres ()) +tick_periodic (cpu); next =ktime_add (next, tick_period); } }
mm/madvise.c +8 -0
@@ -112,6 +112,14 @@ static long madvise_willneed(struct vm_area_struct * vma,if (!file)return -EBADF ; +/* +* Page cache readahead assumes page cache pages are order-0 which +* is not the case for hugetlbfs. Do not give a bad return value +* but ignore the advice. +*/ +if (vma->vm_flags &VM_HUGETLB ) +return 0 ; +if (file->f_mapping->a_ops->get_xip_mem) {/* no bad return value, but ignore advice */ return 0 ;
scripts/mod/modpost.c +1 -0
@@ -1997,6 +1997,7 @@ static void read_markers(const char *fname)if (!mod->skip)add_marker (mod, marker, fmt); } +release_file (file, size);return ; fail:fatal ("parse error in markers list file\n" );