[tip:x86/urgent] x86/alternatives: Do not use sync_core() to serialize I$

2016-12-20 Thread tip-bot for Borislav Petkov
Commit-ID: 16f69e06c610a594dc182b9cca19257345598153 Gitweb: http://git.kernel.org/tip/16f69e06c610a594dc182b9cca19257345598153 Author: Borislav Petkov AuthorDate: Sat, 3 Dec 2016 16:02:58 +0100 Committer: Ingo Molnar CommitDate: Tue, 20 Dec 2016 08:51:46 +0100 x86/alternatives: Do not

[tip:x86/urgent] x86/platform/intel-mid: Switch MPU3050 driver to IIO

2016-12-20 Thread tip-bot for Linus Walleij
Commit-ID: a7dcc6e076fb1e4ce1a56c7f3a49a83b41b01f44 Gitweb: http://git.kernel.org/tip/a7dcc6e076fb1e4ce1a56c7f3a49a83b41b01f44 Author: Linus Walleij AuthorDate: Wed, 14 Dec 2016 14:39:54 +0100 Committer: Ingo Molnar CommitDate: Tue, 20 Dec 2016 08:52:40 +0100 x86/platform/intel-mid: Sw

Re: [PATCH 2/7] PM / devfreq: exynos-ppmu: Use the regmap interface to handle the registers

2016-12-20 Thread Tobias Jakobi
Hello Chanwoo, Chanwoo Choi wrote: > Hi, > > On 2016년 12월 20일 04:47, Tobias Jakobi wrote: >> Hello, >> >> I was just wondering what is improved by moving to regmap. For me this >> looks like it only complicates the code. Lots of regmap_{read,write}() >> and for each one of these we need to check

Re: [RFC v2 4/5] rcu: Use for_each_leaf_node_cpu() in force_qs_rnp()

2016-12-20 Thread Boqun Feng
On Tue, Dec 20, 2016 at 01:59:14PM +0800, Boqun Feng wrote: > On Mon, Dec 19, 2016 at 09:09:13PM -0800, Paul E. McKenney wrote: > > On Mon, Dec 19, 2016 at 11:15:15PM +0800, Boqun Feng wrote: > > > On Thu, Dec 15, 2016 at 02:51:36PM +, Colin Ian King wrote: > > > > On 15/12/16 14:42, Boqun Feng

[PULL REQUEST] i2c for 4.10

2016-12-20 Thread Wolfram Sang
Linus, seond pull request from I2C with a set of bugfixes. Please pull. Thanks, Wolfram The following changes since commit 59331c215daf600a650e281b6e8ef3e1ed1174c2: Merge tag 'ceph-for-4.10-rc1' of git://github.com/ceph/ceph-client (2016-12-16 11:23:34 -0800) are available in the git

Re: [PATCH v8 3/8] thunderbolt: Communication with the ICM (firmware)

2016-12-20 Thread Mika Westerberg
On Mon, Dec 19, 2016 at 05:21:39PM +, mario.limoncie...@dell.com wrote: > Dell - Internal Use - Confidential > > > > > There is small problem, though. On non-Apple systems the host controller > > only > > appears when something is connected to thunderbolt ports. So the char device > > woul

Re: [PATCH] locking/hung_task: Defer showing held locks

2016-12-20 Thread Vegard Nossum
On 13 December 2016 at 15:45, Tetsuo Handa wrote: > When I was running my testcase which may block hundreds of threads > on fs locks, I got lockup due to output from debug_show_all_locks() > added by commit b2d4c2edb2e4f89a ("locking/hung_task: Show all locks"). > > I think we don't need to call d

Re: [PATCH -next] phy: rockchip-typec: fix non static symbol warnings

2016-12-20 Thread Vivek Gautam
On Wed, Sep 21, 2016 at 8:35 PM, Wei Yongjun wrote: > From: Wei Yongjun > > Fixes the following sparse warnings: > > drivers/phy/phy-rockchip-typec.c:295:16: warning: > symbol 'usb3_pll_cfg' was not declared. Should it be static? > drivers/phy/phy-rockchip-typec.c:312:16: warning: > symbol 'dp_

Re: [PATCH 2/7] PM / devfreq: exynos-ppmu: Use the regmap interface to handle the registers

2016-12-20 Thread Chanwoo Choi
On 2016년 12월 20일 17:08, Tobias Jakobi wrote: > Hello Chanwoo, > > > Chanwoo Choi wrote: >> Hi, >> >> On 2016년 12월 20일 04:47, Tobias Jakobi wrote: >>> Hello, >>> >>> I was just wondering what is improved by moving to regmap. For me this >>> looks like it only complicates the code. Lots of regmap_{

Re: [tip:x86/urgent] x86/boot: Prevent KASLR and memmap collision

2016-12-20 Thread Ingo Molnar
* tip-bot for Dave Jiang wrote: > Commit-ID: d1a5058c063d9e0aaaf4d360d0f8074ee55ed096 > Gitweb: http://git.kernel.org/tip/d1a5058c063d9e0aaaf4d360d0f8074ee55ed096 > Author: Dave Jiang > AuthorDate: Tue, 29 Nov 2016 12:26:40 -0700 > Committer: Thomas Gleixner > CommitDate: Mon, 19 Dec

Re: [PATCH 2/7] PM / devfreq: exynos-ppmu: Use the regmap interface to handle the registers

2016-12-20 Thread Chanwoo Choi
On 2016년 12월 20일 17:26, Chanwoo Choi wrote: > On 2016년 12월 20일 17:08, Tobias Jakobi wrote: >> Hello Chanwoo, >> >> >> Chanwoo Choi wrote: >>> Hi, >>> >>> On 2016년 12월 20일 04:47, Tobias Jakobi wrote: Hello, I was just wondering what is improved by moving to regmap. For me this lo

Re: [Nouveau] [PATCH] drm/nouveau: fix unknown chipset for GTX 1060

2016-12-20 Thread Karol Herbst
we already have that included in 4.10 2016-12-12 12:26 GMT+01:00 Chris Chiu : > Nouveau driver shows unknown chipset (136000a1) for GTX 1060, so it > only gives VGA resolution on screen. Use the same chipset as nv134 > then it shows FullHD. This commit copies fields from nv134_chipset > to nv136_c

Re: [PATCH] mm: throttle show_mem from warn_alloc

2016-12-20 Thread Michal Hocko
On Mon 19-12-16 15:21:25, Andrew Morton wrote: > On Thu, 15 Dec 2016 11:15:10 +0100 Michal Hocko wrote: > > > Tetsuo has been stressing OOM killer path with many parallel allocation > > requests when he has noticed that it is not all that hard to swamp > > kernel logs with warn_alloc messages cau

Re: [PATCH 2/9] xfs: introduce and use KM_NOLOCKDEP to silence reclaim lockdep false positives

2016-12-20 Thread Michal Hocko
On Tue 20-12-16 08:24:13, Dave Chinner wrote: > On Thu, Dec 15, 2016 at 03:07:08PM +0100, Michal Hocko wrote: > > From: Michal Hocko > > > > Now that the page allocator offers __GFP_NOLOCKDEP let's introduce > > KM_NOLOCKDEP alias for the xfs allocation APIs. While we are at it > > also change KM

Re: [PATCH] scripts: checkincludes: add exit message for no duplicates found

2016-12-20 Thread Cheah Kok Cheong
On Mon, Dec 19, 2016 at 11:47:47AM +0100, Michal Marek wrote: > On 2016-12-18 13:35, Cheah Kok Cheong wrote: > > If no duplicates found, inform user. > > > > Signed-off-by: Cheah Kok Cheong > > --- > > scripts/checkincludes.pl | 13 + > > 1 file changed, 13 insertions(+) > > > > dif

Re: Potential issues (security and otherwise) with the current cgroup-bpf API

2016-12-20 Thread Peter Zijlstra
On Mon, Dec 19, 2016 at 05:56:24PM -0800, Andy Lutomirski wrote: > >> Huh? My example in the original email attaches a program in a > >> sub-hierarchy. Are you saying that 4.11 could make that example stop > >> working? > > > > Are you suggesting sub-cgroups should not be allowed to override the

Re: [PATCH] x86/alternatives: add missing mutex lock in,alternatives_text_reserved

2016-12-20 Thread Rui Xiang
Hi, all In Sept 12, I reported a race between alternatives_text_reserved and alternatives_smp_module_del. That also exists in mainline. But adding mutex_lock(&smp_alt) in alternatives_text_reserved would cause an obvious deadlock tested by Xiaolong . > [ 18.325461] Possible unsafe locking scen

Re: [patch] nvme-fabrics: correct some printk information

2016-12-20 Thread Dan Carpenter
On Mon, Dec 19, 2016 at 04:40:30PM -0800, James Smart wrote: > Dan, > > Mind if I solve this a different way ? Not at all. Could you give me a Reported-by tag? regards, dan carpenter

Re: [PATCH RFC 1/1] mm, page_alloc: fix incorrect zone_statistics data

2016-12-20 Thread Michal Hocko
On Mon 12-12-16 13:59:07, Jia He wrote: > In commit b9f00e147f27 ("mm, page_alloc: reduce branches in > zone_statistics"), it reconstructed codes to reduce the branch miss rate. > Compared with the original logic, it assumed if !(flag & __GFP_OTHER_NODE) > z->node would not be equal to preferred_z

Re: [PATCH 1/1] kernel: futex: fixed to else and initcall

2016-12-20 Thread Thomas Gleixner
On Mon, 19 Dec 2016, Ozgur Karatas wrote: > else doesn't need to be used, if should be enclosed in parentheses. Really? > - if (err < 0) > + if (err < 0) { > return err; > - else > err = 0; > + } So you change the code from if (err < 0)

Re: [PATCH v2] rtc: imxdi: use the security violation interrupt

2016-12-20 Thread Lucas Stach
Am Montag, den 19.12.2016, 23:41 +0100 schrieb Martin Kaiser: > The DryIce chipset has a dedicated security violation interrupt that is > triggered for security violations (if configured to do so). According > to the publicly available imx258 reference manual, irq 56 is used for > this interrupt.

Re: Questions on the task isolation patches

2016-12-20 Thread Paolo Bonzini
On 16/12/2016 22:00, Chris Metcalf wrote: > > Sorry, I think I wasn't clear. Normally when you are running task > isolated and you enter the kernel, you will get a fatal signal. The > exception is if you call prctl itself (or exit), the kernel tolerates > it without a signal, since obviously t

Re: [RFC 0/4] make call_usermodehelper a bit more "safe"

2016-12-20 Thread Greg KH
On Mon, Dec 19, 2016 at 02:34:00PM +0100, Jiri Kosina wrote: > On Fri, 16 Dec 2016, Greg KH wrote: > > > > You seem to be targeting a situation where the kernel memory can be > > > easily changed, but filesystem content cannot (if it could - the > > > attacker would simply replace /sbin/hotplug).

Re: [tip:x86/urgent] x86/cpu: Probe CPUID leaf 6 even when cpuid_level == 6

2016-12-20 Thread Thomas Gleixner
On Mon, 19 Dec 2016, H. Peter Anvin wrote: > P.S. I would love to (a) move the CPUID bits into a structure instead of > passing all those crazy pointers around, and (b) stop passing struct > cpuinfo * around when we only use it for the current processor anyway (a > lot of these functions are in fac

Re: [tip:x86/urgent] x86/tools: Fix gcc-7 warning in relocs.c

2016-12-20 Thread H. Peter Anvin
I'd strongly prefer a non-data-dependent solution, specifically adding at the top of sort_relocs(): if (!r->count) return; However, by my reading of the C and POSIX standards, this is a gcc error: qsort() should do nothing if the count is zero. -hpa On 12/19/16 02:56, tip-bot fo

Re: [PATCH 1/6] KVM: x86: add VCPU stat for KVM_REQ_EVENT processing

2016-12-20 Thread Paolo Bonzini
On 20/12/2016 10:21, Roman Kagan wrote: > On Mon, Dec 19, 2016 at 10:47:13AM +0100, Paolo Bonzini wrote: >> Signed-off-by: Paolo Bonzini >> --- >> arch/x86/include/asm/kvm_host.h | 1 + >> arch/x86/kvm/x86.c | 2 ++ >> 2 files changed, 3 insertions(+) >> >> diff --git a/arch/x86/in

[tip:x86/urgent] x86/hyperv: Handle unknown NMIs on one CPU when unknown_nmi_panic

2016-12-20 Thread tip-bot for Vitaly Kuznetsov
Commit-ID: 59107e2f48831daedc46973ce4988605ab066de3 Gitweb: http://git.kernel.org/tip/59107e2f48831daedc46973ce4988605ab066de3 Author: Vitaly Kuznetsov AuthorDate: Fri, 2 Dec 2016 11:07:20 +0100 Committer: Ingo Molnar CommitDate: Tue, 20 Dec 2016 09:31:48 +0100 x86/hyperv: Handle unkno

Re: [PATCH 7/8] mq-deadline: add blk-mq adaptation of the deadline IO scheduler

2016-12-20 Thread Paolo Valente
> Il giorno 17 dic 2016, alle ore 01:12, Jens Axboe ha scritto: > > This is basically identical to deadline-iosched, except it registers > as a MQ capable scheduler. This is still a single queue design. > > Signed-off-by: Jens Axboe > ... > + > +static bool dd_has_work(struct blk_mq_hw_ctx *hc

[tip:x86/urgent] x86/alternatives: Do not use sync_core() to serialize I$

2016-12-20 Thread tip-bot for Borislav Petkov
Commit-ID: 34bfab0eaf0fb5c6fb14c6b4013b06cdc7984466 Gitweb: http://git.kernel.org/tip/34bfab0eaf0fb5c6fb14c6b4013b06cdc7984466 Author: Borislav Petkov AuthorDate: Sat, 3 Dec 2016 16:02:58 +0100 Committer: Ingo Molnar CommitDate: Tue, 20 Dec 2016 09:36:42 +0100 x86/alternatives: Do not

[tip:x86/urgent] x86/topology: Document cpu_llc_id

2016-12-20 Thread tip-bot for Borislav Petkov
Commit-ID: a268b5f1d6e4639fa6d78fc8bdddaebaa032ab24 Gitweb: http://git.kernel.org/tip/a268b5f1d6e4639fa6d78fc8bdddaebaa032ab24 Author: Borislav Petkov AuthorDate: Thu, 17 Nov 2016 10:45:57 +0100 Committer: Ingo Molnar CommitDate: Tue, 20 Dec 2016 09:36:29 +0100 x86/topology: Document c

[tip:x86/urgent] x86/platform/intel-mid: Switch MPU3050 driver to IIO

2016-12-20 Thread tip-bot for Linus Walleij
Commit-ID: 634b847b6d232f861abd5a03a1f75677f541b156 Gitweb: http://git.kernel.org/tip/634b847b6d232f861abd5a03a1f75677f541b156 Author: Linus Walleij AuthorDate: Wed, 14 Dec 2016 14:39:54 +0100 Committer: Ingo Molnar CommitDate: Tue, 20 Dec 2016 09:37:15 +0100 x86/platform/intel-mid: Sw

[tip:x86/urgent] x86/platform/intel/quark: Add printf attribute to imr_self_test_result()

2016-12-20 Thread tip-bot for Nicolas Iooss
Commit-ID: 9120cf4fd9ae77245ce9137869bcbd16575cc633 Gitweb: http://git.kernel.org/tip/9120cf4fd9ae77245ce9137869bcbd16575cc633 Author: Nicolas Iooss AuthorDate: Mon, 19 Dec 2016 14:21:44 +0100 Committer: Ingo Molnar CommitDate: Tue, 20 Dec 2016 09:37:24 +0100 x86/platform/intel/quark:

Re: [PATCH v3 01/15] stacktrace/x86: add function for detecting reliable stack traces

2016-12-20 Thread Petr Mladek
On Mon 2016-12-19 11:25:49, Josh Poimboeuf wrote: > On Mon, Dec 19, 2016 at 05:25:19PM +0100, Miroslav Benes wrote: > > On Thu, 8 Dec 2016, Josh Poimboeuf wrote: > > > > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > > > index 215612c..b4a6663 100644 > > > --- a/arch/x86/Kconfig > > > +++ b/

Re: [PATCH 1/1] kernel: futex: fixed to else and initcall

2016-12-20 Thread Ozgur Karatas
20.12.2016, 11:21, "Thomas Gleixner" : > On Mon, 19 Dec 2016, Ozgur Karatas wrote: > >>  else doesn't need to be used, if should be enclosed in parentheses. > > Really? > > > So you change the code from > > if (err < 0) > return err; > else > err

dm-crypt optimization

2016-12-20 Thread Binoy Jayan
At a high level the goal is to maximize the size of data blocks that get passed to hardware accelerators, minimizing the overhead from setting up and tearing down operations in the hardware. Currently dm-crypt itself is a big blocker as it manually implements ESSIV and similar algorithms which allo

A small window for a race condition in mm/rmap.c:page_lock_anon_vma_read

2016-12-20 Thread Dashi DS1 Cao
I've collected four crash dumps with similar backtrace. PID: 247TASK: 881fcfad8000 CPU: 14 COMMAND: "kswapd1" #0 [881fcfad7978] machine_kexec at 81051e9b #1 [881fcfad79d8] crash_kexec at 810f27e2 #2 [881fcfad7aa8] oops_end at 8163f448 #3 [881f

[PATCH v3 6/9] NTB: Add Messaging NTB API

2016-12-20 Thread Serge Semin
Some IDT NTB-capable PCIe-switches have message registers to communicate with peer devices. This patch adds new NTB API callback methods, which can be used to utilize these registers functionality: ntb_msg_count(); - get number of message registers ntb_msg_inbits(); - get bitfield of inbound mess

[PATCH v2] staging: emxx_udc: Fix styling issues

2016-12-20 Thread Afonso Bordado
Fix CamelCase styling issues with EP0_out_PIO Remove unecessary temporary variables Signed-off-by: Afonso Bordado --- drivers/staging/emxx_udc/emxx_udc.c | 29 - 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/dri

[PATCH v3 9/9] NTB: Add ntb.h comments

2016-12-20 Thread Serge Semin
Acked-by: Allen Hubbe Signed-off-by: Serge Semin --- include/linux/ntb.h | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/include/linux/ntb.h b/include/linux/ntb.h index 6d46179..dab0a1b 100644 --- a/include/linux/ntb.h +++ b/include/linux/ntb.h @@ -326,12

Re: Documentation/unaligned-memory-access.txt: fix incorrect comparison operator

2016-12-20 Thread Ozgur Karatas
20.12.2016, 02:22, "Cihangir Akturk" : > On Sun, Dec 18, 2016 at 12:52:12AM +0200, Ozgur Karatas wrote: >>  17.12.2016, 19:43, "Cihangir Akturk" : >>  > In the actual implementation ether_addr_equal function tests for equality >> to 0 >>  > when returning. It seems in commit 0d74c4 it is somehow o

Re: [PATCH] iommu/arm-smmu-v3: prevent corruption of ste stage-1 context ptr

2016-12-20 Thread Will Deacon
Hi Nate, Thanks for the patch. On Mon, Dec 19, 2016 at 03:38:38PM -0500, Nate Watterson wrote: > To ensure that the stage-1 context ptr for an ste points to the > intended context descriptor, this patch adds code to clear away > the stale context ptr value prior to or'ing in the new one. > > Sig

Re: [PATCH] Xen: ARM: Zero reserved fields of xatp before making hypervisor call

2016-12-20 Thread Juergen Gross
On 20/12/16 06:02, Jiandi An wrote: > On 12/19/16 12:49, Stefano Stabellini wrote: >> On Mon, 19 Dec 2016, Juergen Gross wrote: >>> On 19/12/16 03:56, Jiandi An wrote: Ensure all reserved fields of xatp are zero before making hypervisor call to XEN in xen_map_device_mmio(). xenmem_add_to

Re: [PATCH] Documentation/unaligned-memory-access.txt: fix incorrect comparison operator

2016-12-20 Thread Ozgur Karatas
20.12.2016, 01:13, "Jonathan Corbet" : > On Mon, 19 Dec 2016 23:53:40 +0200 > Cihangir Akturk wrote: > >>  In the actual implementation ether_addr_equal function tests for equality >> to 0 >>  when returning. It seems in commit 0d74c4 it is somehow overlooked to change >>  this operator to reflec

[PATCH] input: synaptics-rmi4: check for non zero version logically dead code

2016-12-20 Thread Colin King
From: Colin Ian King version is a u8, the check for version > 0 means that version can only be zero, so the subsequent check for version != 0 is never true and hence is redudant code and can be removed. Signed-off-by: Colin Ian King --- drivers/input/rmi4/rmi_f34.c | 2 -- 1 file changed, 2 de

Re: [PATCH 4/4] oom-reaper: use madvise_dontneed() logic to decide if unmap the VMA

2016-12-20 Thread Michal Hocko
On Mon 19-12-16 20:17:22, Kirill A. Shutemov wrote: > Logic on whether we can reap pages from the VMA should match what we > have in madvise_dontneed(). In particular, we should skip, VM_PFNMAP > VMAs, but we don't now. > > Let's just extract condition on which we can shoot down pagesi from a > VM

Re: [RFC] minimum gcc version for kernel: raise to gcc-4.3 or 4.6?

2016-12-20 Thread Heiko Carstens
On Fri, Dec 16, 2016 at 11:00:27PM +0100, Arnd Bergmann wrote: > On Friday, December 16, 2016 6:00:43 PM CET Sebastian Andrzej Siewior wrote: > > On 2016-12-16 11:56:21 [+0100], Arnd Bergmann wrote: > > > The original gcc-4.3 release was in early 2008. If we decide to still > > > support that, we p

Re: [tip:x86/urgent] x86/tools: Fix gcc-7 warning in relocs.c

2016-12-20 Thread Markus Trippelsdorf
On 2016.12.20 at 01:30 -0800, H. Peter Anvin wrote: > I'd strongly prefer a non-data-dependent solution, specifically adding > at the top of sort_relocs(): > > if (!r->count) > return; > > However, by my reading of the C and POSIX standards, this is a gcc > error: qsort() should do nothing if

Re: [PATCH] drm/i915/debugfs: use rb_entry()

2016-12-20 Thread Daniel Vetter
On Mon, Dec 19, 2016 at 10:43:49PM +0800, Geliang Tang wrote: > To make the code clearer, use rb_entry() instead of container_of() to > deal with rbtree. > > Signed-off-by: Geliang Tang Not sure a direct alias for container_of is all that useful, but we have list_entry too ... Queued up for 4.1

Re: [PATCH v2] staging: emxx_udc: Fix styling issues

2016-12-20 Thread Greg KH
On Tue, Dec 20, 2016 at 09:48:48AM +, Afonso Bordado wrote: > Fix CamelCase styling issues with EP0_out_PIO > Remove unecessary temporary variables Only do one-thing-per-patch please. thanks, gre gk-h

[PATCH] input: synaptics-rmi4: check for null rmi_dev before it is dereferenced

2016-12-20 Thread Colin King
From: Colin Ian King rmi_dev is currently being dereferenced before it null checked, so we have a potential null pointer dereference issue with this. Fix this by dereferencing rmi_dev after a null check has been performed. Fixes CoverityScan CID 1391218 ("Dereference before null check") Signed

Re: [PATCH 3/8] block: move rq_ioc() to blk.h

2016-12-20 Thread Paolo Valente
> Il giorno 17 dic 2016, alle ore 01:12, Jens Axboe ha scritto: > > We want to use it outside of blk-core.c. > Hi Jens, no hooks equivalent to elevator_init_icq_fn and elevator_exit_icq_fn are invoked. In particular, the second hook let bfq (as with cfq) know when it could finally exit the qu

[PATCH DEBUG] x86, pat/mtrr: MTRR/PAT init earlier for each APs

2016-12-20 Thread Chen Yu
This is a debug patch to descibe/workaround the issue we encountered recently. Problem and the cause: Currently we are suffering from *extremely* slow CPU online speed during system resuming from S3. Say, the MacBookPro 2015 has 4 CPUs, and it took more than 1 second each for both CPU1 and CPU3 to

Re: Potential issues (security and otherwise) with the current cgroup-bpf API

2016-12-20 Thread Daniel Mack
Hi, On 12/20/2016 04:50 AM, Andy Lutomirski wrote: > On Mon, Dec 19, 2016 at 7:18 PM, Alexei Starovoitov > wrote: >> On Mon, Dec 19, 2016 at 04:25:32PM -0800, Andy Lutomirski wrote: >>> I think we're still talking past each other. A big part of the point >>> of changing it is that none of this i

Re: [PATCH] iommu/arm-smmu-v3: avoid over allocating for l2 stream tables

2016-12-20 Thread Will Deacon
Hi Nate, On Mon, Dec 19, 2016 at 03:26:40PM -0500, Nate Watterson wrote: > Currently, all l2 stream tables are being allocated with space for > (1< physically supports. To avoid allocating memory for inaccessible > stes, this patch limits the span of an l2 table to be no larger > than the sid size

Re: [RFC 0/4] make call_usermodehelper a bit more "safe"

2016-12-20 Thread Jiri Kosina
On Tue, 20 Dec 2016, Greg KH wrote: > > Sorry, I really don't get this. > > > > If kernel memory can be easily changed (which is assumed here), why bother > > with all this? I'll just set current->uid to 0 and be done. > > Because you don't want your current process to uid 0, you want some > ot

[PATCH 5/7] ARM: dts: sun8i-a33-olinuxino: add cpu-supply

2016-12-20 Thread Quentin Schulz
This adds the cpu-supply DT property to the cpu0 DT node needed by the board to adapt the regulator voltage depending on the currently use OPP. Signed-off-by: Quentin Schulz --- This hasn't been tested on the board but it is what I understand from the schematics[1] of the board. Stefan (or anyo

[PATCH 0/7] add CPU thermal throttling to Allwinner A33 SoC

2016-12-20 Thread Quentin Schulz
The Allwinner SoCs all have an ADC that can also act as a touchscreen controller and a thermal sensor. The first four channels can be used either for the ADC or the touchscreen and the fifth channel is used for the thermal sensor. We currently have a driver for the two latter functions in drivers/i

[PATCH 2/7] Documentation: DT: bindings: mfd: add documentation for Allwinner SoCs' GPADC MFD driver

2016-12-20 Thread Quentin Schulz
The Allwinner SoCs all have an ADC that can also act as a thermal sensor and sometimes as a touchscreen controller. If there is a touchscreen controller, the first four channels can be used either for the ADC or the touchscreen and the fifth channel is used for the thermal sensor. If there is not a

[PATCH 1/7] Documentation: DT: bindings: iio: adc: add documentation for Allwinner SoCs' GPADC driver

2016-12-20 Thread Quentin Schulz
The Allwinner SoCs all have an ADC that can also act as a thermal sensor and sometimes as a touchscreen controller. If there is a touchscreen controller, the first four channels can be used either for the ADC or the touchscreen and the fifth channel is used for the thermal sensor. If there is not a

[PATCH 7/7] ARM: dtsi: sun8i-a33: add CPU thermal throttling

2016-12-20 Thread Quentin Schulz
This adds CPU thermal throttling for the Allwinner A33. It uses the thermal sensor present in the SoC's GPADC. Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/sun8i-a33.dtsi | 47 1 file changed, 47 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-

[PATCH 3/7] iio: adc: sun4i-gpadc-iio: add support for A33 thermal sensor

2016-12-20 Thread Quentin Schulz
This adds support for the Allwinner A33 thermal sensor. Unlike the A10, A13 and A31, the Allwinner A33 only has one channel which is dedicated to the thermal sensor. Moreover, its thermal sensor does not generate interruptions, thus we only need to directly read the register storing the temperatur

[PATCH v2] ASoC: wm_adsp: Don't overrun firmware file buffer when reading region data

2016-12-20 Thread Richard Fitzgerald
Protect against corrupt firmware files by ensuring that the length we get for the data in a region actually lies within the available firmware file data buffer. Signed-off-by: Richard Fitzgerald --- sound/soc/codecs/wm_adsp.c | 25 - 1 file changed, 24 insertions(+), 1 de

[PATCH 4/7] ARM: dts: sun8i-a33-sinlinx-sina33: add cpu-supply

2016-12-20 Thread Quentin Schulz
This adds the cpu-supply DT property to the cpu0 DT node needed by the board to adapt the regulator voltage depending on the currently used OPP. Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/

Re: [PATCH] Xen: ARM: Zero reserved fields of xatp before making hypervisor call

2016-12-20 Thread Julien Grall
Hi Jiandi, Please respect the netiquette and wrap line to 70-75 characters. On 20/12/2016 06:02, Jiandi An wrote: On 12/19/16 12:49, Stefano Stabellini wrote: On Mon, 19 Dec 2016, Juergen Gross wrote: On 19/12/16 03:56, Jiandi An wrote: Thanks for you comments. xatp is passed to XEN via t

[PATCH 6/7] ARM: dtsi: sun8i-a33: add A33 thermal sensor

2016-12-20 Thread Quentin Schulz
This adds the DT node for the thermal sensor present in the Allwinner A33 GPADC. Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/sun8i-a33.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a33.dtsi b/arch/arm/boot/dts/sun8i-a33.dtsi index 2878a77.

Re: [PATCH v3 2/2] iio: adc: hx711: Add IIO driver for AVIA HX711

2016-12-20 Thread Andreas Klinger
Hello Lars, thank you for the thorough review. I have some questions. See below. Thanks, Andreas Lars-Peter Clausen schrieb am Mon, 19. Dec 17:28: > On 12/14/2016 05:17 PM, Andreas Klinger wrote: > [...] > > +#include > > +#include > > Since you used the consumer API linux/gpio.h is not n

Re: [RFC 0/4] make call_usermodehelper a bit more "safe"

2016-12-20 Thread Jiri Kosina
On Tue, 20 Dec 2016, Jiri Kosina wrote: > I stay totally unconvinced that such kind of countermeasure brings any > value whatsoever. Could you please bring up a particular usecase, where > you have complete control over kernel memory, and still the only > possible exploit factor is redirecting

Re: [PATCH 2/4] mmc: mmc: Add change to set controller to HS400 frequency in enhanced strobe

2016-12-20 Thread Ritesh Harjani
Hi Shawn, On 12/20/2016 12:59 PM, Shawn Lin wrote: On 2016/12/20 13:53, Ritesh Harjani wrote: Currently mmc_select_hs400es is not setting the desired frequency before sending switch command. This makes CMD13 to timeout on some controllers. Thus add a change to set the desired HS400 frequency in

Re: [PATCH] staging: lustre: ldlm: use designated initializers

2016-12-20 Thread Dan Carpenter
On Mon, Dec 19, 2016 at 04:22:58PM +, James Simmons wrote: > > > Prepare to mark sensitive kernel structures for randomization by making > > sure they're using designated initializers. These were identified during > > allyesconfig builds of x86, arm, and arm64, with most initializer fixes > >

[PATCH 4/4] oom-reaper: use madvise_dontneed() logic to decide if unmap the VMA

2016-12-20 Thread Kirill A. Shutemov
Logic on whether we can reap pages from the VMA should match what we have in madvise_dontneed(). In particular, we should skip, VM_PFNMAP VMAs, but we don't now. Let's just extract condition on which we can shoot down pagesi from a VMA with MADV_DONTNEED into separate function and use it in both p

Re: [PATCH v2 1/5] clk: samsung: exynos5433: Set NoC (Network On Chip) clocks as critical

2016-12-20 Thread Sylwester Nawrocki
On 12/15/2016 05:33 AM, Chanwoo Choi wrote: > Could you please review this patch? Chanwoo, the patch looks good to me, I'm going to queue it after v4.10-rc1 is released. -- Thanks, Sylwester

Re: [RFC 0/4] make call_usermodehelper a bit more "safe"

2016-12-20 Thread Greg KH
On Tue, Dec 20, 2016 at 11:31:57AM +0100, Jiri Kosina wrote: > On Tue, 20 Dec 2016, Jiri Kosina wrote: > > > I stay totally unconvinced that such kind of countermeasure brings any > > value whatsoever. Could you please bring up a particular usecase, where > > you have complete control over kerne

Re: [PATCH v2] mmc: sdhci-cadence: add Socionext UniPhier specific compatible string

2016-12-20 Thread Ulf Hansson
On 14 December 2016 at 03:10, Masahiro Yamada wrote: > Add a Socionext SoC specific compatible (suggested by Rob Herring). > > No SoC specific data are associated with the compatible strings for > now, but other SoC vendors may use this IP and want to differentiate > IP variants in the future. > >

[Patch 4.8.2-3] Unexpected behaviour in wineserver

2016-12-20 Thread Alexander Freudenberg
Hi. Patch-4.8.2-3 introduced some unexpected behaviour when running certain, probably Delphi, applications with Wine. Using kernel 4.8.3, on one hand, the wineserver process gets stuck at full load and the application does not start. On the other hand, attempts to login are blocked during

Re: [PATCH 2/4] mmc: mmc: Add change to set controller to HS400 frequency in enhanced strobe

2016-12-20 Thread Shawn Lin
On 2016/12/20 18:33, Ritesh Harjani wrote: Hi Shawn, On 12/20/2016 12:59 PM, Shawn Lin wrote: On 2016/12/20 13:53, Ritesh Harjani wrote: Currently mmc_select_hs400es is not setting the desired frequency before sending switch command. This makes CMD13 to timeout on some controllers. Thus add a

[PATCH] drivers: misc: mic: constify mbus_hw_ops structures

2016-12-20 Thread Bhumika Goyal
The fields of structure mbus_hw_ops are never modified after initialization, so declare these structures as const. Add a const annotation to all its initializations and uses like function arguments and pointers. Used Coccinelle to find all the occurences. Size details: File size before: textd

[PATCH] fs: exec: apply CLOEXEC before changing dumpable task flags

2016-12-20 Thread Aleksa Sarai
If you have a process that has set itself to be non-dumpable, and it then undergoes exec(2), any CLOEXEC file descriptors it has open are "exposed" during a race window between the dumpable flags of the process being reset for exec(2) and CLOEXEC being applied to the file descriptors. This can be e

Re: [PATCH DEBUG] x86, pat/mtrr: MTRR/PAT init earlier for each APs

2016-12-20 Thread Lukas Wunner
On Tue, Dec 20, 2016 at 06:21:28PM +0800, Chen Yu wrote: > This is a debug patch to descibe/workaround the issue > we encountered recently. > > Problem and the cause: > Currently we are suffering from *extremely* slow CPU online > speed during system resuming from S3. Say, the MacBookPro 2015 > ha

Re: [tip:x86/urgent] x86/tools: Fix gcc-7 warning in relocs.c

2016-12-20 Thread H. Peter Anvin
On 12/20/16 02:00, Markus Trippelsdorf wrote: > On 2016.12.20 at 01:30 -0800, H. Peter Anvin wrote: >> I'd strongly prefer a non-data-dependent solution, specifically adding >> at the top of sort_relocs(): >> >> if (!r->count) >> return; >> >> However, by my reading of the C and POSIX standard

Re: [PATCH 1/1] kernel: futex: fixed to else and initcall

2016-12-20 Thread Thomas Gleixner
On Tue, 20 Dec 2016, Ozgur Karatas wrote: > 20.12.2016, 11:21, "Thomas Gleixner" : > > On Mon, 19 Dec 2016, Ozgur Karatas wrote: > > > >>  else doesn't need to be used, if should be enclosed in parentheses. > > > > Really? > > > > > > So you change the code from > > > > if (err < 0) > >    

Re: [PATCH] rtlwifi: Fix kernel oops introduced with commit e49656147359

2016-12-20 Thread Kalle Valo
Larry Finger writes: > With commit e49656147359 {"rtlwifi: Use dev_kfree_skb_irq instead of > kfree_skb"), the method used to free an skb was changed because the > kfree_skb() was inside a spinlock. What was forgotten is that kfree_skb() > guards against a NULL value for the argument. Routine dev

[PATCH] stmmac: CSR clock configuration fix

2016-12-20 Thread Joao Pinto
When testing stmmac with my QoS reference design I checked a problem in the CSR clock configuration that was impossibilitating the phy discovery, since every read operation returned 0x. This patch fixes the issue. Signed-off-by: Joao Pinto --- drivers/net/ethernet/stmicro/stmmac/stmmac_m

Re: [PATCH] sparc: use symbolic names for tsb indexing

2016-12-20 Thread Sam Ravnborg
On Mon, Dec 19, 2016 at 07:17:08PM -0800, Mike Kravetz wrote: > Use symbolic names MM_TSB_BASE and MM_TSB_HUGE instead of numeric values > 0 and 1 in __tsb_context_switch. Code cleanup only, no functional change. > > Suggested-by: Sam Ravnborg > Signed-off-by: Mike Kravetz Acked-by: Sam Ravnbor

[PATCH 3/3] gpio: mockup: coding style fixes

2016-12-20 Thread Bartosz Golaszewski
Fix whitespace errors and arrange local variables for better readability. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mockup.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c index 10f6bf6..82a9e

[PATCH 0/3] gpio: mockup: bug fixes and tweaks

2016-12-20 Thread Bartosz Golaszewski
While trying to use the gpio-mockup driver for testing purposes I noticed there's an issue with the gpiochip's label. It turned out the label pointer points to invalid memory area. This series fixes it and adds some minor changes in other places too. Bartosz Golaszewski (3): gpio: mockup: make p

[PATCH 2/3] gpio: mockup: dynamically allocate memory for chip name

2016-12-20 Thread Bartosz Golaszewski
Currently the chip name buffer is allocated on the stack and the address of the buffer is passed to the gpio framework. It's invalid after probe() returns, so the sysfs label attribute displays garbage. Use devm_kasprintf() for each string instead. Signed-off-by: Bartosz Golaszewski --- drivers

[PATCH 1/3] gpio: mockup: make pins_name_start static

2016-12-20 Thread Bartosz Golaszewski
This variable is not used outside this module. Make it static. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mockup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c index 1ef85b0..af0c1e8 100644 --- a/drivers

Re: [PATCH v3 6/7] thunderbolt: Power down controller when idle

2016-12-20 Thread Lukas Wunner
On Mon, Dec 19, 2016 at 01:05:10AM +0200, Andy Shevchenko wrote: > On Sat, Dec 17, 2016 at 4:39 PM, Lukas Wunner wrote: > > Document and implement Apple's ACPI-based (but nonstandard) pm mechanism > > for Thunderbolt. Briefly, an ACPI method provided by Apple is used to > > cut power to the contr

[PATCH 2/3] power: supply: bq24735: configure the charger as part of enabling it

2016-12-20 Thread Peter Rosin
During probe, it makes no sense to take care to first not issue any i2c commands to verify if the connected part really is a bq24735, to later simply fail the probe in the next step when trying to configure the charger. So, delay configuration of the charging parameters until the charger is accessi

Re: BQ27xxx registers

2016-12-20 Thread Pali Rohár
On Tuesday 20 December 2016 07:00:41 Chris Lapa wrote: > I can generate a patch to fix this issue, however the bigger problem > exists as to which revision fuel gauge the bq27xxx_battery.c driver > is intended to support for each family. Hi! I think driver should support all revisions. There can b

Re: uvcvideo logging kernel warnings on device disconnect

2016-12-20 Thread Dave Stevenson
Hi Greg. On 09/12/16 09:43, Greg KH wrote: On Fri, Dec 09, 2016 at 11:14:41AM +0200, Laurent Pinchart wrote: Hi Greg, On Friday 09 Dec 2016 10:11:13 Greg KH wrote: On Fri, Dec 09, 2016 at 10:59:24AM +0200, Laurent Pinchart wrote: On Friday 09 Dec 2016 08:25:52 Greg KH wrote: On Fri, Dec 09,

Applied "ASoC: wm_adsp: Don't overrun firmware file buffer when reading region data" to the asoc tree

2016-12-20 Thread Mark Brown
The patch ASoC: wm_adsp: Don't overrun firmware file buffer when reading region data has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the

Applied "regmap: use rb_entry()" to the regmap tree

2016-12-20 Thread Mark Brown
The patch regmap: use rb_entry() has been applied to the regmap tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next

[PATCH][V2] qed: fix memory leak of a qed_spq_entry on error failure paths

2016-12-20 Thread Colin King
From: Colin Ian King A qed_spq_entry entry is allocated by qed_sp_init_request but is not kfree'd if an error occurs, causing a memory leak. Fix this by returning the previously allocated spq entry and also setting *pp_ent to NULL to be safe. Thanks to Yuval Mintz for suggestions on how to impro

Re: [PATCH] scsi: do not requeue requests unaligned with device sector size

2016-12-20 Thread Guilherme G. Piccoli
On 12/20/2016 12:02 AM, Mauricio Faria de Oliveira wrote: > When a SCSI command (e.g., read operation) is partially completed > with good status and residual bytes (i.e., not all the bytes from > the specified transfer length were transferred) the SCSI midlayer > will update the request/bios with t

Re: wl1251 & mac address & calibration data

2016-12-20 Thread Kalle Valo
Arend Van Spriel writes: > On 18-12-2016 13:09, Pali Rohár wrote: > >> File wl1251-nvs.bin is provided by linux-firmware package and contains >> default data which should be overriden by model specific calibrated >> data. > > Ah. Someone thought it was a good idea to provide the "one ring to ru

Re: [RFC PATCH v3 0/6] KVM: x86: avoid redundant REQ_EVENT

2016-12-20 Thread Roman Kagan
On Mon, Dec 19, 2016 at 03:30:17PM +0100, Paolo Bonzini wrote: > > > On 19/12/2016 14:05, Denis Plotnikov wrote: > >> > > This new patch-set does avoid unnecessary interrupt re-injections - > > checked. > > > > The test (MS Windows, sending messages between multiple windows using > > windows-spe

Re: [PATCH] ALSA: snd-usb: fix IRQ triggered NULL pointer dereference

2016-12-20 Thread Ioan-Adrian Ratiu
On Tue, 20 Dec 2016, Takashi Sakamoto wrote: > --- > > Hi, > >> Commit 16200948d835 ("ALSA: usb-audio: Fix race at stopping the stream") >> fixes a race-codition but it also introduces another really nasty data race >> regression which makes my usb sound card [1] completely useless, throwing >> th

Re: [tip:x86/urgent] x86/tools: Fix gcc-7 warning in relocs.c

2016-12-20 Thread Markus Trippelsdorf
On 2016.12.20 at 03:10 -0800, H. Peter Anvin wrote: > On 12/20/16 02:00, Markus Trippelsdorf wrote: > > On 2016.12.20 at 01:30 -0800, H. Peter Anvin wrote: > >> I'd strongly prefer a non-data-dependent solution, specifically adding > >> at the top of sort_relocs(): > >> > >> if (!r->count) > >>

Re: [PATCH 6/8] blk-mq-sched: add framework for MQ capable IO schedulers

2016-12-20 Thread Paolo Valente
> Il giorno 17 dic 2016, alle ore 01:12, Jens Axboe ha scritto: > > This adds a set of hooks that intercepts the blk-mq path of > allocating/inserting/issuing/completing requests, allowing > us to develop a scheduler within that framework. > > We reuse the existing elevator scheduler API on the

  1   2   3   4   5   6   7   8   >