Re: Linux 4.4.81

2017-08-11 Thread Greg KH
diff --git a/Makefile b/Makefile
index 55adde24..d049e53a6960 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 VERSION = 4
 PATCHLEVEL = 4
-SUBLEVEL = 80
+SUBLEVEL = 81
 EXTRAVERSION =
 NAME = Blurry Fish Butt
 
diff --git a/arch/arm/boot/dts/armada-388-gp.dts 
b/arch/arm/boot/dts/armada-388-gp.dts
index cd316021d6ce..6c1b45c1af66 100644
--- a/arch/arm/boot/dts/armada-388-gp.dts
+++ b/arch/arm/boot/dts/armada-388-gp.dts
@@ -89,7 +89,7 @@
pinctrl-names = "default";
pinctrl-0 = <_pins>;
interrupt-parent = <>;
-   interrupts = <18 IRQ_TYPE_EDGE_FALLING>;
+   interrupts = <18 IRQ_TYPE_LEVEL_LOW>;
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
@@ -101,7 +101,7 @@
compatible = "nxp,pca9555";
pinctrl-names = "default";
interrupt-parent = <>;
-   interrupts = <18 IRQ_TYPE_EDGE_FALLING>;
+   interrupts = <18 IRQ_TYPE_LEVEL_LOW>;
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
diff --git a/arch/arm/include/asm/ftrace.h b/arch/arm/include/asm/ftrace.h
index bfe2a2f5a644..22b73112b75f 100644
--- a/arch/arm/include/asm/ftrace.h
+++ b/arch/arm/include/asm/ftrace.h
@@ -54,6 +54,24 @@ static inline void *return_address(unsigned int level)
 
 #define ftrace_return_address(n) return_address(n)
 
+#define ARCH_HAS_SYSCALL_MATCH_SYM_NAME
+
+static inline bool arch_syscall_match_sym_name(const char *sym,
+  const char *name)
+{
+   if (!strcmp(sym, "sys_mmap2"))
+   sym = "sys_mmap_pgoff";
+   else if (!strcmp(sym, "sys_statfs64_wrapper"))
+   sym = "sys_statfs64";
+   else if (!strcmp(sym, "sys_fstatfs64_wrapper"))
+   sym = "sys_fstatfs64";
+   else if (!strcmp(sym, "sys_arm_fadvise64_64"))
+   sym = "sys_fadvise64_64";
+
+   /* Ignore case since sym may start with "SyS" instead of "sys" */
+   return !strcasecmp(sym, name);
+}
+
 #endif /* ifndef __ASSEMBLY__ */
 
 #endif /* _ASM_ARM_FTRACE */
diff --git a/arch/sparc/include/asm/trap_block.h 
b/arch/sparc/include/asm/trap_block.h
index ec9c04de3664..ff05992dae7a 100644
--- a/arch/sparc/include/asm/trap_block.h
+++ b/arch/sparc/include/asm/trap_block.h
@@ -54,6 +54,7 @@ extern struct trap_per_cpu trap_block[NR_CPUS];
 void init_cur_cpu_trap(struct thread_info *);
 void setup_tba(void);
 extern int ncpus_probed;
+extern u64 cpu_mondo_counter[NR_CPUS];
 
 unsigned long real_hard_smp_processor_id(void);
 
diff --git a/arch/sparc/kernel/smp_64.c b/arch/sparc/kernel/smp_64.c
index 95a9fa0d2195..4511caa3b7e9 100644
--- a/arch/sparc/kernel/smp_64.c
+++ b/arch/sparc/kernel/smp_64.c
@@ -617,22 +617,48 @@ retry:
}
 }
 
-/* Multi-cpu list version.  */
+#defineCPU_MONDO_COUNTER(cpuid)(cpu_mondo_counter[cpuid])
+#defineMONDO_USEC_WAIT_MIN 2
+#defineMONDO_USEC_WAIT_MAX 100
+#defineMONDO_RETRY_LIMIT   50
+
+/* Multi-cpu list version.
+ *
+ * Deliver xcalls to 'cnt' number of cpus in 'cpu_list'.
+ * Sometimes not all cpus receive the mondo, requiring us to re-send
+ * the mondo until all cpus have received, or cpus are truly stuck
+ * unable to receive mondo, and we timeout.
+ * Occasionally a target cpu strand is borrowed briefly by hypervisor to
+ * perform guest service, such as PCIe error handling. Consider the
+ * service time, 1 second overall wait is reasonable for 1 cpu.
+ * Here two in-between mondo check wait time are defined: 2 usec for
+ * single cpu quick turn around and up to 100usec for large cpu count.
+ * Deliver mondo to large number of cpus could take longer, we adjusts
+ * the retry count as long as target cpus are making forward progress.
+ */
 static void hypervisor_xcall_deliver(struct trap_per_cpu *tb, int cnt)
 {
-   int retries, this_cpu, prev_sent, i, saw_cpu_error;
+   int this_cpu, tot_cpus, prev_sent, i, rem;
+   int usec_wait, retries, tot_retries;
+   u16 first_cpu = 0x;
+   unsigned long xc_rcvd = 0;
unsigned long status;
+   int ecpuerror_id = 0;
+   int enocpu_id = 0;
u16 *cpu_list;
+   u16 cpu;
 
this_cpu = smp_processor_id();
-
cpu_list = __va(tb->cpu_list_pa);
-
-   saw_cpu_error = 0;
-   retries = 0;
+   usec_wait = cnt * MONDO_USEC_WAIT_MIN;
+   if (usec_wait > MONDO_USEC_WAIT_MAX)
+   usec_wait = 

Re: Linux 4.4.81

2017-08-11 Thread Greg KH
diff --git a/Makefile b/Makefile
index 55adde24..d049e53a6960 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 VERSION = 4
 PATCHLEVEL = 4
-SUBLEVEL = 80
+SUBLEVEL = 81
 EXTRAVERSION =
 NAME = Blurry Fish Butt
 
diff --git a/arch/arm/boot/dts/armada-388-gp.dts 
b/arch/arm/boot/dts/armada-388-gp.dts
index cd316021d6ce..6c1b45c1af66 100644
--- a/arch/arm/boot/dts/armada-388-gp.dts
+++ b/arch/arm/boot/dts/armada-388-gp.dts
@@ -89,7 +89,7 @@
pinctrl-names = "default";
pinctrl-0 = <_pins>;
interrupt-parent = <>;
-   interrupts = <18 IRQ_TYPE_EDGE_FALLING>;
+   interrupts = <18 IRQ_TYPE_LEVEL_LOW>;
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
@@ -101,7 +101,7 @@
compatible = "nxp,pca9555";
pinctrl-names = "default";
interrupt-parent = <>;
-   interrupts = <18 IRQ_TYPE_EDGE_FALLING>;
+   interrupts = <18 IRQ_TYPE_LEVEL_LOW>;
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
diff --git a/arch/arm/include/asm/ftrace.h b/arch/arm/include/asm/ftrace.h
index bfe2a2f5a644..22b73112b75f 100644
--- a/arch/arm/include/asm/ftrace.h
+++ b/arch/arm/include/asm/ftrace.h
@@ -54,6 +54,24 @@ static inline void *return_address(unsigned int level)
 
 #define ftrace_return_address(n) return_address(n)
 
+#define ARCH_HAS_SYSCALL_MATCH_SYM_NAME
+
+static inline bool arch_syscall_match_sym_name(const char *sym,
+  const char *name)
+{
+   if (!strcmp(sym, "sys_mmap2"))
+   sym = "sys_mmap_pgoff";
+   else if (!strcmp(sym, "sys_statfs64_wrapper"))
+   sym = "sys_statfs64";
+   else if (!strcmp(sym, "sys_fstatfs64_wrapper"))
+   sym = "sys_fstatfs64";
+   else if (!strcmp(sym, "sys_arm_fadvise64_64"))
+   sym = "sys_fadvise64_64";
+
+   /* Ignore case since sym may start with "SyS" instead of "sys" */
+   return !strcasecmp(sym, name);
+}
+
 #endif /* ifndef __ASSEMBLY__ */
 
 #endif /* _ASM_ARM_FTRACE */
diff --git a/arch/sparc/include/asm/trap_block.h 
b/arch/sparc/include/asm/trap_block.h
index ec9c04de3664..ff05992dae7a 100644
--- a/arch/sparc/include/asm/trap_block.h
+++ b/arch/sparc/include/asm/trap_block.h
@@ -54,6 +54,7 @@ extern struct trap_per_cpu trap_block[NR_CPUS];
 void init_cur_cpu_trap(struct thread_info *);
 void setup_tba(void);
 extern int ncpus_probed;
+extern u64 cpu_mondo_counter[NR_CPUS];
 
 unsigned long real_hard_smp_processor_id(void);
 
diff --git a/arch/sparc/kernel/smp_64.c b/arch/sparc/kernel/smp_64.c
index 95a9fa0d2195..4511caa3b7e9 100644
--- a/arch/sparc/kernel/smp_64.c
+++ b/arch/sparc/kernel/smp_64.c
@@ -617,22 +617,48 @@ retry:
}
 }
 
-/* Multi-cpu list version.  */
+#defineCPU_MONDO_COUNTER(cpuid)(cpu_mondo_counter[cpuid])
+#defineMONDO_USEC_WAIT_MIN 2
+#defineMONDO_USEC_WAIT_MAX 100
+#defineMONDO_RETRY_LIMIT   50
+
+/* Multi-cpu list version.
+ *
+ * Deliver xcalls to 'cnt' number of cpus in 'cpu_list'.
+ * Sometimes not all cpus receive the mondo, requiring us to re-send
+ * the mondo until all cpus have received, or cpus are truly stuck
+ * unable to receive mondo, and we timeout.
+ * Occasionally a target cpu strand is borrowed briefly by hypervisor to
+ * perform guest service, such as PCIe error handling. Consider the
+ * service time, 1 second overall wait is reasonable for 1 cpu.
+ * Here two in-between mondo check wait time are defined: 2 usec for
+ * single cpu quick turn around and up to 100usec for large cpu count.
+ * Deliver mondo to large number of cpus could take longer, we adjusts
+ * the retry count as long as target cpus are making forward progress.
+ */
 static void hypervisor_xcall_deliver(struct trap_per_cpu *tb, int cnt)
 {
-   int retries, this_cpu, prev_sent, i, saw_cpu_error;
+   int this_cpu, tot_cpus, prev_sent, i, rem;
+   int usec_wait, retries, tot_retries;
+   u16 first_cpu = 0x;
+   unsigned long xc_rcvd = 0;
unsigned long status;
+   int ecpuerror_id = 0;
+   int enocpu_id = 0;
u16 *cpu_list;
+   u16 cpu;
 
this_cpu = smp_processor_id();
-
cpu_list = __va(tb->cpu_list_pa);
-
-   saw_cpu_error = 0;
-   retries = 0;
+   usec_wait = cnt * MONDO_USEC_WAIT_MIN;
+   if (usec_wait > MONDO_USEC_WAIT_MAX)
+   usec_wait = 

Linux 4.4.81

2017-08-11 Thread Greg KH
vid S. Miller (1):
  net: Zero terminate ifr_name in dev_ifname().

Florian Fainelli (2):
  net: phy: Correctly process PHY_HALTED in phy_stop_machine()
  net: phy: Fix PHY unbind crash

Gerd Hoffmann (1):
  drm/virtio: fix framebuffer sparse warning

Greg Kroah-Hartman (2):
  drm: rcar-du: fix backport bug
      Linux 4.4.81

Gregory CLEMENT (1):
  ARM: dts: armada-38x: Fix irq type for pca955

Grygorii Strashko (1):
  net: phy: dp83867: fix irq generation

Jamie Iles (1):
  signal: protect SIGNAL_UNKILLABLE from unintentional clearing.

Jan Kara (1):
  ext4: fix SEEK_HOLE/SEEK_DATA for blocksize < pagesize

Jane Chu (1):
  sparc64: Measure receiver forward progress to avoid send mondo timeout

Jerry Lee (1):
  ext4: fix overflow caused by missing cast in ext4_resize_fs()

Jiang Yi (1):
  iscsi-target: Always wait for kthread_should_stop() before kthread exit

Jin Qian (1):
  f2fs: sanity check checkpoint segno and blkoff

Josh Poimboeuf (1):
  mm/page_alloc: Remove kernel address exposure in free_reserved_area()

Liping Zhang (1):
  openvswitch: fix potential out of bound access in parse_ct

Mahesh Bandewar (1):
  ipv4: initialize fib_trie prior to register_netdev_notifier call.

Marc Gonzalez (1):
  net: ethernet: nb8800: Handle all 4 RGMII modes identically

Mel Gorman (1):
  mm, mprotect: flush TLB if potentially racing with a parallel reclaim 
leaving stale TLB entries

Michael Chan (1):
  tg3: Fix race condition in tg3_get_stats64().

Michal Hocko (1):
  mm, slab: make sure that KMALLOC_MAX_SIZE will fit into MAX_ORDER

Michal Kubeček (1):
  net: account for current skb length when deciding about UFO

Milan P. Gandhi (1):
  scsi: qla2xxx: Get mutex lock before checking optrom_state

Moshe Shemesh (1):
  net/mlx5: Fix command bad flow on command entry allocation failure

Nicholas Bellinger (5):
  target: Avoid mappedlun symlink creation during lun shutdown
  iscsi-target: Fix early sk_data_ready LOGIN_FLAGS_READY race
  iscsi-target: Fix initial login PDU asynchronous socket close OOPs
  iscsi-target: Fix delayed logout processing greater than 
SECONDS_FOR_LOGOUT_COMP
  iser-target: Avoid isert_conn->cm_id dereference in isert_login_recv_done

Nicholas Mc Guire (1):
  x86/boot: Add missing declaration of string functions

Omar Sandoval (1):
  virtio_blk: fix panic in initialization error path

Prabhakar Lad (1):
  media: platform: davinci: return -EINVAL for VPFE_CMD_S_CCDC_RAW_PARAMS 
ioctl

Rabin Vincent (1):
  ARM: 8632/1: ftrace: fix syscall name matching

Sabrina Dubroca (1):
  ipv6: avoid overflow of offset in ip6_find_1stfragopt

Sean Young (1):
  media: lirc: LIRC_GET_REC_RESOLUTION should return microseconds

Sergei A. Trusov (1):
  ALSA: hda - Fix speaker output from VAIO VPCL14M1R

Sergei Shtylyov (1):
  sh_eth: R8A7740 supports packet shecksumming

Stefano Brivio (1):
  ipv6: Don't increase IPSTATS_MIB_FRAGFAILS twice in ip6_fragment()

Steven Toth (1):
  saa7164: fix double fetch PCIe access condition

Sudip Mukherjee (1):
  lib/Kconfig.debug: fix frv build failure

Tejun Heo (2):
  workqueue: restore WQ_UNBOUND/max_active==1 to be ordered
  workqueue: implicit ordered attribute should be overridable

Thomas Jarosch (1):
  mcs7780: Fix initialization when CONFIG_VMAP_STACK is enabled

WANG Cong (2):
  rtnetlink: allocate more memory for dev_set_mac_address()
  packet: fix use-after-free in prb_retire_rx_blk_timer_expired()

Wanpeng Li (1):
  KVM: async_pf: make rcu irq exit if not triggered from idle task

Wei Liu (1):
  xen-netback: correctly schedule rate-limited queues

Xin Long (4):
  dccp: fix a memleak that dccp_ipv6 doesn't put reqsk properly
  dccp: fix a memleak that dccp_ipv4 doesn't put reqsk properly
  dccp: fix a memleak for dccp_feat_init err process
  sctp: fix the check for _sctp_walk_params and _sctp_walk_errors

Zefir Kurtisi (1):
  phy state machine: failsafe leave invalid RUNNING state

zheng li (1):
  ipv4: Should use consistent conditional judgement for ip fragment in 
__ip_append_data and ip_finish_output



signature.asc
Description: PGP signature


Linux 4.4.81

2017-08-11 Thread Greg KH
vid S. Miller (1):
  net: Zero terminate ifr_name in dev_ifname().

Florian Fainelli (2):
  net: phy: Correctly process PHY_HALTED in phy_stop_machine()
  net: phy: Fix PHY unbind crash

Gerd Hoffmann (1):
  drm/virtio: fix framebuffer sparse warning

Greg Kroah-Hartman (2):
  drm: rcar-du: fix backport bug
      Linux 4.4.81

Gregory CLEMENT (1):
  ARM: dts: armada-38x: Fix irq type for pca955

Grygorii Strashko (1):
  net: phy: dp83867: fix irq generation

Jamie Iles (1):
  signal: protect SIGNAL_UNKILLABLE from unintentional clearing.

Jan Kara (1):
  ext4: fix SEEK_HOLE/SEEK_DATA for blocksize < pagesize

Jane Chu (1):
  sparc64: Measure receiver forward progress to avoid send mondo timeout

Jerry Lee (1):
  ext4: fix overflow caused by missing cast in ext4_resize_fs()

Jiang Yi (1):
  iscsi-target: Always wait for kthread_should_stop() before kthread exit

Jin Qian (1):
  f2fs: sanity check checkpoint segno and blkoff

Josh Poimboeuf (1):
  mm/page_alloc: Remove kernel address exposure in free_reserved_area()

Liping Zhang (1):
  openvswitch: fix potential out of bound access in parse_ct

Mahesh Bandewar (1):
  ipv4: initialize fib_trie prior to register_netdev_notifier call.

Marc Gonzalez (1):
  net: ethernet: nb8800: Handle all 4 RGMII modes identically

Mel Gorman (1):
  mm, mprotect: flush TLB if potentially racing with a parallel reclaim 
leaving stale TLB entries

Michael Chan (1):
  tg3: Fix race condition in tg3_get_stats64().

Michal Hocko (1):
  mm, slab: make sure that KMALLOC_MAX_SIZE will fit into MAX_ORDER

Michal Kubeček (1):
  net: account for current skb length when deciding about UFO

Milan P. Gandhi (1):
  scsi: qla2xxx: Get mutex lock before checking optrom_state

Moshe Shemesh (1):
  net/mlx5: Fix command bad flow on command entry allocation failure

Nicholas Bellinger (5):
  target: Avoid mappedlun symlink creation during lun shutdown
  iscsi-target: Fix early sk_data_ready LOGIN_FLAGS_READY race
  iscsi-target: Fix initial login PDU asynchronous socket close OOPs
  iscsi-target: Fix delayed logout processing greater than 
SECONDS_FOR_LOGOUT_COMP
  iser-target: Avoid isert_conn->cm_id dereference in isert_login_recv_done

Nicholas Mc Guire (1):
  x86/boot: Add missing declaration of string functions

Omar Sandoval (1):
  virtio_blk: fix panic in initialization error path

Prabhakar Lad (1):
  media: platform: davinci: return -EINVAL for VPFE_CMD_S_CCDC_RAW_PARAMS 
ioctl

Rabin Vincent (1):
  ARM: 8632/1: ftrace: fix syscall name matching

Sabrina Dubroca (1):
  ipv6: avoid overflow of offset in ip6_find_1stfragopt

Sean Young (1):
  media: lirc: LIRC_GET_REC_RESOLUTION should return microseconds

Sergei A. Trusov (1):
  ALSA: hda - Fix speaker output from VAIO VPCL14M1R

Sergei Shtylyov (1):
  sh_eth: R8A7740 supports packet shecksumming

Stefano Brivio (1):
  ipv6: Don't increase IPSTATS_MIB_FRAGFAILS twice in ip6_fragment()

Steven Toth (1):
  saa7164: fix double fetch PCIe access condition

Sudip Mukherjee (1):
  lib/Kconfig.debug: fix frv build failure

Tejun Heo (2):
  workqueue: restore WQ_UNBOUND/max_active==1 to be ordered
  workqueue: implicit ordered attribute should be overridable

Thomas Jarosch (1):
  mcs7780: Fix initialization when CONFIG_VMAP_STACK is enabled

WANG Cong (2):
  rtnetlink: allocate more memory for dev_set_mac_address()
  packet: fix use-after-free in prb_retire_rx_blk_timer_expired()

Wanpeng Li (1):
  KVM: async_pf: make rcu irq exit if not triggered from idle task

Wei Liu (1):
  xen-netback: correctly schedule rate-limited queues

Xin Long (4):
  dccp: fix a memleak that dccp_ipv6 doesn't put reqsk properly
  dccp: fix a memleak that dccp_ipv4 doesn't put reqsk properly
  dccp: fix a memleak for dccp_feat_init err process
  sctp: fix the check for _sctp_walk_params and _sctp_walk_errors

Zefir Kurtisi (1):
  phy state machine: failsafe leave invalid RUNNING state

zheng li (1):
  ipv4: Should use consistent conditional judgement for ip fragment in 
__ip_append_data and ip_finish_output



signature.asc
Description: PGP signature