Re: [PATCH] lightnvm: wrong offset in bad blk lun calculation

2015-12-29 Thread Jens Axboe
On 12/29/2015 06:37 AM, Matias Bjørling wrote: dev->nr_luns reports the total number of luns available in a device while dev->luns_per_chnl is the number of luns per channel. When multiple channels are available, the offset is calculated from a channel and lun id into a linear array. As it

Re: use-after-free in hash_sock_destruct

2015-12-29 Thread Dmitry Vyukov
On Tue, Dec 29, 2015 at 3:40 PM, Herbert Xu wrote: > On Thu, Dec 17, 2015 at 01:59:50PM +0100, Dmitry Vyukov wrote: >> >> The following program causes use-after-free in hash_sock_destruct: > > This patch should fix the problem. AFAIK everything that you have >

[PATCH v2 1/2] lib/vsprintf: refactor duplicate code to special_hex_number()

2015-12-29 Thread Andy Shevchenko
special_hex_number() is a helper to print a fixed size type in a hex format with '0x' prefix, zero padding, and small letters. In the module we have already several copies of such code. Consolidate them under special_hex_number() helper. There are couple of differences though. It seems nobody

[PATCH v2 0/2] lib/vsprintf: introduce stricter rules for %p extensions

2015-12-29 Thread Andy Shevchenko
Besides the code refactoring we introduce the following rules for %p extensions here. i.e: - fixed type extensions are always printed in hex format, prefixed by '0x', small letters, full field width on a running architecture (%pa[dp], %pNF) - fallback to %p based on different kernel

Re: [PATCH] drivers: power: fix typo in documentation

2015-12-29 Thread Pavel Machek
On Tue 2015-12-29 11:03:21, Manuel Pégourié-Gonnard wrote: > The documentation for detach() said attach. > > Signed-off-by: Manuel Pégourié-Gonnard > Cc: triv...@kernel.org Acked-by: Pavel Machek -- (english) http://www.livejournal.com/~pavelmachek (cesky,

[PATCH v2 2/2] lib/vsprintf: factor out %pN[F] handler as netdev_bits()

2015-12-29 Thread Andy Shevchenko
Move switch case to the netdev_features_string() and rename it to netdev_bits(). In the future we can extend it as needed. Here we replace the fallback of %pN from '%p' with possible flags to sticter '0x%p' without any flags variation. Signed-off-by: Andy Shevchenko

Re: [PATCH] pty: fix use after free of tty->driver_data

2015-12-29 Thread Herton R. Krzesinski
On Tue, Dec 15, 2015 at 04:05:09PM -0200, Herton R. Krzesinski wrote: > On Tue, Dec 15, 2015 at 09:36:26AM -0800, Peter Hurley wrote: > > > since in this > > > case any of the tty->driver_data can be stale, due to all references/ > > > files being closed before (files related to ptmx/pts inodes

Re: [PATCH] ath6kl: Use vmalloc to allocate ar->fw for api1 method

2015-12-29 Thread Souptick Joarder
Brent, On Tue, Dec 22, 2015 at 2:42 PM, Kalle Valo wrote: > Souptick Joarder writes: > >> Hi Brent, >> >> On Tue, Dec 22, 2015 at 3:23 AM, Brent Taylor wrote: >>> On Mon, Dec 21, 2015 at 1:23 PM, Souptick Joarder

[PATCH] mfd: twl-core: One function call less in add_numbered_child() after error detection

2015-12-29 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 29 Dec 2015 19:29:08 +0100 The platform_device_put() function was called in one case by the add_numbered_child() function during error handling even if the passed variable "pdev" contained a null pointer. Implementation details

Re: [PATCH 4/4] dt: binding: Add Qualcomm wcn36xx WiFi binding

2015-12-29 Thread Rob Herring
On Sun, Dec 27, 2015 at 05:34:27PM -0800, Bjorn Andersson wrote: > Add binding representing the Qualcomm wcn3620/60/80 WiFi block. > Signed-off-by: Bjorn Andersson > --- > .../bindings/net/wireless/qcom,wcn36xx-wifi.txt| 76 > ++ > 1 file

Re: [PATCH v3 2/5] dt-bindings: mediatek: Modify pinctrl bindings for mt2701

2015-12-29 Thread Rob Herring
On Mon, Dec 28, 2015 at 03:09:03PM +0800, Biao Huang wrote: > Signed-off-by: Biao Huang > --- > .../devicetree/bindings/pinctrl/pinctrl-mt65xx.txt |9 + > 1 file changed, 5 insertions(+), 4 deletions(-) I acked v2 already. Please add acks when posting new

[PATCH] mtd: fixing memory leak and handling failed kmalloc

2015-12-29 Thread Insu Yun
kmalloc needs to be handled when failing in memory pressure. Also, it has memory leak in error routine. Signed-off-by: Insu Yun --- drivers/mtd/chips/cfi_cmdset_0001.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git

Re: [PATCH 1/1] kernel booting messages, first line

2015-12-29 Thread Randy Dunlap
On 12/28/15 17:31, Alexandru GOIA wrote: > > For -rc8 , > > Hoping that someone DO cares about the aesthetic of kernel messages at boot : > > > What it does : first line of booting kernel, as seen in dmesg(1), will be the > Linux kernel signature > (version, compiler, compiler hostname). >

[PATCH] qxl: correctly handling failed allocation

2015-12-29 Thread Insu Yun
Since kmalloc can be failed in memory pressure, when fails, return error code. Signed-off-by: Insu Yun --- drivers/gpu/drm/qxl/qxl_kms.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/qxl/qxl_kms.c b/drivers/gpu/drm/qxl/qxl_kms.c index

Re: [PATCH v2 3/3] bpf: hash: use per-bucket spinlock

2015-12-29 Thread Daniel Borkmann
On 12/29/2015 03:40 PM, Ming Lei wrote: Both htab_map_update_elem() and htab_map_delete_elem() can be called from eBPF program, and they may be in kernel hot path, so it isn't efficient to use a per-hashtable lock in this two helpers. The per-hashtable spinlock is used for protecting bucket's

Re: [RFC PATCH] fbdev: add support for Sigma Designs' smp8xxxfb.ko

2015-12-29 Thread Sebastian Frias
On 12/29/2015 03:16 PM, Frans Klaver wrote: On Tue, Dec 29, 2015 at 3:06 PM, Sebastian Frias wrote: Right now we don't know if the driver will be upstreamed. Let me rephrase my question: - how would you recommend enabling FB_CFB_FILLRECT, FB_CFB_COPYAREA and FB_CFB_IMAGEBLIT

Re: [PATCH v6] serial: rewrite pxa2xx-uart to use 8250_core

2015-12-29 Thread Robert Jarzmik
Heikki Krogerus writes: > On Thu, Dec 24, 2015 at 06:15:14PM +0300, Sergei Ianovich wrote: >> pxa2xx-uart was a separate uart platform driver. It was declaring >> the same device names and numbers as 8250 driver. As a result, >> it was impossible to use 8250

Re: mm, vmstat: kernel BUG at mm/vmstat.c:1408!

2015-12-29 Thread Christoph Lameter
On Thu, 24 Dec 2015, Sasha Levin wrote: > >> > [ 3462.527795] pwq 4: cpus=2 node=2 flags=0x0 nice=0 active=1/256 > >> > [ 3462.554836] pending: vmstat_update > > Does that mean that vmstat_update locks up or something that schedules it? > > I think it means that vmstat_update didn't finish

Re: [PATCH RESEND] nvme:Fix error handling in the function nvme_init_integrity

2015-12-29 Thread Keith Busch
On Tue, Dec 29, 2015 at 01:10:48PM -0500, Nicholas Krause wrote: > - blk_integrity_register(ns->disk, ); > + if (blk_integrity_register(ns->disk, )) { Nak; blk_integrity_register returns 'void'. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

Re: [PATCH RESEND] csiostor:Fix locking issues in the function csio_scsim_cleanup_io_lnode

2015-12-29 Thread Jens Axboe
On 12/29/2015 11:23 AM, Nicholas Krause wrote: This fixes locking issues in the function csio_scsim_cleanup_io_lnode by locking around the call to the function csio_csci_gather_active_ios with the function pair spin_lock_irq/spin_unlock_irq as any function calling this particular function must

Re: [PATCH] cx231xx: correctly handling failed allocation

2015-12-29 Thread Devin Heitmueller
On Tue, Dec 29, 2015 at 1:53 PM, Insu Yun wrote: > Since kmalloc can be failed in memory pressure, > if not properly handled, NULL dereference can be happend > > Signed-off-by: Insu Yun > --- > drivers/media/usb/cx231xx/cx231xx-417.c | 2 ++ > 1 file

RE: [PATCH 2/2] pci: Update VPD size with correct length

2015-12-29 Thread Jordan_Hargrave
>On Mon, Dec 28, 2015 at 9:29 PM, wrote: >> I had posted a patch recently to enable exposing the VPD-R valyes to sysfs. >> I need access >> to these to parse into systemd for network naming (biosdevname style names). >> >> >> The VPD-R is a readonly area contained

Re: [PATCH] drivers/char/mem.c: Add /dev/ioports, supporting 16-bit and 32-bit ports

2015-12-29 Thread Santosh Shukla
On 29 December 2015 at 18:58, Arnd Bergmann wrote: > On Wednesday 23 December 2015 17:04:40 Santosh Shukla wrote: >> On 23 December 2015 at 03:26, Arnd Bergmann wrote: >> > On Tuesday 22 December 2015, Santosh Shukla wrote: >> >> } >> >> >> >> So I care for

Re: [PATCH 1/2] dell-wmi: Check if Dell WMI descriptor structure is valid

2015-12-29 Thread Pali Rohár
On Tuesday 29 December 2015 13:44:13 Michał Kępień wrote: > > > > According to Dell WMI document mentioned in ML dicussion > > > > archived at > > > > http://www.spinics.net/lists/platform-driver-x86/msg07220.html > > > > OS should check Dell WMI descriptor structure. > > > > > > "Should" or

Re: BUG: Bad rss-counter state mm:ffff8800c5a96000 idx:3 val:3894

2015-12-29 Thread Michal Hocko
[CCing Andrew] On Thu 24-12-15 09:12:53, Jeremiah Mahler wrote: > all, > > I have started seeing a "Bad rss-counter" message in the logs with > the latest linux-next 20151222+. > > [ 458.282192] BUG: Bad rss-counter state mm:8800c5a96000 idx:3 val:3894 This is MM_SHMEMPAGES so an

Re: [PATCH 02/10] spi: cadence, zynq: use to_platform_device()

2015-12-29 Thread Moritz Fischer
Hi, On Sun, Dec 27, 2015 at 5:15 AM, Geliang Tang wrote: > Use to_platform_device() instead of open-coding it. > Reviewed-by: Moritz Fischer > Signed-off-by: Geliang Tang Looks good to me, maybe (nit) split it up into two

Re: [PATCH v2] net, socket, socket_wq: fix missing initialization of flags

2015-12-29 Thread Eric Dumazet
On Tue, 2015-12-29 at 13:29 +0100, Nicolai Stange wrote: > Fixes: ceb5d58b2170 ("net: fix sock_wake_async() rcu protection") > Sorry for any inconvenience this late-night induced brainfart might > have caused at your side... Not really, because I read the source code and saw the bug there ;)

Re: [PATCH 4/4] dt: binding: Add Qualcomm wcn36xx WiFi binding

2015-12-29 Thread Bjorn Andersson
On Tue 29 Dec 10:34 PST 2015, Rob Herring wrote: > On Sun, Dec 27, 2015 at 05:34:27PM -0800, Bjorn Andersson wrote: > > Add binding representing the Qualcomm wcn3620/60/80 WiFi block. > > Signed-off-by: Bjorn Andersson > > --- > >

Re: [PATCH] drivers/char/mem.c: Add /dev/ioports, supporting 16-bit and 32-bit ports

2015-12-29 Thread Arnd Bergmann
On Tuesday 29 December 2015 21:25:15 Santosh Shukla wrote: > mistakenly added wrong email-id of alex, looping his correct one. > > On 29 December 2015 at 21:23, Santosh Shukla > wrote: > > On 29 December 2015 at 18:58, Arnd Bergmann wrote: > >> On

Re: [PATCH 0/3] OOM detection rework v4

2015-12-29 Thread Michal Hocko
On Thu 24-12-15 21:41:19, Tetsuo Handa wrote: > I got OOM killers while running heavy disk I/O (extracting kernel source, > running lxr's genxref command). (Environ: 4 CPUs / 2048MB RAM / no swap / XFS) > Do you think these OOM killers reasonable? Too weak against fragmentation? I will have a

Re: [PATCH] cfq-iosched: convert slice idle time to jiffies

2015-12-29 Thread Jens Axboe
On 12/28/2015 06:08 PM, Alexandru Moise wrote: This patch refers to Jens Axboe's change way back in 2006: 7b14e3b52 cfq-iosched: slice expiry fixups In this patch he fixed a potential timer race condition by delaying idle_slice_timer by the slice_idle time value. Today this timer is delayed by

Re: [PATCH v2 1/4] Documentation: fsl-quadspi: Add fsl,ls2080a-dspi compatible string

2015-12-29 Thread Rob Herring
On Thu, Dec 24, 2015 at 07:01:00PM +0800, Yuan Yao wrote: > new compatible string: "fsl,ls2080a-qspi". > > Signed-off-by: Yuan Yao > --- > Changed in v2: > Update my email to > --- > Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt | 3 ++- > 1 file

Re: [PATCH] DT: i2c: Add Freescale MPL3115 to trivial devices list

2015-12-29 Thread Rob Herring
On Wed, Dec 23, 2015 at 01:59:07PM -0500, Akshay Bhat wrote: > This adds devicetree documentation for the bindings of mpl3115 driver. > > Signed-off-by: Akshay Bhat > --- > Documentation/devicetree/bindings/i2c/trivial-devices.txt | 1 + > 1 file changed, 1 insertion(+)

Re: [PATCH 4/4] Documentation: fsl-quadspi: Add optional properties

2015-12-29 Thread Rob Herring
On Thu, Dec 24, 2015 at 07:01:03PM +0800, Yuan Yao wrote: > Add optional properties for QSPI: > big-endian > if the register is big endian on this platform. > > Signed-off-by: Yuan Yao > --- > Documentation/devicetree/bindings/mtd/fsl-quadspi.txt | 1 + > 1 file changed, 1

[PATCH] net: Fix potential NULL pointer dereference in __skb_try_recv_datagram

2015-12-29 Thread Jacob Siverskog
This should fix a NULL pointer dereference I encountered (dump below). Since __skb_unlink is called while walking, skb_queue_walk_safe should be used. I investigated the oops and it seems like skb->next was NULL. Oops: Unable to handle kernel NULL pointer dereference at virtual address 0004

Re: [PATCH 4/4] dt: binding: Add Qualcomm wcn36xx WiFi binding

2015-12-29 Thread Andy Gross
On Sun, Dec 27, 2015 at 05:34:27PM -0800, Bjorn Andersson wrote: > Add binding representing the Qualcomm wcn3620/60/80 WiFi block. > > Signed-off-by: Bjorn Andersson > --- > + > +- qcom,wcnss-mmio: > + Usage: required > + Value type: nit: encoded >

Re: [PATCH] drivers/char/mem.c: Add /dev/ioports, supporting 16-bit and 32-bit ports

2015-12-29 Thread Santosh Shukla
mistakenly added wrong email-id of alex, looping his correct one. On 29 December 2015 at 21:23, Santosh Shukla wrote: > On 29 December 2015 at 18:58, Arnd Bergmann wrote: >> On Wednesday 23 December 2015 17:04:40 Santosh Shukla wrote: >>> On 23 December

man-pages-4.04 is released

2015-12-29 Thread Michael Kerrisk (man-pages)
Gidday, The Linux man-pages maintainer proudly announces: man-pages-4.04 - man pages for Linux This release includes input and contributions from more than 30 people. Tarball download: http://www.kernel.org/doc/man-pages/download.html Git repository:

Re: [PATCH 0/3] OOM detection rework v4

2015-12-29 Thread Michal Hocko
On Mon 28-12-15 21:08:56, Tetsuo Handa wrote: > Tetsuo Handa wrote: > > I got OOM killers while running heavy disk I/O (extracting kernel source, > > running lxr's genxref command). (Environ: 4 CPUs / 2048MB RAM / no swap / > > XFS) > > Do you think these OOM killers reasonable? Too weak against

[PATCH] extcon: arizona: Use DAPM mutex helper functions

2015-12-29 Thread Charles Keepax
We should be using the helper functions to lock the DAPM mutex not accessing it directly. There are no ill effects of this as the moment but it is best practice, and the implementation could be changed in the future. Signed-off-by: Charles Keepax ---

Re: [PATCH v2 3/4] dt-binding: remoteproc: Introduce Qualcomm WCNSS loader binding

2015-12-29 Thread Rob Herring
On Sun, Dec 27, 2015 at 05:15:45PM -0800, Bjorn Andersson wrote: > The document defines the binding for a component that loads firmware for > and boots the Qualcomm WCNSS core. > > Signed-off-by: Bjorn Andersson > --- > > Changes since v1: > - Dropped custom

Re: [PATCH v2 2/4] Documentation: fsl-quadspi: Add fsl, ls2080a-qspi compatible string

2015-12-29 Thread Rob Herring
On Thu, Dec 24, 2015 at 07:01:01PM +0800, Yuan Yao wrote: > new compatible string: "fsl,ls2080a-qspi". > > Signed-off-by: Yuan Yao > --- > Changed in v2: > Update my email to > --- > Documentation/devicetree/bindings/mtd/fsl-quadspi.txt | 2 +- > 1 file

Re: [PATCH 2/2] dt-bindings: bus: ti-gpmc: Add AAD timings properties

2015-12-29 Thread Rob Herring
On Mon, Dec 28, 2015 at 02:39:21PM +0100, Neil Armstrong wrote: > In order to support advanced AAD timings, add these properties to the DT > GPMC bindings. > > Signed-off-by: Neil Armstrong > --- > Documentation/devicetree/bindings/bus/ti-gpmc.txt | 5 + > 1 file

crypto: deadlock in alg_setsockopt

2015-12-29 Thread Dmitry Vyukov
Hello, On commit 8513342170278468bac126640a5d2d12ffbff106 + crypto: algif_skcipher - Use new skcipher interface + crypto: algif_skcipher - Require setkey before accept(2) + crypto: af_alg - Disallow bind/setkey/... after accept(2) The following program creates an unkillable, deadlocked process:

Re: [PATCH] drivers/char/mem.c: Add /dev/ioports, supporting 16-bit and 32-bit ports

2015-12-29 Thread Santosh Shukla
On Tue, Dec 29, 2015 at 9:50 PM, Arnd Bergmann wrote: > On Tuesday 29 December 2015 21:25:15 Santosh Shukla wrote: >> mistakenly added wrong email-id of alex, looping his correct one. >> >> On 29 December 2015 at 21:23, Santosh Shukla >> wrote: >> > On

Re: [PATCH] drivers/char/mem.c: Add /dev/ioports, supporting 16-bit and 32-bit ports

2015-12-29 Thread Alex Williamson
On Tue, 2015-12-29 at 22:00 +0530, Santosh Shukla wrote: > On Tue, Dec 29, 2015 at 9:50 PM, Arnd Bergmann wrote: > > On Tuesday 29 December 2015 21:25:15 Santosh Shukla wrote: > > > mistakenly added wrong email-id of alex, looping his correct one. > > > > > > On 29 December 2015

Re: [PATCH] i915: correctly handling failed allocation

2015-12-29 Thread kbuild test robot
Hi Insu, [auto build test ERROR on drm-intel/for-linux-next] [also build test ERROR on v4.4-rc7 next-20151223] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url:

Re: [PATCH v2 3/4] dt-binding: remoteproc: Introduce Qualcomm WCNSS loader binding

2015-12-29 Thread Andy Gross
On Sun, Dec 27, 2015 at 05:15:45PM -0800, Bjorn Andersson wrote: > The document defines the binding for a component that loads firmware for > and boots the Qualcomm WCNSS core. > > Signed-off-by: Bjorn Andersson > --- Acked-by: Andy Gross

Re: [PATCH] BTRFS: Adds an option to select RAID Stripe size

2015-12-29 Thread Sanidhya Solanki
On Tue, 29 Dec 2015 14:39:07 +0100 David Sterba wrote: > The stripe size depends on how the filesystem was made, at the moment > the stripesize parameter is missing from mkfs. The kernel module > should support all sizes at runtime, so it's not a compile-time > option. No good?

Re: use-after-free in hash_sock_destruct

2015-12-29 Thread Dmitry Vyukov
On Tue, Dec 29, 2015 at 4:28 PM, Dmitry Vyukov wrote: > On Tue, Dec 29, 2015 at 3:40 PM, Herbert Xu > wrote: >> On Thu, Dec 17, 2015 at 01:59:50PM +0100, Dmitry Vyukov wrote: >>> >>> The following program causes use-after-free in

Re: mm, vmstat: kernel BUG at mm/vmstat.c:1408!

2015-12-29 Thread Christoph Lameter
Builds with your kernel config fail with CHK include/generated/bounds.h CHK include/generated/asm-offsets.h CALLscripts/checksyscalls.sh CHK include/generated/compile.h make[1]: *** No rule to make target 'signing_key.pem', needed by 'certs/signing_key.x509'. Stop.

Re: [PATCH] cfq-iosched: convert slice idle time to jiffies

2015-12-29 Thread Alexandru Moise
On Tue, Dec 29, 2015 at 10:19:17AM -0700, Jens Axboe wrote: > On 12/28/2015 06:08 PM, Alexandru Moise wrote: > >This patch refers to Jens Axboe's change way back in 2006: > >7b14e3b52 cfq-iosched: slice expiry fixups > > > >In this patch he fixed a potential timer race condition by delaying >

Re: [PATCH 2/2] pci: Update VPD size with correct length

2015-12-29 Thread Alexander Duyck
On Mon, Dec 28, 2015 at 9:29 PM, wrote: >>On 12/18/2015 03:02 PM, Alexander Duyck wrote: >>> On Fri, Dec 18, 2015 at 5:57 AM, Hannes Reinecke wrote: On 12/18/2015 02:49 PM, Alexander Duyck wrote: > > On Fri, Dec 18, 2015 at 12:35 AM, Hannes

Re: [PATCH] Input: evdev: avoid storing newest SYN_REPORT when dropping all events

2015-12-29 Thread Aniroop Mathur
Hello Mr. Torokhov, On Tue, Dec 29, 2015 at 5:11 AM, Dmitry Torokhov wrote: > Hi Aniroop, > > On Thu, Dec 24, 2015 at 11:25 AM, Aniroop Mathur wrote: >> The newest event can be SYN_REPORT in case of dropping all old events when >> buffer is full,

[git pull] vfs.git fix

2015-12-29 Thread Al Viro
Fix for 3.15 breakage of fcntl64() in arm OABI compat. -stable fodder. Please, pull from git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git for-linus Shortlog: Al Viro (1): arm: fix handling of F_OFD_... in oabi_fcntl64() Diffstat: arch/arm/kernel/sys_oabi-compat.c | 73

[PATCH] cx231xx: correctly handling failed allocation

2015-12-29 Thread Insu Yun
Since kmalloc can be failed in memory pressure, if not properly handled, NULL dereference can be happend Signed-off-by: Insu Yun --- drivers/media/usb/cx231xx/cx231xx-417.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/usb/cx231xx/cx231xx-417.c

Re: BUG: Bad rss-counter state mm:ffff8800c5a96000 idx:3 val:3894

2015-12-29 Thread Jeremiah Mahler
Andrew, Michal, On Tue, Dec 29, 2015 at 10:30:37AM -0800, Andrew Morton wrote: > On Tue, 29 Dec 2015 17:23:47 +0100 Michal Hocko wrote: > > > [CCing Andrew] > > > > On Thu 24-12-15 09:12:53, Jeremiah Mahler wrote: > > > all, > > > > > > I have started seeing a "Bad

Re: [PATCH 5/5] usb: dwc2: gadget: free TX FIFO after killing requests

2015-12-29 Thread Sergei Shtylyov
Hello. On 12/28/2015 07:25 PM, Robert Baldyga wrote: As kill_all_requests() potentially flushes TX FIFO, we should should free FIFO after calling it. Otherwise FIFO could stay unflushed properly. Signed-off-by: Robert Baldyga --- drivers/usb/dwc2/gadget.c | 8

Re: [PATCH] BTRFS: Adds an option to select RAID Stripe size

2015-12-29 Thread David Sterba
On Tue, Dec 29, 2015 at 06:15:12AM -0500, Sanidhya Solanki wrote: > On Tue, 29 Dec 2015 14:39:07 +0100 > David Sterba wrote: > > > The stripe size depends on how the filesystem was made, at the moment > > the stripesize parameter is missing from mkfs. The kernel module > >

Re: BUG: Bad rss-counter state mm:ffff8800c5a96000 idx:3 val:3894

2015-12-29 Thread Andrew Morton
On Tue, 29 Dec 2015 17:23:47 +0100 Michal Hocko wrote: > [CCing Andrew] > > On Thu 24-12-15 09:12:53, Jeremiah Mahler wrote: > > all, > > > > I have started seeing a "Bad rss-counter" message in the logs with > > the latest linux-next 20151222+. > > > > [ 458.282192]

[PATCH] i915: correctly handling failed allocation

2015-12-29 Thread Insu Yun
Signed-off-by: Insu Yun --- drivers/gpu/drm/i915/intel_dsi_panel_vbt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_dsi_panel_vbt.c b/drivers/gpu/drm/i915/intel_dsi_panel_vbt.c index a5e99ac..4e279dd 100644 ---

Re: a configfs update for 4.5, and the configfs tree question

2015-12-29 Thread Joel Becker
On Thu, Dec 24, 2015 at 03:51:09PM +0100, Christoph Hellwig wrote: > Hi all, > > I really want the configfs change in this series to go into 4.5. Originally > both Pantelis and I had changes ontop that would require it in a stable > non-rebased branch, but one or both of those might not make the

Re: [PATCH] configfs: implement binary attributes

2015-12-29 Thread Krzysztof Opasiak
W dniu 2015-12-30 o 00:00, Joel Becker pisze: > On Thu, Dec 24, 2015 at 03:51:10PM +0100, Christoph Hellwig wrote: >> From: Pantelis Antoniou >> >> ConfigFS lacked binary attributes up until now. This patch >> introduces support for binary attributes in a

Re: [PATCH 4/4] dt: binding: Add Qualcomm wcn36xx WiFi binding

2015-12-29 Thread Rob Herring
On Tue, Dec 29, 2015 at 11:03:57AM -0800, Bjorn Andersson wrote: > On Tue 29 Dec 10:34 PST 2015, Rob Herring wrote: > > > On Sun, Dec 27, 2015 at 05:34:27PM -0800, Bjorn Andersson wrote: > > > Add binding representing the Qualcomm wcn3620/60/80 WiFi block. > > > Signed-off-by: Bjorn Andersson

Re: Rethinking sigcontext's xfeatures slightly for PKRU's benefit?

2015-12-29 Thread Dave Hansen
On 12/18/2015 01:45 PM, Linus Torvalds wrote: > On Fri, Dec 18, 2015 at 1:12 PM, Dave Hansen > wrote: >> >> But, if we are picking out an execute-only pkey more dynamically, we've >> got to keep the default value for the entire process somewhere. > > How dynamic do

Re: nf_unregister_net_hook: hook not found!

2015-12-29 Thread Pablo Neira Ayuso
On Mon, Dec 28, 2015 at 09:05:03PM +0100, Sander Eikelenboom wrote: > Hi, > > Running a 4.4.0-rc6 kernel i encountered the warning below. Cc'ing Eric Biederman. @Sander, could you provide a way to reproduce this? Thanks. > [ 13.740472] ip_tables: (C) 2000-2006 Netfilter Core Team > [

Re: [PATCH 4/6] regulator: lp872x: Add enable GPIO pin support

2015-12-29 Thread Milo Kim
Hi Paul, On 29/12/15 20:13, Paul Kocialkowski wrote: Hi Milo, Le mardi 29 décembre 2015 à 09:45 +0900, Milo Kim a écrit : Hi Paul, On 29/12/15 07:49, Paul Kocialkowski wrote: Hi Milo, thanks for the review, Le lundi 28 décembre 2015 à 09:56 +0900, Milo Kim a écrit : Hi Paul, On 23/12/15

Re: [f2fs-dev] [PATCH 3/3] f2fs: load largest extent all the time

2015-12-29 Thread Jaegeuk Kim
Hi Chao, On Tue, Dec 29, 2015 at 05:23:55PM +0800, Chao Yu wrote: > Hi Jaegeuk, > > > -Original Message- > > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > > Sent: Tuesday, December 29, 2015 7:32 AM > > To: linux-kernel@vger.kernel.org; linux-fsde...@vger.kernel.org; > >

Re: crypto: use-after-free in alg_bind

2015-12-29 Thread Herbert Xu
On Tue, Dec 29, 2015 at 09:19:22PM +0100, Dmitry Vyukov wrote: > Hello, > > On commit 8513342170278468bac126640a5d2d12ffbff106 > + crypto: algif_skcipher - Use new skcipher interface > + crypto: algif_skcipher - Require setkey before accept(2) > + crypto: af_alg - Disallow bind/setkey/... after

Re: [PATCH v2 1/3] device property: add spaces to PROPERTY_ENTRY_STRING macro

2015-12-29 Thread Andrew Morton
On Wed, 30 Dec 2015 02:49:26 +0100 "Rafael J. Wysocki" wrote: > On Monday, December 28, 2015 01:24:13 PM Andy Shevchenko wrote: > > On Mon, 2015-12-28 at 02:12 +0100, Rafael J. Wysocki wrote: > > > On Wednesday, December 23, 2015 03:34:42 PM Andy Shevchenko wrote: > > > >

Re: [PATCH v2 1/3] device property: add spaces to PROPERTY_ENTRY_STRING macro

2015-12-29 Thread Andrew Morton
On Wed, 30 Dec 2015 03:06:23 +0100 "Rafael J. Wysocki" wrote: > I'll apply it to my tree if you don't mind with the Andy's [1/3] on top > so we have all of that in one place. That version needed a fix. Here's the one to apply: From: Andrew Morton

Re: [PATCH v2 1/1] usb: cdc-acm: handle unlinked urb in acm read callback

2015-12-29 Thread Greg Kroah-Hartman
On Wed, Dec 30, 2015 at 08:42:01AM +0800, Lu Baolu wrote: > In current acm driver, the bulk-in callback function ignores the > URBs unlinked in usb core. > > This causes unexpected data loss in some cases. For example, > runtime suspend entry will unlinked all urbs and set urb->status > to

[PATCH 1/3] rtc: s5m: Cleanup by removing useless 'rtc' prefix from fields

2015-12-29 Thread Krzysztof Kozlowski
Remove the 'rtc' prefix from some of the fields in struct s5m_rtc_reg_config because it is obvious - this is a RTC driver. No functional changes. Signed-off-by: Krzysztof Kozlowski --- drivers/rtc/rtc-s5m.c | 40 +++- 1 file changed,

Re: [PATCH V3] net: emac: emac gigabit ethernet controller driver

2015-12-29 Thread kbuild test robot
Hi Gilad, [auto build test WARNING on net/master] [also build test WARNING on v4.4-rc7 next-20151223] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url:

Re: [PATCH] configfs: implement binary attributes

2015-12-29 Thread Krzysztof Opasiak
W dniu 2015-12-24 o 15:51, Christoph Hellwig pisze: From: Pantelis Antoniou ConfigFS lacked binary attributes up until now. This patch introduces support for binary attributes in a somewhat similar manner of sysfs binary attributes albeit with changes that fit

Re: [PATCH 2/2] f2fs: support revoking atomic written pages

2015-12-29 Thread Jaegeuk Kim
Hi Chao, On Tue, Dec 29, 2015 at 11:12:36AM +0800, Chao Yu wrote: > f2fs support atomic write with following semantics: > 1. open db file > 2. ioctl start atomic write > 3. (write db file) * n > 4. ioctl commit atomic write > 5. close db file > > With this flow we can avoid file becoming

[PATCH v2 1/1] usb: cdc-acm: handle unlinked urb in acm read callback

2015-12-29 Thread Lu Baolu
In current acm driver, the bulk-in callback function ignores the URBs unlinked in usb core. This causes unexpected data loss in some cases. For example, runtime suspend entry will unlinked all urbs and set urb->status to -ENOENT even those urbs might have data not processed yet. Hence, data loss

Re: [PATCH] BTRFS: Adds an option to select RAID Stripe size

2015-12-29 Thread Sanidhya Solanki
On Tue, 29 Dec 2015 18:06:11 +0100 David Sterba wrote: > I don't know about all implications from changing the define to > sb->stripesize, also we want to define the allowed range etc. It would > be better to add more description to the patch. So, is the patch atleast somewhat

Re: [PATCH v2 1/3] device property: add spaces to PROPERTY_ENTRY_STRING macro

2015-12-29 Thread Andy Shevchenko
On Wed, Dec 30, 2015 at 4:06 AM, Rafael J. Wysocki wrote: > On Tuesday, December 29, 2015 05:24:53 PM Andrew Morton wrote: >> On Wed, 30 Dec 2015 02:49:26 +0100 "Rafael J. Wysocki" >> wrote: >> >> > On Monday, December 28, 2015 01:24:13 PM Andy Shevchenko

[PATCH v4 2/6] ARM: hisi: add compatible string for Hi3519 soc

2015-12-29 Thread Jiancheng Xue
add compatible string for Hi3519 soc. Signed-off-by: Jiancheng Xue --- arch/arm/mach-hisi/hisilicon.c | 23 --- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/arch/arm/mach-hisi/hisilicon.c b/arch/arm/mach-hisi/hisilicon.c index

[PATCH] mtd: spi-nor: add hisilicon spi-nor flash controller driver

2015-12-29 Thread Jiancheng Xue
add hisilicon spi-nor flash controller driver Signed-off-by: Binquan Peng Signed-off-by: Jiancheng Xue --- .../devicetree/bindings/spi/spi-hisi-sfc.txt | 24 + drivers/mtd/spi-nor/Kconfig| 7 +

Re: [RESEND PATCH v1 3/4] net: ethernet: arc: Add support emac for RK3036

2015-12-29 Thread Florian Fainelli
On December 27, 2015 11:22:20 PM PST, Xing Zheng wrote: >The RK3036's GRFs offset are different with RK3066/RK3188, and need to >set >mac TX/RX clock before probe emac. > >Signed-off-by: Xing Zheng >--- > }; > > static const struct

Re: [RESEND PATCH v1 3/4] net: ethernet: arc: Add support emac for RK3036

2015-12-29 Thread Heiko Stübner
Am Dienstag, 29. Dezember 2015, 14:59:59 schrieb Florian Fainelli: > On December 27, 2015 11:22:20 PM PST, Xing Zheng wrote: > >The RK3036's GRFs offset are different with RK3066/RK3188, and need to > >set > >mac TX/RX clock before probe emac. > > > >Signed-off-by: Xing

Re: RCU stall and the system boot hang with nfsroot

2015-12-29 Thread Paul E. McKenney
On Tue, Dec 29, 2015 at 05:34:38PM +0800, Aaron Ma wrote: > Add paul...@linux.vnet.ibm.com > > On Tue, Dec 29, 2015 at 5:32 PM, Aaron Ma wrote: > > Hi, Paul: > > I found the linux-stable-4.1.15 with rt15 patches boot hang sometimes. > > Hardware is Grantley-EP and

Re: [PATCH] ixgbe: correctly handling failed allocation

2015-12-29 Thread Alexander Duyck
On Tue, Dec 29, 2015 at 1:55 PM, Insu Yun wrote: > Since kzalloc can be failed in memory pressure, > NULL derefence could be happened. > > Signed-off-by: Insu Yun > --- > drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 2 ++ > 1 file changed, 2

[PATCH] Input: i8042 add Fujitsu Lifebook U745 to the nomux list

2015-12-29 Thread Aurélien Francillon
Without i8042.nomux=1 the Elantech touch pad is not working at all on a Fujitsu Lifebook U745. This patch does not seem necessary for all U745 (maybe because of different BIOS versions?). However, it was verified that the patch does not break those (see opensuse bug 883192:

Re: [f2fs-dev] [PATCH 1/3] f2fs: early check broken symlink length in the encrypted case

2015-12-29 Thread Jaegeuk Kim
Hi Chao, On Tue, Dec 29, 2015 at 09:52:49AM +0800, Chao Yu wrote: > Hi Jaegeuk, > > > -Original Message- > > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > > Sent: Tuesday, December 29, 2015 7:32 AM > > To: linux-kernel@vger.kernel.org; linux-fsde...@vger.kernel.org; > >

Re: [PATCH] f2fs: fix to stop recovering dot dentries in a readonly fs

2015-12-29 Thread Jaegeuk Kim
Hi Chao, On Tue, Dec 29, 2015 at 02:26:53PM +0800, Chao Yu wrote: > Hi Jaegeuk, > > > -Original Message- > > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > > Sent: Tuesday, December 29, 2015 6:54 AM > > To: Chao Yu > > Cc: linux-f2fs-de...@lists.sourceforge.net;

Re: [f2fs-dev] [PATCH 2/3] f2fs: use i_size_read to get i_size

2015-12-29 Thread Jaegeuk Kim
Hi Chao, On Tue, Dec 29, 2015 at 05:18:19PM +0800, Chao Yu wrote: > Hi Jaegeuk, > > > -Original Message- > > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > > Sent: Tuesday, December 29, 2015 7:32 AM > > To: linux-kernel@vger.kernel.org; linux-fsde...@vger.kernel.org; > >

Re: [PATCH v2 1/3] device property: add spaces to PROPERTY_ENTRY_STRING macro

2015-12-29 Thread Andy Shevchenko
On Wed, Dec 30, 2015 at 3:49 AM, Rafael J. Wysocki wrote: > On Monday, December 28, 2015 01:24:13 PM Andy Shevchenko wrote: >> On Mon, 2015-12-28 at 02:12 +0100, Rafael J. Wysocki wrote: >> > On Wednesday, December 23, 2015 03:34:42 PM Andy Shevchenko wrote: >> > > Just a

[PATCH 2/3] rtc: s5m: Add separate field for storing auto-cleared mask in register config

2015-12-29 Thread Krzysztof Kozlowski
Some devices from S2M/S5M family use different register update masks for different operations (alarm and register update). Now the driver uses common register configuration and a lot of exceptions per device in code. Before eliminating the exceptions and using specific register configuration for

[PATCH 3/3] rtc: s5m: Make register configuration per S2MPS device to remove exceptions

2015-12-29 Thread Krzysztof Kozlowski
Before updating time and alarm the driver must set appropriate mask in UDR register. For that purpose the driver uses common register configuration and a lot of exceptions per device in the code. The exceptions are not obvious, for example except the change in the logic sometimes the fields are

Re: nf_unregister_net_hook: hook not found!

2015-12-29 Thread Eric W. Biederman
Pablo Neira Ayuso writes: > On Mon, Dec 28, 2015 at 09:05:03PM +0100, Sander Eikelenboom wrote: >> Hi, >> >> Running a 4.4.0-rc6 kernel i encountered the warning below. > > Cc'ing Eric Biederman. > > @Sander, could you provide a way to reproduce this? I am on vacation

Re: [PATCH 3/3] rtc: s5m: Make register configuration per S2MPS device to remove exceptions

2015-12-29 Thread Yadwinder Singh Brar
Hi Krysztof, On Tue, Dec 29, 2015 at 5:53 PM, Krzysztof Kozlowski wrote: > Before updating time and alarm the driver must set appropriate mask in > UDR register. For that purpose the driver uses common register > configuration and a lot of exceptions per device in the

Re: timerfd_settime/timerfd_gettime issue ?

2015-12-29 Thread Helge Deller
On 29.12.2015 10:44, Thomas Gleixner wrote: > On Sat, 26 Dec 2015, Helge Deller wrote: >> I see a strange behavior on the parisc platform, for which I'm not sure if >> it's intended or if there is a bug somewhere. > >> The program calls timerfd_settime() and sets a timer (e.g. sec=0, >>

Re: [PATCH v2 0/3] bpf: hash: use per-bucket spinlock

2015-12-29 Thread David Miller
From: Ming Lei Date: Tue, 29 Dec 2015 22:40:24 +0800 > Hi, > > This patchset tries to optimize ebpf hash map, and follows > the idea: > > Both htab_map_update_elem() and htab_map_delete_elem() > can be called from eBPF program, and they may be in kernel >

[PATCH v3 2/4] selftests/seccomp: Remove the need for HAVE_ARCH_TRACEHOOK

2015-12-29 Thread Mickaël Salaün
Some architectures do not implement PTRACE_GETREGSET nor PTRACE_SETREGSET (required by HAVE_ARCH_TRACEHOOK) but only implement PTRACE_GETREGS and PTRACE_SETREGS (e.g. User-mode Linux). This improve seccomp selftest portability for architectures without HAVE_ARCH_TRACEHOOK support by defining a

[PATCH v3 1/4] um: Fix ptrace GETREGS/SETREGS bugs

2015-12-29 Thread Mickaël Salaün
This fix two related bugs: * PTRACE_GETREGS doesn't get the right orig_ax (syscall) value * PTRACE_SETREGS can't set the orig_ax value (erased by initial value) Get rid of the now useless and error-prone get_syscall(). Fix inconsistent behavior in the ptrace implementation for i386 when updating

[PATCH 1/2] mmc-sdricoh_cs: Delete unnecessary variable initialisations in sdricoh_init_mmc()

2015-12-29 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 29 Dec 2015 21:11:45 +0100 These variables will eventually be set to an appropriate value a bit later. * host * iobase * result Thus let us omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring

Re: [RESEND PATCH v1 0/4] Add support emac for the RK3036 SoC platform

2015-12-29 Thread Heiko Stübner
Hi Dave, Am Dienstag, 29. Dezember 2015, 15:53:14 schrieb David Miller: > You have to submit this series properly, the same problem happend twice > now. > > When you submit a series you should: > > 1) Make it clear which tree you expect these changes to be applied >to. Here it is

  1   2   3   4   5   6   7   8   >