[PATCH v2 4/7] xen/9pfs: connect to the backend

2017-03-08 Thread Stefano Stabellini
Implement functions to handle the xenbus handshake. Upon connection, allocate the rings according to the protocol specification. Initialize a work_struct and a wait_queue. The work_struct will be used to schedule work upon receiving an event channel notification from the backend. The wait_queue wi

[PATCH v2 5/7] xen/9pfs: send requests to the backend

2017-03-08 Thread Stefano Stabellini
Implement struct p9_trans_module create and close functions by looking at the available Xen 9pfs frontend-backend connections. We don't expect many frontend-backend connections, thus walking a list is OK. Send requests to the backend by copying each request to one of the available rings (each fron

[PATCH v2 7/7] xen/9pfs: build 9pfs Xen transport driver

2017-03-08 Thread Stefano Stabellini
This patch adds a Kconfig option and Makefile support for building the 9pfs Xen driver. Signed-off-by: Stefano Stabellini CC: boris.ostrov...@oracle.com CC: jgr...@suse.com CC: Eric Van Hensbergen CC: Ron Minnich CC: Latchesar Ionkov CC: v9fs-develo...@lists.sourceforge.net --- net/9p/Kconfig

[PATCH v2 1/7] xen: import new ring macros in ring.h

2017-03-08 Thread Stefano Stabellini
Sync the ring.h file with upstream Xen, to introduce the new ring macros. They will be used by the Xen transport for 9pfs. Signed-off-by: Stefano Stabellini CC: konrad.w...@oracle.com CC: boris.ostrov...@oracle.com CC: jgr...@suse.com --- NB: The new macros have not been committed to Xen yet. Do

Re: [PATCH v5 2/5] powerpc: kretprobes: override default function entry offset

2017-03-08 Thread Naveen N. Rao
On 2017/03/08 11:29AM, Arnaldo Carvalho de Melo wrote: > Em Wed, Mar 08, 2017 at 07:54:12PM +0530, Naveen N. Rao escreveu: > > Hi Michael, > > > > On 2017/03/08 09:43PM, Michael Ellerman wrote: > > > "Naveen N. Rao" writes: > > > > > > > With ABIv2, we offset 8 bytes into a function to get at th

[PATCH v2 2/7] xen: introduce the header file for the Xen 9pfs transport protocol

2017-03-08 Thread Stefano Stabellini
It uses the new ring.h macros to declare rings and interfaces. Signed-off-by: Stefano Stabellini CC: konrad.w...@oracle.com CC: boris.ostrov...@oracle.com CC: jgr...@suse.com --- include/xen/interface/io/9pfs.h | 40 1 file changed, 40 insertions(+) crea

[PATCH v2 3/7] xen/9pfs: introduce Xen 9pfs transport driver

2017-03-08 Thread Stefano Stabellini
Introduce the Xen 9pfs transport driver: add struct xenbus_driver to register as a xenbus driver and add struct p9_trans_module to register as v9fs driver. All functions are empty stubs for now. Signed-off-by: Stefano Stabellini CC: boris.ostrov...@oracle.com CC: jgr...@suse.com CC: Eric Van Hen

Re: [PATCH v2 3/9] mm: clear any AS_* errors when returning error on any fsync or close

2017-03-08 Thread Jeff Layton
On Thu, 2017-03-09 at 08:23 +1100, NeilBrown wrote: > On Thu, Mar 09 2017, Jeff Layton wrote: > > > Currently we don't clear the address space error when there is a -EIO > > error on fsynci, due to writeback initiation failure. If writes fail > > with -EIO and the mapping is flagged with an AS_EIO

Re: [PATCH for-4.11] ASoC: don't dereference NULL pcm_{new,free}

2017-03-08 Thread Brian Norris
Hi Kuninori, On Thu, Mar 09, 2017 at 12:17:41AM +, Kuninori Morimoto wrote: > > Not all platform drivers have pcm_{new,free} callbacks. Seen with a > > "snd-soc-dummy" codec from sound/soc/rockchip/rk3399_gru_sound.c. > (snip) > > Fixes: 99b04f4c4051 ("ASoC: add Component level pcm_new/pcm_fre

Re: [net/bpf] 3051bf36c2 BUG: unable to handle kernel paging request at 0000a7cf

2017-03-08 Thread Laura Abbott
On 03/08/2017 02:36 PM, Kees Cook wrote: > On Wed, Mar 8, 2017 at 2:27 PM, Daniel Borkmann wrote: >> [ 28.474232] rodata_test: test data was not read only >> [...] > > In my tests so far, I've never been able to get rodata_test to fail > (Qemu 2.5.0, Ubuntu). I'll retry with your .config and se

Re: [PATCH for-4.11] ASoC: don't dereference NULL pcm_{new,free}

2017-03-08 Thread Kuninori Morimoto
Hi Brian Thank you for your patch > Not all platform drivers have pcm_{new,free} callbacks. Seen with a > "snd-soc-dummy" codec from sound/soc/rockchip/rk3399_gru_sound.c. (snip) > Fixes: 99b04f4c4051 ("ASoC: add Component level pcm_new/pcm_free") > Signed-off-by: Brian Norris > --- > I'm reall

Re: Dell Inspiron 5558/0VNM2T hangs at resume from suspend when USB 3 is enabled

2017-03-08 Thread Greg KH
On Wed, Mar 08, 2017 at 03:49:19PM -0300, Diego Viola wrote: > It hangs on resume from suspend if I have USB 3.0 enabled on the BIOS, > it works fine with ehci_hcd or USB 2.0. > > The way I reproduce the problem is with this command: > > $ i3lock && systemctl suspend > > This is what I see on th

[PATCH v1 3/4] arm/syscalls: Specific usage of verify_pre_usermode_state

2017-03-08 Thread Thomas Garnier
Implement specific usage of verify_pre_usermode_state for user-mode returns for arm. --- Based on next-20170308 --- arch/arm/Kconfig | 1 + arch/arm/kernel/entry-common.S | 5 + 2 files changed, 6 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 0d4e71b42c77

Re: [PATCH] rtc: omap: remove incorrect __exit markups

2017-03-08 Thread Alexandre Belloni
On 01/03/2017 at 15:33:23 -0800, Dmitry Torokhov wrote: > Even if bus is not hot-pluggable, devices can be unbound from the > driver via sysfs, so we should not be using __exit annotations on > remove() methods. The only exception is drivers registered with > platform_driver_probe(), which specific

Re: [PATCH] mux-core: make it explicitly non-modular

2017-03-08 Thread Paul Gortmaker
[Re: [PATCH] mux-core: make it explicitly non-modular] On 08/03/2017 (Wed 16:32) Peter Rosin wrote: > On 2017-03-08 15:38, Paul Gortmaker wrote: [...] > > > > Note that mux-core doesn't have a .ko (modular variant) and also you can > > confirm with nm that everything in mux-core.o is in built-

Re: [PATCHv4 1/2] dt-bindings: Add vendor prefix for Motorola

2017-03-08 Thread Alexandre Belloni
On 02/03/2017 at 01:27:08 +0100, Sebastian Reichel wrote: > Motorola was involved in semiconductor and mobile phone business. > The "motorola," prefix is already used by a couple of bindings: > > * rtc/rtc-cmos.txt > * mfd/motorola-cpcap.txt > * regulator/cpcap-regulator.txt > > Apart from that i

Re: [PATCHv4 2/2] rtc: cpcap: new rtc driver

2017-03-08 Thread Alexandre Belloni
On 02/03/2017 at 01:27:09 +0100, Sebastian Reichel wrote: > This driver supports the Motorola CPCAP PMIC found on > some of Motorola's mobile phones, such as the Droid 4. > > Tested-by: Tony Lindgren > Signed-off-by: Sebastian Reichel > --- > Changes since PATCHv3: > - Modified DT binding docum

Re: [PATCH] rtc: omap: mark PM methods as __maybe_unused

2017-03-08 Thread Alexandre Belloni
On 01/03/2017 at 15:34:38 -0800, Dmitry Torokhov wrote: > Instead of using #ifdef guards around PM methods, let's annotate > them as __maybe_unused, as it provides better compile coverage. > > Also drop empty stub for omap_rtc_runtime_resume(). > > Signed-off-by: Dmitry Torokhov > --- > drivers

[PATCH] ARM: socfpga: updates for socfpga_defconfig

2017-03-08 Thread ho . jia . jie
From: Jia Jie Ho This patch enables Altera TSE support for Arria10 SoC FPGA Signed-off-by: Jia Jie Ho --- arch/arm/configs/socfpga_defconfig |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/configs/socfpga_defconfig b/arch/arm/configs/socfpga_defconfig index 0

Re: [PATCH resent] uapi libc compat: allow non-glibc to opt out of uapi definitions

2017-03-08 Thread Szabolcs Nagy
* Carlos O'Donell [2017-03-08 10:53:00 -0500]: > On 11/11/2016 07:08 AM, Felix Janda wrote: > > fixes the following compiler errors when is included > > after musl : > > > > ./linux/in6.h:32:8: error: redefinition of 'struct in6_addr' > > ./linux/in6.h:49:8: error: redefinition of 'struct sockad

Re: out of range LBA using sg_raw

2017-03-08 Thread Martin K. Petersen
> "Kashyap" == Kashyap Desai writes: Kashyap, Kashyap> Agree on this point. I am planning to study all possible such Kashyap> sanity in driver for VD and not trying to fix one specific Kashyap> scenario as described here. Do you think fix in this area is Kashyap> good for kernel-stable as w

Re: [PATCH 3/4] phy: rockchip-typec: support DP phy switch

2017-03-08 Thread Brian Norris
On Fri, Feb 10, 2017 at 03:44:13PM +0800, Chris Zhong wrote: > There are 2 Type-c PHYs in RK3399, but only one DP controller. Hence > only one PHY can connect to DP controller at one time, the other should > be disconnected. The GRF_SOC_CON26 register has a switch bit to do it, > set this bit means

Re: [PATCH 1/2] x86/efi: Correct a tiny mistake in code comment

2017-03-08 Thread Dave Young
On 03/08/17 at 11:50am, Borislav Petkov wrote: > On Wed, Mar 08, 2017 at 06:17:50PM +0800, Baoquan He wrote: > > All right, I will just update the code comment. Just back ported kaslr > > to our OS product, people reviewed and found the upper boundary of kaslr > > mm region is EFI_VA_START, that's

[PATCH] net: ks8851: Added support for half-duplex SPI

2017-03-08 Thread Sergey Shcherbakov
In original driver was implemented support for half- and full-duplex modes, but it was not enabled. Instead of it ks8851_rx_1msg method always returns "true" that means "full-duplex" mode. This patch replaces hard-coded functionality with flexible solution that supports both SPI modes. Signed-off

Re: [PATCH for-4.11] ASoC: don't dereference NULL pcm_{new,free}

2017-03-08 Thread Kuninori Morimoto
Hi Brian > > It is a littlle bit strange for me. > > Yes, and honestly I'm a little confused by the inheritance in this > framework. Yes, I agree :) This is 1st prepare for future ALSA SoC framework cleanup It is Lars-Peter's idea > I have a feeling you're checking the wrong thing below for th

Re: [PATCH resent] uapi libc compat: allow non-glibc to opt out of uapi definitions

2017-03-08 Thread Carlos O'Donell
On 03/08/2017 07:14 PM, Szabolcs Nagy wrote: > * Carlos O'Donell [2017-03-08 10:53:00 -0500]: >> On 11/11/2016 07:08 AM, Felix Janda wrote: >>> fixes the following compiler errors when is included >>> after musl : >>> >>> ./linux/in6.h:32:8: error: redefinition of 'struct in6_addr' >>> ./linux/in

[PATCH] drivers: Remove OF dependency in drv260x driver

2017-03-08 Thread Jingkui Wang
As the driver is using generic device properties, it should work properly when CONFIG_OF is turned off. This patch removes the ifdef CONFIGOF and make sure the driver always have of_match_table. Signed-off-by: Jingkui Wang --- drivers/input/misc/drv260x.c | 4 +--- 1 file changed, 1 insertion(+)

Re: [PATCH] drivers: Remove OF dependency in drv260x driver

2017-03-08 Thread Dmitry Torokhov
On Wed, Mar 08, 2017 at 04:54:02PM -0800, Jingkui Wang wrote: > As the driver is using generic device properties, it should work > properly when CONFIG_OF is turned off. This patch removes the > ifdef CONFIGOF and make sure the driver always have of_match_table. > > Signed-off-by: Jingkui Wang >

Re: [v6 PATCH 00/21] x86: Enable User-Mode Instruction Prevention

2017-03-08 Thread Ricardo Neri
On Wed, 2017-03-08 at 19:53 +0300, Stas Sergeev wrote: > 08.03.2017 19:46, Andy Lutomirski пишет: > >> No no, since I meant prot mode, this is not what I need. > >> I would never need to disable UMIP as to allow the > >> prot mode apps to do SLDT. Instead it would be good > >> to have an ability to

Re: [PATCH] drivers: Remove OF dependency in drv260x driver

2017-03-08 Thread Jingkui Wang
Sorry.. my text editor was misconfigured. Will fix and send again. On Wed, Mar 8, 2017 at 5:08 PM, Dmitry Torokhov wrote: > On Wed, Mar 08, 2017 at 04:54:02PM -0800, Jingkui Wang wrote: >> As the driver is using generic device properties, it should work >> properly when CONFIG_OF is turned off. T

Re: [v6 PATCH 00/21] x86: Enable User-Mode Instruction Prevention

2017-03-08 Thread Ricardo Neri
On Wed, 2017-03-08 at 08:46 -0800, Andy Lutomirski wrote: > On Wed, Mar 8, 2017 at 8:29 AM, Stas Sergeev wrote: > > 08.03.2017 19:06, Andy Lutomirski пишет: > >> > >> On Wed, Mar 8, 2017 at 6:08 AM, Stas Sergeev wrote: > >>> > >>> 08.03.2017 03:32, Ricardo Neri пишет: > > These are the

[PATCH net] dccp/tcp: fix routing redirect race

2017-03-08 Thread Jon Maxwell
We have seen a few incidents lately where a dst_enty has been freed with a dangling TCP socket reference (sk->sk_dst_cache) pointing to that dst_entry. If the conditions/timings are right a crash then ensues when the freed dst_entry is referenced later on. A Common crashing back trace is: #8 [] p

[PATCH] edac i5000, i5400: fix use of MTR_DRAM_WIDTH macro

2017-03-08 Thread Jérémy Lefaure
The MTR_DRAM_WIDTH macro returns the data width. It is sometimes used as if it returned a boolean true if the width if 8. This patch fixes the tests where MTR_DRAM_WIDTH is misused. Signed-off-by: Jérémy Lefaure --- drivers/edac/i5000_edac.c | 2 +- drivers/edac/i5400_edac.c | 5 +++-- 2 files c

Re: [PATCH -mm -v6 2/9] mm, memcg: Support to charge/uncharge multiple swap entries

2017-03-08 Thread Huang, Ying
Balbir Singh writes: > On Wed, 2017-03-08 at 15:26 +0800, Huang, Ying wrote: >> From: Huang Ying >>  >> This patch make it possible to charge or uncharge a set of continuous >> swap entries in the swap cgroup.  The number of swap entries is >> specified via an added parameter. >>  >> This will b

Re: [PATCH 3/4] phy: rockchip-typec: support DP phy switch

2017-03-08 Thread Heiko Stübner
Am Mittwoch, 8. März 2017, 16:39:23 CET schrieb Brian Norris: > On Fri, Feb 10, 2017 at 03:44:13PM +0800, Chris Zhong wrote: > > There are 2 Type-c PHYs in RK3399, but only one DP controller. Hence > > only one PHY can connect to DP controller at one time, the other should > > be disconnected. The

Re: [LSF/MM TOPIC][LSF/MM,ATTEND] shared TLB, hugetlb reservations

2017-03-08 Thread Mike Kravetz
On 01/10/2017 03:02 PM, Mike Kravetz wrote: > Another more concrete topic is hugetlb reservations. Michal Hocko > proposed the topic "mm patches review bandwidth", and brought up the > related subject of areas in need of attention from an architectural > POV. I suggested that hugetlb reservations

Re: [f2fs-dev] [PATCH] f2fs: don't allow rename unencrypted file to encrypted directory

2017-03-08 Thread Chao Yu
On 2017/3/8 21:35, Kinglong Mee wrote: > On 3/8/2017 20:08, Chao Yu wrote: >> In commit d9cdc9033181 ("ext4 crypto: enforce context consistency") we >> declared that: >> >> 2) All files or directories in a directory must be protected using the >> same key as their containing directory. >> >> Bu

Re: [net/bpf] 3051bf36c2 BUG: unable to handle kernel paging request at 0000a7cf

2017-03-08 Thread Fengguang Wu
On Wed, Mar 08, 2017 at 02:43:44PM -0800, Linus Torvalds wrote: On Wed, Mar 8, 2017 at 2:27 PM, Daniel Borkmann wrote: The issue seems to be accessing buff first (can be read or write access) and then doing set_memory_ro() doesn't make it read-only immediately, meaning the subsequent call into

[PATCH] arm64: support keyctl() system call in 32-bit mode

2017-03-08 Thread Eric Biggers
From: Eric Biggers As is the case for a number of other architectures that have a 32-bit compat mode, enable KEYS_COMPAT if both COMPAT and KEYS are enabled. This allows AArch32 programs to use the keyctl() system call when running on an AArch64 kernel. Signed-off-by: Eric Biggers --- arch/arm

Re: [PATCH 1/2] x86/efi: Correct a tiny mistake in code comment

2017-03-08 Thread Dave Young
Hi, On 03/08/17 at 04:45pm, Baoquan He wrote: > Forgot cc to Boris, add him. > > On 03/08/17 at 04:18pm, Dave Young wrote: > > On 03/08/17 at 03:47pm, Baoquan He wrote: > > > EFI allocate runtime services regions down from EFI_VA_START, -4G. > > > It should be top-down handling. > > > > > > Sign

Re: [PATCHv2 0/6] x86/platform/uv/BAU: UV4 message completion and initialization updates

2017-03-08 Thread Andrew Banman
Hi Ingo and Thomas, Are these patches acceptable to you? We want to get these upstream as soon as possible, so please send along any more comments you have. If you're annoyed by the format of the emails just let me know and I'll resubmit. Thank you, Andrew On 2/17/17 4:06 PM, Andrew Banman

Re: [v6 PATCH 00/21] x86: Enable User-Mode Instruction Prevention

2017-03-08 Thread Ricardo Neri
On Wed, 2017-03-08 at 17:08 +0300, Stas Sergeev wrote: > 08.03.2017 03:32, Ricardo Neri пишет: > > These are the instructions covered by UMIP: > > * SGDT - Store Global Descriptor Table > > * SIDT - Store Interrupt Descriptor Table > > * SLDT - Store Local Descriptor Table > > * SMSW - Store Machin

Re: [PATCH -mm -v6 1/9] mm, swap: Make swap cluster size same of THP size on x86_64

2017-03-08 Thread Huang, Ying
Hi, Matthew, Matthew Wilcox writes: > On Wed, Mar 08, 2017 at 03:26:05PM +0800, Huang, Ying wrote: >> In this patch, the size of the swap cluster is changed to that of the >> THP (Transparent Huge Page) on x86_64 architecture (512). This is for >> the THP swap support on x86_64. Where one swap

[GIT PULL for v4.11-rc2] media fixes

2017-03-08 Thread Mauro Carvalho Chehab
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media tags/media/v4.11-2 For media regression fixes: - serial_ir: fix a Kernel crash during boot on Kernel 4.11-rc1, due to an IRQ code called too early; - other IR regression fixes at lirc a

RE: [PATCH v19 0/4] Introduce usb charger framework to deal with the usb gadget power negotation

2017-03-08 Thread Jun Li
Hi, > -Original Message- > From: Baolin Wang [mailto:baolin.w...@linaro.org] > Sent: Tuesday, March 07, 2017 5:39 PM > To: NeilBrown > Cc: Felipe Balbi ; Greg KH ; > Sebastian Reichel ; Dmitry Eremin-Solenikov > ; David Woodhouse ; > r...@kernel.org; Jun Li ; Marek Szyprowski > ; Ruslan B

Re: [PATCH v17 2/3] usb: USB Type-C connector class

2017-03-08 Thread Peter Chen
On Wed, Mar 08, 2017 at 06:44:47AM -0800, Guenter Roeck wrote: > On 03/07/2017 10:50 PM, Peter Chen wrote: > > > You mean type-C trigger an ACPI event, and this ACPI event can notify > related USB controller driver doing role switch? > >>> > >>>No (firmware programs the dual-role hw/registe

Re: [PATCH] hwmon: (dell-smm) Add Dell XPS 15 9560 into DMI list

2017-03-08 Thread Guenter Roeck
On 03/03/2017 02:41 PM, Pali Rohár wrote: It was reported that dell-smm-hwmon is working fine on Dell XPS 15 9560. Link: http://www.spinics.net/lists/platform-driver-x86/msg10751.html Reported-by: Vasile Dumitrescu Signed-off-by: Pali Rohár With Vasile's feedback, I'll consider this patch te

[ANNOUNCE] 3.2.86-rt124

2017-03-08 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.2.86-rt124 stable release. This release is just an update to the new stable 3.2.86 version and no RT specific changes have been made. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.

Re: [lkp-robot] [x86] ed3ce2a917: BUG:unable_to_handle_kernel

2017-03-08 Thread Ye Xiaolong
On 03/02, Borislav Petkov wrote: >Hi, > >On Thu, Mar 02, 2017 at 09:09:34AM +0800, kernel test robot wrote: >> >> FYI, we noticed the following commit: >> >> commit: ed3ce2a9172457ef7dbaa9f964e63dfde2bdcb5f ("x86: Optimize >> clear_page()") >> url: >> https://github.com/0day-ci/linux/commits/Bo

[PATCH] block, writeback: wait for writeback to finish before detaching wb

2017-03-08 Thread Tahsin Erdogan
__blkdev_put() could surprise writeback thread by detaching the wb object from an inode that hasn't cleared the I_SYNC flag yet. This causes a NULL pointer dereference as seen below: BUG: unable to handle kernel NULL pointer dereference at (null) IP: locked_inode_to_wb_and_lock_list+0x38/0x440

Re: [PATCH 3/4] phy: rockchip-typec: support DP phy switch

2017-03-08 Thread Chris Zhong
Hi Heiko and Brain On 03/09/2017 09:02 AM, Heiko Stübner wrote: Am Mittwoch, 8. März 2017, 16:39:23 CET schrieb Brian Norris: On Fri, Feb 10, 2017 at 03:44:13PM +0800, Chris Zhong wrote: There are 2 Type-c PHYs in RK3399, but only one DP controller. Hence only one PHY can connect to DP control

[PATCH v2] don't forget to call pd_online_fn when activate policy

2017-03-08 Thread Zhou Chengming
When we activate policy on the request_queue, we will create policy_date for all the existing blkgs of the request_queue, so we should call pd_init_fn() and pd_online_fn() on these newly created policy_data. Signed-off-by: Zhou Chengming --- block/blk-cgroup.c | 6 ++ 1 file changed, 6 inser

Re: [PATCH 6/6] kvm: x86: do not use KVM_REQ_EVENT for APICv interrupt injection

2017-03-08 Thread Wanpeng Li
2016-12-20 0:17 GMT+08:00 Paolo Bonzini : > Since bf9f6ac8d749 ("KVM: Update Posted-Interrupts Descriptor when vCPU > is blocked", 2015-09-18) the posted interrupt descriptor is checked > unconditionally for PIR.ON. Therefore we don't need KVM_REQ_EVENT to > trigger the scan and, if NMIs or SMIs a

Re: [lkp-robot] [x86] ed3ce2a917: BUG:unable_to_handle_kernel

2017-03-08 Thread Fengguang Wu
On Thu, Mar 09, 2017 at 10:13:10AM +0800, Ye Xiaolong wrote: On 03/02, Borislav Petkov wrote: Hi, On Thu, Mar 02, 2017 at 09:09:34AM +0800, kernel test robot wrote: FYI, we noticed the following commit: commit: ed3ce2a9172457ef7dbaa9f964e63dfde2bdcb5f ("x86: Optimize clear_page()") url: htt

Re: [PATCH net] dccp/tcp: fix routing redirect race

2017-03-08 Thread Eric Dumazet
On Thu, 2017-03-09 at 12:15 +1100, Jon Maxwell wrote: > We have seen a few incidents lately where a dst_enty has been freed > with a dangling TCP socket reference (sk->sk_dst_cache) pointing to that > dst_entry. If the conditions/timings are right a crash then ensues when the > freed dst_entry is r

Re: Race condition in ext4 (was Re: 4.11-rc1 acpi stomping ext4 slabs)

2017-03-08 Thread Theodore Ts'o
On Tue, Mar 07, 2017 at 10:40:53PM +0200, Nikolay Borisov wrote: > So this is wrong, the reason why the issues seemed fix is because I > switched my compiler to version 5.4.0. So this manifests only if I'm > using gcc 4.7.4. With the pr_info added here is the output of a boot. So > there are multip

Re: [v2 PATCH 3/3] mmc: sdhci-cadence: Update PHY delay configuration

2017-03-08 Thread Masahiro Yamada
Hi Piotr, 2017-03-07 20:00 GMT+09:00 Piotr Sroka : > Hi Masahiro, > >> -Original Message- >> Sent: 07 March, 2017 9:03 AM >> To: Piotr Sroka >> Subject: Re: [v2 PATCH 3/3] mmc: sdhci-cadence: Update PHY delay >> configuration >> >> Hi Piotr, >> >> 2017-03-06 22:39 GMT+09:00 Piotr Sroka :

Re: [PATCH 1/2] x86/mm/numa: trivial fix on typo and error message

2017-03-08 Thread Wei Yang
Dear masters~ Would you like to share some comments on these two? On Mon, Feb 06, 2017 at 11:35:28PM +0800, Wei Yang wrote: >When allocating pg_data in alloc_node_data(), it will try to allocate from >local node first and then from any node. If it fails at the second trial, >it means there is not

linux-next: Tree for Mar 9

2017-03-08 Thread Stephen Rothwell
Hi all, News: I will not be doing any linux-next releases next week. Changes since 20170308: Non-merge commits (relative to Linus' tree): 2115 2950 files changed, 278892 insertions(+), 31441 deletions(-) I

Re: [PATCH 0/3] mm/fs: get PG_error out of the writeback reporting business

2017-03-08 Thread Theodore Ts'o
On Tue, Mar 07, 2017 at 11:26:22AM +0100, Jan Kara wrote: > On a more general note (DAX is actually fine here), I find the current > practice of clearing page dirty bits on error and reporting it just once > problematic. It keeps the system running but data is lost and possibly > without getting th

Re: kexec regression since 4.9 caused by efi

2017-03-08 Thread Dave Young
On 03/08/17 at 12:16pm, Omar Sandoval wrote: > Hi, everyone, > > Since 4.9, kexec results in the following panic on some of our servers: > > [0.001000] general protection fault: [#1] SMP > [0.001000] Modules linked in: > [0.001000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.11.0

Re: [musl] Re: [PATCH resent] uapi libc compat: allow non-glibc to opt out of uapi definitions

2017-03-08 Thread Rich Felker
On Wed, Mar 08, 2017 at 07:51:29PM -0500, Carlos O'Donell wrote: > On 03/08/2017 07:14 PM, Szabolcs Nagy wrote: > > * Carlos O'Donell [2017-03-08 10:53:00 -0500]: > >> On 11/11/2016 07:08 AM, Felix Janda wrote: > >>> fixes the following compiler errors when is included > >>> after musl : > >>> >

Re: [Xen-devel] [PATCH 0/7] Xen transport for 9pfs frontend driver

2017-03-08 Thread Roger Pau Monné
On Tue, Mar 07, 2017 at 10:27:05AM -0800, Stefano Stabellini wrote: > On Tue, 7 Mar 2017, Roger Pau Monné wrote: > > On Mon, Mar 06, 2017 at 12:00:41PM -0800, Stefano Stabellini wrote: > > > Hi all, > > > > > > This patch series implements a new transport for 9pfs, aimed at Xen > > > systems. > >

[sched] 1827adb11a BUG kmalloc-128 (Not tainted): Poison overwritten

2017-03-08 Thread Fengguang Wu
Hi Ingo, FYI this also shows up in next-20170308 and tip/master 7f27de49 ("Merge branch 'WIP.sched/core'"). The attached reproduce-* script may help, however note that this bug may not show up in every boot. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linu

[RESEND PATCH v3 0/2] Add i2c dt-binding and device node for Mediatek MT2701 Soc

2017-03-08 Thread Jun Gao
This patch series based on v4.11-rc1, include MT2701 i2c dt-binding and device node. changes since v2: - Modify commit message - Revise dt-binding documentation changes since v1: - Modify commit message Dependent on "Add clock and power domain DT nodes for Mediatek MT2701"[1]. [1] http://lists

[RESEND PATCH v3 1/2] dt-bindings: i2c: Add Mediatek MT2701 i2c binding

2017-03-08 Thread Jun Gao
From: Jun Gao Add MT2701 i2c binding to i2c-mt6577.txt and there is no need to modify i2c driver. Signed-off-by: Jun Gao --- .../devicetree/bindings/i2c/i2c-mt6577.txt | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/i2

[RESEND PATCH v3 2/2] arm: dts: Add Mediatek MT2701 i2c device node

2017-03-08 Thread Jun Gao
From: Jun Gao Add MT2701 i2c device node. Signed-off-by: Jun Gao --- arch/arm/boot/dts/mt2701-evb.dts | 42 ++ arch/arm/boot/dts/mt2701.dtsi| 42 ++ 2 files changed, 84 insertions(+) diff --git a/arch/arm/boot/dts

Re: [RFC PATCH 3/3] WIP: PCI: rockchip: add remove() support

2017-03-08 Thread Brian Norris
On Wed, Mar 08, 2017 at 03:37:48PM -0800, Brian Norris wrote: > I haven't quite figured out the right way to invert pci_remap_iospace(). > I guess no one supports this yet? Jeffy Chen pointed out to me that there's a pci_unmap_iospace() as of 4.8. Looks like that should probably do the job. I'll r

Re: [Question] devm_kmalloc() for DMA ?

2017-03-08 Thread Masahiro Yamada
Hi Russell, Lars-Peter, Thanks for your expert comments. 2017-03-09 6:33 GMT+09:00 Lars-Peter Clausen : > On 03/08/2017 10:19 PM, Russell King - ARM Linux wrote: >> On Wed, Mar 08, 2017 at 09:44:17PM +0100, Lars-Peter Clausen wrote: >>> On 03/08/2017 08:59 PM, Russell King - ARM Linux wrote: >>>

Re: [PATCH net-next 0/5] sunvnet: better connection management

2017-03-08 Thread Shannon Nelson
On 3/6/2017 3:15 PM, Shannon Nelson wrote: These patches remove some problems in handling of carrier state with the ldmvsw vswitch, remove an xoff misuse in sunvnet, and add stats for debug and tracking of point-to-point connections between the ldom VMs. Further testing shows a problem in one

Re: [PATCH] mm,hugetlb: compute page_size_log properly

2017-03-08 Thread Anshuman Khandual
On 03/09/2017 01:09 AM, Andi Kleen wrote: >> One example of the problems with extra layers what this patch fixes: >> mmap_pgoff() should never be using SHM_HUGE_* logic. This was >> introduced by: >> >>091d0d55b28 (shm: fix null pointer deref when userspace specifies invalid >> hugepage size)

Re: [PATCH] lib/idr: trivial: Fix typo in file header

2017-03-08 Thread Cao jin
Seems it is missed. CCing more people On 11/30/2016 03:11 PM, Cao jin wrote: > Signed-off-by: Cao jin > --- > lib/idr.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/idr.c b/lib/idr.c > index 6098336df267..69fa487dbfda 100644 > --- a/lib/idr.c > +++ b/lib/idr.c >

Re: [PATCH 00/13] rtc: Add OF device table to I2C drivers that are missing it

2017-03-08 Thread Alexandre Belloni
On 03/03/2017 at 11:29:11 -0300, Javier Martinez Canillas wrote: > Hello, > > This series add OF device ID tables to RTC I2C drivers whose devices are > either used in Device Tree source files or are listed in binding docs as > a compatible string. > > That's done because the plan is to change th

Re: [PATCH net] dccp/tcp: fix routing redirect race

2017-03-08 Thread Jonathan Maxwell
Sorry let me resend in plain text mode. On Thu, Mar 9, 2017 at 1:10 PM, Eric Dumazet wrote: > On Thu, 2017-03-09 at 12:15 +1100, Jon Maxwell wrote: >> We have seen a few incidents lately where a dst_enty has been freed >> with a dangling TCP socket reference (sk->sk_dst_cache) pointing to that >>

Re: [PATCH 1/2] mm/memblock: use NUMA_NO_NODE instead of MAX_NUMNODES as default node_id

2017-03-08 Thread Wei Yang
Hello, everyone, By deeper thinking, I am willing to split these two patches into two patch set, since they are trying to address two different things. The first one [Patch 1] is trying to use NUMA_NO_NODE as the default node_id in memblock_region. Current implementation use MAX_NUMNODES as the

Re: [PATCH v7 06/07] iommu/ipmmu-vmsa: ARM and ARM64 archdata access

2017-03-08 Thread Magnus Damm
Hi Robin, On Wed, Mar 8, 2017 at 9:48 PM, Robin Murphy wrote: > On 07/03/17 03:17, Magnus Damm wrote: >> From: Magnus Damm >> >> Not all architectures have an iommu member in their archdata, so >> use #ifdefs support build with COMPILE_TEST on any architecture. > > I have a feeling I might be re

Re: [PATCH v3 04/09] iommu/ipmmu-vmsa: Make use of IOMMU_OF_DECLARE()

2017-03-08 Thread Magnus Damm
Hi Geert, On Wed, Mar 8, 2017 at 10:52 PM, Geert Uytterhoeven wrote: > Hi Magnus, > > On Wed, Mar 8, 2017 at 12:02 PM, Magnus Damm wrote: >> From: Magnus Damm >> >> Hook up IOMMU_OF_DECLARE() support in case CONFIG_IOMMU_DMA >> is enabled. The only current supported case for 32-bit ARM >> is di

Re: RCU used on incoming CPU before rcu_cpu_starting() called

2017-03-08 Thread Frederic Weisbecker
On Wed, Mar 08, 2017 at 03:41:52PM -0800, Paul E. McKenney wrote: > On Wed, Mar 08, 2017 at 02:16:56PM -0800, Paul E. McKenney wrote: > > Hello! > > > > I am seeing the following splat in rcutorture testing of v4.11-rc1: > > > > [ 30.694013] = > > [ 30.694013] WARN

Re: [PATCH v3 06/09] iommu/ipmmu-vmsa: Write IMCTR twice

2017-03-08 Thread Magnus Damm
Hi Robin, On Wed, Mar 8, 2017 at 9:34 PM, Robin Murphy wrote: > On 08/03/17 11:02, Magnus Damm wrote: >> From: Magnus Damm >> >> Write IMCTR both in the root device and the leaf node. >> >> Signed-off-by: Magnus Damm >> --- >> >> Changes since V2: >> - None >> >> Changes since V1: >> - None

[PATCH V2] cpufreq: schedutil: refactor sugov_next_freq_shared()

2017-03-08 Thread Viresh Kumar
The loop in sugov_next_freq_shared() contains an if block to skip the loop for the current CPU. This turns out to be an unnecessary conditional in the scheduler's hot-path for every CPU in the policy. It would be better to drop the conditional and make the loop treat all the CPUs in the same way.

Re: [PATCH v3 03/09] iommu/ipmmu-vmsa: Enable multi context support

2017-03-08 Thread Magnus Damm
Hi Robin, Thanks for your feedback! On Wed, Mar 8, 2017 at 9:21 PM, Robin Murphy wrote: > On 08/03/17 11:01, Magnus Damm wrote: >> From: Magnus Damm >> >> Add support for up to 8 contexts. Each context is mapped to one >> domain. One domain is assigned one or more slave devices. Contexts >> are

Re: [PATCH 1/3] futex: remove duplicated code

2017-03-08 Thread Rob Landley
On 03/04/2017 07:05 AM, Russell King - ARM Linux wrote: > On Fri, Mar 03, 2017 at 01:27:10PM +0100, Jiri Slaby wrote: >> diff --git a/kernel/futex.c b/kernel/futex.c >> index b687cb22301c..c5ff9850952f 100644 >> --- a/kernel/futex.c >> +++ b/kernel/futex.c >> @@ -1457,6 +1457,42 @@ futex_wake(u32 _

Re: [PATCH v3 09/09] iommu/ipmmu-vmsa: Hook up r8a7795 DT matching code

2017-03-08 Thread Magnus Damm
Hi Geert, On Wed, Mar 8, 2017 at 10:58 PM, Geert Uytterhoeven wrote: > Hi Magnus, > > On Wed, Mar 8, 2017 at 12:02 PM, Magnus Damm wrote: >> From: Magnus Damm >> >> Tie in r8a7795 features and update the IOMMU_OF_DECLARE >> compat string to include the updated compat string. >> >> TODO: >> - C

Re: [PATCH v3 01/09] iommu/ipmmu-vmsa: Introduce features, break out alias

2017-03-08 Thread Magnus Damm
Hi Robin, On Wed, Mar 8, 2017 at 8:53 PM, Robin Murphy wrote: > Hi Magnus, > > On 08/03/17 11:01, Magnus Damm wrote: >> From: Magnus Damm >> >> Introduce struct ipmmu_features to track various hardware >> and software implementation changes inside the driver for >> different kinds of IPMMU hardw

"mm: fix lazyfree BUG_ON check in try_to_unmap_one()" build error

2017-03-08 Thread Sergey Senozhatsky
Hello Minchan, /* I can't https://marc.info/?l=linux-kernel&m=148886631303107 thread in my mail box for some reason so the Reply-To message-id may be wrong. */ commit "mm: fix lazyfree BUG_ON check in try_to_unmap_one()" (mmotm fd07630cbf59bead90046dd3e5cfd891e58e6987) if (VM_WARN_

Re: [PATCH v3 02/09] iommu/ipmmu-vmsa: Add optional root device feature

2017-03-08 Thread Magnus Damm
Hi Geert, On Wed, Mar 8, 2017 at 10:47 PM, Geert Uytterhoeven wrote: > Hi Magnus, > > On Wed, Mar 8, 2017 at 12:01 PM, Magnus Damm wrote: >> From: Magnus Damm >> >> Add root device handling to the IPMMU driver by allowing certain >> DT compat strings to enable has_cache_leaf_nodes that in turn

Re: Compat 32-bit syscall entry from 64-bit task!?

2017-03-08 Thread Andrew Lutomirski
On Wed, Mar 8, 2017 at 3:41 PM, Dmitry V. Levin wrote: > Hi, > > On Thu, Jan 26, 2012 at 07:03:43PM +0100, Denys Vlasenko wrote: >> Hi Linus, >> >> On Thu, Jan 26, 2012 at 4:47 AM, Linus Torvalds >> wrote: >> >> Please look at strace source, get_scno() function, where >> >> it reads syscall no an

Re: [PATCH net] dccp/tcp: fix routing redirect race

2017-03-08 Thread Eric Dumazet
On Thu, 2017-03-09 at 14:42 +1100, Jonathan Maxwell wrote: > Sorry let me resend in plain text mode. > > On Thu, Mar 9, 2017 at 1:10 PM, Eric Dumazet wrote: > > On Thu, 2017-03-09 at 12:15 +1100, Jon Maxwell wrote: > >> We have seen a few incidents lately where a dst_enty has been freed > >> with

Re: [PATCH net] dccp/tcp: fix routing redirect race

2017-03-08 Thread Jonathan Maxwell
On Thu, Mar 9, 2017 at 3:40 PM, Eric Dumazet wrote: > On Thu, 2017-03-09 at 14:42 +1100, Jonathan Maxwell wrote: >> Sorry let me resend in plain text mode. >> >> On Thu, Mar 9, 2017 at 1:10 PM, Eric Dumazet wrote: >> > On Thu, 2017-03-09 at 12:15 +1100, Jon Maxwell wrote: >> >> We have seen a few

Re: [PATCH 1/3] futex: remove duplicated code

2017-03-08 Thread H. Peter Anvin
,Thomas Gleixner ,Ingo Molnar ,Chris Zankel ,Max Filippov ,Arnd Bergmann ,x...@kernel.org,linux-al...@vger.kernel.org,linux-snps-...@lists.infradead.org,linux-arm-ker...@lists.infradead.org,linux-hexa...@vger.kernel.org,linux-i...@vger.kernel.org,linux-m...@linux-mips.org,openr...@lists.librecor

Re: RCU used on incoming CPU before rcu_cpu_starting() called

2017-03-08 Thread Paul E. McKenney
On Thu, Mar 09, 2017 at 04:55:29AM +0100, Frederic Weisbecker wrote: > On Wed, Mar 08, 2017 at 03:41:52PM -0800, Paul E. McKenney wrote: > > On Wed, Mar 08, 2017 at 02:16:56PM -0800, Paul E. McKenney wrote: > > > Hello! > > > > > > I am seeing the following splat in rcutorture testing of v4.11-rc1

Re: [PATCH] zram: set physical queue limits to avoid array out of bounds accesses

2017-03-08 Thread Minchan Kim
On Wed, Mar 08, 2017 at 08:58:02AM +0100, Johannes Thumshirn wrote: > On 03/08/2017 06:11 AM, Minchan Kim wrote: > > And could you test this patch? It avoids split bio so no need new bio > > allocations and makes zram code simple. > > > > From f778d7564d5cd772f25bb181329362c29548a257 Mon Sep 17 00

Re: [net/bpf] 3051bf36c2 BUG: unable to handle kernel paging request at 0000a7cf

2017-03-08 Thread Kees Cook
On Wed, Mar 8, 2017 at 3:55 PM, Laura Abbott wrote: > On 03/08/2017 02:36 PM, Kees Cook wrote: >> On Wed, Mar 8, 2017 at 2:27 PM, Daniel Borkmann wrote: >>> [ 28.474232] rodata_test: test data was not read only >>> [...] >> >> In my tests so far, I've never been able to get rodata_test to fail

[PATCH] powerpc: asm: convert directive .llong to .8byte

2017-03-08 Thread Tobin C. Harding
.llong is an undocumented PPC specific directive. The generic equivalent is .quad, but even better (because it's self describing) is .8byte. Convert directives .llong -> .8byte Signed-off-by: Tobin C. Harding --- Fixes: issue #33 (github) Patch is not tested. Has been built on Power8 scripts/

Re: [PATCH] platform/x86: dell-laptop: Handle return error form dell_get_intensity.

2017-03-08 Thread Arvind Yadav
Hi, Yes, you are right. I will handle return error correctly. Thanks -Arvind On Wednesday 08 March 2017 06:24 PM, Pali Rohár wrote: Hi! On Wednesday 08 March 2017 17:52:27 Arvind Yadav wrote: Here, dell_get_intensity can return an error. Right. That is truth and we should check for errors.

[PATCH v2] ARM: socfpga: updates for socfpga_defconfig

2017-03-08 Thread ho . jia . jie
From: Jia Jie Ho This patch enables Altera TSE support in socfpga_defconfig Signed-off-by: Jia Jie Ho --- v2: * Adding the TSE support as a module for Arria10 arch/arm/configs/socfpga_defconfig |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/configs/socfpga_

Re: [PATCH] pinctrl: samsung: fix segfault when using external interrupts on s3c24xx

2017-03-08 Thread Tomasz Figa
2017-03-09 1:34 GMT+09:00 Krzysztof Kozlowski : > On Mon, Mar 06, 2017 at 09:15:16AM -0400, Sergio Prado wrote: >> Hi Krzysztof, >> >> > > This is a regression from commit >> > > 8b1bd11c1f8f529057369c5b3702d13fd24e2765. >> > >> > Checkpatch should complain here about commit format. >> > >> > > >>

[PATCH v2] platform/x86: dell-laptop: Handle return error form dell_get_intensity.

2017-03-08 Thread Arvind Yadav
Here, This patch is to handle a return error from dell_get_intensity. This change is done using Coccinelle. Signed-off-by: Arvind Yadav --- drivers/platform/x86/dell-laptop.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/dell

Re: [PATCH net-next 0/5] sunvnet: better connection management

2017-03-08 Thread David Miller
From: Shannon Nelson Date: Wed, 8 Mar 2017 15:04:45 -0800 > On 3/6/2017 3:15 PM, Shannon Nelson wrote: >> These patches remove some problems in handling of carrier state >> with the ldmvsw vswitch, remove an xoff misuse in sunvnet, and >> add stats for debug and tracking of point-to-point connec

Re: "mm: fix lazyfree BUG_ON check in try_to_unmap_one()" build error

2017-03-08 Thread Minchan Kim
Hi Sergey, On Thu, Mar 09, 2017 at 01:29:08PM +0900, Sergey Senozhatsky wrote: > Hello Minchan, > > /* I can't https://marc.info/?l=linux-kernel&m=148886631303107 thread >in my mail box for some reason so the Reply-To message-id may be wrong. */ > > > > commit "mm: fix lazyfree BUG_ON chec

<    3   4   5   6   7   8   9   >