Re: [PATCH] security: selinux: allow changing labels for cgroupfs

2017-02-02 Thread Antonio Murdaca
On Thu, Feb 2, 2017 at 4:01 PM, Gary Tierney wrote: > On Thu, Feb 02, 2017 at 03:42:28PM +0100, Antonio Murdaca wrote: >> This patch allows changing labels for cgroup mounts. Previously, running >> chcon on cgroupfs would throw an "Operation not supported". This patch >> specifically whitelist cgr

Re: [PATCH] reset: make zx2967 explicitly non-modular

2017-02-02 Thread Philipp Zabel
On Thu, 2017-02-02 at 09:52 -0500, Paul Gortmaker wrote: > The Kconfig currently controlling compilation of this code is: > >config RESET_ZX2967 > bool "ZTE ZX2967 Reset Driver > > ...meaning that it currently is not being built as a module by anyone. > > Lets remove the couple tra

Re: [PATCHv7 4/8] printk: always use deferred printk when flush printk_safe lines

2017-02-02 Thread Petr Mladek
On Thu 2017-02-02 15:05:38, Sergey Senozhatsky wrote: > On (02/01/17 11:06), Steven Rostedt wrote: > [..] > > > static void printk_safe_flush_line(const char *text, int len) > > > { > > > /* > > > - * The buffers are flushed in NMI only on panic. The messages must > > > - * go only into the

Re: [PATCH v2 5/9] xen/pvh: Prevent PVH guests from using PIC, RTC and IOAPIC

2017-02-02 Thread Roger Pau Monné
On Thu, Jan 26, 2017 at 02:41:28PM -0500, Boris Ostrovsky wrote: > Make sure they don't use these devices since they are not emulated > for unprivileged PVH guest. This description seems weird for what it's actually done. AFAICT you are not really preventing the guest from using the PIC or the IO

Re: [PATCH v5 7/8] uapi: export all headers under uapi directories

2017-02-02 Thread Nicolas Dichtel
Le 02/02/2017 à 15:47, kbuild test robot a écrit : > Hi Nicolas, > > [auto build test ERROR on linus/master] > [also build test ERROR on v4.10-rc6] > [cannot apply to next-20170202] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve

Re: Cherryview wake up events

2017-02-02 Thread Johannes Stezenbach
On Thu, Feb 02, 2017 at 05:02:12PM +0200, Mika Westerberg wrote: > OK, I guess it is easier if I just order one of those machines here and > figure out how to get the PMIC driver working. Oh, I assumed the bottleneck is developer time, not lack of hardware... > Is the model Asus E200HA? Something

[PATCH] ipc/shm: Fix shmat mmap nil-page protection

2017-02-02 Thread Davidlohr Bueso
The issue is described here, with a nice testcase: https://bugzilla.kernel.org/show_bug.cgi?id=192931 The problem is that shmat() calls do_mmap_pgoff() with MAP_FIXED, and the address rounded down to 0. For the regular mmap case, the protection mentioned above is that the kernel gets to gener

Re: Build failure with v4.9-rc1 and GCC trunk -- compiler weirdness

2017-02-02 Thread Laura Abbott
On 02/02/2017 01:17 AM, Ard Biesheuvel wrote: > On 1 February 2017 at 21:50, Laura Abbott wrote: >> On 02/01/2017 09:36 AM, Ard Biesheuvel wrote: >>> On 1 February 2017 at 16:58, Laura Abbott wrote: On 10/19/2016 09:22 AM, Will Deacon wrote: > On Wed, Oct 19, 2016 at 09:01:33AM -0700, Li

Re: [RFC PATCH] x86/CPU/AMD: Bring back Compute Unit ID

2017-02-02 Thread Borislav Petkov
On Thu, Feb 02, 2017 at 01:10:54PM +0100, Borislav Petkov wrote: > Now on to run the same thing on a bigger bulldozer. It looks differently on the bigger box: before: Performance counter stats for 'make -s -j17 bzImage' (3 runs): 1333240.579196 task-clock (msec) #9.271 CPU

Re: Build failure with v4.9-rc1 and GCC trunk -- compiler weirdness

2017-02-02 Thread Ard Biesheuvel
On 2 February 2017 at 15:43, Laura Abbott wrote: > On 02/02/2017 01:17 AM, Ard Biesheuvel wrote: >> On 1 February 2017 at 21:50, Laura Abbott wrote: >>> On 02/01/2017 09:36 AM, Ard Biesheuvel wrote: On 1 February 2017 at 16:58, Laura Abbott wrote: > On 10/19/2016 09:22 AM, Will Deacon w

Re: [PATCH 3/5] Documentation: dt: iio: document stm32 exti trigger

2017-02-02 Thread Rob Herring
+Linus W On Thu, Feb 2, 2017 at 3:19 AM, Fabrice Gasnier wrote: > On 02/01/2017 05:35 PM, Rob Herring wrote: >> >> On Mon, Jan 30, 2017 at 02:57:41PM +0100, Fabrice Gasnier wrote: >>> >>> Add dt documentation for st,stm32-exti-trigger. >>> EXTi gpio signal can be routed internally as trigger sour

Re: [PATCH v7 3/3] watchdog: zx2967: add watchdog controller driver for ZTE's zx2967 family

2017-02-02 Thread Mathieu Poirier
Hi Baoyou, This version looks better - just a couple of comments below on things I didn't notice before. On Thu, Feb 02, 2017 at 05:16:35PM +0800, Baoyou Xie wrote: > This patch adds watchdog controller driver for ZTE's zx2967 family. > > Signed-off-by: Baoyou Xie > --- > drivers/watchdog/Kcon

Re: [tip:sched/core] sched/core: Add debugging code to catch missing update_rq_clock() calls

2017-02-02 Thread Peter Zijlstra
On Tue, Jan 31, 2017 at 10:22:47AM -0700, Ross Zwisler wrote: > On Tue, Jan 31, 2017 at 4:48 AM, Mike Galbraith wrote: > > On Tue, 2017-01-31 at 16:30 +0530, Sachin Sant wrote: Could some of you test this? It seems to cure things in my (very) limited testing. --- diff --git a/kernel/sched/core.

Re: [PATCHv7 4/8] printk: always use deferred printk when flush printk_safe lines

2017-02-02 Thread Petr Mladek
On Thu 2017-02-02 16:37:53, Petr Mladek wrote: > On Thu 2017-02-02 15:05:38, Sergey Senozhatsky wrote: > > On (02/01/17 11:06), Steven Rostedt wrote: > > [..] > > > > static void printk_safe_flush_line(const char *text, int len) > > > > { > > > > /* > > > > -* The buffers are flus

Re: Cherryview wake up events

2017-02-02 Thread Mika Westerberg
On Thu, Feb 02, 2017 at 04:42:43PM +0100, Johannes Stezenbach wrote: > On Thu, Feb 02, 2017 at 05:02:12PM +0200, Mika Westerberg wrote: > > OK, I guess it is easier if I just order one of those machines here and > > figure out how to get the PMIC driver working. > > Oh, I assumed the bottleneck is

Re: crypto: NULL deref in sha512_mb_mgr_get_comp_job_avx2

2017-02-02 Thread Tim Chen
On Thu, 2017-02-02 at 11:58 +0100, Dmitry Vyukov wrote: > On Wed, Feb 1, 2017 at 7:45 PM, Tim Chen wrote: > > > > On Tue, Jan 31, 2017 at 02:16:31PM +0100, Dmitry Vyukov wrote: > > > > > > Hello, > > > > > > I am getting the following reports with low frequency while running > > > syzkaller fuz

Re: [PATCH v6 3/3] thermal: zx2967: add thermal driver for ZTE's zx2967 family

2017-02-02 Thread Eduardo Valentin
Helllo Baoyou, Sorry I was not clear enough in my previous comment. Please find the explanation below: On Thu, Feb 02, 2017 at 11:08:06PM +0800, Baoyou Xie wrote: > This patch adds thermal driver for ZTE's zx2967 family. > > + > +static int zx2967_thermal_probe(struct platform_device *pdev)

Re: [PATCH] xen-netfront: Improve error handling during initialization

2017-02-02 Thread Boris Ostrovsky
On 02/02/2017 09:54 AM, Ross Lagerwall wrote: > On 02/01/2017 06:54 PM, Boris Ostrovsky wrote: >> On 02/01/2017 10:50 AM, Ross Lagerwall wrote: >>> Improve error handling during initialization. This fixes a crash when >>> running out of grant refs when creating many queues across many >>> netdevs.

Re: [PATCH 1/2 v3] mm: vmscan: do not pass reclaimed slab to vmpressure

2017-02-02 Thread Michal Hocko
On Thu 02-02-17 21:00:10, vinayak menon wrote: > On Thu, Feb 2, 2017 at 5:22 PM, Michal Hocko wrote: > > On Thu 02-02-17 16:55:49, vinayak menon wrote: > >> On Thu, Feb 2, 2017 at 4:18 PM, Michal Hocko wrote: > >> > On Thu 02-02-17 11:44:22, Michal Hocko wrote: > >> >> On Tue 31-01-17 14:32:08, V

Re: [PATCH v2] security: selinux: allow changing labels for cgroupfs

2017-02-02 Thread Daniel J Walsh
We need this patch set to tighten security inside of containers to only allow certain directories in the cgroup file system to be used by the containers. In order to make this work, SELinux policy also needs to be modified. On 02/02/2017 10:22 AM, Antonio Murdaca wrote: > This patch allows chang

Re: [PATCH v8 07/12] dt-bindings: i2c: i2c-mux-simple: document i2c-mux-simple bindings

2017-02-02 Thread Rob Herring
On Tue, Jan 31, 2017 at 1:36 AM, Peter Rosin wrote: > On 2017-01-30 18:20, Rob Herring wrote: >> On Sat, Jan 28, 2017 at 4:42 PM, Peter Rosin wrote: >>> On 2017-01-27 20:39, Rob Herring wrote: On Wed, Jan 18, 2017 at 04:57:10PM +0100, Peter Rosin wrote: > Describe how a generic multiplex

Re: [RFC PATCH] x86/CPU/AMD: Bring back Compute Unit ID

2017-02-02 Thread Ingo Molnar
* Borislav Petkov wrote: > On Thu, Feb 02, 2017 at 01:10:54PM +0100, Borislav Petkov wrote: > > Now on to run the same thing on a bigger bulldozer. > > It looks differently on the bigger box: > > before: > > Performance counter stats for 'make -s -j17 bzImage' (3 runs): > 143.807894000

Re: [PATCH] efi: fdt: avoid FDT manipulation after ExitBootServices()

2017-02-02 Thread Ard Biesheuvel
On 1 February 2017 at 22:59, Jeffrey Hugo wrote: > On 2/1/2017 2:08 PM, Jeffrey Hugo wrote: >> >> On 2/1/2017 10:45 AM, Ard Biesheuvel wrote: >>> >>> Some AArch64 UEFI implementations disable the MMU in ExitBootServices(), >>> after which unaligned accesses to RAM are no longer supported. >>> >>>

RE: [RFC PATCH] x86/CPU/AMD: Bring back Compute Unit ID

2017-02-02 Thread Ghannam, Yazen
> -Original Message- > From: Borislav Petkov [mailto:b...@alien8.de] > Sent: Thursday, February 2, 2017 7:11 AM > > Context switches have dropped, cache misses are the same and we have a > rise in cpu-migrations. That last bit is interesting and I don't have an > answer yet. Maybe peterz h

Re: [PATCH 1/3] ath10k: remove ath10k_vif_to_arvif()

2017-02-02 Thread Adrian Chadd
hiya, Removing this method makes the diff to FreeBSD larger, as "vif" in FreeBSD is a different pointer. (Yes, I have ath10k on freebsd working and I'd like to find a way to reduce the diff moving forward.) -adrian

[GIT PULL] PCI fixes for v4.10

2017-02-02 Thread Bjorn Helgaas
PCI fixes: - configure ASPM on the link from a PCI-to-PCIe bridge (avoids a NULL pointer dereference on topologies including these bridges) The following changes since commit 4d191b1b63c209e37bf27938ef365244d3c41084: PCI/MSI: pci-xgene-msi: Fix CPU hotplug registration handling (2017-01-

Re: [PATCHv7 5/8] printk: report lost messages in printk safe/nmi contexts

2017-02-02 Thread Petr Mladek
On Thu 2017-02-02 09:34:09, Steven Rostedt wrote: > On Thu, 2 Feb 2017 11:02:57 +0900 > Sergey Senozhatsky wrote: > > > On (02/01/17 11:37), Steven Rostedt wrote: > > > This looks fine, but I'm curious if you tested it. That is, added a > > > bunch of printks to overflow the buffer. IIRC, I did i

Re: [PATCH v15 04/13] task_isolation: add initial support

2017-02-02 Thread Eugene Syromiatnikov
> case PR_GET_FP_MODE: > error = GET_FP_MODE(me); > break; > +#ifdef CONFIG_TASK_ISOLATION > + case PR_SET_TASK_ISOLATION: > + error = task_isolation_set(arg2); > + break; > + case PR_GET_TASK_ISOLATION: > + error = me->t

Re: [PATCH 1/5] perf/sdt: Show proper hint

2017-02-02 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 02, 2017 at 02:40:48PM +0100, Ingo Molnar escreveu: > * Ravi Bangoria wrote: > > After patch: > > $ perf record -e sdt_glib:main__after_check > > event syntax error: 'sdt_glib:idle__add' > > \___ unknown tracepoint > > Error: File /sys/kernel/debug/tr

Re: [PATCH 1/3] perf, pt, coresight: Clean up address filter structure

2017-02-02 Thread Alexander Shishkin
Mathieu Poirier writes: > If this is what you want to convey then > > + * @action:filter/start/stop > > needs to be fixed. This can be interpreted as "use range filter, > start filter or stop filter" - which is exactly what I did. Something > like I was beginning to think that the 'correct

Re: [PATCH v2 5/9] xen/pvh: Prevent PVH guests from using PIC, RTC and IOAPIC

2017-02-02 Thread Boris Ostrovsky
On 02/02/2017 10:35 AM, Roger Pau Monné wrote: > On Thu, Jan 26, 2017 at 02:41:28PM -0500, Boris Ostrovsky wrote: >> Make sure they don't use these devices since they are not emulated >> for unprivileged PVH guest. > This description seems weird for what it's actually done. AFAICT you are not > rea

Re: [RFC PATCH] x86/CPU/AMD: Bring back Compute Unit ID

2017-02-02 Thread Ingo Molnar
* Ghannam, Yazen wrote: > Here are my results on a 32C Bulldozer system with an SSD. Also, I use ccache > so > I added "ccache -C" in the pre-build script so the cache gets cleared. > > Before: > Performance counter stats for 'make -s -j65 bzImage' (3 runs): > > 2375752.777479 task-

Re: [GIT PULL] PCI fixes for v4.10

2017-02-02 Thread Christoph Hellwig
On Thu, Feb 02, 2017 at 10:18:12AM -0600, Bjorn Helgaas wrote: > PCI fixes: > > - configure ASPM on the link from a PCI-to-PCIe bridge (avoids a NULL > pointer dereference on topologies including these bridges) Any reason you didn't include the affinity use outside the allocate range fix se

Re: Q: lockdep_assert_held_read() after downgrade_write()

2017-02-02 Thread J. R. Okajima
Peter Zijlstra: > Does something like the below work better? The annotation in > downgrade_write() would look something like: > > + lock_downgrade(&sem->dep_map, 1, _RET_IP_); > > Not even compile tested and lacks the !LOCKDEP build bits. Thanks for the patch. It seems working expectedly. I be

Re: [PATCH 1/1] MicroSemi Switchtec management interface driver

2017-02-02 Thread Logan Gunthorpe
On 01/02/17 05:10 AM, Emil Velikov wrote: > You can keep it roughly as-is if you're ~reasonably certain one won't > change it in the future. I've made the change anyway. I think it's better now. > Some teams frown upon adding new IOCTL(s) where existing ones can be > made backward/forward compa

[PATCH v4 3/4] device property: constify property arrays values

2017-02-02 Thread Dmitry Torokhov
From: Dmitry Torokhov Data that is fed into property arrays should not be modified, so let's mark relevant pointers as const. This will allow us making source arrays as const/__initconst. Also fix memory leaks on errors in property_entry_copy(). Signed-off-by: Dmitry Torokhov --- Not sending

Re: [PATCH v2] printk: Correctly handle preemption in console_unlock()

2017-02-02 Thread Petr Mladek
On Thu 2017-02-02 09:30:11, Steven Rostedt wrote: > On Wed, 25 Jan 2017 15:08:45 +0100 > Petr Mladek wrote: > > > diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c > > index 7180088cbb23..cc90c0a5ae21 100644 > > --- a/kernel/printk/printk.c > > +++ b/kernel/printk/printk.c > > @@ -2158

[PATCH 3/3] lockdep: new annotation lock_downgrade()

2017-02-02 Thread J. R. Okajima
The commit f831948 2016-11-30 locking/lockdep: Provide a type check for lock_is_held didn't fully support rwsem. Here downgrade_write() supports the added type. Originally-written-by: Peter Zijlstra See-also: http://marc.info/?l=linux-kernel&m=148581164003149&w=2 Signed-off-by: J. R. Oka

[PATCH 2/3] lockdep: consolidate by new validate_held_lock()

2017-02-02 Thread J. R. Okajima
A simple consolidataion. The behaviour should not change. Signed-off-by: J. R. Okajima --- kernel/locking/lockdep.c | 39 +-- 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index b7a2001..7dc

[PATCH 1/3] lockdep: consolidate by new find_held_lock()

2017-02-02 Thread J. R. Okajima
A simple consolidataion. The behaviour should not change. Signed-off-by: J. R. Okajima --- kernel/locking/lockdep.c | 114 ++- 1 file changed, 54 insertions(+), 60 deletions(-) diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index 85d

Re: [GIT PULL] PCI fixes for v4.10

2017-02-02 Thread Bjorn Helgaas
On Thu, Feb 02, 2017 at 08:30:24AM -0800, Christoph Hellwig wrote: > On Thu, Feb 02, 2017 at 10:18:12AM -0600, Bjorn Helgaas wrote: > > PCI fixes: > > > > - configure ASPM on the link from a PCI-to-PCIe bridge (avoids a NULL > > pointer dereference on topologies including these bridges) > >

Re: [PATCH v4 3/4] device property: constify property arrays values

2017-02-02 Thread Andy Shevchenko
On Thu, 2017-02-02 at 08:39 -0800, Dmitry Torokhov wrote: > From: Dmitry Torokhov > > Data that is fed into property arrays should not be modified, so let's > mark > relevant pointers as const. This will allow us making source arrays as > const/__initconst. > > Also fix memory leaks on errors i

Re: [PATCH v2] ext4: move halfmd4 into hash.c directly

2017-02-02 Thread Theodore Ts'o
On Tue, Jan 10, 2017 at 01:07:01AM +0100, Jason A. Donenfeld wrote: > The "half md4" transform should not be used by any new code. And > fortunately, it's only used now by ext4. Since ext4 supports several > hashing methods, at some point it might be desirable to move to > something like SipHash. A

Re: [PATCH v8 2/3] drm/panel: Add support for S6E3HA2 panel driver on TM2 board

2017-02-02 Thread Thierry Reding
On Thu, Feb 02, 2017 at 05:30:34PM +0200, Jani Nikula wrote: > On Tue, 31 Jan 2017, Thierry Reding wrote: > > On Tue, Jan 31, 2017 at 10:15:10AM -0800, Eric Anholt wrote: > >> I would love for drm-panel to be moved under -misc. > > > > Like that's going to magically motivate people to spend their

Re: [PATCH v6 3/3] thermal: zx2967: add thermal driver for ZTE's zx2967 family

2017-02-02 Thread Mathieu Poirier
On Thu, Feb 02, 2017 at 11:08:06PM +0800, Baoyou Xie wrote: > This patch adds thermal driver for ZTE's zx2967 family. > > Signed-off-by: Baoyou Xie > --- > drivers/thermal/Kconfig | 8 ++ > drivers/thermal/Makefile | 1 + > drivers/thermal/zx2967_thermal.c | 265 > +

Re: [PATCH] printk: use console_trylock() in console_cpu_notify()

2017-02-02 Thread Petr Mladek
On Thu 2017-02-02 12:53:47, Sergey Senozhatsky wrote: > Hello, > > thanks for taking a look, Petr. > > On (01/25/17 16:02), Petr Mladek wrote: > [..] > > > Signed-off-by: Sergey Senozhatsky > > > --- > > > kernel/printk/printk.c | 11 ++- > > > 1 file changed, 6 insertions(+), 5 deletio

[PATCH v2] staging: rtl8192e: Aligning the * on each line in block comments

2017-02-02 Thread Arushi
This patch fixes the issue by aligning the * on each line in block comments. Signed-off-by: Arushi --- drivers/staging/speakup/fakekey.c| 10 +- drivers/staging/speakup/i18n.c | 14 +++--- drivers/staging/speakup/main.c | 2 +- drivers/staging/speakup

Re: [PATCH v2 3/3] PCI: imx6: Add code to support i.MX7D

2017-02-02 Thread Andrey Smirnov
On Wed, Feb 1, 2017 at 9:57 AM, Lucas Stach wrote: > Am Mittwoch, den 01.02.2017, 08:55 -0800 schrieb Andrey Smirnov: >> Add various bits of code needed to support i.MX7D variant of the IP. >> >> Cc: yurov...@gmail.com >> Cc: Lucas Stach >> Cc: Bjorn Helgaas >> Cc: Rob Herring >> Cc: Mark Rutla

[PATCH] log2: make order_base_2() behave correctly on const input value zero

2017-02-02 Thread Ard Biesheuvel
The function order_base_2() is defined (according to the comment block) as returning zero on input zero, but subsequently passes the input into roundup_pow_of_two(), which is explicitly undefined for input zero. This has gone unnoticed until now, but optimization passes in GCC 7 may produce consta

[RFC/PATCH 0/3] introduce Timgad LSM

2017-02-02 Thread Djalal Harouni
From: Djalal Harouni Hi list, This RFC introduces Timgad a Linux Security Module that adds restrictions on module load and unload operations. The original idea and inspiration is from grsecurity 'GRKERNSEC_MODHARDEN'. However this was adapted to fit more as an LSM and also to fit today's Linux c

Re: [RFC PATCH] x86/CPU/AMD: Bring back Compute Unit ID

2017-02-02 Thread Borislav Petkov
On Thu, Feb 02, 2017 at 05:09:16PM +0100, Ingo Molnar wrote: > If there's any doubt about the validity of the measurement I'd suggest doing: > > perf stat -a --sync --repeat 3 ... > > ... so that there's no perf overhead and skew from the many processes of a > kernel > build workload, plu

[RFC/PATCH 2/3] security: Add the Timgad module

2017-02-02 Thread Djalal Harouni
From: Djalal Harouni This adds the Timgad module. Timgad allows to apply restrictions on which task is allowed to load or unload kernel modules. Auto-load module feature is also handled. The settings can also be applied globally using a sysctl interface, this allows to complete the core kernel in

Re: [PATCH v2 5/9] xen/pvh: Prevent PVH guests from using PIC, RTC and IOAPIC

2017-02-02 Thread Roger Pau Monné
On Thu, Feb 02, 2017 at 11:30:19AM -0500, Boris Ostrovsky wrote: > On 02/02/2017 10:35 AM, Roger Pau Monné wrote: > > On Thu, Jan 26, 2017 at 02:41:28PM -0500, Boris Ostrovsky wrote: > >> Make sure they don't use these devices since they are not emulated > >> for unprivileged PVH guest. > > This de

[RFC/PATCH 3/3] doc: add Timgad LSM documentation

2017-02-02 Thread Djalal Harouni
From: Djalal Harouni Cc: Kees Cook Signed-off-by: Djalal Harouni --- Documentation/security/Timgad.txt | 61 +++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/security/Timgad.txt diff --git a/Documentation/security/Timgad.txt b/Documen

[RFC/PATCH 1/3] security: add the security_task_copy() hook

2017-02-02 Thread Djalal Harouni
From: Djalal Harouni This hook is needed by Timgad LSM. Timgad uses a sysctl and a per-process prctl() interface to control which processes are allowed to load and unload modules. However to achieve that we need new hooks to save the context of tasks. Sadly there is no way, if we want to add new

Re: [PATCH v4 3/4] device property: constify property arrays values

2017-02-02 Thread Dmitry Torokhov
On February 2, 2017 8:48:30 AM PST, Andy Shevchenko wrote: >On Thu, 2017-02-02 at 08:39 -0800, Dmitry Torokhov wrote: >> From: Dmitry Torokhov >> >> Data that is fed into property arrays should not be modified, so >let's >> mark >> relevant pointers as const. This will allow us making source ar

Re: [PATCH] vfio: Fix build break when SPAPR_TCE_IOMMU=n

2017-02-02 Thread Alex Williamson
On Thu, 02 Feb 2017 20:50:48 +1100 Michael Ellerman wrote: > Michael Ellerman writes: > > > Currently the kconfig logic for VFIO_IOMMU_SPAPR_TCE and VFIO_SPAPR_EEH > > is broken when SPAPR_TCE_IOMMU=n. Leading to: > > > > warning: (VFIO) selects VFIO_IOMMU_SPAPR_TCE which has unmet direct

[PATCH] ARM: dts: Add EMAC AXI settings for Arria10

2017-02-02 Thread thor . thayer
From: Thor Thayer Add the device tree entries needed to support the EMAC AXI bus settings on the Arria10 SoCFPGA chip. Signed-off-by: Thor Thayer --- arch/arm/boot/dts/socfpga_arria10.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/socfpga_arria10.dtsi b/arch

[PATCH] ARC: ARC_HAS_COH_CACHES no longer relevant

2017-02-02 Thread Vineet Gupta
A typical SMP system expects cache coherency. Initial NPS platform support was slated to be SMP w/o cache coherency. However it seems the platform now selects that option, so there is no point in keeping it around. Signed-off-by: Vineet Gupta --- arch/arc/Kconfig| 6 -- arch/arc

[PATCH resend] ARC: ARC_HAS_COH_CACHES no longer relevant

2017-02-02 Thread Vineet Gupta
A typical SMP system expects cache coherency. Initial NPS platform support was slated to be SMP w/o cache coherency. However it seems the platform now selects that option, so there is no point in keeping it around. Signed-off-by: Vineet Gupta --- This time with Noam's fixed email address --- ar

[PATCH resend] ARC: ARC_HAS_COH_CACHES no longer relevant

2017-02-02 Thread Vineet Gupta
A typical SMP system expects cache coherency. Initial NPS platform support was slated to be SMP w/o cache coherency. However it seems the platform now selects that option, so there is no point in keeping it around. Signed-off-by: Vineet Gupta --- arch/arc/Kconfig| 6 -- arch/arc

RE: [PATCH v12 0/5] Enabling Ring 3 MONITOR/MWAIT feature for Knights Landing

2017-02-02 Thread Andrejczuk, Grzegorz
On Friday, January 20, 2017 Grzegorz wrote: > Following patches enable the use of the feature that allows > the Intel Xeon Phi x200 devices to use MONITOR/MWAIT instructions > outside ring 0. This feature allows userspace application to use > more efficient synchronization operations, which improve

Re: [PATCH v3 00/24] i.MX Media Driver

2017-02-02 Thread Russell King - ARM Linux
I seem to be getting some sort of memory corruption with this driver. I've had two instances now of uninitialised spinlocks in imx_media_dma_buf_get_active() which show that the spinlock being taken in this function is all-zeros. That very quickly leads to an oops, where I've seen buf->ring is NU

Re: [PATCH v2] staging: rtl8192e: Aligning the * on each line in block comments

2017-02-02 Thread Greg KH
On Thu, Feb 02, 2017 at 10:26:02PM +0530, Arushi wrote: > This patch fixes the issue by aligning the * on each line in block comments. > > Signed-off-by: Arushi > --- > drivers/staging/speakup/fakekey.c| 10 +- > drivers/staging/speakup/i18n.c | 14 +++--- > dri

Re: [PATCH] drm: change connector disconnected debug message to an error

2017-02-02 Thread Shuah Khan
On 02/02/2017 01:32 AM, Jani Nikula wrote: > On Thu, 02 Feb 2017, Shuah Khan wrote: >> Change drm_helper_probe_single_connector_modes() to print an error to >> report connector disconnected status instead of a debug message. >> >> When this condition occurs, application doesn't know the real error

Re: [alsa-devel] [RFC] [ALSA][CONTROL] Added 2 ioctls for reading/writing values of multiple controls in one go (at once)

2017-02-02 Thread Clemens Ladisch
Satendra Singh Thakur wrote: > -Added an ioctl to read values of multiple elements at once > -Added an ioctl to write values of multiple elements at once > -In the absence of above ioctls user needs to call N ioctls to > read/write value of N elements which requires N context switches And why are

Re: [PATCH v3 00/24] i.MX Media Driver

2017-02-02 Thread Steve Longerbeam
Hi Russell, I don't recommend spending too much time debugging this OOPS. The dma buffer ring has been removed completely in version 4 (which I'm trying to get ready to post hopefully by end of this week). Steve On 02/02/2017 09:22 AM, Russell King - ARM Linux wrote: I seem to be getting some

Re: Cherryview wake up events

2017-02-02 Thread Johannes Stezenbach
On Thu, Feb 02, 2017 at 05:58:26PM +0200, Mika Westerberg wrote: > On Thu, Feb 02, 2017 at 04:42:43PM +0100, Johannes Stezenbach wrote: > > On Thu, Feb 02, 2017 at 05:02:12PM +0200, Mika Westerberg wrote: > > > Is the model Asus E200HA? Something like this (sorry the information is > > > in Finnish

Re: [PATCH 1/3] perf, pt, coresight: Clean up address filter structure

2017-02-02 Thread Mathieu Poirier
On 2 February 2017 at 03:42, Alexander Shishkin wrote: > Mathieu Poirier writes: > >> Do we have two different syntax to specify the same behaviour? >> >> For example we have: >> >> --filter 'start 0x80082570/0x644' >> >> and >> >> --filter 'filter 0x80082570/0x644' >> >> Both will end up with fi

Subject: [REVERT][v4.x.y] btrfs: bugfix: handle FS_IOC32_{GETFLAGS,SETFLAGS,GETVERSION} in btrfs_ioctl

2017-02-02 Thread Joseph Salisbury
Hello, Please consider reverting commit 4c63c2454eff996c5e27991221106eb511f7db38 in the next v4.x.y release. It was included upstream as of v4.7-rc1 This commit introduced a regression, described in the following bug: http://bugs.launchpad.net/bugs/1619918 This new regression was discussed in t

RE: [PATCH 00/12] Cqm2: Intel Cache quality monitoring fixes

2017-02-02 Thread Luck, Tony
>> 7) Must be able to measure based on existing resctrl CAT group >> 8) Can get measurements for subsets of tasks in a CAT group (to find >> the guys hogging the resources) >> 9) Measure per logical CPU (pick active RMID in same precedence for >> task/cpu as CAT picks CLOSID) > > I

Re: [PATCH V6 2/5] PCI: Adapt pci_register_io_range() for indirect-IO and PCI I/O translation

2017-02-02 Thread John Garry
Hi Rafael, Could you kindly check the minor changes to drivers/acpi/pci_root.c? It would also be appreciated if you could review the ACPI-relevant parts in lib/extio.c, in [PATCH V5 5/5] LPC: Add the ACPI LPC support Thanks, John On 24/01/2017 07:05, zhichang.yuan wrote: After indirect-IO

Re: [PATCH v2] EDAC: mpc85xx: Add T2080 l2-cache support

2017-02-02 Thread Borislav Petkov
On Wed, Feb 01, 2017 at 11:46:23PM +, Chris Packham wrote: > >> diff --git a/drivers/edac/mpc85xx_edac.c b/drivers/edac/mpc85xx_edac.c > >> index 8f66cbed70b7..67f7bc3fe5b3 100644 > >> --- a/drivers/edac/mpc85xx_edac.c > >> +++ b/drivers/edac/mpc85xx_edac.c > >> @@ -629,6 +629,7 @@ static const

Re: [PATCH v2 5/9] xen/pvh: Prevent PVH guests from using PIC, RTC and IOAPIC

2017-02-02 Thread Boris Ostrovsky
On 02/02/2017 11:40 AM, Roger Pau Monné wrote: > On Thu, Feb 02, 2017 at 11:30:19AM -0500, Boris Ostrovsky wrote: >> On 02/02/2017 10:35 AM, Roger Pau Monné wrote: >>> On Thu, Jan 26, 2017 at 02:41:28PM -0500, Boris Ostrovsky wrote: Make sure they don't use these devices since they are not emu

tty: panic in tty_ldisc_restore

2017-02-02 Thread Dmitry Vyukov
Hello, Syzkaller fuzzer started crashing kernel with the following panics: Kernel panic - not syncing: Couldn't open N_TTY ldisc for ircomm0 --- error -12. CPU: 0 PID: 5637 Comm: syz-executor3 Not tainted 4.9.0 #6 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/0

RE: [PATCH 00/12] Cqm2: Intel Cache quality monitoring fixes

2017-02-02 Thread Shivappa Vikas
On Wed, 1 Feb 2017, Yu, Fenghua wrote: From: Andi Kleen [mailto:a...@firstfloor.org] "Luck, Tony" writes: 9) Measure per logical CPU (pick active RMID in same precedence for task/cpu as CAT picks CLOSID) 10) Put multiple CPUs into a group I'm not sure this is a real requirement.

Re: [PATCH v4 3/4] device property: constify property arrays values

2017-02-02 Thread Andy Shevchenko
On Thu, 2017-02-02 at 09:07 -0800, Dmitry Torokhov wrote: > On February 2, 2017 8:48:30 AM PST, Andy Shevchenko @linux.intel.com> wrote: > > On Thu, 2017-02-02 at 08:39 -0800, Dmitry Torokhov wrote: > > > From: Dmitry Torokhov > > > > > > Data that is fed into property arrays should not be modif

[PATCH v1 1/3] platform/x86: intel_mid_powerbtn: Unify PBSTATUS access

2017-02-02 Thread Andy Shevchenko
The status register on Intel Merrifield can be read in the similar way it's done for previous MID platforms. Unify access to PBSTATUS register via SCU IPC. Signed-off-by: Andy Shevchenko --- drivers/platform/x86/intel_mid_powerbtn.c | 41 ++- 1 file changed, 13 insert

[PATCH v1 3/3] platform/x86: intel_mid_powerbtn: Unify IRQ acknowledegment

2017-02-02 Thread Andy Shevchenko
The IRQ on Intel Merrifield can be acknowledged in the similar way it's done for previous MID platforms. Unify acknowledgement via SCU IPC. Signed-off-by: Andy Shevchenko --- drivers/platform/x86/intel_mid_powerbtn.c | 19 +++ 1 file changed, 7 insertions(+), 12 deletions(-) dif

[PATCH v1 0/3] platform/x86: intel_mid_powerbtn: Unify workflow

2017-02-02 Thread Andy Shevchenko
Currently there is a mess with PBSTATUS accessors between different Intel MID platforms. Here is the set to fix it and make driver eventually neat and almost clean. Andy Shevchenko (3): platform/x86: intel_mid_powerbtn: Unify PBSTATUS access platform/x86: intel_mid_powerbtn: Move comment to wh

[PATCH v1 2/3] platform/x86: intel_mid_powerbtn: Move comment to where it belongs

2017-02-02 Thread Andy Shevchenko
The comments is about initial interrupt acknowledgment only. So, move it back to where it belongs. Signed-off-by: Andy Shevchenko --- drivers/platform/x86/intel_mid_powerbtn.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/platform/x86/intel_mi

Re: tty: panic in tty_ldisc_restore

2017-02-02 Thread Greg Kroah-Hartman
On Thu, Feb 02, 2017 at 06:48:48PM +0100, Dmitry Vyukov wrote: > Hello, > > Syzkaller fuzzer started crashing kernel with the following panics: > > Kernel panic - not syncing: Couldn't open N_TTY ldisc for ircomm0 --- error > -12. > CPU: 0 PID: 5637 Comm: syz-executor3 Not tainted 4.9.0 #6 > Har

Re: [PATCH] log2: make order_base_2() behave correctly on const input value zero

2017-02-02 Thread kbuild test robot
Hi Ard, [auto build test WARNING on linus/master] [also build test WARNING on v4.10-rc6 next-20170202] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Ard-Biesheuvel/log2-make-order_base_2

Re: [PATCH v3 00/24] i.MX Media Driver

2017-02-02 Thread Russell King - ARM Linux
On Thu, Feb 02, 2017 at 05:22:46PM +, Russell King - ARM Linux wrote: > I thought, maybe, it's the IPU overwriting past the end of the buffer, > but I've added checks and that doesn't seem to have fired. I also > wondered if it was some kind of use-after-free of the ring, so I made > imx_media

Re: linux-next: Tree for Feb 2 (drivers/md/dm.c)

2017-02-02 Thread Randy Dunlap
On 02/01/17 23:21, Stephen Rothwell wrote: > Hi all, > > Changes since 20170201: > on x86_64: drivers/built-in.o: In function `dm_blk_ioctl': dm.c:(.text+0x1a5121): undefined reference to `scsi_verify_blk_ioctl' # CONFIG_BLK_DEV_BSG is not set # CONFIG_BLK_DEV_BSGLIB is not set -- ~Randy

[PATCH v3] staging: rtl8192e: Aligning the * on each line in block comments

2017-02-02 Thread Arushi
This patch fixes the issue by aligning the * on each line in block comments. [Patch v1] is rejected as the changes done is not following the linux coding style and [Patch v2] is rejected because forgot to mention the cause of rejection of [Patch v1]. Signed-off-by: Arushi -- Changes done from t

Re: [PATCH v8 2/3] drm/panel: Add support for S6E3HA2 panel driver on TM2 board

2017-02-02 Thread Thierry Reding
On Tue, Jan 31, 2017 at 01:05:20PM +0100, Andrzej Hajda wrote: > On 31.01.2017 09:54, Thierry Reding wrote: > > On Tue, Jan 31, 2017 at 09:01:07AM +0900, Inki Dae wrote: > >> > >> 2017년 01월 24일 10:50에 Hoegeun Kwon 이(가) 쓴 글: > >>> Dear Thierry, > >>> > >>> Could you please review this patch? > >> Th

[patch 0/3] KVM CPU frequency change hypercalls

2017-02-02 Thread Marcelo Tosatti
Implement KVM hypercalls for the guest to issue frequency changes. Current situation with DPDK and frequency changes is as follows: An algorithm in the guest decides when to increase/decrease frequency based on the queue length of the device. On the host, a power manager daemon is used to listen

[patch 2/3] KVM: x86: introduce ioctl to allow frequency hypercalls

2017-02-02 Thread Marcelo Tosatti
For most VMs, modifying the host frequency is an undesired operation. Introduce ioctl to enable the guest to modify host CPU frequency. Signed-off-by: Marcelo Tosatti --- arch/x86/include/asm/kvm_host.h |2 ++ arch/x86/include/uapi/asm/kvm.h |5 + arch/x86/kvm/x86.c |

[patch 3/3] KVM: x86: frequency change hypercalls

2017-02-02 Thread Marcelo Tosatti
Implement min/max/up/down frequency change KVM hypercalls. To be used by DPDK implementation. Also allow such hypercalls from guest userspace. Signed-off-by: Marcelo Tosatti --- Documentation/virtual/kvm/hypercalls.txt | 45 +++ arch/x86/kvm/x86.c | 7

[patch 1/3] cpufreq: implement min/max/up/down functions

2017-02-02 Thread Marcelo Tosatti
Implement functions in cpufreq userspace code to: * Change current frequency to {max,min,up,down} frequencies. up/down being relative to current one. These will be used to implement KVM hypercalls for the guest to issue frequency changes. Current situation with DPDK and frequency changes

Re: [PATCH 3/3] lockdep: new annotation lock_downgrade()

2017-02-02 Thread kbuild test robot
Hi Okajima, [auto build test ERROR on tip/locking/core] [also build test ERROR on v4.10-rc6 next-20170202] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/J-R-Okajima/lockdep-consolidate-by-new

Re: [PATCH v3 1/7] soc: smasung: pmu: Add register defines for pad retention control

2017-02-02 Thread Krzysztof Kozlowski
On Mon, Jan 30, 2017 at 09:43:29PM +0200, Krzysztof Kozlowski wrote: > On Mon, Jan 30, 2017 at 01:38:22PM +0100, Marek Szyprowski wrote: > > Add PMU defines related to pad retention control. Will be later used > > by the Exynos pin controller driver. > > > > Signed-off-by: Marek Szyprowski > > --

Re: net: suspicious RCU usage in nf_hook

2017-02-02 Thread Cong Wang
On Wed, Feb 1, 2017 at 3:59 PM, Eric Dumazet wrote: > On Wed, 2017-02-01 at 15:48 -0800, Eric Dumazet wrote: >> On Wed, Feb 1, 2017 at 3:29 PM, Cong Wang wrote: >> >> > Not sure if it is better. The difference is caught up in >> > net_enable_timestamp(), >> > which is called setsockopt() path an

Re: [PATCH v2 4/5] userfaultfd: mcopy_atomic: return -ENOENT when no compatible VMA found

2017-02-02 Thread Andrea Arcangeli
On Fri, Jan 27, 2017 at 08:44:32PM +0200, Mike Rapoport wrote: > - err = -EINVAL; > + err = -ENOENT; > dst_vma = find_vma(dst_mm, dst_start); > if (!dst_vma || !is_vm_hugetlb_page(dst_vma)) > goto out_unlock; > +

Re: [PATCH] CIFS: use correct format string for size_t

2017-02-02 Thread Pavel Shilovsky
2017-02-02 4:21 GMT-08:00 Arnd Bergmann : > This warning is harmless as size_t is always as wide as 'unsigned long': > > fs/cifs/smb2ops.c:2008:245: error: format '%lu' expects argument of type > 'long unsigned int', but argument 5 has type 'size_t {aka unsigned int}' > [-Werror=format=] > > Usin

Re: [patch 3/3] KVM: x86: frequency change hypercalls

2017-02-02 Thread Marcelo Tosatti
On Thu, Feb 02, 2017 at 03:47:58PM -0200, Marcelo Tosatti wrote: > Implement min/max/up/down frequency change > KVM hypercalls. To be used by DPDK implementation. > > Also allow such hypercalls from guest userspace. > > Signed-off-by: Marcelo Tosatti > > --- > Documentation/virtual/kvm/hyperc

Re: tty: panic in tty_ldisc_restore

2017-02-02 Thread Dmitry Vyukov
On Thu, Feb 2, 2017 at 6:55 PM, Greg Kroah-Hartman wrote: > On Thu, Feb 02, 2017 at 06:48:48PM +0100, Dmitry Vyukov wrote: >> Hello, >> >> Syzkaller fuzzer started crashing kernel with the following panics: >> >> Kernel panic - not syncing: Couldn't open N_TTY ldisc for ircomm0 --- error >> -12.

[PATCH v2] log2: make order_base_2() behave correctly on const input value zero

2017-02-02 Thread Ard Biesheuvel
The function order_base_2() is defined (according to the comment block) as returning zero on input zero, but subsequently passes the input into roundup_pow_of_two(), which is explicitly undefined for input zero. This has gone unnoticed until now, but optimization passes in GCC 7 may produce consta

adding si3210 driver

2017-02-02 Thread Giuseppe Lippolis
Hi All, I have a router running linux (LEDE distribution) with an embedded 3G modem and a POTS telephone interface. The telephone interface uses the si3210 device interfaced with the uP through an spi IF. The si3210 ProSLIC integrates a subscriber line interface circuit (SLIC) and is commonly found

<    1   2   3   4   5   6   7   8   >