KASAN: use-after-free Read in __pm_runtime_resume

2019-08-02 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:e96407b4 usb-fuzzer: main usb gadget fuzzer driver git tree: https://github.com/google/kasan.git usb-fuzzer console output: https://syzkaller.appspot.com/x/log.txt?x=146071b460 kernel config:

[PATCH] mkiss: Use refcount_t for refcount

2019-08-02 Thread Chuhong Yuan
refcount_t is better for reference counters since its implementation can prevent overflows. So convert atomic_t ref counters to refcount_t. Signed-off-by: Chuhong Yuan --- drivers/net/hamradio/mkiss.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

[PATCH] niu: Use refcount_t for refcount

2019-08-02 Thread Chuhong Yuan
refcount_t is better for reference counters since its implementation can prevent overflows. So convert atomic_t ref counters to refcount_t. Also convert refcount from 0-based to 1-based. Signed-off-by: Chuhong Yuan --- drivers/net/ethernet/sun/niu.c | 6 +++--- drivers/net/ethernet/sun/niu.h |

[PATCH v3] sched/fair: use utilization to select misfit task

2019-08-02 Thread Vincent Guittot
utilization is used to detect a misfit task but the load is then used to select the task on the CPU which can lead to select a small task with high weight instead of the task that triggered the misfit migration. Signed-off-by: Vincent Guittot --- Keep tracking load instead of utilization but

[PATCH v6 23/24] erofs: introduce cached decompression

2019-08-02 Thread Gao Xiang
This patch adds strategies which can be selected by users in order to cache both incomplete ends of compressed physical clusters as a complement of in-place I/O in order to boost random read, but it costs more memory than the in-place I/O only. Signed-off-by: Gao Xiang --- fs/erofs/internal.h |

Re: [PATCH 1/2] i915: convert to new mount API

2019-08-02 Thread Chris Wilson
Quoting Sergey Senozhatsky (2019-08-02 13:39:55) > tmpfs does not set ->remount_fs() anymore and its users need > to be converted to new mount API. > > BUG: kernel NULL pointer dereference, address: > PF: supervisor instruction fetch in kernel mode > PF: error_code(0x0010) -

[PATCH v6 21/24] erofs: introduce LZ4 decompression inplace

2019-08-02 Thread Gao Xiang
compressed data will be usually loaded into last pages of the extent (the last page for 4k) for in-place decompression (more specifically, in-place IO), as ilustration below, start of compressed logical extent | end of this logical extent |

[PATCH v6 19/24] erofs: add erofs_allocpage()

2019-08-02 Thread Gao Xiang
This patch introduces an temporary _on-stack_ page pool to reuse the freed page directly as much as it can for better performance and release all pages at a time, it also slightly reduces the possibility of the potential memory allocation failure. Signed-off-by: Gao Xiang ---

[PATCH v5 2/3] i2c: piix4: Fix probing of reserved ports on AMD Family 16h Model 30h

2019-08-02 Thread Jean Delvare
Prevent bus timeouts and resets on Family 16h Model 30h by not probing reserved Ports 3 and 4. According to the AMD BIOS and Kernel Developer's Guides (BKDG), Port 3 and Port 4 are reserved on the following devices: - Family 15h Model 60h-6Fh - Family 15h Model 70h-7Fh - Family 16h Model

[PATCH v5 3/3] i2c: piix4: Add ACPI support

2019-08-02 Thread Jean Delvare
Enable the i2c-piix4 SMBus controller driver to enumerate I2C slave devices using ACPI. It builds on the related I2C mux device work in commit 8eb5c87a92c0 ("i2c: add ACPI support for I2C mux ports") In the i2c-piix4 driver the adapters are enumerated as: Main SMBus adapter Port 0, Port 2, ...,

[PATCH v6 20/24] erofs: introduce generic decompression backend

2019-08-02 Thread Gao Xiang
This patch adds decompression backend to EROFS, which supports uncompressed and LZ4 compressed data. For compressed data, it uses the following strategy: 1) If outputsize is very small (totally less than a threshold), decompress to the per-CPU buffer and do memcpy directly in order to avoid

[PATCH v5 1/3] i2c: piix4: Fix port selection for AMD Family 16h Model 30h

2019-08-02 Thread Jean Delvare
From: Andrew Cooks Family 16h Model 30h SMBus controller needs the same port selection fix as described and fixed in commit 0fe16195f891 ("i2c: piix4: Fix SMBus port selection for AMD Family 17h chips") commit 6befa3fde65f ("i2c: piix4: Support alternative port selection register") also fixed

[PATCH v5 0/3] Enable ACPI-defined peripherals on i2c-piix4 SMBus

2019-08-02 Thread Jean Delvare
These patches fix a couple of issues with the i2c-piix4 driver on AMD Family 16h Model 30h SoCs and add ACPI-based enumeration to the i2c-piix4 driver. Some I2C peripherals, eg. PCA953x IO expander, are not discovered by the probe or detect mechanisms when attached to an SMBus controller that

Re: [PATCH v2 1/2] fork: extend clone3() to support CLONE_SET_TID

2019-08-02 Thread Oleg Nesterov
On 08/02, Adrian Reber wrote: > > On Wed, Jul 31, 2019 at 07:41:36PM +0200, Oleg Nesterov wrote: > > But the main question is how it can really help if ns->level > 0, unlikely > > CRIU will ever need to clone the process with the same pid_nr == set_tid > > in the ns->parent chain. > > Not sure I

Re: [PATCH 8/9] phy: ti: am654-serdes: Don't reference clk_init_data after registration

2019-08-02 Thread Kishon Vijay Abraham I
On 01/08/19 1:05 AM, Stephen Boyd wrote: > A future patch is going to change semantics of clk_register() so that > clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid > referencing this member here so that we don't run into NULL pointer > exceptions. > > Cc: Roger Quadros >

Re: [PATCH V2 7/9] vhost: do not use RCU to synchronize MMU notifier with worker

2019-08-02 Thread Jason Gunthorpe
On Fri, Aug 02, 2019 at 05:40:07PM +0800, Jason Wang wrote: > > This must be a proper barrier, like a spinlock, mutex, or > > synchronize_rcu. > > > I start with synchronize_rcu() but both you and Michael raise some > concern. I've also idly wondered if calling synchronize_rcu() under the

Re: [RFC PATCH v2 0/4] Input: mpr121-polled: Add polled driver for MPR121

2019-08-02 Thread Michal Vokáč
On 02. 08. 19 1:49, Dmitry Torokhov wrote: On Tue, Jul 30, 2019 at 11:25:49AM +0200, Michal Vokáč wrote: On 27. 07. 19 9:31, Dmitry Torokhov wrote: On Fri, Jul 26, 2019 at 01:31:31PM +0200, Michal Vokáč wrote: On 25. 07. 19 16:40, Dmitry Torokhov wrote: On Thu, Jul 25, 2019 at 02:58:02PM

Re: [PATCH 0/5] Fix FIFO-99 abuse

2019-08-02 Thread Peter Zijlstra
On Fri, Aug 02, 2019 at 11:26:12AM +0100, Qais Yousef wrote: > Yes a somewhat enforced default makes more sense to me. I assume you no longer > want to put the kthreads that just need to be above OTHER in FIFO-1? I'm not sure, maybe, there's not that many of them, but possibly we add another

Re: [PATCH 00/34] put_user_pages(): miscellaneous call sites

2019-08-02 Thread Jan Kara
On Fri 02-08-19 11:12:44, Michal Hocko wrote: > On Thu 01-08-19 19:19:31, john.hubb...@gmail.com wrote: > [...] > > 2) Convert all of the call sites for get_user_pages*(), to > > invoke put_user_page*(), instead of put_page(). This involves dozens of > > call sites, and will take some time. > >

Re: [PATCH v7 07/20] clk: tegra: clk-periph: Add save and restore support

2019-08-02 Thread Dmitry Osipenko
02.08.2019 2:49, Sowjanya Komatineni пишет: > > On 8/1/19 4:19 PM, Sowjanya Komatineni wrote: >> >> On 8/1/19 2:30 PM, Sowjanya Komatineni wrote: >>> >>> On 8/1/19 1:54 PM, Dmitry Osipenko wrote: 01.08.2019 23:31, Sowjanya Komatineni пишет: > On 8/1/19 1:17 PM, Dmitry Osipenko wrote:

Re: [RFC PATCH] compiler_attributes.h: Add 'fallthrough' pseudo keyword for switch/case use

2019-08-02 Thread Pavel Machek
On Fri 2019-08-02 07:00:42, Neil Horman wrote: > On Thu, Aug 01, 2019 at 10:26:29PM +0200, Miguel Ojeda wrote: > > On Thu, Aug 1, 2019 at 10:10 PM wrote: > > > > > > I'm not disagreeing... I think using a macro makes sense. > > > > It is either a macro or waiting for 5+ years (while we keep

Re: memory leak in tipc_group_create_member

2019-08-02 Thread Ying Xue
On 8/2/19 3:44 PM, Hillf Danton wrote: > > On Thu, 01 Aug 2019 19:38:06 -0700 >> Hello, >> >> syzbot found the following crash on: >> >> HEAD commit:a9815a4f Merge branch 'x86-urgent-for-linus' of git://git... >> git tree: upstream >> console output:

Re: [PATCH v7 07/20] clk: tegra: clk-periph: Add save and restore support

2019-08-02 Thread Dmitry Osipenko
31.07.2019 3:20, Sowjanya Komatineni пишет: > This patch implements save and restore context for peripheral fixed > clock ops, peripheral gate clock ops, sdmmc mux clock ops, and > peripheral clock ops. > > During system suspend, core power goes off and looses the settings > of the Tegra CAR

Dear Friend,

2019-08-02 Thread Aisha Gaddafi
Dear Friend, I came across your e-mail contact prior a private search while in need of your assistance. My name is Aisha Gaddafi a single Mother and a Widow with three Children. I am the only biological Daughter of late Libyan President (Late Colonel Muammar Gaddafi). I have investment funds

Re: [PATCH 1/1] pseries/hotplug-memory.c: Replace nested ifs by switch-case

2019-08-02 Thread Michael Ellerman
Leonardo Bras writes: > I noticed these nested ifs can be easily replaced by switch-cases, > which can improve readability. > > Signed-off-by: Leonardo Bras > --- > .../platforms/pseries/hotplug-memory.c| 26 +-- > 1 file changed, 18 insertions(+), 8 deletions(-)

Re: [PATCH v3 4/4] serial: 8250: Don't check for mctrl_gpio_init() returning -ENOSYS

2019-08-02 Thread Greg Kroah-Hartman
On Fri, Aug 02, 2019 at 02:15:55PM +0200, Uwe Kleine-König wrote: > On Fri, Aug 02, 2019 at 10:04:11AM +, Schrempf Frieder wrote: > > From: Frieder Schrempf > > > > Now that the mctrl_gpio code returns NULL instead of ERR_PTR(-ENOSYS) > > if CONFIG_GPIOLIB is disabled, we can safely remove

Re: [PATCH v2] PCI: rpaphp: Avoid a sometimes-uninitialized warning

2019-08-02 Thread Michael Ellerman
Bjorn Helgaas writes: > On Mon, Jul 22, 2019 at 02:05:12PM +1000, Michael Ellerman wrote: >> Nathan Chancellor writes: >> > On Mon, Jun 03, 2019 at 03:11:58PM -0700, Nathan Chancellor wrote: >> >> When building with -Wsometimes-uninitialized, clang warns: >> >> >> >>

[PATCH] arm64: defconfig: CONFIG_DRM_ETNAVIV=m

2019-08-02 Thread Christian Gmeiner
For imx8 we want to enable etnaviv, let's enable it in defconfig, it will be useful to have it enabled for KernelCI boot and runtime testing. Signed-off-by: Christian Gmeiner --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig

Re: [RFC PATCH 15/40] soundwire: cadence_master: handle multiple status reports per Slave

2019-08-02 Thread Vinod Koul
On 25-07-19, 18:40, Pierre-Louis Bossart wrote: > When a Slave reports multiple status in the sticky bits, find the > latest configuration from the mirror of the PING frame status and > update the status directly. > > Signed-off-by: Pierre-Louis Bossart > --- >

Re: [PATCH v3 4/4] serial: 8250: Don't check for mctrl_gpio_init() returning -ENOSYS

2019-08-02 Thread Uwe Kleine-König
On Fri, Aug 02, 2019 at 10:04:11AM +, Schrempf Frieder wrote: > From: Frieder Schrempf > > Now that the mctrl_gpio code returns NULL instead of ERR_PTR(-ENOSYS) > if CONFIG_GPIOLIB is disabled, we can safely remove this check. > > Signed-off-by: Frieder Schrempf Acked-by: Uwe Kleine-König

Re: [PATCH 01/12] rdmacg: Replace strncmp with str_has_prefix

2019-08-02 Thread Michael Ellerman
Chuhong Yuan writes: > Chuhong Yuan 于2019年7月30日周二 下午2:39写道: >> Kees Cook 于2019年7月30日周二 下午12:26写道: >> > On Mon, Jul 29, 2019 at 11:13:46PM +0800, Chuhong Yuan wrote: >> > > strncmp(str, const, len) is error-prone. >> > > We had better use newly introduced >> > > str_has_prefix() instead of it.

Re: [RFC PATCH 14/40] soundwire: cadence_master: fix definitions for INTSTAT0/1

2019-08-02 Thread Vinod Koul
On 25-07-19, 18:40, Pierre-Louis Bossart wrote: > Two off-by-one errors: INTSTAT0 missed BIT(31) and INTSTAT1 is only > defined on first 16 bits. Applied, thanks -- ~Vinod

Re: [RFC PATCH 13/40] soundwire: cadence_master: fix register definition for SLAVE_STATE

2019-08-02 Thread Vinod Koul
On 25-07-19, 18:40, Pierre-Louis Bossart wrote: > wrong prefix and wrong macro. Applied, thanks -- ~Vinod

Re: [PATCH v3 3/4] serial: sh-sci: Don't check for mctrl_gpio_init() returning -ENOSYS

2019-08-02 Thread Uwe Kleine-König
On Fri, Aug 02, 2019 at 10:04:10AM +, Schrempf Frieder wrote: > From: Frieder Schrempf > > Now that the mctrl_gpio code returns NULL instead of ERR_PTR(-ENOSYS) > if CONFIG_GPIOLIB is disabled, we can safely remove this check. > > Signed-off-by: Frieder Schrempf Acked-by: Uwe Kleine-König

Re: [PATCH v3 2/4] serial: mctrl_gpio: Add a NULL check to mctrl_gpio_to_gpiod()

2019-08-02 Thread Uwe Kleine-König
On Fri, Aug 02, 2019 at 10:04:10AM +, Schrempf Frieder wrote: > From: Frieder Schrempf > > As it is allowed to use the mctrl_gpio_* functions before > initialization (as the 8250 driver does according to 434be0ae7aa7), Actually I was surprised some time ago that 8250 used serial_mctrl

Re: [RFC PATCH 12/40] soundwire: cadence_master: revisit interrupt settings

2019-08-02 Thread Vinod Koul
On 25-07-19, 18:40, Pierre-Louis Bossart wrote: > Adding missing interrupt masks (parity, etc) and missing checks. > Clarify which masks are for which usage. > > Signed-off-by: Bard Liao > Signed-off-by: Pierre-Louis Bossart > --- > drivers/soundwire/cadence_master.c | 25

[PATCH] net/mlx5e: Use refcount_t for refcount

2019-08-02 Thread Chuhong Yuan
refcount_t is better for reference counters since its implementation can prevent overflows. So convert atomic_t ref counters to refcount_t. Signed-off-by: Chuhong Yuan --- drivers/net/ethernet/mellanox/mlx5/core/lib/vxlan.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff

[PATCH] net/mlx4_core: Use refcount_t for refcount

2019-08-02 Thread Chuhong Yuan
refcount_t is better for reference counters since its implementation can prevent overflows. So convert atomic_t ref counters to refcount_t. Also convert refcount from 0-based to 1-based. Signed-off-by: Chuhong Yuan --- .../ethernet/mellanox/mlx4/resource_tracker.c | 90 +-- 1

[PATCH 1/3] mlx5: Use refcount_t for refcount

2019-08-02 Thread Chuhong Yuan
refcount_t is better for reference counters since its implementation can prevent overflows. So convert atomic_t ref counters to refcount_t. Signed-off-by: Chuhong Yuan --- include/linux/mlx5/driver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mlx5/driver.h

[PATCH 2/3] net/mlx5: Use refcount_() APIs

2019-08-02 Thread Chuhong Yuan
This patch depends on PATCH 1/3. After converting refcount to refcount_t, use refcount_() APIs to operate it. Signed-off-by: Chuhong Yuan --- drivers/net/ethernet/mellanox/mlx5/core/qp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 0/3] Use refcount_t for refcount

2019-08-02 Thread Chuhong Yuan
Reference counters are preferred to use refcount_t instead of atomic_t. This is because the implementation of refcount_t can prevent overflows and detect possible use-after-free. First convert the refcount field to refcount_t in mlx5/driver.h. Then convert the uses to refcount_() APIs. Chuhong

[PATCH 3/3] IB/mlx5: Use refcount_() APIs

2019-08-02 Thread Chuhong Yuan
This patch depends on PATCH 1/3. After converting refcount to refcount_t, use refcount_() APIs to operate it. Signed-off-by: Chuhong Yuan --- drivers/infiniband/hw/mlx5/srq_cmd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/infiniband/hw/mlx5/srq_cmd.c

[PATCH] Bluetooth: btrtl: Save firmware and config

2019-08-02 Thread Alex Lu
From: Alex Lu usb reset resume will cause downloading firmware again and requesting firmware may be failed while host is resuming Signed-off-by: Alex Lu --- drivers/bluetooth/btrtl.c | 77 +-- 1 file changed, 73 insertions(+), 4 deletions(-) diff --git

Re: [RFC PATCH 11/40] soundwire: cadence_master: simplify bus clash interrupt clear

2019-08-02 Thread Vinod Koul
On 25-07-19, 18:40, Pierre-Louis Bossart wrote: > The bus clash interrupts are generated when the status is one, and > also cleared by writing a one. It's overkill/useless to use an OR when > the bit is already set. IIRC we were supposed to have different variable and that was the reason for

Re: [PATCH v3 1/4] serial: mctrl_gpio: Avoid probe failures in case of missing gpiolib

2019-08-02 Thread Uwe Kleine-König
On Fri, Aug 02, 2019 at 10:04:09AM +, Schrempf Frieder wrote: > From: Frieder Schrempf > > If CONFIG_GPIOLIB is not enabled, mctrl_gpio_init() and > mctrl_gpio_init_noauto() will currently return an error pointer with > -ENOSYS. As the mctrl GPIOs are usually optional, drivers need to >

Re: [PATCH V13 12/12] PCI: tegra: Add Tegra194 PCIe support

2019-08-02 Thread Vidya Sagar
On 7/30/2019 9:19 PM, Lorenzo Pieralisi wrote: On Tue, Jul 23, 2019 at 08:14:08PM +0530, Vidya Sagar wrote: On 7/16/2019 4:52 PM, Lorenzo Pieralisi wrote: On Sat, Jul 13, 2019 at 12:34:34PM +0530, Vidya Sagar wrote: [...] +static int tegra_pcie_bpmp_set_ctrl_state(struct tegra_pcie_dw

Re: [RFC PATCH 2/3] mm, compaction: use MIN_COMPACT_COSTLY_PRIORITY everywhere for costly orders

2019-08-02 Thread Vlastimil Babka
On 8/1/19 10:33 PM, Mike Kravetz wrote: > On 8/1/19 6:01 AM, Vlastimil Babka wrote: >> Could you try testing the patch below instead? It should hopefully >> eliminate the stalls. If it makes hugepage allocation give up too early, >> we'll know we have to involve __GFP_RETRY_MAYFAIL in allowing

Re: [RFC PATCH 09/40] soundwire: cadence_master: fix usage of CONFIG_UPDATE

2019-08-02 Thread Vinod Koul
On 25-07-19, 18:40, Pierre-Louis Bossart wrote: > int sdw_cdns_enable_interrupt(struct sdw_cdns *cdns) > { > - int ret; > - > _cdns_enable_interrupt(cdns); > - ret = cdns_clear_bit(cdns, CDNS_MCP_CONFIG_UPDATE, > - CDNS_MCP_CONFIG_UPDATE_BIT); > - if

Re: [PATCH -next] iwlwifi: dbg: work around clang bug by marking debug strings static

2019-08-02 Thread Michael Ellerman
Johannes Berg writes: >> Luca, you said this was already fixed in your internal tree, and the fix >> would appear soon in next, but I don't see anything in linux-next? > > Luca is still on vacation, but I just sent out a version of the patch we > had applied internally. Awesome, thanks. cheers

Re: [PATCH] drm/imx: Drop unused imx-ipuv3-crtc.o build

2019-08-02 Thread Philipp Zabel
Hi Guido, Fabio, On Fri, 2019-08-02 at 08:03 -0300, Fabio Estevam wrote: > Hi Guido, > > Good catch! > > On Fri, Aug 2, 2019 at 7:55 AM Guido Günther wrote: > > > > Since > > > > commit 3d1df96ad468 ("drm/imx: merge imx-drm-core and ipuv3-crtc in one > > module") > > > > imx-ipuv3-crtc.o

Re: [patch 2/5] x86/kvm: Handle task_work on VMENTER/EXIT

2019-08-02 Thread Oleg Nesterov
On 08/01, Thomas Gleixner wrote: > > On Thu, 1 Aug 2019, Oleg Nesterov wrote: > > On 08/01, Thomas Gleixner wrote: > > > > > > @@ -8172,6 +8174,10 @@ static int vcpu_run(struct kvm_vcpu *vcp > > > ++vcpu->stat.signal_exits; > > > break; > > > } > > > +

[PATCH v2] Bluetooth: btusb: Fix suspend issue for Realtek devices

2019-08-02 Thread Alex Lu
From: Alex Lu >From the perspective of controller, global suspend means there is no SET_FEATURE (DEVICE_REMOTE_WAKEUP) and controller would drop the firmware. It would consume less power. So we should not send this kind of SET_FEATURE when host goes to suspend state. Otherwise, when making

Re: [RFC PATCH 08/40] soundwire: intel: remove BIOS work-arounds

2019-08-02 Thread Vinod Koul
On 25-07-19, 18:40, Pierre-Louis Bossart wrote: > the values passed by all existing BIOS are fine, let's use them as is. > The existing code must have been needed only on early prototypes. Thanks for this, I am applying this. > > Signed-off-by: Pierre-Louis Bossart > --- >

Re: [RFC PATCH 07/40] soundwire: intel: fix channel number reported by hardware

2019-08-02 Thread Vinod Koul
On 25-07-19, 18:39, Pierre-Louis Bossart wrote: > PDI2 reports an invalid count, force the correct hardware-supported > value > > Signed-off-by: Pierre-Louis Bossart > --- > drivers/soundwire/intel.c | 9 + > 1 file changed, 9 insertions(+) > > diff --git a/drivers/soundwire/intel.c

Re: [RFC PATCH 06/40] soundwire: intel: prevent possible dereference in hw_params

2019-08-02 Thread Vinod Koul
On 25-07-19, 18:39, Pierre-Louis Bossart wrote: > This should not happen in production systems but we should test for > all callback arguments before invoking the config_stream callback. so you are saying callback arg is mandatory, if so please document that assumption > Signed-off-by:

Re: [RFC PATCH 05/40] soundwire: intel: move interrupt enable after interrupt handler registration

2019-08-02 Thread Vinod Koul
On 25-07-19, 18:39, Pierre-Louis Bossart wrote: > Not sure why the existing code would enable interrupts without the > ability to deal with them. > > Signed-off-by: Pierre-Louis Bossart > --- > drivers/soundwire/intel.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git

Re: [RFC PATCH 03/40] soundwire: cadence_master: align debugfs to 8 digits

2019-08-02 Thread Vinod Koul
On 25-07-19, 18:39, Pierre-Louis Bossart wrote: > SQUASHME Git trick! commit this using: git fixup where sha1 is commit where you want this to be squashed into! then below will suuash them for you! git rebase -i --autosquash > > Signed-off-by: Pierre-Louis Bossart > --- >

Re: [PATCH] peak_usb: Fix info-leaks to USB devices

2019-08-02 Thread Marc Kleine-Budde
On 7/31/19 4:54 PM, Tomas Bortoli wrote: > Uninitialized Kernel memory can leak to USB devices. > > Fix by using kzalloc() instead of kmalloc() on the affected buffers. > > Signed-off-by: Tomas Bortoli > Reported-by: syzbot+d6a5a1a3657b596ef...@syzkaller.appspotmail.com > Reported-by:

Re: [PATCH v2 02/10] gcov: Replace strncmp with str_has_prefix

2019-08-02 Thread Peter Oberparleiter
On 02.08.2019 03:46, Chuhong Yuan wrote: > strncmp(str, const, len) is error-prone because len > is easy to have typo. > The example is the hard-coded len has counting error > or sizeof(const) forgets - 1. > So we prefer using newly introduced str_has_prefix > to substitute such strncmp. > >

Re: [PATCH RFC] mm/memcontrol: reclaim severe usage over high limit in get_user_pages loop

2019-08-02 Thread Michal Hocko
On Fri 02-08-19 13:01:07, Konstantin Khlebnikov wrote: > > > On 02.08.2019 12:40, Michal Hocko wrote: > > On Mon 29-07-19 20:55:09, Michal Hocko wrote: > > > On Mon 29-07-19 11:49:52, Johannes Weiner wrote: > > > > On Sun, Jul 28, 2019 at 03:29:38PM +0300, Konstantin Khlebnikov wrote: > > > > >

[PATCH v4 2/2] iio: light: noa1305: Add support for NOA1305

2019-08-02 Thread Martyn Welch
This driver adds the initial support for the ON Semiconductor NOA1305 Ambient Light Sensor. Originally written by Sergei Miroshnichenko. Found here: https://github.com/EmcraftSystems/linux-upstream/commit/196d6cf897e632d2cb82d45484bd7a1bfdd5b6d9 Signed-off-by: Sergei M Signed-off-by: Martyn

[PATCH v4 1/2] dt-bindings: Add binding document for NOA1305

2019-08-02 Thread Martyn Welch
Document the ON Semiconductor NOA1305 ambient light sensor devicetree bindings. Signed-off-by: Martyn Welch Reviewed-by: Rob Herring --- Changes: v2: Same as v1. v3: Same as v2. v4: Same as v3. .../bindings/iio/light/noa1305.yaml | 44 +++ 1 file changed, 44

Re: [PATCH 4.14 43/43] tipc: pass tunnel dev as NULL to udp_tunnel(6)_xmit_skb

2019-08-02 Thread gre...@linuxfoundation.org
On Fri, Aug 02, 2019 at 11:03:15AM +, Rantala, Tommi T. (Nokia - FI/Espoo) wrote: > On Fri, 2019-08-02 at 09:28 +0200, gre...@linuxfoundation.org wrote: > > On Thu, Aug 01, 2019 at 10:17:30AM +, Rantala, Tommi T. (Nokia - > > FI/Espoo) wrote: > > > Hi, > > > > > > This tipc patch added

RE: [PATCH][net-next] net/mlx5: remove self-assignment on esw->dev

2019-08-02 Thread Parav Pandit
> -Original Message- > From: linux-rdma-ow...@vger.kernel.org ow...@vger.kernel.org> On Behalf Of Colin King > Sent: Friday, August 2, 2019 3:52 PM > To: Saeed Mahameed ; Leon Romanovsky > ; David S . Miller ; > net...@vger.kernel.org; linux-r...@vger.kernel.org > Cc:

Re: Linux 4.9.180 build fails with gcc 9 and 'cleanup_module' specifies less restrictive attribute than its target …

2019-08-02 Thread Greg KH
On Fri, Aug 02, 2019 at 12:39:38PM +0200, Miguel Ojeda wrote: > On Fri, Aug 2, 2019 at 12:33 PM Greg KH wrote: > > > > On Fri, Aug 02, 2019 at 12:19:33PM +0200, Miguel Ojeda wrote: > > > On Fri, Aug 2, 2019 at 10:17 AM Rolf Eike Beer wrote: > > > > > > > > Am Samstag, 8. Juni 2019, 14:00:34 CEST

Re: Linux 4.9.180 build fails with gcc 9 and 'cleanup_module' specifies less restrictive attribute than its target …

2019-08-02 Thread Greg KH
On Fri, Aug 02, 2019 at 01:00:30PM +0200, Miguel Ojeda wrote: > On Fri, Aug 2, 2019 at 12:33 PM Greg KH wrote: > > > > On Fri, Aug 02, 2019 at 12:19:33PM +0200, Miguel Ojeda wrote: > > > On Fri, Aug 2, 2019 at 10:17 AM Rolf Eike Beer wrote: > > > > > > > > Am Samstag, 8. Juni 2019, 14:00:34 CEST

Applied "spi: Remove dev_err() usage after platform_get_irq()" to the spi tree

2019-08-02 Thread Mark Brown
The patch spi: Remove dev_err() usage after platform_get_irq() has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours)

Applied "ASoC: Remove dev_err() usage after platform_get_irq()" to the asoc tree

2019-08-02 Thread Mark Brown
The patch ASoC: Remove dev_err() usage after platform_get_irq() has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Applied "spi: Reduce kthread priority" to the spi tree

2019-08-02 Thread Mark Brown
The patch spi: Reduce kthread priority has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus

Applied "regulator: Remove dev_err() usage after platform_get_irq()" to the regulator tree

2019-08-02 Thread Mark Brown
The patch regulator: Remove dev_err() usage after platform_get_irq() has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in

[PATCH v2] scsi: ufs: Configure clock in .hce_enable_notify() in Cadence UFS

2019-08-02 Thread Anil Varughese
Configure CDNS_UFS_REG_HCLKDIV in .hce_enable_notify() instead of .setup_clock() because if UFSHCD resets the controller ip because of phy or device related errors then CDNS_UFS_REG_HCLKDIV is reset to default value and .setup_clock() is not called later in the sequence whereas .hce_enable_notify

Re: [RFC v4 0/8] TurboSched: A scheduler for sustaining Turbo Frequencies for longer durations

2019-08-02 Thread Parth Shah
On 7/31/19 11:02 PM, Pavel Machek wrote: > Hi! > Abstract The modern servers allows multiple cores to run at range of frequencies higher than rated range of frequencies. But the power budget of the system inhibits sustaining these higher frequencies for

Re: [alsa-devel] [PATCH v2 3/3] ASoC: TDA7802: Add turn-on diagnostic routine

2019-08-02 Thread Mark Brown
On Fri, Aug 02, 2019 at 09:32:17AM +0100, Thomas Preston wrote: > On 02/08/2019 00:42, Mark Brown wrote: > > Yes, that's definitely doable - we've got some other drivers with > > similar things like calibration triggers exposed that way. > One problem with using a kcontrol as a trigger for the

Re: [PATCH v2 7/7] n_tty: Provide an informational line on VSTATUS receipt

2019-08-02 Thread Arseny Maslennikov
Sorry for the delay, yesterday was rough. On Thu, Aug 01, 2019 at 11:20:20AM +0200, Greg Kroah-Hartman wrote: > On Thu, Aug 01, 2019 at 01:23:59AM +0300, Arseny Maslennikov wrote: > > On Tue, Jul 30, 2019 at 06:19:40PM +0200, Greg Kroah-Hartman wrote: > > > On Tue, Jun 25, 2019 at 07:11:53PM

Re: [Regression] Commit "nvme/pci: Use host managed power state for suspend" has problems

2019-08-02 Thread Rafael J. Wysocki
On Fri, Aug 2, 2019 at 12:55 PM Kai-Heng Feng wrote: > > at 06:26, Rafael J. Wysocki wrote: > > > On Thu, Aug 1, 2019 at 9:05 PM wrote: > >>> -Original Message- > >>> From: Rafael J. Wysocki > >>> Sent: Thursday, August 1, 2019 12:30 PM > >>> To: Kai-Heng Feng; Keith Busch;

Re: [PATCH 4.14 43/43] tipc: pass tunnel dev as NULL to udp_tunnel(6)_xmit_skb

2019-08-02 Thread Rantala, Tommi T. (Nokia - FI/Espoo)
On Fri, 2019-08-02 at 09:28 +0200, gre...@linuxfoundation.org wrote: > On Thu, Aug 01, 2019 at 10:17:30AM +, Rantala, Tommi T. (Nokia - > FI/Espoo) wrote: > > Hi, > > > > This tipc patch added in 4.14.132 is triggering a crash for me, > > revert > > fixes it. > > > > Anyone have ideas if

Re: [PATCH] ext4: use rb_entry_safe() instead of open-coding it

2019-08-02 Thread Jan Kara
On Thu 25-07-19 21:16:58, Weitao Hou wrote: > use rb_entry_safe() to make it clean > > Signed-off-by: Weitao Hou Thanks for the patch. It looks good. You can add: Reviewed-by: Jan Kara Honza > --- > fs/ext4/extents_status.c |

Re: [PATCH] drm/imx: Drop unused imx-ipuv3-crtc.o build

2019-08-02 Thread Fabio Estevam
Hi Guido, Good catch! On Fri, Aug 2, 2019 at 7:55 AM Guido Günther wrote: > > Since > > commit 3d1df96ad468 ("drm/imx: merge imx-drm-core and ipuv3-crtc in one > module") > > imx-ipuv3-crtc.o is built via imxdrm-objs. So there's no need to keep an Actually, it is ipuv3-crtc.o that is built

Re: [RFC PATCH] compiler_attributes.h: Add 'fallthrough' pseudo keyword for switch/case use

2019-08-02 Thread Neil Horman
On Thu, Aug 01, 2019 at 10:26:29PM +0200, Miguel Ojeda wrote: > On Thu, Aug 1, 2019 at 10:10 PM wrote: > > > > I'm not disagreeing... I think using a macro makes sense. > > It is either a macro or waiting for 5+ years (while we keep using the > comment style) :-) > > In case it helps to make

Re: [External Email] Re: [PATCH v1 0/2] virtio-mmio: support multiple interrupt vectors

2019-08-02 Thread Sergio Lopez
李菲 writes: > On Wed, Jul 31, 2019 at 4:26 AM Michael S. Tsirkin wrote: >> >> On Mon, Jul 22, 2019 at 09:43:18PM +0800, 李菲 wrote: >> > On Mon, Jul 22, 2019 at 4:39 PM Michael S. Tsirkin wrote: >> > > >> > > On Mon, Jul 22, 2019 at 11:22:02AM +0800, 李菲 wrote: >> > > > On Fri, Jul 19, 2019 at

Re: Linux 4.9.180 build fails with gcc 9 and 'cleanup_module' specifies less restrictive attribute than its target …

2019-08-02 Thread Miguel Ojeda
On Fri, Aug 2, 2019 at 12:33 PM Greg KH wrote: > > On Fri, Aug 02, 2019 at 12:19:33PM +0200, Miguel Ojeda wrote: > > On Fri, Aug 2, 2019 at 10:17 AM Rolf Eike Beer wrote: > > > > > > Am Samstag, 8. Juni 2019, 14:00:34 CEST schrieb Miguel Ojeda: > > > > On Thu, Jun 6, 2019 at 8:59 PM Greg KH

Re: [PATCH 1/4] mailbox: arm_mhuv2: add device tree binding documentation

2019-08-02 Thread Sudeep Holla
On Sun, Jul 21, 2019 at 04:58:04PM -0500, Jassi Brar wrote: > On Wed, Jul 17, 2019 at 2:26 PM Tushar Khandelwal > wrote: > > > diff --git a/Documentation/devicetree/bindings/mailbox/arm,mhuv2.txt > > b/Documentation/devicetree/bindings/mailbox/arm,mhuv2.txt > > new file mode 100644 > > index

Re: [Regression] Commit "nvme/pci: Use host managed power state for suspend" has problems

2019-08-02 Thread Kai-Heng Feng
at 06:26, Rafael J. Wysocki wrote: On Thu, Aug 1, 2019 at 9:05 PM wrote: -Original Message- From: Rafael J. Wysocki Sent: Thursday, August 1, 2019 12:30 PM To: Kai-Heng Feng; Keith Busch; Limonciello, Mario Cc: Keith Busch; Christoph Hellwig; Sagi Grimberg; linux-nvme; Linux PM;

[PATCH] drm/imx: Drop unused imx-ipuv3-crtc.o build

2019-08-02 Thread Guido Günther
Since commit 3d1df96ad468 ("drm/imx: merge imx-drm-core and ipuv3-crtc in one module") imx-ipuv3-crtc.o is built via imxdrm-objs. So there's no need to keep an extra entry with a non existing config value (CONFIG_DRM_IMX_IPUV3). Signed-off-by: Guido Günther --- drivers/gpu/drm/imx/Makefile |

[PATCH 2/2] ixgbe: Use refcount_t for refcount

2019-08-02 Thread Chuhong Yuan
refcount_t is better for reference counters since its implementation can prevent overflows. So convert atomic_t ref counters to refcount_t. Also convert refcount from 0-based to 1-based. This patch depends on PATCH 1/2. Signed-off-by: Chuhong Yuan ---

[PATCH 1/2] ixgbe: Explicitly initialize reference count to 0

2019-08-02 Thread Chuhong Yuan
The driver does not explicitly call atomic_set to initialize refcount to 0. Add the call so that it will be more straight forward to convert refcount from atomic_t to refcount_t. Signed-off-by: Chuhong Yuan --- drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c | 1 + 1 file changed, 1 insertion(+)

Re: [PATCH 1/4] mailbox: arm_mhuv2: add device tree binding documentation

2019-08-02 Thread Sudeep Holla
On Thu, Jul 25, 2019 at 12:49:58AM -0500, Jassi Brar wrote: > On Sun, Jul 21, 2019 at 4:58 PM Jassi Brar wrote: > > [...] > > If the mhuv2 instance implements, say, 3 channel windows between > > sender (linux) and receiver (firmware), and Linux runs two protocols > > each requiring 1 and 2-word

RE: [PATCH V2 1/1] mmc: sdhci: Fix O2 Host data read/write DLL lock Phase shift issue

2019-08-02 Thread Chevron Li (WH)
Hi, Adrian, Firstly, really appreciate for your valuable suggestions. For your question that " Tuning will be executed whenever the system resumes, which is not an error. Can you explain when error recovery is needed, and how this patch works." We have blow questions need your help. 1. In

Re: [PATCH v2 8/8] sched/fair: use utilization to select misfit task

2019-08-02 Thread Valentin Schneider
On 02/08/2019 09:29, Vincent Guittot wrote: >> However what would be *even* better IMO would be: >> >> -8<- >> @@ -8853,6 +8853,7 @@ voluntary_active_balance(struct lb_env *env) >> return 1; >> } >> >> + /* XXX: make sure current is still a misfit

Re: ERROR: "vmf_insert_mixed" [drivers/gpu/drm/exynos/exynosdrm.ko] undefined!

2019-08-02 Thread Sam Ravnborg
Hi Inki On Fri, Aug 02, 2019 at 05:15:06PM +0900, Inki Dae wrote: > Hi, > > 19. 7. 25. 오전 7:35에 kbuild test robot 이(가) 쓴 글: > > tree: > > https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux.git > > master > > head: bed38c3e2dca01b358a62b5e73b46e875742fd75 > > commit:

[PATCH] cpufreq: schedutil: fix equation in comment

2019-08-02 Thread Qais Yousef
scale_irq_capacity() call in schedutil_cpu_util() does util *= (max - irq) util /= max But the comment says util *= (1 - irq) util /= max Fix the comment to match what the scaling function does. Signed-off-by: Qais Yousef --- kernel/sched/cpufreq_schedutil.c

Re: [PATCH v2 00/10] drivers, provide a way to add sysfs groups easily

2019-08-02 Thread Greg Kroah-Hartman
On Wed, Jul 31, 2019 at 06:10:45AM -0700, Dmitry Torokhov wrote: > On Wed, Jul 31, 2019 at 02:43:39PM +0200, Greg Kroah-Hartman wrote: > > This patch originally started out just as a way for platform drivers to > > easily add a sysfs group in a race-free way, but thanks to Dmitry's > > patch, this

[PATCH v3 4/8] ACPI: PM: s2idle: Switch EC over to polling during "noirq" suspend

2019-08-02 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Since the ACPI SCI is set up for system wakeup before the "noirq" suspend of devices, it is better to make suspend-to-idle follow suspend-to-RAM (S3) and switch over the EC to polling during "noirq" suspend (and back to interrupt-based flow during "noirq" resume). The

[PATCH v3 3/8] ACPI: PM: s2idle: Add acpi.sleep_no_lps0 module parameter

2019-08-02 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Add a module parameter to prevent the ACPI LPS0 _DSM functions from being invoked (if need be) and rework the suspend-to-idle blacklist entries in acpisleep_dmi_table[] to make them simply prevent suspend-to-idle from being used by default on the systems in question

[PATCH v3 1/8] ACPI: PM: Set up EC GPE for system wakeup from drivers that need it

2019-08-02 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The EC GPE needs to be set up for system wakeup only if there is a driver depending on it, either intel-hid or intel-vbtn, bound to a button device that is expected to wake up the system from sleep (such as the power button on some Dell systems, like the XPS13 9360). It

[PATCH v3 2/8] ACPI: PM: s2idle: Rearrange lps0_device_attach()

2019-08-02 Thread Rafael J. Wysocki
From: Rafael J. Wysocki To allow a subsequent change to be simpler, rearrange the code in lps0_device_attach() to reduce the indentation level and (while at it) make it avoid calling lpi_device_get_constraints() when lps0_device_handle is not going to be set. Signed-off-by: Rafael J. Wysocki

[PATCH v3 7/8] ACPI: EC: PM: Make acpi_ec_dispatch_gpe() print debug message

2019-08-02 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Add a pm_pr_dbg() debug statement to acpi_ec_dispatch_gpe() to print a message when the EC GPE has been dispatched (because its status was set). Signed-off-by: Rafael J. Wysocki --- In v2 this was patch 8. --- drivers/acpi/ec.c |6 +- 1 file changed, 5

[PATCH v3 6/8] ACPI: EC: PM: Consolidate some code depending on PM_SLEEP

2019-08-02 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Move some routines, including acpi_ec_dispatch_gpe(), that are only used if CONFIG_PM_SLEEP is set to the #ifdef block containing the EC suspend and resume callbacks, to make the "full EC PM picture" easier to follow. While at it, move the header of

[PATCH v3 5/8] ACPI: PM: s2idle: Eliminate acpi_sleep_no_ec_events()

2019-08-02 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Change acpi_ec_suspend() to use pm_suspend_no_platform() instead of acpi_sleep_no_ec_events(), which allows the latter to be eliminated along with the s2idle_in_progress variable which is only used by it. Signed-off-by: Rafael J. Wysocki --- In v2 this was patch 6.

[PATCH v3 0/8] PM / ACPI: sleep: Additional changes related to suspend-to-idle

2019-08-02 Thread Rafael J. Wysocki
Hi All, > > On top of the "Simplify the suspend-to-idle control flow" patch series > > posted previously: > > > > https://lore.kernel.org/lkml/71085220.z6FKkvYQPX@kreacher/ > > > > sanitize the suspend-to-idle flow even further. > > > > First off, decouple EC wakeup from the LPS0 _DSM

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