[RESEND][PATCH] iommu/vt-d: fix shift-out-of-bounds in bug checking

2018-04-27 Thread changbin . du
From: Changbin Du It allows to flush more than 4GB of device TLBs. So the mask should be 64bit wide. UBSAN captured this fault as below. [3.760024] [3.768440] UBSAN: Undefined behaviour in drivers/iommu/dma

[lkp-robot] [kthread/smpboot] cad8e99675: inconsistent{IN-HARDIRQ-W}->{HARDIRQ-ON-W}usage

2018-04-27 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-6): commit: cad8e9967526d263d9a4f04ca763b2d76c045750 ("kthread/smpboot: Serialize kthread parking against wakeup") url: https://github.com/0day-ci/linux/commits/Gaurav-Kohli/kthread-smpboot-Serialize-kthread-parking-against-wakeup/20180426-18

Re: [PATCH] ARM: BCM5301X: Fix NAND ECC parameters for Linksys Panamera

2018-04-27 Thread Rafał Miłecki
On 28 April 2018 at 06:19, Vivek Unune wrote: > On Fri, Apr 27, 2018 at 10:05 AM, Vivek Unune wrote: >> On Wed, Apr 25, 2018 at 11:02:04AM +0200, Rafał Miłecki wrote: >>> >>> The easiest solution: ignore all these "error -74 (ECC error) while >>> reading" errors (they may last for few minutes!).

Re: [PATCH v2] efi: Ignore unrealistically large option roms

2018-04-27 Thread Ard Biesheuvel
Hi Hans, On 27 April 2018 at 23:35, Hans de Goede wrote: > setup_efi_pci() tries to save a copy of each PCI option ROM as this may > be necessary for the device driver for the PCI device to have access too. > > On some systems the efi_pci_io_protocol_64's romimage and romsize fields > contain inv

Re: [PATCH 3.18 00/24] 3.18.107-stable review

2018-04-27 Thread Harsh Shandilya
On 28 April 2018 11:21:20 AM IST, Greg Kroah-Hartman wrote: >On Fri, Apr 27, 2018 at 11:00:41PM +0700, Dede Dindin Qudsy wrote: >> >> >> On 27/04/18 20:57, Greg Kroah-Hartman wrote: >> > This is the start of the stable review cycle for the 3.18.107 >release. >> > There are 24 patches in this se

[PATCH] misc: st_core: Fix skb double free corruption

2018-04-27 Thread Pengcheng Li
When some failures happened in hci_recv_frame() function, skb is freed by both hci_recv_frame and st_send_frame Signed-off-by: Li Pengcheng Signed-off-by: Yao Baofeng Signed-off-by: Li Jiangxiong --- drivers/misc/ti-st/st_core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/misc/t

Re: [PATCH v2] init: Fix false positives in W+X checking

2018-04-27 Thread Ingo Molnar
* Jeffrey Hugo wrote: > load_module() creates W+X mappings via __vmalloc_node_range() (from > layout_and_allocate()->move_module()->module_alloc()) by using > PAGE_KERNEL_EXEC. These mappings are later cleaned up via > "call_rcu_sched(&freeinit->rcu, do_free_init)" from do_init_module(). > > T

Re: kernel-4.9.94 compile error: 'KMOD_DECOMP_LEN' undeclared

2018-04-27 Thread Randy Dunlap
On 04/27/2018 10:00 PM, Greg Kroah-Hartman wrote: > On Fri, Apr 27, 2018 at 10:28:27AM -0700, Randy Dunlap wrote: >> [adding some Cc:] >> >> On 04/14/2018 02:41 AM, Teck Choon Giam wrote: >>> Hi, >>> >>> Compile linux-4.9.94 will have error related to KMOD_DECOMP_LEN >>> undeclared. Searching stri

Re: [PATCH 4.16 163/196] random: fix crng_ready() test

2018-04-27 Thread Greg Kroah-Hartman
On Fri, Apr 27, 2018 at 11:34:43AM -0500, Dan Rue wrote: > On Sun, Apr 22, 2018 at 03:53:03PM +0200, Greg Kroah-Hartman wrote: > > 4.16-stable review patch. If anyone has any objections, please let me know. > > > > -- > > > > From: Theodore Ts'o > > > > commit 43838a23a05fbd13e

Re: [PATCHv3] staging: wlan-ng: prism2sta: fixed indent coding style issues.

2018-04-27 Thread Greg Kroah-Hartman
On Fri, Apr 27, 2018 at 09:33:34PM +, Efstratios Gavas wrote: > Fixed format/style issues found with checkpatch. No code changes. > Corrected alignment of variables after open parenthesis and line breaks. > Checkpatch now returns clean except for line over 80 char warnings. > > Signed-off-by:

Re: [PATCH 3.18 00/24] 3.18.107-stable review

2018-04-27 Thread Greg Kroah-Hartman
On Fri, Apr 27, 2018 at 11:00:41PM +0700, Dede Dindin Qudsy wrote: > > > On 27/04/18 20:57, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 3.18.107 release. > > There are 24 patches in this series, all will be posted as a response > > to this one. If anyone ha

Re: [PATCH 4.16 00/81] 4.16.6-stable review

2018-04-27 Thread Greg Kroah-Hartman
On Fri, Apr 27, 2018 at 03:41:14PM -0500, Dan Rue wrote: > On Fri, Apr 27, 2018 at 03:58:02PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.16.6 release. > > There are 81 patches in this series, all will be posted as a response > > to this one. If anyo

Re: [PATCH 4.14 41/80] Revert "microblaze: fix endian handling"

2018-04-27 Thread Greg Kroah-Hartman
On Fri, Apr 27, 2018 at 09:25:24AM -0700, Guenter Roeck wrote: > On Fri, Apr 27, 2018 at 03:58:34PM +0200, Greg Kroah-Hartman wrote: > > 4.14-stable review patch. If anyone has any objections, please let me know. > > > > -- > > > > From: Greg Kroah-Hartman > > > > This reverts

[PATCH v2 1/2] arm64: dts: Add msm8998 SoC and MTP board support

2018-04-27 Thread Bjorn Andersson
From: Joonwoo Park Add initial device tree support for the Qualcomm MSM8998 SoC and MTP8998 evaluation board. Signed-off-by: Joonwoo Park Signed-off-by: Imran Khan Signed-off-by: Rajendra Nayak [bjorn: Restructured, removed its node and moved to SPDX headers] Signed-off-by: Bjorn Andersson -

[PATCH v2 2/2] arm64: dts: qcom: msm8998: Add rpm and regulators for MTP

2018-04-27 Thread Bjorn Andersson
This adds the rpm and rpm regulators to the msm8998 platform and mtp. Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi | 142 ++ arch/arm64/boot/dts/qcom/msm8998.dtsi | 83 + 2 files changed, 225 insertions(+) diff --g

Re: [PATCH] mm: memory_hotplug: use put_device() if device_register fail

2018-04-27 Thread arvindY
On Friday 27 April 2018 08:26 PM, Michal Hocko wrote: On Thu 26-04-18 21:12:09, Arvind Yadav wrote: if device_register() returned an error. Always use put_device() to give up the initialized reference and release allocated memory. Is this patch correct? The docummentation says * NOTE: _Neve

Re: [PATCH] bpf: fix misaligned access for BPF_PROG_TYPE_PERF_EVENT program type on x86_32 platform

2018-04-27 Thread Wang YanQing
On Sat, Apr 28, 2018 at 01:33:15AM +0200, Daniel Borkmann wrote: > On 04/28/2018 12:48 AM, Alexei Starovoitov wrote: > > On Thu, Apr 26, 2018 at 05:57:49PM +0800, Wang YanQing wrote: > >> All the testcases for BPF_PROG_TYPE_PERF_EVENT program type in > >> test_verifier(kselftest) report below error

Re: copy_file_range and user space tools to do copy fastest

2018-04-27 Thread Steve French
On Sat, Apr 28, 2018 at 12:18 AM, Andreas Dilger wrote: > On Apr 27, 2018, at 5:41 PM, Eric Biggers wrote: >> >> On Fri, Apr 27, 2018 at 01:45:40PM -0600, Andreas Dilger wrote: >>> On Apr 27, 2018, at 12:25 PM, Steve French wrote: Are there any user space tools (other than our test too

Re: WARNING in perf_trace_buf_alloc (2)

2018-04-27 Thread Alexei Starovoitov
On Sat, Apr 21, 2018 at 12:37:01PM -0700, Eric Biggers wrote: > [+bpf maintainers and netdev] > > On Mon, Nov 06, 2017 at 03:56:01AM -0800, syzbot wrote: > > Hello, > > > > syzkaller hit the following crash on > > 5cb0512c02ecd7e6214e912e4c150f4219ac78e0 > > git://git.kernel.org/pub/scm/linux/ker

Re: copy_file_range and user space tools to do copy fastest

2018-04-27 Thread Andreas Dilger
On Apr 27, 2018, at 5:41 PM, Eric Biggers wrote: > > On Fri, Apr 27, 2018 at 01:45:40PM -0600, Andreas Dilger wrote: >> On Apr 27, 2018, at 12:25 PM, Steve French wrote: >>> >>> Are there any user space tools (other than our test tools and xfs_io >>> etc.) that support copy_file_range? Looks l

Re: [PATCH v1 4/4] mhi_bus: dev: uci: add user space interface driver

2018-04-27 Thread kbuild test robot
Hi Sujeev, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v4.17-rc2 next-20180426] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci

[PATCH] mhi_bus: dev: uci: fix semicolon.cocci warnings

2018-04-27 Thread kbuild test robot
From: Fengguang Wu drivers/bus/mhi/devices/mhi_uci.c:556:2-3: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci Fixes: 2064c7ebc5cb ("mhi_bus: dev: uci: add user space interface driver") CC: Sujeev Dias Signed-off-by: Fengguang Wu --- mhi

Re: [PATCH 4.14 00/80] 4.14.38-stable review

2018-04-27 Thread Greg Kroah-Hartman
On Fri, Apr 27, 2018 at 12:33:27PM -0700, Nathan Chancellor wrote: > On Fri, Apr 27, 2018 at 03:57:53PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.14.38 release. > > There are 80 patches in this series, all will be posted as a response > > to this on

Re: [PATCH] dmaengine: stm32-mdma: fix spelling mistake: "avalaible" -> "available"

2018-04-27 Thread Vinod Koul
On Fri, Apr 27, 2018 at 08:24:31PM +0100, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in dev_err error message text Applied, thanks -- ~Vinod

Re: [PATCH v2] dmaengine: axi-dmac: Request IRQ with IRQF_SHARED

2018-04-27 Thread Vinod Koul
On Fri, Apr 27, 2018 at 05:18:29PM +0200, Lars-Peter Clausen wrote: > On 04/27/2018 05:15 PM, Moritz Fischer wrote: > > Hi Vinod, > > > > On Fri, Apr 27, 2018 at 12:08 AM, Vinod Koul wrote: > >> On Fri, Apr 27, 2018 at 08:53:39AM +0200, Lars-Peter Clausen wrote: > >>> On 04/27/2018 07:11 AM, Vino

Re: [PATCH] mm: provide a fallback for PAGE_KERNEL_RO for architectures

2018-04-27 Thread Greg KH
On Fri, Apr 27, 2018 at 05:15:26PM -0700, Luis R. Rodriguez wrote: > Some architectures do not define PAGE_KERNEL_RO, best we can do > for them is to provide a fallback onto PAGE_KERNEL. Remove the > hack from the firmware loader and move it onto the asm-generic > header, and document while at it t

Re: [PATCH 3.18 00/24] 3.18.107-stable review

2018-04-27 Thread Greg Kroah-Hartman
On Sat, Apr 28, 2018 at 03:03:04AM +0530, Harsh Shandilya wrote: > On 27 April 2018 7:27:35 PM IST, Greg Kroah-Hartman > wrote: > >This is the start of the stable review cycle for the 3.18.107 release. > >There are 24 patches in this series, all will be posted as a response > >to this one. If an

Re: [PATCH 3.18 00/24] 3.18.107-stable review

2018-04-27 Thread Greg Kroah-Hartman
On Fri, Apr 27, 2018 at 12:12:32PM -0600, Shuah Khan wrote: > On 04/27/2018 07:57 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 3.18.107 release. > > There are 24 patches in this series, all will be posted as a response > > to this one. If anyone has any is

Re: kernel-4.9.94 compile error: 'KMOD_DECOMP_LEN' undeclared

2018-04-27 Thread Greg Kroah-Hartman
On Fri, Apr 27, 2018 at 10:28:27AM -0700, Randy Dunlap wrote: > [adding some Cc:] > > On 04/14/2018 02:41 AM, Teck Choon Giam wrote: > > Hi, > > > > Compile linux-4.9.94 will have error related to KMOD_DECOMP_LEN > > undeclared. Searching string related to KMOD_DECOMP_LEN in > > linux-4.9.94 and

Re: [PATCH v6 02/24] soc: qcom: Add APR bus driver

2018-04-27 Thread Bjorn Andersson
On Thu 26 Apr 02:45 PDT 2018, Srinivas Kandagatla wrote: > diff --git a/drivers/soc/qcom/apr.c b/drivers/soc/qcom/apr.c [..] > +int apr_send_pkt(struct apr_device *adev, void *buf) Sorry, but I think we have discussed this before? "buf" isn't some random buffer to be sent, it is a apr_hdr followe

Re: [PATCH v3 4/7] kprobes: Replace %p with other pointer types

2018-04-27 Thread Masami Hiramatsu
On Sat, 28 Apr 2018 00:42:02 +0900 Masami Hiramatsu wrote: > > > +/* Caller must NOT call this in usual path. This is only for critical > > > case */ > > > void dump_kprobe(struct kprobe *kp) > > > { > > > - printk(KERN_WARNING "Dumping kprobe:\n"); > > > - printk(KERN_WARNING "Name: %s\nAddre

[PATCH] kselftests: fix grammar and non-ASCII space

2018-04-27 Thread Randy Dunlap
From: Randy Dunlap This is a small cleanup to kselftest.rst: - Fix some language typos in the usage instructions. - Change one non-ASCII space to an ASCII space. Signed-off-by: Randy Dunlap --- Documentation/dev-tools/kselftest.rst | 12 ++-- 1 file changed, 6 insertions(+), 6 delet

[PATCH net-next] libcxgb,cxgb4: use __skb_put_zero to simplfy code

2018-04-27 Thread YueHaibing
use helper __skb_put_zero to replace the pattern of __skb_put() && memset() Signed-off-by: YueHaibing --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c | 3 +-- drivers/net/ethernet/chelsio/cxgb4/srq.c | 3 +-- drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.h | 15 +--

Re: [PATCH 3.18 00/24] 3.18.107-stable review

2018-04-27 Thread Greg Kroah-Hartman
On Fri, Apr 27, 2018 at 03:41:28PM -0400, Theodore Y. Ts'o wrote: > On Fri, Apr 27, 2018 at 03:57:35PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 3.18.107 release. > > The kernel.org page currently lists 3.18 as EOL. I assume we released > an update

[PATCH v2] staging: greybus: Use gpio_is_valid()

2018-04-27 Thread Arvind Yadav
Replace the manual validity checks for the GPIO with the gpio_is_valid(). Signed-off-by: Arvind Yadav --- chnage in v2 : Returning invalid gpio as error instead of -ENODEV. drivers/staging/greybus/arche-platform.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --

Re: [greybus-dev] [PATCH] staging: greybus: Use gpio_is_valid()

2018-04-27 Thread arvindY
On Friday 27 April 2018 06:32 PM, Alex Elder wrote: On 04/27/2018 07:50 AM, Arvind Yadav wrote: On Friday 27 April 2018 05:47 PM, Alex Elder wrote: On 04/27/2018 05:52 AM, Arvind Yadav wrote: Replace the manual validity checks for the GPIO with the gpio_is_valid(). I haven't looked through

Re: drivers/platform/x86/dell-smbios-wmi.c:66: undefined reference to `wmidev_evaluate_method'

2018-04-27 Thread Darren Hart
On Fri, Apr 27, 2018 at 02:57:21PM -0700, Randy Dunlap wrote: > On 04/27/2018 11:01 AM, mario.limoncie...@dell.com wrote: ... > DELL_SMBIOS depends on ACPI_WMI so when ACPI_WMI=m, DELL_SMBIOS should never > =y. > Your DELL_LAPTOP Kconfig patch does fix this, I believe, because when > DELL_LAPTOP=

Re: [PATCH] ARM: BCM5301X: Fix NAND ECC parameters for Linksys Panamera

2018-04-27 Thread Vivek Unune
On Fri, Apr 27, 2018 at 10:05 AM, Vivek Unune wrote: > On Wed, Apr 25, 2018 at 11:02:04AM +0200, Rafał Miłecki wrote: >> >> The easiest solution: ignore all these "error -74 (ECC error) while >> reading" errors (they may last for few minutes!). I believe UBI should >> simply recreate all pages it

[Cubieboard-2] Booting up stuck at runlevel-2

2018-04-27 Thread Ajay Garg
Hi All. After a lot of hit-and-trials, I have managed to get some bootup. Unfortunately, not able to get a login-prompt. Following have been done : == u-boot == u-boot has been compiled using bleeding-edge mainline (ec5c4a8fd64a178a4d159917cda0aa176e5a9be5), via : * make Cubieboard2_defconfig

Re: [PATCH] mm: provide a fallback for PAGE_KERNEL_RO for architectures

2018-04-27 Thread Matthew Wilcox
On Fri, Apr 27, 2018 at 05:15:26PM -0700, Luis R. Rodriguez wrote: > Some architectures do not define PAGE_KERNEL_RO, best we can do > for them is to provide a fallback onto PAGE_KERNEL. Remove the > hack from the firmware loader and move it onto the asm-generic > header, and document while at it t

[PATCH 1/1] tg3: fix meaningless hw_stats reading after tg3_halt memset 0 hw_stats

2018-04-27 Thread Zumeng Chen
Reading hw_stats will get the actual data after a sucessfull tg3_reset_hw, which actually after tg3_timer_start, so tg->hw_stats_flag is introduced to tell tg3_get_stats64 when hw_stats is ready to read, and it will be false after having done memset(tp->hw_stats, 0) in tg3_halt. Plus tg3_get_stats6

Re: [PATCH v1 2/4] mhi_bus: controller: MHI support for QCOM modems

2018-04-27 Thread kbuild test robot
Hi Sujeev, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.17-rc2 next-20180426] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/c

Re: [PATCH v4 6/7] ARM: dts: Add support for emtrion emCON-MX6 series

2018-04-27 Thread Shawn Guo
On Fri, Apr 27, 2018 at 03:24:41PM +0200, jan.tu...@emtrion.com wrote: > From: Jan Tuerk > > This patch adds support for the emtrion GmbH emCON-MX6 modules. > They are available with imx.6 Solo, Dual-Lite, Dual and Quad > equipped with Memory from 512MB to 2GB (configured by U-Boot). > > Our def

Re: [PATCH v2] init: Fix false positives in W+X checking

2018-04-27 Thread Kees Cook
On Fri, Apr 27, 2018 at 2:55 PM, Jeffrey Hugo wrote: > load_module() creates W+X mappings via __vmalloc_node_range() (from > layout_and_allocate()->move_module()->module_alloc()) by using > PAGE_KERNEL_EXEC. These mappings are later cleaned up via > "call_rcu_sched(&freeinit->rcu, do_free_init)"

Re: [PATCH v1 2/4] mhi_bus: controller: MHI support for QCOM modems

2018-04-27 Thread kbuild test robot
Hi Sujeev, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.17-rc2 next-20180426] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/c

Re: kselftest archives etc.

2018-04-27 Thread Daniel Díaz Rodríguez
Hello! On 27 April 2018 at 19:17, Randy Dunlap wrote: [...] > so I looked for an archive of linux-kselft...@vger.kernel.org. > http://vger.kernel.org/vger-lists.html lists all mailing lists and > (some of) their archives, but none for linux-kselftest. For what it's worth, as of last November Li

[PATCH v4 1/2] dma-mapping: move dma configuration to bus infrastructure

2018-04-27 Thread Nipun Gupta
It is bus specific aspect to map a given device on the bus and relevant firmware description of its DMA configuration. So, this change introduces 'dma_configure' as bus callback giving flexibility to busses for implementing its own dma configuration function. The change eases the addition of new b

Re: [PATCH v1 1/4] mhi_bus: core: Add support for MHI host interface

2018-04-27 Thread kbuild test robot
Hi Sujeev, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.17-rc2 next-20180426] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/c

[PATCH v4 2/2] drivers: remove force dma flag from buses

2018-04-27 Thread Nipun Gupta
With each bus implementing its own DMA configuration callback, there is no need for bus to explicitly have force_dma in its global structure. This patch modifies of_dma_configure API to accept an input parameter which specifies if implicit DMA configuration is required even when it is not described

Re: [RFC v3 0/5] virtio: support packed ring

2018-04-27 Thread Jason Wang
On 2018年04月27日 17:12, Tiwei Bie wrote: On Fri, Apr 27, 2018 at 02:17:51PM +0800, Jason Wang wrote: On 2018年04月27日 12:18, Michael S. Tsirkin wrote: On Fri, Apr 27, 2018 at 11:56:05AM +0800, Jason Wang wrote: On 2018年04月25日 13:15, Tiwei Bie wrote: Hello everyone, This RFC implements packed r

Re: [PATCH v2 2/2] usb: dwc3: support clocks and resets for DWC3 core

2018-04-27 Thread Masahiro Yamada
Hi Martin, 2018-04-24 2:44 GMT+09:00 Martin Blumenstingl : > Hello, > > On Thu, Apr 19, 2018 at 1:03 PM, Masahiro Yamada > wrote: >> Historically, the clocks and resets are handled on the glue layer >> side instead of the DWC3 core. For simple cases, dwc3-of-simple.c >> takes care of arbitrary

RE: [PATCH v4 05/22] iommu: introduce iommu invalidate API function

2018-04-27 Thread Tian, Kevin
> From: Jean-Philippe Brucker [mailto:jean-philippe.bruc...@arm.com] > Sent: Saturday, April 28, 2018 2:08 AM > > [...] > >> If this corresponds to QI_GRAN_ALL_ALL in patch 9, the comment should > >> be "Cache of all PASIDs"? Or maybe "all entries for all PASIDs"? Is it > >> different from GRANU_D

Re: [PATCH v2] f2fs: fix to avoid race during access gc_thread pointer

2018-04-27 Thread Jaegeuk Kim
On 04/27, Chao Yu wrote: > On 2018/4/27 10:04, Chao Yu wrote: > > On 2018/4/27 0:03, Jaegeuk Kim wrote: > >> On 04/24, Chao Yu wrote: > >>> Thread A Thread BThread C > >>> - f2fs_remount > >>> - stop_gc_thread > >>> - f2fs_sbi_store > >>>

Re: WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected

2018-04-27 Thread Tetsuo Handa
OK. Patch was sent to linux.git as 6c1e851c4edc13a4. #syz fix: random: fix possible sleeping allocation from irq context

Re: [PATCH v2] f2fs: fix to avoid race during access gc_thread pointer

2018-04-27 Thread Jaegeuk Kim
On 04/27, Chao Yu wrote: > On 2018/4/27 0:03, Jaegeuk Kim wrote: > > On 04/24, Chao Yu wrote: > >> Thread A Thread BThread C > >> - f2fs_remount > >> - stop_gc_thread > >>- f2fs_sbi_store > >>

Re: [PATCH v4 0/7] Add basic support for emtrion emCON-MX6 modules

2018-04-27 Thread Shawn Guo
On Fri, Apr 27, 2018 at 03:24:35PM +0200, jan.tu...@emtrion.com wrote: > From: Jan Tuerk > > Changes for v4: > - re-arrange the Patch-series to match the DT-submitting-patches > - Additional patch for the Documentation of the new DT-bindings > > [PATCH v4 1/7] dt-bindings: display: Document

Re: [PATCH v2] f2fs: avoid stucking GC due to atomic write

2018-04-27 Thread Jaegeuk Kim
On 04/27, Chao Yu wrote: > On 2018/4/26 23:54, Jaegeuk Kim wrote: > > On 04/24, Chao Yu wrote: > >> f2fs doesn't allow abuse on atomic write class interface, so except > >> limiting in-mem pages' total memory usage capacity, we need to limit > >> atomic-write usage as well when filesystem is seriou

Re: general protection fault in fuse_ctl_remove_conn

2018-04-27 Thread Tetsuo Handa
>From 9f41081f8bd6762a6f629e5e23e6d07a62bba69c Mon Sep 17 00:00:00 2001 From: Tetsuo Handa Date: Sat, 28 Apr 2018 11:24:09 +0900 Subject: [PATCH] fuse: don't keep inode-less dentry at fuse_ctl_add_dentry(). syzbot is reporting NULL pointer dereference at fuse_ctl_remove_conn() [1]. Since fc->ctl_

Re: [PATCH net] vhost: Use kzalloc() to allocate vhost_msg_node

2018-04-27 Thread Jason Wang
On 2018年04月28日 09:51, Kevin Easton wrote: On Fri, Apr 27, 2018 at 09:07:56PM -0400, Kevin Easton wrote: On Fri, Apr 27, 2018 at 07:05:45PM +0300, Michael S. Tsirkin wrote: On Fri, Apr 27, 2018 at 11:45:02AM -0400, Kevin Easton wrote: The struct vhost_msg within struct vhost_msg_node is copie

[PATCH v2 0/2] net: stmmac: dwmac-meson: 100M phy mode support for AXG SoC

2018-04-27 Thread Yixun Lan
Due to the dwmac glue layer register changed, we need to introduce a new compatible name for the Meson-AXG SoC to support for the RMII 100M ethernet PHY. Change since v1 at [1]: - implement set_phy_mode() for each SoC [1] https://lkml.kernel.org/r/20180426160508.29380-1-yixun@amlogic.com

[PATCH v2 1/2] dt-bindings: net: meson-dwmac: new compatible name for AXG SoC

2018-04-27 Thread Yixun Lan
We need to introduce a new compatible name for the Meson-AXG SoC in order to support the RMII 100M ethernet PHY, since the PRG_ETH0 register of the dwmac glue layer is changed from previous old SoC. Signed-off-by: Yixun Lan --- Documentation/devicetree/bindings/net/meson-dwmac.txt | 1 + 1 file

[PATCH v2 2/2] net: stmmac: dwmac-meson: extend phy mode setting

2018-04-27 Thread Yixun Lan
In the Meson-AXG SoC, the phy mode setting of PRG_ETH0 in the glue layer is extended from bit[0] to bit[2:0]. There is no problem if we configure it to the RGMII 1000M PHY mode, since the register setting is coincidentally compatible with previous one, but for the RMII 100M PHY mode, the config

Re: [PATCH] documentation: core-api: rearrange a few kernel-api chapters and sections

2018-04-27 Thread Randy Dunlap
On 04/27/2018 04:17 PM, Jonathan Corbet wrote: > On Thu, 26 Apr 2018 18:11:02 -0700 > Randy Dunlap wrote: > >> Rearrange some kernel-api chapters and sections to group them >> together better. >> >> - move Bit Operations from Basic C Library Functions to Basic >> Kernel Library Functions (now a

Re: [PATCH] ARM64: dts: meson-axg: enable AP6255 wifi module

2018-04-27 Thread Yixun Lan
On 04/28/18 03:09, Kevin Hilman wrote: > Yixun Lan writes: > >> The Meson-AXG S400 board is shipped with AP6255 wifi module, >> which is actually using the brcmfmac 43455 driver. >> >> Signed-off-by: Yixun Lan >> --- >> .../arm64/boot/dts/amlogic/meson-axg-s400.dts | 44 ++- >>

Re: [PATCH net] vhost: Use kzalloc() to allocate vhost_msg_node

2018-04-27 Thread Kevin Easton
On Fri, Apr 27, 2018 at 09:07:56PM -0400, Kevin Easton wrote: > On Fri, Apr 27, 2018 at 07:05:45PM +0300, Michael S. Tsirkin wrote: > > On Fri, Apr 27, 2018 at 11:45:02AM -0400, Kevin Easton wrote: > > > The struct vhost_msg within struct vhost_msg_node is copied to userspace, > > > so it should be

Re: [PATCH v7 0/7] clk: meson-axg: Add AO Cloclk and Reset driver

2018-04-27 Thread Yixun Lan
Hi Kevin On 04/28/18 02:49, Kevin Hilman wrote: > Hi Yixun, > > Yixun Lan writes: > >> On 04/27/2018 05:59 PM, Jerome Brunet wrote: > > [...] > >>> >>> Looks to be the problem indeed. But it is still an issue with how your >>> patchset >>> in organized. >>> >>> I can't merge this until Kevin

Poslal som vám e-mail

2018-04-27 Thread Katie Higgins

[PATCH v2] MAINTAINERS: add keyword for devicetree overlay notifiers

2018-04-27 Thread frowand . list
From: Frank Rowand Devicetree overlay notifiers have a chance to potentially get pointers into the overlay unflattened devicetree and overlay FDT. The only protection against these pointers being accessed after the underlying data has been released by kfree() is by source code review of patches.

Re: [PATCH 2/2] bpf: btf: remove a couple conditions

2018-04-27 Thread Martin KaFai Lau
On Fri, Apr 27, 2018 at 02:26:50PM -0700, Martin KaFai Lau wrote: > On Fri, Apr 27, 2018 at 11:31:36PM +0300, Dan Carpenter wrote: > > On Fri, Apr 27, 2018 at 10:21:17PM +0200, Daniel Borkmann wrote: > > > On 04/27/2018 09:39 PM, Dan Carpenter wrote: > > > > On Fri, Apr 27, 2018 at 10:55:46AM -0700

Re: pciehp 0000:00:1c.0:pcie004: Timeout on hotplug command 0x1038 (issued 65284 msec ago)

2018-04-27 Thread Dave Young
On 04/28/18 at 08:56am, Dave Young wrote: > On 04/27/18 at 04:12pm, Bjorn Helgaas wrote: > > [+cc Eric, Vivek, kexec list] > > > > On Fri, Apr 27, 2018 at 03:34:30PM -0400, Sinan Kaya wrote: > > > On 4/27/2018 3:22 PM, Bjorn Helgaas wrote: > > > > Sinan mooted the idea of using a "no-wait" path of

Re: [PATCH] MAINTAINERS: add keyword for devicetree overlay notifiers

2018-04-27 Thread Frank Rowand
Hi Rob, On 04/27/18 17:57, Frank Rowand wrote: > Hi Rob, > > I'm not sure how the extra "From:" of sony.com got into > this email. I'll have to dig into my scripts and/or > git configs to figure that out. The real "From:" is > the gmail.com one. Darn it... The real "From: is the sony.com one.

Re: [PATCH net] vhost: Use kzalloc() to allocate vhost_msg_node

2018-04-27 Thread Kevin Easton
On Fri, Apr 27, 2018 at 07:05:45PM +0300, Michael S. Tsirkin wrote: > On Fri, Apr 27, 2018 at 11:45:02AM -0400, Kevin Easton wrote: > > The struct vhost_msg within struct vhost_msg_node is copied to userspace, > > so it should be allocated with kzalloc() to ensure all structure padding > > is zeroe

Re: [PATCH v1 4/4] mhi_bus: dev: uci: add user space interface driver

2018-04-27 Thread kbuild test robot
Hi Sujeev, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v4.17-rc2 next-20180426] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci

Re: BUG: /proc/kcore does not export direct-mapped memory on arm64 (and presumably some other architectures)

2018-04-27 Thread Laura Abbott
On 04/26/2018 02:16 PM, Kees Cook wrote: On Thu, Apr 26, 2018 at 12:31 PM, Dave Anderson wrote: While testing /proc/kcore as the live memory source for the crash utility, it fails on arm64. The failure on arm64 occurs because only the vmalloc/module space segments are exported in PT_LOAD segm

Re: [PATCH] MAINTAINERS: add keyword for devicetree overlay notifiers

2018-04-27 Thread Frank Rowand
Hi Rob, I'm not sure how the extra "From:" of sony.com got into this email. I'll have to dig into my scripts and/or git configs to figure that out. The real "From:" is the gmail.com one. -Frank On 04/27/18 17:50, frowand.l...@gmail.com wrote: > From: Frank Rowand > > From: Frank Rowand > >

Re: pciehp 0000:00:1c.0:pcie004: Timeout on hotplug command 0x1038 (issued 65284 msec ago)

2018-04-27 Thread Dave Young
On 04/27/18 at 04:12pm, Bjorn Helgaas wrote: > [+cc Eric, Vivek, kexec list] > > On Fri, Apr 27, 2018 at 03:34:30PM -0400, Sinan Kaya wrote: > > On 4/27/2018 3:22 PM, Bjorn Helgaas wrote: > > > Sinan mooted the idea of using a "no-wait" path of sending the "don't > > > generate hotplug interrupts"

Re: ed74ae0342 ("blk-mq: Avoid that a completion can be ignored .."): BUG: kernel hang in test stage

2018-04-27 Thread Jens Axboe
On 4/24/18 3:00 PM, kernel test robot wrote: > Greetings, > > 0day kernel testing robot got the below dmesg and the first bad commit is > > https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git > for-linus > > commit ed74ae03424684a6ad8a973c3fa727c6b4162432 > Author: Bart Va

[PATCH] MAINTAINERS: add keyword for devicetree overlay notifiers

2018-04-27 Thread frowand . list
From: Frank Rowand From: Frank Rowand Devicetree overlay notifiers have a chance to potentially get pointers into the overlay unflattened devicetree and overlay FDT. The only protection against these pointers being accessed after the underlying data has been released by kfree() is by source cod

Re: [PATCH v4] bpf, x86_32: add eBPF JIT compiler for ia32

2018-04-27 Thread Daniel Borkmann
On 04/26/2018 12:12 PM, Wang YanQing wrote: [...] > +/* encode 'dst_reg' and 'src_reg' registers into x86_32 opcode 'byte' */ > +static u8 add_2reg(u8 byte, u32 dst_reg, u32 src_reg) > +{ > + return byte + dst_reg + (src_reg << 3); > +} > + > +static void jit_fill_hole(void *area, unsigned int

Re: [PATCH 2/2] kvm: nVMX: Introduce KVM_CAP_STATE

2018-04-27 Thread Paolo Bonzini
On 27/04/2018 17:19, Jim Mattson wrote: > > If the default treatment of SMIs and SMM (see Section 34.14) is > active, the VMX-preemption timer counts across an SMI to VMX non-root > operation, subsequent execution in SMM, and the return from SMM via > the RSM instruction. However, the timer can ca

[RFC net-next 0/5] Support for PHY test modes

2018-04-27 Thread Florian Fainelli
Hi all, This patch series adds support for specifying PHY test modes through ethtool and paves the ground for adding support for more complex test modes that might require data to be exchanged between user and kernel space. As an example, patches are included to add support for the IEEE electrica

[RFC net-next 2/5] net: ethtool: Add UAPI for PHY test modes

2018-04-27 Thread Florian Fainelli
Add the necessary UAPI changes to support querying the PHY tests modes implemented and optionally associated test specific data. This will be used as the foundation for supporting: - IEEE standard electrical test modes - cable diagnostics - packet tester Signed-off-by: Florian Fainelli --- incl

[RFC net-next 4/5] net: phy: Add support for IEEE standard test modes

2018-04-27 Thread Florian Fainelli
Add support for the 100BaseT2 and 1000BaseT standard test modes as defined by the IEEE 802.3-2012-Section two and three. We provide a set of helper functions for PHY drivers to either punt entirely onto genphy_* functions or if they desire, build additional tests on top of the standard ones availab

[RFC net-next 5/5] net: phy: broadcom: Add support for PHY test modes

2018-04-27 Thread Florian Fainelli
Re-use the generic PHY library test modes for 100BaseT2 and 1000BaseT and advertise support for those through the newly added ethtool knobs. Signed-off-by: Florian Fainelli --- drivers/net/phy/bcm-phy-lib.c | 15 +-- drivers/net/phy/bcm7xxx.c | 3 +++ 2 files changed, 12 inserti

[PATCH ethtool 2/2] ethtool: Add support for PHY test modes

2018-04-27 Thread Florian Fainelli
Add two new commands: --get-phy-tests which allows fetching supported test modes by a given network device's PHY interface --set-phy-test which allows entering one of the modes listed before and pass an eventual set of test specific data Signed-off-by: Florian Fainelli --- ethtool.c | 115 +

[RFC net-next 3/5] net: ethtool: Add plumbing to get/set PHY test modes

2018-04-27 Thread Florian Fainelli
Implement the core ethtool changes to get/set PHY test modes, no driver implements that yet, but the internal API is defined and now allows it. We also provide the required helpers in PHYLIB in order to call the appropriate functions within the drivers. Signed-off-by: Florian Fainelli --- includ

[PATCH ethtool 1/2] ethtool-copy.h: Sync with net-next

2018-04-27 Thread Florian Fainelli
This brings support for PHY test modes (not accepted yet) Signed-off-by: Florian Fainelli --- ethtool-copy.h | 23 +++ 1 file changed, 23 insertions(+) diff --git a/ethtool-copy.h b/ethtool-copy.h index 8cc61e9ab40b..42fb94129da5 100644 --- a/ethtool-copy.h +++ b/ethtool-cop

[RFC net-next 1/5] net: phy: Pass stringset argument to ethtool operations

2018-04-27 Thread Florian Fainelli
In preparation for returning a different type of strings other than ETH_SS_STATS update the PHY drivers, helpers and consumers of these functions. Signed-off-by: Florian Fainelli --- drivers/net/dsa/b53/b53_common.c | 4 ++-- drivers/net/phy/bcm-phy-lib.c| 12 +--- drivers/net/phy/b

Re: [PATCH v1 1/4] mhi_bus: core: Add support for MHI host interface

2018-04-27 Thread kbuild test robot
Hi Sujeev, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.17-rc2 next-20180426] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/c

Re: [PATCH] drivers: net: replace UINT64_MAX with U64_MAX

2018-04-27 Thread David Miller
From: Jisheng Zhang Date: Fri, 27 Apr 2018 16:18:58 +0800 > U64_MAX is well defined now while the UINT64_MAX is not, so we fall > back to drivers' own definition as below: > > #ifndef UINT64_MAX > #define UINT64_MAX (u64)(~((u64)0)) > #endif > > I believe this is i

kselftest archives etc.

2018-04-27 Thread Randy Dunlap
Hi, I was having trouble with the use of the gcc -no-pie option in tools/testing/selftests/x86: (option not supported) CFLAGS := -O2 -g -std=gnu99 -pthread -Wall -no-pie so I looked for an archive of linux-kselft...@vger.kernel.org. http://vger.kernel.org/vger-lists.html lists all mailing lists

[PATCH] mm: provide a fallback for PAGE_KERNEL_RO for architectures

2018-04-27 Thread Luis R. Rodriguez
Some architectures do not define PAGE_KERNEL_RO, best we can do for them is to provide a fallback onto PAGE_KERNEL. Remove the hack from the firmware loader and move it onto the asm-generic header, and document while at it the affected architectures which do not have a PAGE_KERNEL_RO: o alpha

Re: dcache: remove trylock loops (was Re: [BUG] lock_parent() breakage when used from shrink_dentry_list())

2018-04-27 Thread Al Viro
On Tue, Mar 13, 2018 at 12:12:51PM +1100, NeilBrown wrote: > > * selinux inode_doinit_with_dentry() (two call sites, very alike) > > I'm less sure about this one, but I think it probably wants > d_find_any_alias() as well. Like cap_inode_getsecurity() it only wants > a dentry so that it

[PATCH] staging: luster: llite: fix a potential missing-check bug when copying lumv

2018-04-27 Thread Wenwen Wang
In ll_dir_ioctl(), the object lumv3 is firstly copied from the user space using Its address, i.e., lumv1 = &lumv3. If the lmm_magic field of lumv3 is LOV_USER_MAGIV_V3, lumv3 will be modified by the second copy from the user space. The second copy is necessary, because the two versions (i.e., lov_u

Re: INFO: rcu detected stall in blkdev_ioctl

2018-04-27 Thread syzbot
syzbot has found reproducer for the following crash on upstream commit d8a332730e757129e70675679f2b2a03f1ecf65e (Fri Apr 27 17:39:38 2018 +) Merge tag 'char-misc-4.17-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc syzbot dashboard link: https://syzkaller.appspot.com

Re: copy_file_range and user space tools to do copy fastest

2018-04-27 Thread Eric Biggers
On Fri, Apr 27, 2018 at 01:45:40PM -0600, Andreas Dilger wrote: > On Apr 27, 2018, at 12:25 PM, Steve French wrote: > > > > Are there any user space tools (other than our test tools and xfs_io > > etc.) that support copy_file_range? Looks like at least cp and rsync > > and dd don't. That syscal

Re: [PATCH 2/4] fpga: manager: change api, don't use drvdata

2018-04-27 Thread Florian Fainelli
On 04/27/2018 04:30 PM, Alan Tull wrote: > On Fri, Apr 27, 2018 at 1:26 PM, Florian Fainelli > wrote: >> On 04/26/2018 06:26 PM, Moritz Fischer wrote: >>> From: Alan Tull >>> >>> Change fpga_mgr_register to not set or use drvdata. This supports >>> the case where a PCIe device has more than one

Re: PROBLEM: error due to conflicting types during build of kselftests

2018-04-27 Thread Randy Dunlap
On 04/20/2018 11:03 AM, Jeffrin Thalakkottoor wrote: > hello, > > the following is the error found... > --- > protection_keys.c:421:5: error: conflicting types for ‘pkey_set’ > int pkey_set(int pkey, unsigned long rig

Re: [PATCH] bpf: fix misaligned access for BPF_PROG_TYPE_PERF_EVENT program type on x86_32 platform

2018-04-27 Thread Daniel Borkmann
On 04/28/2018 12:48 AM, Alexei Starovoitov wrote: > On Thu, Apr 26, 2018 at 05:57:49PM +0800, Wang YanQing wrote: >> All the testcases for BPF_PROG_TYPE_PERF_EVENT program type in >> test_verifier(kselftest) report below errors on x86_32: >> " >> 172/p unpriv: spill/fill of different pointers ldx F

Re: [PATCH 2/4] fpga: manager: change api, don't use drvdata

2018-04-27 Thread Alan Tull
On Fri, Apr 27, 2018 at 1:26 PM, Florian Fainelli wrote: > On 04/26/2018 06:26 PM, Moritz Fischer wrote: >> From: Alan Tull >> >> Change fpga_mgr_register to not set or use drvdata. This supports >> the case where a PCIe device has more than one manager. >> >> Add fpga_mgr_create/free functions.

  1   2   3   4   5   6   7   8   9   10   >