Linux 3.0.73
Greg KH
maintainerI'm announcing the release of the 3.0.73 kernel.
All users of the 3.0 kernel series must upgrade.
The updated 3.0.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.0.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 +- arch/alpha/kernel/sys_nautilus.c | 5 +++++ arch/powerpc/platforms/pseries/lpar.c | 8 +++++++- arch/x86/Kconfig | 4 ---- arch/x86/mm/numa.c | 3 --- arch/x86/mm/numa_internal.h | 6 ------ block/blk-sysfs.c | 2 ++ crypto/gcm.c | 17 ++++++++++++++--- drivers/ata/libata-core.c | 4 ++++ drivers/net/wireless/mwifiex/init.c | 8 -------- drivers/net/wireless/rt2x00/rt2x00pci.c | 4 ++-- drivers/thermal/thermal_sys.c | 1 + fs/ext4/ialloc.c | 5 +++-- fs/reiserfs/xattr.c | 4 ++-- fs/ubifs/super.c | 12 ++++++------ include/linux/ata.h | 2 +- include/linux/libata.h | 1 + include/linux/preempt.h | 22 ++++++++++++++-------- include/linux/spinlock_up.h | 29 ++++++++++++++++++----------- kernel/trace/ftrace.c | 8 ++------ mm/mmap.c | 2 +- mm/nommu.c | 2 +- sound/pci/hda/hda_codec.c | 2 +- sound/pci/hda/hda_eld.c | 2 +- sound/soc/sh/dma-sh7760.c | 4 ++-- 25 files changed, 89 insertions(+), 70 deletions(-)
Arnd Bergmann (1):
block: avoid using uninitialized value in from queue_var_store
Artem Bityutskiy (1):
UBIFS: make space fixup work in the remount case
Dave Hansen (1):
x86-32, mm: Rip out x86_32 NUMA remapping code
David Henningsson (1):
ALSA: hda - fix typo in proc output
Greg Kroah-Hartman (2):
Revert "mwifiex: cancel cmd timer and free curr_cmd in shutdown process Linux 3.0.73
Jan Kara (1):
reiserfs: Fix warning and inode leak when deleting inode with xattrs
Jan Kiszka (1):
ftrace: Consistently restore trace function on sysctl enabling
Jan Stancek (1):
mm: prevent mmap_cache race in find_vma()
Jay Estabrook (1):
alpha: Add irongate_io to PCI bus resources
Jussi Kivilinna (1):
crypto: gcm - fix assumption that assoc has one segment
Lars-Peter Clausen (1):
ASoC: dma-sh7760: Fix compile error
Linus Torvalds (1):
spinlocks and preemption points need to be at least compiler barriers
Mengdong Lin (1):
ALSA: hda - bug fix on return value when getting HDMI ELD info
Michael Wolf (1):
powerpc: pSeries_lpar_hpte_remove fails from Adjunct partition being performed before the ANDCOND test
Richard Guy Briggs (1):
thermal: return an error on failure to register thermal class
Shan Hai (2):
libata: Use integer return value for atapi_command_packet_set
libata: Set max sector to 65535 for Slimtype DVD A DS8A8SH drive
Tim Gardner (1):
rt2x00: rt2x00pci_regbusy_read() - only print register access failure once
Todd Poynor (1):
ext4: fixup 64-bit divides in 3.0-stable backport of upstream fix
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 0 -SUBLEVEL = 72 +SUBLEVEL = 73 EXTRAVERSION = NAME = Sneaky Weasel
arch/alpha/kernel/sys_nautilus.c +5 -0
@@ -189,6 +189,10 @@ nautilus_machine_check(unsigned long vector, unsigned long la_ptr)extern void free_reserved_mem (void *,void *);extern void pcibios_claim_one_bus (struct pci_bus *); +static struct resource irongate_io = { + .name ="Irongate PCI IO" , + .flags =IORESOURCE_IO , +};static struct resource irongate_mem = { .name ="Irongate PCI MEM" , .flags =IORESOURCE_MEM ,
@@ -210,6 +214,7 @@ nautilus_init_pci(void) irongate =pci_get_bus_and_slot (0 ,0 ); bus->self = irongate; + bus->resource[0 ] = &irongate_io; bus->resource[1 ] = &irongate_mem;pci_bus_size_bridges (bus);
arch/powerpc/platforms/pseries/lpar.c +7 -1
@@ -377,7 +377,13 @@ static long pSeries_lpar_hpte_remove(unsigned long hpte_group) (0x1UL << 4), &dummy1, &dummy2);if (lpar_rc ==H_SUCCESS )return i; -BUG_ON (lpar_rc !=H_NOT_FOUND ); + +/* +* The test for adjunct partition is performed before the +* ANDCOND test. H_RESOURCE may be returned, so we need to +* check for that as well. +*/ +BUG_ON (lpar_rc !=H_NOT_FOUND && lpar_rc !=H_RESOURCE ); slot_offset++; slot_offset &=0x7 ;
arch/x86/Kconfig +0 -4
@@ -1219,10 +1219,6 @@ config HAVE_ARCH_BOOTMEM def_bool y depends on X86_32 && NUMA -config HAVE_ARCH_ALLOC_REMAP - def_bool y - depends on X86_32 && NUMA - config ARCH_HAVE_MEMORY_PRESENT def_bool y depends on X86_32 && DISCONTIGMEM
arch/x86/mm/numa.c +0 -3
@@ -207,9 +207,6 @@ static void __init setup_node_data(int nid, u64 start, u64 end)if (end && (end - start) <NODE_MIN_SIZE )return ; -/* initialize remap allocator before aligning to ZONE_ALIGN */ -init_alloc_remap (nid, start, end); - start =roundup (start,ZONE_ALIGN ); printk(KERN_INFO "Initmem setup node %d %016Lx-%016Lx\n",
arch/x86/mm/numa_internal.h +0 -6
@@ -21,12 +21,6 @@ void __init numa_reset_distance(void);void __init x86_numa_init (void ); -#ifdef CONFIG_X86_64 -static inline void init_alloc_remap (int nid,u64 start,u64 end) { } -#else -void __init init_alloc_remap (int nid,u64 start,u64 end); -#endif -#ifdef CONFIG_NUMA_EMU void __init numa_emulation (struct numa_meminfo *numa_meminfo,int numa_dist_cnt);
block/blk-sysfs.c +2 -0
@@ -200,6 +200,8 @@ queue_store_##name(struct request_queue *q, const char *page, size_t count) \unsigned long val; \ssize_t ret; \ ret =queue_var_store (&val, page, count); \ +if (ret <0 ) \ +return ret; \if (neg) \ val = !val; \ \
crypto/gcm.c +14 -3
@@ -44,6 +44,7 @@ struct crypto_rfc4543_ctx {struct crypto_rfc4543_req_ctx {u8 auth_tag[16 ]; +u8 assocbuf[32 ];struct scatterlist cipher[1 ];struct scatterlist payload[2 ];struct scatterlist assoc[2 ];
@@ -1142,9 +1143,19 @@ static struct aead_request *crypto_rfc4543_crypt(struct aead_request *req,scatterwalk_crypto_chain (payload, dst, vdst == req->iv +8 ,2 ); assoclen +=8 + req->cryptlen - (enc ?0 : authsize); -sg_init_table (assoc,2 ); -sg_set_page (assoc,sg_page (req->assoc), req->assoc->length, - req->assoc->offset); +if (req->assoc->length == req->assoclen) { +sg_init_table (assoc,2 ); +sg_set_page (assoc,sg_page (req->assoc), req->assoc->length, + req->assoc->offset); + }else { +BUG_ON (req->assoclen >sizeof (rctx->assocbuf)); + +scatterwalk_map_and_copy (rctx->assocbuf, req->assoc,0 , + req->assoclen,0 ); + +sg_init_table (assoc,2 ); +sg_set_buf (assoc, rctx->assocbuf, req->assoclen); + }scatterwalk_crypto_chain (assoc, payload,0 ,2 );aead_request_set_tfm (subreq, ctx->child);
drivers/ata/libata-core.c +4 -0
@@ -2412,6 +2412,9 @@ int ata_dev_configure(struct ata_device *dev) dev->max_sectors = min_t(unsigned int, ATA_MAX_SECTORS_128, dev->max_sectors); +if (dev->horkage &ATA_HORKAGE_MAX_SEC_LBA48 ) + dev->max_sectors =ATA_MAX_SECTORS_LBA48 ; +if (ap->ops->dev_config) ap->ops->dev_config (dev);
@@ -4077,6 +4080,7 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = {/* Weird ATAPI devices */ { "TORiSAN DVD-ROM DRD-N216", NULL, ATA_HORKAGE_MAX_SEC_128 }, { "QUANTUM DAT DAT72-000", NULL, ATA_HORKAGE_ATAPI_MOD16_DMA }, + { "Slimtype DVD A DS8A8SH", NULL, ATA_HORKAGE_MAX_SEC_LBA48 }, /* Devices we expect to fail diagnostics */
drivers/net/wireless/mwifiex/init.c +0 -8
@@ -561,14 +561,6 @@ mwifiex_shutdown_drv(struct mwifiex_adapter *adapter)return ret; } -/* cancel current command */ -if (adapter->curr_cmd) { -dev_warn (adapter->dev,"curr_cmd is still in processing\n" ); -del_timer (&adapter->cmd_timer); -mwifiex_insert_cmd_to_free_q (adapter, adapter->curr_cmd); - adapter->curr_cmd =NULL ; - } -/* shut down mwifiex */ dev_dbg (adapter->dev,"info: shutdown mwifiex...\n" );
drivers/net/wireless/rt2x00/rt2x00pci.c +2 -2
@@ -52,8 +52,8 @@ int rt2x00pci_regbusy_read(struct rt2x00_dev *rt2x00dev,udelay (REGISTER_BUSY_DELAY ); } -ERROR (rt2x00dev,"Indirect register access failed: " -"offset=0x%.08x, value=0x%.08x\n" , offset, *reg); +printk_once (KERN_ERR "%s() Indirect register access failed: " +"offset=0x%.08x, value=0x%.08x\n" , __func__, offset, *reg); *reg = ~0 ;return 0 ;
drivers/thermal/thermal_sys.c +1 -0
@@ -1319,6 +1319,7 @@ static int __init thermal_init(void)idr_destroy (&thermal_cdev_idr);mutex_destroy (&thermal_idr_lock);mutex_destroy (&thermal_list_lock); +return result; } result =genetlink_init ();return result;
fs/ext4/ialloc.c +3 -2
@@ -22,6 +22,7 @@#include <linux/random.h> #include <linux/bitops.h> #include <linux/blkdev.h> +#include <linux/math64.h> #include <asm/byteorder.h> #include "ext4.h"
@@ -356,7 +357,7 @@ static int find_group_flex(struct super_block *sb, struct inode *parent, find_close_to_parent: flexbg_free_blocks =atomic64_read (&flex_group[best_flex].free_blocks); - flex_freeb_ratio = flexbg_free_blocks *100 / blocks_per_flex; + flex_freeb_ratio =div64_u64 (flexbg_free_blocks *100 , blocks_per_flex);if (atomic_read (&flex_group[best_flex].free_inodes) && flex_freeb_ratio > free_block_ratio) goto found_flexbg;
@@ -371,7 +372,7 @@ find_close_to_parent:continue ; flexbg_free_blocks =atomic64_read (&flex_group[i].free_blocks); - flex_freeb_ratio = flexbg_free_blocks *100 / blocks_per_flex; + flex_freeb_ratio =div64_u64 (flexbg_free_blocks *100 , blocks_per_flex);if (flex_freeb_ratio > free_block_ratio && (atomic_read (&flex_group[i].free_inodes))) {
fs/reiserfs/xattr.c +2 -2
@@ -187,8 +187,8 @@ fill_with_dentries(void *buf, const char *name, int namelen, loff_t offset,if (dbuf->count ==ARRAY_SIZE (dbuf->dentries))return -ENOSPC ; -if (name[0 ] =='.' && (name[1 ] =='\0' || - (name[1 ] =='.' && name[2 ] =='\0' ))) +if (name[0 ] =='.' && (namelen <2 || + (namelen ==2 && name[1 ] =='.' )))return 0 ; dentry =lookup_one_len (name, dbuf->xadir, namelen);
fs/ubifs/super.c +6 -6
@@ -1583,6 +1583,12 @@ static int ubifs_remount_rw(struct ubifs_info *c) c->remounting_rw =1 ; c->ro_mount =0 ; +if (c->space_fixup) { + err =ubifs_fixup_free_space (c); +if (err) +return err; + } + err =check_free_space (c);if (err) goto out;
@@ -1699,12 +1705,6 @@ static int ubifs_remount_rw(struct ubifs_info *c) err =dbg_check_space_info (c); } -if (c->space_fixup) { - err =ubifs_fixup_free_space (c); -if (err) - goto out; - } -mutex_unlock (&c->umount_mutex);return err;
include/linux/ata.h +1 -1
@@ -937,7 +937,7 @@ static inline int atapi_cdb_len(const u16 *dev_id) } } -static inline bool atapi_command_packet_set (const u16 *dev_id) +static inline int atapi_command_packet_set (const u16 *dev_id) {return (dev_id[ATA_ID_CONFIG ] >>8 ) &0x1f ; }
include/linux/libata.h +1 -0
@@ -382,6 +382,7 @@ enum {ATA_HORKAGE_NOSETXFER = (1 <<14 ),/* skip SETXFER, SATA only */ ATA_HORKAGE_BROKEN_FPDMA_AA = (1 <<15 ),/* skip AA */ ATA_HORKAGE_DUMP_ID = (1 <<16 ),/* dump IDENTIFY data */ + ATA_HORKAGE_MAX_SEC_LBA48 = (1 << 17), /* Set max sects to 65535 *//* DMA mask for user DMA control: User visible values; DO NOT renumber */
include/linux/preempt.h +14 -8
@@ -82,14 +82,20 @@ do { \#else -#define preempt_disable () do { } while (0) -#define preempt_enable_no_resched () do { } while (0) -#define preempt_enable () do { } while (0) -#define preempt_check_resched () do { } while (0) - -#define preempt_disable_notrace () do { } while (0) -#define preempt_enable_no_resched_notrace () do { } while (0) -#define preempt_enable_notrace () do { } while (0) +/* +* Even if we don't have any preemption, we need preempt disable/enable +* to be barriers, so that we don't have things like get_user/put_user +* that can cause faults and scheduling migrate into our preempt-protected +* region. +*/ +#define preempt_disable () barrier() +#define preempt_enable_no_resched () barrier() +#define preempt_enable () barrier() +#define preempt_check_resched () barrier() + +#define preempt_disable_notrace () barrier() +#define preempt_enable_no_resched_notrace () barrier() +#define preempt_enable_notrace () barrier()#endif
include/linux/spinlock_up.h +18 -11
@@ -16,7 +16,10 @@* In the debug case, 1 means unlocked, 0 means locked. (the values * are inverted, to catch initialization bugs) * -* No atomicity anywhere, we are on UP. +* No atomicity anywhere, we are on UP. However, we still need +* the compiler barriers, because we do not want the compiler to +* move potentially faulting instructions (notably user accesses) +* into the locked sequence, resulting in non-atomic execution. */ #ifdef CONFIG_DEBUG_SPINLOCK
@@ -25,6 +28,7 @@static inline void arch_spin_lock (arch_spinlock_t *lock) { lock->slock =0 ; +barrier (); } static inline void
@@ -32,6 +36,7 @@ arch_spin_lock_flags(arch_spinlock_t *lock, unsigned long flags) {local_irq_save (flags); lock->slock =0 ; +barrier (); }static inline int arch_spin_trylock (arch_spinlock_t *lock)
@@ -39,32 +44,34 @@ static inline int arch_spin_trylock(arch_spinlock_t *lock)char oldval = lock->slock; lock->slock =0 ; +barrier (); return oldval > 0; }static inline void arch_spin_unlock (arch_spinlock_t *lock) { +barrier (); lock->slock =1 ; }/* * Read-write spinlocks. No debug version. */ -#define arch_read_lock (lock) do { (void)(lock); } while (0) -#define arch_write_lock (lock) do { (void)(lock); } while (0) -#define arch_read_trylock (lock) ({ (void)(lock); 1; }) -#define arch_write_trylock (lock) ({ (void)(lock); 1; }) -#define arch_read_unlock (lock) do { (void)(lock); } while (0) -#define arch_write_unlock (lock) do { (void)(lock); } while (0) +#define arch_read_lock (lock) do { barrier(); (void)(lock); } while (0) +#define arch_write_lock (lock) do { barrier(); (void)(lock); } while (0) +#define arch_read_trylock (lock) ({ barrier(); (void)(lock); 1; }) +#define arch_write_trylock (lock) ({ barrier(); (void)(lock); 1; }) +#define arch_read_unlock (lock) do { barrier(); (void)(lock); } while (0) +#define arch_write_unlock (lock) do { barrier(); (void)(lock); } while (0)#else /* DEBUG_SPINLOCK */ #define arch_spin_is_locked (lock) ((void)(lock), 0)/* for sched.c and kernel_lock.c: */ -# define arch_spin_lock (lock) do { (void)(lock); } while (0) -# define arch_spin_lock_flags (lock, flags) do { (void)(lock); } while (0) -# define arch_spin_unlock (lock) do { (void)(lock); } while (0) -# define arch_spin_trylock (lock) ({ (void)(lock); 1; }) +# define arch_spin_lock (lock) do { barrier(); (void)(lock); } while (0) +# define arch_spin_lock_flags (lock, flags) do { barrier(); (void)(lock); } while (0) +# define arch_spin_unlock (lock) do { barrier(); (void)(lock); } while (0) +# define arch_spin_trylock (lock) ({ barrier(); (void)(lock); 1; })#endif /* DEBUG_SPINLOCK */ #define arch_spin_is_contended (lock) (((void)(lock), 0))
kernel/trace/ftrace.c +2 -6
@@ -3934,12 +3934,8 @@ ftrace_enable_sysctl(struct ctl_table *table, int write,ftrace_startup_sysctl ();/* we are starting ftrace again */ -if (ftrace_ops_list != &ftrace_list_end) { -if (ftrace_ops_list->next == &ftrace_list_end) - ftrace_trace_function = ftrace_ops_list->func; -else - ftrace_trace_function = ftrace_ops_list_func; - } +if (ftrace_ops_list != &ftrace_list_end) +update_ftrace_function (); }else {/* stopping ftrace calls (just send to ftrace_stub) */
mm/mmap.c +1 -1
@@ -1581,7 +1581,7 @@ struct vm_area_struct *find_vma(struct mm_struct *mm, unsigned long addr)if (mm) {/* Check the cache first. */ /* (Cache hit rate is typically around 35%.) */ - vma = mm->mmap_cache; + vma =ACCESS_ONCE (mm->mmap_cache);if (!(vma && vma->vm_end > addr && vma->vm_start <= addr)) {struct rb_node * rb_node;
mm/nommu.c +1 -1
@@ -808,7 +808,7 @@ struct vm_area_struct *find_vma(struct mm_struct *mm, unsigned long addr)struct vm_area_struct *vma;/* check the cache first */ - vma = mm->mmap_cache; + vma =ACCESS_ONCE (mm->mmap_cache);if (vma && vma->vm_start <= addr && vma->vm_end > addr)return vma;
sound/pci/hda/hda_codec.c +1 -1
@@ -157,7 +157,7 @@ const char *snd_hda_get_jack_type(u32 cfg)"Line Out" ,"Speaker" ,"HP Out" ,"CD" ,"SPDIF Out" ,"Digital Out" ,"Modem Line" ,"Modem Hand" ,"Line In" ,"Aux" ,"Mic" ,"Telephony" , -"SPDIF In" ,"Digitial In" ,"Reserved" ,"Other" +"SPDIF In" ,"Digital In" ,"Reserved" ,"Other" }; return jack_types[(cfg & AC_DEFCFG_DEVICE)
sound/pci/hda/hda_eld.c +1 -1
@@ -322,7 +322,7 @@ int snd_hdmi_get_eld(struct hdmi_eld *eld, struct hda_codec *codec, hda_nid_t nid) { int i; -int ret; +int ret =0 ;int size;unsigned char *buf;
sound/soc/sh/dma-sh7760.c +2 -2
@@ -342,8 +342,8 @@ static int camelot_pcm_new(struct snd_card *card,return 0 ; } -static struct snd_soc_platform sh7760_soc_platform = { - .pcm_ops = &camelot_pcm_ops, +static struct snd_soc_platform_driver sh7760_soc_platform = { + .ops = &camelot_pcm_ops, .pcm_new = camelot_pcm_new, .pcm_free = camelot_pcm_free, };