Linux 2.6.32.51
Subsystems (18)
I'm announcing the release of the 2.6.32.51 kernel.
All users of the 2.6.32 kernel series must upgrade.
The updated 2.6.32.y git tree can be found at (NOTE THE ADDRESS CHANGE):
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-2.6.32.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=shortlog;h=refs/heads/linux-2.6.32.y
thanks,
greg k-h
------------
Makefile | 2 arch/arm/mach-davinci/board-dm646x-evm.c | 6 +- arch/x86/oprofile/backtrace.c | 46 ++++++++++++++++++++-- arch/x86/oprofile/nmi_int.c | 8 +-- drivers/oprofile/buffer_sync.c | 21 +++++----- drivers/usb/class/cdc-acm.c | 10 ++++ fs/ext4/inode.c | 2 fs/hfs/btree.c | 20 +++++++-- fs/jbd/journal.c | 8 +++ fs/jbd2/journal.c | 8 +++ include/linux/log2.h | 1 kernel/taskstats.c | 1 mm/percpu.c | 32 +++++++++------ mm/util.c | 13 ++++++ net/xfrm/xfrm_algo.c | 4 - sound/pci/hda/patch_realtek.c | 2 sound/pci/sis7019.c | 64 +++++++++++++++++++++++++------ 17 files changed, 193 insertions(+), 55 deletions(-)
Andrea Arcangeli (1):
ext4: avoid hangs in ext4_da_should_update_i_disksize()
David Dillow (1):
ALSA: sis7019 - give slow codecs more time to reset
Eryu Guan (1):
jbd/jbd2: validate sb->s_first in journal_get_superblock()
Greg Kroah-Hartman (1):
Linux 2.6.32.51
Hans Verkuil (1):
ARM: davinci: dm646x evm: wrong register used in setup_vpif_input_channel_mode
Krzysztof Hałasa (1):
USB: cdc-acm: add IDs for Motorola H24 HSPA USB module.
Linus Torvalds (2):
linux/log2.h: Fix rounddown_pow_of_two(1)
Make TASKSTATS require root access
Phillip Lougher (1):
hfs: fix hfs_find_init() sb->ext_tree NULL ptr oops
Robert Richter (4):
oprofile: Free potentially owned tasks in case of errors
oprofile: Fix locking dependency in sync_start() oprofile, x86: Fix nmi-unsafe callgraph support oprofile, x86: Fix crash when unloading module (timer mode)
Takashi Iwai (1):
ALSA: hda/realtek - Fix Oops in alc_mux_select()
Tejun Heo (1):
percpu: fix chunk range calculation
Tushar Gohad (1):
xfrm: Fix key lengths for rfc3686(ctr(aes))
Xiao Guangrong (1):
export __get_user_pages_fast() function
Makefile +1 -1
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 32 -EXTRAVERSION = .50 +EXTRAVERSION = .51 NAME = Man-Eating Seals of Antiquity # *DOCUMENTATION*
arch/arm/mach-davinci/board-dm646x-evm.c +3 -3
@@ -502,7 +502,7 @@ static int setup_vpif_input_channel_mode(int mux_mode)int val;u32 value; -if (!vpif_vsclkdis_reg || !cpld_client) +if (!vpif_vidclkctl_reg || !cpld_client)return -ENXIO ; val =i2c_smbus_read_byte (cpld_client);
@@ -510,7 +510,7 @@ static int setup_vpif_input_channel_mode(int mux_mode)return val;spin_lock_irqsave (&vpif_reg_lock, flags); - value =__raw_readl (vpif_vsclkdis_reg); + value =__raw_readl (vpif_vidclkctl_reg);if (mux_mode) { val &=VPIF_INPUT_TWO_CHANNEL ; value |=VIDCH1CLK ;
@@ -518,7 +518,7 @@ static int setup_vpif_input_channel_mode(int mux_mode) val |=VPIF_INPUT_ONE_CHANNEL ; value &= ~VIDCH1CLK ; } -__raw_writel (value, vpif_vsclkdis_reg); +__raw_writel (value, vpif_vidclkctl_reg);spin_unlock_irqrestore (&vpif_reg_lock, flags); err =i2c_smbus_write_byte (cpld_client, val);
arch/x86/oprofile/backtrace.c +42 -4
66 lines not on this page · raw message
arch/x86/oprofile/nmi_int.c +4 -4
@@ -750,12 +750,12 @@ int __init op_nmi_init(struct oprofile_operations *ops)void op_nmi_exit (void ) { -if (using_nmi) { -exit_sysfs (); +if (!using_nmi) +return ; +exit_sysfs ();#ifdef CONFIG_SMP -unregister_cpu_notifier (&oprofile_cpu_nb); +unregister_cpu_notifier (&oprofile_cpu_nb);#endif - }if (model->exit) model->exit (); }
drivers/oprofile/buffer_sync.c +11 -10
@@ -140,6 +140,13 @@ static struct notifier_block module_load_nb = { .notifier_call = module_load_notify, }; +static void free_all_tasks (void ) +{ +/* make sure we don't leak task structs */ +process_task_mortuary (); +process_task_mortuary (); +} +int sync_start (void ) {int err;
@@ -147,8 +154,6 @@ int sync_start(void)if (!zalloc_cpumask_var (&marked_cpus,GFP_KERNEL ))return -ENOMEM ; -mutex_lock (&buffer_mutex); - err =task_handoff_register (&task_free_nb);if (err) goto out1;
@@ -165,7 +170,6 @@ int sync_start(void)start_cpu_work (); out: -mutex_unlock (&buffer_mutex);return err; out4:profile_event_unregister (PROFILE_MUNMAP , &munmap_nb);
@@ -173,6 +177,7 @@ out3:profile_event_unregister (PROFILE_TASK_EXIT , &task_exit_nb); out2:task_handoff_unregister (&task_free_nb); +free_all_tasks (); out1:free_cpumask_var (marked_cpus); goto out;
@@ -181,20 +186,16 @@ out1:void sync_stop (void ) { -/* flush buffers */ -mutex_lock (&buffer_mutex);end_cpu_work ();unregister_module_notifier (&module_load_nb);profile_event_unregister (PROFILE_MUNMAP , &munmap_nb);profile_event_unregister (PROFILE_TASK_EXIT , &task_exit_nb);task_handoff_unregister (&task_free_nb); -mutex_unlock (&buffer_mutex); -flush_scheduled_work (); +barrier ();/* do all of the above first */ -/* make sure we don't leak task structs */ -process_task_mortuary (); -process_task_mortuary (); +flush_scheduled_work (); +free_all_tasks ();free_cpumask_var (marked_cpus); }
drivers/usb/class/cdc-acm.c +10 -0
@@ -1528,6 +1528,16 @@ static struct usb_device_id acm_ids[] = { }, {USB_DEVICE (0x22b8 ,0x6425 ),/* Motorola MOTOMAGX phones */ }, + /* Motorola H24 HSPA module: */ + { USB_DEVICE(0x22b8, 0x2d91) }, /* modem */ + { USB_DEVICE(0x22b8, 0x2d92) }, /* modem + diagnostics */ + { USB_DEVICE(0x22b8, 0x2d93) }, /* modem + AT port */ + { USB_DEVICE(0x22b8, 0x2d95) }, /* modem + AT port + diagnostics */ + { USB_DEVICE(0x22b8, 0x2d96) }, /* modem + NMEA */ + { USB_DEVICE(0x22b8, 0x2d97) }, /* modem + diagnostics + NMEA */ + { USB_DEVICE(0x22b8, 0x2d99) }, /* modem + AT port + NMEA */ + { USB_DEVICE(0x22b8, 0x2d9a) }, /* modem + AT port + diagnostics + NMEA */ + { USB_DEVICE(0x0572, 0x1329), /* Hummingbird huc56s (Conexant) */ .driver_info = NO_UNION_NORMAL, /* union descriptor misplaced ondata interface instead of
fs/ext4/inode.c +1 -1
@@ -3228,7 +3228,7 @@ static int ext4_da_write_end(struct file *file,*/ new_i_size = pos + copied; -if (new_i_size >EXT4_I (inode)->i_disksize) { +if (copied && new_i_size >EXT4_I (inode)->i_disksize) {if (ext4_da_should_update_i_disksize (page, end)) {down_write (&EXT4_I (inode)->i_data_sem);if (new_i_size >EXT4_I (inode)->i_disksize) {
fs/hfs/btree.c +15 -5
@@ -45,11 +45,26 @@ struct hfs_btree *hfs_btree_open(struct super_block *sb, u32 id, btree_keycmp kecase HFS_EXT_CNID :hfs_inode_read_fork (tree->inode, mdb->drXTExtRec, mdb->drXTFlSize, mdb->drXTFlSize,be32_to_cpu (mdb->drXTClpSiz)); +if (HFS_I (tree->inode)->alloc_blocks > +HFS_I (tree->inode)->first_blocks) { +printk (KERN_ERR "hfs: invalid btree extent records\n" ); +unlock_new_inode (tree->inode); + goto free_inode; + } + tree->inode->i_mapping->a_ops = &hfs_btree_aops;break ;case HFS_CAT_CNID :hfs_inode_read_fork (tree->inode, mdb->drCTExtRec, mdb->drCTFlSize, mdb->drCTFlSize,be32_to_cpu (mdb->drCTClpSiz)); + +if (!HFS_I (tree->inode)->first_blocks) { +printk (KERN_ERR "hfs: invalid btree extent records " +"(0 size).\n" ); +unlock_new_inode (tree->inode); + goto free_inode; + } + tree->inode->i_mapping->a_ops = &hfs_btree_aops;break ;default :
@@ -58,11 +73,6 @@ struct hfs_btree *hfs_btree_open(struct super_block *sb, u32 id, btree_keycmp ke }unlock_new_inode (tree->inode); -if (!HFS_I (tree->inode)->first_blocks) { -printk (KERN_ERR "hfs: invalid btree extent records (0 size).\n" ); - goto free_inode; - } - mapping = tree->inode->i_mapping; page =read_mapping_page (mapping,0 ,NULL );if (IS_ERR (page))
fs/jbd/journal.c +8 -0
@@ -1070,6 +1070,14 @@ static int journal_get_superblock(journal_t *journal) goto out; } +if (be32_to_cpu (sb->s_first) ==0 || +be32_to_cpu (sb->s_first) >= journal->j_maxlen) { +printk (KERN_WARNING +"JBD: Invalid start block of journal: %u\n" , +be32_to_cpu (sb->s_first)); + goto out; + } +return 0 ; out:
fs/jbd2/journal.c +8 -0
@@ -1183,6 +1183,14 @@ static int journal_get_superblock(journal_t *journal) goto out; } +if (be32_to_cpu (sb->s_first) ==0 || +be32_to_cpu (sb->s_first) >= journal->j_maxlen) { +printk (KERN_WARNING +"JBD2: Invalid start block of journal: %u\n" , +be32_to_cpu (sb->s_first)); + goto out; + } +return 0 ; out:
include/linux/log2.h +0 -1
@@ -185,7 +185,6 @@ unsigned long __rounddown_pow_of_two(unsigned long n)#define rounddown_pow_of_two (n) \ ( \ __builtin_constant_p(n) ? ( \ - (n == 1) ? 0 : \ (1UL << ilog2(n))) : \ __rounddown_pow_of_two(n) \ )
kernel/taskstats.c +1 -0
@@ -592,6 +592,7 @@ static struct genl_ops taskstats_ops = { .cmd = TASKSTATS_CMD_GET, .doit = taskstats_user_cmd, .policy = taskstats_cmd_get_policy, + .flags = GENL_ADMIN_PERM, };static struct genl_ops cgroupstats_ops = {
mm/percpu.c +19 -13
@@ -110,9 +110,9 @@ static int pcpu_atom_size __read_mostly;static int pcpu_nr_slots__read_mostly ;static size_t pcpu_chunk_struct_size__read_mostly ; -/* cpus with the lowest and highest unit numbers */ -static unsigned int pcpu_first_unit_cpu__read_mostly ; -static unsigned int pcpu_last_unit_cpu__read_mostly ; +/* cpus with the lowest and highest unit addresses */ +static unsigned int pcpu_low_unit_cpu__read_mostly ; +static unsigned int pcpu_high_unit_cpu__read_mostly ;/* the address of the first chunk which starts with the kernel static area */ void *pcpu_base_addr__read_mostly ;
@@ -746,8 +746,8 @@ static void pcpu_pre_unmap_flush(struct pcpu_chunk *chunk, int page_start, int page_end) {flush_cache_vunmap ( -pcpu_chunk_addr (chunk ,pcpu_first_unit_cpu ,page_start ), -pcpu_chunk_addr (chunk ,pcpu_last_unit_cpu ,page_end )); +pcpu_chunk_addr (chunk ,pcpu_low_unit_cpu ,page_start ), +pcpu_chunk_addr (chunk ,pcpu_high_unit_cpu ,page_end )); }static void __pcpu_unmap_pages (unsigned long addr,int nr_pages)
@@ -809,8 +809,8 @@ static void pcpu_post_unmap_tlb_flush(struct pcpu_chunk *chunk, int page_start, int page_end) {flush_tlb_kernel_range ( -pcpu_chunk_addr (chunk ,pcpu_first_unit_cpu ,page_start ), -pcpu_chunk_addr (chunk ,pcpu_last_unit_cpu ,page_end )); +pcpu_chunk_addr (chunk ,pcpu_low_unit_cpu ,page_start ), +pcpu_chunk_addr (chunk ,pcpu_high_unit_cpu ,page_end )); } static int __pcpu_map_pages(unsigned long addr, struct page **pages,
@@ -887,8 +887,8 @@ static void pcpu_post_map_flush(struct pcpu_chunk *chunk, int page_start, int page_end) {flush_cache_vmap ( -pcpu_chunk_addr (chunk ,pcpu_first_unit_cpu ,page_start ), -pcpu_chunk_addr (chunk ,pcpu_last_unit_cpu ,page_end )); +pcpu_chunk_addr (chunk ,pcpu_low_unit_cpu ,page_start ), +pcpu_chunk_addr (chunk ,pcpu_high_unit_cpu ,page_end )); }/**
@@ -1680,7 +1680,9 @@ int __init pcpu_setup_first_chunk(const struct pcpu_alloc_info *ai,for (cpu =0 ; cpu < nr_cpu_ids; cpu++) unit_map[cpu] =UINT_MAX ; - pcpu_first_unit_cpu =NR_CPUS ; + + pcpu_low_unit_cpu =NR_CPUS ; + pcpu_high_unit_cpu =NR_CPUS ;for (group =0 , unit =0 ; group < ai->nr_groups; group++, unit += i) {const struct pcpu_group_info *gi = &ai->groups[group];
@@ -1700,9 +1702,13 @@ int __init pcpu_setup_first_chunk(const struct pcpu_alloc_info *ai, unit_map[cpu] = unit + i; unit_off[cpu] = gi->base_offset + i * ai->unit_size; -if (pcpu_first_unit_cpu ==NR_CPUS ) - pcpu_first_unit_cpu = cpu; - pcpu_last_unit_cpu = cpu; +/* determine low/high unit_cpu */ +if (pcpu_low_unit_cpu ==NR_CPUS || + unit_off[cpu] < unit_off[pcpu_low_unit_cpu]) + pcpu_low_unit_cpu = cpu; +if (pcpu_high_unit_cpu ==NR_CPUS || + unit_off[cpu] > unit_off[pcpu_high_unit_cpu]) + pcpu_high_unit_cpu = cpu; } } pcpu_nr_units = unit;
mm/util.c +13 -0
@@ -233,6 +233,19 @@ void arch_pick_mmap_layout(struct mm_struct *mm) }#endif +/* +* Like get_user_pages_fast() except its IRQ-safe in that it won't fall +* back to the regular GUP. +* If the architecture not support this fucntion, simply return with no +* page pinned +*/ +int __attribute__((weak))__get_user_pages_fast (unsigned long start, +int nr_pages,int write,struct page **pages) +{ +return 0 ; +} +EXPORT_SYMBOL_GPL (__get_user_pages_fast); +/** * get_user_pages_fast() - pin user pages in memory * @start: starting user address
net/xfrm/xfrm_algo.c +2 -2
@@ -411,8 +411,8 @@ static struct xfrm_algo_desc ealg_list[] = { .desc = { .sadb_alg_id = SADB_X_EALG_AESCTR, .sadb_alg_ivlen = 8, - .sadb_alg_minbits = 128, - .sadb_alg_maxbits = 256 + .sadb_alg_minbits = 160, + .sadb_alg_maxbits = 288 } }, };
sound/pci/hda/patch_realtek.c +2 -0
@@ -432,6 +432,8 @@ static int alc_mux_enum_put(struct snd_kcontrol *kcontrol, imux = &spec->input_mux[mux_idx];if (!imux->num_items && mux_idx >0 ) imux = &spec->input_mux[0 ]; +if (!imux->num_items) +return 0 ; type =get_wcaps_type (get_wcaps (codec, nid));if (type ==AC_WID_AUD_MIX ) {
sound/pci/sis7019.c +53 -11
104 lines not on this page · raw message