Linux 3.0.69
Greg KH
maintainerI'm announcing the release of the 3.0.69 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/arm/mm/alignment.c | 11 ++++------- arch/arm/vfp/vfpmodule.c | 2 +- drivers/char/hw_random/core.c | 19 ++++++++++++++++--- drivers/cpufreq/cpufreq_stats.c | 1 + drivers/firmware/dmi_scan.c | 5 ++--- drivers/gpu/drm/radeon/radeon_combios.c | 9 +++++++++ drivers/hwmon/sht15.c | 8 +++++++- drivers/md/raid0.c | 2 +- drivers/net/e1000e/netdev.c | 2 +- drivers/net/wireless/ath/ath9k/common.h | 2 +- drivers/scsi/dc395x.c | 2 +- drivers/target/target_core_pscsi.c | 1 - fs/btrfs/volumes.c | 1 + fs/cifs/cifsfs.c | 5 +++++ fs/pipe.c | 3 +++ kernel/trace/Kconfig | 24 ++++++++++++++---------- net/decnet/af_decnet.c | 4 ++++ net/decnet/sysctl_net_decnet.c | 28 ++++++++++++++++++++++++++++ net/sunrpc/xprt.c | 6 +++++- security/keys/process_keys.c | 2 +- sound/core/vmaster.c | 5 ++++- sound/pci/ice1712/ice1712.c | 2 ++ 23 files changed, 112 insertions(+), 34 deletions(-)
Al Viro (1):
vfs: fix pipe counter breakage
Alex Deucher (1):
drm/radeon: add primary dac adj quirk for R200 board
Asias He (1):
target/pscsi: Fix page increment
Ben Hutchings (1):
dmi_scan: fix missing check for _DMI_ signature in smbios_present()
Dan Carpenter (1):
SCSI: dc395x: uninitialized variable in device_alloc()
David Howells (1):
keys: fix race with concurrent install_user_keyrings()
Eric W. Biederman (1):
decnet: Fix disappearing sysctl entries
Felix Fietkau (1):
ath9k: fix RSSI dummy marker value
Greg Kroah-Hartman (1):
Linux 3.0.69
Jeff Layton (1):
cifs: ensure that cifs_get_root() only traverses directories
Konstantin Khlebnikov (1):
e1000e: fix pci-device enable-counter balance
Mark Brown (1):
hwmon: (sht15) Check return value of regulator_enable()
NeilBrown (1):
md: raid0: fix error return from create_stripe_zones.
Russell King (2):
ARM: VFP: fix emulation of second VFP instruction
ARM: fix scheduling while atomic warning in alignment handling code
Rusty Russell (1):
hw_random: make buffer usable in scatterlist.
Sean Connor (1):
ALSA: ice1712: Initialize card->private_data properly
Steven Rostedt (1):
ftrace: Update the kconfig for DYNAMIC_FTRACE
Takashi Iwai (1):
ALSA: vmaster: Fix slave change notification
Thomas Gleixner (1):
btrfs: Init io_lock after cloning btrfs device struct
Trond Myklebust (1):
SUNRPC: Don't start the retransmission timer when out of socket space
Tu, Xiaobing (1):
Fix memory leak in cpufreq stats.
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 0 -SUBLEVEL = 68 +SUBLEVEL = 69 EXTRAVERSION = NAME = Sneaky Weasel
arch/arm/mm/alignment.c +4 -7
@@ -721,7 +721,6 @@ do_alignment(unsigned long addr, unsigned int fsr, struct pt_regs *regs)unsigned long instr =0 , instrptr;int (*handler)(unsigned long addr,unsigned long instr,struct pt_regs *regs);unsigned int type; -mm_segment_t fs;unsigned int fault;u16 tinstr =0 ;int isize =4 ;
@@ -729,16 +728,15 @@ do_alignment(unsigned long addr, unsigned int fsr, struct pt_regs *regs) instrptr =instruction_pointer (regs); - fs =get_fs (); -set_fs (KERNEL_DS );if (thumb_mode (regs)) { - fault =__get_user (tinstr, (u16 *)(instrptr & ~1 )); +u16 *ptr = (u16 *)(instrptr & ~1 ); + fault =probe_kernel_address (ptr, tinstr);if (!fault) {if (cpu_architecture () >= CPU_ARCH_ARMv7 &&IS_T32 (tinstr)) {/* Thumb-2 32-bit */ u16 tinst2 =0 ; - fault =__get_user (tinst2, (u16 *)(instrptr+2 )); + fault =probe_kernel_address (ptr +1 , tinst2); instr = (tinstr <<16 ) | tinst2; thumb2_32b =1 ; }else {
@@ -747,8 +745,7 @@ do_alignment(unsigned long addr, unsigned int fsr, struct pt_regs *regs) } } }else - fault =__get_user (instr, (u32 *)instrptr); -set_fs (fs); + fault =probe_kernel_address (instrptr, instr);if (fault) { type =TYPE_FAULT ;
arch/arm/vfp/vfpmodule.c +1 -1
@@ -369,7 +369,7 @@ void VFP_bounce(u32 trigger, u32 fpexc, struct pt_regs *regs)* If there isn't a second FP instruction, exit now. Note that * the FPEXC.FP2V bit is valid only if FPEXC.EX is 1. */ -if (fpexc ^ (FPEXC_EX |FPEXC_FP2V )) +if ((fpexc & (FPEXC_EX |FPEXC_FP2V )) != (FPEXC_EX |FPEXC_FP2V )) goto exit;/*
drivers/char/hw_random/core.c +16 -3
@@ -40,6 +40,7 @@#include <linux/init.h> #include <linux/miscdevice.h> #include <linux/delay.h> +#include <linux/slab.h> #include <asm/uaccess.h>
@@ -52,8 +53,12 @@ static struct hwrng *current_rng;static LIST_HEAD (rng_list);static DEFINE_MUTEX (rng_mutex);static int data_avail; -static u8 rng_buffer[SMP_CACHE_BYTES < 32 ? 32 : SMP_CACHE_BYTES] - __cacheline_aligned; +static u8 *rng_buffer; + +static size_t rng_buffer_size (void ) +{ +return SMP_CACHE_BYTES <32 ?32 :SMP_CACHE_BYTES ; +}static inline int hwrng_init (struct hwrng *rng) {
@@ -116,7 +121,7 @@ static ssize_t rng_dev_read(struct file *filp, char __user *buf,if (!data_avail) { bytes_read =rng_get_data (current_rng, rng_buffer, -sizeof (rng_buffer), +rng_buffer_size (), !(filp->f_flags &O_NONBLOCK ));if (bytes_read <0 ) { err = bytes_read;
@@ -307,6 +312,14 @@ int hwrng_register(struct hwrng *rng)mutex_lock (&rng_mutex); +/* kmalloc makes this safe for virt_to_page() in virtio_rng.c */ + err = -ENOMEM ; +if (!rng_buffer) { + rng_buffer =kmalloc (rng_buffer_size (),GFP_KERNEL ); +if (!rng_buffer) + goto out_unlock; + } +/* Must not register two RNGs with the same name. */ err = -EEXIST ;list_for_each_entry (tmp, &rng_list, list) {
drivers/cpufreq/cpufreq_stats.c +1 -0
@@ -329,6 +329,7 @@ static int __cpuinit cpufreq_stat_cpu_callback(struct notifier_block *nfb,cpufreq_update_policy (cpu);break ;case CPU_DOWN_PREPARE : +case CPU_DOWN_PREPARE_FROZEN :cpufreq_stats_free_sysfs (cpu);break ;case CPU_DEAD :
drivers/firmware/dmi_scan.c +2 -3
@@ -442,7 +442,6 @@ static int __init dmi_present(const char __iomem *p)static int __init smbios_present (const char __iomem *p) {u8 buf[32 ]; -int offset =0 ;memcpy_fromio (buf, p,32 );if ((buf[5 ] <32 ) &&dmi_checksum (buf, buf[5 ])) {
@@ -461,9 +460,9 @@ static int __init smbios_present(const char __iomem *p) dmi_ver =0x0206 ;break ; } - offset =16 ; +return memcmp (p +16 ,"_DMI_" ,5 ) ||dmi_present (p +16 ); } -return dmi_present (buf + offset); +return 1 ; }void __init dmi_scan_machine (void )
drivers/gpu/drm/radeon/radeon_combios.c +9 -0
@@ -958,6 +958,15 @@ struct radeon_encoder_primary_dac *radeon_combios_get_primary_dac_info(struct found =1 ; } +/* quirks */ +/* Radeon 9100 (R200) */ +if ((dev->pdev->device ==0x514D ) && + (dev->pdev->subsystem_vendor ==0x174B ) && + (dev->pdev->subsystem_device ==0x7149 )) { +/* vbios value is bad, use the default */ + found =0 ; + } +if (!found)/* fallback to defaults */ radeon_legacy_get_primary_dac_info_from_table (rdev, p_dac);
drivers/hwmon/sht15.c +7 -1
@@ -926,7 +926,13 @@ static int __devinit sht15_probe(struct platform_device *pdev)if (voltage) data->supply_uV = voltage; -regulator_enable (data->reg); + ret =regulator_enable (data->reg); +if (ret !=0 ) { +dev_err (&pdev->dev, +"failed to enable regulator: %d\n" , ret); +return ret; + } +/* * Setup a notifier block to update this if another device * causes the voltage to change
drivers/md/raid0.c +1 -1
@@ -283,7 +283,7 @@ abort:kfree (conf->strip_zone);kfree (conf->devlist);kfree (conf); - *private_conf =NULL ; + *private_conf =ERR_PTR (err);return err; }
drivers/net/e1000e/netdev.c +1 -1
@@ -5330,7 +5330,7 @@ static int __e1000_shutdown(struct pci_dev *pdev, bool *enable_wake,*/ e1000e_release_hw_control (adapter); -pci_disable_device (pdev); +pci_clear_master (pdev);return 0 ; }
drivers/net/wireless/ath/ath9k/common.h +1 -1
@@ -35,7 +35,7 @@#define WME_AC_BK 3#define WME_NUM_AC 4 -#define ATH_RSSI_DUMMY_MARKER 0x127 +#define ATH_RSSI_DUMMY_MARKER 127#define ATH_RSSI_LPF_LEN 10#define RSSI_LPF_THRESHOLD -20#define ATH_RSSI_EP_MULTIPLIER (1<<7)
drivers/scsi/dc395x.c +1 -1
@@ -3747,13 +3747,13 @@ static struct DeviceCtlBlk *device_alloc(struct AdapterCtlBlk *acb, dcb->max_command =1 ; dcb->target_id = target; dcb->target_lun = lun; + dcb->dev_mode = eeprom->target[target].cfg0;#ifndef DC395x_NO_DISCONNECT dcb->identify_msg =IDENTIFY (dcb->dev_mode &NTC_DO_DISCONNECT , lun);#else dcb->identify_msg =IDENTIFY (0 , lun);#endif - dcb->dev_mode = eeprom->target[target].cfg0; dcb->inquiry7 =0 ; dcb->sync_mode =0 ; dcb->min_nego_period = clock_period[period_index];
drivers/target/target_core_pscsi.c +0 -1
@@ -1210,7 +1210,6 @@ static int __pscsi_map_task_SG( bio =NULL ; } - page++; len -= bytes; data_len -= bytes; off =0 ;
fs/btrfs/volumes.c +1 -0
@@ -512,6 +512,7 @@ static int __btrfs_close_devices(struct btrfs_fs_devices *fs_devices) new_device->writeable =0 ; new_device->in_fs_metadata =0 ; new_device->can_discard =0 ; +spin_lock_init (&new_device->io_lock);list_replace_rcu (&device->dev_list, &new_device->dev_list);call_rcu (&device->rcu, free_device);
fs/cifs/cifsfs.c +5 -0
@@ -571,6 +571,11 @@ cifs_get_root(struct smb_vol *vol, struct super_block *sb) dentry =ERR_PTR (-ENOENT );break ; } +if (!S_ISDIR (dir->i_mode)) { +dput (dentry); + dentry =ERR_PTR (-ENOTDIR ); +break ; + }/* skip separators */ while (*s == sep)
fs/pipe.c +3 -0
@@ -859,6 +859,9 @@ pipe_rdwr_open(struct inode *inode, struct file *filp) {int ret = -ENOENT ; +if (!(filp->f_mode & (FMODE_READ |FMODE_WRITE ))) +return -EINVAL ; +mutex_lock (&inode->i_mutex);if (inode->i_pipe) {
kernel/trace/Kconfig +14 -10
@@ -386,24 +386,28 @@ config KPROBE_EVENT If you want to use perf tools, this option is strongly recommended. config DYNAMIC_FTRACE - bool "enable/disable ftrace tracepoints dynamically" + bool "enable/disable function tracing dynamically" depends on FUNCTION_TRACER depends on HAVE_DYNAMIC_FTRACE default y help - This option will modify all the calls to ftrace dynamically - (will patch them out of the binary image and replace them - with a No-Op instruction) as they are called. A table is - created to dynamically enable them again. + This option will modify all the calls to function tracing + dynamically (will patch them out of the binary image and + replace them with a No-Op instruction) on boot up. During + compile time, a table is made of all the locations that ftrace + can function trace, and this table is linked into the kernel + image. When this is enabled, functions can be individually + enabled, and the functions not enabled will not affect + performance of the system. + + See the files in /sys/kernel/debug/tracing: + available_filter_functions + set_ftrace_filter + set_ftrace_notrace This way a CONFIG_FUNCTION_TRACER kernel is slightly larger, but otherwise has native performance as long as no tracing is active. - The changes to the code are done by a kernel thread that - wakes up once a second and checks to see if any ftrace calls - were made. If so, it runs stop_machine (stops all CPUS) - and modifies the code to jump over the call to ftrace. - config FUNCTION_PROFILER bool "Kernel function profiler" depends on FUNCTION_TRACER
net/decnet/af_decnet.c +4 -0
@@ -2355,6 +2355,8 @@ static const struct proto_ops dn_proto_ops = { .sendpage = sock_no_sendpage, }; +void dn_register_sysctl_skeleton (void ); +void dn_unregister_sysctl_skeleton (void );void dn_register_sysctl (void );void dn_unregister_sysctl (void );
@@ -2375,6 +2377,7 @@ static int __init decnet_init(void)if (rc !=0 ) goto out; +dn_register_sysctl_skeleton ();dn_neigh_init ();dn_dev_init ();dn_route_init ();
@@ -2414,6 +2417,7 @@ static void __exit decnet_exit(void)dn_fib_cleanup ();proc_net_remove (&init_net,"decnet" ); +dn_unregister_sysctl_skeleton ();proto_unregister (&dn_proto);
net/decnet/sysctl_net_decnet.c +28 -0
@@ -55,6 +55,7 @@ static int max_decnet_no_fc_max_cwnd[] = { NSP_MAX_WINDOW };static char node_name[7 ] ="???" ;static struct ctl_table_header *dn_table_header =NULL ; +static struct ctl_table_header *dn_skeleton_table_header =NULL ;/* * ctype.h :-)
@@ -356,6 +357,27 @@ static struct ctl_path dn_path[] = { { } }; +static struct ctl_table empty[1 ]; + +static struct ctl_table dn_skeleton[] = { + { + .procname ="conf" , + .mode =0555 , + .child = empty, + }, + { } +}; + +void dn_register_sysctl_skeleton (void ) +{ + dn_skeleton_table_header =register_sysctl_paths (dn_path, dn_skeleton); +} + +void dn_unregister_sysctl_skeleton (void ) +{ +unregister_sysctl_table (dn_skeleton_table_header); +} +void dn_register_sysctl (void ) { dn_table_header =register_sysctl_paths (dn_path, dn_table);
@@ -367,6 +389,12 @@ void dn_unregister_sysctl(void) }#else /* CONFIG_SYSCTL */ +void dn_register_sysctl_skeleton (void ) +{ +} +void dn_unregister_sysctl_skeleton (void ) +{ +}void dn_unregister_sysctl (void ) { }
net/sunrpc/xprt.c +5 -1
@@ -471,13 +471,17 @@ EXPORT_SYMBOL_GPL(xprt_wake_pending_tasks);* xprt_wait_for_buffer_space - wait for transport output buffer to clear * @task: task to be put to sleep * @action: function pointer to be executed after wait +* +* Note that we only set the timer for the case of RPC_IS_SOFT(), since +* we don't in general want to force a socket disconnection due to +* an incomplete RPC call transmission. */ void xprt_wait_for_buffer_space (struct rpc_task *task,rpc_action action) {struct rpc_rqst *req = task->tk_rqstp;struct rpc_xprt *xprt = req->rq_xprt; - task->tk_timeout = req->rq_timeout; + task->tk_timeout =RPC_IS_SOFT (task) ? req->rq_timeout :0 ;rpc_sleep_on (&xprt->pending, task, action); }EXPORT_SYMBOL_GPL (xprt_wait_for_buffer_space);
security/keys/process_keys.c +1 -1
@@ -54,7 +54,7 @@ int install_user_keyrings(void)kenter ("%p{%u}" , user, user->uid); -if (user->uid_keyring) { +if (user->uid_keyring && user->session_keyring) {kleave (" = 0 [exist]" );return 0 ; }
sound/core/vmaster.c +4 -1
@@ -207,7 +207,10 @@ static int slave_put(struct snd_kcontrol *kcontrol, }if (!changed)return 0 ; -return slave_put_val (slave, ucontrol); + err =slave_put_val (slave, ucontrol); +if (err <0 ) +return err; +return 1 ; } static int slave_tlv_cmd(struct snd_kcontrol *kcontrol,
sound/pci/ice1712/ice1712.c +2 -0
@@ -2595,6 +2595,8 @@ static int __devinit snd_ice1712_create(struct snd_card *card,snd_ice1712_proc_init (ice);synchronize_irq (pci->irq); + card->private_data = ice; + err =pci_request_regions (pci,"ICE1712" );if (err <0 ) {kfree (ice);