Re: [RFC][PATCH] exec: Use init rlimits for setuid exec

2017-07-10 Thread Michal Hocko
On Mon 10-07-17 18:27:51, Michal Hocko wrote: > On Mon 10-07-17 09:12:11, Kees Cook wrote: [...] > > >> do_execveat_common() -> > > >> exec_binprm() -> > > >> search_binary_handler() -> > > >> fmt->load_binary (load_elf_binary()) -> > > >> setup_new_exec() -> > > >> arch_pick_mmap_layout() -> > >

Re: [PATCH v3 03/16] fpga: mgr: API change to replace fpga load functions with single function

2017-07-10 Thread Alan Tull
On Mon, Jul 10, 2017 at 12:36 PM, Moritz Fischer wrote: Hi Moritz, Thanks for looking at this stuff. >> >> +struct fpga_image_info *fpga_image_info_alloc(struct device *dev) >> +{ >> + struct fpga_image_info *info; >> + >> + info = devm_kzalloc(dev,

[PATCH] [media] smiapp: make various const arrays static

2017-07-10 Thread Colin King
From: Colin Ian King Don't populate const arrays on the stack but instead make them static. Makes the object code smaller and saves nearly 550 bytes. Before: textdata bss dec hex filename 3638 752 043901126 smiapp-quirk.o After:

Re: [RFC][PATCH] exec: Use init rlimits for setuid exec

2017-07-10 Thread Rik van Riel
On Mon, 2017-07-10 at 20:16 +0200, Michal Hocko wrote: > OK, I misread the code. 32b applications on 64b systems do top down > by > default and only if they override this by ADDR_COMPAT_LAYOUT > personality. For some reason I thought that 32b userspace goes a > different path and makes sure that

[PATCH v2 6/6] dt-bindings: i2c: Add FSI-attached I2C master dt binding documentation

2017-07-10 Thread Eddie James
From: "Edward A. James" Document the bindings. Signed-off-by: Edward A. James --- Documentation/devicetree/bindings/i2c/i2c-fsi.txt | 40 +++ 1 file changed, 40 insertions(+) create mode 100644

[PATCH v2 4/6] drivers/i2c: Add I2C master locking to FSI algorithm

2017-07-10 Thread Eddie James
From: "Edward A. James" Since there are many ports per master, each with it's own adapter and chardev, we need some locking to prevent transfers from changing the\ master state while other transfers are in progress. Signed-off-by: Edward A. James ---

[PATCH v2 0/6] drivers/i2c: Add FSI-attached I2C master algorithm

2017-07-10 Thread Eddie James
From: "Edward A. James" This series adds an algorithm for an I2C master physically located on an FSI slave device. The I2C master has multiple ports, each of which may be connected to an I2C slave. Access to the I2C master registers is achieved over FSI bus. Due to the

[PATCH v2 2/6] drivers/i2c: Add port structure to FSI algorithm

2017-07-10 Thread Eddie James
From: "Edward A. James" Add and initialize I2C adapters for each port on the FSI-attached I2C master. Ports for each master are defined in the devicetree. Signed-off-by: Edward A. James --- drivers/i2c/busses/i2c-fsi.c | 91

Re: sun4v+DMA related boot crash on 4.13-git

2017-07-10 Thread tndave
On 07/10/2017 06:20 AM, Meelis Roos wrote: I tested yesterdayd 4.12+git on sparc64 to see if the sparc merge works fine, and on all of my sun4v machines (T1000, T2000, T5120) it crashed on boot with DMA-related stacktrace (below). Allt he machines are sun4v physical machines, not VM-s. Older

Re: [PATCH] autofs: Revert wait_queue_t => wait_queue_entry_t rename

2017-07-10 Thread Linus Torvalds
On Mon, Jul 10, 2017 at 7:01 AM, Gabriel C wrote: > > You need revert a lot more .. that won't even compile. > > Looks like someone used some script to convert these :) > > Something like this : Gaah, I just committed my own scripted fixup: git grep -lw

Re: KASAN vs. boot-time switching between 4- and 5-level paging

2017-07-10 Thread Kirill A. Shutemov
On Mon, Jul 10, 2017 at 08:56:37AM -0700, Andy Lutomirski wrote: > > > > On Jul 10, 2017, at 7:17 AM, Kirill A. Shutemov > > wrote: > > > >> On Mon, Jul 10, 2017 at 02:43:17PM +0200, Dmitry Vyukov wrote: > >> On Mon, Jul 10, 2017 at 2:33 PM, Kirill A. Shutemov > >>

[PATCH] ARM64: allwinner: sun50i-a64: Correct emac register size

2017-07-10 Thread Corentin Labbe
The datasheet said that emac register size is 0x1 not 0x100 Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi

[PATCH] KVM: x86: take slots_lock in kvm_free_pit

2017-07-10 Thread Radim Krčmář
kvm_vm_release() did not have slots_lock when calling kvm_io_bus_unregister_dev() and this went unnoticed until 4a12f9517728 ("KVM: mark kvm->busses as rcu protected") added dynamic checks. Luckily, there should be no race at that point: = WARNING: suspicious RCU

Re: [GIT PULL] HID for 4.13

2017-07-10 Thread Jiri Kosina
On Mon, 10 Jul 2017, Linus Torvalds wrote: > > git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid.git for-linus > > I've pulled this, but looking at the thing, I absolutely _hate_ your > merge commits. > > They have no commit messages! They look like this: > > Merge branches

Re: [PATCH] input: tegra-kbc: add NULL check on of_match_device() return value

2017-07-10 Thread Gustavo A. R. Silva
Hi all, Quoting Dmitry Torokhov : On Fri, Jul 07, 2017 at 11:30:41AM +0200, Thierry Reding wrote: On Fri, Jul 07, 2017 at 08:42:32AM +0100, Jon Hunter wrote: > > On 07/07/17 07:27, Gustavo A. R. Silva wrote: > > Check return value from call to of_match_device() > >

Re: [PATCH v2] mrf24j40: Fix en error handling path in 'mrf24j40_probe()'

2017-07-10 Thread Alan Ott
On 07/08/2017 04:40 AM, Christophe JAILLET wrote: If this check fails, we must release some resources as done everywhere else in this function before returning an error code. Signed-off-by: Christophe JAILLET --- V2: initialization of ret in this erro path ws

[PATCH] gpu: host1x: Free the IOMMU domain when there is no device to attach

2017-07-10 Thread Paul Kocialkowski
When there is no device to attach to the IOMMU domain, as may be the case when the device-tree does not contain the proper iommu node, it is best to keep going without IOMMU support rather than failing. This allows the driver to probe and function instead of taking down all of the tegra drm

Re: [PATCH] platform/x86: fujitsu-laptop: add NULL check on devm_kzalloc() return value

2017-07-10 Thread Gustavo A. R. Silva
Hi Darren, Jonathan, Quoting Darren Hart : On Fri, Jul 07, 2017 at 09:49:00AM +0930, Jonathan Woithe wrote: On Thu, Jul 06, 2017 at 05:19:02PM -0500, Gustavo A. R. Silva wrote: > Check return value from call to devm_kzalloc() > in order to prevent a NULL pointer

Re: [PATCH 1/1 V2] media: usb: uvc: Fix incorrect timeout for Get Request

2017-07-10 Thread Laurent Pinchart
Hi Jim, Thank you for the patch. On Monday 10 Jul 2017 14:43:49 Jim Lin wrote: > Section 9.2.6.4 of USB 2.0/3.x specification describes that > "device must be able to return the first data packet to host within > 500 ms of receipt of the request. For subsequent data packet, if any, > the device

Re: [PATCH v5 5/5] intel_idle: Add S0ix validation

2017-07-10 Thread Rafael J. Wysocki
On Monday, July 10, 2017 02:57:48 PM dbasehore . wrote: > On Mon, Jul 10, 2017 at 6:33 AM, Rafael J. Wysocki wrote: > > On Friday, July 07, 2017 05:03:03 PM Derek Basehore wrote: > >> This adds validation of S0ix entry and enables it on Skylake. Using > >> the new

Re: [PATCH v8 6/6] drm/amdgpu: resize VRAM BAR for CPU access v4

2017-07-10 Thread Bjorn Helgaas
On Mon, Jul 10, 2017 at 04:59:54PM +0200, Christian König wrote: > From: Christian König > > Try to resize BAR0 to let CPU access all of VRAM. > > v2: rebased, style cleanups, disable mem decode before resize, > handle gmc_v9 as well, round size up to power of two.

Re: [RFC][PATCH] drm: kirin: Restrict modes to known good mode clocks

2017-07-10 Thread John Stultz
On Mon, Jul 10, 2017 at 2:18 PM, Sean Paul wrote: > On Mon, Jul 10, 2017 at 01:48:02PM -0700, John Stultz wrote: >> Currently the hikey dsi logic cannot generate accurate byte >> clocks values for all pixel clock values. Thus if a mode clock >> is selected that cannot match

[PATCH v2 3/4] scsi: scsi_dh_alua: do not print RTPG state if it remains unavailable/standby

2017-07-10 Thread Mauricio Faria de Oliveira
Path checkers will check paths of a port group in unavailable/standby state more frequently (as they are 'failed') - possibly for a long or indefinite period of time, and/or for a large number of paths. That might flood the kernel log with scsi_dh_alua RTPG state messages, due to the recheck

[PATCH v2 0/4] scsi_dh_alua: fix stuck I/O after unavailable/standby states

2017-07-10 Thread Mauricio Faria de Oliveira
Currently, scsi_dh_alua fails I/O requests early on once ALUA state unavailable/standby occur, which prevents path checkers to actually check if I/O still fails or now works. Then I/O requests are blocked indefinitely due to queue_if_no_path but the underlying individual paths are fully

[PATCH 3/3] perf annotate: Fix broken arrow at row 0 connecting jmp instruction to its target

2017-07-10 Thread Arnaldo Carvalho de Melo
From: Jin Yao When the jump instruction is displayed at the row 0 in annotate view, the arrow is broken. An example: 16.86 │ ┌──je 82 0.01 │ movsd (%rsp),%xmm0 │ movsd 0x8(%rsp),%xmm4 │ movsd 0x8(%rsp),%xmm1 │ movsd

[GIT PULL 0/3] perf/urgent fixes

2017-07-10 Thread Arnaldo Carvalho de Melo
are at function entry (2017-07-08 11:05:35 +0200) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-urgent-for-mingo-4.13-20170710 for you to fetch changes up to 80f62589fa52f530cffc50e78c0b5a2ae572d61e: perf annotate: Fix broken

[PATCH 2/3] perf evsel: State in the default event name if attr.exclude_kernel is set

2017-07-10 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo When no event is specified perf will use the "cycles" hardware event with the highest precision available in the processor, and excluding kernel events for non-root users, so make that clear in the event name by setting the "u" event modifier, i.e.

[PATCH v4 1/2] wire: export w1_touch_bit

2017-07-10 Thread 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 w1 subsystem already has this function but it is not exported

mmotm 2017-07-10-16-06 uploaded

2017-07-10 Thread akpm
The mm-of-the-moment snapshot 2017-07-10-16-06 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You

Re: [PATCH v1 1/1] gpio: gpio-crystalcove: Skip IRQ CTRL register update for virtual GPIOs

2017-07-10 Thread sathyanarayanan kuppuswamy
Hi Hans, Do you have any comments on this patch ? It kind of fixes your patch, so would prefer to get your comments. On 06/15/2017 02:45 PM, sathyanarayanan kuppuswamy wrote: Hi Andy, On 06/15/2017 02:19 AM, Andy Shevchenko wrote: On Thu, Jun 15, 2017 at 2:21 AM,

Re: [PATCH v6 1/4] firmware: scm: Add new SCM call API for switching memory ownership

2017-07-10 Thread Bjorn Andersson
On Thu 22 Jun 05:08 PDT 2017, Avaneesh Kumar Dwivedi wrote: > Two different processors on a SOC need to switch memory ownership > during load/unload. To enable this, second level memory map table > need to be updated, which is done by secure layer. > This patch adds the interface for making

Re: [HMM 12/15] mm/migrate: new memory migration helper for use with device memory v4

2017-07-10 Thread Jerome Glisse
On Mon, Jul 10, 2017 at 03:59:37PM -0700, Evgeny Baskakov wrote: > On 6/30/17 5:57 PM, Jerome Glisse wrote: > ... > > Hi Jerome, > > I am seeing a strange crash in our code that uses the hmm_device_new() > helper. After the driver is repeatedly loaded/unloaded, hmm_device_new() > suddenly

Re: [RFC PATCH] mm, oom: allow oom reaper to race with exit_mmap

2017-07-10 Thread David Rientjes
On Mon, 26 Jun 2017, Michal Hocko wrote: > diff --git a/mm/mmap.c b/mm/mmap.c > index 3bd5ecd20d4d..253808e716dc 100644 > --- a/mm/mmap.c > +++ b/mm/mmap.c > @@ -2962,6 +2962,11 @@ void exit_mmap(struct mm_struct *mm) > /* Use -1 here to ensure all VMAs in the mm are unmapped */ >

Re: [RFC PATCH] mm, oom: allow oom reaper to race with exit_mmap

2017-07-10 Thread David Rientjes
On Tue, 27 Jun 2017, Tetsuo Handa wrote: > I wonder why you prefer timeout based approach. Your patch will after all > set MMF_OOM_SKIP if operations between down_write() and up_write() took > more than one second. lock_anon_vma_root() from unlink_anon_vmas() from > free_pgtables() for example

Re: [PATCH v6 0/3] Add new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag

2017-07-10 Thread Casey Leedom
Hey Alexander, Okay, I understand your point regarding the "most likely scenario" being TLPs directed upstream to the Root Complex. But I'd still like to make sure that we have an agreed upon API/methodology for doing Peer-to-Peer with Relaxed Ordering and no Relaxed Ordering to the Root

Re: [HMM 12/15] mm/migrate: new memory migration helper for use with device memory v4

2017-07-10 Thread Evgeny Baskakov
On 7/10/17 4:43 PM, Jerome Glisse wrote: On Mon, Jul 10, 2017 at 03:59:37PM -0700, Evgeny Baskakov wrote: ... Horrible stupid bug in the code, most likely from cut and paste. Attached patch should fix it. I don't know how long it took for you to trigger it. Jérôme Thanks, this indeed fixes the

Re: [PATCH V2] PCI: Do not enable extended tags on pre-dated (v1.x) systems

2017-07-10 Thread Sinan Kaya
Hi Bjorn, On 7/10/2017 7:09 PM, Bjorn Helgaas wrote: > The PCI_EXP_DEVCTL_EXT_TAG bit controls the behavior of the function as a > Requester. As far as I can see, it has nothing to do with whether the > function supports 8-bit tags as a *Completer*, so the implicit assumption > of the spec is

Re: [v4, 1/2] drivers/watchdog: Add optional ASPEED device tree properties

2017-07-10 Thread Guenter Roeck
On Mon, Jul 10, 2017 at 10:07:40AM -0500, Christopher Bostic wrote: > > > On 7/8/17 9:59 AM, Guenter Roeck wrote: > >On Thu, Jul 06, 2017 at 07:48:59PM -0500, Christopher Bostic wrote: > >>Describe device tree optional properties: > >> > >> * aspeed,reset-type = "cpu|soc|system|none" > >>

[PATCH v2 1/6] drivers/i2c: Add FSI-attached I2C master algorithm

2017-07-10 Thread Eddie James
From: "Edward A. James" Add register definitions for FSI-attached I2C master and functions to access those registers over FSI. Add an FSI driver so that our I2C bus is probed up during an FSI scan. Signed-off-by: Edward A. James ---

Re: [PATCH] exec: Limit arg stack to at most _STK_LIM / 4 * 3

2017-07-10 Thread Michal Hocko
On Mon 10-07-17 11:24:55, Linus Torvalds wrote: > On Mon, Jul 10, 2017 at 8:59 AM, Michal Hocko wrote: > > > > We will always need some gap inforcement. > > Considering the Java issue, that's rather questionable. > > We really can't be breaking libreoffice. That's like a big

[PATCH v2 5/6] drivers/i2c: Add bus recovery for FSI algorithm

2017-07-10 Thread Eddie James
From: "Edward A. James" Bus recovery should reset the engine and force clock the bus 9 times to recover most situations. Signed-off-by: Edward A. James --- drivers/i2c/busses/i2c-fsi.c | 75 1 file changed,

[PATCH v2 3/6] drivers/i2c: Add transfer implementation for FSI algorithm

2017-07-10 Thread Eddie James
From: "Edward A. James" Execute I2C transfers from the FSI-attached I2C master. Use polling instead of interrupts as we have no hardware IRQ over FSI. Signed-off-by: Edward A. James --- drivers/i2c/busses/i2c-fsi.c | 197

[PATCH 2/2] staging: atomisp2: hmm: Alignment code

2017-07-10 Thread Philipp Guendisch
This patch fixed code alignment to open paranthesis. Semantic should not be affected by this patch. Signed-off-by: Philipp Guendisch Signed-off-by: Chris Baller --- .../staging/media/atomisp/pci/atomisp2/hmm/hmm.c | 79 +++--- 1

[PATCH 1/2] staging: atomisp2: hmm: Fixed comment style

2017-07-10 Thread Philipp Guendisch
This patch fixed comment style. Semantic should not be affected. There are also two warnings left about too long lines, which reduce readability if changed. Signed-off-by: Philipp Guendisch Signed-off-by: Chris Baller ---

Re: RFC: Task switch emulation fails for VM86 mode

2017-07-10 Thread Nadav Amit
Paolo Bonzini wrote: > On 10/07/2017 17:48, Nadav Amit wrote: Any proposal is a great appreciated. :) >> I don’t see a (very) easy solution. The code was (apparently) never built to >> deal with a task switch during an instruction emulation. >> >> AFAIU

Re: [PATCH] drm: inhibit drm drivers register to uninitialized drm core

2017-07-10 Thread Alexandru Moise
On Mon, Jul 10, 2017 at 08:00:37PM +0200, Daniel Vetter wrote: > On Mon, Jul 10, 2017 at 9:14 AM, Alexandru Moise > <00moses.alexande...@gmail.com> wrote: > > On Mon, Jul 10, 2017 at 08:52:46AM +0200, Daniel Vetter wrote: > >> On Sat, Jul 08, 2017 at 11:43:52PM +0200, Alexandru Moise wrote: > >> >

Re: [PATCH v5 5/5] intel_idle: Add S0ix validation

2017-07-10 Thread dbasehore .
On Mon, Jul 10, 2017 at 3:09 PM, Rafael J. Wysocki wrote: > On Monday, July 10, 2017 02:57:48 PM dbasehore . wrote: >> On Mon, Jul 10, 2017 at 6:33 AM, Rafael J. Wysocki >> wrote: >> > On Friday, July 07, 2017 05:03:03 PM Derek Basehore wrote: >> >> This

Re: [PATCH] selinux: Assign proper class to PF_UNIX/SOCK_RAW sockets

2017-07-10 Thread Paul Moore
On Wed, Jun 21, 2017 at 3:04 PM, Paul Moore wrote: > On Wed, Jun 21, 2017 at 5:48 AM, Luis Ressel wrote: >> On Tue, 20 Jun 2017 17:43:38 -0400 >> Paul Moore wrote: >> >>> Considering where we are at with respect to the merge window,

Re: [PATCH 4.9 00/41] 4.9.37-stable review

2017-07-10 Thread Krister Johansen
Hey Greg, On Mon, Jul 10, 2017 at 07:10:33PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.37 release. > There are 41 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please >

Re: [PATCH v2 tip/perf/core 1/6] perf symbols: find symbols in different mount namespace

2017-07-10 Thread Krister Johansen
On Mon, Jul 10, 2017 at 08:17:00AM +0200, Thomas-Mich Richter wrote: > On 07/07/2017 09:36 PM, Krister Johansen wrote: > > On Thu, Jul 06, 2017 at 04:41:30PM -0300, Arnaldo Carvalho de Melo wrote: > >> Em Wed, Jul 05, 2017 at 06:48:08PM -0700, Krister Johansen escreveu: > >>> Teach perf how to

[PATCH v4 2/2] add w1_ds28e17 driver for the DS28E17 Onewire to I2C master bridge

2017-07-10 Thread Jan Kandziora
Changes in v4 against v3 in this subpatch: - adapted to linux-4.12.0 Changes in v3 against v2 in this subpatch: - fixed a bug in using the i2c_adapter_quirks structure Changes in v2 against v1 in this subpatch: - added error handling in w1_f19_error() - added struct i2c_adapter_quirks

Re: [PATCH] autofs: Revert wait_queue_t => wait_queue_entry_t rename

2017-07-10 Thread Florian Fainelli
On 07/10/2017 11:47 AM, Linus Torvalds wrote: > On Mon, Jul 10, 2017 at 7:01 AM, Gabriel C wrote: >> >> You need revert a lot more .. that won't even compile. >> >> Looks like someone used some script to convert these :) >> >> Something like this : > > Gaah, I just

Re: [HMM 12/15] mm/migrate: new memory migration helper for use with device memory v4

2017-07-10 Thread Evgeny Baskakov
On 6/30/17 5:57 PM, Jerome Glisse wrote: ... Hi Jerome, I am seeing a strange crash in our code that uses the hmm_device_new() helper. After the driver is repeatedly loaded/unloaded, hmm_device_new() suddenly returns NULL. I have reproduced this with the dummy driver from the hmm-next

Re: [v3 2/6] mm, oom: cgroup-aware OOM killer

2017-07-10 Thread David Rientjes
On Wed, 21 Jun 2017, Roman Gushchin wrote: > Traditionally, the OOM killer is operating on a process level. > Under oom conditions, it finds a process with the highest oom score > and kills it. > > This behavior doesn't suit well the system with many running > containers. There are two main

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

2017-07-10 Thread Mickaël Salaün
On 10/07/2017 09:59, Salvatore Mesoraca wrote: > 2017-07-09 21:35 GMT+02:00 Mickaël Salaün : >> Hi, >> >> I think it make sense to merge the W^X features with the TPE/shebang LSM >> [1]. >> >> Regards, >> Mickaël >> >> [1] >>

Re: [HMM 12/15] mm/migrate: new memory migration helper for use with device memory v4

2017-07-10 Thread Evgeny Baskakov
On 6/30/17 5:57 PM, Jerome Glisse wrote: ... Hi Jerome, I am working on a sporadic data corruption seen in highly contented use cases. So far, I've been able to re-create a sporadic hang that happens when multiple threads compete to migrate the same page to and from device memory. The

Re: block: hung task writing to device

2017-07-10 Thread Levin, Alexander (Sasha Levin)
On Sat, Jul 08, 2017 at 07:29:20PM -0600, Jens Axboe wrote: >On 07/08/2017 01:06 PM, Levin, Alexander (Sasha Levin) wrote: >> Hi all, >> >> syzkaller seems to be hitting a lockup with the reproducer below: > >Thanks for the reproducer, but this is missing a lot of detail that we >need to debug

Re: [PATCH 0/2] Make cppc acpi driver aware of pcc subspace ids

2017-07-10 Thread Prakash, Prashanth
On 6/28/2017 3:20 PM, Rafael J. Wysocki wrote: > On Tuesday, June 13, 2017 02:17:09 PM George Cherian wrote: >> The current cppc acpi driver works with only one pcc subspace id. >> It maintains and registers only one pcc channel even if the acpi table has >> different pcc subspace ids. >> >> As

Re: [PATCH v1 1/2] remoteproc: dt: Provide bindings for iMX6SX/7D Remote Processor Controller driver

2017-07-10 Thread Bjorn Andersson
On Mon 10 Jul 07:42 PDT 2017, Oleksij Rempel wrote: > Signed-off-by: Oleksij Rempel > --- > .../devicetree/bindings/remoteproc/imx-rproc.txt | 44 > ++ > 1 file changed, 44 insertions(+) > create mode 100644

[PATCH v2 2/4] scsi: scsi_dh_alua: print changes to RTPG state of all PGs

2017-07-10 Thread Mauricio Faria de Oliveira
Currently, alua_rtpg() can change the 'state' and 'preferred' values for the current port group _and_ of other port groups. However, it reports that _only_ for the current port group. This might cause uncertainty and confusion when going through the kernel logs for analyzing/debugging

[PATCH v2 1/4] scsi: scsi_dh_alua: allow I/O in target port unavailable and standby states

2017-07-10 Thread Mauricio Faria de Oliveira
According to SPC-4 (5.15.2.4.5 Unavailable state), the unavailable state may (or may not) transition to other states (e.g., microcode downloading or hardware error, which may be temporary or permanent). But, scsi_dh_alua currently fails I/O requests early on once that state occurs (in

[PATCH v2 4/4] scsi: scsi_dh_alua: add sdev_dbg() to track alua_rtpg_work()

2017-07-10 Thread Mauricio Faria de Oliveira
Insert sdev_dbg() calls in the function path which may queue alua_rtpg_work() past initialization, for debugging purposes: - alua_activate() - alua_check_sense() - alua_rtpg_queue() Signed-off-by: Mauricio Faria de Oliveira ---

Re: [PATCH v2 tip/perf/core 1/6] perf symbols: find symbols in different mount namespace

2017-07-10 Thread Arnaldo Carvalho de Melo
Em Mon, Jul 10, 2017 at 03:39:25PM -0700, Krister Johansen escreveu: > On Mon, Jul 10, 2017 at 08:17:00AM +0200, Thomas-Mich Richter wrote: > > On 07/07/2017 09:36 PM, Krister Johansen wrote: > > > On Thu, Jul 06, 2017 at 04:41:30PM -0300, Arnaldo Carvalho de Melo wrote: > > >> Em Wed, Jul 05,

Re: [PATCH v2 0/4] scsi_dh_alua: fix stuck I/O after unavailable/standby states

2017-07-10 Thread Mauricio Faria de Oliveira
On 07/10/2017 07:47 PM, Mauricio Faria de Oliveira wrote: This patchset addresses that problem, and adds a few improvements to the logging of PG state changes. Here are some kernel log snippets with the patchset, if that helps. The 2 port groups temporarily gone into unavailable state, and

[PATCH 1/3] perf evsel: Fix attr.exclude_kernel setting for default cycles:p

2017-07-10 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To allow probing the max attr.precise_ip setting for non-root users we unconditionally set attr.exclude_kernel, which makes the detection work but should be done only for !root, fix it. Cc: Adrian Hunter Cc: Andy

Re: [PATCH v2] btrfs: Correct assignment of pos

2017-07-10 Thread Liu Bo
On Tue, Jul 04, 2017 at 10:33:07PM -0500, Goldwyn Rodrigues wrote: > From: Goldwyn Rodrigues > > Assigning pos for usage early messes up in append mode, where > the pos is re-assigned in generic_write_checks(). Assign > pos later to get the correct position to write from

Re: [PATCH V2] PCI: Do not enable extended tags on pre-dated (v1.x) systems

2017-07-10 Thread Bjorn Helgaas
On Fri, Jul 07, 2017 at 10:53:13AM -0400, Sinan Kaya wrote: > According to extended tags ECN document, all PCIe receivers are expected > to support extended tags support. It should be safe to enable extended > tags on endpoints without checking compatibility. > > This assumption seems to be

Re: [PATCH v2 tip/perf/core 1/6] perf symbols: find symbols in different mount namespace

2017-07-10 Thread Krister Johansen
On Mon, Jul 10, 2017 at 07:52:49PM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Jul 10, 2017 at 03:39:25PM -0700, Krister Johansen escreveu: > > On Mon, Jul 10, 2017 at 08:17:00AM +0200, Thomas-Mich Richter wrote: > > > On 07/07/2017 09:36 PM, Krister Johansen wrote: > > > > On Thu, Jul 06,

Re: [PATCH v6 1/4] firmware: scm: Add new SCM call API for switching memory ownership

2017-07-10 Thread Bjorn Andersson
On Fri 07 Jul 15:49 PDT 2017, Stephen Boyd wrote: > On 06/22, Avaneesh Kumar Dwivedi wrote: > > diff --git a/drivers/firmware/qcom_scm-64.c b/drivers/firmware/qcom_scm-64.c [..] > > +int qcom_scm_assign_mem(phys_addr_t mem_addr, size_t mem_sz, int srcvm, > > + struct

linux-next: manual merge of the mips tree with Linus' tree

2017-07-10 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the mips tree got a conflict in: drivers/clk/Kconfig between commit: b745c0794e2f ("clk: keystone: Add sci-clk driver support") from Linus' tree and commit: 5e2722808156 ("clk: boston: Add a driver for MIPS Boston board clocks") from the mips tree.

[PATCH] tty: Fix TIOCGPTPEER ioctl definition

2017-07-10 Thread Gleb Fotengauer-Malinovskiy
This ioctl does nothing to justify an _IOC_READ or _IOC_WRITE flag because it doesn't copy anything from/to userspace to access the argument. Fixes: 54ebbfb1 ("tty: add TIOCGPTPEER ioctl") Signed-off-by: Gleb Fotengauer-Malinovskiy --- arch/alpha/include/uapi/asm/ioctls.h

Re: [PATCH RFC 0/2] KVM: x86: Support using the VMX preemption timer for APIC Timer periodic/oneshot mode

2017-07-10 Thread Andy Lutomirski
On 10/11/2016 05:17 AM, Wanpeng Li wrote: Most windows guests which I have on hand currently still utilize APIC Timer periodic/oneshot mode instead of APIC Timer tsc-deadline mode: - windows 2008 server r2 - windows 2012 server r2 - windows 7 - windows 10 This patchset adds the support using

Re: [linux-sunxi] [PATCH v5 1/6] clk: sunxi-ng: div: Add support for fixed post-divider

2017-07-10 Thread Olliver Schinagl
Hey Plaes, On 04-07-17 22:04, Priit Laes wrote: SATA clock on sun4i/sun7i is of type (parent) / M / 6 where 6 is fixed post-divider. Signed-off-by: Priit Laes --- drivers/clk/sunxi-ng/ccu_div.c | 18 -- drivers/clk/sunxi-ng/ccu_div.h | 3 ++- 2 files

[PATCH] Staging:ks7010:ks_wlan_net.c: unneeded type casting removed

2017-07-10 Thread AndyS
removed undesired type casting. Warning was raised by checkpatch.pl This patch is for eudyptula challenge Signed-off-by: AndyS --- drivers/staging/ks7010/ks_wlan_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ks7010/ks_wlan_net.c

Re: [PATCH 4/5] mm/memcontrol: allow to uncharge page without using page->lru field

2017-07-10 Thread Michal Hocko
On Wed 05-07-17 10:35:29, Jerome Glisse wrote: > On Tue, Jul 04, 2017 at 02:51:13PM +0200, Michal Hocko wrote: > > On Mon 03-07-17 17:14:14, Jérôme Glisse wrote: > > > HMM pages (private or public device pages) are ZONE_DEVICE page and > > > thus you can not use page->lru fields of those pages.

Re: [PATCHSET for-4.13] cgroup: implement cgroup2 thread mode, v2

2017-07-10 Thread Peter Zijlstra
On Fri, Jun 30, 2017 at 09:23:24AM -0400, Tejun Heo wrote: > On Tue, Jun 27, 2017 at 09:01:43AM +0200, Peter Zijlstra wrote: > > On Mon, Jun 12, 2017 at 05:27:53PM -0400, Tejun Heo wrote: > > IIRC the problem with the 'threaded' marker is that it doesn't clearly > > capture what a resource domain

Re: [PATCH] ptrace: Add compat PTRACE_{G,S}ETSIGMASK handlers

2017-07-10 Thread Yury Norov
On Thu, Jun 29, 2017 at 05:26:37PM +0100, James Morse wrote: > compat_ptrace_request() lacks handlers for PTRACE_{G,S}ETSIGMASK, > instead using those in ptrace_request(). The compat variant should > read a compat_sigset_t from userspace instead of ptrace_request()s > sigset_t. > > While

Re: [PATCH 1/4] kasan: support alloca() poisoning

2017-07-10 Thread Dmitry Vyukov
On Fri, Jul 7, 2017 at 12:01 AM, Greg Hackmann wrote: > clang's AddressSanitizer implementation adds redzones on either side of > alloca()ed buffers. These redzones are 32-byte aligned and at least 32 > bytes long. > > __asan_alloca_poison() is passed the size and address

Re: [RFC][PATCH] exec: Use init rlimits for setuid exec

2017-07-10 Thread Michal Hocko
On Thu 06-07-17 12:12:55, Kees Cook wrote: > On Thu, Jul 6, 2017 at 10:52 AM, Linus Torvalds > wrote: > > On Thu, Jul 6, 2017 at 10:29 AM, Kees Cook wrote: > >>> > >>> (a) minimal: just use our existing default stack (and stack _only_) > >>>

[PATCH] ftrace: hide cached module code for !CONFIG_MODULES

2017-07-10 Thread Arnd Bergmann
When modules are disabled, we get a harmless build warning: kernel/trace/ftrace.c:4051:13: error: 'process_cached_mods' defined but not used [-Werror=unused-function] This adds the same #ifdef around the new code that exists around its caller. Fixes: d7fbf8df7ca0 ("ftrace: Implement cached

[PATCH v2] MIPS: Fix minimum alignment requirement of IRQ stack

2017-07-10 Thread Matt Redfearn
Commit db8466c581cc ("MIPS: IRQ Stack: Unwind IRQ stack onto task stack") erroneously set the initial stack pointer of the IRQ stack to a value with a 4 byte alignment. The MIPS32 ABI requires that the minimum stack alignment is 8 byte, and the MIPS64 ABIs(n32/n64) require 16 byte minimum

Re: [PATCH 2/4] kasan: added functions for unpoisoning stack variables

2017-07-10 Thread Dmitry Vyukov
On Fri, Jul 7, 2017 at 12:01 AM, Greg Hackmann wrote: > From: Alexander Potapenko > > As a code-size optimization, LLVM builds since r279383 may > bulk-manipulate the shadow region when (un)poisoning large memory > blocks. This requires new callbacks

Re: [PATCH 1/3] ipc: convert ipc_namespace.count from atomic_t to refcount_t

2017-07-10 Thread Eric W. Biederman
"Reshetova, Elena" writes: 2>> Elena Reshetova writes: >> >> > refcount_t type and corresponding API should be >> > used instead of atomic_t when the variable is used as >> > a reference counter. This allows to avoid accidental >> >

Re: [PATCH v2 00/28] kbuild: complete UAPI de-coupling and cleanup scripts/Makefile.headersinst

2017-07-10 Thread Sam Ravnborg
Hi Masahiro. On Mon, Jul 10, 2017 at 03:32:32AM +0900, Masahiro Yamada wrote: > In v4.12-rc1, we had a big progress for headers_install. > All (and only) headers under UAPI directories are exported. > However, asm-generic wrappers are still exceptions because > most of arch/*/include/asm/Kbuild

Re: [PATCH] autofs: Revert wait_queue_t => wait_queue_entry_t rename

2017-07-10 Thread Ingo Molnar
* Florian Fainelli wrote: > This reverts commit ac6424b981bce1c4bc55675c6ce11bfe1bbfa64f "("sched/wait: > Rename wait_queue_t => wait_queue_entry_t") as far as the autofs user API > structures are concerned since that would break user space build against such > kernel

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

2017-07-10 Thread Peter Zijlstra
On Mon, Jul 10, 2017 at 09:38:30AM +0800, Aubrey Li wrote: > We measured 3%~5% improvemnt in disk IO workload, and 8%~20% improvement in > network workload. Argh, what a mess :/ So how much of the gain is simply due to skipping NOHZ? Mike used to carry a patch that would throttle NOHZ. And that

Re: [PATCH 4/4] thermal: Add Tegra BPMP thermal sensor driver

2017-07-10 Thread Mikko Perttunen
On 01.07.2017 05:53, Eduardo Valentin wrote: Hey Mikko, Sorry for the late answer, Likewise, On Fri, Jun 16, 2017 at 02:28:25PM +0300, Mikko Perttunen wrote: On Tegra186, the BPMP (Boot and Power Management Processor) exposes an interface to thermal sensors on the system-on-chip. This

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

2017-07-10 Thread Ganapatrao Kulkarni
Hi Marc, On Mon, Jul 3, 2017 at 8:23 PM, Marc Zyngier wrote: > Hi Shanker, > > On 03/07/17 15:24, Shanker Donthineni wrote: >> Hi Marc, >> >> On 06/30/2017 03:51 AM, Marc Zyngier wrote: >>> On 30/06/17 04:01, Ganapatrao Kulkarni wrote: On Fri, Jun 30, 2017 at 8:04 AM,

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

2017-07-10 Thread Marc Zyngier
On 10/07/17 09:48, Ganapatrao Kulkarni wrote: > Hi Marc, > > On Mon, Jul 3, 2017 at 8:23 PM, Marc Zyngier wrote: >> Hi Shanker, >> >> On 03/07/17 15:24, Shanker Donthineni wrote: >>> Hi Marc, >>> >>> On 06/30/2017 03:51 AM, Marc Zyngier wrote: On 30/06/17 04:01,

Re: [PATCH v2 2/8] exec: Move security_bprm_secureexec() earlier

2017-07-10 Thread Eric W. Biederman
Kees Cook writes: > There are several places where exec needs to know if a privilege-gain has > happened. These should be using the results of security_bprm_secureexec() > but it is getting (needlessly) called very late. It is hard to tell at a glance but I believe this

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

2017-07-10 Thread Ganapatrao Kulkarni
On Mon, Jul 10, 2017 at 2:36 PM, Marc Zyngier wrote: > On 10/07/17 09:48, Ganapatrao Kulkarni wrote: >> Hi Marc, >> >> On Mon, Jul 3, 2017 at 8:23 PM, Marc Zyngier wrote: >>> Hi Shanker, >>> >>> On 03/07/17 15:24, Shanker Donthineni wrote: Hi

Re: [PATCH v2 00/28] kbuild: complete UAPI de-coupling and cleanup scripts/Makefile.headersinst

2017-07-10 Thread Masahiro Yamada
Hi Sam, 2017-07-10 17:42 GMT+09:00 Sam Ravnborg : > Hi Masahiro. > > On Mon, Jul 10, 2017 at 03:32:32AM +0900, Masahiro Yamada wrote: >> In v4.12-rc1, we had a big progress for headers_install. >> All (and only) headers under UAPI directories are exported. >> However,

Re: [PATCH] ARM: dts: at91: sama5d2: fix EBI/NAND controllers declaration

2017-07-10 Thread Nicolas Ferre
On 07/07/2017 at 15:33, Ludovic Desroches wrote: > Fix HSMC interrupt ID, PMECC registers and EBI ones. > > Signed-off-by: Ludovic Desroches We need the "Fixes" tags (even if it's for 4.13). We need to take it for 4.13-final. Fixes: d9c41bf30cf8 ("ARM: dts:

Re: [PATCH 1/4] arm64: tegra: Add BPMP thermal sensor to Tegra186

2017-07-10 Thread Mikko Perttunen
On 01.07.2017 02:56, Eduardo Valentin wrote: On Fri, Jun 16, 2017 at 02:28:22PM +0300, Mikko Perttunen wrote: This adds the thermal sensor device provided by the BPMP, and the relevant thermal sensors to the Tegra186 device tree. Signed-off-by: Mikko Perttunen ---

Re: [PATCH] usb: gadget: udc-xilinx: compress return logic into one line

2017-07-10 Thread Michal Simek
On 10.7.2017 05:04, Gustavo A. R. Silva wrote: > Simplify return logic to avoid unnecessary variable assignment. > > This issue was detected using Coccinelle and the following > semantic patch: > > @@ > local idexpression ret; > expression e; > @@ > > -ret = > +return > e; > -return ret; >

[PATCH 1/1 V2] media: usb: uvc: Fix incorrect timeout for Get Request

2017-07-10 Thread Jim Lin
Section 9.2.6.4 of USB 2.0/3.x specification describes that "device must be able to return the first data packet to host within 500 ms of receipt of the request. For subsequent data packet, if any, the device must be able to return them within 500 ms". This is to fix incorrect timeout and change

[PATCH v3 7/7] libsas: release disco mutex during waiting in sas_ex_discover_end_dev

2017-07-10 Thread Yijing Wang
Disco mutex was introudced to prevent domain rediscovery competing with ata error handling(87c8331). If we have already hold the lock in sas_revalidate_domain and sync executing probe, deadlock caused, because, sas_probe_sata() also need hold disco_mutex. Since disco mutex use to prevent

[PATCH v3 5/7] libsas: add a new workqueue to run probe/destruct discovery event

2017-07-10 Thread Yijing Wang
Sometimes, we want sync libsas probe or destruct in sas discovery work, like when libsas revalidate domain. We need to split probe and destruct work from the scsi host workqueue. Signed-off-by: Yijing Wang CC: John Garry CC: Johannes Thumshirn

[PATCH v3 2/7] libsas: remove unused port_gone_completion

2017-07-10 Thread Yijing Wang
No one uses the port_gone_completion in struct asd_sas_port, clean it out. Signed-off-by: Yijing Wang --- include/scsi/libsas.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/scsi/libsas.h b/include/scsi/libsas.h index c41328d..628f48b 100644 ---

[PATCH v3 3/7] libsas: Use new workqueue to run sas event

2017-07-10 Thread Yijing Wang
Now all libsas works are queued to scsi host workqueue, include sas event work post by LLDD and sas discovery work, and a sas hotplug flow may be divided into several works, e.g libsas receive a PORTE_BYTES_DMAED event, now we process it as following steps: sas_form_port --- run in work in shot

  1   2   3   4   5   6   7   8   9   10   >