[PATCH 3/9] vfs: use helpers for calling f_op->{read,write}_iter()

2017-02-17 Thread Miklos Szeredi
Signed-off-by: Miklos Szeredi --- drivers/block/loop.c | 4 ++-- fs/aio.c | 4 ++-- fs/read_write.c | 12 ++-- fs/splice.c | 2 +- include/linux/fs.h | 12 5 files changed, 23 insertions(+), 11 deletions(-) diff --git a/drivers/block/loop.c b/d

Re: [PATCH v3] Add sysfs interface for touchpad state

2017-02-17 Thread Andy Shevchenko
On Fri, Feb 17, 2017 at 4:48 PM, Ritesh Raj Sarraf wrote: > Lenovo Yoga (many variants: Yoga, Yoga2 Pro, Yoga2 13, Yoga3 Pro, Yoga 3 > 14 etc) has multiple modles that are a hybrid laptop, working in laptop > mode as well as tablet mode. > > Currently, there is no easy interface to determine the t

[PATCH 1/9] vfs: extract common parts of {compat_,}do_readv_writev()

2017-02-17 Thread Miklos Szeredi
Signed-off-by: Miklos Szeredi --- fs/read_write.c | 80 + 1 file changed, 29 insertions(+), 51 deletions(-) diff --git a/fs/read_write.c b/fs/read_write.c index 5816d4c4cab0..b7cf7e2cb8c5 100644 --- a/fs/read_write.c +++ b/fs/read_write.c @

Re: [PATCH] net: ethernet: ti: cpsw: correct ale dev to cpsw

2017-02-17 Thread David Miller
From: Ivan Khoronzhuk Date: Wed, 15 Feb 2017 19:45:02 +0200 > The ale is a property of cpsw, so change dev to cpsw->dev, > aka pdev->dev, to be consistent. > > Signed-off-by: Ivan Khoronzhuk > --- > Based on net-next/master Applied, thanks.

Re: [PATCH trivial 2/4] rtlwifi: rtl8821ae: Spelling s/wrtie_addr/write_addr/

2017-02-17 Thread Larry Finger
On 02/17/2017 09:36 AM, Geert Uytterhoeven wrote: As per symmetry with _rtl8821ae_dbi_read(), "wrtie" is not a funky register acronym, but a simple misspelling of "write". Signed-off-by: Geert Uytterhoeven Cc: Larry Finger Cc: Chaoming Li Cc: net...@vger.kernel.org I'm not sure that it is p

Re: [PATCH V3 3/7] mm: reclaim MADV_FREE pages

2017-02-17 Thread Johannes Weiner
On Fri, Feb 17, 2017 at 02:41:08PM +0900, Minchan Kim wrote: > Hi Johannes, > > On Thu, Feb 16, 2017 at 01:40:18PM -0500, Johannes Weiner wrote: > > On Tue, Feb 14, 2017 at 11:36:09AM -0800, Shaohua Li wrote: > > > @@ -911,7 +911,7 @@ static void page_check_dirty_writeback(struct page > > > *page

Re: [PATCH V3 4/7] mm: enable MADV_FREE for swapless system

2017-02-17 Thread Johannes Weiner
On Tue, Feb 14, 2017 at 11:36:10AM -0800, Shaohua Li wrote: > Now MADV_FREE pages can be easily reclaimed even for swapless system. We > can safely enable MADV_FREE for all systems. > > Cc: Michal Hocko > Cc: Minchan Kim > Cc: Hugh Dickins > Cc: Johannes Weiner > Cc: Rik van Riel > Cc: Mel Go

Re: [RFC 4/4] iio: trigger: add GPIO trigger

2017-02-17 Thread Lars-Peter Clausen
On 02/17/2017 05:03 PM, Fabrice Gasnier wrote: > GPIOs can be used to generate triggers for any IIO device. > Introduce generic GPIO trigger driver. It offers some options > to tune polarity (e.g. rising/falling edge), and label so trigger > name may be customized. > By default, gpio triggers will

[PATCH] [media] Staging: media/lirc: don't call put_ir_rx on rx twice

2017-02-17 Thread Colin King
From: Colin Ian King There is an exit path where rx is kfree'd on put_ir_rx and then a jump to label out_put_xx will again kfree it with another call to put_ir_rx. Fix this by adding a new label that avoids this 2nd call to put_ir_rx for this specific case. Detected with CoverityScan, CID#14511

Re: [PATCH v3 5/6] ARM: mvebu: Add driver for mv98dx3236-soc-id

2017-02-17 Thread Arnd Bergmann
On Fri, Feb 17, 2017 at 5:22 AM, Chris Packham wrote: > Hi Arnd, > On 17/02/17 02:28, Arnd Bergmann wrote: >> On Thursday, February 16, 2017 9:50:39 PM CET Chris Packham wrote: >>> The DFX server on the 98dx3236 and compatible SoCs has an ID register >>> that provides revision information that the

Re: [PATCH] x86/mce: Keep quiet in case of broadcasted mce after system panic

2017-02-17 Thread Xunlei Pang
On 02/17/2017 at 05:07 PM, Borislav Petkov wrote: > On Fri, Feb 17, 2017 at 09:53:21AM +0800, Xunlei Pang wrote: >> It changes the value of cpu_online_mask/etc which will cause confusion to >> vmcore analysis. > Then export the crashing_cpu variable, initialize it to something > invalid in the fir

Re: [PATCH trivial 2/4] rtlwifi: rtl8821ae: Spelling s/wrtie_addr/write_addr/

2017-02-17 Thread Geert Uytterhoeven
Hi Larry, On Fri, Feb 17, 2017 at 5:14 PM, Larry Finger wrote: > On 02/17/2017 09:36 AM, Geert Uytterhoeven wrote: >> As per symmetry with _rtl8821ae_dbi_read(), "wrtie" is not a funky >> register acronym, but a simple misspelling of "write". >> >> Signed-off-by: Geert Uytterhoeven >> Cc: Larry

Re: [PATCH v2 04/10] mm, page_alloc: count movable pages when stealing from pageblock

2017-02-17 Thread Vlastimil Babka
On 02/15/2017 12:56 PM, Xishi Qiu wrote: > On 2017/2/15 18:47, Vlastimil Babka wrote: > >> On 02/14/2017 11:07 AM, Xishi Qiu wrote: >>> On 2017/2/11 1:23, Vlastimil Babka wrote: >>> When stealing pages from pageblock of a different migratetype, we count how many free pages were stolen, a

Re: [PATCH V3 2/7] mm: move MADV_FREE pages into LRU_INACTIVE_FILE list

2017-02-17 Thread Johannes Weiner
On Thu, Feb 16, 2017 at 04:35:25PM -0800, Shaohua Li wrote: > On Thu, Feb 16, 2017 at 12:52:53PM -0500, Johannes Weiner wrote: > > On Tue, Feb 14, 2017 at 11:36:08AM -0800, Shaohua Li wrote: > > > @@ -126,4 +126,24 @@ static __always_inline enum lru_list page_lru(struct > > > page *page) > > > >

Re: [RFC 0/4] iio: trigger: Add OF support and GPIO based trigger

2017-02-17 Thread Daniel Baluta
On Fri, Feb 17, 2017 at 6:03 PM, Fabrice Gasnier wrote: > Hi, > > I send this as an RFC, as I'm digging to try to get as generic > as possible GPIO based trigger support, as discussed earlier in > other patchset "Add EXTI GPIO trigger support to STM32 ADC": > https://www.spinics.net/lists/arm-kern

RE: [PATCH 02/35] ARM: ep93xx: Convert remaining uses of pr_warning to pr_warn

2017-02-17 Thread Hartley Sweeten
On Friday, February 17, 2017 12:11 AM, Joe Perches wrote: > To enable eventual removal of pr_warning. > > This makes pr_warn use consistent for arch/arm > > Prior to this patch, there were 2 uses of pr_warning and > 405 uses of pr_warn in arch/arm > > Signed-off-by: Joe Perches > --- > arch/arm/m

Re: [PATCH v2 07/10] mm, compaction: restrict async compaction to pageblocks of same migratetype

2017-02-17 Thread Vlastimil Babka
On 02/14/2017 09:10 PM, Johannes Weiner wrote: > On Fri, Feb 10, 2017 at 06:23:40PM +0100, Vlastimil Babka wrote: >> The migrate scanner in async compaction is currently limited to >> MIGRATE_MOVABLE >> pageblocks. This is a heuristic intended to reduce latency, based on the >> assumption that non

Re: v4.10-rc8 (-rc6) boot regression on Intel desktop, does not boot after cold boots, boots after reboot

2017-02-17 Thread Thomas Gleixner
On Fri, 17 Feb 2017, Frederic Weisbecker wrote: > On Thu, Feb 16, 2017 at 08:34:45PM +0100, Thomas Gleixner wrote: > > On Thu, 16 Feb 2017, Frederic Weisbecker wrote: > > > On Thu, Feb 16, 2017 at 10:20:14AM -0800, Linus Torvalds wrote: > > > > On Thu, Feb 16, 2017 at 10:13 AM, Frederic Weisbecker

RE: [PATCHv3 4/4] MAINTAINERS: Remove powerpc's opal match

2017-02-17 Thread Elliott, Robert (Persistent Memory)
> -Original Message- > From: linux-block-ow...@vger.kernel.org [mailto:linux-block- > ow...@vger.kernel.org] On Behalf Of Jon Derrick > Sent: Thursday, February 16, 2017 10:15 AM > To: Michael Ellerman > Cc: Jens Axboe ; Rafael Antognolli > ; Greg Kroah-Hartman > ; linux-kernel@vger.kern

Re: [PATCH trivial 2/4] rtlwifi: rtl8821ae: Spelling s/wrtie_addr/write_addr/

2017-02-17 Thread Larry Finger
On 02/17/2017 10:19 AM, Geert Uytterhoeven wrote: Hi Larry, On Fri, Feb 17, 2017 at 5:14 PM, Larry Finger wrote: On 02/17/2017 09:36 AM, Geert Uytterhoeven wrote: As per symmetry with _rtl8821ae_dbi_read(), "wrtie" is not a funky register acronym, but a simple misspelling of "write". Signed-

Re: [RFC PATCH v4 26/28] x86: Allow kexec to be used with SME

2017-02-17 Thread Tom Lendacky
On 2/17/2017 9:57 AM, Konrad Rzeszutek Wilk wrote: On Thu, Feb 16, 2017 at 09:47:55AM -0600, Tom Lendacky wrote: Provide support so that kexec can be used to boot a kernel when SME is enabled. Is the point of kexec and kdump to ehh, dump memory ? But if the rest of the memory is encrypted you

Re: [PATCHv3 33/33] mm, x86: introduce PR_SET_MAX_VADDR and PR_GET_MAX_VADDR

2017-02-17 Thread Andy Lutomirski
On Fri, Feb 17, 2017 at 6:13 AM, Kirill A. Shutemov wrote: > This patch introduces two new prctl(2) handles to manage maximum virtual > address available to userspace to map. > > On x86, 5-level paging enables 56-bit userspace virtual address space. > Not all user space is ready to handle wide add

[PATCH] arm64: traps: Mark __le16, __le32, __user variables properly

2017-02-17 Thread Stephen Boyd
Sparse complains a bit on this file about endian issues and __user casting: arch/arm64/kernel/traps.c:87:37: warning: incorrect type in argument 1 (different address spaces) arch/arm64/kernel/traps.c:87:37:expected void const volatile [noderef] * arch/arm64/kernel/traps.c:87:37:got unsig

[PATCH] arm64: dts: qcom: pm8994: Add rtc node

2017-02-17 Thread Bjorn Andersson
Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/pm8994.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm8994.dtsi b/arch/arm64/boot/dts/qcom/pm8994.dtsi index 0f1866024ae3..b413e44fd09e 100644 --- a/arch/arm64/boot/dts/qcom/pm8994.dtsi +++ b/

Re: [RFC PATCH v4 19/28] swiotlb: Add warnings for use of bounce buffers with SME

2017-02-17 Thread Tom Lendacky
On 2/17/2017 9:59 AM, Konrad Rzeszutek Wilk wrote: On Thu, Feb 16, 2017 at 09:46:19AM -0600, Tom Lendacky wrote: Add warnings to let the user know when bounce buffers are being used for DMA when SME is active. Since the bounce buffers are not in encrypted memory, these notifications are to allo

[PATCH] asm-generic: Force cast get_user() setting x to 0

2017-02-17 Thread Stephen Boyd
If we call get_user() with an __le* or __be* type sparse will complain when we assign the result to 0 on the faulting path. Let's force cast here so that sparse doesn't complain. This mirrors what we do in __get_user() as well. Signed-off-by: Stephen Boyd --- I made a similar fix to arm64 header

Re: [RFC 1/2] fs,eventpoll: Add ability to install target file by its number

2017-02-17 Thread Andy Lutomirski
On Fri, Feb 17, 2017 at 12:30 AM, Cyrill Gorcunov wrote: > When we checkpoint a process we look into /proc//fdinfo/ of eventpoll > file and parse target files list from there. In most situations this is fine > because target file is present in the /proc//fd/ list. But in case if > file > descript

Re: [PATCH 5/5] perf record: Add -a as a default target

2017-02-17 Thread Jiri Olsa
On Fri, Feb 17, 2017 at 11:28:14AM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Feb 17, 2017 at 03:00:58PM +0100, Jiri Olsa escreveu: > > Adding system wide (-a) option as a default target > > if non is specified. > > > > # perf record > > Warning: No target specified, setting system-wide

[PATCHv2 4/5] perf stat: Add -a as a default target

2017-02-17 Thread Jiri Olsa
On Fri, Feb 17, 2017 at 11:41:28AM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Feb 17, 2017 at 03:33:27PM +0100, Jiri Olsa escreveu: > > On Fri, Feb 17, 2017 at 11:27:47AM -0300, Arnaldo Carvalho de Melo wrote: > > > Em Fri, Feb 17, 2017 at 03:00:57PM +0100, Jiri Olsa escreveu: > > > > Boris a

Re: [PATCH] net: oki-semi: pch_gbe: use new api ethtool_{get|set}_link_ksettings

2017-02-17 Thread David Miller
From: Philippe Reynes Date: Thu, 16 Feb 2017 09:10:49 +0100 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > As I don't have the hardware, I'd be very pleased if > someone may test this patch. > > Signed-off-by: Philippe Reynes

Re: [PATCH v3 0/4] Improved seccomp logging

2017-02-17 Thread Andy Lutomirski
On Thu, Feb 16, 2017 at 3:29 PM, Kees Cook wrote: > On Wed, Feb 15, 2017 at 7:24 PM, Andy Lutomirski wrote: >> On Mon, Feb 13, 2017 at 7:45 PM, Tyler Hicks wrote: >>> This patch set is the third revision of the following two previously >>> submitted patch sets: >>> >>> v1: >>> http://lkml.kerne

Re: [PATCH v2 0/3] x86/vdso: Add Hyper-V TSC page clocksource support

2017-02-17 Thread Andy Lutomirski
On Fri, Feb 17, 2017 at 2:14 AM, Vitaly Kuznetsov wrote: > Thomas Gleixner writes: > >> On Wed, 15 Feb 2017, Vitaly Kuznetsov wrote: >>> Actually, we already have an implementation of TSC page update in KVM >>> (see arch/x86/kvm/hyperv.c, kvm_hv_setup_tsc_page()) and the update does >>> the follo

Re: [PATCH] hv: hide unused label

2017-02-17 Thread Stephen Hemminger
On Tue, 14 Feb 2017 22:17:17 +0100 Arnd Bergmann wrote: > This new 32-bit warning just showed up: > > arch/x86/hyperv/hv_init.c: In function 'hyperv_init': > arch/x86/hyperv/hv_init.c:167:1: error: label 'register_msr_cs' defined but > not used [-Werror=unused-label] > > The easiest solution i

Re: [PATCHv3] x86/selftests: add clobbers for int80 on x86_64

2017-02-17 Thread Andy Lutomirski
On Mon, Feb 13, 2017 at 2:18 PM, wrote: > On February 13, 2017 11:06:04 AM PST, Andy Lutomirski > wrote: >>On Mon, Feb 13, 2017 at 2:13 AM, Dmitry Safonov >> wrote: >>> Kernel erases R8..R11 registers prior returning to userspace >>> from int80: https://lkml.org/lkml/2009/10/1/164 >>> >>> GCC c

Re: [PATCH v2 03/22] PCI: endpoint: Introduce configfs entry for configuring EP functions

2017-02-17 Thread Christoph Hellwig
On Fri, Feb 17, 2017 at 03:20:23PM +0530, Kishon Vijay Abraham I wrote: > Introduce a new configfs entry to configure the EP function (like > configuring the standard configuration header entries) and to > bind the EP function with EP controller. > > Signed-off-by: Kishon Vijay Abraham I > --- >

Re: v4.10-rc8 (-rc6) boot regression on Intel desktop, does not boot after cold boots, boots after reboot

2017-02-17 Thread Pavel Machek
On Fri 2017-02-17 17:37:47, Thomas Gleixner wrote: > On Fri, 17 Feb 2017, Frederic Weisbecker wrote: > > On Thu, Feb 16, 2017 at 08:34:45PM +0100, Thomas Gleixner wrote: > > > On Thu, 16 Feb 2017, Frederic Weisbecker wrote: > > > > On Thu, Feb 16, 2017 at 10:20:14AM -0800, Linus Torvalds wrote: > >

[PATCH] x86/platform/uv/BAU: Remove initial write to swack register

2017-02-17 Thread Andrew Banman
Writing to the software acknowledge clear register when there are no pending messages causes a HUB error to assert. The original intent of this write was to clear the pending bits before start of operation, but this is an incorrect method and has been determined to be unnecessary. Signed-off-by: A

Re: kmemleak splat on copy_process()

2017-02-17 Thread Andy Lutomirski
On Wed, Feb 8, 2017 at 5:37 PM, Luis R. Rodriguez wrote: > On Tue, Feb 07, 2017 at 09:03:43AM +0100, Michal Hocko wrote: >> On Tue 07-02-17 02:37:02, Luis R. Rodriguez wrote: >> > > From a quick check I do not see any leak there either. >> > >> > Then in that case what about: >> >> This just disab

Re: [PATCH] groups: don't return unmapped gids in getgroups(2)

2017-02-17 Thread Andy Lutomirski
On Fri, Feb 17, 2017 at 12:44 AM, Aleksa Sarai wrote: >>> One thing overlooked by commit 9cc46516ddf4 ("userns: Add a knob to >>> disable setgroups on a per user namespace basis") is that because >>> setgroups(2) no longer works in user namespaces it doesn't make any >>> sense to be returning weir

Re: [RFC 1/2] fs,eventpoll: Add ability to install target file by its number

2017-02-17 Thread Cyrill Gorcunov
On Fri, Feb 17, 2017 at 08:52:59AM -0800, Andy Lutomirski wrote: > > > > To resolve this tie lets add EPOLL_CTL_DUP operation which simply takes > > target file descriptor number and installs it into a caller's file table, > > thus we can use kcmp() syscall and figure out which exactly file to be >

Re: [RFC 4/8] doc: fpga-mgr: separate getting/locking FPGA manager

2017-02-17 Thread Li, Yi
hi Alan On 2/15/2017 10:14 AM, Alan Tull wrote: Document that getting a reference to a FPGA Manager has been separated from locking the FPGA Mangager for use. fpga_mgr_lock/unlock functions get/release mutex. of_fpga_mgr_get, fpga_mgr_get, and fpga_mgr_put no longer lock the FPGA manager mute

Re: [PATCH v2 04/22] Documentation: PCI: Guide to use pci endpoint configfs

2017-02-17 Thread Christoph Hellwig
I'm commenting on the configfs layout here instead of the patch with the code as the issues are easier to explain that way. I think the layout is a bit confusing and could be cleaner by making use of pre-created entries and symlinks. Here is my suggestion: /sys/kernel/config/pci_ep/functions/

Re: [PATCH] net: mvneta: make mvneta_eth_tool_ops static

2017-02-17 Thread David Miller
From: Jisheng Zhang Date: Thu, 16 Feb 2017 17:07:39 +0800 > The mvneta_eth_tool_ops is only used internally in mvneta driver, so > make it static. > > Signed-off-by: Jisheng Zhang Applied to net-next, thanks.

[git pull] Input updates for 4.10-rc8

2017-02-17 Thread Dmitry Torokhov
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus to receive updates for the input subsystem: just a single change to Elan touchpad driver to recognize a new ACPI ID. Changelog: - IHARA Hiroka (1): Input: elan_i2c - add ELA

Re: [PATCHv3 33/33] mm, x86: introduce PR_SET_MAX_VADDR and PR_GET_MAX_VADDR

2017-02-17 Thread Dave Hansen
On 02/17/2017 06:13 AM, Kirill A. Shutemov wrote: > +/* > + * Default maximum virtual address. This is required for > + * compatibility with applications that assumes 47-bit VA. > + * The limit can be changed with prctl(PR_SET_MAX_VADDR). > + */ > +#define MAX_VADDR_DEFAULT((1UL << 47) - PAGE_S

Re: [PATCH v2 08/22] PCI: dwc: designware: Add EP mode support

2017-02-17 Thread Joao Pinto
Às 9:50 AM de 2/17/2017, Kishon Vijay Abraham I escreveu: > Add endpoint mode support to designware driver. This uses the > EP Core layer introduced recently to add endpoint mode support. > *Any* function driver can now use this designware device > in order to achieve the EP functionality. > > Sig

Re: [RFC 1/2] fs,eventpoll: Add ability to install target file by its number

2017-02-17 Thread Andy Lutomirski
On Fri, Feb 17, 2017 at 9:11 AM, Cyrill Gorcunov wrote: > On Fri, Feb 17, 2017 at 08:52:59AM -0800, Andy Lutomirski wrote: >> > >> > To resolve this tie lets add EPOLL_CTL_DUP operation which simply takes >> > target file descriptor number and installs it into a caller's file table, >> > thus we c

Re: [RFC 1/1] shiftfs: uid/gid shifting bind mount

2017-02-17 Thread James Bottomley
On Fri, 2017-02-17 at 14:57 +1300, Eric W. Biederman wrote: > I think I am missing something but I completely do not understand > that subthread that says use file marks and perform the work in the > vfs. The problem is that fundamentally we need multiple mappings and > I don't see a mark on a f

[RELEASE] LTTng-modules 2.8.4 and 2.9.1 (Linux kernel tracer)

2017-02-17 Thread Mathieu Desnoyers
The LTTng modules provide Linux kernel tracing capability to the LTTng tracer toolset. Those are stable branch releases for stable-2.8 and stable-2.9 lttng-modules branches. Version 2.9.1 adds support for the 4.10 version of the linux kernel release candidates. The rest are various bugfixes. Proj

Re: [PATCHv3 33/33] mm, x86: introduce PR_SET_MAX_VADDR and PR_GET_MAX_VADDR

2017-02-17 Thread Andy Lutomirski
On Fri, Feb 17, 2017 at 9:19 AM, Dave Hansen wrote: > On 02/17/2017 06:13 AM, Kirill A. Shutemov wrote: >> +/* >> + * Default maximum virtual address. This is required for >> + * compatibility with applications that assumes 47-bit VA. >> + * The limit can be changed with prctl(PR_SET_MAX_VADDR). >

Re: [PATCH] KVM: VMX: use vmcs_set/clear_bits for CPU-based execution controls

2017-02-17 Thread Bandan Das
Paolo Bonzini writes: > - Original Message - >> From: "Bandan Das" >> To: "Paolo Bonzini" >> Cc: linux-kernel@vger.kernel.org, k...@vger.kernel.org >> Sent: Friday, February 17, 2017 1:04:14 AM >> Subject: Re: [PATCH] KVM: VMX: use vmcs_set/clear_bits for CPU-based >> execution control

Re: kmemleak splat on copy_process()

2017-02-17 Thread Luis R. Rodriguez
On Fri, Feb 17, 2017 at 9:07 AM, Andy Lutomirski wrote: > But maybe > there really is a race in which a kmemleak check right in the middle > of duplicating the task struct really can't see the stack pointer. Funny, but it was actually using kmemleak how I can easily reproduce: To reproduce the k

Re: [RFC 1/1] shiftfs: uid/gid shifting bind mount

2017-02-17 Thread James Bottomley
On Fri, 2017-02-17 at 02:29 +, Al Viro wrote: > On Sat, Feb 04, 2017 at 11:19:32AM -0800, James Bottomley wrote: > > > +static const struct dentry_operations shiftfs_dentry_ops = { > > + .d_release = shiftfs_d_release, > > + .d_real = shiftfs_d_real, > > +}; > > In other word

Re: [PATCH] KVM: x86: remove code for lazy FPU handling

2017-02-17 Thread Bandan Das
Paolo Bonzini writes: > On 17/02/2017 01:45, Bandan Das wrote: >> Paolo Bonzini writes: >> >>> The FPU is always active now when running KVM. >> >> The lazy code was a performance optimization, correct ? >> Is this just dormant code and being removed ? Maybe >> mentioning the reasoning in a li

Re: [PATCH] arm64: traps: Mark __le16, __le32, __user variables properly

2017-02-17 Thread Russell King - ARM Linux
On Fri, Feb 17, 2017 at 08:51:12AM -0800, Stephen Boyd wrote: > diff --git a/arch/arm64/kernel/traps.c b/arch/arm64/kernel/traps.c > index 659b2e6b6cf7..23959cb70ded 100644 > --- a/arch/arm64/kernel/traps.c > +++ b/arch/arm64/kernel/traps.c > @@ -84,7 +84,7 @@ static void dump_mem(const char *lvl,

Re: [RFC 1/1] shiftfs: uid/gid shifting bind mount

2017-02-17 Thread James Bottomley
On Fri, 2017-02-17 at 02:55 +, Al Viro wrote: > On Thu, Feb 16, 2017 at 07:56:30AM -0800, James Bottomley wrote: > > > > Hi James, > > > > > > Should it be "return d_splice_alias()" so that if we find an > > > alias it is returned back to caller and passed in dentry can be > > > freed. Thou

Re: [PATCH] groups: don't return unmapped gids in getgroups(2)

2017-02-17 Thread Aleksa Sarai
One thing overlooked by commit 9cc46516ddf4 ("userns: Add a knob to disable setgroups on a per user namespace basis") is that because setgroups(2) no longer works in user namespaces it doesn't make any sense to be returning weird group IDs that the process cannot do anythi

Re: [RFC 4/8] doc: fpga-mgr: separate getting/locking FPGA manager

2017-02-17 Thread Moritz Fischer
Alan, small nits inline On Wed, Feb 15, 2017 at 8:14 AM, Alan Tull wrote: > Document that getting a reference to a FPGA Manager has been > separated from locking the FPGA Mangager for use. > > fpga_mgr_lock/unlock functions get/release mutex. > > of_fpga_mgr_get, fpga_mgr_get, and fpga_mgr_put n

Re: [PATCH] pci-hyperv: Use device serial number as PCI domain

2017-02-17 Thread Stephen Hemminger
On Mon, 13 Feb 2017 18:10:11 + Haiyang Zhang wrote: > This allows PCI domain numbers starts with 1, and also unique > on the same VM. So names, such as VF NIC names, that include > domain number as part of the name, can be shorter than that > based on part of bus UUID previously. The new name

Re: [PATCH v2 0/3] x86/vdso: Add Hyper-V TSC page clocksource support

2017-02-17 Thread Thomas Gleixner
On Fri, 17 Feb 2017, Andy Lutomirski wrote: > On Fri, Feb 17, 2017 at 2:14 AM, Vitaly Kuznetsov wrote: > > Not only. As far as I understand (and I *think* K. Y. pointed this out) > > when VM is migrating to another host TSC page clocksource is disabled for > > extended period of time so we're bett

Re: pull-request: wireless-drivers-next 2017-02-17

2017-02-17 Thread David Miller
From: Kalle Valo Date: Thu, 16 Feb 2017 15:41:13 +0200 > few -next patches I'm still hoping to get to 4.11 to keep my backlog > short, nothing major here. Please let me know if there are any problems. Pulled, thanks Kalle.

Re: [RFC 1/2] fs,eventpoll: Add ability to install target file by its number

2017-02-17 Thread Cyrill Gorcunov
On Fri, Feb 17, 2017 at 09:20:34AM -0800, Andy Lutomirski wrote: > >> > >> This is a scary thing to let an unprivileged process do. > >> > >> I'm wondering if there might be a nicer way to address this using a > >> better interface in /proc. > > > > Well, I tend to agree. Need to add security check

Re: [PATCH 4.9 00/32] 4.9.11-stable review

2017-02-17 Thread Greg Kroah-Hartman
On Fri, Feb 17, 2017 at 02:38:10AM -0800, Guenter Roeck wrote: > On 02/16/2017 09:54 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.9.11 release. > > There are 32 patches in this series, all will be posted as a response > > to this one. If anyone has any i

Re: [PATCHv2 4/5] perf stat: Add -a as a default target

2017-02-17 Thread Boris Petkov
On February 17, 2017 6:00:34 PM GMT+01:00, Jiri Olsa wrote: >--- >Boris asked for default -a option in case we monitor >only uncore events. While implementing that I thought >it might be actually useful to make it overall default. > >Running 'perf stat' will now collect system wide data. > >Reques

Re: Hard-coding PTY device node numbers in userspace

2017-02-17 Thread Greg KH
On Fri, Feb 17, 2017 at 12:02:52PM +0100, Florian Weimer wrote: > We want to reject PTY devices from other namespaces as valid input to > the ttyname and ttyname_r functions, while still providing a hint to > callers that the device is, in fact, a PTY. Christian Brauner wrote a > glibc patch for t

[PATCH net-next] rxrpc: Change module filename to rxrpc.ko

2017-02-17 Thread David Howells
Change module filename from af-rxrpc.ko to rxrpc.ko so as to be consistent with the other protocol drivers. Also adjust the documentation to reflect this. Further, there is no longer a standalone rxkad module, as it has been merged into the rxrpc core, so get rid of references to that. Reported-

[PATCH] fs: switch order of CAP_DAC_OVERRIDE and CAP_DAC_READ_SEARCH checks

2017-02-17 Thread Stephen Smalley
generic_permission() presently checks CAP_DAC_OVERRIDE prior to CAP_DAC_READ_SEARCH. This can cause misleading audit messages when using a LSM such as SELinux or AppArmor, since CAP_DAC_OVERRIDE may not be required for the operation. Flip the order of the tests so that CAP_DAC_OVERRIDE is only ch

Re: [PATCH] Documentation: Note QDF2400 SoC Erratum 44

2017-02-17 Thread Will Deacon
On Wed, Feb 15, 2017 at 04:54:07PM -0500, Christopher Covington wrote: > The Qualcomm Datacenter Technologies QDF2400 family of SoCs contains a > custom (non-PrimeCell) implementation of the SBSA UART. Occasionally the > BUSY bit in the Flag Register gets stuck as 1, erratum 44 for both 2432v1 > an

Re: [PATCHv3 2/2] arch: Rename CONFIG_DEBUG_RODATA and CONFIG_DEBUG_MODULE_RONX

2017-02-17 Thread Mark Rutland
On Thu, Feb 16, 2017 at 05:08:20PM -0800, Kees Cook wrote: > On Thu, Feb 16, 2017 at 2:25 PM, Pavel Machek wrote: > > Hi! > > > >> > >> -config DEBUG_RODATA > >> +config STRICT_KERNEL_RWX > >> bool "Make kernel text and rodata read-only" if > >> ARCH_OPTIONAL_KERNEL_RWX > >> depends o

Re: [PATCH v2 07/10] mm, compaction: restrict async compaction to pageblocks of same migratetype

2017-02-17 Thread Johannes Weiner
On Fri, Feb 17, 2017 at 05:32:00PM +0100, Vlastimil Babka wrote: > On 02/14/2017 09:10 PM, Johannes Weiner wrote: > > On Fri, Feb 10, 2017 at 06:23:40PM +0100, Vlastimil Babka wrote: > >> The migrate scanner in async compaction is currently limited to > >> MIGRATE_MOVABLE > >> pageblocks. This is

[PATCH] watchdog: softdog: fire watchdog even if softirqs do not get to run

2017-02-17 Thread Niklas Cassel
From: Niklas Cassel Checking for timer expiration is done from the softirq TIMER_SOFTIRQ. Since commit 4cd13c21b207 ("softirq: Let ksoftirqd do its job"), pending softirqs are no longer always handled immediately, instead, if there are pending softirqs, and ksoftirqd is in state TASK_RUNNING, th

Re: [PATCH v4 23/36] media: imx: Add MIPI CSI-2 Receiver subdev driver

2017-02-17 Thread Steve Longerbeam
On 02/17/2017 06:16 AM, Philipp Zabel wrote: On Fri, 2017-02-17 at 11:47 +0100, Philipp Zabel wrote: On Wed, 2017-02-15 at 18:19 -0800, Steve Longerbeam wrote: +static void csi2_dphy_init(struct csi2_dev *csi2) +{ + /* +* FIXME: 0x14 is derived from a fixed D-PHY reference +

[PATCH] f2fs: trace victim's cost selectecd by f2fs_gc

2017-02-17 Thread Jaegeuk Kim
This patch adds min_cost of each victims. Signed-off-by: Jaegeuk Kim --- include/trace/events/f2fs.h | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/trace/events/f2fs.h b/include/trace/events/f2fs.h index 153572e256d6..ff31ccfb8111 100644 --- a/include/trace/e

systemtap 3.1 release

2017-02-17 Thread Cody Santing
The SystemTap team announces release 3.1! Highlights include syscall probes default to non-dwarf fallback, python function probes, @variance and statistics optimizations, java probe argument generalization, and user-space value-setting functions. = Where to get it https://sourceware.o

[PATCH] MAINTAINERS: cpufreq: add bmips-cpufreq.c

2017-02-17 Thread Markus Mayer
From: Markus Mayer Add maintainer information for bmips-cpufreq.c. Signed-off-by: Markus Mayer --- This is based on PM's linux-next from today (February 17). This patch could be squashed into patch 3/4 of the original series if that is acceptable (see [1]) or it can remain separate. [1] http

Re: [RFC 1/2] fs,eventpoll: Add ability to install target file by its number

2017-02-17 Thread Jason Baron
On 02/17/2017 01:01 PM, Cyrill Gorcunov wrote: On Fri, Feb 17, 2017 at 09:20:34AM -0800, Andy Lutomirski wrote: This is a scary thing to let an unprivileged process do. I'm wondering if there might be a nicer way to address this using a better interface in /proc. Well, I tend to agree. Nee

Re: [PATCH v8 2/2] Documentation/ABI: Add ABI information for QCOM socinfo driver

2017-02-17 Thread Bjorn Andersson
On Tue 10 Jan 07:48 PST 2017, Imran Khan wrote: > + > +What:/sys/devices/soc0/machine > +Date:January 2017 > +Description: > + This file shows the machine name as given in the DT. This description needs to be updated. [..] > + > +What:/s

[PATCH] driver core: unbind consumers before locking parent on device unbind

2017-02-17 Thread Lucas Stach
On forced unbind the parent lock is taken, as the device might be a USB device. The device to be unbound might have active consumers, which must be unbound before calling device_release_driver(), otherwise this function might deadlock when trying to take the parent lock during consumer unbind. Sig

Re: [PATCH 2/2] f2fs: fix the case when there is no free segment to allocate for CURSEG_WARM_NODE

2017-02-17 Thread Jaegeuk Kim
Hi Yunlong, I already started to test this since a couple of days ago. :) http://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs.git/commit/?h=dev-test&id=908b5f463c82eaf972b149a26bb310f5e25064fd Thanks, On 02/17, Yunlong Song wrote: > If the free segments are used up, then new_curseg will fa

[PATCH] staging: bcm2835-audio: bcm2835.h: fix various coding style issues

2017-02-17 Thread Nathan Howard
The following coding style issues (as per checkpatch.pl) were resolved. WARNING: Block comments use * on subsequent lines WARNING: Prefer [subsystem eg: netdev]_info([subsystem]dev, ... WARNING: Missing a blank line after declarations WARNING: Use of volatile is usually wrong:... WARNING: line ove

Re: [PATCH v9] soc: qcom: Add SoC info driver

2017-02-17 Thread Bjorn Andersson
On Thu 16 Feb 02:45 PST 2017, Imran Khan wrote: > The SoC info driver provides information such as Chip ID, > Chip family, serial number and other such details about > Qualcomm SoCs to user space, so that if needed some user > space utility(like antutu) can query such information > using sysfs int

Re: [PATCH] driver core: unbind consumers before locking parent on device unbind

2017-02-17 Thread Greg Kroah-Hartman
On Fri, Feb 17, 2017 at 07:36:29PM +0100, Lucas Stach wrote: > On forced unbind the parent lock is taken, as the device might be a USB > device. The device to be unbound might have active consumers, which > must be unbound before calling device_release_driver(), otherwise this > function might dead

Re: swap_cluster_info lockdep splat

2017-02-17 Thread Hugh Dickins
On Fri, 17 Feb 2017, Huang, Ying wrote: > > I found a memory leak in __read_swap_cache_async() introduced by mm-swap > series, and confirmed it via testing. Could you verify whether it fixed > your cases? Thanks a lot for reporting. Well caught! That indeed fixes the leak I've been seeing: my

Re: [PATCH] staging: bcm2835-audio: bcm2835.h: fix various coding style issues

2017-02-17 Thread Greg Kroah-Hartman
On Fri, Feb 17, 2017 at 01:39:07PM -0500, Nathan Howard wrote: > The following coding style issues (as per checkpatch.pl) were resolved. > > WARNING: Block comments use * on subsequent lines > WARNING: Prefer [subsystem eg: netdev]_info([subsystem]dev, ... > WARNING: Missing a blank line after dec

Re: v4.10-rc8 (-rc6) boot regression on Intel desktop, does not boot after cold boots, boots after reboot

2017-02-17 Thread Frederic Weisbecker
On Fri, Feb 17, 2017 at 06:05:08PM +0100, Pavel Machek wrote: > On Fri 2017-02-17 17:37:47, Thomas Gleixner wrote: > > On Fri, 17 Feb 2017, Frederic Weisbecker wrote: > > > On Thu, Feb 16, 2017 at 08:34:45PM +0100, Thomas Gleixner wrote: > > > > On Thu, 16 Feb 2017, Frederic Weisbecker wrote: > > >

[PATCH] lockdep: Handle statically initialized PER_CPU locks proper

2017-02-17 Thread Thomas Gleixner
If a PER_CPU struct which contains a spin_lock is statically initialized via: DEFINE_PER_CPU(struct foo, bla) = { .lock = __SPIN_LOCK_UNLOCKED(bla.lock) }; then lockdep assigns a seperate key to each lock because the logic for assigning a key to statically initialized locks is to use the

Re: [PATCH V3 3/7] mm: reclaim MADV_FREE pages

2017-02-17 Thread Shaohua Li
On Fri, Feb 17, 2017 at 11:01:54AM -0500, Johannes Weiner wrote: > On Thu, Feb 16, 2017 at 04:27:18PM -0800, Shaohua Li wrote: > > On Thu, Feb 16, 2017 at 01:40:18PM -0500, Johannes Weiner wrote: > > > On Tue, Feb 14, 2017 at 11:36:09AM -0800, Shaohua Li wrote: > > > > @@ -911,7 +911,7 @@ static vo

Re: [PATCH] tpm: Fix expected number of response bytes of TPM1.2 PCR Extend

2017-02-17 Thread Jarkko Sakkinen
On Fri, Feb 17, 2017 at 07:46:38AM -0500, Mimi Zohar wrote: > Hi James, > > On Wed, 2017-02-15 at 20:09 +0200, Jarkko Sakkinen wrote: > > On Wed, Feb 15, 2017 at 11:56:23AM -0500, Stefan Berger wrote: > > > The TPM1.2 PCR Extend operation only returns 20 bytes in the body, > > > which is the size

Re: [PATCH] driver core: unbind consumers before locking parent on device unbind

2017-02-17 Thread Lucas Stach
Am Freitag, den 17.02.2017, 10:42 -0800 schrieb Greg Kroah-Hartman: > On Fri, Feb 17, 2017 at 07:36:29PM +0100, Lucas Stach wrote: > > On forced unbind the parent lock is taken, as the device might be a USB > > device. The device to be unbound might have active consumers, which > > must be unbound

Re: [PATCH] tpm: Fix expected number of response bytes of TPM1.2 PCR Extend

2017-02-17 Thread Mimi Zohar
On Fri, 2017-02-17 at 20:45 +0200, Jarkko Sakkinen wrote: > On Fri, Feb 17, 2017 at 07:46:38AM -0500, Mimi Zohar wrote: > > Hi James, > > > > On Wed, 2017-02-15 at 20:09 +0200, Jarkko Sakkinen wrote: > > > On Wed, Feb 15, 2017 at 11:56:23AM -0500, Stefan Berger wrote: > > > > The TPM1.2 PCR Extend

Re: [PATCH v3] Add sysfs interface for touchpad state

2017-02-17 Thread Ritesh Raj Sarraf
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Fri, 2017-02-17 at 18:12 +0200, Andy Shevchenko wrote: > > +static ssize_t touchpad_store(struct device *dev, > > +    struct device_attribute *attr, > > +    const char *buf, size_t count) >

Re: net: use-after-free in tw_timer_handler

2017-02-17 Thread Cong Wang
On Wed, Feb 8, 2017 at 9:36 AM, Dmitry Vyukov wrote: > On Tue, Jan 24, 2017 at 4:52 PM, Eric Dumazet wrote: >> On Tue, Jan 24, 2017 at 7:06 AM, Dmitry Vyukov wrote: This code was changed a long time ago : https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/

Re: [PATCH V2] perf: qcom: Add L3 cache PMU driver

2017-02-17 Thread Mark Rutland
On Thu, Feb 16, 2017 at 05:01:19PM -0500, Agustin Vega-Frias wrote: > On 2017-02-16 11:41, Mark Rutland wrote: > >On Thu, Feb 16, 2017 at 10:03:05AM -0500, Agustin Vega-Frias wrote: > >>This adds a new dynamic PMU to the Perf Events framework to program > >>and control the L3 cache PMUs in some Qua

[PATCH v4] platform/x86: ideapad-laptop: Add sysfs interface for touchpad state

2017-02-17 Thread Ritesh Raj Sarraf
Lenovo Yoga (many variants: Yoga, Yoga2 Pro, Yoga2 13, Yoga3 Pro, Yoga 3 14 etc) has multiple modles that are a hybrid laptop, working in laptop mode as well as tablet mode. Currently, there is no easy interface to determine the touchpad status, which in case of the Yoga family of machines, can al

[PATCH v2 3/3] staging: rtl8192u: Prefer using the BIT macro

2017-02-17 Thread simran singhal
Replaces left shift operation (1 << d) by BIT(x) macro. Fix the checkpatch.pl issue: CHECK: Prefer using the BIT macro replacing Signed-off-by: simran singhal --- V2: -modified patch message. drivers/staging/rtl8192u/ieee80211/ieee80211.h | 140 - 1 file changed,

Re: [PATCH v2] locking/pvqspinlock: Relax cmpxchg's to improve performance on some archs

2017-02-17 Thread Waiman Long
On 02/12/2017 09:24 PM, panxinhui wrote: > > 在 2017/2/10 上午4:53, Waiman Long 写道: >> On 02/07/2017 10:39 PM, Xinhui Pan wrote: >>> >>> 2016-12-26 4:26 GMT+08:00 Waiman Long >> >: >>> >>> A number of cmpxchg calls in qspinlock_paravirt.h were replaced by more >>> re

Re: [RFC 1/1] shiftfs: uid/gid shifting bind mount

2017-02-17 Thread Al Viro
On Fri, Feb 17, 2017 at 09:24:40AM -0800, James Bottomley wrote: > > What happens when somebody comes along and creates the damn thing on > > the underlying fs? _Not_ via your code, that is - using the > > underlying fs mounted elsewhere. > > Point taken. This, I think fixes the dcache revali

Re: [PATCH] net: qlogic: netxen: use new api ethtool_{get|set}_link_ksettings

2017-02-17 Thread David Miller
From: Philippe Reynes Date: Thu, 16 Feb 2017 23:28:01 +0100 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > As I don't have the hardware, I'd be very pleased if > someone may test this patch. > > Signed-off-by: Philippe Reynes

Re: [PATCH] net: hamachi: use new api ethtool_{get|set}_link_ksettings

2017-02-17 Thread David Miller
From: Philippe Reynes Date: Thu, 16 Feb 2017 22:46:14 +0100 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > As I don't have the hardware, I'd be very pleased if > someone may test this patch. > > Signed-off-by: Philippe Reynes

Re: [PATCH] MAINTAINERS: cpufreq: add bmips-cpufreq.c

2017-02-17 Thread Florian Fainelli
On 02/17/2017 10:30 AM, Markus Mayer wrote: > From: Markus Mayer > > Add maintainer information for bmips-cpufreq.c. > > Signed-off-by: Markus Mayer Looks great, thanks for adding this, one nit below: > --- > > This is based on PM's linux-next from today (February 17). > > This patch could

<    1   2   3   4   5   6   7   >