Re: [btrfs] WARNING: CPU: 0 PID: 6379 at fs/direct-io.c:293 dio_complete+0x1d4/0x220

2017-10-30 Thread Eryu Guan
On Tue, Oct 31, 2017 at 01:10:41AM +0100, Fengguang Wu wrote: > Hi Eryu, > > On Mon, Oct 30, 2017 at 03:44:29PM +0800, Eryu Guan wrote: > > Hi Fengguang, > > > > On Mon, Oct 30, 2017 at 08:20:21AM +0100, Fengguang Wu wrote: > > > CC fsdevel. > > > > > > On Sun, Oct 29, 2017 at 11:51:55PM +0100,

Re: [PATCH v6 0/9] vITS Migration fixes and reset

2017-10-30 Thread Christoffer Dall
On Mon, Oct 30, 2017 at 08:59:36AM +0100, Auger Eric wrote: > Hi Christoffer, > > On 30/10/2017 07:20, Christoffer Dall wrote: > > Hi Eric, > > > > On Thu, Oct 26, 2017 at 05:23:02PM +0200, Eric Auger wrote: > >> This series fixes various bugs observed when saving/restoring the > >> ITS state bef

[PATCH] ieee802154: mrf24j40: fix incorrect mask in mrf24j40_stop

2017-10-30 Thread Gustavo A. R. Silva
It seems that this is a copy/paste error and the proper bit masking is: BIT_TXNIE | BIT_RXIE This issue was detected with the help of Coccinelle. Reported-by: Julia Lawall Signed-off-by: Gustavo A. R. Silva Fixes: 7d840545e5b9 ("mrf24j40: replace magic numbers") --- drivers/net/ieee802154/mrf2

[PATCH 1/2] regmap: Add hardware spinlock support

2017-10-30 Thread Baolin Wang
On some platforms, when reading or writing some special registers through regmap, we should acquire one hardware spinlock to synchronize between the multiple subsystems. Thus this patch adds the hardware spinlock support for regmap. Signed-off-by: Baolin Wang --- drivers/base/regmap/internal.h |

[PATCH 2/2] mfd: syscon: Add hardware spinlock support

2017-10-30 Thread Baolin Wang
Some system control registers need hardware spinlock to synchronize between the multiple subsystems, so we should add hardware spinlock support for syscon. Signed-off-by: Baolin Wang --- drivers/mfd/syscon.c |9 + 1 file changed, 9 insertions(+) diff --git a/drivers/mfd/syscon.c b/d

Re: PROBLEM: Issue With Radeon graphics With Lenovo Laptop G50-80

2017-10-30 Thread Anil Nair
Hi Alex, Sorry for the late reply. But upgrading to the latest kernel has solved my issue. Thanks. On Mon, May 8, 2017 at 10:04 PM, Deucher, Alexander wrote: >> -Original Message- >> From: Anil Nair [mailto:anilcol...@gmail.com] >> Sent: Monday, May 08, 2017 11:42 AM >> To: Deucher, Ale

Re: [PATCH v2 07/17] PCI: dwc: dra7xx: Refactor Kconfig and Makefile handling for host/ep mode

2017-10-30 Thread Kishon Vijay Abraham I
On Monday 30 October 2017 06:12 PM, Niklas Cassel wrote: > The previous handling was a bit unorthodox and would have been a bit > bloated once more DWC based controllers added support for ep mode. > > Signed-off-by: Niklas Cassel Acked-by: Kishon Vijay Abraham I > --- > V2: > * New patch in t

Re: [PATCH v2 06/17] PCI: designware-ep: Add generic function for raising MSI irq

2017-10-30 Thread Kishon Vijay Abraham I
Hi, On Monday 30 October 2017 06:12 PM, Niklas Cassel wrote: > This function can be used by all DWC based controllers to raise a MSI > irq. However, certain controllers, like DRA7xx, has a special > convenience register for raising MSI irqs that doesn't require you to > explicitly map the MSI addr

Re: linux-next: Signed-off-by missing for commit in the net-next tree

2017-10-30 Thread Kirill Smelkov
Francois, On Tue, Oct 31, 2017 at 04:40:19PM +1100, Stephen Rothwell wrote: > Hi all, > > Commit > > 509708310cf9 ("r8169: Add support for interrupt coalesce tuning (ethtool > -C)") > > is missing a Signed-off-by from its author (or its author is wrong). Could we please get signoff for this

Re: linux-next: Signed-off-by missing for commit in the net-next tree

2017-10-30 Thread Eric Dumazet
On Tue, 2017-10-31 at 09:14 +0300, Kirill Smelkov wrote: > Francois, > > On Tue, Oct 31, 2017 at 04:40:19PM +1100, Stephen Rothwell wrote: > > Hi all, > > > > Commit > > > > 509708310cf9 ("r8169: Add support for interrupt coalesce tuning (ethtool > > -C)") > > > > is missing a Signed-off-by

[PATCH] epoll: remove ep_call_nested() from ep_eventpoll_poll()

2017-10-30 Thread Jason Baron
The use of ep_call_nested() in ep_eventpoll_poll(), which is the .poll routine for an epoll fd, is used to prevent excessively deep epoll nesting, and to prevent circular paths. However, we are already preventing these conditions during EPOLL_CTL_ADD. In terms of too deep epoll chains, we do in fac

[RESEND] ARM: dts: ls1021a: Add support for QSPI with ls1021a SoC

2017-10-30 Thread 林上智
> > Add QSPI node support, and this function is disabled by default This > > setting could be overwritten in board-level definitions > > Adding Shawn Guo. > This patch is modified based on https://patchwork.ozlabs.org/patch/492099/. The originator of this patch is Haikun Wang. > > Signed-off-by: H

Re: [PATCH v2 04/17] PCI: designware-ep: Pre-allocate memory for MSI in dw_pcie_ep_init

2017-10-30 Thread Kishon Vijay Abraham I
Hi Niklas, On Monday 30 October 2017 06:12 PM, Niklas Cassel wrote: > Certain SoCs need to map the MSI address in raise_irq. > To map an address, you first need to call pci_epc_mem_alloc_addr, > however, pci_epc_mem_alloc_addr calls ioremap (which can sleep). > > Since raise_irq is only called fr

linux-next: Signed-off-by missing for commits in the gfs2 tree

2017-10-30 Thread Stephen Rothwell
Hi all, Commits cfdee655b178 ("GFS2: Make height info part of metapath") 8bdecc2563a5 ("GFS2: flush the log and all pages for jdata as we do for WB_SYNC_ALL") 1ecfcbf9a59e ("GFS2: Take inode off order_write list when setting jdata flag") are missing a Signed-off-by from their committer.

Re: [PATCH -mm -V2] mm, swap: Fix false error message in __swp_swapcount()

2017-10-30 Thread Huang, Ying
Minchan Kim writes: > Hi Huang, > > On Tue, Oct 31, 2017 at 01:32:32PM +0800, Huang, Ying wrote: >> Hi, Minchan, >> >> Minchan Kim writes: >> >> > Hi Huang, >> > >> > On Fri, Oct 27, 2017 at 01:53:27PM +0800, Huang, Ying wrote: >> >> From: Huang Ying >> >> >> >> When a page fault occurs for

Re: [PATCH -mm -V2] mm, swap: Fix false error message in __swp_swapcount()

2017-10-30 Thread Minchan Kim
Hi Huang, On Tue, Oct 31, 2017 at 01:32:32PM +0800, Huang, Ying wrote: > Hi, Minchan, > > Minchan Kim writes: > > > Hi Huang, > > > > On Fri, Oct 27, 2017 at 01:53:27PM +0800, Huang, Ying wrote: > >> From: Huang Ying > >> > >> When a page fault occurs for a swap entry, the physical swap reada

linux-next: Signed-off-by missing for commit in the net-next tree

2017-10-30 Thread Stephen Rothwell
Hi all, Commit 509708310cf9 ("r8169: Add support for interrupt coalesce tuning (ethtool -C)") is missing a Signed-off-by from its author (or its author is wrong). -- Cheers, Stephen Rothwell

[PATCH] MIPS: microMIPS: Fix incorrect mask in insn_table_MM

2017-10-30 Thread Gustavo A. R. Silva
It seems that this is a typo error and the proper bit masking is "RT | RS" instead of "RS | RS". This issue was detected with the help of Coccinelle. Reported-by: Julia Lawall Signed-off-by: Gustavo A. R. Silva --- arch/mips/mm/uasm-micromips.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

Re: [PATCH -mm -V2] mm, swap: Fix false error message in __swp_swapcount()

2017-10-30 Thread Huang, Ying
Hi, Minchan, Minchan Kim writes: > Hi Huang, > > On Fri, Oct 27, 2017 at 01:53:27PM +0800, Huang, Ying wrote: >> From: Huang Ying >> >> When a page fault occurs for a swap entry, the physical swap readahead >> (not the VMA base swap readahead) may readahead several swap entries >> after the fa

[PATCH RFC 0/2] Fix race window during idle cpu selection.

2017-10-30 Thread Atish Patra
The 1st patch actually fixes the issue. The 2nd patch adds a new element in schedstat intended only for testing. Atish Patra (2): sched: Minimize the idle cpu selection race window. sched: Add a stat for idle cpu selection race window. kernel/sched/core.c | 6 ++ kernel/sched/fair.

[PATCH DEBUG 2/2] sched: Add a stat for idle cpu selection race window.

2017-10-30 Thread Atish Patra
This is ** Debug ** only patch not intended for merging. A new stat in schedstat is added that represents number of times cpu was already claimed during wakeup while some other cpu tries to schedule tasks on it again. It helps to verify if the concerned issue is present in a specific becnhmark. T

[PATCH RFC 1/2] sched: Minimize the idle cpu selection race window.

2017-10-30 Thread Atish Patra
Currently, multiple tasks can wakeup on same cpu from select_idle_sibiling() path in case they wakeup simulatenously and last ran on the same llc. This happens because an idle cpu is not updated until idle task is scheduled out. Any task waking during that period may potentially select that cpu for

Re: [PATCH] USB: serial: io_edgeport: mark expected switch fall-throughs

2017-10-30 Thread Gustavo A. R. Silva
Hi David, Johan, Quoting Johan Hovold : On Mon, Oct 30, 2017 at 11:54:33AM +, David Laight wrote: From: Bjørn Mork > Sent: 28 October 2017 11:57 > > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > > where we are expecting to fall through. > > > > Notice that in this

Re: [PATCH v2 05/17] PCI: designware-ep: Remove static keyword from dw_pcie_ep_reset_bar()

2017-10-30 Thread Kishon Vijay Abraham I
On Monday 30 October 2017 06:12 PM, Niklas Cassel wrote: > This way pci-dra7xx.c does not need its own copy of dw_pcie_ep_reset_bar(). > > Signed-off-by: Niklas Cassel Acked-by: Kishon Vijay Abraham I > --- > V2: > * New patch in this series. > > drivers/pci/dwc/pci-dra7xx.c | 9 ---

Re: Kernel crash in free_pipe_info()

2017-10-30 Thread Al Viro
On Mon, Oct 30, 2017 at 08:06:23PM -0700, Linus Torvalds wrote: > We do that "free_pipe_info(inode->i_pipe);", but we never actually > clear inode->i_pipe, so now we have an inode that looks like a pipe > inode, and has a stale pointer to a pipe_inode_info. > > It all looks technically correct. I

[PATCH] x86, build: Improve the isolinux searching of isoimage generation

2017-10-30 Thread changbin . du
From: Changbin Du Recently I failed to build isoimage target, because the path of isolinux.bin changed to /usr/xxx/ISOLINUX/isolinux.bin, as well as ldlinux.c32 which changed to /usr/xxx/syslinux/modules/bios/ldlinux.c32. This patch has a improvement of the file search: - Don't print the raw s

[PATCH v2] staging: rtlwifi: Fix line too long warning

2017-10-30 Thread Kien Ha
>From aa0f4ae8c325545b1fd794d6bbf8c4d2f64e2ec2 Mon Sep 17 00:00:00 2001 From: Kien Ha Date: Fri, 27 Oct 2017 14:07:55 -0400 Subject: [PATCH v2] staging: rtlwifi: Fix line too long warning Made nested if else statement more concise to help conform to coding style. Signed-off-by: Kien Ha --- Chan

Re: Kernel crash in free_pipe_info()

2017-10-30 Thread Al Viro
On Mon, Oct 30, 2017 at 07:08:46PM -0700, Linus Torvalds wrote: > On Mon, Oct 30, 2017 at 6:19 PM, Cong Wang wrote: > > > > 1. The faulty addresses are all near 0001, with one exception > > of null (which is the most recent one) > > Well, they're at 8(%rax), except for that last case.

Re: [PATCH v6 00/10] rockchip: kevin: Enable edp display

2017-10-30 Thread JeffyChen
Hi Heiko, On 10/31/2017 07:01 AM, Heiko Stuebner wrote: As I was just looking at the edp dts change in patch1 again, does this series also contain a fix for the issue below [0] ? I'm still seeing this on 4.14-rc6 with the most recent drm tree merged in. i saw that too, it should due to our psr

Re: [PATCH V1] rpmsg: glink: Initialize the "intent_req_comp" completion variable

2017-10-30 Thread Bjorn Andersson
On Sun 29 Oct 22:41 PDT 2017, Arun Kumar Neelakantam wrote: > The "intent_req_comp" variable is used without initialization which > results in NULL pointer dereference in qcom_glink_request_intent(). > > we need to initialize the completion variable before using it. > > Fixes: 27b9c5b66b23 ("rpm

Re: [PATCH v2 0/3] GLINK intent preallocation support

2017-10-30 Thread Bjorn Andersson
On Thu 26 Oct 15:28 PDT 2017, Chris Lew wrote: > Intents are used to specify when a channel can receive data from a > remoteproc. Add support for channels to customize the size and amount > of prequeued intents. > > An audio channel might expect to receive 3 packets of size 4k in rapid > successi

Re: [PATCH] nilfs2: remove inode->i_version initialization

2017-10-30 Thread Ryusuke Konishi
On Mon, 30 Oct 2017 11:17:02 -0400, Jeff Layton wrote: > From: Jeff Layton > > It's never used in nilfs2. > > Signed-off-by: Jeff Layton > --- Applied, thank you. Ryusuke Konishi > fs/nilfs2/super.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super

Re: [PATCH 0/2] remoteproc: increase debug capabilities

2017-10-30 Thread Bjorn Andersson
On Fri 27 Oct 05:41 PDT 2017, Loic Pallardy wrote: > This series increases remoteproc debug capabilities by adding: > - associated resource table dump feature > - registered carveouts list dump feature > This looks very reasonable, can you please fix the problem reported by 0-day? Regards, Bjor

Re: [PATCH] platform/x86: fujitsu-laptop: Fix radio LED detection

2017-10-30 Thread Michał Kępień
> > Do you consider this an important fix? We are at -rc7 now, I'm not > > sure it's so critical. Tell me if you consider otherwise. > > I agree - from my perspective I wouldn't have thought it so critical as to > push it out this late in the development cycle. It's not a regression as > such and

Re: [PATCH] net: caif: chnl_net: remove unnecessary null check in chnl_recv_cb

2017-10-30 Thread Gustavo A. R. Silva
Quoting "Gustavo A. R. Silva" : Quoting "Gustavo A. R. Silva" : Hi, Quoting "Gustavo A. R. Silva" : container_of is never null, so this null check is unnecessary. This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- net/caif/chnl_net.c | 2 -- 1 file

linux-next: no tree for October 31

2017-10-30 Thread Stephen Rothwell
Hi all, There will be no linux-next tree for today (October 31) as jetlag, a cold and food poisoning is a bad combination :-( Hopefully I will restart linux-next tomorrow (November 1). -- Cheers, Stephen Rothwell

Re: linux-next: No tree for Oct 20th

2017-10-30 Thread Stephen Rothwell
Hi Mark, On Mon, 30 Oct 2017 21:32:02 + Mark Brown wrote: > > There will be no -next tree today, there are too many non-trivial > conflicts for things to complete in a reasonable time. Thanks very much for you efforts while I was traveling. I am back now and will restart linux-next tomorrow

[PATCH 2/2] f2fs: support quota sys files

2017-10-30 Thread Jaegeuk Kim
This patch supports hidden quota files in the system, which will be used for Android. It requires up-to-date f2fs-tools later than v1.9.0. Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c | 9 +++- fs/f2fs/f2fs.h | 9 +++- fs/f2fs/recovery.c | 8 ++- fs/f2fs/super.c | 145 +

[PATCH 1/2] f2fs: add quota_ino feature infra

2017-10-30 Thread Jaegeuk Kim
This patch adds quota_ino feature infra to be used for quota files. Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h | 6 ++ fs/f2fs/sysfs.c | 7 +++ include/linux/f2fs_fs.h | 6 +- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/

[PATCH 1/1] Change ping_group_range default to what Android's init script sets.

2017-10-30 Thread Rob Landley
From: Rob Landley See message from the Android "native tools and libraries team" lead (I.E. the maintainer of bionic, adb, toolbox, etc) at http://lists.landley.net/pipermail/toybox-landley.net/2017-July/009103.html Signed-off-by: Rob Landley --- net/ipv4/af_inet.c |8 ++-- 1 file cha

[PATCH v2] mtd: nand: Fix writing mtdoops to nand flash.

2017-10-30 Thread motobud
From: Brent Taylor When mtdoops calls mtd_panic_write, it eventually calls panic_nand_write in nand_base.c. In order to properly wait for the nand chip to be ready in panic_nand_wait, the chip must first be selected. When using the atmel nand flash controller, a panic would occur due to a NULL

Re: [f2fs-dev] [PATCH v2] f2fs: add bug_on when f2fs_gc even fails to get one victim

2017-10-30 Thread Yunlong Song
So it seems it is really useful to add this bug_on in gc. On 2017/10/31 11:17, Chao Yu wrote: On 2017/10/31 9:32, Yunlong Song wrote: I think there may be bugs somewhere, since no victim is selected but it really needs gc. What is the size of the data image? I have providered the testcase, cou

Re: [f2fs-dev] [PATCH v2] f2fs: add bug_on when f2fs_gc even fails to get one victim

2017-10-30 Thread Chao Yu
On 2017/10/31 9:32, Yunlong Song wrote: > I think there may be bugs somewhere, since no victim is selected but it > really needs gc. > What is the size of the data image? I have providered the testcase, could you check that? I can hit this bugon with generic/015 of fstest easily, could have

[PATCH v7] housekeeping: Document isolcpus flags

2017-10-30 Thread Frederic Weisbecker
Document the latest updates on the isolcpus boot option. While at it, let's also fix the details about the preferred way to isolate a set of CPUs from the scheduler general domains. Cpusets offer a much better interface to achieve that. Signed-off-by: Frederic Weisbecker Cc: Chris Metcalf Cc: Ri

Re: [PATCH v3 1/1] mtd: nand: pxa3xx: Set FORCE_CSX bit to ARMADA370 variants.

2017-10-30 Thread Chris Packham
Hi Miquel, On 09/10/17 19:19, Miquel RAYNAL wrote: > Hello Kalyan, > > On Mon, 9 Oct 2017 02:31:30 + > Kalyan Kinthada wrote: > >> On 05/10/17 20:41, Miquel RAYNAL wrote: >>> Hello Kalyan, >>> >>> On Thu, 28 Sep 2017 13:57:56 +1300 >>> Kalyan Kinthada wrote: >>> When the arbitratio

Re: [Xen-devel] [PATCH v5 1/1] xen/time: do not decrease steal time after live migration on xen

2017-10-30 Thread Dongli Zhang
Hi Boris, On 10/31/2017 08:58 AM, Boris Ostrovsky wrote: > > > On 10/30/2017 08:14 PM, Dongli Zhang wrote: >> Hi Boris, >> >> On 10/30/2017 09:34 PM, Boris Ostrovsky wrote: >>> On 10/30/2017 04:03 AM, Dongli Zhang wrote: After guest live migration on xen, steal time in /proc/stat (cpus

Re: Kernel crash in free_pipe_info()

2017-10-30 Thread Linus Torvalds
On Mon, Oct 30, 2017 at 7:08 PM, Linus Torvalds wrote: > > I'm not seeing anything that makes sense. I'll have to think about this. Al, would you mind taking a look at the error handling in create_pipe_files(). In particular, look here: - we start out allocating the inode with "get_pipe_inode(

RE: [PATCH v10 0/4] this patchset is to remove PPCisms for QEIC

2017-10-30 Thread Qiang Zhao
Hi all, Could anybody review this patchset and take action on them? Thank you! Best Regards Qiang Zhao > > -Original Message- > > From: Zhao Qiang [mailto:qiang.z...@nxp.com] > > Sent: Monday, August 07, 2017 11:07 AM > > To: t...@linutronix.de > > Cc: o...@buserror.net; Xiaobo Xie ; lin

[PATCH v2 2/2] devicetree: i2c-hid: Add reset property

2017-10-30 Thread Lin Huang
Document a "reset" and "assert-reset-us", it can be used for driver control reset property. And reuse post-power-on-delay-ms for deassert reset delay. Signed-off-by: Lin Huang --- Documentation/devicetree/bindings/input/hid-over-i2c.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) d

[PATCH v2 1/2] HID: i2c-hid: add reset gpio property

2017-10-30 Thread Lin Huang
some i2c hid devices have reset gpio, need to control it in the driver. Signed-off-by: Lin Huang --- Changes in v2: - Add 10us in usleep_range() upper range - reuse post_power_delay_ms as deassert reset delay - delete deassert_reset_us property drivers/hid/i2c-hid/i2c-hid.c | 61 +++

Re: [PATCH v2] f2fs: collect prefree segments to avoild write checkpoint fail

2017-10-30 Thread Chao Yu
On 2017/10/31 10:05, Yunlong Song wrote: > So I use CHECK_FS config to control it. When CHECK_FS is off, all the > other f2fs_bug_on also > only printk WARNING info rather than trigger BUG_ON. If this runing out-of-free-segments issue explicitly happens, IMO, its better to face and fix it. BTW,

Re: [lkp-robot] [printk] 7f7c60e066: BUG:KASAN:slab-out-of-bounds

2017-10-30 Thread Kees Cook
On Mon, Oct 30, 2017 at 7:39 PM, Tobin C. Harding wrote: > On Mon, Oct 30, 2017 at 05:14:59PM -0700, Kees Cook wrote: >> On Wed, Oct 25, 2017 at 9:22 AM, kernel test robot >> wrote: > > thanks for looking at this, I was at a loss as to what (if any) action I > needed to take. I have finally lear

Re: [lkp-robot] [printk] 7f7c60e066: BUG:KASAN:slab-out-of-bounds

2017-10-30 Thread Tobin C. Harding
On Mon, Oct 30, 2017 at 05:14:59PM -0700, Kees Cook wrote: > On Wed, Oct 25, 2017 at 9:22 AM, kernel test robot > wrote: thanks for looking at this, I was at a loss as to what (if any) action I needed to take. > > FYI, we noticed the following commit (built with gcc-4.9): > > > > commit: 7f7c60e

RE: linux-next: manual merge of the spi-nor tree with the imx-mxs tree

2017-10-30 Thread Z.q. Hou
Hi Cyrille, > -Original Message- > From: Cyrille Pitchen [mailto:cyrille.pitc...@wedev4u.fr] > Sent: 2017年10月31日 8:43 > To: Mark Brown ; Yuan Yao ; Z.q. > Hou ; Rob Herring ; Shawn Guo > ; Philipp Puschmann > Cc: linux-arm-ker...@lists.infradead.org; Linux-Next Mailing List > ; Linux Kern

Re: [PATCH] net: caif: chnl_net: remove unnecessary null check in chnl_recv_cb

2017-10-30 Thread Gustavo A. R. Silva
Quoting "Gustavo A. R. Silva" : Hi, Quoting "Gustavo A. R. Silva" : container_of is never null, so this null check is unnecessary. This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- net/caif/chnl_net.c | 2 -- 1 file changed, 2 deletions(-) diff --g

[PATCH] genirq: add mutex and rcu locking to irq_desc_tree

2017-10-30 Thread Masahiro Yamada
Add a mutex to prevent concurrency on the updater side of the irq_desc radix tree. Add rcu_read_lock/unlock to the reader side so that lifetimes of leaf pointers of the radix tree are correctly managed. Signed-off-by: Masahiro Yamada --- kernel/irq/irqdesc.c | 14 +- 1 file changed

Re: [PATCH v6 2/5] irqchip/irq-goldfish-pic: Add Goldfish PIC driver

2017-10-30 Thread Marc Zyngier
On Mon, Oct 30 2017 at 12:56:33 pm GMT, Aleksandar Markovic wrote: > From: Miodrag Dinic > > Add device driver for a virtual programmable interrupt controller > > The virtual PIC is designed as a device tree-based interrupt controller. > > The compatible string used by OS for binding the driver

Re: [PATCH -mm -V2] mm, swap: Fix false error message in __swp_swapcount()

2017-10-30 Thread Minchan Kim
On Mon, Oct 30, 2017 at 09:02:30AM +0100, Michal Hocko wrote: > On Mon 30-10-17 08:57:13, Minchan Kim wrote: > [...] > > Although it's better than old, we can make it simple, still. > > > > diff --git a/include/linux/swapops.h b/include/linux/swapops.h > > index 291c4b534658..f50d5a48f03a 100644 >

Re: linux-next: manual merge of the spi-nor tree with the imx-mxs tree

2017-10-30 Thread Shawn Guo
On Tue, Oct 31, 2017 at 01:42:30AM +0100, Cyrille Pitchen wrote: > Hi all, > > + Marek > > Mark, thanks for this report. > > Shawn, Yuan, if I don't make a mistake, patch "dt-bindings: mtd: add > sst25wf040b > and en25s64 to sip-nor list" was not submitted to the linux-mtd mailing list > hence

[PATCH v2] iio: adc: aspeed: Deassert reset in probe

2017-10-30 Thread Joel Stanley
The ASPEED SoC must deassert a reset in order to use the ADC peripheral. The device tree bindings are updated to document the resets phandle, and the example is updated to match what is expected for both the reset and clock phandle. Note that the bindings should have always had the reset controlle

Re: [PATCH V8 0/2] printk: hash addresses printed with %p

2017-10-30 Thread Joe Perches
On Tue, 2017-10-31 at 09:33 +1100, Tobin C. Harding wrote: > On Mon, Oct 30, 2017 at 03:03:21PM -0700, Kees Cook wrote: > > On Wed, Oct 25, 2017 at 7:53 PM, Tobin C. Harding wrote: > > > Here is the behaviour that this set implements. > > > > > > For kpt_restrict==0 > > > > > > Randomness not re

Re: Kernel crash in free_pipe_info()

2017-10-30 Thread Linus Torvalds
On Mon, Oct 30, 2017 at 6:19 PM, Cong Wang wrote: > > 1. The faulty addresses are all near 0001, with one exception > of null (which is the most recent one) Well, they're at 8(%rax), except for that last case. And in every case (_including_ that last case), %rax has a very interestin

Re: [PATCH v2] f2fs: collect prefree segments to avoild write checkpoint fail

2017-10-30 Thread Yunlong Song
So I use CHECK_FS config to control it. When CHECK_FS is off, all the other f2fs_bug_on also only printk WARNING info rather than trigger BUG_ON. On 2017/10/31 9:59, Chao Yu wrote: On 2017/10/31 9:33, Yunlong Song wrote: ping... On 2017/9/1 20:00, Yunlong Song wrote: In come corner case, the

[PATCH 1/2] perf tools: Fix memory leak in addr2inlines()

2017-10-30 Thread Namhyung Kim
When libbfd is not used, addr2inlines() executes `addr2line -i` and process output line by line. But it resets filename to NULL in the loop so getline() allocates additional memory everytime instead of realloc. Cc: Jin Yao Cc: Milian Wolff Signed-off-by: Namhyung Kim --- tools/perf/util/srcli

[PATCH 2/2] perf tools: Show correct function name for srcline of callchains

2017-10-30 Thread Namhyung Kim
When libbfd is not used, it doesn't show proper function name and reuse the original symbol of the sample. That's because it passes the original sym to inline_list__append(). As `addr2line -f` returns function names as well, use that to create ad inline_sym and pass it to inline_list__append().

Re: [PATCH V8 2/2] printk: hash addresses printed with %p

2017-10-30 Thread Tobin C. Harding
On Mon, Oct 30, 2017 at 08:00:46PM -0400, Steven Rostedt wrote: > On Tue, 31 Oct 2017 09:41:02 +1100 > "Tobin C. Harding" wrote: > > > > Cool. So I think we need > > > > get_random_bytes(&ptr_key, sizeof(ptr_key)); > > You'll need to add a comment here to describe what ordering the memory

Re: [PATCH v2] f2fs: collect prefree segments to avoild write checkpoint fail

2017-10-30 Thread Chao Yu
On 2017/10/31 9:33, Yunlong Song wrote: > ping... > > On 2017/9/1 20:00, Yunlong Song wrote: >> In come corner case, the reserved segments are used to do gc, and there are >> not enough free segments for write checkpoint to finish its job, then the >> gc process will fail to change the prefree seg

Re: [lkp-robot] [printk] 7f7c60e066: BUG:KASAN:slab-out-of-bounds

2017-10-30 Thread Ye Xiaolong
On 10/30, Kees Cook wrote: >On Wed, Oct 25, 2017 at 9:22 AM, kernel test robot > wrote: >> >> FYI, we noticed the following commit (built with gcc-4.9): >> >> commit: 7f7c60e0663645e757e520245606fde9c6e326bb ("printk: hash addresses >> printed with %p") >> url: >> https://github.com/0day-ci/linux

[PATCH] irq_work: Don't reinvent the wheel but use existing llist API

2017-10-30 Thread Frederic Weisbecker
From: Byungchul Park Although llist provides proper APIs, they are not used. Make them used. Signed-off-by: Byungchul Park Cc: Peter Zijlstra Signed-off-by: Frederic Weisbecker --- kernel/irq_work.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/kernel/irq_work.c b/

Re: [PATCH 2/2] samples/bpf: add a test for bpf_override_return

2017-10-30 Thread Alexei Starovoitov
On 10/30/17 2:19 PM, Josef Bacik wrote: + +rm -f testfile.img +dd if=/dev/zero of=testfile.img bs=1M seek=1000 count=1 +DEVICE=$(losetup --show -f testfile.img) +mkfs.btrfs -f $DEVICE +mkdir tmpmnt +./tracex7 $DEVICE +if [ $? -eq 0 ] +then + echo "SUCCESS!" +else + echo "FAILED!" +fi

Re: [PATCH 1/2] bpf: add a bpf_override_function helper

2017-10-30 Thread Alexei Starovoitov
On 10/30/17 2:19 PM, Josef Bacik wrote: From: Josef Bacik Error injection is sloppy and very ad-hoc. BPF could fill this niche perfectly with it's kprobe functionality. We could make sure errors are only triggered in specific call chains that we care about with very specific situations. Acco

Re: [PATCH v2] f2fs: collect prefree segments to avoild write checkpoint fail

2017-10-30 Thread Yunlong Song
ping... On 2017/9/1 20:00, Yunlong Song wrote: In come corner case, the reserved segments are used to do gc, and there are not enough free segments for write checkpoint to finish its job, then the gc process will fail to change the prefree segments to free segments. Signed-off-by: Yunlong Song

Re: [f2fs-dev] [PATCH v2] f2fs: add bug_on when f2fs_gc even fails to get one victim

2017-10-30 Thread Yunlong Song
I think there may be bugs somewhere, since no victim is selected but it really needs gc. What is the size of the data image? On 2017/10/16 11:25, Chao Yu wrote: On 2017/10/14 20:34, Yunlong Song wrote: Do you mean check out-of-space test? I have tried that but no bugon. Yes, test recent f2fs

Re: [PATCH 2/8] irqchip: mips-gic: Use irq_cpu_online to (un)mask all-VP(E) IRQs

2017-10-30 Thread Marc Zyngier
On Mon, Oct 30 2017 at 9:36:16 am GMT, Paul Burton wrote: > Hi Marc, > > On Mon, Oct 30, 2017 at 08:00:08AM +, Marc Zyngier wrote: >> > static int __init gic_of_init(struct device_node *node, >> > struct device_node *parent) >> > @@ -768,6 +806,8 @@ static int __ini

Re: [Part2 PATCH v6.1 16/38] crypto: ccp: Add Secure Encrypted Virtualization (SEV) command support

2017-10-30 Thread Brijesh Singh
On 10/30/17 12:57 PM, Borislav Petkov wrote: > On Mon, Oct 30, 2017 at 12:49:14PM -0500, Brijesh Singh wrote: >> If the buffer is allocated on the stack then there is no guarantee that > static global is not allocated on the stack. Okay, Just tried static global with CONFIG_VMAP_STACK=y and I am

Re: Kernel crash in free_pipe_info()

2017-10-30 Thread Cong Wang
On Mon, Oct 30, 2017 at 3:14 PM, Linus Torvalds wrote: > On Mon, Oct 30, 2017 at 1:58 PM, Cong Wang wrote: >> >> We got more than a dozen of kernel crashes at free_pipe_info() on our >> 4.1 kernel, they are all very similar to this one (with slightly >> different faulty addresses): > > Were it no

[PATCH v2] x86/cpufeatures: Enable new SSE/AVX/AVX512 cpu features

2017-10-30 Thread Gayatri Kammela
Add a few new SSE/AVX/AVX512 instruction groups/features for enumeration in /proc/cpuinfo: AVX512_VBMI2, GFNI, VAES, VPCLMULQDQ, AVX512_VNNI, AVX512_BITALG. CPUID.(EAX=7,ECX=0):ECX[bit 6] AVX512_VBMI2 CPUID.(EAX=7,ECX=0):ECX[bit 8] GFNI CPUID.(EAX=7,ECX=0):ECX[bit 9] VAES CPUID.(EAX=7,ECX=0):EC

Re: Kernel crash in free_pipe_info()

2017-10-30 Thread Cong Wang
On Mon, Oct 30, 2017 at 3:26 PM, Linus Torvalds wrote: > On Mon, Oct 30, 2017 at 3:14 PM, Linus Torvalds > wrote: >> On Mon, Oct 30, 2017 at 1:58 PM, Cong Wang wrote: >>> >>> We got more than a dozen of kernel crashes at free_pipe_info() on our >>> 4.1 kernel, they are all very similar to this o

[PATCH v4 3/3] MAINTAINERS: Add a new entry of the ov7740 driver

2017-10-30 Thread Wenyou Yang
Add a new entry of the ov7740 sensor driver to the MAINTAINERS file. Signed-off-by: Wenyou Yang --- Changes in v4: None Changes in v3: - Put the MAINTAINERS change to a separate patch. Changes in v2: - Split off the bindings into a separate patch. - Add a new entry to the MAINTAINERS file.

[PATCH v4 2/3] media: ov7740: Document device tree bindings

2017-10-30 Thread Wenyou Yang
Add the device tree binding documentation for the ov7740 sensor driver. Signed-off-by: Wenyou Yang --- Changes in v4: None Changes in v3: - Explicitly document the "remote-endpoint" property. Changes in v2: None .../devicetree/bindings/media/i2c/ov7740.txt | 47 ++

[PATCH v4 1/3] media: i2c: Add the ov7740 image sensor driver

2017-10-30 Thread Wenyou Yang
The ov7740 (color) image sensor is a high performance VGA CMOS image snesor, which supports for output formats: RAW RGB and YUV and image sizes: VGA, and QVGA, CIF and any size smaller. Signed-off-by: Songjun Wu Signed-off-by: Wenyou Yang --- Changes in v4: - Assign 'val' a initial value to av

[PATCH v4 0/3] media: ov7740: Add a V4L2 sensor-level driver

2017-10-30 Thread Wenyou Yang
Add a Video4Linux2 sensor-level driver for the OmniVision OV7740 VGA camera image sensor. Changes in v4: - Assign 'val' a initial value to avoid warning: 'val' may be used uninitialized. - Rename REG_REG15 to avoid warning: "REG_REG15" redefined. Changes in v3: - Explicitly document the "re

Re: [PATCH] iio: adc: aspeed: Deassert reset in probe

2017-10-30 Thread Joel Stanley
On Tue, Oct 31, 2017 at 11:02 AM, Joel Stanley wrote: > On Tue, Oct 31, 2017 at 2:51 AM, Philipp Zabel > wrote: >> Hi Joel, >> >> On Mon, Oct 30, 2017 at 8:22 AM, Joel Stanley wrote: >>> The ASPEED SoC must deassert a reset in order to use the ADC peripheral. >>> >>> The device tree bindings ar

Re: [Xen-devel] [PATCH v5 1/1] xen/time: do not decrease steal time after live migration on xen

2017-10-30 Thread Boris Ostrovsky
On 10/30/2017 08:14 PM, Dongli Zhang wrote: Hi Boris, On 10/30/2017 09:34 PM, Boris Ostrovsky wrote: On 10/30/2017 04:03 AM, Dongli Zhang wrote: After guest live migration on xen, steal time in /proc/stat (cpustat[CPUTIME_STEAL]) might decrease because steal returned by xen_steal_lock() migh

Re: consult a question about action_result() in memory_failure()

2017-10-30 Thread Naoya Horiguchi
Hi gengdongjiu, On Tue, Oct 24, 2017 at 08:47:41PM +0800, gengdongjiu wrote: > Hi Naoya, >very sorry to disturb you, I want to consult you about the handing to > error page type in memory_failure(). > If the error page is the current task's page table, will the memory_failure > not handling

Re: linux-next: manual merge of the spi-nor tree with the imx-mxs tree

2017-10-30 Thread Cyrille Pitchen
Hi all, + Marek Mark, thanks for this report. Shawn, Yuan, if I don't make a mistake, patch "dt-bindings: mtd: add sst25wf040b and en25s64 to sip-nor list" was not submitted to the linux-mtd mailing list hence was neither reviewed nor acked by any spi-nor maintainer. If so, such a patch should t

Re: [PATCH] MAINTAINERS: update TPM driver infrastructure changes

2017-10-30 Thread Peter Huewe
Hi, Am Freitag, 29. September 2017 22:23:13 CEST schrieb Jarkko Sakkinen: On Fri, Sep 29, 2017 at 08:29:09AM +, peter.hu...@infineon.com wrote: ... Spinics is archiving us at https://www.spinics.net/lists/linux-integrity/ It would be good to add this to the vger page + documented on the

Re: xfs: list corruption in xfs_setup_inode()

2017-10-30 Thread Dave Chinner
On Mon, Oct 30, 2017 at 02:55:43PM -0700, Cong Wang wrote: > Hello, > > We triggered a list corruption (double add) warning below on our 4.9 > kernel (the 4.9 kernel we use is based on -stable release, with only a > few unrelated networking backports): > > > WARNING: CPU: 5 PID: 628 at lib/list_

Re: [PATCH] iio: adc: aspeed: Deassert reset in probe

2017-10-30 Thread Joel Stanley
On Tue, Oct 31, 2017 at 2:51 AM, Philipp Zabel wrote: > Hi Joel, > > On Mon, Oct 30, 2017 at 8:22 AM, Joel Stanley wrote: >> The ASPEED SoC must deassert a reset in order to use the ADC peripheral. >> >> The device tree bindings are updated to document the resets phandle, and >> the example is up

Re: [pmem_attach_disk] WARNING: CPU: 46 PID: 518 at kernel/memremap.c:363 devm_memremap_pages+0x350/0x4b0

2017-10-30 Thread Dan Williams
On Mon, Oct 30, 2017 at 5:00 PM, Fengguang Wu wrote: > Hi Dan, > > On Mon, Oct 30, 2017 at 08:59:46AM -0700, Dan Williams wrote: >> >> On Mon, Oct 30, 2017 at 12:40 AM, Fengguang Wu >> wrote: >>> >>> >>> CC nvdimm maintainers. >>> >>> On Sun, Oct 29, 2017 at 11:51:55PM +0100, Fengguang Wu wrote:

Re: [Xen-devel] [PATCH v5 1/1] xen/time: do not decrease steal time after live migration on xen

2017-10-30 Thread Dongli Zhang
Hi Boris, On 10/30/2017 09:34 PM, Boris Ostrovsky wrote: > On 10/30/2017 04:03 AM, Dongli Zhang wrote: >> After guest live migration on xen, steal time in /proc/stat >> (cpustat[CPUTIME_STEAL]) might decrease because steal returned by >> xen_steal_lock() might be less than this_rq()->prev_steal_ti

Re: [lkp-robot] [printk] 7f7c60e066: BUG:KASAN:slab-out-of-bounds

2017-10-30 Thread Kees Cook
On Wed, Oct 25, 2017 at 9:22 AM, kernel test robot wrote: > > FYI, we noticed the following commit (built with gcc-4.9): > > commit: 7f7c60e0663645e757e520245606fde9c6e326bb ("printk: hash addresses > printed with %p") > url: > https://github.com/0day-ci/linux/commits/Tobin-C-Harding/printk-hash

Re: [btrfs] WARNING: CPU: 0 PID: 6379 at fs/direct-io.c:293 dio_complete+0x1d4/0x220

2017-10-30 Thread Fengguang Wu
Hi Eryu, On Mon, Oct 30, 2017 at 03:44:29PM +0800, Eryu Guan wrote: Hi Fengguang, On Mon, Oct 30, 2017 at 08:20:21AM +0100, Fengguang Wu wrote: CC fsdevel. On Sun, Oct 29, 2017 at 11:51:55PM +0100, Fengguang Wu wrote: > Hi Linus, > > Up to now we see the below boot error/warnings when testing

[PATCH] hv: kvp: Avoid reading past allocated blocks from KVP file

2017-10-30 Thread Long Li
From: Paul Meyer While reading in more than one block (50) of KVP records, the allocation goes per block, but the reads used the total number of allocated records (without resetting the pointer/stream). This causes the records buffer to overrun when the refresh reads more than one block over the

Re: [PATCH v2] staging: greybus: Convert timers to use timer_setup()

2017-10-30 Thread Kees Cook
On Mon, Oct 30, 2017 at 5:01 PM, wrote: > On 30 October 2017 9:37:37 p.m. GMT+00:00, Kees Cook > wrote: >>On Mon, Oct 30, 2017 at 4:48 AM, Johan Hovold wrote: >>> On Mon, Oct 30, 2017 at 11:44:22AM +, Bryan O'Donoghue wrote: On 30/10/17 11:38, Johan Hovold wrote: > On M

Re: [PATCH v2] target/iscsi: Convert timers to use timer_setup()

2017-10-30 Thread Kees Cook
On Fri, Oct 27, 2017 at 5:57 AM, Bart Van Assche wrote: > On Fri, 2017-10-27 at 02:19 -0700, Kees Cook wrote: >> In preparation for unconditionally passing the struct timer_list pointer to >> all timer callbacks, switch to using the new timer_setup() and from_timer() >> to pass the timer pointer e

Re: [PATCH v2] staging: greybus: Convert timers to use timer_setup()

2017-10-30 Thread pure . logic
On 30 October 2017 9:37:37 p.m. GMT+00:00, Kees Cook wrote: >On Mon, Oct 30, 2017 at 4:48 AM, Johan Hovold wrote: >> On Mon, Oct 30, 2017 at 11:44:22AM +, Bryan O'Donoghue wrote: >>> >>> >>> On 30/10/17 11:38, Johan Hovold wrote: >>> > On Mon, Oct 30, 2017 at 11:35:50AM +, Bryan O'Donogh

Re: [pmem_attach_disk] WARNING: CPU: 46 PID: 518 at kernel/memremap.c:363 devm_memremap_pages+0x350/0x4b0

2017-10-30 Thread Fengguang Wu
Hi Dan, On Mon, Oct 30, 2017 at 08:59:46AM -0700, Dan Williams wrote: On Mon, Oct 30, 2017 at 12:40 AM, Fengguang Wu wrote: CC nvdimm maintainers. On Sun, Oct 29, 2017 at 11:51:55PM +0100, Fengguang Wu wrote: Hi Linus, Up to now we see the below boot error/warnings when testing v4.14-rc6.

[PATCH] selftests: lib.mk: print individual test results to console by default

2017-10-30 Thread Shuah Khan
Change run_tests to print individual test results to console by default. Introduce "summary" option to print individual test results to a file /tmp/test_name and just print the summary to the console. This change is necessary to support use-cases where test machines get rebooted once tests are run

Re: [PATCH V8 2/2] printk: hash addresses printed with %p

2017-10-30 Thread Steven Rostedt
On Tue, 31 Oct 2017 09:41:02 +1100 "Tobin C. Harding" wrote: > Cool. So I think we need > > get_random_bytes(&ptr_key, sizeof(ptr_key)); You'll need to add a comment here to describe what ordering the memory barrier is used against. That is, somewhere else there's something that needs to

  1   2   3   4   5   6   7   8   >