Re: [PATCH 12/12] PM / core: Add AVOID_RPM driver flag

2017-10-17 Thread Andy Shevchenko
On Mon, 2017-10-16 at 03:32 +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Define and document a new driver flag, DPM_FLAG_AVOID_RPM, to inform > the PM core and middle layer code that the driver has something > significant to do in its ->suspend and/or ->resume callbacks and > run

Re: [PATCH] media: v4l2-ctrl: Fix flags field on Control events

2017-10-17 Thread Hans Verkuil
On 10/17/2017 04:53 PM, Ricardo Ribalda Delgado wrote: > VIDIOC_DQEVENT and VIDIOC_QUERY_EXT_CTRL should give the same output for > the control flags field. > > This patch creates a new function user_flags(), that calculates the user > exported flags value (which is different than the kernel inter

[PATCH 1/3] powernv/pci: Delete an error message for a failed memory allocation in pnv_ioda_pick_m64_pe()

2017-10-17 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 17 Oct 2017 16:52:43 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- arch/powerpc/platforms/powernv/pci-ioda.c | 5 + 1 file changed, 1

Re: [PATCH] epoll: avoid calling ep_call_nested() from ep_poll_safewake()

2017-10-17 Thread Davidlohr Bueso
On Fri, 13 Oct 2017, Jason Baron wrote: The ep_poll_safewake() function is used to wakeup potentially nested epoll file descriptors. The function uses ep_call_nested() to prevent entering the same wake up queue more than once, and to prevent excessively deep wakeup paths (deeper than EP_MAX_NEST

Re: [PATCH v4] pidns: introduce syscall translate_pid

2017-10-17 Thread Prakash Sangappa
On 10/16/17 5:52 PM, Andy Lutomirski wrote: On Mon, Oct 16, 2017 at 3:54 PM, prakash.sangappa wrote: On 10/16/2017 03:07 PM, Nagarathnam Muthusamy wrote: On 10/16/2017 02:36 PM, Andrew Morton wrote: On Sat, 14 Oct 2017 11:17:47 +0300 Konstantin Khlebnikov wrote: pid_t translate_pid(pi

Re: [PATCH] staging/atomisp: Convert timers to use timer_setup()

2017-10-17 Thread Sakari Ailus
On Tue, Oct 17, 2017 at 08:16:03AM -0700, Kees Cook wrote: > On Tue, Oct 17, 2017 at 1:23 AM, Sakari Ailus wrote: > > On Mon, Oct 16, 2017 at 04:24:56PM -0700, Kees Cook wrote: > >> In preparation for unconditionally passing the struct timer_list pointer to > >> all timer callbacks, switch to usin

[PATCH 2/3] powernv/pci: Use common code in pnv_ioda_pick_m64_pe()

2017-10-17 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 17 Oct 2017 17:07:54 +0200 Add a jump target so that a bit of code can be better reused at the end of this function. Signed-off-by: Markus Elfring --- arch/powerpc/platforms/powernv/pci-ioda.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) dif

[PATCH 3/3] powernv/pci: Improve a size determination in pnv_pci_init_ioda_phb()

2017-10-17 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 17 Oct 2017 17:18:10 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was det

[PATCH] PCI/AER: update AER status string print to match other AER logs

2017-10-17 Thread Tyler Baicar
Currently the AER driver uses cper_print_bits() to print the AER status string. This causes the status string to not include the proper PCI device name prefix that the other AER prints include. Also, it has a different print level than all the other AER prints. Update the AER driver to print the A

Re: [PATCH 0/6] Boot-time switching between 4- and 5-level paging for 4.15, Part 1

2017-10-17 Thread Kirill A. Shutemov
On Tue, Oct 03, 2017 at 11:27:54AM +0300, Kirill A. Shutemov wrote: > On Fri, Sep 29, 2017 at 05:08:15PM +0300, Kirill A. Shutemov wrote: > > The first bunch of patches that prepare kernel to boot-time switching > > between paging modes. > > > > Please review and consider applying. > > Ping? Ing

Re: [Part1 PATCH v6 16/17] X86/KVM: Decrypt shared per-cpu variables when SEV is active

2017-10-17 Thread Brijesh Singh
On 10/17/17 8:35 AM, Borislav Petkov wrote: ... >> The second call is for UP cases. The kvm_smp_prepapre_boot_cpu() is >> called only when CONFIG_SMP is enabled. Am I missing something ? > Yes, you are. > > kvm_guest_init() gets called unconditionally from setup_arch(). But then > you said kvm_g

Re: [PATCH v3 3/4] drm/rockchip: Add support for Rockchip Soc RGB output interface

2017-10-17 Thread Sean Paul
On Mon, Oct 09, 2017 at 04:06:53PM +0800, Sandy Huang wrote: > Some Rockchip CRTCs, like rv1108, can directly output parallel and > serial RGB data to panel or conversion chip, so we add this driver to > probe encoder and connector. > > Signed-off-by: Sandy Huang > --- > Changes in v3: > update

Re: [PATCH v3 4/4] drm/rockchip: vop: Add more RGB output interface type

2017-10-17 Thread Sean Paul
On Mon, Oct 09, 2017 at 04:07:04PM +0800, Sandy Huang wrote: > This patch add serial RGB output interface for rockchip vop, the > more info about serial RGB output interface described at the > following file: > > Documentation/devicetree/bindings/display/panel/panel-rgb.txt > > Signed-off-by: San

Re: RFC(v2): Audit Kernel Container IDs

2017-10-17 Thread James Bottomley
On Tue, 2017-10-17 at 11:28 -0400, Simo Sorce wrote: > > Without a *kernel* policy on containerIDs you can't say what > > security policy is being exempted. > > The policy has been basically stated earlier. > > A way to track a set of processes from a specific point in time > forward. The name us

[tip:timers/core] libata: Convert timers to use timer_setup()

2017-10-17 Thread tip-bot for Kees Cook
Commit-ID: b93ab338f7f0e39321b282d694a52736fdab172b Gitweb: https://git.kernel.org/tip/b93ab338f7f0e39321b282d694a52736fdab172b Author: Kees Cook AuthorDate: Mon, 16 Oct 2017 14:56:42 -0700 Committer: Thomas Gleixner CommitDate: Tue, 17 Oct 2017 17:37:37 +0200 libata: Convert timers to

[tip:timers/core] time: Use do_settimeofday64() internally

2017-10-17 Thread tip-bot for Arnd Bergmann
Commit-ID: 4eb1bca1793385b8caff4b2e1f19b31a013dd1ec Gitweb: https://git.kernel.org/tip/4eb1bca1793385b8caff4b2e1f19b31a013dd1ec Author: Arnd Bergmann AuthorDate: Fri, 13 Oct 2017 20:34:35 +0200 Committer: Thomas Gleixner CommitDate: Tue, 17 Oct 2017 17:22:28 +0200 time: Use do_settimeo

[tip:timers/core] timer: Remove meaningless .data/.function assignments

2017-10-17 Thread tip-bot for Kees Cook
Commit-ID: 3c557df67257c114401f18ee412f0b74091c3c6f Gitweb: https://git.kernel.org/tip/3c557df67257c114401f18ee412f0b74091c3c6f Author: Kees Cook AuthorDate: Mon, 9 Oct 2017 17:10:32 -0700 Committer: Thomas Gleixner CommitDate: Tue, 17 Oct 2017 17:37:36 +0200 timer: Remove meaningless

Re: [PATCH, net-next] i40e: avoid 64-bit division where possible

2017-10-17 Thread Arnd Bergmann
On Tue, Oct 17, 2017 at 5:14 PM, Jeff Kirsher wrote: > On Tue, 2017-10-17 at 12:23 +0200, Arnd Bergmann wrote: >> The new bandwidth calculation causes a link error on 32-bit >> architectures, like >> >> ERROR: "__aeabi_uldivmod" [drivers/net/ethernet/intel/i40e/i40e.ko] >> undefined! > Unfortunat

[tip:timers/core] posix-stubs: Use get_timespec64() and put_timespec64()

2017-10-17 Thread tip-bot for Arnd Bergmann
Commit-ID: fe460423438b62eb7440d994ab19a9f444e6280d Gitweb: https://git.kernel.org/tip/fe460423438b62eb7440d994ab19a9f444e6280d Author: Arnd Bergmann AuthorDate: Fri, 13 Oct 2017 20:29:38 +0200 Committer: Thomas Gleixner CommitDate: Tue, 17 Oct 2017 17:22:27 +0200 posix-stubs: Use get_

[tip:x86/platform] x86/platform/UV: Convert timers to use timer_setup()

2017-10-17 Thread tip-bot for Kees Cook
Commit-ID: 376f3bcebdc999cc737d9052109cc33b573b3a8b Gitweb: https://git.kernel.org/tip/376f3bcebdc999cc737d9052109cc33b573b3a8b Author: Kees Cook AuthorDate: Mon, 16 Oct 2017 16:22:31 -0700 Committer: Thomas Gleixner CommitDate: Tue, 17 Oct 2017 17:40:06 +0200 x86/platform/UV: Convert

[PATCH v2] media: v4l2-ctrl: Fix flags field on Control events

2017-10-17 Thread Ricardo Ribalda Delgado
VIDIOC_DQEVENT and VIDIOC_QUERY_EXT_CTRL should give the same output for the control flags field. This patch creates a new function user_flags(), that calculates the user exported flags value (which is different than the kernel internal flags structure). This function is then used by all the code

Re: [PATCH 0/2] block/SCSI MQ: two RESTART related patches

2017-10-17 Thread John Garry
On 17/10/2017 06:12, Ming Lei wrote: On Tue, Oct 17, 2017 at 01:04:16PM +0800, Ming Lei wrote: Hi Jens, The 1st patch runs idle hctx after dealy in scsi_mq_get_budget(), so that we can keep same behaviour with before, and it can be thought as a fix. The 2nd patch cleans up RESTART, and removes

[PATCH] [v2] i40e: avoid 64-bit division where possible

2017-10-17 Thread Arnd Bergmann
The new bandwidth calculation caused a link error on 32-bit architectures, like ERROR: "__aeabi_uldivmod" [drivers/net/ethernet/intel/i40e/i40e.ko] undefined! The problem is the max_tx_rate calculation that uses 64-bit integers. This is not really necessary since the numbers are in MBit/s so they

Re: [PATCH v2] watchdog: core: Make use of devm_register_reboot_notifier()

2017-10-17 Thread Andrey Smirnov
On Sat, Apr 15, 2017 at 11:11 PM, Guenter Roeck wrote: > On 04/11/2017 09:06 AM, Andrey Smirnov wrote: >> >> Save a bit of cleanup code by leveraging newly added >> devm_register_reboot_notifier(). >> >> Cc: cphe...@gmail.com >> Cc: linux-kernel@vger.kernel.org >> Cc: Wim Van Sebroeck >> Cc: Guen

Re: more build problems with "Makefile: move stackprotector availability out of Kconfig"

2017-10-17 Thread Arnd Bergmann
On Tue, Oct 17, 2017 at 5:34 PM, Kees Cook wrote: > On Tue, Oct 17, 2017 at 8:26 AM, Kees Cook wrote: >> On Tue, Oct 17, 2017 at 8:23 AM, Arnd Bergmann wrote: >>> On Tue, Oct 17, 2017 at 1:00 PM, Arnd Bergmann wrote: Hi Kees, On my test box, current linux-next kernels fail to bui

RE: [PATCH 0/9] Enable dw-mmc multi-card support

2017-10-17 Thread Liming Sun
>> Hrm it's so unlucky that your patchset comes a little late. As your >> patch 8 and 9 said, you need them to fix problem for multi-card support, so >> definitely there was no such use case, and even the code was buggy to >> support it right? That makes the code hard to read and maintain, s

Re: [PATCH net 1/3] mm, percpu: add support for __GFP_NOWARN flag

2017-10-17 Thread Alexei Starovoitov
On Tue, Oct 17, 2017 at 04:55:52PM +0200, Daniel Borkmann wrote: > Add an option for pcpu_alloc() to support __GFP_NOWARN flag. > Currently, we always throw a warning when size or alignment > is unsupported (and also dump stack on failed allocation > requests). The warning itself is harmless since

Re: [PATCH v7 7/6] fs/epoll: scale nested callbacks

2017-10-17 Thread Davidlohr Bueso
On Mon, 16 Oct 2017, Jason Baron wrote: Hi, I posted a patch to completely remove the lock here from the ep_poll_safewake() patch here: http://lkml.iu.edu/hypermail/linux/kernel/1710.1/05834.html Kernel development never ceases to amaze me. Two complementary fixes to a 8+ y/o performance iss

Re: [PATCH net 2/3] bpf: fix splat for illegal devmap percpu allocation

2017-10-17 Thread Alexei Starovoitov
On Tue, Oct 17, 2017 at 04:55:53PM +0200, Daniel Borkmann wrote: > It was reported that syzkaller was able to trigger a splat on > devmap percpu allocation due to illegal/unsupported allocation > request size passed to __alloc_percpu(): > > [ 70.094249] illegal size (32776) or align (8) for pe

Re: [PATCH net 3/3] bpf: do not test for PCPU_MIN_UNIT_SIZE before percpu allocations

2017-10-17 Thread Alexei Starovoitov
On Tue, Oct 17, 2017 at 04:55:54PM +0200, Daniel Borkmann wrote: > PCPU_MIN_UNIT_SIZE is an implementation detail of the percpu > allocator. Given we support __GFP_NOWARN now, lets just let > the allocation request fail naturally instead. The two call > sites from BPF mistakenly assumed __GFP_NOWAR

[PATCH][ipmi-next] ipmi_si: fix memory leak on new_smi

2017-10-17 Thread Colin King
From: Colin Ian King The error exit path omits kfree'ing the allocated new_smi, causing a memory leak. Fix this by kfree'ing new_smi. Detected by CoverityScan, CID#14582571 ("Resource Leak") Fixes: 7e030d6dff71 ("ipmi: Prefer ACPI system interfaces over SMBIOS ones") Signed-off-by: Colin Ian K

Re: KASAN: use-after-free Read in do_get_mempolicy

2017-10-17 Thread Dmitry Vyukov
On Tue, Oct 17, 2017 at 5:38 PM, Chase Bertke wrote: > Hello, > > I would like to report a bug found via syzkaller on version 4.13.0-rc4. I > have searched the syzkaller mailing list and did not see any other reports > for this bug. > > Please see below: > > ===

Re: [PATCH 0/4] char-TPM: Adjustments for ten function implementations

2017-10-17 Thread James Bottomley
On Tue, 2017-10-17 at 11:25 +0200, SF Markus Elfring wrote: > > > > Fixes is only for bug fixes.  These don't fix any bugs. > > How do you distinguish these in questionable source code > from other error categories or software weaknesses? A style change is one that doesn't change the effect of t

Re: [PATCH v5 02/13] xen/pvcalls: implement frontend disconnect

2017-10-17 Thread Boris Ostrovsky
On 10/06/2017 08:30 PM, Stefano Stabellini wrote: > Introduce a data structure named pvcalls_bedata. It contains pointers to > the command ring, the event channel, a list of active sockets and a list > of passive sockets. Lists accesses are protected by a spin_lock. > > Introduce a waitqueue to all

RE: [PATCH] PCI/AER: update AER status string print to match other AER logs

2017-10-17 Thread David Laight
From: Tyler Baicar > Sent: 17 October 2017 16:42 > Currently the AER driver uses cper_print_bits() to print the AER status > string. This causes the status string to not include the proper PCI device > name prefix that the other AER prints include. Also, it has a different > print level than all th

Re: [PATCH] net: export netdev_txq_to_tc to allow sch_mqprio to compile as module

2017-10-17 Thread David Miller
From: Henrik Austad Date: Tue, 17 Oct 2017 12:10:10 +0200 > In commit 32302902ff09 ("mqprio: Reserve last 32 classid values for HW > traffic classes and misc IDs") sch_mqprio started using netdev_txq_to_tc > to find the correct tc instead of dev->tc_to_txq[] > > However, when mqprio is compiled

Re: [PATCH 1/2] serdev: ttyport: enforce tty-driver open() requirement

2017-10-17 Thread Rob Herring
On Mon, Oct 16, 2017 at 8:06 AM, Johan Hovold wrote: > The tty-driver open routine is mandatory, but the serdev > tty-port-controller implementation did not treat it as such and would > instead fall back to calling tty_port_open() directly. The idea was to eventually get rid of the tty_struct dep

Re: android/android-4.4 build: 210 builds: 0 failed, 210 passed, 6 warnings (ASB-2017-10-5_4.4-o-release-513-gec888d46d899)

2017-10-17 Thread Arnd Bergmann
On Tue, Oct 17, 2017 at 4:36 PM, gregkh wrote: > On Tue, Oct 17, 2017 at 10:51:22AM +0200, Arnd Bergmann wrote: >> On Tue, Oct 17, 2017 at 1:27 AM, kernelci.org bot wrote: >> > >> > >> > Warnings summary: >> > >> > 1 net/wireless/nl80211.c:5096:1: warning: the frame size of 2064 >> > byte

Re: [PATCH 2/2] serdev: ttyport: add missing open() error handling

2017-10-17 Thread Rob Herring
On Mon, Oct 16, 2017 at 8:06 AM, Johan Hovold wrote: > Add missing error handling for tty-driver open() which may fail (e.g. if > resource allocation fails or if a port is being disconnected). > > Note that close() must be called also in case of failed open() and that > the operation sanity check

Re: [PATCH v2] block/aoe: Convert timers to use timer_setup()

2017-10-17 Thread Jens Axboe
On 10/16/2017 06:03 PM, Kees Cook wrote: > On Fri, Oct 6, 2017 at 7:19 AM, Jens Axboe wrote: >> On 10/05/2017 05:13 PM, Kees Cook wrote: >>> In preparation for unconditionally passing the struct timer_list pointer to >>> all timer callbacks, switch to using the new timer_setup() and from_timer() >

Re: [PATCH 12/12] PM / core: Add AVOID_RPM driver flag

2017-10-17 Thread Rafael J. Wysocki
On Tuesday, October 17, 2017 5:33:17 PM CEST Andy Shevchenko wrote: > On Mon, 2017-10-16 at 03:32 +0200, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > Define and document a new driver flag, DPM_FLAG_AVOID_RPM, to inform > > the PM core and middle layer code that the driver has some

Re: [PATCH] block: swim3: Convert timers to use timer_setup()

2017-10-17 Thread Jens Axboe
On 10/16/2017 06:04 PM, Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. Added to for-4.15/timer, thanks. -- Jens Axboe

Re: RFC(v2): Audit Kernel Container IDs

2017-10-17 Thread Casey Schaufler
On 10/17/2017 8:28 AM, Simo Sorce wrote: > On Tue, 2017-10-17 at 07:59 -0700, Casey Schaufler wrote: >> On 10/17/2017 5:31 AM, Simo Sorce wrote: >>> On Mon, 2017-10-16 at 21:42 -0400, Steve Grubb wrote: On Monday, October 16, 2017 8:33:40 PM EDT Richard Guy Briggs wrote: > There is su

Re: [PATCH v8 5/8] arm64: Use of_cpu_node_to_id helper for CPU topology parsing

2017-10-17 Thread Will Deacon
On Tue, Oct 17, 2017 at 04:24:23PM +0100, Mark Rutland wrote: > On Tue, Oct 10, 2017 at 11:33:00AM +0100, Suzuki K Poulose wrote: > > Make use of the new generic helper to convert an of_node of a CPU > > to the logical CPU id in parsing the topology. > > > > Cc: Catalin Marinas > > Cc: Leo Yan >

Re: [PATCH 5/9] PCI: host: brcmstb: add dma-ranges for inbound traffic

2017-10-17 Thread Jim Quinlan
On Tue, Oct 17, 2017 at 4:14 AM, Christoph Hellwig wrote: > Just took a quick look over this and I basically agree with the comments > from Robin. > > What I don't understand is why you're even trying to do all these > hacky things. > > It seems like the controller should simply set dma_pfn_offset

Re: [PATCH 1/9] SOC: brcmstb: add memory API

2017-10-17 Thread Florian Fainelli
On 10/17/2017 01:24 AM, Christoph Hellwig wrote: >> +/* Macros to help extract property data */ >> +#define U8TOU32(b, offs) \ >> +u32)b[0 + offs] << 0) & 0x00ff) | \ >> + (((u32)b[1 + offs] << 8) & 0xff00) | \ >> + (((u32)b[2 + offs] << 16) & 0x00ff) | \ >> + (((u

Re: [PATCH] video: fbdev: mxsfb: fix pixelclock polarity

2017-10-17 Thread Stefan Agner
On 2017-10-17 15:56, Bartlomiej Zolnierkiewicz wrote: > Hi, > > Stefan/Shawn: > > Should I merge this patch? It seems to be still needed: > > https://www.spinics.net/lists/linux-fbdev/msg23112.html In my opinion yes, it fixes an issue... FWIW, I normally use the DRM driver when using mainline

[PATCH 4/4] SUNRPC: make cache_detail structures const

2017-10-17 Thread Bhumika Goyal
Make these const as they are only getting passed to the function cache_create_net having the argument as const. Signed-off-by: Bhumika Goyal --- net/sunrpc/auth_gss/svcauth_gss.c | 4 ++-- net/sunrpc/svcauth_unix.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/

[PATCH 0/4] make function arg and structures as const

2017-10-17 Thread Bhumika Goyal
Make the function argument as const. After thing change, make the cache_detail structures as const. Bhumika Goyal (4): sunrpc: make the function arg as const NFS: make cache_detail structures const NFSD: make cache_detail structures const SUNRPC: make cache_detail structures const fs/nfs

Re: [rcu:rcu/next 30/45] include/linux/compiler.h:343:2: error: implicit declaration of function 'smp_read_barrier_depends'

2017-10-17 Thread Will Deacon
Hi Paul, It looks like the breakage below is from a version of the patches that existed before I split compiler.h in half. What's the plan with these patches? I'd be happier for you to take them, but you'll want to take the most recent version in that case. Cheers, Will On Sun, Oct 15, 2017 at

Re: [PATCH 1/2] powerpc/nodes: Ensure enough nodes avail for operations

2017-10-17 Thread Michael Bringmann
See below. On 10/16/2017 07:33 AM, Michael Ellerman wrote: > Michael Bringmann writes: > >> powerpc/nodes: On systems like PowerPC which allow 'hot-add' of CPU > > This is a powerpc-only patch, so saying "systems like PowerPC" is > confusing. What you should be saying is "On pseries systems". >

[PATCH 2/4] NFS: make cache_detail structure const

2017-10-17 Thread Bhumika Goyal
Make it const as it is only getting passed to the function cache_create_net having the argument as const. Signed-off-by: Bhumika Goyal --- fs/nfs/dns_resolve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs/dns_resolve.c b/fs/nfs/dns_resolve.c index d25f10f..477934a 1

[PATCH 3/4] NFSD: make cache_detail structures const

2017-10-17 Thread Bhumika Goyal
Make these const as they are only getting passed to the function cache_create_net having the argument as const. Signed-off-by: Bhumika Goyal --- fs/nfsd/export.c| 4 ++-- fs/nfsd/nfs4idmap.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/nfsd/export.c b/fs/nfsd/e

[PATCH 1/4] sunrpc: make the function arg as const

2017-10-17 Thread Bhumika Goyal
Make the struct cache_detail *tmpl argument of the function cache_create_net as const as it is only getting passed to kmemup having the argument as const void *. Add const to the prototype too. Signed-off-by: Bhumika Goyal --- include/linux/sunrpc/cache.h | 2 +- net/sunrpc/cache.c | 2

[PATCH 0/4] Topstar ACPI LED Workaround

2017-10-17 Thread Guillaume Douézan-Grard
Hi Darren, On Topstar U931 Notebooks, an issue prevents the WLAN toggle key from being properly managed by the Embedded Controller and successfully disconnect the adapter. A specific ACPI method allows to toggle the WLAN LED state regardless. These are barebone laptops, sold under quite a lot of

[PATCH 2/4] platform/x86: topstar-laptop: change to generic module

2017-10-17 Thread Guillaume Douézan-Grard
Signed-off-by: Guillaume Douézan-Grard --- drivers/platform/x86/topstar-laptop.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/drivers/platform/x86/topstar-laptop.c b/drivers/platform/x86/topstar-laptop.c index d3197302aa91..ce33754c1f29 100644 --- a/dr

[PATCH 3/4] platform/x86: topstar-laptop: add platform device

2017-10-17 Thread Guillaume Douézan-Grard
Signed-off-by: Guillaume Douézan-Grard --- drivers/platform/x86/topstar-laptop.c | 57 ++- 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/drivers/platform/x86/topstar-laptop.c b/drivers/platform/x86/topstar-laptop.c index ce33754c1f29..e2ee1e5cc734

[PATCH 1/4] platform/x86: topstar-laptop: non-functional changes

2017-10-17 Thread Guillaume Douézan-Grard
Minor consistency changes to prepare further addition of platform device and LED. More precisely: * more consistent naming (module description, header text, devices names and programming constructs), * clear separation between systems (ACPI events and input handling), * copyright and module aut

[PATCH 4/4] platform/x86: topstar-laptop: add optional WLAN LED workaround

2017-10-17 Thread Guillaume Douézan-Grard
Topstar U931 laptops provide an LED synced with the WLAN adapter hard-blocking state. Unfortunately, some models seem to be defective, making impossible to hard-block the adapter with the WLAN switch and thus the LED is useless. An ACPI method is available to programmatically control this switch a

Re: [PATCH 1/2] x86/crypto/sha256-mb: fix panic due to unaligned access

2017-10-17 Thread Tim Chen
On 10/16/2017 08:51 AM, Andrey Ryabinin wrote: > struct sha256_ctx_mgr allocated in sha256_mb_mod_init() via kzalloc() > and later passed in sha256_mb_flusher_mgr_flush_avx2() function where > instructions vmovdqa used to access the struct. vmovdqa requires > 16-bytes aligned argument, but nothing

Re: [PATCH v8 5/8] arm64: Use of_cpu_node_to_id helper for CPU topology parsing

2017-10-17 Thread Suzuki K Poulose
On 17/10/17 17:11, Will Deacon wrote: On Tue, Oct 17, 2017 at 04:24:23PM +0100, Mark Rutland wrote: On Tue, Oct 10, 2017 at 11:33:00AM +0100, Suzuki K Poulose wrote: Make use of the new generic helper to convert an of_node of a CPU to the logical CPU id in parsing the topology. Cc: Catalin Mar

Re: [RFC PATCH v9 for 4.15 01/14] Restartable sequences system call

2017-10-17 Thread Ben Maurer
Hey, > So far the restrictions I see for libraries using this symbol are: > - They should never be unloaded, > - They should never be loaded with dlopen RTLD_LOCAL flag. We talked a bit about this off-list but I wanted to state publicly that I think this model works well for our use case. Specif

Re: [tip:locking/urgent] locking/lockdep: Disable cross-release features for now

2017-10-17 Thread Ingo Molnar
* Thomas Gleixner wrote: > On Tue, 17 Oct 2017, Ingo Molnar wrote: > > * Thomas Gleixner wrote: > > > On Tue, 17 Oct 2017, Ingo Molnar wrote: > > > > No, please fix performance. > > > > > > You know very well that with the cross release stuff we have to take the > > > performance hit of stack

Re: [PATCH v2] block/aoe: Convert timers to use timer_setup()

2017-10-17 Thread Jens Axboe
On 10/17/2017 10:09 AM, Jens Axboe wrote: > On 10/16/2017 06:03 PM, Kees Cook wrote: >> On Fri, Oct 6, 2017 at 7:19 AM, Jens Axboe wrote: >>> On 10/05/2017 05:13 PM, Kees Cook wrote: In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch t

Re: [Part1 PATCH v6 16/17] X86/KVM: Decrypt shared per-cpu variables when SEV is active

2017-10-17 Thread Borislav Petkov
On Tue, Oct 17, 2017 at 10:42:45AM -0500, Brijesh Singh wrote: > OK, this goes back to your initial feedback during RFC v3 where I tried > to do similar thing. But since sev_map_percpu_data() uses __init > functions hence we need to mark the kvm_guest_cpu_init() as __ref but > you didn't like the i

[patch v4 0/3] drivers/platform: replace module x86/mlxcpld-hotplug with mellanox/mlxreg-hotplug

2017-10-17 Thread Vadim Pasternak
The patchset: - replaces modules include/linux/platform_data/mlxcpld-hotplug.h and drivers/platform/x86/mlxcpld-hotplug.c with the modules include/linux/platform_data/mlxreg.h and drivers/platform/mellanox/mlxreg-hotplug.c; relevant Makefile and Kconfig are updated; - modifies Mellano

[tip:x86/fpu] bitops: Add clear/set_bit32() to linux/bitops.h

2017-10-17 Thread tip-bot for Andi Kleen
Commit-ID: cbe96375025e14fc76f9ed42ee5225120d7210f8 Gitweb: https://git.kernel.org/tip/cbe96375025e14fc76f9ed42ee5225120d7210f8 Author: Andi Kleen AuthorDate: Fri, 13 Oct 2017 14:56:41 -0700 Committer: Ingo Molnar CommitDate: Tue, 17 Oct 2017 17:14:56 +0200 bitops: Add clear/set_bit32(

[patch v4 1/3] platform/x86: move Mellanox hardware platform hotplug driver to platform/mellanox

2017-10-17 Thread Vadim Pasternak
It moves drivers/platform/x86/mlxcpld-hotplug.c to drivers/platform/mellanox/mlxreg-hotplug.c and include/linux/platform_data/mlxcpld-hotplug.h to include/linux/platform_data/mlxreg.h for making hotplug driver usable for the different machine architectures. Signed-off-by: Vadim Pasternak Acked-by

[patch v4 2/3] platform/mellanox: mlxreg-hotplug: allow driver for ARM architecture

2017-10-17 Thread Vadim Pasternak
It allows driver to run on x86 and ARM architecture based systems. And allows to specify hotplug device parameters through the device table tree files. Also some unnecessary includes are removed. Signed-off-by: Vadim Pasternak Acked-by: Andy Shevchenko --- drivers/platform/mellanox/Kconfig

[patch v4 3/3] platform/mellanox: mlxreg-hotplug: modify to use regmap intreface

2017-10-17 Thread Vadim Pasternak
It includes: - restructuring of mlxreg header file for unification of hotplug items definition; - unification of hotplug items to allow any kind of item (power controller, fan eeprom, psu eeprom, asic health in common way); - utilization of regmap interface to allow independency of underlying

[tip:x86/fpu] x86/fpu: Parse clearcpuid= as early XSAVE argument

2017-10-17 Thread tip-bot for Andi Kleen
Commit-ID: 0c2a3913d6f50503f7c59d83a6219e39508cc898 Gitweb: https://git.kernel.org/tip/0c2a3913d6f50503f7c59d83a6219e39508cc898 Author: Andi Kleen AuthorDate: Fri, 13 Oct 2017 14:56:43 -0700 Committer: Ingo Molnar CommitDate: Tue, 17 Oct 2017 17:14:57 +0200 x86/fpu: Parse clearcpuid= a

[tip:x86/fpu] x86/cpuid: Add generic table for CPUID dependencies

2017-10-17 Thread tip-bot for Andi Kleen
Commit-ID: 0b00de857a648dafe7020878c7a27cf776f5edf4 Gitweb: https://git.kernel.org/tip/0b00de857a648dafe7020878c7a27cf776f5edf4 Author: Andi Kleen AuthorDate: Fri, 13 Oct 2017 14:56:42 -0700 Committer: Ingo Molnar CommitDate: Tue, 17 Oct 2017 17:14:57 +0200 x86/cpuid: Add generic table

Re: [PATCH 44/58] net: ethernet: sun: Convert timers to use timer_setup()

2017-10-17 Thread Shannon Nelson
On 10/16/2017 5:29 PM, Kees Cook wrote: In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: "David S. Miller" Cc: Philippe Reynes Cc: Jarod Wilson Cc:

[tip:x86/fpu] x86/fpu: Remove the explicit clearing of XSAVE dependent features

2017-10-17 Thread tip-bot for Andi Kleen
Commit-ID: 73e3a7d2a7c3be29a5a22b85026f6cfa5664267f Gitweb: https://git.kernel.org/tip/73e3a7d2a7c3be29a5a22b85026f6cfa5664267f Author: Andi Kleen AuthorDate: Fri, 13 Oct 2017 14:56:45 -0700 Committer: Ingo Molnar CommitDate: Tue, 17 Oct 2017 17:14:57 +0200 x86/fpu: Remove the explicit

[tip:x86/fpu] x86/fpu: Make XSAVE check the base CPUID features before enabling

2017-10-17 Thread tip-bot for Andi Kleen
Commit-ID: ccb18db2ab9d923df07e7495123fe5fb02329713 Gitweb: https://git.kernel.org/tip/ccb18db2ab9d923df07e7495123fe5fb02329713 Author: Andi Kleen AuthorDate: Fri, 13 Oct 2017 14:56:44 -0700 Committer: Ingo Molnar CommitDate: Tue, 17 Oct 2017 17:14:57 +0200 x86/fpu: Make XSAVE check th

Re: [PATCH net 2/3] bpf: fix splat for illegal devmap percpu allocation

2017-10-17 Thread John Fastabend
On 10/17/2017 07:55 AM, Daniel Borkmann wrote: > It was reported that syzkaller was able to trigger a splat on > devmap percpu allocation due to illegal/unsupported allocation > request size passed to __alloc_percpu(): > > [ 70.094249] illegal size (32776) or align (8) for percpu allocation >

Re: [PATCH net 3/3] bpf: do not test for PCPU_MIN_UNIT_SIZE before percpu allocations

2017-10-17 Thread John Fastabend
On 10/17/2017 07:55 AM, Daniel Borkmann wrote: > PCPU_MIN_UNIT_SIZE is an implementation detail of the percpu > allocator. Given we support __GFP_NOWARN now, lets just let > the allocation request fail naturally instead. The two call > sites from BPF mistakenly assumed __GFP_NOWARN would work, so >

Re: [PATCH 12/12] PM / core: Add AVOID_RPM driver flag

2017-10-17 Thread Andy Shevchenko
On Tue, 2017-10-17 at 17:59 +0200, Rafael J. Wysocki wrote: > On Tuesday, October 17, 2017 5:33:17 PM CEST Andy Shevchenko wrote: > > On Mon, 2017-10-16 at 03:32 +0200, Rafael J. Wysocki wrote: > > > If DPM_FLAG_SMART_SUSPEND is not set, DPM_FLAG_AVOID_RPM has no > > > effect. > > > > > > + if (d

Re: [RFC PATCH v9 for 4.15 01/14] Restartable sequences system call

2017-10-17 Thread Mathieu Desnoyers
- On Oct 17, 2017, at 12:19 PM, Ben Maurer bmau...@fb.com wrote: > Hey, > >> So far the restrictions I see for libraries using this symbol are: >> - They should never be unloaded, >> - They should never be loaded with dlopen RTLD_LOCAL flag. > > We talked a bit about this off-list but I want

Re: [PATCH] mm/hmm: remove redundant variable align_end

2017-10-17 Thread Jerome Glisse
On Tue, Oct 17, 2017 at 03:38:37PM +0100, Colin King wrote: > From: Colin Ian King > > Variable align_end is assigned a value but it is never read, so > the variable is redundant and can be removed. Cleans up the clang > warning: Value stored to 'align_end' is never read > > Signed-off-by: Colin

Re: [PATCH 0/4] char-TPM: Adjustments for ten function implementations

2017-10-17 Thread SF Markus Elfring
>>> Fixes is only for bug fixes.  These don't fix any bugs. >> >> How do you distinguish these in questionable source code >> from other error categories or software weaknesses? > > A style change is one that doesn't change the effect of the execution. This can occasionally be fine, can't it? >

Re: [PATCH v2 3/5] mmc: dw_mmc: Add locking to the CTO timer

2017-10-17 Thread Doug Anderson
Hi, On Mon, Oct 16, 2017 at 5:54 PM, Shawn Lin wrote: > Hi Doug > > > On 2017/10/13 12:20, Doug Anderson wrote: >> >> Shawn, >> >> On Thu, Oct 12, 2017 at 6:32 PM, Shawn Lin >> wrote: >>> >>> >>> On 2017/10/13 4:11, Douglas Anderson wrote: This attempts to instill a bit of paranoi

[PATCH] lockd: double unregister of inetaddr notifiers

2017-10-17 Thread Vasily Averin
lockd_up() can call lockd_unregister_notifiers twice: inside lockd_start_svc() when it calls lockd_svc_exit_thread() and then in error path of lockd_up() Patch forces lockd_start_svc() to unregister notifiers in all error cases and removes extra unregister in error path of lockd_up(). Signed-off-

Re: [PATCH 0/4] make function arg and structures as const

2017-10-17 Thread Jeff Layton
On Tue, 2017-10-17 at 18:14 +0200, Bhumika Goyal wrote: > Make the function argument as const. After thing change, make > the cache_detail structures as const. > > Bhumika Goyal (4): > sunrpc: make the function arg as const > NFS: make cache_detail structures const > NFSD: make cache_detail

[RFC PATCH 0/2] race of lockd/nfsd inetaddr notifiers with pointers change

2017-10-17 Thread Vasily Averin
lockd and nfsd inet[6]addr notifiers use pointer that can be changed during execution. lockd_inet[6]addr_event use nlmsvc_rqst without taken nlmsvc_mutex, nfsd notifier have similar trouble. We got few crashes from OpenVz customers on RHEL6-based kernel, and I have reproduced the problem locally

Re: [RFC PATCH v9 for 4.15 01/14] Restartable sequences system call

2017-10-17 Thread Ben Maurer
> I have a use-case for keeping the reference counting in place though. It's > use of rseq in signal handlers. Would this be solved by saying that the rseq api will return an error if you register and there's already a block registered. In this case the signal handler would register the rseq abi

Re: [f2fs-dev] [PATCH] f2fs: handle error case when adding xattr entry

2017-10-17 Thread Jaegeuk Kim
On 10/17, Chao Yu wrote: > On 2017/10/17 7:06, Jaegeuk Kim wrote: > > This patch fixes recovering incomplete xattr entries remaining in inline > > xattr > > and xattr block, caused by any kind of errors. > > > > Signed-off-by: Jaegeuk Kim > > --- > > fs/f2fs/xattr.c | 48 +++

Re: [PATCH v8 5/8] arm64: Use of_cpu_node_to_id helper for CPU topology parsing

2017-10-17 Thread Suzuki K Poulose
On 17/10/17 17:20, Suzuki K Poulose wrote: On 17/10/17 17:11, Will Deacon wrote: On Tue, Oct 17, 2017 at 04:24:23PM +0100, Mark Rutland wrote: On Tue, Oct 10, 2017 at 11:33:00AM +0100, Suzuki K Poulose wrote: Make use of the new generic helper to convert an of_node of a CPU to the logical CPU

Re: RFC(v2): Audit Kernel Container IDs

2017-10-17 Thread Casey Schaufler
On 10/17/2017 8:44 AM, James Bottomley wrote: > On Tue, 2017-10-17 at 11:28 -0400, Simo Sorce wrote: >>> Without a *kernel* policy on containerIDs you can't say what >>> security policy is being exempted. >> The policy has been basically stated earlier. >> >> A way to track a set of processes from

Re: [PATCH v5 1/2] acpi: apei: remove the unused dead-code for SEA/NMI notification type

2017-10-17 Thread Borislav Petkov
On Tue, Oct 17, 2017 at 04:02:20PM +0800, Dongjiu Geng wrote: > @@ -1061,23 +1052,9 @@ static void ghes_nmi_init_cxt(void) > init_irq_work(&ghes_proc_irq_work, ghes_proc_in_irq); > } > #else /* CONFIG_HAVE_ACPI_APEI_NMI */ > -static inline void ghes_nmi_add(struct ghes *ghes) > -{ > - p

Re: [rcu:rcu/next 30/45] include/linux/compiler.h:343:2: error: implicit declaration of function 'smp_read_barrier_depends'

2017-10-17 Thread Paul E. McKenney
Hello, Will, Good point -- I should have removed that as soon as you posted the update. I have removed it now. I am happy to take the patches, but let's make sure that I am up to speed on the current state and dependencies. Here is my current scorecard, please double-check: 1. Your patche

[RFC PATCH 1/2] race of lockd inetaddr notifiers with nlmsvc_rqst change

2017-10-17 Thread Vasily Averin
lockd_inet[6]addr_event use nlmsvc_rqst without taken nlmsvc_mutex, nlmsvc_rqst can be changed during execution of notifiers and crash the host. Patch enables access to nlmsvc_rqst only when it was correctly initialized and delays its cleanup until notifiers are in use. NB: this patch depends on

[RFC PATCH 2/2] race of nfsd inetaddr notifiers with nn->nfsd_serv change

2017-10-17 Thread Vasily Averin
nfsd_inet[6]addr_event use nn->nfsd_serv without taken nfsd_mutex, pointer can be changed during execution of notifiers and crash the host. Moreover if notifiers was enabled in one net namespace it will be enabled in all other net namespaces, from its creation until its destroy. Patch allows not

Re: [RESEND PATCH v2 2/5] backlight: pwm_bl: Add device link for pwm_bl and pwm

2017-10-17 Thread Brian Norris
Hi, On Tue, Oct 17, 2017 at 04:13:55PM +0800, Jeffy Chen wrote: > On 10/17/2017 07:57 AM, Brian Norris wrote: > >This is going to be a*lot* of churn throughout the tree, if we expect > >all resource consumers to do this. I think we'd want some kind of > >agreement from the PM maintainers and (lar

Re: [PATCH v5 04/13] xen/pvcalls: implement socket command and handle events

2017-10-17 Thread Boris Ostrovsky
On 10/06/2017 08:30 PM, Stefano Stabellini wrote: > Send a PVCALLS_SOCKET command to the backend, use the masked > req_prod_pvt as req_id. This way, req_id is guaranteed to be between 0 > and PVCALLS_NR_REQ_PER_RING. We already have a slot in the rsp array > ready for the response, and there cannot

Re: [PATCH 1/2] powerpc/nodes: Ensure enough nodes avail for operations

2017-10-17 Thread Nathan Fontenot
On 10/17/2017 11:14 AM, Michael Bringmann wrote: > See below. > > On 10/16/2017 07:33 AM, Michael Ellerman wrote: >> Michael Bringmann writes: >> >>> powerpc/nodes: On systems like PowerPC which allow 'hot-add' of CPU >> >> This is a powerpc-only patch, so saying "systems like PowerPC" is >> conf

Re: [RFC PATCH v4 7/8] pwm: Add dummy pwmchip for orphan pwms

2017-10-17 Thread Brian Norris
Hi, On Tue, Oct 17, 2017 at 02:40:31PM +0200, Thierry Reding wrote: > On Tue, Oct 17, 2017 at 06:16:23PM +0800, Jeffy Chen wrote: > > When the pwm driver is unbound while the pwm is still requested, the > > pwm core would not actually remove the pwmchip(return -EBUSY instead). > > > > So it would

Re: [PATCH v4 pci 0/2] PCI/MSI: pci-xgene-msi: Enable MSI support in ACPI boot for X-Gene v1

2017-10-17 Thread Bjorn Helgaas
On Tue, Sep 26, 2017 at 11:49:19AM -0600, Khuong Dinh wrote: > This patch set enables ACPI MSI support for X-Gene PCIe v1 hardware > and provides the proper MSI driver initialization ordering. > > Signed-off-by: Khuong Dinh > --- > v4: > - Remove Marc Zyngier ACK in v2 > - Use acpi_bus_scan on

Do you need financial help?

2017-10-17 Thread Mr . Robert
Do you need a loan to enhance your business?, loan to consolidate your debt,loan for personal use, loan for credit card, medical care loan,car loan,mortgage loan, student loan, loan for any purposes? e.t.c. get loan at 1% interest rate annually, hurry up now and fill out this below application

Re: [PATCH v5 2/2] acpi: apei: Add SEI notification type support for ARMv8

2017-10-17 Thread Borislav Petkov
On Tue, Oct 17, 2017 at 04:02:21PM +0800, Dongjiu Geng wrote: > ARMv8.2 requires implementation of the RAS extension, in > this extension it adds SEI(SError Interrupt) notification > type, this patch adds new GHES error source SEI handling > functions. Because this error source parsing and handling

<    2   3   4   5   6   7   8   9   10   11   >