Linux 3.4.58
Greg KH
maintainerI'm announcing the release of the 3.4.58 kernel.
All users of the 3.4 kernel series must upgrade.
The updated 3.4.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.4.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 drivers/char/virtio_console.c | 47 ++++++++++++-------- drivers/hwmon/adt7470.c | 2 drivers/scsi/megaraid/megaraid_sas_base.c | 20 ++++++-- drivers/scsi/nsp32.c | 2 drivers/scsi/scsi.c | 3 + drivers/usb/core/hub.c | 5 +- fs/cifs/cifsencrypt.c | 2 fs/cifs/cifsglob.h | 1 fs/cifs/connect.c | 7 +-- fs/cifs/sess.c | 6 +- fs/dcache.c | 2 fs/debugfs/inode.c | 69 +++++++++--------------------- fs/ext4/ialloc.c | 10 ++-- fs/ext4/super.c | 17 ++++++- include/linux/ftrace_event.h | 4 + kernel/trace/trace.c | 1 tools/perf/util/map.c | 3 - 18 files changed, 111 insertions(+), 92 deletions(-)
Amit Shah (5):
virtio: console: fix race with port unplug and open/close
virtio: console: fix race in port_fops_open() and port unplug
virtio: console: clean up port data immediately at time of unplug
virtio: console: fix raising SIGIO after port unplug
virtio: console: return -ENODEV on all read operations after unplug
Andrew Vagin (1):
tracing: Fix fields of struct trace_iterator that are zeroed by mistake
Arnd Bergmann (1):
SCSI: nsp32: use mdelay instead of large udelay constants
Chen Gang (1):
cifs: extend the buffer length enought for sprintf() using
Curt Brune (1):
hwmon: (adt7470) Fix incorrect return code check
Greg Kroah-Hartman (1):
Linux 3.4.58
Joshua Zhu (1):
perf tools: Add anonymous huge page recognition
Julius Werner (1):
usb: core: don't try to reset_device() a port that got just disconnected
Martin K. Petersen (1):
SCSI: Don't attempt to send extended INQUIRY command if skip_vpd_pages is set
NeilBrown (1):
vfs: d_obtain_alias() needs to use "/" as default name.
Oleg Nesterov (1):
debugfs: debugfs_remove_recursive() must not rely on list_empty(d_subdirs)
Piotr Sarna (1):
ext4: fix mount/remount error messages for incompatible mount options
[email protected] (1):
SCSI: megaraid_sas: megaraid_sas driver init fails in kdump kernel
Theodore Ts'o (1):
ext4: make sure group number is bumped after a inode allocation race
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 4 -SUBLEVEL = 57 +SUBLEVEL = 58 EXTRAVERSION = NAME = Saber-toothed Squirrel
drivers/char/virtio_console.c +28 -19
96 lines not on this page · raw message
drivers/hwmon/adt7470.c +1 -1
@@ -215,7 +215,7 @@ static inline int adt7470_write_word_data(struct i2c_client *client, u8 reg, u16 value) {return i2c_smbus_write_byte_data (client, reg, value &0xFF ) - &&i2c_smbus_write_byte_data (client, reg +1 , value >>8 ); + ||i2c_smbus_write_byte_data (client, reg +1 , value >>8 ); }static void adt7470_init_client (struct i2c_client *client)
drivers/scsi/megaraid/megaraid_sas_base.c +15 -5
@@ -3493,11 +3493,21 @@ static int megasas_init_fw(struct megasas_instance *instance)break ; } -/* -* We expect the FW state to be READY -*/ -if (megasas_transition_to_ready (instance,0 )) - goto fail_ready_state; +if (megasas_transition_to_ready (instance,0 )) { +atomic_set (&instance->fw_reset_no_pci_access,1 ); + instance->instancet->adp_reset + (instance, instance->reg_set); +atomic_set (&instance->fw_reset_no_pci_access,0 ); +dev_info (&instance->pdev->dev, +"megasas: FW restarted successfully from %s!\n" , + __func__); + +/*waitting for about 30 second before retry*/ +ssleep (30 ); + +if (megasas_transition_to_ready (instance,0 )) + goto fail_ready_state; + }/* Check if MSI-X is supported while in ready state */ msix_enable = (instance->instancet->read_fw_status_reg(reg_set) &
drivers/scsi/nsp32.c +1 -1
@@ -2926,7 +2926,7 @@ static void nsp32_do_bus_reset(nsp32_hw_data *data)* reset SCSI bus */ nsp32_write1 (base,SCSI_BUS_CONTROL ,BUSCTL_RST ); -udelay (RESET_HOLD_TIME ); +mdelay (RESET_HOLD_TIME /1000 );nsp32_write1 (base,SCSI_BUS_CONTROL ,0 );for (i =0 ; i <5 ; i++) { intrdat =nsp32_read2 (base,IRQ_STATUS );/* dummy read */
drivers/scsi/scsi.c +3 -0
@@ -1025,6 +1025,9 @@ int scsi_get_vpd_page(struct scsi_device *sdev, u8 page, unsigned char *buf, {int i, result; +if (sdev->skip_vpd_pages) + goto fail; +/* Ask for all the pages supported by this device */ result =scsi_vpd_inquiry (sdev, buf,0 , buf_len);if (result)
drivers/usb/core/hub.c +3 -2
@@ -3890,7 +3890,8 @@ static void hub_events(void) hub->hdev->children[i -1 ];dev_dbg (hub_dev,"warm reset port %d\n" , i); -if (!udev) { +if (!udev || !(portstatus & +USB_PORT_STAT_CONNECTION )) { status =hub_port_reset (hub, i,NULL ,HUB_BH_RESET_TIME , true);
@@ -3900,8 +3901,8 @@ static void hub_events(void)usb_lock_device (udev); status =usb_reset_device (udev);usb_unlock_device (udev); + connect_change =0 ; } - connect_change =0 ; }if (connect_change)
fs/cifs/cifsencrypt.c +1 -1
@@ -369,7 +369,7 @@ find_domain_name(struct cifs_ses *ses, const struct nls_table *nls_cp)if (blobptr + attrsize > blobend)break ;if (type ==NTLMSSP_AV_NB_DOMAIN_NAME ) { -if (!attrsize) +if (!attrsize || attrsize >=CIFS_MAX_DOMAINNAME_LEN )break ;if (!ses->domainName) { ses->domainName =
fs/cifs/cifsglob.h +1 -0
@@ -38,6 +38,7 @@#define MAX_TREE_SIZE (2 + MAX_SERVER_SIZE + 1 + MAX_SHARE_SIZE + 1)#define MAX_SERVER_SIZE 15#define MAX_SHARE_SIZE 80 +#define CIFS_MAX_DOMAINNAME_LEN 256/* max domain name length */ #define MAX_USERNAME_SIZE 256/* reasonable maximum for current servers */ #define MAX_PASSWORD_SIZE 512/* max for windows seems to be 256 wide chars */
fs/cifs/connect.c +4 -3
@@ -1698,7 +1698,8 @@ cifs_parse_mount_options(const char *mountdata, const char *devname,if (string ==NULL ) goto out_nomem; -if (strnlen (string,256 ) ==256 ) { +if (strnlen (string,CIFS_MAX_DOMAINNAME_LEN ) + ==CIFS_MAX_DOMAINNAME_LEN ) {printk (KERN_WARNING "CIFS: domain name too" " long\n" ); goto cifs_parse_mount_err;
@@ -2356,8 +2357,8 @@ cifs_put_smb_ses(struct cifs_ses *ses)#ifdef CONFIG_KEYS -/* strlen("cifs:a:") + INET6_ADDRSTRLEN + 1 */ -#define CIFSCREDS_DESC_SIZE (7 + INET6_ADDRSTRLEN + 1) +/* strlen("cifs:a:") + CIFS_MAX_DOMAINNAME_LEN + 1 */ +#define CIFSCREDS_DESC_SIZE (7 + CIFS_MAX_DOMAINNAME_LEN + 1)/* Populate username and pw fields from keyring if possible */ static int
fs/cifs/sess.c +3 -3
@@ -198,7 +198,7 @@ static void unicode_domain_string(char **pbcc_area, struct cifs_ses *ses, bytes_ret =0 ; }else bytes_ret =cifs_strtoUTF16 ((__le16 *) bcc_ptr, ses->domainName, -256 , nls_cp); +CIFS_MAX_DOMAINNAME_LEN , nls_cp); bcc_ptr +=2 * bytes_ret; bcc_ptr +=2 ;/* account for null terminator */
@@ -256,8 +256,8 @@ static void ascii_ssetup_strings(char **pbcc_area, struct cifs_ses *ses,/* copy domain */ if (ses->domainName !=NULL ) { -strncpy (bcc_ptr, ses->domainName,256 ); - bcc_ptr +=strnlen (ses->domainName,256 ); +strncpy (bcc_ptr, ses->domainName,CIFS_MAX_DOMAINNAME_LEN ); + bcc_ptr +=strnlen (ses->domainName,CIFS_MAX_DOMAINNAME_LEN ); }/* else we will send a null domain name so the server will default to its own domain */ *bcc_ptr =0 ;
fs/dcache.c +1 -1
@@ -1556,7 +1556,7 @@ EXPORT_SYMBOL(d_find_any_alias);*/ struct dentry *d_obtain_alias (struct inode *inode) { -static const struct qstr anonstring = { .name ="" }; +static const struct qstr anonstring = { .name ="/" , .len =1 };struct dentry *tmp;struct dentry *res;
fs/debugfs/inode.c +22 -47
91 lines not on this page · raw message
fs/ext4/ialloc.c +5 -5
@@ -687,11 +687,8 @@ repeat_in_this_group: ino =ext4_find_next_zero_bit ((unsigned long *) inode_bitmap_bh->b_data,EXT4_INODES_PER_GROUP (sb), ino); -if (ino >=EXT4_INODES_PER_GROUP (sb)) { -if (++group == ngroups) - group =0 ; -continue ; - } +if (ino >=EXT4_INODES_PER_GROUP (sb)) + goto next_group;if (group ==0 && (ino+1 ) <EXT4_FIRST_INO (sb)) {ext4_error (sb,"reserved inode found cleared - " "inode=%lu" , ino +1 );
@@ -709,6 +706,9 @@ repeat_in_this_group: goto got;/* we grabbed the inode! */ if (ino <EXT4_INODES_PER_GROUP (sb)) goto repeat_in_this_group; +next_group: +if (++group == ngroups) + group =0 ; } err = -ENOSPC ; goto out;
fs/ext4/super.c +16 -1
@@ -3232,7 +3232,7 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent) }if (test_opt (sb,DIOREAD_NOLOCK )) {ext4_msg (sb,KERN_ERR ,"can't mount with " -"both data=journal and delalloc" ); +"both data=journal and dioread_nolock" ); goto failed_mount; }if (test_opt (sb,DELALLOC ))
@@ -4397,6 +4397,21 @@ static int ext4_remount(struct super_block *sb, int *flags, char *data) goto restore_opts; } +if (test_opt (sb,DATA_FLAGS ) ==EXT4_MOUNT_JOURNAL_DATA ) { +if (test_opt2 (sb,EXPLICIT_DELALLOC )) { +ext4_msg (sb,KERN_ERR ,"can't mount with " +"both data=journal and delalloc" ); + err = -EINVAL ; + goto restore_opts; + } +if (test_opt (sb,DIOREAD_NOLOCK )) { +ext4_msg (sb,KERN_ERR ,"can't mount with " +"both data=journal and dioread_nolock" ); + err = -EINVAL ; + goto restore_opts; + } + } +if (sbi->s_mount_flags &EXT4_MF_FS_ABORTED )ext4_abort (sb,"Abort forced by user" );
include/linux/ftrace_event.h +3 -1
@@ -71,6 +71,8 @@ struct trace_iterator {/* trace_seq for __print_flags() and __print_symbolic() etc. */ struct trace_seq tmp_seq; +cpumask_var_t started; +/* The below is zeroed out in pipe_read */ struct trace_seq seq;struct trace_entry *ent;
@@ -83,7 +85,7 @@ struct trace_iterator {loff_t pos;long idx; -cpumask_var_t started; +/* All new field here will be zeroed out in pipe_read */ };
kernel/trace/trace.c +1 -0
@@ -3478,6 +3478,7 @@ waitagain:memset (&iter->seq,0 ,sizeof (struct trace_iterator ) - offsetof(struct trace_iterator , seq)); +cpumask_clear (iter->started); iter->pos =-1 ;trace_event_read_lock ();
tools/perf/util/map.c +2 -1
@@ -15,7 +15,8 @@ const char *map_type__name[MAP__NR_TYPES] = {static inline int is_anon_memory (const char *filename) { -return strcmp (filename,"//anon" ) ==0 ; +return !strcmp (filename,"//anon" ) || + !strcmp (filename,"/anon_hugepage (deleted)" ); }static inline int is_no_dso_memory (const char *filename)