Linux 3.14.69
Greg KH
maintainerI'm announcing the release of the 3.14.69 kernel.
All users of the 3.14 kernel series must upgrade.
The updated 3.14.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.14.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
------------
MAINTAINERS | 4 - Makefile | 2 arch/arm/mach-socfpga/headsmp.S | 1 arch/powerpc/include/uapi/asm/cputable.h | 1 arch/powerpc/kernel/prom.c | 2 arch/x86/kernel/sysfb_efi.c | 14 +++ arch/x86/kernel/tsc_msr.c | 2 drivers/acpi/acpica/dsmethod.c | 3 drivers/block/nbd.c | 4 - drivers/clk/versatile/clk-sp810.c | 4 - drivers/iio/magnetometer/ak8975.c | 4 - drivers/input/touchscreen/ads7846.c | 8 +- drivers/input/touchscreen/zforce_ts.c | 4 - drivers/scsi/lpfc/lpfc_init.c | 5 - drivers/usb/serial/cp210x.c | 4 + fs/proc/base.c | 3 include/linux/compiler-gcc.h | 120 +++++++++++++++++++++++++++++-- include/linux/compiler-gcc3.h | 23 ----- include/linux/compiler-gcc4.h | 88 ---------------------- include/linux/compiler-gcc5.h | 66 ----------------- include/linux/mod_devicetable.h | 8 ++ kernel/trace/trace_events.c | 9 +- net/batman-adv/routing.c | 9 ++ net/batman-adv/send.c | 6 + net/batman-adv/soft-interface.c | 8 +- net/netfilter/ipvs/ip_vs_pe_sip.c | 2 26 files changed, 199 insertions(+), 205 deletions(-)
Andrey Gelman (1):
Input: ads7846 - correct the value got from SPI
Anton Blanchard (1):
powerpc: scan_features() updates incorrect bits for REAL_LE
Arnd Bergmann (1):
lpfc: fix misleading indentation
Behan Webster (1):
x86: LLVMLinux: Fix "incomplete type const struct x86cpu_device_id"
Chen Yu (1):
x86/tsc: Read all ratio bits from MSR_PLATFORM_INFO
Chunyu Hu (1):
tracing: Don't display trigger file for events that can't be enabled
Dan Streetman (1):
nbd: ratelimit error msgs after socket close
Greg Kroah-Hartman (1):
Linux 3.14.69
Jasem Mutlaq (1):
USB: serial: cp210x: add Straizona Focusers device ids
Joe Perches (1):
compiler-gcc: integrate the various compiler-gcc[345].h files
Knut Wohlrab (1):
Input: zforce_ts - fix dual touch recognition
Krzysztof Kozlowski (1):
iio: ak8975: Fix NULL pointer exception on early interrupt
Linus Lüssing (1):
batman-adv: Fix broadcast/ogm queue limit on a removed interface
Linus Walleij (1):
clk: versatile: sp810: support reentrance
Marco Angaroni (1):
ipvs: correct initial offset of Call-ID header search in SIP persistence engine
Mathias Krause (1):
proc: prevent accessing /proc/<PID>/environ until it's ready
Matt Fleming (1):
MAINTAINERS: Remove asterisk from EFI directory names
Mike Manning (1):
USB: serial: cp210x: add ID for Link ECU
Paolo Bonzini (1):
compiler-gcc: disable -ftracer for __noclone functions
Prarit Bhargava (1):
ACPICA: Dispatcher: Update thread ID for recursive method calls
Sascha Hauer (1):
ARM: SoCFPGA: Fix secondary CPU startup in thumb2 kernel
Sven Eckelmann (2):
batman-adv: Check skb size before using encapsulated ETH+VLAN header
batman-adv: Reduce refcnt of removed router when updating route
Wang YanQing (1):
x86/sysfb_efi: Fix valid BAR address range check
Greg KH
maintainerMAINTAINERS +2 -2
@@ -3247,8 +3247,8 @@ F: Documentation/x86/efi-stub.txt F: arch/ia64/kernel/efi.c F: arch/x86/boot/compressed/eboot.[ch] F: arch/x86/include/asm/efi.h -F: arch/x86/platform/efi/* -F: drivers/firmware/efi/* +F: arch/x86/platform/efi/ +F: drivers/firmware/efi/ F: include/linux/efi*.h EFI VARIABLE FILESYSTEM
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 14 -SUBLEVEL = 68 +SUBLEVEL = 69 EXTRAVERSION = NAME = Remembering Coco
arch/arm/mach-socfpga/headsmp.S +1 -0
@@ -11,6 +11,7 @@ #include <linux/init.h> .arch armv7-a + .arm ENTRY(secondary_trampoline) movw r2, #:lower16:cpu1start_addr
arch/powerpc/include/uapi/asm/cputable.h +1 -0
@@ -31,6 +31,7 @@#define PPC_FEATURE_PSERIES_PERFMON_COMPAT \ 0x00000040 +/* Reserved - do not use 0x00000004 */ #define PPC_FEATURE_TRUE_LE 0x00000002#define PPC_FEATURE_PPC_LE 0x00000001
arch/powerpc/kernel/prom.c +1 -1
@@ -159,7 +159,7 @@ static struct ibm_pa_feature { {CPU_FTR_NOEXECUTE, 0, 0, 0, 6, 0}, {CPU_FTR_NODSISRALIGN, 0, 0, 1, 1, 1}, {0, MMU_FTR_CI_LARGE_PAGE, 0, 1, 2, 0}, - {CPU_FTR_REAL_LE, PPC_FEATURE_TRUE_LE, 5, 0, 0}, + {CPU_FTR_REAL_LE, 0, PPC_FEATURE_TRUE_LE, 5, 0, 0}, }; static void __init scan_features(unsigned long node, unsigned char *ftrs,
arch/x86/kernel/sysfb_efi.c +12 -2
@@ -106,14 +106,24 @@ static int __init efifb_set_system(const struct dmi_system_id *id)continue ;for (i =0 ; i <DEVICE_COUNT_RESOURCE ; i++) {resource_size_t start, end; +unsigned long flags; + + flags =pci_resource_flags (dev, i); +if (!(flags &IORESOURCE_MEM )) +continue ; + +if (flags &IORESOURCE_UNSET ) +continue ; + +if (pci_resource_len (dev, i) ==0 ) +continue ; start =pci_resource_start (dev, i); -if (start ==0 ) -break ; end =pci_resource_end (dev, i);if (screen_info.lfb_base >= start && screen_info.lfb_base < end) { found_bar =1 ; +break ; } } }
arch/x86/kernel/tsc_msr.c +1 -1
@@ -92,7 +92,7 @@ unsigned long try_msr_calibrate_tsc(void)if (freq_desc_tables[cpu_index].msr_plat) {rdmsr (MSR_PLATFORM_INFO , lo, hi); - ratio = (lo >>8 ) &0x1f ; + ratio = (lo >>8 ) &0xff ; }else {rdmsr (MSR_IA32_PERF_STATUS , lo, hi); ratio = (hi >>8 ) &0x1f ;
drivers/acpi/acpica/dsmethod.c +3 -0
@@ -267,6 +267,9 @@ acpi_ds_begin_method_execution(struct acpi_namespace_node *method_node, obj_desc->method.mutex->mutex. original_sync_level = obj_desc->method.mutex->mutex.sync_level; + + obj_desc->method.mutex->mutex.thread_id = +acpi_os_get_thread_id (); } }
drivers/block/nbd.c +2 -2
@@ -581,8 +581,8 @@ static void do_nbd_request(struct request_queue *q)BUG_ON (nbd->magic !=NBD_MAGIC );if (unlikely (!nbd->sock)) { -dev_err (disk_to_dev (nbd->disk), -"Attempted send on closed socket\n" ); +dev_err_ratelimited (disk_to_dev (nbd->disk), +"Attempted send on closed socket\n" ); req->errors++;nbd_end_request (req);spin_lock_irq (q->queue_lock);
drivers/clk/versatile/clk-sp810.c +3 -1
@@ -141,6 +141,7 @@ void __init clk_sp810_of_setup(struct device_node *node)const char *parent_names[2 ];char name[12 ];struct clk_init_data init; +static int instance;int i;if (!sp810) {
@@ -172,7 +173,7 @@ void __init clk_sp810_of_setup(struct device_node *node) init.num_parents =ARRAY_SIZE (parent_names);for (i =0 ; i <ARRAY_SIZE (sp810->timerclken); i++) { -snprintf (name,ARRAY_SIZE (name),"timerclken%d" , i); +snprintf (name,sizeof (name),"sp810_%d_%d" , instance, i); sp810->timerclken[i].sp810 = sp810; sp810->timerclken[i].channel = i;
@@ -184,5 +185,6 @@ void __init clk_sp810_of_setup(struct device_node *node) }of_clk_add_provider (node, clk_sp810_timerclken_of_get, sp810); + instance++; }CLK_OF_DECLARE (sp810,"arm,sp810" , clk_sp810_of_setup);
drivers/iio/magnetometer/ak8975.c +2 -2
@@ -151,6 +151,8 @@ static int ak8975_setup_irq(struct ak8975_data *data)int rc;int irq; +init_waitqueue_head (&data->data_ready_queue); +clear_bit (0 , &data->flags);if (client->irq) irq = client->irq;else
@@ -166,8 +168,6 @@ static int ak8975_setup_irq(struct ak8975_data *data)return rc; } -init_waitqueue_head (&data->data_ready_queue); -clear_bit (0 , &data->flags); data->eoc_irq = irq;return rc;
drivers/input/touchscreen/ads7846.c +6 -2
@@ -668,18 +668,22 @@ static int ads7846_no_filter(void *ads, int data_idx, int *val)static int ads7846_get_value (struct ads7846 *ts,struct spi_message *m) { +int value;struct spi_transfer *t = list_entry(m->transfers.prev, struct spi_transfer, transfer_list);if (ts->model ==7845 ) { -return be16_to_cpup ((__be16 *)&(((char *)t->rx_buf)[1 ])) >>3 ; + value =be16_to_cpup ((__be16 *)&(((char *)t->rx_buf)[1 ])); }else {/* * adjust: on-wire is a must-ignore bit, a BE12 value, then * padding; built from two 8 bit values written msb-first. */ -return be16_to_cpup ((__be16 *)t->rx_buf) >>3 ; + value =be16_to_cpup ((__be16 *)t->rx_buf); } + +/* enforce ADC output is 12 bits width */ +return (value >>3 ) &0xfff ; }static void ads7846_update_value (struct spi_message *m,int val)
drivers/input/touchscreen/zforce_ts.c +2 -2
@@ -350,8 +350,8 @@ static int zforce_touch_event(struct zforce_ts *ts, u8 *payload) point.coord_x = point.coord_y =0 ; } - point.state = payload[9 * i +5 ] &0x03 ; - point.id = (payload[9 * i +5 ] &0xfc ) >>2 ; + point.state = payload[9 * i +5 ] &0x0f ; + point.id = (payload[9 * i +5 ] &0xf0 ) >>4 ;/* determine touch major, minor and orientation */ point.area_major = max(payload[9 * i + 6],
drivers/scsi/lpfc/lpfc_init.c +3 -2
@@ -2697,7 +2697,7 @@ lpfc_online(struct lpfc_hba *phba) } vports =lpfc_create_vport_work_array (phba); -if (vports !=NULL ) +if (vports !=NULL ) {for (i =0 ; i <= phba->max_vports && vports[i] !=NULL ; i++) {struct Scsi_Host *shost; shost =lpfc_shost_from_vport (vports[i]);
@@ -2714,7 +2714,8 @@ lpfc_online(struct lpfc_hba *phba) }spin_unlock_irq (shost->host_lock); } -lpfc_destroy_vport_work_array (phba, vports); + } +lpfc_destroy_vport_work_array (phba, vports);lpfc_unblock_mgmt_io (phba);return 0 ;
drivers/usb/serial/cp210x.c +4 -0
@@ -108,6 +108,7 @@ static const struct usb_device_id id_table[] = { { USB_DEVICE(0x10C4, 0x826B) }, /* Cygnal Integrated Products, Inc., Fasttrax GPS demonstration module */ { USB_DEVICE(0x10C4, 0x8281) }, /* Nanotec Plug & Drive */ { USB_DEVICE(0x10C4, 0x8293) }, /* Telegesis ETRX2USB */ + { USB_DEVICE(0x10C4, 0x82F4) }, /* Starizona MicroTouch */ { USB_DEVICE(0x10C4, 0x82F9) }, /* Procyon AVS */ { USB_DEVICE(0x10C4, 0x8341) }, /* Siemens MC35PU GPRS Modem */ { USB_DEVICE(0x10C4, 0x8382) }, /* Cygnal Integrated Products, Inc. */
@@ -117,6 +118,7 @@ static const struct usb_device_id id_table[] = { { USB_DEVICE(0x10C4, 0x8418) }, /* IRZ Automation Teleport SG-10 GSM/GPRS Modem */ { USB_DEVICE(0x10C4, 0x846E) }, /* BEI USB Sensor Interface (VCP) */ { USB_DEVICE(0x10C4, 0x8477) }, /* Balluff RFID */ + { USB_DEVICE(0x10C4, 0x84B6) }, /* Starizona Hyperion */ { USB_DEVICE(0x10C4, 0x85EA) }, /* AC-Services IBUS-IF */ { USB_DEVICE(0x10C4, 0x85EB) }, /* AC-Services CIS-IBUS */ { USB_DEVICE(0x10C4, 0x85F8) }, /* Virtenio Preon32 */
@@ -140,6 +142,8 @@ static const struct usb_device_id id_table[] = { { USB_DEVICE(0x10C4, 0xF004) }, /* Elan Digital Systems USBcount50 */ { USB_DEVICE(0x10C5, 0xEA61) }, /* Silicon Labs MobiData GPRS USB Modem */ { USB_DEVICE(0x10CE, 0xEA6A) }, /* Silicon Labs MobiData GPRS USB Modem 100EU */ + { USB_DEVICE(0x12B8, 0xEC60) }, /* Link G4 ECU */ + { USB_DEVICE(0x12B8, 0xEC62) }, /* Link G4+ ECU */ { USB_DEVICE(0x13AD, 0x9999) }, /* Baltech card reader */ { USB_DEVICE(0x1555, 0x0004) }, /* Owen AC4 USB-RS485 Converter */ { USB_DEVICE(0x166A, 0x0201) }, /* Clipsal 5500PACA C-Bus Pascal Automation Controller */
fs/proc/base.c +2 -1
@@ -844,7 +844,8 @@ static ssize_t environ_read(struct file *file, char __user *buf,int ret =0 ;struct mm_struct *mm = file->private_data; -if (!mm) +/* Ensure the process spawned far enough to have an environment. */ +if (!mm || !mm->env_end)return 0 ; page = (char *)__get_free_page (GFP_TEMPORARY );
include/linux/compiler-gcc.h +116 -4
126 lines not on this page · raw message
include/linux/compiler-gcc3.h deleted +0 -23
@@ -1,23 +0,0 @@ -#ifndef __LINUX_COMPILER_H -#error "Please don't include <linux/compiler-gcc3.h> directly, include <linux/compiler.h> instead." -#endif - -#if GCC_VERSION <30200 -# error Sorry, your compiler is too old - please upgrade it. -#endif - -#if GCC_VERSION >=30300 -# define __used __attribute__((__used__)) -#else -# define __used __attribute__((__unused__)) -#endif - -#if GCC_VERSION >=30400 -#define __must_check __attribute__((warn_unused_result)) -#endif - -#ifdef CONFIG_GCOV_KERNEL -# if GCC_VERSION <30400 -# error "GCOV profiling support for gcc versions below 3.4 not included" -# endif /* __GNUC_MINOR__ */ -#endif /* CONFIG_GCOV_KERNEL */
include/linux/compiler-gcc4.h deleted +0 -88
88 lines not on this page · raw message
include/linux/compiler-gcc5.h deleted +0 -66
66 lines not on this page · raw message
include/linux/mod_devicetable.h +8 -0
@@ -398,6 +398,7 @@ struct virtio_device_id {/* * For Hyper-V devices we use the device guid as the id. */ +#define vmbus_device_id hv_vmbus_device_idstruct hv_vmbus_device_id {__u8 guid[16 ];kernel_ulong_t driver_data;/* Data private to the driver */
@@ -548,6 +549,11 @@ struct amba_id {* See documentation of "x86_match_cpu" for details. */ +/* +* MODULE_DEVICE_TABLE expects this struct to be called x86cpu_device_id. +* Although gcc seems to ignore this error, clang fails without this define. +*/ +#define x86cpu_device_id x86_cpu_idstruct x86_cpu_id {__u16 vendor;__u16 family;
@@ -575,6 +581,7 @@ struct ipack_device_id {#define MEI_CL_MODULE_PREFIX "mei:"#define MEI_CL_NAME_SIZE 32 +#define mei_device_id mei_cl_device_idstruct mei_cl_device_id {char name[MEI_CL_NAME_SIZE ];kernel_ulong_t driver_info;
@@ -594,6 +601,7 @@ struct mei_cl_device_id {* Identifies a RapidIO device based on both the device/vendor IDs and * the assembly device/vendor IDs. */ +#define rapidio_device_id rio_device_idstruct rio_device_id {__u16 did, vid;__u16 asm_did, asm_vid;
kernel/trace/trace_events.c +7 -2
@@ -1546,8 +1546,13 @@ event_create_dir(struct dentry *parent, struct ftrace_event_file *file)trace_create_file ("filter" ,0644 , file->dir, file, &ftrace_event_filter_fops); -trace_create_file ("trigger" ,0644 , file->dir, file, - &event_trigger_fops); +/* +* Only event directories that can be enabled should have +* triggers. +*/ +if (!(call->flags &TRACE_EVENT_FL_IGNORE_ENABLE )) +trace_create_file ("trigger" ,0644 , file->dir, file, + &event_trigger_fops);trace_create_file ("format" ,0444 , file->dir, call, &ftrace_event_format_fops);
net/batman-adv/routing.c +9 -0
@@ -88,6 +88,15 @@ static void _batadv_update_route(struct batadv_priv *bat_priv, neigh_node =NULL ;spin_lock_bh (&orig_node->neigh_list_lock); +/* curr_router used earlier may not be the current orig_ifinfo->router +* anymore because it was dereferenced outside of the neigh_list_lock +* protected region. After the new best neighbor has replace the current +* best neighbor the reference counter needs to decrease. Consequently, +* the code needs to ensure the curr_router variable contains a pointer +* to the replaced best neighbor. +*/ + curr_router =rcu_dereference_protected (orig_ifinfo->router, true); +rcu_assign_pointer (orig_ifinfo->router, neigh_node);spin_unlock_bh (&orig_node->neigh_list_lock);batadv_orig_ifinfo_free_ref (orig_ifinfo);
net/batman-adv/send.c +6 -0
@@ -610,6 +610,9 @@ batadv_purge_outstanding_packets(struct batadv_priv *bat_priv,if (pending) {hlist_del (&forw_packet->list); +if (!forw_packet->own) +atomic_inc (&bat_priv->bcast_queue_left); +batadv_forw_packet_free (forw_packet); } }
@@ -637,6 +640,9 @@ batadv_purge_outstanding_packets(struct batadv_priv *bat_priv,if (pending) {hlist_del (&forw_packet->list); +if (!forw_packet->own) +atomic_inc (&bat_priv->batman_queue_left); +batadv_forw_packet_free (forw_packet); } }
net/batman-adv/soft-interface.c +6 -2
@@ -356,11 +356,17 @@ void batadv_interface_rx(struct net_device *soft_iface,*/ nf_reset (skb); +if (unlikely (!pskb_may_pull (skb,ETH_HLEN ))) + goto dropped; + vid =batadv_get_vid (skb,0 ); ethhdr =eth_hdr (skb);switch (ntohs (ethhdr->h_proto)) {case ETH_P_8021Q : +if (!pskb_may_pull (skb,VLAN_ETH_HLEN )) + goto dropped; + vhdr = (struct vlan_ethhdr *)skb->data;if (vhdr->h_vlan_encapsulated_proto != ethertype)
@@ -372,8 +378,6 @@ void batadv_interface_rx(struct net_device *soft_iface, }/* skb->dev & skb->pkt_type are set here */ -if (unlikely (!pskb_may_pull (skb,ETH_HLEN ))) - goto dropped; skb->protocol =eth_type_trans (skb, soft_iface);/* should not be necessary anymore as we use skb_pull_rcsum()
net/netfilter/ipvs/ip_vs_pe_sip.c +1 -1
@@ -88,7 +88,7 @@ ip_vs_sip_fill_param(struct ip_vs_conn_param *p, struct sk_buff *skb) dptr = skb->data + dataoff; datalen = skb->len - dataoff; -if (get_callid (dptr, dataoff, datalen, &matchoff, &matchlen)) +if (get_callid (dptr,0 , datalen, &matchoff, &matchlen))return -EINVAL ;/* N.B: pe_data is only set on success,