Re: [PATCH] prctl: remove one-shot limitation for changing exe link

2016-07-12 Thread Oleg Nesterov
On 07/12, Stanislav Kinsburskiy wrote: > > 12.07.2016 18:42, Oleg Nesterov пишет: >> But I would like to ack it in any case. I never understood why do we >> want/need this MMF_EXE_FILE_CHANGED check, I suggested to remove it >> many times. >> >> And can't resist, please note the xchg() below. Curre

[PATCH RT 3/8] list_bl: fixup bogus lockdep warning

2016-07-12 Thread Steven Rostedt
3.10.102-rt113-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Josh Cartwright At first glance, the use of 'static inline' seems appropriate for INIT_HLIST_BL_HEAD(). However, when a 'static inline' function invocation is inlined by gcc, all

[PATCH RT 4/8] kernel/printk: Dont try to print from IRQ/NMI region

2016-07-12 Thread Steven Rostedt
3.10.102-rt113-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Andrzej Siewior On -RT we try to acquire sleeping locks which might lead to warnings from lockdep or a warn_on() from spin_try_lock() (which is a rtmutex on RT). We don't

[PATCH RT 7/8] x86: Fix an RT MCE crash

2016-07-12 Thread Steven Rostedt
3.10.102-rt113-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Corey Minyard On some x86 systems an MCE interrupt would come in before the kernel was ready for it. Looking at the latest RT code, it has similar (but not quite the same) code, e

[PATCH RT 0/8] Linux 3.10.102-rt113-rc1

2016-07-12 Thread Steven Rostedt
Dear RT Folks, This is the RT stable review cycle of patch 3.10.102-rt113-rc1. Please scream at me if I messed something up. Please test the patches too. The -rc release will be uploaded to kernel.org and will be deleted when the final release is out. This is just a review release (or release c

[PATCH RT 8/8] Linux 3.10.102-rt113-rc1

2016-07-12 Thread Steven Rostedt
3.10.102-rt113-rc1 stable review patch. If anyone has any objections, please let me know. -- From: "Steven Rostedt (Red Hat)" --- localversion-rt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localversion-rt b/localversion-rt index 0c40e2660574..81697d288b

Re: [PATCH v12 0/3] printk: Make printk() completely async

2016-07-12 Thread Viresh Kumar
On 12-07-16, 17:59, Petr Mladek wrote: > On Mon 2016-07-11 12:25:11, Viresh Kumar wrote: > > We were also screwed because of the problem this thread is trying to solve, > > which I posted last week [1]. > > > > And then I found this thread which fixed my issue, thanks a lot guys :) > > > > Tested

Re: [PATCH] prctl: remove one-shot limitation for changing exe link

2016-07-12 Thread Eric W. Biederman
Cyrill Gorcunov writes: > On Tue, Jul 12, 2016 at 07:30:29PM +0400, Stanislav Kinsburskiy wrote: >> This limitation came with the reason to remove "another >> way for malicious code to obscure a compromised program and >> masquerade as a benign process" by allowing "security-concious program can

Re: [f2fs-dev] [PATCH 3/7] f2fs: drop any block plugging

2016-07-12 Thread Jaegeuk Kim
Hi Chao, On Tue, Jul 12, 2016 at 09:38:11AM +0800, Chao Yu wrote: > On 2016/7/10 0:32, Jaegeuk Kim wrote: > > On Sat, Jul 09, 2016 at 10:28:49AM +0800, Chao Yu wrote: > >> Hi Jaegeuk, > >> > >> On 2016/6/9 1:24, Jaegeuk Kim wrote: > >>> In f2fs, we don't need to keep block plugging for NODE and DA

[PATCH RT 5/8] arm: lazy preempt: correct resched condition

2016-07-12 Thread Steven Rostedt
3.10.102-rt113-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Andrzej Siewior If we get out of preempt_schedule_irq() then we check for NEED_RESCHED and call the former function again if set because the preemption counter has be zer

Re: [PATCH] mm: gup: Re-define follow_page_mask output parameter page_mask usage

2016-07-12 Thread Chen Gang
On 7/12/16 05:17, Andrew Morton wrote: > On Sun, 10 Jul 2016 01:17:05 +0800 cheng...@emindsoft.com.cn wrote: > >> For a pure output parameter: >> >> - When callee fails, the caller should not assume the output parameter >>is still valid. >> >> - And callee should not assume the pure output p

Re: [PATCH v3] f2fs: fix to avoid data update racing between GC and DIO

2016-07-12 Thread Jaegeuk Kim
On Tue, Jul 12, 2016 at 09:28:26AM +0800, Chao Yu wrote: > On 2016/7/10 0:22, Jaegeuk Kim wrote: > > On Fri, Jul 08, 2016 at 11:50:02PM +0800, Chao Yu wrote: > >> Hi Jaegeuk, > >> > >> On 2016/7/8 11:19, Jaegeuk Kim wrote: > >>> Hi Chao, > >>> > >>> Could you take a look at this in xfstests/generic

Re: [Query] Preemption (hogging) of the work handler

2016-07-12 Thread Viresh Kumar
On 12-07-16, 06:12, Viresh Kumar wrote: > Yeah, so I tried debugging this more and I am able to get printing > done to just before arch_suspend_disable_irqs() in suspend.c and then > it stops because of the async nature. > > I get to this point for both successful suspend/resume (where system > r

Re: [PATCH 6/9] x86, pkeys: add pkey set/get syscalls

2016-07-12 Thread Dave Hansen
On 07/12/2016 09:32 AM, Andy Lutomirski wrote: > I think it's more or less impossible to get sensible behavior passing > pkey != 0 data to legacy functions. If you call: > > void frob(struct foo *p); > > If frob in turn passes p to a thread, what PKRU is it supposed to use? The thread inheritan

Re: [RFC] [PATCH v2 1/3] scatterlist: Add support to clone scatterlist

2016-07-12 Thread Robert Jarzmik
Mark Brown writes: > On Thu, Jul 07, 2016 at 07:43:25PM +0200, Robert Jarzmik wrote: > >> I'll try, but I don't trust much my chances of success, given that this >> tester : >> - should compile and link in $(TOP)/lib/scatterlist.c, as this is where >>sg_split() is defined >> - this implies

Re: [PATCH RFC v2 1/2] media: platform: transfer format translations to soc_mediabus

2016-07-12 Thread Robert Jarzmik
Hans Verkuil writes: > On 04/02/2016 04:26 PM, Robert Jarzmik wrote: >> Transfer the formats translations to soc_mediabus. Even is soc_camera >> was to be deprecated, soc_mediabus will survive, and should describe all >> that happens on the bus connecting the image processing unit of the SoC >> a

[PATCH v4] Force cppc_cpufreq to report values in KHz to fix user space reporting

2016-07-12 Thread Al Stone
When CPPC is being used by ACPI on arm64, user space tools such as cpupower report CPU frequency values from sysfs that are incorrect. What the driver was doing was reporting the values given by ACPI tables in whatever scale was used to provide them. However, the ACPI spec defines the CPPC values

Re: [PATCH 2/2] mm: refuse wrapped vm_brk requests

2016-07-12 Thread Kees Cook
On Tue, Jul 12, 2016 at 9:39 AM, Oleg Nesterov wrote: > On 07/11, Kees Cook wrote: >> >> On Mon, Jul 11, 2016 at 8:28 AM, Oleg Nesterov wrote: >> > >> > and thus this patch fixes the error code returned by do_brk() in case >> > of overflow, now it returns -ENOMEM rather than zero. Perhaps >> > >>

Re: [PATCH 21/34] mm, vmscan: only wakeup kswapd once per node for the requested classzone

2016-07-12 Thread Johannes Weiner
On Fri, Jul 08, 2016 at 10:34:57AM +0100, Mel Gorman wrote: > kswapd is woken when zones are below the low watermark but the wakeup > decision is not taking the classzone into account. Now that reclaim is > node-based, it is only required to wake kswapd once per node and only if > all zones are un

Re: [perf/x86] 8de4a00661: WARNING: CPU: 0 PID: 1 at kernel/locking/mutex-debug.c:80 debug_mutex_unlock+0x20c/0x2b3

2016-07-12 Thread Thomas Gleixner
On Tue, 12 Jul 2016, Thomas Gleixner wrote: > On Wed, 13 Jul 2016, kernel test robot wrote: > > [1.863354] WARNING: CPU: 0 PID: 1 at kernel/locking/mutex-debug.c:80 > > debug_mutex_unlock+0x20c/0x2b3 > > [1.877193] DEBUG_LOCKS_WARN_ON(lock->owner != current) > > > > [1.979431] [] mut

Re: [PATCH 22/34] mm, page_alloc: wake kswapd based on the highest eligible zone

2016-07-12 Thread Johannes Weiner
On Fri, Jul 08, 2016 at 10:34:58AM +0100, Mel Gorman wrote: > The ac_classzone_idx is used as the basis for waking kswapd and that is based > on the preferred zoneref. If the preferred zoneref's first zone is lower > than what is available on other nodes, it's possible that kswapd is woken > on a z

Re: [PATCH] sched/fair: do not announce throttled next buddy in dequeue_task_fair

2016-07-12 Thread bsegall
Konstantin Khlebnikov writes: > On 11.07.2016 15:12, Xunlei Pang wrote: >> On 2016/07/11 at 17:54, Wanpeng Li wrote: >>> Hi Konstantin, Xunlei, >>> 2016-07-11 16:42 GMT+08:00 Xunlei Pang : On 2016/07/11 at 16:22, Xunlei Pang wrote: > On 2016/07/11 at 15:25, Wanpeng Li wrote: >> 2016-

Re: [PATCH] prctl: remove one-shot limitation for changing exe link

2016-07-12 Thread Stanislav Kinsburskiy
12.07.2016 18:42, Oleg Nesterov пишет: On 07/12, Stanislav Kinsburskiy wrote: --- a/kernel/sys.c +++ b/kernel/sys.c @@ -1696,16 +1696,6 @@ static int prctl_set_mm_exe_file(struct mm_struct *mm, unsigned int fd) fput(exe_file); } - /* -* The symlink can be c

[PATCH v2] media: s5p-mfc Fix misspelled error message and checkpatch errors

2016-07-12 Thread Shuah Khan
Fix misspelled error message and existing checkpatch errors in the error message conditional. WARNING: suspect code indent for conditional statements (8, 24) if (ctx->state != MFCINST_HEAD_PARSED && [...] mfc_err("Can not get crop information\n"); Signed-off-by: Shuah Khan Review

Re: [PATCH 23/34] mm: convert zone_reclaim to node_reclaim

2016-07-12 Thread Johannes Weiner
On Fri, Jul 08, 2016 at 10:34:59AM +0100, Mel Gorman wrote: > As reclaim is now per-node based, convert zone_reclaim to be node_reclaim. > It is possible that a node will be reclaimed multiple times if it has > multiple zones but this is unavoidable without caching all nodes traversed > so far. Th

Re: [PATCH] prctl: remove one-shot limitation for changing exe link

2016-07-12 Thread Cyrill Gorcunov
On Tue, Jul 12, 2016 at 11:52:09AM -0500, Eric W. Biederman wrote: > > > > Persistent exe-link doesn't guarantee anything if you have rights to ptrace > > task and inject own code into (from security POV). So lets rip it out. > > > > Acked-by: Cyrill Gorcunov > > I believe the original concern wa

Re: 答复: BUG: INTx is assered unexpectly when unload AHCI driver with MSIx support.

2016-07-12 Thread t...@kernel.org
Hello, On Mon, Jul 11, 2016 at 05:16:00AM +, Pang Raymond wrote: > static irqreturn_t ahci_multi_irqs_intr_hard(int irq, > void *dev_instance) > { > // omitting unconcerned codes here > // ... >status = readl(port_mmio + PORT_IRQ_STAT); >writel(status, po

[PATCH v2] drm/i915/skl: Add support for the SAGV, fix underrun hangs

2016-07-12 Thread Lyude
Since the watermark calculations for Skylake are still broken, we're apt to hitting underruns very easily under multi-monitor configurations. While it would be lovely if this was fixed, it's not. Another problem that's been coming from this however, is the mysterious issue of underruns causing full

Re: [PATCH 24/34] mm, vmscan: avoid passing in classzone_idx unnecessarily to shrink_node

2016-07-12 Thread Johannes Weiner
On Fri, Jul 08, 2016 at 10:35:00AM +0100, Mel Gorman wrote: > shrink_node receives all information it needs about classzone_idx > from sc->reclaim_idx so remove the aliases. > > Signed-off-by: Mel Gorman > Acked-by: Hillf Danton Acked-by: Johannes Weiner

[PATCH v3] drm/i915/skl: Add support for the SAGV, fix underrun hangs

2016-07-12 Thread Lyude
Since the watermark calculations for Skylake are still broken, we're apt to hitting underruns very easily under multi-monitor configurations. While it would be lovely if this was fixed, it's not. Another problem that's been coming from this however, is the mysterious issue of underruns causing full

Re: [RFC PATCH v3] net: sched: convert qdisc linked list to hashtable

2016-07-12 Thread Cong Wang
On Mon, Jul 11, 2016 at 7:02 AM, Jiri Kosina wrote: > diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h > index f45929c..0b5c172e 100644 > --- a/include/linux/netdevice.h > +++ b/include/linux/netdevice.h > @@ -52,6 +52,7 @@ > #include > #include > #include > +#include > >

[PATCH v3 2/2] pinctrl: iproc: Add NSP and Stingray GPIO support

2016-07-12 Thread Ray Jui
The iProc GPIO controller is shared among multiple iProc based SoCs. In the NSP integration, the drive strength pinctrl function is disabled. In the integration of Stingray, pinctrl is handled by another block and this GPIO controller is solely used as a GPIO controller, and therefore should not be

[PATCH v3 0/2] Additional iProc GPIO support

2016-07-12 Thread Ray Jui
Add support to the iProc GPIO driver for the NSP and Stingray iProc based SoCs. The integration in NSP has drive strength pinconf feature disabled and the integration in Stingray has all pinconf related features disabled and handled by a different IP block GITHUB repo: https://github.com/Broadcom/

[PATCH v3 1/2] dt-bindings: Update iProc GPIO bindings

2016-07-12 Thread Ray Jui
Update the iProc GPIO binding document to add new compatible strings "brcm,iproc-gpio-nsp" and "brcm,iproc-gpio-stingray" to support the iProc based GPIO controller used in the NSP and Stingray SoCs, respectively Signed-off-by: Ray Jui --- .../devicetree/bindings/pinctrl/brcm,iproc-gpio.txt|

Re: [PATCH] virtio-net: Remove more stack DMA

2016-07-12 Thread David Miller
From: Andy Lutomirski Date: Mon, 11 Jul 2016 14:30:28 -0700 > DaveM, is it okay for this to go in via -tip? Sure.

[PATCH v4 0/2] Nuvoton TPM2 support

2016-07-12 Thread Jason Gunthorpe
This should be ready to go now. v4: - Fix build error noticed by Fengguang Wu when DT is enabled. - IRQ patch split out Jason Gunthorpe (2): tpm: Factor out common startup code tpm: Add TPM 2.0 support to the Nuvoton i2c driver (NPCT6xx family) .../devicetree/bindings/i2c/trivial-devices.

[PATCH v4 2/2] tpm: Add TPM 2.0 support to the Nuvoton i2c driver (NPCT6xx family)

2016-07-12 Thread Jason Gunthorpe
The command flow is exactly the same, the core simply needs to be told to enable TPM2 mode when the compatible string indicates a TPM2. Signed-off-by: Andrew Azmansky Tested-by: Andrew Zamansky Signed-off-by: Jason Gunthorpe Acked-by: Rob Herring --- .../devicetree/bindings/i2c/trivial-device

[PATCH v4 1/2] tpm: Factor out common startup code

2016-07-12 Thread Jason Gunthorpe
The TCG standard startup sequence (get timeouts, tpm startup, etc) for TPM and TPM2 chips is being open coded in many drivers, move it into the core code. tpm_tis and tpm_crb are used as the basis for the core code implementation and the easy drivers are converted. In the process several small dri

Re: [PATCH] drm/radeon: Remove deprecated create_singlethread_workqueue

2016-07-12 Thread Tejun Heo
Hello, On Fri, Jul 08, 2016 at 02:52:30PM +0900, Michel Dänzer wrote: > On 07.07.2016 16:43, Christian König wrote: > >>> Also, what kind of delays matter here? Is it millisec range or micro? > >> It can be the latter in theory, but normally rather the former. > > > > Well to be precise with a t

Re: [kernel-hardening] [PATCH v5 13/32] x86/mm/64: In vmalloc_fault(), use CR3 instead of current->active_mm

2016-07-12 Thread Dave Hansen
On 07/11/2016 01:53 PM, Andy Lutomirski wrote: > If we get a vmalloc fault while current->active_mm->pgd doesn't > match CR3, we'll crash without this change. I've seen this failure > mode on heavily instrumented kernels with virtually mapped stacks. When does this happen, btw? Crossing page bou

Re: Odd performance results

2016-07-12 Thread H. Peter Anvin
On 07/12/16 08:05, Paul E. McKenney wrote: > On Tue, Jul 12, 2016 at 04:55:51PM +0200, Peter Zijlstra wrote: >> On Sun, Jul 10, 2016 at 07:43:27AM -0700, Paul E. McKenney wrote: >>> On Sun, Jul 10, 2016 at 07:17:19AM +0200, Peter Zijlstra wrote: On 10 July 2016 06:26:39 CEST, "Paul E

Re: [PATCH v2] zc3xx: Remove deprecated create_singlethread_workqueue

2016-07-12 Thread Tejun Heo
On Sat, Jul 09, 2016 at 01:22:29PM +0530, Bhaktipriya Shridhar wrote: > The workqueue "work_thread" is involved in updating parameters for > transfers. It has a single work item(&sd->work) and hence > doesn't require ordering. Also, it is not being used on a memory > reclaim path. Hence, the single

Re: [PATCH 25/34] mm, vmscan: avoid passing in classzone_idx unnecessarily to compaction_ready

2016-07-12 Thread Johannes Weiner
On Fri, Jul 08, 2016 at 10:35:01AM +0100, Mel Gorman wrote: > The scan_control structure has enough information available for > compaction_ready() to make a decision. The classzone_idx manipulations in > shrink_zones() are no longer necessary as the highest populated zone is > no longer used to det

Re: [kernel-hardening] [PATCH v5 13/32] x86/mm/64: In vmalloc_fault(), use CR3 instead of current->active_mm

2016-07-12 Thread Andy Lutomirski
On Tue, Jul 12, 2016 at 10:51 AM, Dave Hansen wrote: > On 07/11/2016 01:53 PM, Andy Lutomirski wrote: >> If we get a vmalloc fault while current->active_mm->pgd doesn't >> match CR3, we'll crash without this change. I've seen this failure >> mode on heavily instrumented kernels with virtually map

Re: [PATCH 26/34] mm, vmscan: avoid passing in remaining unnecessarily to prepare_kswapd_sleep

2016-07-12 Thread Johannes Weiner
On Fri, Jul 08, 2016 at 10:35:02AM +0100, Mel Gorman wrote: > As pointed out by Minchan Kim, the first call to prepare_kswapd_sleep > always passes in 0 for remaining and the second call can trivially > check the parameter in advance. > > Suggested-by: Minchan Kim > Signed-off-by: Mel Gorman Ac

[PATCH 1/7 v2] drm/vc4: Add a getparam ioctl for getting the V3D identity regs.

2016-07-12 Thread Eric Anholt
As I extend the driver to support different V3D revisions, userspace needs to know what version it's targeting. This is most easily detected using the V3D identity registers. v2: Make sure V3D is runtime PM on when reading the registers. Signed-off-by: Eric Anholt --- drivers/gpu/drm/vc4/vc4_d

Re: [3.19.y-ckt stable] Linux 3.19.8-ckt23

2016-07-12 Thread Kamal Mostafa
diff --git a/Makefile b/Makefile index 6b72df3..7e5e27e 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ VERSION = 3 PATCHLEVEL = 19 SUBLEVEL = 8 -EXTRAVERSION = -ckt22 +EXTRAVERSION = -ckt23 NAME = Sedated Swine # *DOCUMENTATION* @@ -376,7 +376,7 @@ AFLAGS_MODULE = LDFLAGS_MODULE =

[3.19.y-ckt stable] Linux 3.19.8-ckt23

2016-07-12 Thread Kamal Mostafa
I am announcing the release of the Linux 3.19.8-ckt23 kernel. *** *** Note that this is the FINAL 3.19.y-ckt RELEASE in this series. *** The updated 3.19.y-ckt tree can be found at: git://git.launchpad.net/~canonical-kernel/linux/+git/linux-stable-ckt linux-3.19.y and can be browsed at:

[PATCH v4 3/5] dma-buf/sync_file: add sync_file_get_fence()

2016-07-12 Thread Gustavo Padovan
From: Gustavo Padovan Creates a function that given an sync file descriptor returns a fence containing all fences in the sync_file. v2: Comments by Daniel Vetter - Adapt to new version of fence_collection_init() - Hold a reference for the fence we return v3: - Adapt to u

[PATCH v4 1/5] dma-buf/fence-array: add fence_is_array()

2016-07-12 Thread Gustavo Padovan
From: Gustavo Padovan Add helper to check if fence is array. v2: Comments from Chris Wilson - remove ternary if from ops comparison - add EXPORT_SYMBOL(fence_array_ops) Cc: Chris Wilson Cc: Christian König Signed-off-by: Gustavo Padovan Reviewed-by: Chris Wilson Reviewed-by:

[PATCH v4 2/5] dma-buf/sync_file: refactor fence storage in struct sync_file

2016-07-12 Thread Gustavo Padovan
From: Gustavo Padovan Create sync_file->fence to abstract the type of fence we are using for each sync_file. If only one fence is present we use a normal struct fence but if there is more fences to be added to the sync_file a fence_array is created. This change cleans up sync_file a bit. We don'

[PATCH v4 4/5] Documentation: add doc for sync_file_get_fence()

2016-07-12 Thread Gustavo Padovan
From: Gustavo Padovan Document the new function added to sync_file.c v2: Adapt to fence_array Signed-off-by: Gustavo Padovan Acked-by: Christian König --- Documentation/sync_file.txt | 15 +++ 1 file changed, 15 insertions(+) diff --git a/Documentation/sync_file.txt b/Documentat

[PATCH v4 5/5] dma-buf/sync_file: only enable fence signalling on poll()

2016-07-12 Thread Gustavo Padovan
From: Gustavo Padovan Signalling doesn't need to be enabled at sync_file creation, it is only required if userspace waiting the fence to signal through poll(). Thus we delay fence_add_callback() until poll is called. It only adds the callback the first time poll() is called. This avoid re-adding

Re: [PATCH 27/34] mm, vmscan: Have kswapd reclaim from all zones if reclaiming and buffer_heads_over_limit

2016-07-12 Thread Johannes Weiner
On Fri, Jul 08, 2016 at 10:35:03AM +0100, Mel Gorman wrote: > The buffer_heads_over_limit limit in kswapd is inconsistent with direct > reclaim behaviour. It may force an an attempt to reclaim from all zones and > then not reclaim at all because higher zones were balanced than required > by the ori

[PATCH v7 2/2] mm, kasan: switch SLUB to stackdepot, enable memory quarantine for SLUB

2016-07-12 Thread Alexander Potapenko
For KASAN builds: - switch SLUB allocator to using stackdepot instead of storing the allocation/deallocation stacks in the objects; - change the freelist hook so that parts of the freelist can be put into the quarantine. Signed-off-by: Alexander Potapenko --- v7: - addressed comments by A

Re: [PATCH 28/34] mm, vmscan: add classzone information to tracepoints

2016-07-12 Thread Johannes Weiner
On Fri, Jul 08, 2016 at 10:35:04AM +0100, Mel Gorman wrote: > This is convenient when tracking down why the skip count is high because > it'll show what classzone kswapd woke up at and what zones are being > isolated. > > Signed-off-by: Mel Gorman > Acked-by: Vlastimil Babka Acked-by: Johannes

[PATCH v7 1/2] mm, kasan: account for object redzone in SLUB's nearest_obj()

2016-07-12 Thread Alexander Potapenko
When looking up the nearest SLUB object for a given address, correctly calculate its offset if SLAB_RED_ZONE is enabled for that cache. Fixes: 7ed2f9e663854db ("mm, kasan: SLAB support") Signed-off-by: Alexander Potapenko --- include/linux/slub_def.h | 10 ++ mm/slub.c|

[PATCH v7 0/2] mm, kasan: stackdepot and quarantine for SLUB

2016-07-12 Thread Alexander Potapenko
This patch set enables stackdepot and quarantine for SLUB allocator and fixes a problem with incorrect calculating the offset of the nearest object in the presence of SLUB red zones. Alexander Potapenko (2): mm, kasan: account for object redzone in SLUB's nearest_obj() mm, kasan: switch SLUB t

Re: [PATCH v2 0/4] implement vcpu preempted check

2016-07-12 Thread Waiman Long
On 07/12/2016 12:16 AM, Juergen Gross wrote: On 11/07/16 17:10, Waiman Long wrote: On 07/06/2016 02:52 AM, Peter Zijlstra wrote: On Tue, Jun 28, 2016 at 10:43:07AM -0400, Pan Xinhui wrote: change fomr v1: a simplier definition of default vcpu_is_preempted skip mahcine type check on p

Re: [PATCH 29/34] mm, page_alloc: remove fair zone allocation policy

2016-07-12 Thread Johannes Weiner
On Fri, Jul 08, 2016 at 10:35:05AM +0100, Mel Gorman wrote: > The fair zone allocation policy interleaves allocation requests between > zones to avoid an age inversion problem whereby new pages are reclaimed to > balance a zone. Reclaim is now node-based so this should no longer be an > issue and

[PATCH v2] iommu/arm-smmu-v3: limit use of 2-level stream tables

2016-07-12 Thread Nate Watterson
In the current arm-smmu-v3 driver, all smmus that support 2-level stream tables are being forced to use them. This is suboptimal for smmus that support fewer stream id bits than would fill in a single second level table. This patch limits the use of 2-level tables to smmus that both support the fea

Re: [PATCH] drm/panel: Remove the get_timings() function.

2016-07-12 Thread Eric Anholt
Thierry Reding writes: > On Wed, Jun 01, 2016 at 12:18:01PM -0700, Eric Anholt wrote: >> It appears to have no callers. >> >> Signed-off-by: Eric Anholt >> --- >> drivers/gpu/drm/panel/panel-simple.c | 18 -- >> include/drm/drm_panel.h | 4 >> 2 files changed

[PATCH 1/1 linux-next] drbd: remove __packed definition

2016-07-12 Thread Fabian Frederick
__packed is already defined in compiler-gcc.h under __GNUC__ (see include/linux/compiler.h) Signed-off-by: Fabian Frederick --- drivers/block/drbd/drbd_protocol.h | 4 1 file changed, 4 deletions(-) diff --git a/drivers/block/drbd/drbd_protocol.h b/drivers/block/drbd/drbd_protocol.h index

Re: Odd performance results

2016-07-12 Thread Paul E. McKenney
On Tue, Jul 12, 2016 at 10:49:58AM -0700, H. Peter Anvin wrote: > On 07/12/16 08:05, Paul E. McKenney wrote: > > On Tue, Jul 12, 2016 at 04:55:51PM +0200, Peter Zijlstra wrote: > >> On Sun, Jul 10, 2016 at 07:43:27AM -0700, Paul E. McKenney wrote: > >>> On Sun, Jul 10, 2016 at 07:17:19AM +0200, Pet

Re: [PATCH] device-tree: nexus7: Set phy mode to otg instead of host

2016-07-12 Thread Bjorn Andersson
On Fri 01 Jul 22:33 PDT 2016, John Stultz wrote: > In order to have the usb phy work in gadget mode, override > the default host mode with otg mode. > > This allows gadget mode to work w/o any hacks to the dtsi file. > > Cc: Rob Herring > Cc: Andy Gross > Cc: Bjorn Andersson > Cc: Stephen Boy

Re: [RFC PATCH v2 6/7] lib/persubnode: Introducing a simple per-subnode APIs

2016-07-12 Thread Waiman Long
On 07/11/2016 11:14 PM, Boqun Feng wrote: On Mon, Jul 11, 2016 at 01:32:11PM -0400, Waiman Long wrote: +/* + * Initialize the subnodes + * + * All the sibling CPUs will be in the same subnode. On top of that, we will + * put at most 2 sibling groups into the same subnode. The percpu + * topology

Re: [PULL] lkdtm update (next)

2016-07-12 Thread Kees Cook
On Thu, Jul 7, 2016 at 2:14 PM, Kees Cook wrote: > Hi, > > Please pull these lkdtm changes for next. Friendly ping... I'd like this refactor to make it in time for the 4.8 merge window. :) -Kees > > Thanks! > > -Kees > > The following changes since commit e2402b1d214e5d50e807773563d590115a161f4

Re: [PATCH 30/34] mm: page_alloc: cache the last node whose dirty limit is reached

2016-07-12 Thread Johannes Weiner
On Fri, Jul 08, 2016 at 10:35:06AM +0100, Mel Gorman wrote: > If a page is about to be dirtied then the page allocator attempts to limit > the total number of dirty pages that exists in any given zone. The call > to node_dirty_ok is expensive so this patch records if the last pgdat > examined hit

Re: [PATCH v2] spi: spi-sh: Remove deprecated create_singlethread_workqueue

2016-07-12 Thread Tejun Heo
On Sun, Jul 10, 2016 at 07:55:19PM +0530, Bhaktipriya Shridhar wrote: > The workqueue has a single workitem(&ss->ws) and hence doesn't require > ordering. Also, it is not being used on a memory reclaim path. Hence, the > singlethreaded workqueue has been replaced with the use of system_wq. > > Sys

Re: [PATCH v2] spi: spi-topcliff-pch: Remove deprecated create_singlethread_workqueue

2016-07-12 Thread Tejun Heo
On Sun, Jul 10, 2016 at 07:42:13PM +0530, Bhaktipriya Shridhar wrote: > The workqueue "wk" serves as a queue for carrying out execution > of requests. It has a single work item(&drv_data->work) and hence doesn't > require ordering. Also, it is not being used on a memory reclaim path. > Hence, the s

Re: [PATCH FIX 4.6+] bcma: add PCI ID for Foxconn's BCM43142 device

2016-07-12 Thread Igor Mammedov
On Mon, 11 Jul 2016 23:01:36 +0200 Rafał Miłecki wrote: > After discovering there are 2 very different 14e4:4365 PCI devices we > made ID tables less generic. Back then we believed there are only 2 > such devices: > 1) 14e4:4365 1028:0016 with SoftMAC BCM43142 chipset > 2) 14e4:4365 14e4:4365 wit

Re: [patch 10/15] sched/migration: Move calc_load_migrate() into CPU_DYING

2016-07-12 Thread Vaidyanathan Srinivasan
* Thomas Gleixner [2016-07-12 18:33:56]: > Anton, > > On Tue, 12 Jul 2016, Anton Blanchard wrote: > > > It really does not matter when we fold the load for the outgoing cpu. > > > It's almost dead anyway, so there is no harm if we fail to fold the > > > few microseconds which are required for go

Re: Odd performance results

2016-07-12 Thread Peter Zijlstra
On Tue, Jul 12, 2016 at 10:49:58AM -0700, H. Peter Anvin wrote: > On 07/12/16 08:05, Paul E. McKenney wrote: > The CPU in question (and /proc/cpuinfo should show this) has four cores > with a total of eight threads. The "siblings" and "cpu cores" fields in > /proc/cpuinfo should show the same thin

Re: [RFC PATCH v2 6/7] lib/persubnode: Introducing a simple per-subnode APIs

2016-07-12 Thread Waiman Long
On 07/12/2016 10:27 AM, Tejun Heo wrote: Hello, On Mon, Jul 11, 2016 at 01:32:11PM -0400, Waiman Long wrote: The percpu APIs are extensively used in the Linux kernel to reduce cacheline contention and improve performance. For some use cases, the percpu APIs may be too fine-grain for distributed

Re: [RFC PATCH v2 6/7] lib/persubnode: Introducing a simple per-subnode APIs

2016-07-12 Thread Tejun Heo
Hello, On Tue, Jul 12, 2016 at 02:51:31PM -0400, Waiman Long wrote: > The last 2 RFC patches were created in response to Andi's comment to have > coarser granularity than per-cpu. In this particular use case, I don't think > global list traversals are frequent enough to really have any noticeable

[PATCH v2 2/2] iio: adc: sun4i_lradc: new driver

2016-07-12 Thread Alexandre Belloni
Add an IIO driver for the Allwinner Low Resolution ADC. This ADC is usually used for physical buttons connected using a resistor ladder. Signed-off-by: Alexandre Belloni --- Changes in v2: - prefixed defines with SUN4I_LRADC_ - removed sun4i_lradc_write_raw_get_fmt - set indio_dev->dev.of_node

Re: [PATCH 32/34] mm: vmstat: account per-zone stalls and pages skipped during reclaim

2016-07-12 Thread Johannes Weiner
On Fri, Jul 08, 2016 at 10:35:08AM +0100, Mel Gorman wrote: > The vmstat allocstall was fairly useful in the general sense but > node-based LRUs change that. It's important to know if a stall was for an > address-limited allocation request as this will require skipping pages > from other zones. T

Re: [PATCH v3 3/9] DocBook/v4l: Add compressed video formats used on MT8173 codec driver

2016-07-12 Thread Nicolas Dufresne
Le mardi 12 juillet 2016 à 16:16 +0800, Wu-Cheng Li (李務誠) a écrit : > Decoder hardware produces MT21 (compressed). Image processor can > convert it to a format that can be input of display driver. Tiffany. > When do you plan to upstream image processor (mtk-mdp)? > > > > It can be as input format f

[PATCH RT 0/4] Linux 3.4.112-rt143-rc1

2016-07-12 Thread Steven Rostedt
Dear RT Folks, This is the RT stable review cycle of patch 3.4.112-rt143-rc1. Please scream at me if I messed something up. Please test the patches too. The -rc release will be uploaded to kernel.org and will be deleted when the final release is out. This is just a review release (or release ca

Re: [PATCH 31/34] mm: vmstat: replace __count_zone_vm_events with a zone id equivalent

2016-07-12 Thread Johannes Weiner
On Fri, Jul 08, 2016 at 10:35:07AM +0100, Mel Gorman wrote: > This is partially a preparation patch for more vmstat work but it also has > the slight advantage that __count_zid_vm_events is cheaper to calculate > than __count_zone_vm_events(). > > Signed-off-by: Mel Gorman > Acked-by: Vlastimil B

[PATCH RT 2/4] trace: correct off by one while recording the trace-event

2016-07-12 Thread Steven Rostedt
3.4.112-rt143-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Andrzej Siewior Trace events like raw_syscalls show always a preempt code of one. The reason is that on PREEMPT kernels rcu_read_lock_sched_notrace() increases the preempt

[PATCH RT 4/4] Linux 3.4.112-rt143-rc1

2016-07-12 Thread Steven Rostedt
3.4.112-rt143-rc1 stable review patch. If anyone has any objections, please let me know. -- From: "Steven Rostedt (Red Hat)" --- localversion-rt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localversion-rt b/localversion-rt index 234720dc343d..aec9f67adee

Re: [PATCH v23 17/22] richacl: Automatic Inheritance

2016-07-12 Thread J. Bruce Fields
On Tue, Jul 12, 2016 at 07:56:00AM -0400, Jeff Layton wrote: > On Thu, 2016-06-30 at 15:47 +0200, Andreas Gruenbacher wrote: > > Automatic Inheritance (AI) allows changes to the acl of a directory to > > propagate down to children. > > > > This is mostly implemented in user space: when a process c

Re: [PATCH v2 2/3] Mark functions with the __nocapture attribute

2016-07-12 Thread Kees Cook
On Mon, Jul 4, 2016 at 7:42 PM, Emese Revfy wrote: > The nocapture gcc attribute can be on functions only. > The attribute takes one or more unsigned integer constants as parameters > that specify the function argument(s) of const char* type to initify. > If the marked argument is a vararg then th

[PATCH RT 3/4] x86: Fix an RT MCE crash

2016-07-12 Thread Steven Rostedt
3.4.112-rt143-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Corey Minyard On some x86 systems an MCE interrupt would come in before the kernel was ready for it. Looking at the latest RT code, it has similar (but not quite the same) code, ex

[PATCH v2 1/2] iio: sun4i-lradc: Add binding documentation

2016-07-12 Thread Alexandre Belloni
Document the bindings for the Allwinner LRADC. Signed-off-by: Alexandre Belloni --- .../devicetree/bindings/iio/adc/sun4i-lradc.txt | 19 +++ 1 file changed, 19 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/sun4i-lradc.txt diff --git a/Documen

Good Day..

2016-07-12 Thread James Mkhonso Nkosi
Kindly read attached business Proposal PROPOSAL.pdf Description: Adobe PDF document

Re: [PATCH v3 3/9] DocBook/v4l: Add compressed video formats used on MT8173 codec driver

2016-07-12 Thread Nicolas Dufresne
Le mardi 12 juillet 2016 à 15:08 -0400, Nicolas Dufresne a écrit : > Le mardi 12 juillet 2016 à 16:16 +0800, Wu-Cheng Li (李務誠) a écrit : > > Decoder hardware produces MT21 (compressed). Image processor can > > convert it to a format that can be input of display driver. > > Tiffany. > > When do you

Re: [PATCH 33/34] mm, vmstat: print node-based stats in zoneinfo file

2016-07-12 Thread Johannes Weiner
On Fri, Jul 08, 2016 at 10:35:09AM +0100, Mel Gorman wrote: > There are a number of stats that were previously accessible via zoneinfo > that are now invisible. While it is possible to create a new file for the > node stats, this may be missed by users. Instead this patch prints the > stats under t

[RFC PATCH 0/4] KVM: Emulate UMIP (or almost do so)

2016-07-12 Thread Paolo Bonzini
UMIP (User-Mode Instruction Prevention) is a feature of future Intel processors (Cannonlake?) that blocks SLDT, SGDT, STR, SIDT and SMSW from user-mode processes. The idea here is to use virtualization intercepts to emulate UMIP; it slows down the instructions when they're executed in ring 0, but

[RFC PATCH 3/4] KVM: x86: add support for emulating UMIP

2016-07-12 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- arch/x86/include/asm/kvm_host.h | 3 ++- arch/x86/kvm/cpuid.c| 5 - arch/x86/kvm/cpuid.h| 8 arch/x86/kvm/emulate.c | 13 + arch/x86/kvm/svm.c | 6 ++ arch/x86/kvm/vmx.c |

[RFC PATCH 4/4] KVM: vmx: add support for emulating UMIP

2016-07-12 Thread Paolo Bonzini
UMIP (User-Mode Instruction Prevention) is a feature of future Intel processors (Cannonlake?) that blocks SLDT, SGDT, STR, SIDT and SMSW from user-mode processes. On Intel systems it's *almost* possible to emulate it; it slows down the instructions when they're executed in ring 0, but they are rea

[RFC PATCH 2/4] KVM: x86: emulate sldt and str

2016-07-12 Thread Paolo Bonzini
These will be used to emulate UMIP through VMX descriptor-table vmexits. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/emulate.c | 27 +-- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index a2f24af3c999..3e

[RFC PATCH 1/4] x86: add UMIP feature and CR4 bit

2016-07-12 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- arch/x86/include/asm/cpufeatures.h | 1 + arch/x86/include/uapi/asm/processor-flags.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/arch/x86/include/asm/cpufeatures.h b/arch/x86/include/asm/cpufeatures.h index 4a413485f9eb..33703c83b647 100644 -

Re: [kernel-hardening] Re: [PATCH v2 2/3] Mark functions with the __nocapture attribute

2016-07-12 Thread Daniel Micay
On Tue, 2016-07-12 at 15:08 -0400, Kees Cook wrote: > On Mon, Jul 4, 2016 at 7:42 PM, Emese Revfy > wrote: > > > > The nocapture gcc attribute can be on functions only. > > The attribute takes one or more unsigned integer constants as > > parameters > > that specify the function argument(s) of co

[PATCH 2/2] fpga-manager: Add Socfpga Arria10 support

2016-07-12 Thread Alan Tull
Add low level driver to support reprogramming FPGAs for Altera SoCFPGA Arria10. Signed-off-by: Alan Tull --- drivers/fpga/Kconfig | 6 + drivers/fpga/Makefile | 1 + drivers/fpga/socfpga-a10.c | 573 + 3 files changed, 580 insertions(+)

Re: [PATCH 10/10] perf script python: Fix string vs byte array resolving

2016-07-12 Thread Arnaldo Carvalho de Melo
Em Tue, Jul 12, 2016 at 09:48:36AM -0400, Steven Rostedt escreveu: > On Tue, 12 Jul 2016 15:35:52 +0200 > Jiri Olsa wrote: > > > On Tue, Jul 12, 2016 at 09:00:01AM -0400, Steven Rostedt wrote: > > > On Tue, 12 Jul 2016 14:52:45 +0200 > > > Jiri Olsa wrote: > > > > > > > > > > hum, so string

[PATCH 0/2] FPGA Manager support for Arria10

2016-07-12 Thread Alan Tull
New patch submission for FPGA Manager support for the Altera SoCFPGA Arria10 plus device tree bindings. Alan Tull (2): ARM: socfpga: add bindings doc for arria10 fpga manager fpga-manager: Add Socfpga Arria10 support .../bindings/fpga/altera-socfpga-a10-fpga-mgr.txt | 19 + drivers/fpga/Kc

[PATCH v3 2/2] input: add ADC resistor ladder driver

2016-07-12 Thread Alexandre Belloni
A common way of multiplexing buttons on a single input in cheap devices is to use a resistor ladder on an ADC. This driver supports that configuration by polling an ADC channel provided by IIO. Acked-by: Jonathan Cameron Signed-off-by: Alexandre Belloni --- drivers/input/keyboard/Kconfig|

[PATCH v3 1/2] input: adc-keys: add DT binding documentation

2016-07-12 Thread Alexandre Belloni
Add documentation for ADC keys Signed-off-by: Alexandre Belloni --- Cc: Rob Herring Cc: devicet...@vger.kernel.org .../devicetree/bindings/input/adc-keys.txt | 49 ++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/adc-ke

<    3   4   5   6   7   8   9   10   >