Linux 4.9.47
Greg KH
maintainerI'm announcing the release of the 4.9.47 kernel.
All users of the 4.9 kernel series must upgrade.
The updated 4.9.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.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/kvm/mmu.c | 16 ++--- arch/arm64/kernel/fpsimd.c | 2 arch/arm64/mm/fault.c | 5 + arch/x86/include/asm/io.h | 4 - drivers/net/wireless/intersil/p54/fwio.c | 2 drivers/scsi/isci/remote_node_context.c | 3 + drivers/scsi/sg.c | 49 ++++++++++------- drivers/staging/wilc1000/linux_wlan.c | 34 +++--------- kernel/gcov/base.c | 6 ++ kernel/gcov/gcc_4_7.c | 4 + kernel/locking/spinlock_debug.c | 86 +------------------------------ lib/lz4/lz4hc_compress.c | 2 13 files changed, 73 insertions(+), 142 deletions(-)
Arnd Bergmann (3):
scsi: isci: avoid array subscript warning
staging: wilc1000: simplify vif[i]->ndev accesses x86/io: Add "memory" clobber to insb/insw/insl/outsb/outsw/outsl
Dave Martin (1):
arm64: fpsimd: Prevent registers leaking across exec
Greg Kroah-Hartman (2):
lz4: fix bogus gcc warning
Linux 4.9.47
Hannes Reinecke (2):
scsi: sg: protect accesses to 'reserved' page array
scsi: sg: reset 'res_in_use' after unlinking reserved array
Jiri Slaby (1):
p54: memset(0) whole array
Mark Rutland (1):
arm64: mm: abort uaccess retries upon fatal signal
Martin Liska (1):
gcov: support GCC 7.1
Suzuki K Poulose (1):
kvm: arm/arm64: Fix race in resetting stage2 PGD
Waiman Long (1):
locking/spinlock/debug: Remove spinlock lockup detection code
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 9 -SUBLEVEL = 46 +SUBLEVEL = 47 EXTRAVERSION = NAME = Roaring Lionus
arch/arm/kvm/mmu.c +8 -8
@@ -829,22 +829,22 @@ void stage2_unmap_vm(struct kvm *kvm)* Walks the level-1 page table pointed to by kvm->arch.pgd and frees all * underlying level-2 and level-3 tables before freeing the actual level-1 table * and setting the struct pointer to NULL. -* -* Note we don't need locking here as this is only called when the VM is -* destroyed, which can only be done once. */ void kvm_free_stage2_pgd (struct kvm *kvm) { -if (kvm->arch.pgd ==NULL ) -return ; +void *pgd =NULL ;spin_lock (&kvm->mmu_lock); -unmap_stage2_range (kvm,0 ,KVM_PHYS_SIZE ); +if (kvm->arch.pgd) { +unmap_stage2_range (kvm,0 ,KVM_PHYS_SIZE ); + pgd = kvm->arch.pgd; + kvm->arch.pgd =NULL ; + }spin_unlock (&kvm->mmu_lock);/* Free the HW pgd, one page at a time */ -free_pages_exact (kvm->arch.pgd,S2_PGD_SIZE ); - kvm->arch.pgd =NULL ; +if (pgd) +free_pages_exact (pgd,S2_PGD_SIZE ); } static pud_t *stage2_get_pud(struct kvm *kvm, struct kvm_mmu_memory_cache *cache,
arch/arm64/kernel/fpsimd.c +2 -0
@@ -157,9 +157,11 @@ void fpsimd_thread_switch(struct task_struct *next)void fpsimd_flush_thread (void ) { +preempt_disable ();memset (¤t->thread.fpsimd_state,0 ,sizeof (struct fpsimd_state ));fpsimd_flush_task_state (current);set_thread_flag (TIF_FOREIGN_FPSTATE ); +preempt_enable (); }/*
arch/arm64/mm/fault.c +4 -1
@@ -373,8 +373,11 @@ static int __kprobes do_page_fault(unsigned long addr, unsigned int esr,* signal first. We do not need to release the mmap_sem because it * would already be released in __lock_page_or_retry in mm/filemap.c. */ -if ((fault &VM_FAULT_RETRY ) &&fatal_signal_pending (current)) +if ((fault &VM_FAULT_RETRY ) &&fatal_signal_pending (current)) { +if (!user_mode (regs)) + goto no_context;return 0 ; + }/* * Major/minor page fault accounting is only done on the initial
arch/x86/include/asm/io.h +2 -2
@@ -304,13 +304,13 @@ static inline unsigned type in##bwl##_p(int port) \ static inline void outs##bwl(int port, const void *addr, unsigned long count) \ { \ asm volatile("rep; outs" #bwl \ - : "+S"(addr), "+c"(count) : "d"(port)); \ + : "+S"(addr), "+c"(count) : "d"(port) : "memory"); \ } \ \ static inline void ins##bwl(int port, void *addr, unsigned long count) \ { \ asm volatile("rep; ins" #bwl \ - : "+D"(addr), "+c"(count) : "d"(port)); \ + : "+D"(addr), "+c"(count) : "d"(port) : "memory"); \ }BUILDIO (b, b, char)
drivers/net/wireless/intersil/p54/fwio.c +1 -1
@@ -488,7 +488,7 @@ int p54_scan(struct p54_common *priv, u16 mode, u16 dwell) entry +=sizeof (__le16); chan->pa_points_per_curve =8 ; -memset (chan->curve_data,0 ,sizeof (*chan->curve_data)); +memset (chan->curve_data,0 ,sizeof (chan->curve_data));memcpy (chan->curve_data, entry,sizeof (struct p54_pa_curve_data_sample ) *min ((u8 )8 , curve_data->points_per_channel));
drivers/scsi/isci/remote_node_context.c +3 -0
@@ -66,6 +66,9 @@ const char *rnc_state_name(enum scis_sds_remote_node_context_states state) {static const char *const strings[] =RNC_STATES ; +if (state >=ARRAY_SIZE (strings)) +return "UNKNOWN" ; +return strings[state]; }#undef C
drivers/scsi/sg.c +28 -21
130 lines not on this page · raw message
drivers/staging/wilc1000/linux_wlan.c +9 -25
@@ -269,23 +269,12 @@ static struct net_device *get_if_handler(struct wilc *wilc, u8 *mac_header)int wilc_wlan_set_bssid (struct net_device *wilc_netdev,u8 *bssid,u8 mode) { -int i =0 ; -int ret =-1 ; -struct wilc_vif *vif; -struct wilc *wilc; - - vif =netdev_priv (wilc_netdev); - wilc = vif->wilc; +struct wilc_vif *vif =netdev_priv (wilc_netdev); -for (i =0 ; i < wilc->vif_num; i++) -if (wilc->vif[i]->ndev == wilc_netdev) { -memcpy (wilc->vif[i]->bssid, bssid,6 ); - wilc->vif[i]->mode = mode; - ret =0 ; -break ; - } +memcpy (vif->bssid, bssid,6 ); + vif->mode = mode; -return ret; +return 0 ; }int wilc_wlan_get_num_conn_ifcs (struct wilc *wilc)
@@ -1212,16 +1201,11 @@ void WILC_WFI_mgmt_rx(struct wilc *wilc, u8 *buff, u32 size)void wilc_netdev_cleanup (struct wilc *wilc) { -int i =0 ; -struct wilc_vif *vif[NUM_CONCURRENT_IFC ]; +int i; -if (wilc && (wilc->vif[0 ]->ndev || wilc->vif[1 ]->ndev)) { +if (wilc && (wilc->vif[0 ]->ndev || wilc->vif[1 ]->ndev))unregister_inetaddr_notifier (&g_dev_notifier); -for (i =0 ; i <NUM_CONCURRENT_IFC ; i++) - vif[i] =netdev_priv (wilc->vif[i]->ndev); - } -if (wilc && wilc->firmware) {release_firmware (wilc->firmware); wilc->firmware =NULL ;
@@ -1230,7 +1214,7 @@ void wilc_netdev_cleanup(struct wilc *wilc)if (wilc && (wilc->vif[0 ]->ndev || wilc->vif[1 ]->ndev)) {for (i =0 ; i <NUM_CONCURRENT_IFC ; i++)if (wilc->vif[i]->ndev) -if (vif[i]->mac_opened) +if (wilc->vif[i]->mac_opened)wilc_mac_close (wilc->vif[i]->ndev);for (i =0 ; i <NUM_CONCURRENT_IFC ; i++) {
@@ -1278,9 +1262,9 @@ int wilc_netdev_init(struct wilc **wilc, struct device *dev, int io_type, vif->idx = wl->vif_num; vif->wilc = *wilc; + vif->ndev = ndev; wl->vif[i] = vif; - wl->vif[wl->vif_num]->ndev = ndev; - wl->vif_num++; + wl->vif_num = i; ndev->netdev_ops = &wilc_netdev_ops; {
kernel/gcov/base.c +6 -0
@@ -98,6 +98,12 @@ void __gcov_merge_icall_topn(gcov_type *counters, unsigned int n_counters) }EXPORT_SYMBOL (__gcov_merge_icall_topn); +void __gcov_exit (void ) +{ +/* Unused. */ +} +EXPORT_SYMBOL (__gcov_exit); +/** * gcov_enable_events - enable event reporting through gcov_event() *
kernel/gcov/gcc_4_7.c +3 -1
@@ -18,7 +18,9 @@#include <linux/vmalloc.h> #include "gcov.h" -#if (__GNUC__ >5 ) || (__GNUC__ ==5 && __GNUC_MINOR__ >=1 ) +#if (__GNUC__ >=7 ) +#define GCOV_COUNTERS 9 +#elif (__GNUC__ >5 ) || (__GNUC__ ==5 && __GNUC_MINOR__ >=1 )#define GCOV_COUNTERS 10#elif __GNUC__ ==4 && __GNUC_MINOR__ >=9 #define GCOV_COUNTERS 9
kernel/locking/spinlock_debug.c +5 -81
107 lines not on this page · raw message
lib/lz4/lz4hc_compress.c +1 -1
@@ -131,7 +131,7 @@ static inline int lz4hc_insertandfindbestmatch(struct lz4hc_data *hc4,#endif int nbattempts =MAX_NB_ATTEMPTS ;size_t repl =0 , ml =0 ; -u16 delta; +u16 delta =0 ;/* HC4 match finder */ lz4hc_insert (hc4, ip);