Re: [PATCH] drivers: input: joystick: Add PSX (Play Station 1/2) pad with SPI driver.

2017-04-25 Thread kbuild test robot
-2-pad-with-SPI-driver/20170425-182329 base: https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next config: mn10300-allyesconfig (attached as .config) compiler: am33_2.0-linux-gcc (GCC) 6.2.0 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin

Re: linux-next: build failure after merge of the nvdimm tree

2017-04-25 Thread Dan Williams
On Mon, Apr 24, 2017 at 1:39 AM, Al Viro wrote: > On Mon, Apr 24, 2017 at 04:11:30PM +1000, Stephen Rothwell wrote: >> Hi Dan, >> >> After merging the nvdimm tree, today's linux-next build (x86_64 >> allmodconfig) failed like this: >> >> drivers/nvdimm/x86.c: In function

Re: [RESEND][PATCH V2 4/4] regulator: Add ROHM BD9571MWV-M PMIC regulator driver

2017-04-25 Thread Mark Brown
On Tue, Apr 25, 2017 at 08:32:10PM +0200, Marek Vasut wrote: > Add driver for the regulator block in the ROHM BD9571MWV-W MFD PMIC. > This block supports three voltage monitors, VD18, VD25, VD33 for the > 1V8, 2V5, 3V3 voltage rails and a single voltage regulator for the > DVFS rail. Please do

Re: [PATCH] libnvdimm: fix phys_addr for nvdimm_clear_poison

2017-04-25 Thread Dan Williams
On Tue, Apr 25, 2017 at 3:22 PM, Vishal Verma wrote: > On 04/25, Kani, Toshimitsu wrote: >> On Tue, 2017-04-25 at 15:44 -0600, Vishal Verma wrote: >> > On 04/25, Toshi Kani wrote: > [...] >> > >> > Should we be using nsio->res.start here or nsio->addr ? >> >> nsio->addr

[PATCH] checkpatch: Improve k.alloc with multiplication and sizeof test

2017-04-25 Thread Joe Perches
Find multi-line uses of k.alloc by using the $stat variable and not the $line variable. This can still --fix only the single line variant though. Signed-off-by: Joe Perches --- scripts/checkpatch.pl | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff

[PATCH v3 0/2] usb: Check for DMA capable buffer sanity

2017-04-25 Thread Florian Fainelli
Changes in v3: - added check in usb_gadget_map_request_by_dev (Felipe), new patch - improved commit message description (Clemens) - added additiona checks for urb->setup_packet (Alan) Changes in v2: - moved the check from usb_start_wait_urb() to usb_hcd_map_urb_for_dma() Florian Fainelli (2):

linux-next: manual merge of the net-next tree with the kbuild tree

2017-04-25 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: include/uapi/linux/Kbuild between commit: 65017bab8a9e ("uapi: export all headers under uapi directories") from the kbuild tree and commit: 0b2e66448ba2 ("VSOCK: Add vsockmon device") from the net-next tree. I

RE: [PATCH] acpi: fix acpi_get_table() leak / acpi-sysfs denial of service

2017-04-25 Thread Zheng, Lv
Hi, > From: linux-acpi-ow...@vger.kernel.org > [mailto:linux-acpi-ow...@vger.kernel.org] On Behalf Of Dan > Williams > Subject: [PATCH] acpi: fix acpi_get_table() leak / acpi-sysfs denial of > service > > Reading an ACPI table through the /sys/firmware/acpi/tables interface > more than 65,536

Re: [PATCH 1/2] pinctrl: rockchip: remove unneeded (void *) casts in of_match_table

2017-04-25 Thread Heiko Stübner
Hi, Am Mittwoch, 26. April 2017, 06:34:22 CEST schrieb Masahiro Yamada: > of_device_id::data is an opaque pointer. No explicit cast is needed. > > Signed-off-by: Masahiro Yamada > --- > > drivers/pinctrl/pinctrl-rockchip.c | 20 ++-- > 1 file

[PATCH 0/3] ARM/ARM64: silence large module first time allocation

2017-04-25 Thread Florian Fainelli
With kernels built with CONFIG_ARM{,64}_MODULES_PLTS=y, the first allocation done from module space will fail, produce a general OOM allocation and also a vmap warning. The second allocation from vmalloc space may or may not be successful, but is actually the one we are interested about in these

Re: [PATCH] led: ledtrig-transient: replace timer_list with hrtimer

2017-04-25 Thread Pavel Machek
On Mon 2017-04-24 20:05:59, David Lin wrote: > Hi Jacek, > > On Mon, Apr 24, 2017 at 12:59 PM, Jacek Anaszewski > wrote: > > > > Hi David, > > > > Thanks for the patch. > > > > Unfortunately we cannot switch to using hr timers just like that > > without introducing

[PATCH v2 1/2] x86, asm: Add suffix macro for GEN_*_RMWcc()

2017-04-25 Thread Kees Cook
The coming x86 refcount protection needs to be able to add trailing instructions to the GEN_*_RMWcc() operations. This extracts the difference between the goto/non-goto cases so the helper macros can be defined outside the #ifdef cases. Additionally adds argument naming to the resulting asm for

[PATCH v2 2/2] x86, refcount: Implement fast refcount overflow protection

2017-04-25 Thread Kees Cook
This protection is a modified version of the x86 PAX_REFCOUNT implementation from PaX/grsecurity. This speeds up the refcount_t API by duplicating the existing atomic_t implementation with a single instruction added to detect if the refcount has wrapped past INT_MAX (or below 0) resulting in a

[PATCH v2 0/2] x86, refcount: Implement fast refcount overflow

2017-04-25 Thread Kees Cook
This protection is a modified version of the x86 PAX_REFCOUNT implementation from PaX/grsecurity. This speeds up the refcount_t API by duplicating the existing atomic_t implementation with a single instruction added to detect if the refcount has wrapped past INT_MAX (or below 0) resulting in a

Re: [PATCH v2 2/2] ARM: dts: Add the ethernet and ethernet PHY to the cygnus core DT.

2017-04-25 Thread Florian Fainelli
On 04/25/2017 04:53 PM, Eric Anholt wrote: > Cygnus has a single AMAC controller connected to the B53 switch with 2 > PHYs. On the BCM911360_EP platform, those two PHYs are connected to > the external ethernet jacks. > > Signed-off-by: Eric Anholt > Reviewed-by: Florian

Re: [tip:x86/boot] x86/boot/e820: Basic cleanup of e820.c

2017-04-25 Thread Yinghai Lu
On Tue, Apr 11, 2017 at 12:37 AM, tip-bot for Ingo Molnar wrote: > Commit-ID: 640e1b38b00550990cecd809021cd37716e45922 > Gitweb: http://git.kernel.org/tip/640e1b38b00550990cecd809021cd37716e45922 > Author: Ingo Molnar > AuthorDate: Sat, 28 Jan 2017

[PATCH v4 2/2] of: Add unit tests for applying overlays

2017-04-25 Thread frowand . list
From: Frank Rowand Existing overlay unit tests examine individual pieces of the overlay code. The new tests target the entire process of applying an overlay. Signed-off-by: Frank Rowand --- There are checkpatch warnings. I have reviewed them and

[PATCH v4 1/2] of: per-file dtc compiler flags

2017-04-25 Thread frowand . list
From: Frank Rowand The dtc compiler version that adds initial support was available in 4.11-rc1. Add the ability to set an additional dtc compiler flag is needed by overlays. Signed-off-by: Frank Rowand --- scripts/Makefile.lib | 2 ++ 1 file

Re: [PATCH RFC] ptr_ring: add ptr_ring_unconsume

2017-04-25 Thread Jason Wang
On 2017年04月25日 23:35, Michael S. Tsirkin wrote: On Tue, Apr 25, 2017 at 12:07:01PM +0800, Jason Wang wrote: On 2017年04月24日 20:00, Michael S. Tsirkin wrote: On Mon, Apr 24, 2017 at 07:54:18PM +0800, Jason Wang wrote: On 2017年04月24日 07:28, Michael S. Tsirkin wrote: On Tue, Apr 18, 2017 at

[PATCH v4 0/2] of: Add unit tests for applying overlays

2017-04-25 Thread frowand . list
From: Frank Rowand Existing overlay unit tests examine individual pieces of the overlay code. The new tests target the entire process of applying an overlay. Changes from v3: - make subject line of patch 1 more generic Changes from v2: - of_private.h: move

Re: [PATCH v2 1/2] of: support dtc compiler flags for overlays

2017-04-25 Thread Frank Rowand
On 04/25/17 15:04, Masahiro Yamada wrote: > 2017-04-25 8:05 GMT+09:00 : >> From: Frank Rowand >> >> The dtc compiler version that adds initial support was available >> in 4.11-rc1. Add the ability to set the dtc compiler flags needed >> by

Re: [PATCH v2 2/2] x86, refcount: Implement fast refcount overflow protection

2017-04-25 Thread Jann Horn
On Wed, Apr 26, 2017 at 12:56 AM, Kees Cook wrote: > This protection is a modified version of the x86 PAX_REFCOUNT > implementation from PaX/grsecurity. This speeds up the refcount_t API by > duplicating the existing atomic_t implementation with a single instruction > added

Re: [PATCH] mm/madvise: Enable (soft|hard) offline of HugeTLB pages at PGD level

2017-04-25 Thread kbuild test robot
-hard-offline-of-HugeTLB-pages-at-PGD-level/20170425-224016 config: x86_64-kexec (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): mm/

Re: [PATCH v2 1/2] of: support dtc compiler flags for overlays

2017-04-25 Thread Masahiro Yamada
2017-04-25 8:05 GMT+09:00 : > From: Frank Rowand > > The dtc compiler version that adds initial support was available > in 4.11-rc1. Add the ability to set the dtc compiler flags needed > by overlays. > > Signed-off-by: Frank Rowand

Re: [PATCH -mm] mm, swap: Fix swap space leak in error path of swap_free_entries()

2017-04-25 Thread Tim Chen
On Tue, 2017-04-25 at 14:37 -0700, Andrew Morton wrote: > On Fri, 21 Apr 2017 20:47:39 +0800 "Huang, Ying" wrote: > > > > > From: Huang Ying > > > > In swapcache_free_entries(), if swap_info_get_cont() return NULL, > > something wrong occurs for the

Re: [PATCH] drivers: input: joystick: Add PSX (Play Station 1/2) pad with SPI driver.

2017-04-25 Thread kbuild test robot
-2-pad-with-SPI-driver/20170425-182329 base: https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next config: i386-allmodconfig (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=i386

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

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

[PATCH v2 2/2] ARM: dts: Add the ethernet and ethernet PHY to the cygnus core DT.

2017-04-25 Thread Eric Anholt
Cygnus has a single AMAC controller connected to the B53 switch with 2 PHYs. On the BCM911360_EP platform, those two PHYs are connected to the external ethernet jacks. Signed-off-by: Eric Anholt Reviewed-by: Florian Fainelli --- v2: Call the node

[PATCH v2 1/2] net: dsa: b53: Add compatible strings for the Cygnus-family BCM11360.

2017-04-25 Thread Eric Anholt
Cygnus is a small family of SoCs, of which we currently have devicetree for BCM11360 and BCM58300. The 11360's B53 is mostly the same as 58xx, just requiring a tiny bit of setup that was previously missing. Signed-off-by: Eric Anholt Reviewed-by: Florian Fainelli

[PATCH v4 1/4] zram: introduce zram_entry to prepare dedup functionality

2017-04-25 Thread js1304
From: Joonsoo Kim Following patch will implement deduplication functionality in the zram and it requires an indirection layer to manage the life cycle of zsmalloc handle. To prepare that, this patch introduces zram_entry which can be used to manage the life-cycle of

RE: [PATCH v6 4/5] i2c: aspeed: added driver for Aspeed I2C

2017-04-25 Thread Ryan Chen
> Thanks Ryan. Can you shed some light on the meaning of the high-speed bit as > well please ? > > About ASPEED_I2CD_M_HIGH_SPEED_EN, it is support for I2C specification "High > speed transfer". And also device need support it. > If you just speed up the I2C bus clock, you don’t have to enable

[PATCH v4 4/4] zram: compare all the entries with same checksum for deduplication

2017-04-25 Thread js1304
From: Joonsoo Kim Until now, we compare just one entry with same checksum when checking duplication since it is the simplest way to implement. However, for the completeness, checking all the entries is better so this patch implement to compare all the entries with same

Re: [PATCH v3 3/4] zram: make deduplication feature optional

2017-04-25 Thread Joonsoo Kim
2017-04-25 19:24 GMT+09:00 Sergey Senozhatsky : > Hello, > > On (04/21/17 10:14), js1...@gmail.com wrote: > [..] >> int zram_dedup_init(struct zram *zram, size_t num_pages); >> void zram_dedup_fini(struct zram *zram); >> +#else >> + >> +static inline u64

Re: [PATCH] x86: kvm: Avoid guest page table walk when gpa_available is set

2017-04-25 Thread Brijesh Singh
I also wanted to avoid adding yet another variable but we can't depend on cr2 parameters passed into x86_emulate_instruction(). The x86_emulate_instruction() function is called from two places: 1) handling the page-fault. pf_interception [svm.c] kvm_mmu_page_fault [mmu.c]

Re: [PATCH] FS-Cache: print hexadecimal value for special cookies type

2017-04-25 Thread Andy Shevchenko
On Wed, Apr 26, 2017 at 12:37 AM, Jérémy Lefaure wrote: > On Tue, 25 Apr 2017 00:47:41 +0300 > Andy Shevchenko wrote: > Ok I get it. But changing the format can break the userland tool > anyway, can't it ? For example if a userland tool

[PATCH 2/2] mm: Silence vmap() allocation failures based on caller gfp_flags

2017-04-25 Thread Florian Fainelli
If the caller has set __GFP_NOWARN don't print the following message: vmap allocation for size 15736832 failed: use vmalloc= to increase size. This can happen with the ARM/Linux module loader built with CONFIG_ARM_MODULE_PLTS=y which does a first attempt at loading a large module from module

[PATCH 1/3] mm: Silence vmap() allocation failures based on caller gfp_flags

2017-04-25 Thread Florian Fainelli
If the caller has set __GFP_NOWARN don't print the following message: vmap allocation for size 15736832 failed: use vmalloc= to increase size. This can happen with the ARM/Linux module loader built with CONFIG_ARM_MODULE_PLTS=y which does a first attempt at loading a large module from module

[PATCH 1/2] ARM: Silence first allocation with CONFIG_ARM_MODULE_PLTS=y

2017-04-25 Thread Florian Fainelli
When CONFIG_ARM_MODULE_PLTS is enabled, the first allocation using the module space fails, because the module is too big, and then the module allocation is attempted from vmalloc space. Silence the first allocation failure in that case by setting __GFP_NOWARN. Signed-off-by: Florian Fainelli

[PATCH 1/2] ARM: Silence non PLT allocation with CONFIG_ARM_MODULE_PLTS=y

2017-04-25 Thread Florian Fainelli
When CONFIG_ARM_MODULE_PLTS is enabled, the first allocation using the module space fails, because the module is too big, and then the module allocation is attempted from vmalloc space. Silence the first allocation failure in that case, since that scares people out. Signed-off-by: Florian

[PATCH v2] kbuild: clang: add -no-integrated-as to KBUILD_[AC]FLAGS

2017-04-25 Thread Matthias Kaehlcke
From: Michael Davidson The Linux Kernel relies on GCC's acceptance of inline assembly as an opaque object which will not have any validation performed on the content. The current behaviour in LLVM is to perform validation of the contents by means of parsing the input if the MC

Re: [PATCH 2/2] dax: fix data corruption due to stale mmap reads

2017-04-25 Thread Ross Zwisler
On Tue, Apr 25, 2017 at 01:10:43PM +0200, Jan Kara wrote: <> > Hum, but now thinking more about it I have hard time figuring out why write > vs fault cannot actually still race: > > CPU1 - write(2) CPU2 - read fault > >

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

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

[PATCH 1/2] sched/fair: Use task_groups instead of leaf_cfs_rq_list to walk all cfs_rqs

2017-04-25 Thread Tejun Heo
Currently, rq->leaf_cfs_rq_list is a traversal ordered list of all live cfs_rqs which have ever been active on the CPU; unfortunately, this makes update_blocked_averages() O(total number of CPU cgroups) which isn't scalable at all. The next patch will make rq->leaf_cfs_rq_list only contain the

[PATCH v4 3/4] zram: make deduplication feature optional

2017-04-25 Thread js1304
From: Joonsoo Kim Benefit of deduplication is dependent on the workload so it's not preferable to always enable. Therefore, make it optional in Kconfig and device param. Default is 'off'. This option will be beneficial for users who use the zram as blockdev and stores

[PATCH v4 2/4] zram: implement deduplication in zram

2017-04-25 Thread js1304
From: Joonsoo Kim This patch implements deduplication feature in zram. The purpose of this work is naturally to save amount of memory usage by zram. Android is one of the biggest users to use zram as swap and it's really important to save amount of memory usage. There is

[PATCH v4 0/4] zram: implement deduplication in zram

2017-04-25 Thread js1304
From: Joonsoo Kim Changes from v3 o fix module build problem o make zram_dedup_enabled() statically return false if CONFIG_ZRAM_DEDUP=n Changes from v2 o rebase to latest zram code o manage alloc/free of the zram_entry in zram_drv.c o remove useless RB_CLEAR_NODE o set

[PATCH] drivers:block:mtip32xx:mtip32xx:change the order of null-pointer dereference validation

2017-04-25 Thread Heloise
Signed-off-by: Heloise mtip_async_complete() uses the variable port 'port->dd'at the begining, then validates null-pointer dereference of port 'unlikely(!port)'. Change the order of validation. --- drivers/block/mtip32xx/mtip32xx.c | 5 - 1 file changed, 4 insertions(+), 1

Re: [PATCH v3 04/29] x86: assembly, use ENDPROC for functions

2017-04-25 Thread Josh Poimboeuf
On Fri, Apr 21, 2017 at 04:12:40PM +0200, Jiri Slaby wrote: > Somewhere END was used to end a function. It is not intended to be used > for functions, because it does not mark the actual symbols as functions. > Use ENDPROC in such cases which does the right job. > > Signed-off-by: Jiri Slaby

Re: [v10, 2/2] Documentation/ABI: Add ABI information for QCOM socinfo driver

2017-04-25 Thread Bjorn Andersson
On Tue 25 Apr 10:13 PDT 2017, Rob Herring wrote: > On Mon, Apr 24, 2017 at 6:05 PM, Bjorn Andersson > wrote: > > On Mon 24 Apr 09:27 PDT 2017, Rob Herring wrote: [..] > >> Splitting things between common and private seems like a good direction. > >> > > > > But the

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

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

[2/2] sched/fair: Fix O(# total cgroups) in load balance path

2017-04-25 Thread Tejun Heo
Currently, rq->leaf_cfs_rq_list is a traversal ordered list of all live cfs_rqs which have ever been active on the CPU; unfortunately, this makes update_blocked_averages() O(# total cgroups) which isn't scalable at all. This shows up as a small CPU consumption and scheduling latency increase in

Re: [PATCH v2 2/2] ARM: dts: Add the ethernet and ethernet PHY to the cygnus core DT.

2017-04-25 Thread Andrew Lunn
> + eth0: ethernet@18042000 { > + compatible = "brcm,amac"; > + reg = <0x18042000 0x1000>, > + <0x1811 0x1000>; > + reg-names = "amac_base", "idm_base"; > + interrupts = ; > +

Re: [v6 PATCH 02/21] x86/mpx: Do not use SIB index if index points to R/ESP

2017-04-25 Thread Ricardo Neri
Hi Boris, I am sorry I missed your feedback earlier. Thanks for commenting! On Tue, 2017-04-11 at 13:31 +0200, Borislav Petkov wrote: > On Tue, Mar 07, 2017 at 04:32:35PM -0800, Ricardo Neri wrote: > > Section 2.2.1.2 of the Intel 64 and IA-32 Architectures Software > > Developer's Manual volume

Re: [v6 PATCH 01/21] x86/mpx: Use signed variables to compute effective addresses

2017-04-25 Thread Ricardo Neri
On Tue, 2017-04-11 at 23:56 +0200, Borislav Petkov wrote: > On Tue, Mar 07, 2017 at 04:32:34PM -0800, Ricardo Neri wrote: > > Even though memory addresses are unsigned. The operands used to compute the > > ... unsigned, the operands ... Oops! I will correct.

Re: [PATCH 0/3] ARM/ARM64: silence large module first time allocation

2017-04-25 Thread Florian Fainelli
On 04/25/2017 03:33 PM, Florian Fainelli wrote: > With kernels built with CONFIG_ARM{,64}_MODULES_PLTS=y, the first allocation > done from module space will fail, produce a general OOM allocation and also a > vmap warning. The second allocation from vmalloc space may or may not be > successful,

[PATCH 2/3] ARM: Silence first allocation with CONFIG_ARM_MODULE_PLTS=y

2017-04-25 Thread Florian Fainelli
When CONFIG_ARM_MODULE_PLTS is enabled, the first allocation using the module space fails, because the module is too big, and then the module allocation is attempted from vmalloc space. Silence the first allocation failure in that case by setting __GFP_NOWARN. Signed-off-by: Florian Fainelli

Re: TREE_SRCU slows hotplug by factor ~16

2017-04-25 Thread Paul E. McKenney
On Mon, Apr 24, 2017 at 09:24:42AM -0700, Paul E. McKenney wrote: > On Mon, Apr 24, 2017 at 09:35:03AM +0200, Mike Galbraith wrote: > > On Sun, 2017-04-23 at 23:22 -0700, Paul E. McKenney wrote: > > > > > Could you please collect an ftrace (or whatever) showing the timestamp > > > sequence of

[PATCH 3/3] arm64: Silence first allocation with CONFIG_ARM64_MODULE_PLTS=y

2017-04-25 Thread Florian Fainelli
When CONFIG_ARM64_MODULE_PLTS is enabled, the first allocation using the module space fails, because the module is too big, and then the module allocation is attempted from vmalloc space. Silence the first allocation failure in that case by setting __GFP_NOWARN. Signed-off-by: Florian Fainelli

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

2017-04-25 Thread Toshi Kani
The following BUG was observed when nd_pmem_notify() was called for a BTT device. The use of a pmem_device pointer is not valid with BTT. BUG: unable to handle kernel NULL pointer dereference at 0030 IP: nd_pmem_notify+0x30/0xf0 [nd_pmem] Call Trace: nd_device_notify+0x40/0x50

[PATCH v3 2/2] usb: udc: core: Error if req->buf is either from vmalloc or stack

2017-04-25 Thread Florian Fainelli
Check that req->buf is a valid DMA capable address, produce a warning and return an error if it's either coming from vmalloc space or is an on stack buffer. Signed-off-by: Florian Fainelli --- drivers/usb/gadget/udc/core.c | 9 + 1 file changed, 9 insertions(+)

Re: [resend PATCH v2 00/33] dax: introduce dax_operations

2017-04-25 Thread Dan Williams
On Fri, Apr 21, 2017 at 6:06 PM, Dan Williams wrote: > [ adding akpm, sfr, and jens ] > > I applied this series and pushed it out for the nvdimm.git branch that > gets auto pulled into -next. The set is still awaiting acks from > device-mapper, ext4, xfs, and vfs (for

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

2017-04-25 Thread Dan Williams
On Tue, Apr 25, 2017 at 4:04 PM, Toshi Kani wrote: > The following BUG was observed when nd_pmem_notify() was called > for a BTT device. The use of a pmem_device pointer is not valid > with BTT. > > BUG: unable to handle kernel NULL pointer dereference at 0030 >

Re: [PATCH 4/5] trace-cmd: fix argument parsing minor BUG

2017-04-25 Thread Steven Rostedt
On Sun, 23 Apr 2017 12:22:57 +0200 Federico Vaga wrote: > For some reason the list command does not use anymore `getopt()` > to parse the arguments, instead it uses a custum implementation. > > During this change [5da0eff trace-cmd: Add regex for listing of events] >

Re: [PATCH] drivers: input: joystick: Add PSX (Play Station 1/2) pad with SPI driver.

2017-04-25 Thread AZO
please drop us a note to > help improve the system] > > url: > https://github.com/0day-ci/linux/commits/AZO/drivers-input-joystick-Add-PSX-Play-Station-1-2-pad-with-SPI-driver/20170425-182329 > base: https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next > config:

[PATCH v3 1/2] usb: core: Check URB setup_packet and transfer_buffer sanity

2017-04-25 Thread Florian Fainelli
Update usb_hcd_map_urb_for_dma() to check for an URB's setup_packet and transfer_buffer sanity. We first check that urb->setup_packet is neither coming from vmalloc space nor is an on stack buffer, and if that's the case, produce a warning and return an error. For urb->transfer_buffer there is an

ipsec doesn't route TCP with 4.11 kernel

2017-04-25 Thread Don Bowman
I'm not sure how to describe this. 4.11rc2 worked, after that, no. My ipsec tunnel comes up ok. ICMP works. UDP works. But TCP, the sender [which is the ipsec client] does not reach the destination. Its not a routing rule issue (since ICMP/UDP work). Its not a traffic selector just selecting

Re: [PATCH] x86/refcount: Implement fast refcount_t handling

2017-04-25 Thread PaX Team
On 25 Apr 2017 at 9:39, Kees Cook wrote: > On Tue, Apr 25, 2017 at 4:26 AM, PaX Team wrote: > > INT_MAX threads would be needed when the leaking path is locked so > > that it can only be exercised once and you'll need to get normal > > (balanced) paths preempted just after

Re: [PATCH v2 0/2] module: Add module name to modinfo

2017-04-25 Thread Jessica Yu
+++ Kees Cook [21/04/17 15:35 -0700]: The mod structure is accessed for the "name" field prior to validating sanity in check_modstruct_version(). This becomes very obvious once struct layout randomization is happening, so instead add the module name to modinfo and use that until the mod struct

Re: [PATCH v4 2/4] zram: implement deduplication in zram

2017-04-25 Thread Sergey Senozhatsky
On (04/26/17 09:52), js1...@gmail.com wrote: [..] > > Elapsed time: out/host: 88 s > mm_stat: 8834420736 3658184579 3834208256 0 3834208256 32889 0 0 0 > > > Elapsed time: out/host: 100 s > mm_stat: 8832929792 3657329322 2832015360 0 2832015360 32609 0 952568877 > 80880336 > > It shows

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

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

Re: [PATCH] iio: tsl2583: add runtime power management support

2017-04-25 Thread Jonathan Cameron
On 25/04/17 09:06, Brian Masney wrote: > This patch adds runtime power management support to the tsl2583 driver. > The device is powered off after two seconds of inactivity. Verified that > the driver still functions correctly using a TSL2581 hooked up to a > Raspberry Pi 2. > > Signed-off-by:

RE: [PATCH -next] ASoC: Intel: Skylake: Fix to use list_for_each_safe() when delete items

2017-04-25 Thread weiyongjun (A)
> -Original Message- > From: Vinod Koul [mailto:vinod.k...@intel.com] > Sent: Wednesday, April 26, 2017 1:38 PM > To: weiyongjun (A) > Cc: Wei Yongjun ; Liam Girdwood > ; Mark Brown ; Jaroslav > Kysela

Re: [PATCH v4 2/4] zram: implement deduplication in zram

2017-04-25 Thread Joonsoo Kim
On Wed, Apr 26, 2017 at 11:14:52AM +0900, Sergey Senozhatsky wrote: > Hello, > > On (04/26/17 09:52), js1...@gmail.com wrote: > [..] > > ret = scnprintf(buf, PAGE_SIZE, > > - "%8llu %8llu %8llu %8lu %8ld %8llu %8lu\n", > > + "%8llu %8llu %8llu %8lu %8ld

Re: [PATCH v4 2/4] zram: implement deduplication in zram

2017-04-25 Thread Sergey Senozhatsky
On (04/26/17 09:52), js1...@gmail.com wrote: [..] > struct zram_entry { > + struct rb_node rb_node; > + u32 len; > + u32 checksum; > + unsigned long refcount; use refcount_t? what do you think? -ss

Re: [PATCH] clk: sunxi-ng: Fix dependency on sunxi_gate

2017-04-25 Thread Chen-Yu Tsai
Hi, Subject should say CCU_GATE, not sunxi_gate, which doesn't exist. On Wed, Apr 26, 2017 at 1:12 AM, Corentin Labbe wrote: > When CONFIG_SUNXI_CCU is set but no other SUNXI_CCU is selected i got > the following build error: > drivers/built-in.o: In function

[PATCH] Coccinelle: api: Add offset_in_page.cocci

2017-04-25 Thread Vaishali Thakkar
Use of offset_in_page is preferable instead of open coding. This patch adds coccinelle script for suggesting the use of macro offset_in_page. Signed-off-by: Vaishali Thakkar --- scripts/coccinelle/api/offset_in_page.cocci | 77 + 1 file

Re: [PATCH v2 1/2] mm: Uncharge poisoned pages

2017-04-25 Thread Balbir Singh
On Tue, 2017-04-25 at 16:27 +0200, Laurent Dufour wrote: > When page are poisoned, they should be uncharged from the root memory > cgroup. > > This is required to avoid a BUG raised when the page is onlined back: > BUG: Bad page state in process mem-on-off-test pfn:7ae3b > page:f1eb8ec0

[PATCH 2/2] x86/unwind: Dump all stacks in unwind_dump()

2017-04-25 Thread Josh Poimboeuf
Currently unwind_dump() dumps only the most recently accessed stack. But it has a few issues. In some cases, 'first_sp' can get out of sync with 'stack_info', causing unwind_dump() to start from the wrong address, flood the printk buffer, and eventually read a bad address. In other cases,

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

2017-04-25 Thread Lv Zheng
In the Linux kernel side, acpi_get_table() hasn't been fully balanced by acpi_put_table() invocations. So it is not a good timing to report errors. The strict balanced validation count check should only be enabled after confirming that all kernel side invocations are safe. Thus this patch removes

Re: [v6 PATCH 04/21] x86/mpx, x86/insn: Relocate insn util functions to a new insn-kernel

2017-04-25 Thread Ricardo Neri
On Wed, 2017-04-12 at 12:03 +0200, Borislav Petkov wrote: > > + * If mod is 0 and register R/EBP (regno=5) is > indicated in the > > + * base part of the SIB byte, the value of such > register should > > + * not be used in the address computation. Also, a >

Re: [PATCH v2 0/2] x86, refcount: Implement fast refcount overflow

2017-04-25 Thread PaX Team
On 25 Apr 2017 at 15:56, Kees Cook wrote: > This protection is a modified version of the x86 PAX_REFCOUNT > implementation from PaX/grsecurity. This speeds up the refcount_t API by > duplicating the existing atomic_t implementation with a single instruction > added to detect if the refcount has

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

2017-04-25 Thread Chandra Annamaneni
I assumed the email should be a reply to the previous email so it appears in the thread. As to the leading spaces, it was a problem with my mail client. Ill resend the patch. -- Chandra On Tue, 25 Apr 2017, Greg KH wrote: > On Mon, Apr 24, 2017 at 11:20:22PM -0700, Chandra Annamaneni

Re: [PATCH] scsi: stex: make S6flag static

2017-04-25 Thread Charles Chiou
Looks good to me. Thanks for the improvement. On 4/26/2017 1:36 AM, Colin King wrote: From: Colin Ian King This module specific flag can be made static as it does not need to be in global scope. > Reviewed-by: Charles Chiou

[PATCH 1/2] x86/unwind: Silence more entry-code related warnings

2017-04-25 Thread Josh Poimboeuf
Borislav Petkov reported the following unwinder warning: WARNING: kernel stack regs at c924fea8 in udevadm:92 has bad 'bp' value 7fffc4614d30 unwind stack type:0 next_sp: (null) mask:0x6 graph_idx:0 c924fea8: 55a6100e9b38 (0x55a6100e9b38)

[PATCH] thermal: qoriq: remove useless call for of_thermal_get_trip_points()

2017-04-25 Thread Masahiro Yamada
Building this driver with W=1 reports: warning: variable 'trip' set but not used [-Wunused-but-set-variable] The call for of_thermal_get_trip_points() is useless. Signed-off-by: Masahiro Yamada --- drivers/thermal/qoriq_thermal.c | 3 --- 1 file changed, 3

Re: [v6 PATCH 03/21] x86/mpx: Do not use R/EBP as base in the SIB byte with Mod = 0

2017-04-25 Thread Ricardo Neri
On Wed, 2017-04-12 at 00:08 +0200, Borislav Petkov wrote: > On Tue, Mar 07, 2017 at 04:32:36PM -0800, Ricardo Neri wrote: > > Section 2.2.1.2 of the Intel 64 and IA-32 Architectures Software > > Developer's Manual volume 2A states that when a SIB byte is used and the > > base of the SIB byte

Re: [PATCH v2 2/2] mm: skip HWPoisoned pages when onlining pages

2017-04-25 Thread Balbir Singh
On Tue, 2017-04-25 at 16:27 +0200, Laurent Dufour wrote: > The commit b023f46813cd ("memory-hotplug: skip HWPoisoned page when > offlining pages") skip the HWPoisoned pages when offlining pages, but > this should be skipped when onlining the pages too. > > Signed-off-by: Laurent Dufour

Re: [PATCH] drm: fourcc byteorder: brings header file comments in line with reality.

2017-04-25 Thread Michel Dänzer
On 25/04/17 07:26 PM, Ville Syrjälä wrote: > On Tue, Apr 25, 2017 at 10:12:37AM +0900, Michel Dänzer wrote: >> On 24/04/17 10:03 PM, Ville Syrjälä wrote: >>> On Mon, Apr 24, 2017 at 03:57:02PM +0900, Michel Dänzer wrote: On 22/04/17 07:05 PM, Ville Syrjälä wrote: > On Fri, Apr 21, 2017 at

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

2017-04-25 Thread Namhyung Kim
Hi Steve, On Tue, Apr 25, 2017 at 09:24:40AM -0400, Steven Rostedt wrote: > git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git > for-next > > Head SHA1: d6322f6cc483bd512efd3360fa76d0286a5b528b > > > Steven Rostedt (VMware) (5): > selftests: ftrace: Allow some tests

Re: [PATCH v2 2/2] module: Add module name to modinfo

2017-04-25 Thread Jessica Yu
+++ Jon Masters [25/04/17 03:04 -0400]: Nevermind. Missread the patch as doing something different on first pass. It's good to give the kmod folks a heads up anyway (as name would be visible in modinfo), thanks Jon! On Apr 25, 2017, at 03:00, Jon Masters wrote: On

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

2017-04-25 Thread Rajendra Nayak
> On 17/04/17 06:27, Viresh Kumar wrote: >> On 13-04-17, 14:42, Sudeep Holla wrote: >>> What I was referring is about power domain provider with multiple power >>> domains(simply #power-domain-cells=<1> case as explained in the >>> power-domain specification. >> >> I am not sure if we should be

Re: [PATCH v2 1/2] mm: Uncharge poisoned pages

2017-04-25 Thread Naoya Horiguchi
On Wed, Apr 26, 2017 at 01:45:00PM +1000, Balbir Singh wrote: > > > > static int delete_from_lru_cache(struct page *p) > > > > { > > > > + if (memcg_kmem_enabled()) > > > > + memcg_kmem_uncharge(p, 0); > > > > + > > > > > > The changelog is not quite clear, so we are

заявка на отримання позики

2017-04-25 Thread aalkiv02
Здравствуйте Вам потрібен кредит, щоб почати свій бізнес? Чи потрібно мені кредит платити Ваші рахунки? В даний час ми пропонуємо освітні кредити, комерційні кредити, позики, Кредити для сільського господарства, споживчих кредитів, автокредитів і т.д. В низькою ставкою 2%, якщо ви зацікавлені

Re: Applied "ASoC: Add support for Maxim Integrated MAX98927 Amplifier" to the asoc tree

2017-04-25 Thread Ryan Lee
On Tue, Apr 25, 2017 at 9:51 AM, Ryan Lee wrote: > ' > > On Thu, Apr 6, 2017 at 11:55 AM, Mark Brown wrote: >> The patch >> >>ASoC: Add support for Maxim Integrated MAX98927 Amplifier >> >> has been applied to the asoc tree at >> >>

Re: [PATCH] [media] s5p-jpeg: fix recursive spinlock acquisition

2017-04-25 Thread Alexandre Courbot
On Wed, Apr 26, 2017 at 4:15 AM, Jacek Anaszewski wrote: > Hi Alexandre, > > Thanks for the patch. > > On 04/25/2017 08:19 AM, Alexandre Courbot wrote: >> v4l2_m2m_job_finish(), which is called from the interrupt handler with >> slock acquired, can call the

[PATCH] f2fs: release cp and dnode lock before IPU

2017-04-25 Thread Chao Yu
From: Hou Pengyang We don't need to rewrite the page under dnode locks. Signed-off-by: Hou Pengyang Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c| 40 ++-- fs/f2fs/f2fs.h| 2 +-

linux-next: manual merge of the tip tree with the powerpc tree

2017-04-25 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: kernel/kprobes.c between commits: 49e0b4658fe6 ("kprobes: Convert kprobe_lookup_name() to a function") 290e3070762a ("powerpc/kprobes: Fix handling of function offsets on ABIv2") from the powerpc tree and commit:

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

2017-04-25 Thread Jon Masters
On 06/03/2016 06:15 PM, Duc Dang wrote: > Do you have other suggestions? Otherwise, I will prepare a patch > following Lorenzo's approach. Duc has since left Applied for other pastures. I miss him, he's a great guy. He laid all the right groundwork for this, but the ACPI binding still needs to

[PATCH V1] i2c: xgene: Add support for I2C_FUNC_I2C functionality

2017-04-25 Thread tnhuynh
From: Tin Huynh Certain I2C slave drivers, such as the pca95xx, require only I2C operations instead of SMBus extensions. This patch adds I2C_FUNC_I2C functionally to support those drivers. --- drivers/i2c/busses/i2c-xgene-slimpro.c |3 ++- 1 files changed, 2 insertions(+),

Re: [PATCH] x86/refcount: Implement fast refcount_t handling

2017-04-25 Thread Kees Cook
On Tue, Apr 25, 2017 at 7:14 PM, PaX Team wrote: > On 25 Apr 2017 at 9:39, Kees Cook wrote: > >> On Tue, Apr 25, 2017 at 4:26 AM, PaX Team wrote: >> > INT_MAX threads would be needed when the leaking path is locked so >> > that it can only be exercised

  1   2   3   4   5   6   7   8   9   10   >