[GIT PULL] tracing: A few more minor updates for 4.13

2017-07-13 Thread Steven Rostedt
Linus, A few more minor updates: - Show the tgid mappings for user space trace tools to use - Fix and optimize the comm and tgid cache recording - Sanitize derived kprobe names - Ftrace selftest updates - trace file header fix - Update of Documentation/trace/ftrace.txt - Compiler wa

[PATCH v1] staging: rts5208: Change fixed function names with "%s: ", __func__

2017-07-13 Thread Gaurav Pathak
staging: rts5208: Fixed compiler errors for dev_dbg() Signed-off-by: Gaurav Pathak --- drivers/staging/rts5208/ms.c| 5 +++-- drivers/staging/rts5208/rtsx.c | 4 ++-- drivers/staging/rts5208/rtsx_chip.c | 4 ++-- drivers/staging/rts5208/sd.c| 28 +++---

Re: [PATCH 2/2] kernel/events: Add option to enable counting sideband events in wakeup_events

2017-07-13 Thread Naveen N. Rao
On 2017/07/12 12:48PM, Jiri Olsa wrote: > On Mon, Jun 19, 2017 at 08:01:08PM +0530, Naveen N. Rao wrote: > > SNIP > > > - if (!event->attr.watermark) { > > + if (!event->attr.count_sb_events && !event->attr.watermark) { > > int wakeup_events = event->attr.wakeup_events; > > > >

Re: [PATCH 1/2] kernel/events: Add option to notify through signals on wakeup

2017-07-13 Thread Naveen N. Rao
On 2017/07/12 01:46PM, Peter Zijlstra wrote: > On Mon, Jun 19, 2017 at 08:01:07PM +0530, Naveen N. Rao wrote: > > > diff --git a/kernel/events/core.c b/kernel/events/core.c > > index 6c4e523dc1e2..812fcfc767f4 100644 > > --- a/kernel/events/core.c > > +++ b/kernel/events/core.c > > @@ -2679,7 +267

Re: [PATCH v1] staging: rts5208: Change fixed function names with "%s: ", __func__

2017-07-13 Thread Greg KH
On Thu, Jul 13, 2017 at 08:02:20PM +0530, Gaurav Pathak wrote: > staging: rts5208: Fixed compiler errors for dev_dbg() That's not what this patch does :( Please also use the correct mailing list, scripts/get_maintainer.pl is your friend... thanks, greg k-h

[PATCH 1/4] drm/atomic: implement drm_atomic_helper_commit_tail for runtime_pm users

2017-07-13 Thread Maxime Ripard
The current drm_atomic_helper_commit_tail helper works only if the CRTC is accessible, and documents an alternative implementation that is supposed to be used if that happens. That implementation is then duplicated by some drivers. Instead of documenting it, let's implement an helper that all the

[PATCH 0/4] drm/sun4i: Fix a register access bug

2017-07-13 Thread Maxime Ripard
The Allwinner backend has a commit bit in order to push the new configuration to the actual hardware. We've always been using that bit. However, we also should poll for that bit to clear, which we don't. Accessing any register while a commit is pending is forbidden, and will for example show a sym

[PATCH 4/4] drm/sun4i: make sure we don't have a commit pending

2017-07-13 Thread Maxime Ripard
In the earlier display engine designs, any register access while a commit is pending is forbidden. One of the symptoms is that reading a register will return another, random, register value which can lead to register corruptions if we ever do a read/modify/write cycle. Signed-off-by: Maxime Ripar

Re: [PATCH 01/32] tracing: Add hist_field_name() accessor

2017-07-13 Thread Tom Zanussi
Hi Piotr, On Thu, 2017-07-13 at 06:49 +, Piotr Gregor wrote: > Hi Tom, > > Which repo and branch do you push these changes into? > https://github.com/tzanussi/linux-trace-inter-event.git tzanussi/inter-event-v01 Tom > cheers, > Piotr > > -Original Message- > From: linux-rt-use

Re: [PATCH v2 02/10] cpufreq: provide data for frequency-invariant load-tracking support

2017-07-13 Thread Peter Zijlstra
On Thu, Jul 13, 2017 at 03:04:09PM +0100, Sudeep Holla wrote: > The question is whether we *need* to know the completion of frequency > transition. What is the impact of absence of it ? I am considering > platforms which may take up to a ms or more to do the actual transition > in the firmware. S

[PATCH 3/4] drm/sun4i: engine: Add commit_poll function

2017-07-13 Thread Maxime Ripard
On the earlier Allwinner chips, with the first iteration of the display engine, the backend commit bit needs to be polled before making any register access to the backend. Add an operation for that, that will be called in atomic_begin in order to be sure to have that bit cleared before we do any m

[PATCH 2/4] drm/sun4i: Use the runtime_pm commit_tail variant

2017-07-13 Thread Maxime Ripard
The backend (planes) commit can only happen when the TCON (CRTC) is enabled, which is not guaranteed with the default commit_tail helper. Let's use the runtime_pm version that is designed specifically to deal with that case. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_framebuff

Re: [RFC PATCH v1 00/11] Create fast idle path for short idle periods

2017-07-13 Thread Li, Aubrey
On 2017/7/13 16:36, Peter Zijlstra wrote: > On Wed, Jul 12, 2017 at 02:32:40PM -0700, Andi Kleen wrote: > >>> It uses the normal idle path, it just makes the NOHZ enter fail. >> >> Which is only a small part of the problem. > > Given the data so far provided it was by far the biggest problem. If

Re: [PATCH] HID: multitouch: do not blindly set EV_KEY or EV_ABS bits

2017-07-13 Thread Jiri Kosina
On Tue, 11 Jul 2017, Dmitry Torokhov wrote: > Now that input core insists on having dev->absinfo when device claims to > generate EV_ABS in its dev->evbit, we should not be blindly setting that > bit. > > The code in question might have been needed before input_set_abs_params() > started setting

Re: [PATCH] Crypto_user: Make crypto user API available for all net ns

2017-07-13 Thread Stephan Müller
Am Donnerstag, 13. Juli 2017, 16:22:32 CEST schrieb Christian Langrock: Hi Christian, > With this patch it's possible to use crypto user API form all > network namespaces, not only form the initial net ns. Is this wise? The crypto_user interface allows root users to change settings in the kerne

Re: [PATCH v8 2/7] perf/x86/intel: Record branch type

2017-07-13 Thread Jin, Yao
On 7/13/2017 10:31 PM, Peter Zijlstra wrote: On Thu, Jul 13, 2017 at 08:04:14PM +0800, Jin Yao wrote: +#define X86_BR_TYPE_MAP_MAX16 + +static int +common_branch_type(int type) +{ + int i, mask; + const int branch_map[X86_BR_TYPE_MAP_MAX] = { + PERF_BR_CALL,

Re: [RFC PATCH v1 00/11] Create fast idle path for short idle periods

2017-07-13 Thread Peter Zijlstra
On Thu, Jul 13, 2017 at 10:48:55PM +0800, Li, Aubrey wrote: > - totally from arch_cpu_idle_enter entry to arch_cpu_idle_exit return costs > 9122ns - 15318ns. > In this period(arch idle), rcu_idle_enter costs 1985ns - 2262ns, > rcu_idle_exit > costs 1813ns - 3507ns > > Besides RCU, S

Re: [PATCH V4 3/6] iommu/arm-smmu: Invoke pm_runtime during probe, add/remove device

2017-07-13 Thread Rob Clark
On Thu, Jul 13, 2017 at 9:53 AM, Sricharan R wrote: > Hi, > > On 7/13/2017 5:20 PM, Rob Clark wrote: >> On Thu, Jul 13, 2017 at 1:35 AM, Sricharan R >> wrote: >>> Hi Vivek, >>> >>> On 7/13/2017 10:43 AM, Vivek Gautam wrote: Hi Stephen, On 07/13/2017 04:24 AM, Stephen Boyd wro

Re: [PATCH 2/2] kernel/events: Add option to enable counting sideband events in wakeup_events

2017-07-13 Thread Naveen N. Rao
On 2017/07/12 01:48PM, Peter Zijlstra wrote: > On Mon, Jun 19, 2017 at 08:01:08PM +0530, Naveen N. Rao wrote: > > diff --git a/kernel/events/ring_buffer.c b/kernel/events/ring_buffer.c > > index 4e7c728569a8..f43a6081141f 100644 > > --- a/kernel/events/ring_buffer.c > > +++ b/kernel/events/ring_buf

Re: [PATCH v2 02/10] cpufreq: provide data for frequency-invariant load-tracking support

2017-07-13 Thread Sudeep Holla
On 13/07/17 15:42, Peter Zijlstra wrote: > On Thu, Jul 13, 2017 at 03:04:09PM +0100, Sudeep Holla wrote: > >> The question is whether we *need* to know the completion of frequency >> transition. What is the impact of absence of it ? I am considering >> platforms which may take up to a ms or more

HELLO

2017-07-13 Thread U.N Compensation Commission
Hello, The U.N Compensation Commission 2017. This Compensation program was organized to compensate all the victims that fall on Internet syndicate etc... Base on meeting with board executive agreement to compensate each person with the total of (USD250,000.00). Your active e-mail was in the

[PATCH] [media] staging/atomisp: fix minor coding style warnings

2017-07-13 Thread smklearn
Below were the minor issues flagged by checkpatch.pl: - WARNING: Block comments use * on subsequent lines - ERROR: space prohibited after that open parenthesis '(' Signed-off-by: Shy More --- .../css2400/runtime/isys/src/ibuf_ctrl_rmgr.c | 26 +++--- 1 file changed, 13 inser

Re: [PATCH v8 2/7] perf/x86/intel: Record branch type

2017-07-13 Thread Jin, Yao
Sorry, please ignore my previous response. On 7/13/2017 10:31 PM, Peter Zijlstra wrote: On Thu, Jul 13, 2017 at 08:04:14PM +0800, Jin Yao wrote: +#define X86_BR_TYPE_MAP_MAX16 + +static int +common_branch_type(int type) +{ + int i, mask; + const int branch_map[X86_BR_TYPE_MAP_

Re: [PATCH] nvmet: preserve controller serial number between reboots

2017-07-13 Thread Martin Wilck
On Thu, 2017-07-13 at 12:48 +0200, Johannes Thumshirn wrote: > The NVMe target has no way to preserve controller serial > IDs across reboots which breaks udev scripts doing > SYMLINK+="dev/disk/by-id/nvme-$env{ID_SERIAL}-part%n. > > Export the randomly generated serial number via configfs and allo

[PATCH 4/9] serial: stm32: fix pio transmit timeout

2017-07-13 Thread Bich HEMON
From: Gerald Baeza 100µs was too short for low speed transmission (9600bps) Signed-off-by: Gerald Baeza Signed-off-by: Bich Hemon --- drivers/tty/serial/stm32-usart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm3

Re: [PATCH v5 2/5] tick: Add freeze timer events

2017-07-13 Thread Rafael J. Wysocki
On Thu, Jul 13, 2017 at 9:32 AM, Peter Zijlstra wrote: > On Fri, Jul 07, 2017 at 05:03:00PM -0700, Derek Basehore wrote: >> Adds a new feature to tick to schedule wakeups on a CPU during freeze. >> This won't fully wake up the system (devices are not resumed), but >> allow simple platform function

[PATCH 0/9] Add support for STM32H7 serial

2017-07-13 Thread Bich HEMON
This patchset updates existing stm32 usart driver: - Misc fixes: copyright, mutliport management and timeout issue - Add support for STM32H7 - Add support for wake-up and fifo management (for STM32H7) Bich Hemon (2): serial: stm32: fix copyright serial: stm32: add RTS support Fabrice Gasnier

[PATCH 2/9] serial: stm32: fix multi-ports management

2017-07-13 Thread Bich HEMON
From: Gerald Baeza Correct management of multi-ports. Each port has its own last residue value and its own alias. Signed-off-by: Gerald Baeza Signed-off-by: Bich Hemon --- drivers/tty/serial/stm32-usart.c | 12 +++- drivers/tty/serial/stm32-usart.h | 1 + 2 files changed, 8 insertion

[PATCH 5/9] serial: stm32: add RTS support

2017-07-13 Thread Bich HEMON
Implement support of RTS in USART control register Signed-off-by: Bich Hemon --- drivers/tty/serial/stm32-usart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index ca61bfe..9158d31 100644 --- a/drivers/tt

[PATCH 9/9] serial: stm32: add fifo support

2017-07-13 Thread Bich HEMON
From: Gerald Baeza This patch adds fifo mode support for rx and tx. A fifo configuration is set in each port structure. Add has_fifo flag to usart configuration to use fifo only when possible. Signed-off-by: Gerald Baeza Signed-off-by: Bich Hemon --- drivers/tty/serial/stm32-usart.c | 7

[PATCH 3/9] serial: stm32: Increase maximum number of ports

2017-07-13 Thread Bich HEMON
From: Gerald Baeza Increase max number of ports for stm32h7 which supports up to 8 uart and usart instances. Signed-off-by: Gerald Baeza Signed-off-by: Bich Hemon --- drivers/tty/serial/stm32-usart.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/stm32-

[PATCH 7/9] dt-bindings: serial: add compatible for stm32h7

2017-07-13 Thread Bich HEMON
From: Fabrice Gasnier Introduce new compatibles for "st,stm32h7-usart" and "st,stm32h7-uart". This new compatible allow to use optional wake-up interrupt. Signed-off-by: Fabrice Gasnier Signed-off-by: Bich Hemon --- .../devicetree/bindings/serial/st,stm32-usart.txt | 17

[PATCH 1/9] serial: stm32: fix copyright

2017-07-13 Thread Bich HEMON
Fix missing copyright for STMicroelectronics Signed-off-by: Bich Hemon --- drivers/tty/serial/stm32-usart.c | 1 + drivers/tty/serial/stm32-usart.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index 0338562..ebc49e4 100

Re: [linux,v2,3/3] drivers: w1: add hwmon temp support for w1_therm

2017-07-13 Thread Guenter Roeck
On Wed, Jul 12, 2017 at 02:41:18PM -0700, Jaghathiswari Rankappagounder Natarajan wrote: > This change adds hwmon temp support for w1_therm. > > Signed-off-by: Jaghathiswari Rankappagounder Natarajan > Acked-by: Evgeniy Polyakov > --- > v2 > - make changes to support hwmon_device_register_with_

[PATCH 6/9] serial: stm32: fix error handling in probe

2017-07-13 Thread Bich HEMON
From: Fabrice Gasnier Disable clock properly in case of error. Signed-off-by: Fabrice Gasnier Signed-off-by: Bich Hemon --- drivers/tty/serial/stm32-usart.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/st

[PATCH 8/9] serial: stm32: add wakeup mechanism

2017-07-13 Thread Bich HEMON
From: Fabrice Gasnier Add support for wake-up from low power modes. This extends stm32f7. Introduce new compatible for stm32h7 to manage wake-up capability. Signed-off-by: Fabrice Gasnier Signed-off-by: Bich Hemon --- drivers/tty/serial/stm32-usart.c | 90 +

Re: [PATCH] [media] staging/atomisp: fix minor coding style warnings

2017-07-13 Thread Greg KH
On Thu, Jul 13, 2017 at 08:06:21AM -0700, smklearn wrote: > Below were the minor issues flagged by checkpatch.pl: > - WARNING: Block comments use * on subsequent lines > - ERROR: space prohibited after that open parenthesis '(' Don't do multiple things in the same patch please, this should be mult

Re: [RFC PATCH v1 00/11] Create fast idle path for short idle periods

2017-07-13 Thread Li, Aubrey
On 2017/7/13 22:53, Peter Zijlstra wrote: > On Thu, Jul 13, 2017 at 10:48:55PM +0800, Li, Aubrey wrote: > >> - totally from arch_cpu_idle_enter entry to arch_cpu_idle_exit return costs >> 9122ns - 15318ns. >> In this period(arch idle), rcu_idle_enter costs 1985ns - 2262ns, >> rcu_idle_exit

Re: [PATCH v4 1/2] wire: export w1_touch_bit

2017-07-13 Thread Evgeniy Polyakov
Hi Jan, Greg 11.07.2017, 02:00, "Jan Kandziora" : > Changes in v4 against v3 in this subpatch: >   - adapted to linux-4.12.0 > > No changes in v3 against v2,v1 in this subpatch. > > The w1_ds28e17 driver from the next part of this patch needs to emit > single-bit read timeslots to the DS28E17. The

Re: [PATCH v8 2/7] perf/x86/intel: Record branch type

2017-07-13 Thread Jin, Yao
On 7/13/2017 11:06 PM, Jin, Yao wrote: Sorry, please ignore my previous response. On 7/13/2017 10:31 PM, Peter Zijlstra wrote: On Thu, Jul 13, 2017 at 08:04:14PM +0800, Jin Yao wrote: +#define X86_BR_TYPE_MAP_MAX16 + +static int +common_branch_type(int type) +{ +int i, mask; +c

Re: [PATCH] nvmet: preserve controller serial number between reboots

2017-07-13 Thread Christoph Hellwig
On Thu, Jul 13, 2017 at 05:08:25PM +0200, Martin Wilck wrote: > I'm wondering if this should be a write-once attribute. Also, > Once the serial number has been passed on to some host (or maybe only: > while the device is in use by some host), the attribute should probably > be read-only. In practi

[BUG]: NULL ptr dereference in xlog_cil_push+0x274/0x430

2017-07-13 Thread Dmitry Safonov
] [ 60.995694] Oops: 0002 [#1] SMP [ 60.996004] CPU: 0 PID: 2053 Comm: unix_sock Not tainted 4.12.0-next-20170713 #6 [ 60.996706] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-20170228_101828-anatol 04/01/2014 [ 60.997657] task: 880074748c80 task.stack: c9594000

Re: [PATCH V3 0/3] sched: cpufreq: Allow remote callbacks

2017-07-13 Thread Rafael J. Wysocki
On Thu, Jul 13, 2017 at 8:44 AM, Viresh Kumar wrote: > Hi, > > With Android UI and benchmarks the latency of cpufreq response to > certain scheduling events can become very critical. Currently, callbacks > into schedutil are only made from the scheduler if the target CPU of the > event is the same

Re: [alsa-devel] [PATCH] ASoC: fsl_asrc: constify snd_soc_dai_ops structure

2017-07-13 Thread Gustavo A. R. Silva
Hi Mark, Quoting Mark Brown : On Thu, Jul 13, 2017 at 09:32:41AM +0200, Takashi Iwai wrote: please stop posting in this style. It's really annoying to see spontaneously popping-up almost same patch for more than two hours long. If you have a series of the same fix patches, send them as a

Re: [PATCH v2] f2fs: Don't clear SGID when inheriting ACLs

2017-07-13 Thread Jan Kara
On Tue 11-07-17 16:31:24, Jaegeuk Kim wrote: > This patch copies commit b7f8a09f80: > "btrfs: Don't clear SGID when inheriting ACLs" written by Jan. > > Fixes: 073931017b49d9458aa351605b43a7e34598caef > CC: sta...@vger.kernel.org > Signed-off-by: Jan Kara > Signed-off-by: Jaegeuk Kim Ah, someho

Re: [kernel-hardening] [PATCH 00/11] S.A.R.A. a new stacked LSM

2017-07-13 Thread Mimi Zohar
On Thu, 2017-07-13 at 08:39 -0400, Matt Brown wrote: > On 7/11/17 3:31 PM, Mimi Zohar wrote: > > On Tue, 2017-07-11 at 13:49 -0400, Matt Brown wrote: > > > >> I have merged my TPE LSM with Mimi Zohar's shebang LSM and will be > >> releasing a version 3 soon. I have also added securityfs support to

Re: [BUG]: NULL ptr dereference in unix_stream_sendmsg+0x1c1/0x380

2017-07-13 Thread Dmitry Safonov
-next-20170713 #6 [ 60.996706] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-20170228_101828-anatol 04/01/2014 [ 60.997657] task: 880074748c80 task.stack: c9594000 [ 60.998208] RIP: 0010:skb_queue_tail+0x2e/0x50 [ 60.998614] RSP: 0018:c9597cf8 EFLAGS: 000

Re: [RFC PATCH v1 00/11] Create fast idle path for short idle periods

2017-07-13 Thread Paul E. McKenney
On Thu, Jul 13, 2017 at 04:53:11PM +0200, Peter Zijlstra wrote: > On Thu, Jul 13, 2017 at 10:48:55PM +0800, Li, Aubrey wrote: > > > - totally from arch_cpu_idle_enter entry to arch_cpu_idle_exit return costs > > 9122ns - 15318ns. > > In this period(arch idle), rcu_idle_enter costs 1985ns -

Re: [PATCH v2] power: supply: ltc2941-battery-gauge: Add LTC2944 support

2017-07-13 Thread Bogdan, Dragos
On 07/12/2017 02:12 AM, Ladislav Michl wrote: > On Tue, Jul 11, 2017 at 10:59:11PM +0200, Ladislav Michl wrote: >> On Tue, Jul 11, 2017 at 07:07:32PM +0300, Dragos Bogdan wrote: >>> The only difference between the already supported LTC2943 and LTC2944 is >>> the operating range (3.6V - 20V compare

Re: [PATCH v7 2/4] KVM: async_pf: Add L1 guest async_pf #PF vmexit handler

2017-07-13 Thread Radim Krčmář
2017-07-12 23:44+0200, Radim Krčmář: > 2017-06-28 20:01-0700, Wanpeng Li: > > From: Wanpeng Li > > > > This patch adds the L1 guest async page fault #PF vmexit handler, such > > #PF is converted into vmexit from L2 to L1 on #PF which is then handled > > by L1 similar to ordinary async page fault.

Re: [PATCH 0/2] Notifications for perf sideband events

2017-07-13 Thread Vince Weaver
On Thu, 13 Jul 2017, Naveen N. Rao wrote: > > could you please check on this? thanks > > > > Naveen, > > have you run Vince's test suite on this? > > http://github.com/deater/perf_event_tests.git > > I just tried this and I see quite a few failures even without these > patches. > > The behav

Re: [PATCH linux v2 0/3] Export 1-wire thermal sensors as hwmon device

2017-07-13 Thread Evgeniy Polyakov
Hi 13.07.2017, 00:41, "Jaghathiswari Rankappagounder Natarajan" : > Our board has 4 DS18B20 1-wire temperature sensors. Each 1-wire bus and the > sensor under it is already configured against the Linux 1-wire driver > (called w1). They have a sysfs file(e.g. > /sys/bus/w1/devices/w1_bus_master1/28

Re: [PATCH linux v2 0/3] Export 1-wire thermal sensors as hwmon device

2017-07-13 Thread Evgeniy Polyakov
Hi 13.07.2017, 18:36, "Evgeniy Polyakov" : > I believe this is a resend of your previous patchet, isn't it? > Greg, if you hadn't yet, please pull it into the tree. Aaand it looks like we have a discussion now, so please postpone it for a while :)

Re: [PATCH v4 3/3] KVM: nVMX: Emulate EPTP switching for the L1 hypervisor

2017-07-13 Thread David Hildenbrand
>>> + /* >>> +* If the (L2) guest does a vmfunc to the currently >>> +* active ept pointer, we don't have to do anything else >>> +*/ >>> + if (vmcs12->ept_pointer != address) { >>> + if (address >> cpuid_maxphyaddr(vcpu) || >>> + !IS_ALIGNED(address, 4096))

Re: [PATCH] irqchip: gicv3-its: Use NUMA aware memory allocation for ITS tables

2017-07-13 Thread Robert Richter
On 11.07.17 08:48:56, Jayachandran C wrote: > On Mon, Jul 10, 2017 at 04:15:28PM +0100, Marc Zyngier wrote: > > On 10/07/17 15:57, Shanker Donthineni wrote: > > > I believe ITS driver should provide NUMA aware allocations just like x86 > > > Linux drivers. How much > > > performance improvement w

[PATCH 4.11 1/9] mqueue: fix a use-after-free in sys_mq_notify()

2017-07-13 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Cong Wang commit f991af3daabaecff34684fd51fac80319d1baad1 upstream. The retry logic for netlink_attachskb() inside sys_mq_notify() is nasty and vulnerable: 1) The sock refcnt is already relea

[PATCH 4.11 5/9] staging: comedi: fix clean-up of comedi_class in comedi_init()

2017-07-13 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Ian Abbott commit a9332e9ad09c2644c99058fcf6ae2f355e93ce74 upstream. There is a clean-up bug in the core comedi module initialization functions, `comedi_init()`. If the `comedi_num_legacy_min

[PATCH 4.11 9/9] x86/mm/pat: Dont report PAT on CPUs that dont support it

2017-07-13 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Mikulas Patocka commit 99c13b8c8896d7bcb92753bf0c63a8de4326e78d upstream. The pat_enabled() logic is broken on CPUs which do not support PAT and where the initialization code fails to call pat

[PATCH 4.11 4/9] staging: vt6556: vnt_start Fix missing call to vnt_key_init_table.

2017-07-13 Thread Greg Kroah-Hartman
4.11-stable review patch. If anyone has any objections, please let me know. -- From: Malcolm Priestley commit dc32190f2cd41c7dba25363ea7d618d4f5172b4e upstream. The key table is not intialized correctly without this call. Signed-off-by: Malcolm Priestley Signed-off-by: Greg

[PATCH 4.9 15/25] perf probe: Add error checks to offline probe post-processing

2017-07-13 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Masami Hiramatsu commit 3e96dac7c956089d3f23aca98c4dfca57b6aaf8a upstream. Add error check codes on post processing and improve it for offline probe events as: - post processing fails if no m

[PATCH 4.9 13/25] perf scripting perl: Fix compile error with some perl5 versions

2017-07-13 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Wang YanQing commit d7dd112ea5cacf91ae72c0714c3b911eb6016fea upstream. Fix below compile error: CC util/scripting-engines/trace-event-perl.o In file included from /usr/lib/perl5/5.22

[PATCH 4.9 12/25] perf header: Fix handling of PERF_EVENT_UPDATE__SCALE

2017-07-13 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Arnaldo Carvalho de Melo commit 8434a2ec13d5c8cb25716950bfbf7c9d7b64628a upstream. In commit daeecbc0c431 ("perf tools: Add event_update event scale type"), the handling of PERF_EVENT_UPDATE__S

[PATCH 4.12 06/10] staging: comedi: fix clean-up of comedi_class in comedi_init()

2017-07-13 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Ian Abbott commit a9332e9ad09c2644c99058fcf6ae2f355e93ce74 upstream. There is a clean-up bug in the core comedi module initialization functions, `comedi_init()`. If the `comedi_num_legacy_min

[PATCH 4.12 04/10] locking/rwsem-spinlock: Fix EINTR branch in __down_write_common()

2017-07-13 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Kirill Tkhai commit a0c4acd2c220376b4e9690e75782d0c0afdaab9f upstream. If a writer could been woken up, the above branch if (sem->count == 0) break; would have moved

[PATCH 4.12 10/10] x86/mm/pat: Dont report PAT on CPUs that dont support it

2017-07-13 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Mikulas Patocka commit 99c13b8c8896d7bcb92753bf0c63a8de4326e78d upstream. The pat_enabled() logic is broken on CPUs which do not support PAT and where the initialization code fails to call pat

[PATCH 4.9 20/25] staging: comedi: fix clean-up of comedi_class in comedi_init()

2017-07-13 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Ian Abbott commit a9332e9ad09c2644c99058fcf6ae2f355e93ce74 upstream. There is a clean-up bug in the core comedi module initialization functions, `comedi_init()`. If the `comedi_num_legacy_mino

[PATCH 4.9 25/25] [media] saa7134: fix warm Medion 7134 EEPROM read

2017-07-13 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Maciej S. Szmigiero commit 5a91206ff0d0548939f3e85a65fb76b400fb0e89 upstream. When saa7134 module driving a Medion 7134 card is reloaded reads of this card EEPROM (required for automatic detect

[PATCH 4.9 11/25] perf bench numa: Avoid possible truncation when using snprintf()

2017-07-13 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Arnaldo Carvalho de Melo commit 3aff8ba0a4c9c9191bb788171a1c54778e1246a2 upstream. Addressing this warning from gcc 7: CC /tmp/build/perf/bench/numa.o bench/numa.c: In function '__

[PATCH 4.9 02/25] Add "shutdown" to "struct class".

2017-07-13 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Josh Zimmerman commit f77af15165847406b15d8f70c382c4cb15846b2a upstream. The TPM class has some common shutdown code that must be executed for all drivers. This adds some needed functionality f

[PATCH 4.9 06/25] tools strfilter: Use __fallthrough

2017-07-13 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Arnaldo Carvalho de Melo commit d64b721d27aef3fbeb16ecda9dd22ee34818ff70 upstream. The implicit fall through case label here is intended, so let us inform that to gcc >= 7: util/strfilter.c:

[PATCH 4.9 10/25] perf tests: Avoid possible truncation with dirent->d_name + snprintf

2017-07-13 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Arnaldo Carvalho de Melo commit 2e2bbc039fad9eabad6c4c1a473c8b2554cdd2d4 upstream. Addressing a few cases spotted by a new warning in gcc 7: tests/parse-events.c: In function 'test_pmu_event

[PATCH 4.9 08/25] perf thread_map: Correctly size buffer used with dirent->dt_name

2017-07-13 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Arnaldo Carvalho de Melo commit bdf23a9a190d7ecea092fd5c4aabb7d4bd0a9980 upstream. The size of dirent->dt_name is NAME_MAX + 1, but the size for the 'path' buffer is hard coded at 256, which ma

[PATCH 3.18 00/22] 3.18.61-stable review

2017-07-13 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 3.18.61 release. There are 22 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Sat Jul 15 15:39:17 UTC 2017. Anything receiv

[PATCH 3.18 01/22] driver core: platform: fix race condition with driver_override

2017-07-13 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Adrian Salido commit 6265539776a0810b7ce6398c27866ddb9c6bd154 upstream. The driver_override implementation is susceptible to race condition when different threads are reading vs storing a diff

[PATCH 3.18 14/22] pinctrl: sh-pfc: Update info pointer after SoC-specific init

2017-07-13 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Geert Uytterhoeven commit 3091ae775fae17084013021d01513bc1ad274e6a upstream. Update the sh_pfc_soc_info pointer after calling the SoC-specific initialization function, as it may have been upda

[PATCH 3.18 12/22] usb: Fix typo in the definition of Endpoint[out]Request

2017-07-13 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Benjamin Herrenschmidt commit 7cf916bd639bd26db7214f2205bccdb4b9306256 upstream. The current definition is wrong. This breaks my upcoming Aspeed virtual hub driver. Signed-off-by: Benjamin He

[PATCH 3.18 18/22] mqueue: fix a use-after-free in sys_mq_notify()

2017-07-13 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Cong Wang commit f991af3daabaecff34684fd51fac80319d1baad1 upstream. The retry logic for netlink_attachskb() inside sys_mq_notify() is nasty and vulnerable: 1) The sock refcnt is already relea

[PATCH 3.18 04/22] bgmac: add check for oversized packets

2017-07-13 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Felix Fietkau commit 6a6c708469c9e10fd87adcc3abff164270538d62 upstream. In very rare cases, the MAC can catch an internal buffer that is bigger than it's supposed to be. Instead of crashing th

[PATCH 3.18 21/22] staging: comedi: fix clean-up of comedi_class in comedi_init()

2017-07-13 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Ian Abbott commit a9332e9ad09c2644c99058fcf6ae2f355e93ce74 upstream. There is a clean-up bug in the core comedi module initialization functions, `comedi_init()`. If the `comedi_num_legacy_min

[PATCH 4.4 11/57] usb: usbip: set buffer pointers to NULL after free

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Michael Grzeschik commit b3b51417d0af63fb9a06662dc292200aed9ea53f upstream. The usbip stack dynamically allocates the transfer_buffer and setup_packet of each urb that got generated by the tcp

[PATCH 4.4 12/57] usb: Fix typo in the definition of Endpoint[out]Request

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Benjamin Herrenschmidt commit 7cf916bd639bd26db7214f2205bccdb4b9306256 upstream. The current definition is wrong. This breaks my upcoming Aspeed virtual hub driver. Signed-off-by: Benjamin Her

[PATCH 4.4 05/57] mm: fix classzone_idx underflow in shrink_zones()

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Vlastimil Babka [Not upstream as that would take 34+ patches] We've got reported a BUG in do_try_to_free_pages(): BUG: unable to handle kernel paging request at 8ff28990 IP: [] do_try_

[PATCH 4.4 03/57] driver core: platform: fix race condition with driver_override

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Adrian Salido commit 6265539776a0810b7ce6398c27866ddb9c6bd154 upstream. The driver_override implementation is susceptible to race condition when different threads are reading vs storing a diffe

[PATCH 4.4 00/57] 4.4.77-stable review

2017-07-13 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.4.77 release. There are 57 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Sat Jul 15 15:39:40 UTC 2017. Anything receive

[PATCH 4.4 08/57] usb: dwc3: replace %p with %pK

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Felipe Balbi commit 04fb365c453e14ff9e8a28f1c46050d920a27a4a upstream. %p will leak kernel pointers, so let's not expose the information on dmesg and instead use %pK. %pK will only show the act

[PATCH 4.4 38/57] perf tests: Avoid possible truncation with dirent->d_name + snprintf

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arnaldo Carvalho de Melo commit 2e2bbc039fad9eabad6c4c1a473c8b2554cdd2d4 upstream. Addressing a few cases spotted by a new warning in gcc 7: tests/parse-events.c: In function 'test_pmu_event

[PATCH 4.4 47/57] perf trace: Do not process PERF_RECORD_LOST twice

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arnaldo Carvalho de Melo commit 3ed5ca2efff70e9f589087c2013789572901112d upstream. We catch this record to provide a visual indication that events are getting lost, then call the default method

[PATCH 4.4 36/57] perf thread_map: Correctly size buffer used with dirent->dt_name

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arnaldo Carvalho de Melo commit bdf23a9a190d7ecea092fd5c4aabb7d4bd0a9980 upstream. The size of dirent->dt_name is NAME_MAX + 1, but the size for the 'path' buffer is hard coded at 256, which ma

[PATCH 4.4 46/57] perf dwarf: Guard !x86_64 definitions under #ifdef else clause

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arnaldo Carvalho de Melo commit 62aa0e177d278462145a29c30d3c8501ae57e200 upstream. To fix the build on Fedora Rawhide (gcc 6.0.0 20160311 (Red Hat 6.0.0-0.17): CC /tmp/build/perf/arc

[PATCH 4.4 24/57] gfs2: Fix glock rhashtable rcu bug

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Andreas Gruenbacher commit 961ae1d83d055a4b9ebbfb4cc8ca62ec1a7a3b74 upstream. Before commit 88ffbf3e03 "GFS2: Use resizable hash table for glocks", glocks were freed via call_rcu to allow readi

[PATCH 4.4 57/57] [media] saa7134: fix warm Medion 7134 EEPROM read

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Maciej S. Szmigiero commit 5a91206ff0d0548939f3e85a65fb76b400fb0e89 upstream. When saa7134 module driving a Medion 7134 card is reloaded reads of this card EEPROM (required for automatic detect

[PATCH 4.4 26/57] x86/uaccess: Optimize copy_user_enhanced_fast_string() for short strings

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Paolo Abeni commit 236222d39347e0e486010f10c1493e83dbbdfba8 upstream. According to the Intel datasheet, the REP MOVSB instruction exposes a pretty heavy setup cost (50 ticks), which hurts short

[PATCH 4.4 53/57] staging: vt6556: vnt_start Fix missing call to vnt_key_init_table.

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Malcolm Priestley commit dc32190f2cd41c7dba25363ea7d618d4f5172b4e upstream. The key table is not intialized correctly without this call. Signed-off-by: Malcolm Priestley Signed-off-by: Greg K

[PATCH 4.4 30/57] mqueue: fix a use-after-free in sys_mq_notify()

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Cong Wang commit f991af3daabaecff34684fd51fac80319d1baad1 upstream. The retry logic for netlink_attachskb() inside sys_mq_notify() is nasty and vulnerable: 1) The sock refcnt is already releas

[PATCH 4.4 21/57] pinctrl: sh-pfc: Update info pointer after SoC-specific init

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Geert Uytterhoeven commit 3091ae775fae17084013021d01513bc1ad274e6a upstream. Update the sh_pfc_soc_info pointer after calling the SoC-specific initialization function, as it may have been updat

[PATCH 4.4 28/57] KEYS: Fix an error code in request_master_key()

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit 57cb17e764ba0aaa169d07796acce54ccfbc6cae upstream. This function has two callers and neither are able to handle a NULL return. Really, -EINVAL is the correct thing return

[PATCH 4.4 27/57] ath10k: override CE5 config for QCA9377

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Bartosz Markowski commit b08b5b53a1ed2bd7a883f8fd29232c8f03604671 upstream. Similarly to QCA6174, QCA9377 requires the CE5 configuration to be available for other feature. Use the ath10k_pci_ov

[PATCH 4.4 29/57] RDMA/uverbs: Check port number supplied by user verbs cmds

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Boris Pismenny commit 5ecce4c9b17bed4dc9cb58bfb10447307569b77b upstream. The ib_uverbs_create_ah() ind ib_uverbs_modify_qp() calls receive the port number from user input as part of its attribu

[PATCH 4.4 55/57] ext4: check return value of kstrtoull correctly in reserved_clusters_store

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Chao Yu commit 1ea1516fbbab2b30bf98c534ecaacba579a35208 upstream. kstrtoull returns 0 on success, however, in reserved_clusters_store we will return -EINVAL if kstrtoull returns 0, it makes us

[PATCH 4.4 56/57] x86/mm/pat: Dont report PAT on CPUs that dont support it

2017-07-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Mikulas Patocka commit 99c13b8c8896d7bcb92753bf0c63a8de4326e78d upstream. The pat_enabled() logic is broken on CPUs which do not support PAT and where the initialization code fails to call pat_

<    1   2   3   4   5   6   7   8   9   >