[PATCH] gpio: f7188x: add missing break in switch statement

2017-04-26 Thread Colin King
From: Colin Ian King The case statement for f71889a is missing a break statement, add it. Detected with CoverityScan, CID#1431861 ("Missig break in switch") Fixes: d69843e416d31 ("gpio: f7188x: Add F71889A GPIO support.") Signed-off-by: Colin Ian King --- drivers/gpio/gpio-f7188x.c | 1 + 1 f

Re: [PATCH v2 2/2] dmaengine: Add DW AXI DMAC driver

2017-04-26 Thread Andy Shevchenko
On Tue, 2017-04-25 at 21:12 +0300, Andy Shevchenko wrote: > On Tue, 2017-04-25 at 15:16 +, Eugeniy Paltsev wrote: > > On Mon, 2017-04-24 at 19:56 +0300, Andy Shevchenko wrote: > > > On Mon, 2017-04-24 at 15:55 +, Eugeniy Paltsev wrote: > > > Descriptor is active until terminate_all() is ca

Re: [RFC PATCH] hwmon: Add driver for Infineon DPS310

2017-04-26 Thread Guenter Roeck
Hi Joel, On Thu, Apr 27, 2017 at 12:03:21AM +0930, Joel Stanley wrote: > Hi Guenter, > > Below is a work in progress hwmon driver for the DPS310[1]. The device does > both pressure and temperature monitoring over either I2C or SPI. There's a > public datasheet available on Infineon's website. >

Re: [PATCH] kvm: async_pf: fix rcu_irq_enter() with irqs enabled

2017-04-26 Thread Paul E. McKenney
On Wed, Apr 26, 2017 at 04:56:26PM +0200, Paolo Bonzini wrote: > native_safe_halt enables interrupts, and you just shouldn't > call rcu_irq_enter() with interrupts enabled. Reorder the > call with the following local_irq_disable() to respect the > invariant. > > Reported-by: Ross Zwisler > Cc: s

[PATCH 2/3] selinux: add checksum to policydb

2017-04-26 Thread Sebastien Buisson
Add policycksum field to struct policydb. It holds the sha256 checksum computed on the binary policy every time the notifier is called after a policy change. Add security_policy_cksum hook to give access to policy checksum to the rest of the kernel. Lustre client makes use of this information. Sig

Re: net/ipv6: use-after-free in __call_rcu/in6_dev_finish_destroy_rcu

2017-04-26 Thread Paul E. McKenney
On Wed, Apr 26, 2017 at 04:45:51PM +0200, Andrey Konovalov wrote: > On Wed, Apr 26, 2017 at 3:59 PM, Paul E. McKenney > wrote: > > On Wed, Apr 26, 2017 at 02:34:15PM +0200, Andrey Konovalov wrote: > >> Hi, > >> > >> I've got the following error report while fuzzing the kernel with > >> syzkaller.

[PATCH 3/3] selinux: expose policy SHA256 checksum via selinuxfs

2017-04-26 Thread Sebastien Buisson
Expose policy SHA256 checksum via selinuxfs. Signed-off-by: Sebastien Buisson --- security/selinux/selinuxfs.c | 20 1 file changed, 20 insertions(+) diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c index ce71718..b2d5deb 100644 --- a/security/selinu

[PATCH 1/3] selinux: Implement LSM notification system

2017-04-26 Thread Sebastien Buisson
From: Daniel Jurgens Add a generic notification mechanism in the LSM. Interested consumers can register a callback with the LSM and security modules can produce events. Add a call to the notification mechanism from SELinux when the AVC cache changes. Signed-off-by: Daniel Jurgens Signed-off-by

[PATCH] kvm: async_pf: fix rcu_irq_enter() with irqs enabled

2017-04-26 Thread Paolo Bonzini
native_safe_halt enables interrupts, and you just shouldn't call rcu_irq_enter() with interrupts enabled. Reorder the call with the following local_irq_disable() to respect the invariant. Reported-by: Ross Zwisler Cc: sta...@vger.kernel.org Signed-off-by: Paolo Bonzini --- arch/x86/kernel/kvm.

[PATCH] parse-events: Fix the FALSE case in pevent_filter_clear_trivial()

2017-04-26 Thread Taeung Song
Currently the FILTER_TRIVIAL_FALSE hasn't break statement so if the trivial type is FALSE, it'll be hit always. So add break statement at the FALSE case to correctly remove trivial filters. Reported-by: Namhyung Kim Signed-off-by: Taeung Song --- parse-filter.c | 1 + 1 file changed, 1 inserti

Re: [PATCH] trace-cmd: Fix a warning about incompatible pointer type of load_plugin()

2017-04-26 Thread Taeung Song
Hi Steven :) On 04/26/2017 08:11 AM, Steven Rostedt wrote: On Mon, 24 Apr 2017 22:43:31 +0900 Taeung Song wrote: Currently the return type of load_plugin() in plugin_python.c is void type, but it is different from the argument type of trace_util_load_plugins(). So fix it for the below warning

Re: [PATCH 0/2] nohz: Deal with clock reprogram skipping issues v2

2017-04-26 Thread Frederic Weisbecker
On Mon, Apr 24, 2017 at 04:45:23PM +0200, Ingo Molnar wrote: > > * Frederic Weisbecker wrote: > > > On Mon, Apr 24, 2017 at 10:08:35AM +0200, Ingo Molnar wrote: > > > > > > * Frederic Weisbecker wrote: > > > > > > > As suggested by Thomas Gleixner, the second patch now integrates > > > > a fi

Re: linux-next: Tree for Apr 26 (net/can/bcm.c)

2017-04-26 Thread Randy Dunlap
On 04/26/17 01:03, Stephen Rothwell wrote: > Hi all, > > Changes since 20170424: > on x86_64: when CONFIG_PROC_FS is not enabled: ../net/can/bcm.c:1541:14: error: 'struct netns_can' has no member named 'bcmproc_dir' ../net/can/bcm.c:1601:14: error: 'struct netns_can' has no member named 'bcm

Re: [PATCH v2 1/1] gpio: gpio-wcove: fix GPIO IRQ status mask

2017-04-26 Thread Andy Shevchenko
On Wed, Apr 26, 2017 at 5:26 PM, Linus Walleij wrote: > On Mon, Apr 24, 2017 at 9:15 PM, > wrote: > >> From: Kuppuswamy Sathyanarayanan >> >> According to Whiskey Cove PMIC spec, bit 7 of GPIOIRQ0_REG belongs to >> battery IO. So we should skip this bit when checking for GPIO IRQ pending >> stat

Re: [PATCH] driver core: platform: fix race condition with driver_override

2017-04-26 Thread Adrian Salido
> > The driver_override implementation is susceptible to race condition when > > different threads are reading vs storing a different driver override. > > Add locking to avoid race condition. > > > > Fixes: 3d713e0e382e ("driver core: platform: add device binding path > > 'driver_override'") > > C

Re: [PATCH] perf evsel: Fix to perf-stat malloc corruption on arm64 platforms

2017-04-26 Thread Mark Rutland
Hi Ganapatrao, Thanks for tracking this down. On Wed, Apr 26, 2017 at 02:56:20PM +0530, Ganapatrao Kulkarni wrote: > In some cases, ncpus used for perf_evsel__alloc_fd and for > perf_evsel__close are not the same, this is causing memory > overwrite/corruption. It would be good if we could enumer

Re: [PATCH v2 1/1] gpio: gpio-wcove: fix GPIO IRQ status mask

2017-04-26 Thread Mika Westerberg
On Wed, Apr 26, 2017 at 04:26:17PM +0200, Linus Walleij wrote: > On Mon, Apr 24, 2017 at 9:15 PM, > wrote: > > > From: Kuppuswamy Sathyanarayanan > > > > > > According to Whiskey Cove PMIC spec, bit 7 of GPIOIRQ0_REG belongs to > > battery IO. So we should skip this bit when checking for GPIO I

Applied "spi: cadence: Allow for GPIO pins to be used as chipselects" to the spi tree

2017-04-26 Thread Mark Brown
The patch spi: cadence: Allow for GPIO pins to be used as chipselects has been applied to the spi tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) an

Re: [PATCH v2] misc: sram-exec: Use aligned fncpy instead of memcpy

2017-04-26 Thread Tony Lindgren
* Dave Gerlach [170410 07:55]: > Currently the sram-exec functionality, which allows allocation of > executable memory and provides an API to move code to it, is only > selected in configs for the ARM architecture. Based on commit > 5756e9dd0de6 ("ARM: 6640/1: Thumb-2: Symbol manipulation macros f

Re: [PATCH 1/2] x86/efi: Correct ident mapping of efi old_map when kalsr enabled

2017-04-26 Thread Thomas Garnier
On Wed, Apr 26, 2017 at 3:43 AM, Baoquan He wrote: > > This bug will cause SGI uv 100 boot failure since SGI uv 100 can only > use efi old_map because of hardware. On rhel it failed all SGI uv series > since we haven't back ported fix for SGI uv 200/300. > > On 04/26/17 at 06:39pm, Baoquan He wrot

Re: [PATCH 1/1] Remove hardcoding of ___GFP_xxx bitmasks

2017-04-26 Thread Michal Hocko
On Wed 26-04-17 16:35:49, Igor Stoppa wrote: > The bitmasks used for ___GFP_xxx can be defined in terms of an enum, > which doesn't require manual updates to its values. GFP masks are rarely updated so why is this worth doing? > As bonus, __GFP_BITS_SHIFT is automatically kept consistent. this a

Re: net/ipv6: use-after-free in __call_rcu/in6_dev_finish_destroy_rcu

2017-04-26 Thread Andrey Konovalov
On Wed, Apr 26, 2017 at 3:59 PM, Paul E. McKenney wrote: > On Wed, Apr 26, 2017 at 02:34:15PM +0200, Andrey Konovalov wrote: >> Hi, >> >> I've got the following error report while fuzzing the kernel with syzkaller. >> >> On commit 5a7ad1146caa895ad718a534399e38bd2ba721b7 (4.11-rc8). >> >> Unfortun

Re: [PATCH v3 08/12] regulator: axp20x-regulator: add support for AXP803

2017-04-26 Thread Mark Brown
On Mon, Apr 17, 2017 at 07:57:43PM +0800, Icenowy Zheng wrote: > AXP803 PMIC also have a series of regulators (DCDCs and LDOs) > controllable via I2C/RSB bus. > > Add support for them. > > Signed-off-by: Icenowy Zheng Acked-by: Mark Brown signature.asc Description: PGP signature

Re: [PATCH v2 2/4] gpio - Add EXAR XRA1403 SPI GPIO expander driver

2017-04-26 Thread Linus Walleij
On Tue, Apr 25, 2017 at 9:07 AM, Benjamin Henrion wrote: > I doubt you will be able to convince the majority of people toggling > GPIOs via a simple shell script to switch to write a complex C > program. Not to mention cross compilation and the libraries > dependencies here. I do not need to con

Re: [PATCH] drm: mali-dp: use div_u64 for expensive 64-bit divisions

2017-04-26 Thread Liviu Dudau
On Tue, Apr 25, 2017 at 09:56:53PM +0200, Arnd Bergmann wrote: > On 32-bit machines, we can't divide 64-bit integers: > > drivers/gpu/drm/arm/malidp_crtc.o: In function `malidp_crtc_atomic_check': > malidp_crtc.c:(.text.malidp_crtc_atomic_check+0x3c0): undefined reference to > `__aeabi_uldivmod'

Re: kernel/rcu/tree.c:1031 rcu_irq_enter() invoked with irqs enabled!!!!

2017-04-26 Thread Radim Krčmář
2017-04-26 16:29+0200, Paolo Bonzini: > On 26/04/2017 16:18, Radim Krčmář wrote: >>> OK, but looking at the stack trace, this has nothing to do with ext4. The >>> problem seems to be in KVM - relevant CCs added. >> The path begins with async_page_fault interrupt gate and the hardware >> should clea

Re: [PATCH 4.4 00/28] 4.4.64-stable review

2017-04-26 Thread Guenter Roeck
On Wed, Apr 26, 2017 at 10:31:56AM +0200, Greg Kroah-Hartman wrote: > On Tue, Apr 25, 2017 at 07:27:18PM -0700, Guenter Roeck wrote: > > On 04/25/2017 08:08 AM, Greg Kroah-Hartman wrote: > > > This is the start of the stable review cycle for the 4.4.64 release. > > > There are 28 patches in this se

[PATCH] iommu: Print a message with the default domain type created

2017-04-26 Thread Robert Richter
There are several ways the bypass mode can be enabled. With commit fccb4e3b8ab0 iommu: Allow default domain type to be set on the kernel command line there is the option to switch into bypass mode. And, depending on devicetree options, bypass mode can be also enabled. This makes it hard to dete

pull request: linux-firmware: update cxgb4 firmware

2017-04-26 Thread Ganesh Goudar
Hi, Kindly pull the new firmware from the following URL. git://git.chelsio.net/pub/git/linux-firmware.git for-upstream Thanks, Ganesh The following changes since commit 766da91d4831792540451403ad349e2ece368f84: cxgb4: update firmware to revision 1.16.43.0 (2017-04-26 07:17:50 -0700)

Re: [PATCH] NFC: trf7970a: Correct register settings for 27MHz clock

2017-04-26 Thread walter harms
Am 26.04.2017 15:48, schrieb Geoff Lansberry: > In prior commits the selected clock frequency does not propagate > correctly to what is written the the TRF7970A_MODULATOR_SYS_CLK_CTRL > register. > Also fixes a bug that causes the device tree property check to always > pass. > > Signed-off-by: G

[RFC PATCH] hwmon: Add driver for Infineon DPS310

2017-04-26 Thread Joel Stanley
Hi Guenter, Below is a work in progress hwmon driver for the DPS310[1]. The device does both pressure and temperature monitoring over either I2C or SPI. There's a public datasheet available on Infineon's website. I require a driver that reads the temperature data over I2C and exposes it to usersp

Re: TREE_SRCU slows hotplug by factor ~16

2017-04-26 Thread Paul E. McKenney
On Tue, Apr 25, 2017 at 03:36:42PM -0700, Paul E. McKenney wrote: > On Mon, Apr 24, 2017 at 09:24:42AM -0700, Paul E. McKenney wrote: > > On Mon, Apr 24, 2017 at 09:35:03AM +0200, Mike Galbraith wrote: > > > On Sun, 2017-04-23 at 23:22 -0700, Paul E. McKenney wrote: > > > > > > > Could you please

Re: [PATCH 3/6] drm: fourcc byteorder: add bigendian support to drm_mode_legacy_fb_format

2017-04-26 Thread Ville Syrjälä
On Wed, Apr 26, 2017 at 11:00:09AM +0900, Michel Dänzer wrote: > On 25/04/17 06:52 PM, Ville Syrjälä wrote: > > On Tue, Apr 25, 2017 at 12:18:52PM +0900, Michel Dänzer wrote: > >> On 24/04/17 03:25 PM, Gerd Hoffmann wrote: > >>> +#ifdef __BIG_ENDIAN > >>> + switch (bpp) { > >>> + case 8: > >>> +

Re: [PATCH] sched/cputime: Fix ksoftirqd cputime accounting regression

2017-04-26 Thread Jesper Dangaard Brouer
On Tue, 25 Apr 2017 16:10:48 +0200 Frederic Weisbecker wrote: > irq_time_read() returns the irqtime minus the ksoftirqd time. This > is necessary because irq_time_read() is used to substract the IRQ time > from the sum_exec_runtime of a task. If we were to include the softirq > time of ksoftirqd,

Re: kernel/rcu/tree.c:1031 rcu_irq_enter() invoked with irqs enabled!!!!

2017-04-26 Thread Paolo Bonzini
On 26/04/2017 16:18, Radim Krčmář wrote: >> OK, but looking at the stack trace, this has nothing to do with ext4. The >> problem seems to be in KVM - relevant CCs added. > The path begins with async_page_fault interrupt gate and the hardware > should clear the interrupt flag before executing it.

Re: [PATCH v4 2/9] pinctrl: Renesas RZ/A1 pin and gpio controller

2017-04-26 Thread jmondi
Hi Geert, On Wed, Apr 26, 2017 at 02:21:34PM +0200, Geert Uytterhoeven wrote: > Hi Jacopo, > > On Wed, Apr 5, 2017 at 4:07 PM, Jacopo Mondi > wrote: > > Add combined gpio and pin controller driver for Renesas RZ/A1 > > r7s72100 SoC. > > > > Signed-off-by: Jacopo Mondi > > > --- /dev/null > > ++

Re: [PATCH v2 1/1] gpio: gpio-wcove: fix GPIO IRQ status mask

2017-04-26 Thread Linus Walleij
On Mon, Apr 24, 2017 at 9:15 PM, wrote: > From: Kuppuswamy Sathyanarayanan > > According to Whiskey Cove PMIC spec, bit 7 of GPIOIRQ0_REG belongs to > battery IO. So we should skip this bit when checking for GPIO IRQ pending > status. Otherwise, wcove_gpio_irq_handler() might go into the infinit

Re: [PATCH] drm/pl111: Register the clock divider and use it.

2017-04-26 Thread Linus Walleij
On Mon, Apr 24, 2017 at 9:45 PM, Eric Anholt wrote: > This is required for the panel to work on bcm911360, where CLCDCLK is > the fixed 200Mhz AXI41 clock. The rate set is still passed up to the > CLCDCLK, for platforms that have a settable rate on that one. > > Signed-off-by: Eric Anholt I li

Re: [PATCH v5 0/2] security: tty: make TIOCSTI ioctl require CAP_SYS_ADMIN

2017-04-26 Thread Matt Brown
On 04/26/2017 08:47 AM, One Thousand Gnomes wrote: open() what? As far as I know, for System-V PTYs, there is no path you can open() that will give you the PTY master. Am I missing something? Sorry brain fade - no. If I want to do the equvalent of the TIOCSTI attack then I fork a process and

Re: kernel/rcu/tree.c:1031 rcu_irq_enter() invoked with irqs enabled!!!!

2017-04-26 Thread Radim Krčmář
2017-04-26 09:16+0200, Jan Kara: > On Tue 25-04-17 13:28:41, Paul E. McKenney wrote: > > On Tue, Apr 25, 2017 at 02:13:45PM -0600, Ross Zwisler wrote: > > > I hit this RCU warning while running mkfs.ext4 on a PMEM namespace with > > > an unmodified v4.11-rc8 (passed through kasan_symbolize.py): > >

[PATCH 1/7] perf config: Refactor a duplicated code for config file name

2017-04-26 Thread Taeung Song
Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Taeung Song --- tools/perf/builtin-config.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/tools/perf/builtin-config.c b/tools/perf/builtin-config.c index 55f04f8..80668fa 100644 --- a/tools/perf/builtin-con

Re: net/tcp: warning in tcp_try_coalesce/skb_try_coalesce

2017-04-26 Thread Eric Dumazet
On Wed, Apr 26, 2017 at 5:08 AM, Andrey Konovalov wrote: > On Tue, Jan 31, 2017 at 2:17 PM, Andrey Konovalov > wrote: >> Hi, >> >> I've got the following error report while running the syzkaller fuzzer. >> >> On commit 566cf877a1fcb6d6dc0126b076aad062054c2637 (4.10-rc6). >> >> The fuzzer hits th

Re: [RFC PATCH] ACPICA: Tables: Fix regression introduced by a too early mechanism enabling

2017-04-26 Thread Dan Williams
On Tue, Apr 25, 2017 at 10:15 PM, Zheng, Lv wrote: > Hi, > >> From: Dan Williams [mailto:dan.j.willi...@intel.com] >> Subject: Re: [RFC PATCH] ACPICA: Tables: Fix regression introduced by a too >> early mechanism enabling >> >> On Tue, Apr 25, 2017 at 6:49 PM, Lv Zheng wrote: >> > In the Linux k

Updating kernel.org cross compilers?

2017-04-26 Thread Andre Przywara
Hi! (Tony: I've seen you redirecting to "Chris" in an older email, but the web archive doesn't have his email address) It seems that many people (even outside the Linux kernel community) use the cross compilers provided at kernel.org/pub/tools/crosstool. The latest compiler I find there is 4.9.0,

Re: [PATCH v4] Staging: most: use __func__ instead of the function name

2017-04-26 Thread Dan Carpenter
On Wed, Apr 26, 2017 at 06:02:29AM -0700, Chandra Annamaneni wrote: > > Change video.c to use %s, __func__ instead of function names. > Warnings flagged by checkpatch.pl > > Signed-off-by: Chandra Annamaneni > > diff --git a/drivers/staging/most/aim-v4l2/video.c > b/drivers/staging/most/aim-v4

Re: [PATCH v7 1/4] syscalls: Restore address limit after a syscall

2017-04-26 Thread Thomas Garnier
On Wed, Apr 26, 2017 at 1:12 AM, Ingo Molnar wrote: > > * Thomas Garnier wrote: > >> >> +#ifdef CONFIG_ARCH_NO_SYSCALL_VERIFY_PRE_USERMODE_STATE >> >> +/* >> >> + * This function is called when an architecture specific implementation >> >> detected >> >> + * an invalid address limit. The generic

Re: [PATCH] pmem: fix a NULL pointer BUG in nd_pmem_notify

2017-04-26 Thread Dan Williams
On Tue, Apr 25, 2017 at 4:40 PM, Kani, Toshimitsu wrote: > On Tue, 2017-04-25 at 16:07 -0700, Dan Williams wrote: >> On Tue, Apr 25, 2017 at 4:04 PM, Toshi Kani >> wrote: >> > The following BUG was observed when nd_pmem_notify() was called >> > for a BTT device. The use of a pmem_device pointer

Re: [PATCH] hlist_add_tail_rcu disable sparse warning

2017-04-26 Thread Paul E. McKenney
On Wed, Apr 26, 2017 at 09:13:43AM -0400, Steven Rostedt wrote: > > Paul, > > Did you see this email? Yep! Michael's patch is 48ac34666ff7 ("hlist_add_tail_rcu disable sparse warning") in -rcu and now in -tip. But I do appreciate the reminder -- way too easy to miss stuff on LKML!

Re: [trace-cmd Patch RFC] trace-cmd: top: A new interface to detect peak memory

2017-04-26 Thread Steven Rostedt
Sorry for the late reply. I finally have time to start looking at trace-cmd again. On Wed, 1 Mar 2017 20:32:37 +0530 Pratyush Anand wrote: > A new interface "trace-cmd top" has been introduced in this patch to > know peak memory usage of any task. > > $ trace-cmd top -s > It will start to gat

Re: net/ipv6: use-after-free in __call_rcu/in6_dev_finish_destroy_rcu

2017-04-26 Thread Paul E. McKenney
On Wed, Apr 26, 2017 at 02:34:15PM +0200, Andrey Konovalov wrote: > Hi, > > I've got the following error report while fuzzing the kernel with syzkaller. > > On commit 5a7ad1146caa895ad718a534399e38bd2ba721b7 (4.11-rc8). > > Unfortunately it's not reproducible. > > I'm not sure whether is is an

Re: [PATCH 3/6] drm: fourcc byteorder: add bigendian support to drm_mode_legacy_fb_format

2017-04-26 Thread Gerd Hoffmann
> uint32_t drm_mode_legacy_fb_format(uint32_t bpp, uint32_t depth) > { > uint32_t fmt; > #ifdef __BIG_ENDIAN > enum { LITTLE_ENDIAN = 0 }; > #else > enum { LITTLE_ENDIAN = 1 }; > #endif > /* ... */ > > (using an enum for

Re: [PATCH V4 1/9] PM / OPP: Allow OPP table to be used for power-domains

2017-04-26 Thread Mark Brown
On Wed, Apr 26, 2017 at 10:02:39AM +0530, Rajendra Nayak wrote: > > On 17/04/17 06:27, Viresh Kumar wrote: > >>> If we are looking this power-domains with performance as just some > >>> *advanced regulators*, I don't like the complexity added. > + Mark > I don;t see any public discussions on why

Re: [PATCH] iio: hid-sensor: fix return of -EINVAL on invalid values in ret or value

2017-04-26 Thread Srinivas Pandruvada
On Wed, 2017-04-26 at 07:32 +0100, Jonathan Cameron wrote: > On 19/04/17 15:35, Colin King wrote: > > > > From: Colin Ian King > > > > Ensure that when an invalid value in ret or value is found -EINVAL > > is returned. A previous commit broke the way the return error is > > being returned and in

Re: [PATCH v3 1/2] x86/mce/AMD: Redo logging of errors from APIC LVT interrupts

2017-04-26 Thread Borislav Petkov
On Tue, Apr 25, 2017 at 02:16:11PM -0500, Yazen Ghannam wrote: > From: Yazen Ghannam > > We have support for the new SMCA MCA_DE{STAT,ADDR} registers in Linux. So > we've used these registers in place of MCA_{STATUS,ADDR} on SMCA systems. > However, the guidance for current implementations of SMC

Re: [PATCH] x86/xen: fix xsave capability setting

2017-04-26 Thread Boris Ostrovsky
On 04/25/2017 02:47 AM, Juergen Gross wrote: > Commit 690b7f10b4f9f ("x86/xen: use capabilities instead of fake cpuid > values for xsave") introduced a regression as it tried to make use of > the fixup feature before it being available. > > Fall back to the old variant testing via cpuid(). > > Sign

[PATCH] uapi: change the type of struct statx_timestamp.tv_nsec to unsigned

2017-04-26 Thread David Howells
From: Dmitry V. Levin The comment asserting that the value of struct statx_timestamp.tv_nsec must be negative when statx_timestamp.tv_sec is negative, is wrong, as could be seen from the following example: #define _FILE_OFFSET_BITS 64 #include #include #include

Re: [PATCH] powerpc/mm/hugetlb: Add support for 1G huge pages

2017-04-26 Thread Anshuman Khandual
On 04/17/2017 10:44 PM, Aneesh Kumar K.V wrote: > POWER9 supports hugepages of size 2M and 1G in radix MMU mode. This patch > enables the usage of 1G page size for hugetlbfs. This also update the helper > such we can do 1G page allocation at runtime. > > Since we can do this only when radix transl

[PATCH] NFC: trf7970a: Correct register settings for 27MHz clock

2017-04-26 Thread Geoff Lansberry
In prior commits the selected clock frequency does not propagate correctly to what is written the the TRF7970A_MODULATOR_SYS_CLK_CTRL register. Also fixes a bug that causes the device tree property check to always pass. Signed-off-by: Geoff Lansberry --- drivers/nfc/trf7970a.c | 9 - 1 f

Re: qemu-kvm hangs with DAX

2017-04-26 Thread Paolo Bonzini
On 24/04/2017 08:16, Yigal Korman wrote: > This is a re-post, I didn't send it to all relevant mailing lists before... > > Original below. > > Hi everyone, > > I have an interesting issue with DAX and KVM - I'm trying to boot a VM > with its memory mapped to a DAX-mounted file (kernel 4.9). >

[PATCH -next] firmware: Google VPD: Fix return value check in vpd_platform_init()

2017-04-26 Thread Wei Yongjun
From: Wei Yongjun In case of error, the function platform_device_register_simple() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Fixes: 049a59db34eb ("firmware: Google VPD sysfs driver") Signed-off-by: Wei Yongjun --- driver

[PATCH] xen/x86: Call xen_smp_intr_init_pv() on BSP

2017-04-26 Thread Boris Ostrovsky
Recent code rework that split handling ov PV, HVM and PVH guests into separate files missed calling xen_smp_intr_init_pv() on CPU0. Add this call. Signed-off-by: Boris Ostrovsky Reported-by: Sander Eikelenboom --- arch/x86/xen/smp_pv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif

Re: [PATCH v2] arm64: perf: Use only exclude_kernel attribute when kernel is running in HYP

2017-04-26 Thread Jayachandran C
On Wed, Apr 26, 2017 at 11:10:21AM +0100, Will Deacon wrote: > On Wed, Apr 26, 2017 at 07:22:46AM +, Pinski, Andrew wrote: > > On 4/25/2017 11:53 PM, Jayachandran C. wrote: > > > On Tue, Apr 25, 2017 at 10:23 PM, Will Deacon wrote: > > >> On Tue, Apr 25, 2017 at 09:13:40AM +0530, Ganapatrao Ku

[PATCH 1/1] Remove hardcoding of ___GFP_xxx bitmasks

2017-04-26 Thread Igor Stoppa
The bitmasks used for ___GFP_xxx can be defined in terms of an enum, which doesn't require manual updates to its values. As bonus, __GFP_BITS_SHIFT is automatically kept consistent. Signed-off-by: Igor Stoppa --- include/linux/gfp.h | 82 +++-- 1

[PATCH 0/1] mm: Improve consistency of ___GFP_xxx masks

2017-04-26 Thread Igor Stoppa
The GFP bitmasks and the __GFP_BITS_SHIFT defines are expressed as hardcoded constants. This can be expressed in a more consistent way by relying on an enum of shift positions. Igor Stoppa (1): Remove hardcoding of ___GFP_xxx bitmasks include/linux/gfp.h | 82 ++

Re: [PATCH 3/6] drm: fourcc byteorder: add bigendian support to drm_mode_legacy_fb_format

2017-04-26 Thread Eric Engestrom
On Wednesday, 2017-04-26 07:53:10 +0200, Gerd Hoffmann wrote: > On Di, 2017-04-25 at 12:18 +0900, Michel Dänzer wrote: > > On 24/04/17 03:25 PM, Gerd Hoffmann wrote: > > > Return correct fourcc codes on bigendian. Drivers must be adapted to > > > this change. > > > > > > Signed-off-by: Gerd Hoffm

Re: [PATCH] drbd:fix null pointer deref in _drbd_md_sync_page_io

2017-04-26 Thread Lars Ellenberg
On Wed, Apr 26, 2017 at 02:49:37AM -0700, Heloise wrote: > The return value of bio_alloc_drbd can be NULL and is used without No, apparently it cannot, because it is basically a mempool_alloc() with GFP_NOIO, it may sleep, but it will loop "forever" and not return NULL. So rather fix that nonsens

[patch] autogain support for bayer10 format (was Re: [patch] propagating controls in libv4l2)

2017-04-26 Thread Pavel Machek
Hi! > > > I don't see why it would be hard to open files or have threads inside > > > a library. There are several libraries that do that already, specially > > > the ones designed to be used on multimidia apps. > > > > Well, This is what the libv4l2 says: > > > >This file implements libv4

Re: [PATCH] hlist_add_tail_rcu disable sparse warning

2017-04-26 Thread Steven Rostedt
Paul, Did you see this email? -- Steve On Mon, 27 Feb 2017 20:26:01 +0200 "Michael S. Tsirkin" wrote: > On Fri, Feb 10, 2017 at 07:39:49PM +0200, Michael S. Tsirkin wrote: > > sparse is unhappy about this code in hlist_add_tail_rcu: > > > > struct hlist_node *i, *last = NULL; > > >

Re: [PATCH v4 5/7] pinctrl: aramda-37xx: Add irqchip support

2017-04-26 Thread Gregory CLEMENT
Hi Linus, On mer., avril 26 2017, Linus Walleij wrote: > On Wed, Apr 26, 2017 at 11:23 AM, Gregory CLEMENT > wrote: >> On lun., avril 24 2017, Linus Walleij wrote: > + spin_lock_irqsave(&info->irq_lock, flags); + status = readl_relaxed(info->base + IRQ_

Re: [PATCH 4.4 00/28] 4.4.64-stable review

2017-04-26 Thread Guenter Roeck
On 04/26/2017 06:10 AM, Guenter Roeck wrote: On 04/26/2017 01:31 AM, Greg Kroah-Hartman wrote: On Tue, Apr 25, 2017 at 07:27:18PM -0700, Guenter Roeck wrote: On 04/25/2017 08:08 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.4.64 release. There are 28 patc

Re: [PATCH 4.4 00/28] 4.4.64-stable review

2017-04-26 Thread Guenter Roeck
On 04/26/2017 01:31 AM, Greg Kroah-Hartman wrote: On Tue, Apr 25, 2017 at 07:27:18PM -0700, Guenter Roeck wrote: On 04/25/2017 08:08 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.4.64 release. There are 28 patches in this series, all will be posted as a re

[PATCH v2 0/2] Relax bitclk computation when using PLL

2017-04-26 Thread Daniel Baluta
Using strict bitclk requirements we cannot support all promised rates and formats. For this reason we relax bitclk computation by choosing the best available bitclk. First patch in the series is based on Arnd's patch: http://mailman.alsa-project.org/pipermail/alsa-devel/2017-April/119899.html Se

[PATCH v2 1/2] ASoC: codec: wm9860: avoid maybe-uninitialized warning

2017-04-26 Thread Daniel Baluta
The new PLL configuration code triggers a harmless warning: sound/soc/codecs/wm8960.c: In function 'wm8960_configure_clocking': sound/soc/codecs/wm8960.c:735:3: error: 'best_freq_out' may be used uninitialized in this function [-Werror=maybe-uninitialized] wm8960_set_pll(codec, freq_in, best_fr

Re: [PATCH net-next] dt-bindings: mdio: Clarify binding document

2017-04-26 Thread Roger Quadros
On 25/04/17 21:33, Florian Fainelli wrote: > The described GPIO reset property is applicable to *all* child PHYs. If > we have one reset line per PHY present on the MDIO bus, these > automatically become properties of the child PHY nodes. > > Finally, indicate how the RESET pulse width must be def

[PATCH v2 2/2] ASoC: codec: wm8960: Relax bit clock computation when using PLL

2017-04-26 Thread Daniel Baluta
Bitclk is derived from sysclk using bclk_divs. Sysclk can be derived in two ways: (1) directly from MLCK (2) MCLK via PLL Commit 3c01b9ee2ab9d0d ("ASoC: codec: wm8960: Relax bit clock computation") relaxed bitclk computation when sysclk is directly derived from MCLK. Lets do the s

[PATCH 3/3] ASoC: simple-scu-card: Use devm_kcalloc() in asoc_simple_card_probe()

2017-04-26 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 26 Apr 2017 14:40:40 +0200 Multiplications for the size determination of memory allocations indicated that array data structures should be processed. Thus use the corresponding function "devm_kcalloc". This issue was detected by using the Coccinelle software. Sig

[PATCH 2/3] ASoC: simple-card: Use devm_kcalloc() in asoc_simple_card_probe()

2017-04-26 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 26 Apr 2017 14:32:12 +0200 Multiplications for the size determination of memory allocations indicated that array data structures should be processed. Thus use the corresponding function "devm_kcalloc". This issue was detected by using the Coccinelle software. Sig

[PATCH 1/3] ASoC: simple-card: Use devm_kcalloc() in asoc_simple_card_parse_aux_devs()

2017-04-26 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 26 Apr 2017 14:21:51 +0200 A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "devm_kcalloc". This issue was detected by using the Coccinelle software.

[PATCH 0/3] ASoC: simple-card: Fine-tuning for three function implementations

2017-04-26 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 26 Apr 2017 14:54:32 +0200 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Use devm_kcalloc() in asoc_simple_card_parse_aux_devs() Use devm_kcalloc() in asoc_simple_card_probe() SCU: Use devm_kcalloc() i

[PATCH v4] Staging: most: use __func__ instead of the function name

2017-04-26 Thread Chandra Annamaneni
Change video.c to use %s, __func__ instead of function names. Warnings flagged by checkpatch.pl Signed-off-by: Chandra Annamaneni diff --git a/drivers/staging/most/aim-v4l2/video.c b/drivers/staging/most/aim-v4l2/video.c index 59e861e..e074841 100644 --- a/drivers/staging/most/aim-v4l2/video.

Re: [PATCH] ipv6: ensure message length for raw socket is at least sizeof(ipv6hdr)

2017-04-26 Thread Alexander Potapenko
On Wed, Apr 26, 2017 at 10:54 AM, Alexander Potapenko wrote: > On Tue, Apr 25, 2017 at 7:55 PM, David Miller wrote: >> From: Alexander Potapenko >> Date: Tue, 25 Apr 2017 15:18:27 +0200 >> >>> rawv6_send_hdrinc() expects that the buffer copied from the userspace >>> contains the IPv6 header, so

Re: [PATCH] ezchip: nps_enet: check if napi has been completed

2017-04-26 Thread Vlad Zakharov
Hi David, all, On Wed, 2017-03-29 at 14:30 -0700, David Miller wrote: > From: Vlad Zakharov > Date: Wed, 29 Mar 2017 13:41:46 +0300 > > > > > After a new NAPI_STATE_MISSED state was added to NAPI we can get into > > this state and in such case we have to reschedule NAPI as some work is > > stil

Re: [for-next][PATCH 0/5] selftests: ftrace: Tracing updates to allow instance testing

2017-04-26 Thread Steven Rostedt
On Wed, 26 Apr 2017 11:07:52 +0900 Namhyung Kim wrote: > Hi Steve, > > On Tue, Apr 25, 2017 at 09:24:40AM -0400, Steven Rostedt wrote: > > git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git > > for-next > > > > Head SHA1: d6322f6cc483bd512efd3360fa76d0286a5b528b > > > > >

Re: [BUG] x86: failed to boot a kernel on a Ryzen machine

2017-04-26 Thread Borislav Petkov
On Wed, Apr 26, 2017 at 08:56:24PM +0900, Satoru Takeuchi wrote: > As Paolo said in other mail, The boot also succeeded with "host-passthrough" > mode rather than > "host-model". I'll wait for adding "Ryzen (or Zen?)" model to qemu. Yah, whoever adds it, let's call it "zen" or "Zen". Ryzen is som

Re: [PATCH v5 0/2] security: tty: make TIOCSTI ioctl require CAP_SYS_ADMIN

2017-04-26 Thread One Thousand Gnomes
> open() what? As far as I know, for System-V PTYs, there is no path you can > open() that will give you the PTY master. Am I missing something? Sorry brain fade - no. > > >> > If I want to do the equvalent of the TIOCSTI attack then I fork a process > >> > and exit the parent. The child can now

Re: [PATCH -mm -v3] mm, swap: Sort swap entries before free

2017-04-26 Thread Huang, Ying
Minchan Kim writes: > On Fri, Apr 21, 2017 at 08:29:30PM +0800, Huang, Ying wrote: >> "Huang, Ying" writes: >> >> > Minchan Kim writes: >> > >> >> On Wed, Apr 19, 2017 at 04:14:43PM +0800, Huang, Ying wrote: >> >>> Minchan Kim writes: >> >>> >> >>> > Hi Huang, >> >>> > >> >>> > On Fri, Apr 0

Re: [PATCH 3/3] arm64/locking: qspinlocks and qrwlocks support

2017-04-26 Thread Yury Norov
On Thu, Apr 20, 2017 at 09:05:30PM +0200, Peter Zijlstra wrote: > On Thu, Apr 20, 2017 at 09:23:18PM +0300, Yury Norov wrote: > > Is there some test to reproduce the locking failure for the case. > > Possibly sysvsem stress before commit: > > 27d7be1801a4 ("ipc/sem.c: avoid using spin_unlock_wa

Re: [PATCH 2/2] dmaengine: Add STM32 MDMA driver

2017-04-26 Thread Pierre Yves MORDRET
On 04/06/2017 09:08 AM, Vinod Koul wrote: > On Mon, Mar 13, 2017 at 04:06:39PM +0100, M'boumba Cedric Madianga wrote: >> This patch adds the driver for the STM32 MDMA controller. > > Again pls do describe the controller OK. I will add a more detail description with V2 > >> +#include >> +#include

net/ipv6: use-after-free in __call_rcu/in6_dev_finish_destroy_rcu

2017-04-26 Thread Andrey Konovalov
Hi, I've got the following error report while fuzzing the kernel with syzkaller. On commit 5a7ad1146caa895ad718a534399e38bd2ba721b7 (4.11-rc8). Unfortunately it's not reproducible. I'm not sure whether is is an issue with rcu or ipv6. ===

Re: x86-tip tsc/tick gripage

2017-04-26 Thread Mike Galbraith
On Wed, 2017-04-26 at 13:39 +0200, Mike Galbraith wrote: > On Wed, 2017-04-26 at 12:26 +0200, Peter Zijlstra wrote: > > On Wed, Apr 26, 2017 at 10:57:42AM +0200, Mike Galbraith wrote: > > > > > Both still lose their TSC. > > > > > > [ 11.982468] tsc: Refined TSC clocksource calibration: 2260.99

Re: [PATCH v4 net-next] mdio_bus: Issue GPIO RESET to PHYs.

2017-04-26 Thread Andrew Lunn
> Patch is already in net-next. How can we get this fixed? Should I send a v5? Hi Roger See the followup patch Florian submitted. Send your Reviewed-by: if you agree with it. Andrew

[GIT PULL] sound fixes for 4.11-final

2017-04-26 Thread Takashi Iwai
Linus, please pull sound fixes for v4.11-final from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-4.11 The topmost commit is d4a2fbcee0c8449ce24d6de168f3d90c5e6d7596 sound fixes for 4.11 Since we go

Re: [PATCH 6/6] ima: Support appended signatures for appraisal

2017-04-26 Thread Mimi Zohar
Hi Thiago, On Tue, 2017-04-18 at 17:17 -0300, Thiago Jung Bauermann wrote: > This patch introduces the appended_imasig keyword to the IMA policy syntax > to specify that a given hook should expect the file to have the IMA > signature appended to it. Here is how it can be used in a rule: > > appr

[PATCH 7/7] perf config: No free config set when it's initialization failed

2017-04-26 Thread Taeung Song
Currently if perf_config_set__init() failed in perf_config_set__new(), config_set will be freed. However, if we do, config setting feature can't work sometimes when user or system config files are nonexistent. So let the config set be empty, not freed totally. (it'll be freed at the tail end) Be

[PATCH 6/7] perf config: Finally write changed configs on config file at a time

2017-04-26 Thread Taeung Song
Currently set_config() can be repeatedly called for each input config on the below case: $ perf config kmem.default=slab report.children=false ... But it's a waste, so finally write changed configs at a time. Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Taeung Song --- tools/perf/builtin-

[PATCH 5/7] perf config: Correctly check whether it is from system config

2017-04-26 Thread Taeung Song
Currently no bugs in the checking code. But adjust it to correctly check item->from_system_config, not section's from_system_config. Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Taeung Song --- tools/perf/builtin-config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/too

[PATCH 4/7] perf config: Invert if statements to reduce nesting in cmd_config()

2017-04-26 Thread Taeung Song
Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Taeung Song --- tools/perf/builtin-config.c | 50 - 1 file changed, 27 insertions(+), 23 deletions(-) diff --git a/tools/perf/builtin-config.c b/tools/perf/builtin-config.c index ad0a112..f4596ef 100644 -

Re: [PATCH v4 2/9] pinctrl: Renesas RZ/A1 pin and gpio controller

2017-04-26 Thread Geert Uytterhoeven
Hi Jacopo, On Wed, Apr 5, 2017 at 4:07 PM, Jacopo Mondi wrote: > Add combined gpio and pin controller driver for Renesas RZ/A1 > r7s72100 SoC. > > Signed-off-by: Jacopo Mondi > --- /dev/null > +++ b/drivers/pinctrl/pinctrl-rza1.c > +/* > + * Keep this up-to-date with pinconf-generic.h: it perf

[PATCH 1/7] perf config: Refactor a duplicated code for config file name

2017-04-26 Thread Taeung Song
Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Taeung Song --- tools/perf/builtin-config.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/tools/perf/builtin-config.c b/tools/perf/builtin-config.c index 55f04f8..80668fa 100644 --- a/tools/perf/builtin-con

[PATCH 2/7] perf config: Check list empty before showing configs

2017-04-26 Thread Taeung Song
If existent config files contains nothing, the sections list in config_set can be empty. So check not only NULL pointer of config_set but also the list in config_set. Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Taeung Song --- tools/perf/builtin-config.c | 4 ++-- tools/perf/util/config.c

<    1   2   3   4   5   6   7   8   >