Linux 3.14.72
Greg KH
maintainerI'm announcing the release of the 3.14.72 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
------------
Makefile | 2 +- arch/mips/ath79/early_printk.c | 6 ++++-- arch/mips/include/uapi/asm/siginfo.h | 18 +++++++++--------- arch/mips/math-emu/cp1emu.c | 8 +++++--- arch/powerpc/kernel/exceptions-64s.S | 16 +++++++++++----- drivers/cpuidle/cpuidle.c | 2 ++ drivers/gpu/drm/drm_fb_helper.c | 5 ++--- drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c | 2 +- drivers/input/misc/uinput.c | 6 ++++++ drivers/net/wireless/ath/ath5k/led.c | 2 +- drivers/net/wireless/rtlwifi/base.c | 4 ++-- drivers/pci/probe.c | 6 +++--- drivers/scsi/aacraid/commsup.c | 12 ++++++++---- drivers/xen/events/events_base.c | 6 ++++-- fs/ext4/ialloc.c | 10 ++++++---- fs/ext4/mballoc.c | 10 +++++++--- fs/pipe.c | 5 ++++- fs/xfs/xfs_inode.c | 26 ++++++++++++++++++-------- lib/dma-debug.c | 2 +- net/sunrpc/auth_gss/svcauth_gss.c | 4 ++-- 20 files changed, 97 insertions(+), 55 deletions(-)
Ben Hutchings (1):
pipe: Fix buffer offset after partially failed read
Dave Chinner (3):
xfs: xfs_iflush_cluster fails to abort on error
xfs: fix inode validity check in xfs_iflush_cluster
xfs: skip stale inodes in xfs_iflush_cluster
Dave Gerlach (1):
cpuidle: Indicate when a device has been unregistered
Greg Kroah-Hartman (1):
Linux 3.14.72
Hari Bathini (1):
powerpc/book3s64: Fix branching to OOL handlers in relocatable kernel
Itai Handler (1):
drm/gma500: Fix possible out of bounds read
James Hogan (1):
MIPS: Fix siginfo.h to use strict posix types
Joseph Salisbury (1):
ath5k: Change led pin configuration for compaq c700 laptop
Lyude (1):
drm/fb_helper: Fix references to dev->mode_config.num_connector
Matthias Schiffer (1):
MIPS: ath79: make bootconsole wait for both THRE and TEMT
Nicolai Stange (2):
ext4: address UBSAN warning in mb_find_order_for_block()
ext4: silence UBSAN in ext4_mb_init()
Paul Burton (1):
MIPS: math-emu: Fix jalr emulation when rd == $0
Prarit Bhargava (1):
PCI: Disable all BAR sizing for devices with non-compliant BARs
Raghava Aditya Renukunta (2):
aacraid: Relinquish CPU during timeout wait
aacraid: Fix for aac_command_thread hang
Ricky Liang (1):
Input: uinput - handle compat ioctl for UI_SET_PHYS
Ross Lagerwall (1):
xen/events: Don't move disabled irqs
Theodore Ts'o (1):
ext4: fix hang when processing corrupted orphaned inode list
Tomáš Trnka (1):
sunrpc: fix stripping of padded MIC tokens
Ville Syrjälä (1):
dma-debug: avoid spinlock recursion when disabling dma-debug
wang yanqing (1):
rtlwifi: Fix logic error in enter/exit power-save mode
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 14 -SUBLEVEL = 71 +SUBLEVEL = 72 EXTRAVERSION = NAME = Remembering Coco
arch/mips/ath79/early_printk.c +4 -2
@@ -31,13 +31,15 @@ static inline void prom_putchar_wait(void __iomem *reg, u32 mask, u32 val) }while (1 ); } +#define BOTH_EMPTY (UART_LSR_TEMT | UART_LSR_THRE) +static void prom_putchar_ar71xx (unsigned char ch) {void __iomem *base = (void __iomem *)(KSEG1ADDR (AR71XX_UART_BASE )); -prom_putchar_wait (base +UART_LSR *4 ,UART_LSR_THRE ,UART_LSR_THRE ); +prom_putchar_wait (base +UART_LSR *4 ,BOTH_EMPTY ,BOTH_EMPTY );__raw_writel (ch, base +UART_TX *4 ); -prom_putchar_wait (base +UART_LSR *4 ,UART_LSR_THRE ,UART_LSR_THRE ); +prom_putchar_wait (base +UART_LSR *4 ,BOTH_EMPTY ,BOTH_EMPTY ); }static void prom_putchar_ar933x (unsigned char ch)
arch/mips/include/uapi/asm/siginfo.h +9 -9
@@ -48,13 +48,13 @@ typedef struct siginfo {/* kill() */ struct { -pid_t _pid;/* sender's pid */ +__kernel_pid_t _pid;/* sender's pid */ __ARCH_SI_UID_T _uid;/* sender's uid */ } _kill;/* POSIX.1b timers */ struct { -timer_t _tid;/* timer id */ +__kernel_timer_t _tid;/* timer id */ int _overrun;/* overrun count */ char _pad[sizeof ( __ARCH_SI_UID_T) -sizeof (int )];sigval_t _sigval;/* same as below */
@@ -63,26 +63,26 @@ typedef struct siginfo {/* POSIX.1b signals */ struct { -pid_t _pid;/* sender's pid */ +__kernel_pid_t _pid;/* sender's pid */ __ARCH_SI_UID_T _uid;/* sender's uid */ sigval_t _sigval; } _rt;/* SIGCHLD */ struct { -pid_t _pid;/* which child */ +__kernel_pid_t _pid;/* which child */ __ARCH_SI_UID_T _uid;/* sender's uid */ int _status;/* exit code */ -clock_t _utime; -clock_t _stime; +__kernel_clock_t _utime; +__kernel_clock_t _stime; } _sigchld;/* IRIX SIGCHLD */ struct { -pid_t _pid;/* which child */ -clock_t _utime; +__kernel_pid_t _pid;/* which child */ +__kernel_clock_t _utime;int _status;/* exit code */ -clock_t _stime; +__kernel_clock_t _stime; } _irix_sigchld;/* SIGILL, SIGFPE, SIGSEGV, SIGBUS */
arch/mips/math-emu/cp1emu.c +5 -3
@@ -676,9 +676,11 @@ static int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn,case spec_op:switch (insn.r_format.func) {case jalr_op: - regs->regs[insn.r_format.rd] = - regs->cp0_epc + dec_insn.pc_inc + - dec_insn.next_pc_inc; +if (insn.r_format.rd !=0 ) { + regs->regs[insn.r_format.rd] = + regs->cp0_epc + dec_insn.pc_inc + + dec_insn.next_pc_inc; + }/* Fall through */ case jr_op: *contpc = regs->regs[insn.r_format.rs];
arch/powerpc/kernel/exceptions-64s.S +11 -5
@@ -946,11 +946,6 @@ hv_facility_unavailable_relon_trampoline: #endif STD_RELON_EXCEPTION_PSERIES(0x5700, 0x1700, altivec_assist) - /* Other future vectors */ - .align 7 - .globl __end_interrupts -__end_interrupts: - .align 7 system_call_entry_direct: #if defined(CONFIG_RELOCATABLE)
@@ -1304,6 +1299,17 @@ __end_handlers: STD_RELON_EXCEPTION_PSERIES_OOL(0xf60, facility_unavailable) STD_RELON_EXCEPTION_HV_OOL(0xf80, hv_facility_unavailable) + /* + * The __end_interrupts marker must be past the out-of-line (OOL) + * handlers, so that they are copied to real address 0x100 when running + * a relocatable kernel. This ensures they can be reached from the short + * trampoline handlers (like 0x4f00, 0x4f20, etc.) which branch + * directly, without using LOAD_HANDLER(). + */ + .align 7 + .globl __end_interrupts +__end_interrupts: + #if defined(CONFIG_PPC_PSERIES) || defined(CONFIG_PPC_POWERNV) /* * Data area reserved for FWNMI option.
drivers/cpuidle/cpuidle.c +2 -0
@@ -313,6 +313,8 @@ static void __cpuidle_unregister_device(struct cpuidle_device *dev)list_del (&dev->device_list);per_cpu (cpuidle_devices, dev->cpu) =NULL ;module_put (drv->owner); + + dev->registered =0 ; }static void __cpuidle_device_init (struct cpuidle_device *dev)
drivers/gpu/drm/drm_fb_helper.c +2 -3
@@ -1347,7 +1347,6 @@ static int drm_pick_crtcs(struct drm_fb_helper *fb_helper, int n, int width, int height) { int c, o; -struct drm_device *dev = fb_helper->dev;struct drm_connector *connector;struct drm_connector_helper_funcs *connector_funcs;struct drm_encoder *encoder;
@@ -1366,7 +1365,7 @@ static int drm_pick_crtcs(struct drm_fb_helper *fb_helper,if (modes[n] ==NULL )return best_score; - crtcs =kzalloc (dev->mode_config.num_connector * + crtcs =kzalloc (fb_helper->connector_count *sizeof (struct drm_fb_helper_crtc *),GFP_KERNEL );if (!crtcs)return best_score;
@@ -1412,7 +1411,7 @@ static int drm_pick_crtcs(struct drm_fb_helper *fb_helper,if (score > best_score) { best_score = score;memcpy (best_crtcs, crtcs, - dev->mode_config.num_connector * + fb_helper->connector_count *sizeof (struct drm_fb_helper_crtc *)); } }
drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c +1 -1
@@ -85,7 +85,7 @@ static const char *const dsi_errors[] = {"RX Prot Violation" ,"HS Generic Write FIFO Full" ,"LP Generic Write FIFO Full" , -"Generic Read Data Avail" +"Generic Read Data Avail" ,"Special Packet Sent" , "Tearing Effect", };
drivers/input/misc/uinput.c +6 -0
@@ -845,9 +845,15 @@ static long uinput_ioctl(struct file *file, unsigned int cmd, unsigned long arg) }#ifdef CONFIG_COMPAT + +#define UI_SET_PHYS_COMPAT _IOW(UINPUT_IOCTL_BASE, 108, compat_uptr_t) +static long uinput_compat_ioctl (struct file *file,unsigned int cmd,unsigned long arg) { +if (cmd ==UI_SET_PHYS_COMPAT ) + cmd =UI_SET_PHYS ; +return uinput_ioctl_handler (file, cmd, arg,compat_ptr (arg)); }#endif
drivers/net/wireless/ath/ath5k/led.c +1 -1
@@ -77,7 +77,7 @@ static DEFINE_PCI_DEVICE_TABLE(ath5k_led_devices) = {/* HP Compaq CQ60-206US ([email protected]) */ { ATH_SDEVICE(PCI_VENDOR_ID_HP, 0x0137a), ATH_LED(3, 1) },/* HP Compaq C700 ([email protected]) */ - { ATH_SDEVICE(PCI_VENDOR_ID_HP, 0x0137b), ATH_LED(3, 1) }, + { ATH_SDEVICE(PCI_VENDOR_ID_HP, 0x0137b), ATH_LED(3, 0) },/* LiteOn AR5BXB63 ([email protected]) */ { ATH_SDEVICE(PCI_VENDOR_ID_ATHEROS, 0x3067), ATH_LED(3, 0) },/* IBM-specific AR5212 (all others) */
drivers/net/wireless/rtlwifi/base.c +2 -2
@@ -1401,9 +1401,9 @@ void rtl_watchdog_wq_callback(void *data)if (((rtlpriv->link_info.num_rx_inperiod + rtlpriv->link_info.num_tx_inperiod) >8 ) || (rtlpriv->link_info.num_rx_inperiod >2 )) - rtlpriv->enter_ps = true; -else rtlpriv->enter_ps = false; +else + rtlpriv->enter_ps = true;/* LeisurePS only work in infra mode. */ schedule_work (&rtlpriv->works.lps_change_work);
drivers/pci/probe.c +3 -3
@@ -175,9 +175,6 @@ int __pci_read_base(struct pci_dev *dev, enum pci_bar_type type,struct pci_bus_region region, inverted_region;bool bar_too_big = false, bar_disabled = false; -if (dev->non_compliant_bars) -return 0 ; - mask = type ?PCI_ROM_ADDRESS_MASK : ~0 ;/* No printks while decoding is disabled! */
@@ -319,6 +316,9 @@ static void pci_read_bases(struct pci_dev *dev, unsigned int howmany, int rom) {unsigned int pos, reg; +if (dev->non_compliant_bars) +return ; +for (pos =0 ; pos < howmany; pos++) {struct resource *res = &dev->resource[pos]; reg =PCI_BASE_ADDRESS_0 + (pos <<2 );
drivers/scsi/aacraid/commsup.c +8 -4
@@ -590,10 +590,10 @@ int aac_fib_send(u16 command, struct fib *fibptr, unsigned long size, }return -EFAULT ; } -/* We used to udelay() here but that absorbed -* a CPU when a timeout occured. Not very -* useful. */ -cpu_relax (); +/* +* Allow other processes / CPUS to use core +*/ +schedule (); } }else if (down_interruptible (&fibptr->event_wait)) {/* Do nothing ... satisfy
@@ -1921,6 +1921,10 @@ int aac_command_thread(void *data)if (difference <=0 ) difference =1 ;set_current_state (TASK_INTERRUPTIBLE ); + +if (kthread_should_stop ()) +break ; +schedule_timeout (difference);if (kthread_should_stop ())
drivers/xen/events/events_base.c +4 -2
@@ -506,7 +506,8 @@ static void eoi_pirq(struct irq_data *data)if (!VALID_EVTCHN (evtchn))return ; -if (unlikely (irqd_is_setaffinity_pending (data))) { +if (unlikely (irqd_is_setaffinity_pending (data)) && +likely (!irqd_irq_disabled (data))) {int masked =test_and_set_mask (evtchn);clear_evtchn (evtchn);
@@ -1408,7 +1409,8 @@ static void ack_dynirq(struct irq_data *data)if (!VALID_EVTCHN (evtchn))return ; -if (unlikely (irqd_is_setaffinity_pending (data))) { +if (unlikely (irqd_is_setaffinity_pending (data)) && +likely (!irqd_irq_disabled (data))) {int masked =test_and_set_mask (evtchn);clear_evtchn (evtchn);
fs/ext4/ialloc.c +6 -4
@@ -1097,11 +1097,13 @@ struct inode *ext4_orphan_get(struct super_block *sb, unsigned long ino) goto iget_failed;/* -* If the orphans has i_nlinks > 0 then it should be able to be -* truncated, otherwise it won't be removed from the orphan list -* during processing and an infinite loop will result. +* If the orphans has i_nlinks > 0 then it should be able to +* be truncated, otherwise it won't be removed from the orphan +* list during processing and an infinite loop will result. +* Similarly, it must not be a bad inode. */ -if (inode->i_nlink && !ext4_can_truncate (inode)) +if ((inode->i_nlink && !ext4_can_truncate (inode)) || +is_bad_inode (inode)) goto bad_orphan;if (NEXT_ORPHAN (inode) > max_ino)
fs/ext4/mballoc.c +7 -3
@@ -1236,6 +1236,7 @@ static void ext4_mb_unload_buddy(struct ext4_buddy *e4b)static int mb_find_order_for_block (struct ext4_buddy *e4b,int block) {int order =1 ; +int bb_incr =1 << (e4b->bd_blkbits -1 );void *bb;BUG_ON (e4b->bd_bitmap == e4b->bd_buddy);
@@ -1248,7 +1249,8 @@ static int mb_find_order_for_block(struct ext4_buddy *e4b, int block)/* this block is part of buddy of order 'order' */ return order; } - bb +=1 << (e4b->bd_blkbits - order); + bb += bb_incr; + bb_incr >>=1 ; order++; }return 0 ;
@@ -2535,7 +2537,7 @@ int ext4_mb_init(struct super_block *sb) {struct ext4_sb_info *sbi =EXT4_SB (sb);unsigned i, j; -unsigned offset; +unsigned offset, offset_incr;unsigned max;int ret;
@@ -2564,11 +2566,13 @@ int ext4_mb_init(struct super_block *sb) i =1 ; offset =0 ; + offset_incr =1 << (sb->s_blocksize_bits -1 ); max = sb->s_blocksize <<2 ;do { sbi->s_mb_offsets[i] = offset; sbi->s_mb_maxs[i] = max; - offset +=1 << (sb->s_blocksize_bits - i); + offset += offset_incr; + offset_incr = offset_incr >>1 ; max = max >>1 ; i++; }while (i <= sb->s_blocksize_bits +1 );
fs/pipe.c +4 -1
@@ -401,6 +401,7 @@ pipe_read(struct kiocb *iocb, const struct iovec *_iov,void *addr;size_t chars = buf->len, remaining;int error, atomic; +int offset;if (chars > total_len) chars = total_len;
@@ -414,9 +415,10 @@ pipe_read(struct kiocb *iocb, const struct iovec *_iov, atomic = !iov_fault_in_pages_write (iov, chars); remaining = chars; + offset = buf->offset; redo: addr = ops->map (pipe, buf, atomic); - error =pipe_iov_copy_to_user (iov, addr, &buf->offset, + error =pipe_iov_copy_to_user (iov, addr, &offset, &remaining, atomic); ops->unmap (pipe, buf, addr);if (unlikely (error)) {
@@ -432,6 +434,7 @@ redo:break ; } ret += chars; + buf->offset += chars; buf->len -= chars;/* Was it a packet buffer? Clean up and exit */
fs/xfs/xfs_inode.c +18 -8
@@ -2923,13 +2923,14 @@ xfs_iflush_cluster(* We need to check under the i_flags_lock for a valid inode * here. Skip it if it is not valid or the wrong inode. */ -spin_lock (&ip->i_flags_lock); -if (!ip->i_ino || +spin_lock (&iq->i_flags_lock); +if (!iq->i_ino || +__xfs_iflags_test (iq,XFS_ISTALE ) || (XFS_INO_TO_AGINO (mp, iq->i_ino) & mask) != first_index) { -spin_unlock (&ip->i_flags_lock); +spin_unlock (&iq->i_flags_lock);continue ; } -spin_unlock (&ip->i_flags_lock); +spin_unlock (&iq->i_flags_lock);/* * Do an un-protected check to see if the inode is dirty and
@@ -3045,7 +3046,7 @@ xfs_iflush( struct xfs_buf **bpp) {struct xfs_mount *mp = ip->i_mount; -struct xfs_buf *bp; +struct xfs_buf *bp =NULL ;struct xfs_dinode *dip;int error;
@@ -3087,14 +3088,22 @@ xfs_iflush( }/* -* Get the buffer containing the on-disk inode. +* Get the buffer containing the on-disk inode. We are doing a try-lock +* operation here, so we may get an EAGAIN error. In that case, we +* simply want to return with the inode still dirty. +* +* If we get any other error, we effectively have a corruption situation +* and we cannot flush the inode, so we treat it the same as failing +* xfs_iflush_int(). */ error =xfs_imap_to_bp (mp,NULL , &ip->i_imap, &dip, &bp,XBF_TRYLOCK ,0 ); -if (error || !bp) { +if (error == -EAGAIN ) {xfs_ifunlock (ip);return error; } +if (error) + goto corrupt_out;/* * First flush out the inode that xfs_iflush was called with.
@@ -3122,7 +3131,8 @@ xfs_iflush(return 0 ; corrupt_out: -xfs_buf_relse (bp); +if (bp) +xfs_buf_relse (bp);xfs_force_shutdown (mp,SHUTDOWN_CORRUPT_INCORE ); cluster_corrupt_out: error =XFS_ERROR (EFSCORRUPTED );
lib/dma-debug.c +1 -1
@@ -646,9 +646,9 @@ static struct dma_debug_entry *dma_entry_alloc(void)spin_lock_irqsave (&free_entries_lock, flags);if (list_empty (&free_entries)) { -pr_err ("DMA-API: debugging out of memory - disabling\n" ); global_disable = true;spin_unlock_irqrestore (&free_entries_lock, flags); +pr_err ("DMA-API: debugging out of memory - disabling\n" );return NULL ; }
net/sunrpc/auth_gss/svcauth_gss.c +2 -2
@@ -855,8 +855,8 @@ unwrap_integ_data(struct svc_rqst *rqstp, struct xdr_buf *buf, u32 seq, struct g goto out;if (svc_getnl (&buf->head[0 ]) != seq) goto out; -/* trim off the mic at the end before returning */ -xdr_buf_trim (buf, mic.len +4 ); +/* trim off the mic and padding at the end before returning */ +xdr_buf_trim (buf,round_up_to_quad (mic.len) +4 ); stat =0 ; out:kfree (mic.data);