Linux 3.18.87
Greg KH
maintainerI'm announcing the release of the 3.18.87 kernel.
All users of the 3.18 kernel series must upgrade.
The updated 3.18.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.18.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/mach-omap1/dma.c | 16 ++---- drivers/edac/sb_edac.c | 1 drivers/md/bcache/request.c | 9 +++ drivers/net/appletalk/ipddp.c | 2 drivers/net/ethernet/freescale/fec_main.c | 23 +++------ drivers/spi/spi-sh-msiof.c | 2 drivers/staging/lustre/lustre/llite/llite_mmap.c | 4 - drivers/tty/serial/8250/8250_fintek.c | 2 drivers/tty/serial/8250/8250_pci.c | 3 + drivers/tty/sysrq.c | 9 ++- drivers/usb/core/devio.c | 56 +++++++++++------------ drivers/usb/core/hub.c | 9 +++ drivers/usb/core/quirks.c | 3 + drivers/usb/host/ehci-dbg.c | 2 drivers/usb/storage/uas-detect.h | 4 + fs/nfs/nfs4state.c | 1 include/linux/buffer_head.h | 4 - net/ipv6/ip6_vti.c | 2 net/sctp/debug.c | 2 net/tipc/server.c | 4 - security/integrity/ima/ima_main.c | 4 + tools/perf/tests/attr.c | 2 23 files changed, 93 insertions(+), 73 deletions(-)
Boshi Wang (1):
ima: fix hash algorithm initialization
Colin Ian King (2):
net: sctp: fix array overrun read on sctp_timer_tbl
usb: host: fix incorrect updating of offset
Coly Li (1):
bcache: only permit to recovery read error when cache device is clean
Dan Carpenter (1):
USB: devio: Prevent integer overflow in proc_do_submiturb()
David Forster (1):
vti6: fix device register to report IFLA_INFO_KIND
Greg Kroah-Hartman (1):
Linux 3.18.87
Gustavo A. R. Silva (1):
EDAC, sb_edac: Fix missing break in switch
Hans de Goede (1):
uas: Always apply US_FL_NO_ATA_1X quirk to Seagate devices
Hiromitsu Yamasaki (1):
spi: sh-msiof: Fix DMA transfer size check
Jan Kara (1):
mm: avoid returning VM_FAULT_RETRY from ->page_mkwrite handlers
Jibin Xu (1):
sysrq : fix Show Regs call trace on ARM
Kai-Heng Feng (1):
usb: quirks: Add no-lpm quirk for KY-688 USB 3.1 Type-C Hub
Lukas Wunner (1):
serial: 8250_fintek: Fix rs485 disablement on invalid ioctl()
Mateusz Berezecki (1):
USB: Increase usbfs transfer limit
Matt Wilson (1):
serial: 8250_pci: Add Amazon PCI serial device ID
Mike Looijmans (1):
usb: hub: Cycle HUB power when initialization fails
Oliver Neukum (1):
USB: usbfs: Filter flags passed in from user space
Parthasarathy Bhuvaragan (1):
tipc: fix cleanup at module unload
Peter Ujfalusi (1):
ARM: OMAP1: DMA: Correct the number of logical channels
Rui Hua (1):
bcache: recover data from backing when data is clean
Rui Sousa (1):
net: fec: fix multicast filtering hardware setup
Thomas Richter (1):
perf test attr: Fix ignored test case result
Trond Myklebust (1):
NFSv4: Fix client recovery when server reboots multiple times
Vlad Tsyrklevich (1):
net/appletalk: Fix kernel memory disclosure
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 18 -SUBLEVEL = 86 +SUBLEVEL = 87 EXTRAVERSION = NAME = Diseased Newt
arch/arm/mach-omap1/dma.c +7 -9
@@ -31,7 +31,6 @@#include <mach/irqs.h> #define OMAP1_DMA_BASE (0xfffed800) -#define OMAP1_LOGICAL_DMA_CH_COUNT 17static u32 enable_1510_mode;
@@ -311,8 +310,6 @@ static int __init omap1_system_dma_init(void) goto exit_iounmap; } - d->lch_count =OMAP1_LOGICAL_DMA_CH_COUNT ; -/* Valid attributes for omap1 plus processors */ if (cpu_is_omap15xx ()) d->dev_caps =ENABLE_1510_MODE ;
@@ -329,13 +326,14 @@ static int __init omap1_system_dma_init(void) d->dev_caps |=CLEAR_CSR_ON_READ ; d->dev_caps |=IS_WORD_16 ; -if (cpu_is_omap15xx ()) - d->chan_count =9 ; -else if (cpu_is_omap16xx () ||cpu_is_omap7xx ()) { -if (!(d->dev_caps &ENABLE_1510_MODE )) - d->chan_count =16 ; +/* available logical channels */ +if (cpu_is_omap15xx ()) { + d->lch_count =9 ; + }else { +if (d->dev_caps &ENABLE_1510_MODE ) + d->lch_count =9 ;else - d->chan_count =9 ; + d->lch_count =16 ; } p = dma_plat_info;
drivers/edac/sb_edac.c +1 -0
@@ -1645,6 +1645,7 @@ static int ibridge_mci_bind_devs(struct mem_ctl_info *mci,break ;case PCI_DEVICE_ID_INTEL_IBRIDGE_IMC_HA0_TA : pvt->pci_ta = pdev; +break ;case PCI_DEVICE_ID_INTEL_IBRIDGE_IMC_HA0_RAS : pvt->pci_ras = pdev;break ;
drivers/md/bcache/request.c +8 -1
@@ -706,7 +706,14 @@ static void cached_dev_read_error(struct closure *cl) struct search *s = container_of(cl, struct search, cl);struct bio *bio = &s->bio.bio; -if (s->recoverable) { +/* +* If read request hit dirty data (s->read_dirty_data is true), +* then recovery a failed read request from cached device may +* get a stale data back. So read failure recovery is only +* permitted when read request hit clean data in cache device, +* or when cache read race happened. +*/ +if (s->recoverable && !s->read_dirty_data) {/* Retry from the backing device: */ trace_bcache_read_retry (s->orig_bio);
drivers/net/appletalk/ipddp.c +1 -1
@@ -191,7 +191,7 @@ static netdev_tx_t ipddp_xmit(struct sk_buff *skb, struct net_device *dev)*/ static int ipddp_create (struct ipddp_route *new_rt) { -struct ipddp_route *rt =kmalloc (sizeof (*rt),GFP_KERNEL ); +struct ipddp_route *rt =kzalloc (sizeof (*rt),GFP_KERNEL );if (rt ==NULL )return -ENOMEM ;
drivers/net/ethernet/freescale/fec_main.c +9 -14
@@ -2793,6 +2793,7 @@ static void set_multicast_list(struct net_device *ndev)struct netdev_hw_addr *ha;unsigned int i, bit, data, crc, tmp;unsigned char hash; +unsigned int hash_high =0 , hash_low =0 ;if (ndev->flags &IFF_PROMISC ) { tmp =readl (fep->hwp +FEC_R_CNTRL );
@@ -2815,11 +2816,7 @@ static void set_multicast_list(struct net_device *ndev)return ; } -/* Clear filter and add the addresses in hash register -*/ -writel (0 , fep->hwp +FEC_GRP_HASH_TABLE_HIGH ); -writel (0 , fep->hwp +FEC_GRP_HASH_TABLE_LOW ); - +/* Add the addresses in hash register */ netdev_for_each_mc_addr (ha, ndev) {/* calculate crc32 value of mac address */ crc =0xffffffff ;
@@ -2837,16 +2834,14 @@ static void set_multicast_list(struct net_device *ndev)*/ hash = (crc >> (32 -HASH_BITS )) &0x3f ; -if (hash >31 ) { - tmp =readl (fep->hwp +FEC_GRP_HASH_TABLE_HIGH ); - tmp |=1 << (hash -32 ); -writel (tmp, fep->hwp +FEC_GRP_HASH_TABLE_HIGH ); - }else { - tmp =readl (fep->hwp +FEC_GRP_HASH_TABLE_LOW ); - tmp |=1 << hash; -writel (tmp, fep->hwp +FEC_GRP_HASH_TABLE_LOW ); - } +if (hash >31 ) + hash_high |=1 << (hash -32 ); +else + hash_low |=1 << hash; } + +writel (hash_high, fep->hwp +FEC_GRP_HASH_TABLE_HIGH ); +writel (hash_low, fep->hwp +FEC_GRP_HASH_TABLE_LOW ); }/* Set a MAC change in hardware. */
drivers/spi/spi-sh-msiof.c +1 -1
@@ -818,7 +818,7 @@ static int sh_msiof_transfer_one(struct spi_master *master,break ; copy32 = copy_bswap32; }else if (bits <=16 ) { -if (l &1 ) +if (l &3 )break ; copy32 = copy_wswap32; }else {
drivers/staging/lustre/lustre/llite/llite_mmap.c +1 -3
@@ -407,15 +407,13 @@ static int ll_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf) result =VM_FAULT_LOCKED ;break ;case -ENODATA : +case -EAGAIN :case -EFAULT : result =VM_FAULT_NOPAGE ;break ;case -ENOMEM : result =VM_FAULT_OOM ;break ; -case -EAGAIN : - result =VM_FAULT_RETRY ; -break ;default : result =VM_FAULT_SIGBUS ;break ;
drivers/tty/serial/8250/8250_fintek.c +1 -1
@@ -118,7 +118,7 @@ static int fintek_8250_rs4850_config(struct uart_8250_port *uart,if ((!!(rs485->flags &SER_RS485_RTS_ON_SEND )) == (!!(rs485->flags &SER_RS485_RTS_AFTER_SEND ))) - rs485->flags &=SER_RS485_ENABLED ; + rs485->flags &= ~SER_RS485_ENABLED ;else config |=RS485_URA ;
drivers/tty/serial/8250/8250_pci.c +3 -0
@@ -5483,6 +5483,9 @@ static struct pci_device_id serial_pci_tbl[] = { { PCI_DEVICE(0x1601, 0x0800), .driver_data = pbn_b0_4_1250000 }, { PCI_DEVICE(0x1601, 0xa801), .driver_data = pbn_b0_4_1250000 }, + /* Amazon PCI serial device */ + { PCI_DEVICE(0x1d0f, 0x8250), .driver_data = pbn_b0_1_115200 }, +/* * These entries match devices with class COMMUNICATION_SERIAL, * COMMUNICATION_MODEM or COMMUNICATION_MULTISERIAL
drivers/tty/sysrq.c +7 -2
@@ -237,8 +237,10 @@ static void sysrq_handle_showallcpus(int key)* architecture has no support for it: */ if (!trigger_all_cpu_backtrace ()) { -struct pt_regs *regs =get_irq_regs (); +struct pt_regs *regs =NULL ; +if (in_irq ()) + regs =get_irq_regs ();if (regs) {printk (KERN_INFO "CPU%d:\n" ,smp_processor_id ());show_regs (regs);
@@ -257,7 +259,10 @@ static struct sysrq_key_op sysrq_showallcpus_op = {static void sysrq_handle_showregs (int key) { -struct pt_regs *regs =get_irq_regs (); +struct pt_regs *regs =NULL ; + +if (in_irq ()) + regs =get_irq_regs ();if (regs)show_regs (regs);perf_event_print_debug ();
drivers/usb/core/devio.c +27 -29
99 lines not on this page · raw message
drivers/usb/core/hub.c +9 -0
@@ -4816,6 +4816,15 @@ loop:usb_put_dev (udev);if ((status == -ENOTCONN ) || (status == -ENOTSUPP ))break ; + +/* When halfway through our retry count, power-cycle the port */ +if (i == (SET_CONFIG_TRIES /2 ) -1 ) { +dev_info (&port_dev->dev,"attempt power cycle\n" ); +usb_hub_set_port_power (hdev, hub, port1, false); +msleep (2 *hub_power_on_good_delay (hub)); +usb_hub_set_port_power (hdev, hub, port1, true); +msleep (hub_power_on_good_delay (hub)); + } } if (hub->hdev->parent || !hcd->driver->port_handed_over ||
drivers/usb/core/quirks.c +3 -0
@@ -144,6 +144,9 @@ static const struct usb_device_id usb_quirk_list[] = {/* appletouch */ { USB_DEVICE(0x05ac, 0x021a), .driver_info = USB_QUIRK_RESET_RESUME }, + /* Genesys Logic hub, internally used by KY-688 USB 3.1 Type-C Hub */ + { USB_DEVICE(0x05e3, 0x0612), .driver_info = USB_QUIRK_NO_LPM }, + /* Genesys Logic hub, internally used by Moshi USB to Ethernet Adapter */ { USB_DEVICE(0x05e3, 0x0616), .driver_info = USB_QUIRK_NO_LPM },
drivers/usb/host/ehci-dbg.c +1 -1
@@ -850,7 +850,7 @@ static ssize_t fill_registers_buffer(struct debug_buffer *buf)default :/* unknown */ break; } - temp = (cap >>8 ) &0xff ; + offset = (cap >>8 ) &0xff ; } }#endif
drivers/usb/storage/uas-detect.h +4 -0
@@ -88,6 +88,10 @@ static int uas_use_uas_driver(struct usb_interface *intf, } } +/* All Seagate disk enclosures have broken ATA pass-through support */ +if (le16_to_cpu (udev->descriptor.idVendor) ==0x0bc2 ) + flags |=US_FL_NO_ATA_1X ; +usb_stor_adjust_quirks (udev, &flags);if (flags &US_FL_IGNORE_UAS ) {
fs/nfs/nfs4state.c +0 -1
@@ -1650,7 +1650,6 @@ static int nfs4_recovery_handle_error(struct nfs_client *clp, int error)break ;case -NFS4ERR_STALE_CLIENTID :set_bit (NFS4CLNT_LEASE_EXPIRED , &clp->cl_state); -nfs4_state_clear_reclaim_reboot (clp);nfs4_state_start_reclaim_reboot (clp);break ;case -NFS4ERR_EXPIRED :
include/linux/buffer_head.h +1 -3
@@ -236,12 +236,10 @@ static inline int block_page_mkwrite_return(int err) {if (err ==0 )return VM_FAULT_LOCKED ; -if (err == -EFAULT ) +if (err == -EFAULT || err == -EAGAIN )return VM_FAULT_NOPAGE ;if (err == -ENOMEM )return VM_FAULT_OOM ; -if (err == -EAGAIN ) -return VM_FAULT_RETRY ;/* -ENOSPC, -EDQUOT, -EIO ... */ return VM_FAULT_SIGBUS ; }
net/ipv6/ip6_vti.c +1 -1
@@ -172,12 +172,12 @@ static int vti6_tnl_create2(struct net_device *dev)struct vti6_net *ip6n =net_generic (net, vti6_net_id);int err; + dev->rtnl_link_ops = &vti6_link_ops; err =register_netdevice (dev);if (err <0 ) goto out;strcpy (t->parms.name, dev->name); - dev->rtnl_link_ops = &vti6_link_ops;dev_hold (dev);vti6_tnl_link (ip6n, t);
net/sctp/debug.c +1 -1
@@ -166,7 +166,7 @@ static const char *const sctp_timer_tbl[] = {/* Lookup timer debug name. */ const char *sctp_tname (const sctp_subtype_t id) { -if (id.timeout <=SCTP_EVENT_TIMEOUT_MAX ) +if (id.timeout <ARRAY_SIZE (sctp_timer_tbl))return sctp_timer_tbl[id.timeout];return "unknown_timer" ; }
net/tipc/server.c +1 -3
@@ -579,14 +579,12 @@ int tipc_server_start(struct tipc_server *s)void tipc_server_stop (struct tipc_server *s) {struct tipc_conn *con; -int total =0 ;int id;spin_lock_bh (&s->idr_lock); -for (id =0 ; total < s->idr_in_use; id++) { +for (id =0 ; s->idr_in_use; id++) { con =idr_find (&s->conn_idr, id);if (con) { - total++;spin_unlock_bh (&s->idr_lock);tipc_close_conn (con);spin_lock_bh (&s->idr_lock);
security/integrity/ima/ima_main.c +4 -0
@@ -52,6 +52,8 @@ static int __init hash_setup(char *str) ima_hash_algo =HASH_ALGO_SHA1 ; else if (strncmp(str, "md5", 3) == 0) ima_hash_algo =HASH_ALGO_MD5 ; + else + return 1; goto out; }
@@ -61,6 +63,8 @@ static int __init hash_setup(char *str)break ; } } +if (i ==HASH_ALGO__LAST ) +return 1 ; out: hash_setup_done =1 ;return 1 ;
tools/perf/tests/attr.c +1 -1
@@ -150,7 +150,7 @@ static int run_dir(const char *d, const char *perf)snprintf (cmd,3 *PATH_MAX ,PYTHON " %s/attr.py -d %s/attr/ -p %s %.*s" , d, d, perf, vcnt, v); -return system (cmd); +return system (cmd) ?TEST_FAIL :TEST_OK ; }int test__attr (void )