Re: WARNING in ion_buffer_destroy

2018-05-09 Thread Dmitry Vyukov
On Wed, Jan 10, 2018 at 7:14 PM, Laura Abbott wrote: > On 01/09/2018 02:58 PM, syzbot wrote: >> >> Hello, >> >> syzkaller hit the following crash on >> 06d41862286aa7bc634a1dd9e6e7e96f925ef30a >> git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master >> compiler: gcc (GCC) 7.1.1

[PATCH net-next v2] tcp: Add mark for TIMEWAIT sockets

2018-05-09 Thread Jon Maxwell
This version has some suggestions by Eric Dumazet: - Use a local variable for the mark in IPv6 instead of ctl_sk to avoid SMP races. - Use the more elegant "IP4_REPLY_MARK(net, skb->mark) ?: sk->sk_mark" statement. - Factorize code as sk_fullsock() check is not necessary. Aidan McGurn from Ope

Re: net: hang in unregister_netdevice: waiting for lo to become free

2018-05-09 Thread Dmitry Vyukov
On Mon, Apr 16, 2018 at 9:42 PM, Dan Streetman wrote: > On Wed, Feb 21, 2018 at 3:53 PM, Tommi Rantala > wrote: >> On 20.02.2018 18:26, Neil Horman wrote: >>> >>> On Tue, Feb 20, 2018 at 09:14:41AM +0100, Dmitry Vyukov wrote: On Tue, Feb 20, 2018 at 8:56 AM,

Re: [PATCH v1 6/7] Bluetooth: hci_mediatek: Add protocol support for MediaTek serial devices

2018-05-09 Thread Sean Wang
On Tue, 2018-05-08 at 13:18 +0200, Marcel Holtmann wrote: > Hi Sean, > > > + [ ... ] > > > > I'm happy to do with btmon. just the environment with buildroot the BT > > running on seems there's a missing support for btmon. I can start to use > > btmon once I change the environment to Debian.

linux-next: manual merge of the akpm-current tree with the dma-mapping tree

2018-05-09 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in: arch/sh/Kconfig between commits: 86596f0a2833 ("scatterlist: move the NEED_SG_DMA_LENGTH config symbol to lib/Kconfig") f616ab59c294 ("dma-mapping: move the NEED_DMA_MAP_STATE config symbol to lib/Kconfig")

Re: [PATCH v3] x86/kexec: avoid double free_page() upon do_kexec_load() failure.

2018-05-09 Thread Baoquan He
On 05/09/18 at 07:42pm, Tetsuo Handa wrote: > >From ff82bedd3e12f0d3353282054ae48c3bd8c72012 Mon Sep 17 00:00:00 2001 > From: Tetsuo Handa > Date: Wed, 9 May 2018 12:12:39 +0900 > Subject: [PATCH v3] x86/kexec: avoid double free_page() upon do_kexec_load() > failure. > > syzbot is reporting cras

Re: [PATCH REPOST] Revert mm/vmstat.c: fix vmstat_update() preemption BUG

2018-05-09 Thread Vlastimil Babka
On 05/10/2018 12:35 AM, Sebastian Andrzej Siewior wrote: > On 2018-05-08 16:02:57 [-0700], Andrew Morton wrote: >> On Mon, 7 May 2018 09:31:05 +0200 Vlastimil Babka wrote: >> >>> In any case I agree that the revert should be done immediately even >>> before fixing the underlying bug. The preempt_d

Re: inconsistent lock state in fs_reclaim_acquire (2)

2018-05-09 Thread Dmitry Vyukov
On Thu, May 10, 2018 at 7:57 AM, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:036db8bd9637 Merge branch 'for-4.17-fixes' of git://git.ke.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=146dab5b80 > kernel config:

[PATCH] net: ipv4: remove define INET_CSK_DEBUG and unnecessary EXPORT_SYMBOL

2018-05-09 Thread Joe Perches
INET_CSK_DEBUG is always set and only is used for 2 pr_debug calls. EXPORT_SYMBOL(inet_csk_timer_bug_msg) is only used by these 2 pr_debug calls and is also unnecessary as the exported string can be used directly by these calls. Signed-off-by: Joe Perches --- include/net/inet_connection_sock.h

Re: [PATCH net-next v1] tcp: Add mark for TIMEWAIT sockets

2018-05-09 Thread Jonathan Maxwell
On Thu, May 10, 2018 at 3:45 PM, Eric Dumazet wrote: > > > On 05/09/2018 10:21 PM, Jon Maxwell wrote: > > ... > >> if (th->rst) >> @@ -723,11 +724,17 @@ static void tcp_v4_send_reset(const struct sock *sk, >> struct sk_buff *skb) >> arg.tos = ip_hdr(skb)->tos; >> arg.uid = sock_

Add MediaTek XS-PHY driver

2018-05-09 Thread Chunfeng Yun
>From 2ca1243f228633ca9dd96d3e4068af9e2936cd51 Mon Sep 17 00:00:00 2001 From: Chunfeng Yun Date: Thu, 10 May 2018 13:55:52 +0800 Subject: [PATCH v3 0/2] Add MediaTek XS-PHY driver This patch series support the SuperSpeedPlus XS-PHY transceiver for USB3.1 GEN2 controller on MediaTek chips. The dr

[PATCH v3 1/2] dt-bindings: add MediaTek XS-PHY binding

2018-05-09 Thread Chunfeng Yun
Add a DT binding documentation of XS-PHY for MediaTek SoCs with USB3.1 GEN2 controller Signed-off-by: Chunfeng Yun --- .../devicetree/bindings/phy/phy-mtk-xsphy.txt | 110 1 file changed, 110 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/phy-m

[PATCH v3 2/2] phy: mediatek: add XS-PHY driver

2018-05-09 Thread Chunfeng Yun
Support XS-PHY for MediaTek SoCs with USB3.1 GEN2 controller Signed-off-by: Chunfeng Yun --- drivers/phy/mediatek/Kconfig |9 + drivers/phy/mediatek/Makefile|1 + drivers/phy/mediatek/phy-mtk-xsphy.c | 600 ++ 3 files changed, 610 insertio

Re: [PATCH v2 0/2] mm: PAGE_KERNEL_* fallbacks

2018-05-09 Thread Greg KH
On Wed, May 09, 2018 at 06:44:45PM -0700, Luis R. Rodriguez wrote: > While dusting out the firmware loader closet I spotted a PAGE_KERNEL_* > fallback hack. This hurts my eyes, and it should also be blinding > others. Turns out we have other PAGE_KERNEL_* fallback hacks in > other places. > > This

[PATCH] perf annotate: Support multiple events without group

2018-05-09 Thread Jin Yao
See example, perf record -e cycles,branches ./div perf annotate main --stdio or perf annotate main --stdio2 or perf annotate main The "perf annotate" should show both cycles and branches on the left side, but actually it only shows one event cycles. It works with events group like: perf record -

Re: [PATCH 2/2] alx: add disable_wol paramenter

2018-05-09 Thread AceLan Kao
Hi Andrew, We have some machines using Qualcomm Atheros Killer E2400 Gigabit Ethernet Controller, but none of them has the unintentional wake up issue. We're willing to fix it if we encountered the issue, but before we can do it, we need this feature is supported by the driver. Taking the feature

Re: vmalloc with GFP_NOFS

2018-05-09 Thread Michal Hocko
On Wed 09-05-18 15:02:31, Darrick J. Wong wrote: > On Wed, May 09, 2018 at 11:04:47PM +0200, Michal Hocko wrote: > > On Wed 09-05-18 08:13:51, Darrick J. Wong wrote: [...] > > > > FS resp. IO submitting code paths have to be careful when allocating > > > > > > Not sure what 'FS resp. IO' means her

inconsistent lock state in fs_reclaim_acquire (2)

2018-05-09 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:036db8bd9637 Merge branch 'for-4.17-fixes' of git://git.ke.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=146dab5b80 kernel config: https://syzkaller.appspot.com/x/.config?x=31f4b3733894ef79 da

[PATCH v2 5/7] usb: mtu3: make USB_MTU3_DUAL_ROLE depend on EXTCON but not USB_MTU3

2018-05-09 Thread Chunfeng Yun
In fact the driver depends on EXTCON only when it's configed as USB_MTU3_DUAL_ROLE, so make USB_MTU3_DUAL_ROLE depend on EXTCON but not USB_MTU3. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/mtu3/Kconfi

[PATCH v2 3/7] usb: mtu3: fix an unrecognized issue when connected with PC

2018-05-09 Thread Chunfeng Yun
When boot on the platform with the USB cable connected to Win7, the Win7 will pop up an error dialog: "USB Device not recognized", but finally the Win7 can enumerate it successfully. The root cause is as the following: When the xHCI driver set PORT_POWER of the OTG port, and if both IDPIN and VBUS_

[PATCH v2 4/7] usb: mtu3: fix operation failure when test TEST_J/K

2018-05-09 Thread Chunfeng Yun
There is an error dialog popped up in PC when test TEST_J/K by EHSETT tool, due to not waiting for the completion of control transfer. Here fix it by entering test mode after Status Stage finish. Signed-off-by: Chunfeng Yun --- v2: 1. reset test_mode as default value when controller is reset

[PATCH v2 7/7] usb: mtu3: fix uncontinuous SeqN issue after disable EP

2018-05-09 Thread Chunfeng Yun
Reset EP when disable it to reset data toggle for U2 EP, and SeqN, flow control status etc for U3 EP, this can avoid issue of uncontinuous SeqN Signed-off-by: Chunfeng Yun --- v2: add this patch --- drivers/usb/mtu3/mtu3_core.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/

[PATCH v2 1/7] usb: mtu3: avoid TX data length truncated in SS/SSP mode

2018-05-09 Thread Chunfeng Yun
The variable of 'count' is declared as u8, this will cause an issue due to value truncated when works in SS or SSP mode and data length is greater than 255, so change it as u32. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3_gadget_ep0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(

[PATCH v2 2/7] usb: mtu3: remove repeated setting of gadget state

2018-05-09 Thread Chunfeng Yun
The usb_add_gadget_udc() will set the gadget state as USB_STATE_NOTATTACHED, so we needn't set it again. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3_gadget.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/usb/mtu3/mtu3_gadget.c b/drivers/usb/mtu3/mt

[PATCH v2 6/7] usb: mtu3: re-enable controller to accept LPM request after LPM resume

2018-05-09 Thread Chunfeng Yun
After the controller receives a LPM request, it will reject the LPM request, and need software to re-enable it after LPM resume if the controller doesn't remote wakeup from L1 automatically Signed-off-by: Chunfeng Yun --- v2: add this patch --- drivers/usb/mtu3/mtu3_core.c | 8 +++- 1 fi

Re: [PATCH net-next v1] tcp: Add mark for TIMEWAIT sockets

2018-05-09 Thread Eric Dumazet
On 05/09/2018 10:21 PM, Jon Maxwell wrote: ... > if (th->rst) > @@ -723,11 +724,17 @@ static void tcp_v4_send_reset(const struct sock *sk, > struct sk_buff *skb) > arg.tos = ip_hdr(skb)->tos; > arg.uid = sock_net_uid(net, sk && sk_fullsock(sk) ? sk : NULL); > local_bh_d

[PATCH] staging: lustre: o2iblnd: Fix crash in kiblnd_handle_early_rxs()

2018-05-09 Thread Doug Oucharek
Under upstream staging commit 5a2ca43fa54f561c252c2, the list handling code in kiblnd_handle_early_rxs() got changed to list_for_each_safe(). That protects against the current thread from deleting the current entry it is looking at. It does not protect against another thread from deleting the next

[PATCH] ocfs2: ocfs2_inode_lock_tracker does not distinguish lock level

2018-05-09 Thread Larry Chen
ocfs2_inode_lock_tracker as a variant of ocfs2_inode_lock, is used to prevent deadlock due to recursive lock acquisition. But this function does not distinguish whether the requested level is EX or PR. If a RP lock has been attained, this function will immediately return success afterwards even a

[PATCH net-next v1] tcp: Add mark for TIMEWAIT sockets

2018-05-09 Thread Jon Maxwell
This version has some suggestions by Eric Dumazet: - Use a local variable for the mark in IPv6 instead of ctl_sk to avoid SMP races. - Use the more elegant "IP4_REPLY_MARK(net, skb->mark) ?: sk->sk_mark" statement. Aidan McGurn from Openwave Mobility systems reported the following bug: "Marke

Re: WARNING in event_function_local

2018-05-09 Thread Dmitry Vyukov
On Sat, Jan 27, 2018 at 8:58 PM, syzbot wrote: > Hello, > > syzbot hit the following crash on bpf-next commit > 8223967fe0b8eb2448cca5cfe3c64a0838e6f60d (Sat Jan 27 01:06:23 2018 +) > Merge branch 'fix-lpm-map' > > So far this crash happened 2 times on bpf-next. > C reproducer is attached. > s

Re: KASAN: slab-out-of-bounds Write in process_preds

2018-05-09 Thread Dmitry Vyukov
On Wed, Apr 11, 2018 at 2:02 PM, syzbot wrote: > Hello, > > syzbot hit the following crash on upstream commit > b284d4d5a6785f8cd07eda2646a95782373cd01e (Tue Apr 10 19:25:30 2018 +) > Merge tag 'ceph-for-4.17-rc1' of git://github.com/ceph/ceph-client > syzbot dashboard link: > https://syzkalle

[PATCH v4 2/2] input: misc: Add Spreadtrum vibrator driver

2018-05-09 Thread Baolin Wang
From: Xiaotong Lu This patch adds the Spreadtrum vibrator driver, which embedded in the Spreadtrum SC27xx series PMICs. Signed-off-by: Xiaotong Lu Signed-off-by: Baolin Wang --- Changes since v3: - No updates. Changes since v2: - Fix the condition when disabling the vibrator. - Change of_p

[PATCH v4 1/2] dt-bindings: input: Add Add Spreadtrum SC27xx vibrator documentation

2018-05-09 Thread Baolin Wang
From: Xiaotong Lu This patch adds the binding documentation for Spreadtrum SC27xx series vibrator device. Signed-off-by: Xiaotong Lu Signed-off-by: Baolin Wang --- Changes since v3: - Change compatible string to explicit Soc name. - Add parent MFD node. Changes since v2: - No updates. Cha

Re: [PATCH 5/8] export.h: remove code for prefixing symbols with underscore

2018-05-09 Thread Sam Ravnborg
Hi Mashahiro > Anyway VMLINUX_SYMBOL(), VMLINUX_SYMBOL_STR() will not live long. > I need some cycles for tree-wide cleaning, though. Fine, then there is no need to discuss the details of their current definition. Sam

smp_call_function() friends and irq/bottom_half context

2018-05-09 Thread 류호은
Hi, all. I'm reading kernel/smp.c code and I found comments on smp_call_function() and smp_call_function_[single/many] saying that these functions are cannot be called in interrupt disabled context or irq/bottom half handlers. I understand that there is a potential deadlock issue when caller CPU

RE: Are media drivers abusing of GFP_DMA? - was: Re: [LSF/MM TOPIC NOTES] x86 ZONE_DMA love

2018-05-09 Thread Yasunari.Takiguchi
Dear Mauro > -Original Message- > > There was a recent discussion about the use/abuse of GFP_DMA flag when > allocating memories at LSF/MM 2018 (see Luis notes enclosed). > > The idea seems to be to remove it, using CMA instead. Before doing that, > better to check if what we have on med

Re: bug in tag handling in blk-mq?

2018-05-09 Thread Mike Galbraith
On Wed, 2018-05-09 at 13:50 -0600, Jens Axboe wrote: > On 5/9/18 12:31 PM, Mike Galbraith wrote: > > On Wed, 2018-05-09 at 11:01 -0600, Jens Axboe wrote: > >> On 5/9/18 10:57 AM, Mike Galbraith wrote: > >> > > Confirmed. Impressive high speed bug stomping. > > Well, that's good news.

[PATCH v2] perf buildid-cache: Warn --purge-all failures

2018-05-09 Thread Ravi Bangoria
Warn perf buildid-cache --purge-all failures in non verbose mode. Ex, $ sudo chown root:root /home/ravi/.debug -R $ sudo chmod 700 /home/ravi/.debug/ -R $ ./perf buildid-cache -P Couldn't remove some caches. Error: Permission denied. Suggested-by: Masami Hiramatsu Signed-off-by: Ravi B

Re: [PATCH net-next] tcp: Add mark for TIMEWAIT sockets

2018-05-09 Thread Jonathan Maxwell
On Thu, May 10, 2018 at 1:32 PM, Eric Dumazet wrote: > > > On 05/09/2018 07:07 PM, Jon Maxwell wrote: >> Aidan McGurn from Openwave Mobility systems reported the following bug: >> >> "Marked routing is broken on customer deployment. Its effects are large >> increase in Uplink retransmissions cause

Re: [GIT PULL] ARM: uniphier: fixes for v4.17

2018-05-09 Thread Olof Johansson
On Wed, May 9, 2018 at 9:18 PM, Masahiro Yamada wrote: > Hi Arnd, Olof, > > > 2018-04-29 0:47 GMT+09:00 Masahiro Yamada : >> Hi Arnd, Olof, >> >> Please pull some fixes of ARM UniPhier DT. > > > I am guessing why this has not been pulled yet. > Right, I was late - you had already sent the fixes pu

Re: printk feature for syzbot?

2018-05-09 Thread Sergey Senozhatsky
On (04/26/18 12:06), Petr Mladek wrote: > > > Petr, Steven, Fengguang, what do you think? Do you have any objections? > > Ideas? > > I wonder if we could create some mechanism that would help to extend > struct printk_log easier in the future. Hm, interesting idea. > I know only about crash too

Re: [GIT PULL] ARM: uniphier: fixes for v4.17

2018-05-09 Thread Masahiro Yamada
Hi Arnd, Olof, 2018-04-29 0:47 GMT+09:00 Masahiro Yamada : > Hi Arnd, Olof, > > Please pull some fixes of ARM UniPhier DT. I am guessing why this has not been pulled yet. Right, I was late - you had already sent the fixes pull request to Linus. Do you have a chance to send another fixes PR for

[RFC][PATCH] cgroup: Don't mess with tasks in exec

2018-05-09 Thread Eric W. Biederman
Semantically exec is supposed to be atomic with no user space visible intermediate points. Migrating tasks during exec may change that and lead to all manner of difficult to analyze and maintin corner cases. So avoid the problems by simply blocking cgroup migration over the entirety of exec. Rep

[PATCH RESEND v2 2/2] perf cs-etm: Remove redundant space

2018-05-09 Thread Leo Yan
There have two spaces ahead function name cs_etm__set_pid_tid_cpu(), so remove one space and correct indentation. Signed-off-by: Leo Yan Acked-by: Mathieu Poirier --- tools/perf/util/cs-etm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/util/cs-etm.c b/tool

[PATCH RESEND v2 1/2] perf cs-etm: Support unknown_thread in cs_etm_auxtrace

2018-05-09 Thread Leo Yan
CoreSight doesn't allocate thread structure for unknown_thread in etm auxtrace, so unknown_thread is NULL pointer. If the perf data doesn't contain valid tid and then cs_etm__mem_access() uses unknown_thread instead as thread handler, this results in segmentation fault when thread__find_addr_map()

Re: [PATCH v2 1/2] perf cs-etm: Support unknown_thread in cs_etm_auxtrace

2018-05-09 Thread Leo Yan
On Wed, May 09, 2018 at 09:51:50AM -0600, Mathieu Poirier wrote: > On Wed, May 09, 2018 at 12:15:11PM +0800, Leo Yan wrote: > > CoreSight doesn't allocate thread structure for unknown_thread in etm > > auxtrace, so unknown_thread is NULL pointer. If the perf data doesn't > > contain valid tid and

RE: [External] [RFC PATCH v1 3/6] mm, zone_type: create ZONE_NVM and fill into GFP_ZONE_TABLE

2018-05-09 Thread Huaisheng HS1 Ye
> > On Wed 09-05-18 14:04:21, Huaisheng HS1 Ye wrote: > > > From: owner-linux...@kvack.org [mailto:owner-linux...@kvack.org] On > > > Behalf Of > Michal Hocko > > > > > > On Wed 09-05-18 04:22:10, Huaisheng HS1 Ye wrote: > [...] > > > > Current mm treats all memory regions equally, it divides zon

[PATCH 0/3] objtool: GCC 8 support

2018-05-09 Thread Josh Poimboeuf
Now that GCC 8 is out, several people have complained about a bunch of objtool warnings. These patches fix all known warnings. Patch 1 is a repost of a previous fix -- unrelated to GCC 8, but a prereq for the following two patches. Patch 2 fixes the vast majority of the warnings, caused by GCC 8

[PATCH 1/3] objtool: Fix "noreturn" detection for recursive sibling calls

2018-05-09 Thread Josh Poimboeuf
Objtool has some crude logic for detecting static "noreturn" functions (aka "dead ends"). This is necessary for being able to correctly follow GCC code flow when such functions are called. It's remotely possible for two functions to call each other via sibling calls. If they don't have RET instr

Re: [PATCH 5/8] export.h: remove code for prefixing symbols with underscore

2018-05-09 Thread Masahiro Yamada
Hi Sam, 2018-05-10 1:07 GMT+09:00 Sam Ravnborg : > Hi Masahiro > > On Wed, May 09, 2018 at 04:23:49PM +0900, Masahiro Yamada wrote: >> CONFIG_HAVE_UNDERSCORE_SYMBOL_PREFIX was selected by BLACKFIN, METAG. >> They were removed by commit 4ba66a976072 ("arch: remove blackfin port"), >> commit bb6fb6d

[PATCH 3/3] objtool: Support GCC 8 switch tables

2018-05-09 Thread Josh Poimboeuf
Add some additional checks to the switch jump table logic. This fixes the following warnings with GCC 8: drivers/block/virtio_blk.o: warning: objtool: virtio_queue_rq()+0x0: stack state mismatch: cfa1=7+8 cfa2=7+72 net/ipv6/icmp.o: warning: objtool: icmpv6_rcv()+0x0: stack state mismatch: c

[PATCH 2/3] objtool: Support GCC 8 cold subfunctions

2018-05-09 Thread Josh Poimboeuf
GCC 8 moves a lot of unlikely code out of line to "cold" subfunctions in .text.unlikely. Properly detect the new subfunctions and treat them as extensions of the original functions. This fixes a bunch of warnings like: kernel/cgroup/cgroup.o: warning: objtool: parse_cgroup_root_flags()+0x33:

Re: [PATCH net-next] tcp: Add mark for TIMEWAIT sockets

2018-05-09 Thread Eric Dumazet
On 05/09/2018 07:07 PM, Jon Maxwell wrote: > Aidan McGurn from Openwave Mobility systems reported the following bug: > > "Marked routing is broken on customer deployment. Its effects are large > increase in Uplink retransmissions caused by the client never receiving > the final ACK to their FI

[PATCH] bpf, arm32: Correct check_imm24

2018-05-09 Thread Wang YanQing
imm24 is signed, so the right range is: [-(2<<(24 - 1)), (2<<(24 - 1)) - 1] Note:this patch also fix a typo. Signed-off-by: Wang YanQing --- arch/arm/net/bpf_jit_32.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/arch/arm/net/bpf_jit_32.c b/arch/arm/net/bpf_j

[PATCH] bpf, arm32: Fix inconsistent naming about emit_a32_lsr_r64|emit_a32_lsr_i64

2018-05-09 Thread Wang YanQing
The reasonable names for emit_a32_lsr_r64|emit_a32_lsr_i64 are emit_a32_rsh_r64|emit_a32_rsh_i64. This patch also correct a wrong comment. Signed-off-by: Wang YanQing --- arch/arm/net/bpf_jit_32.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/net/bpf_ji

Re: [Ksummit-discuss] bug-introducing patches

2018-05-09 Thread Sasha Levin
On Wed, May 09, 2018 at 08:47:27PM +1000, Stephen Rothwell wrote: >On Wed, 9 May 2018 18:03:46 +0900 Mark Brown wrote: >> >> On Wed, May 09, 2018 at 10:47:57AM +0200, Daniel Vetter wrote: >> > On Wed, May 9, 2018 at 10:44 AM, Mark Brown wrote: >> >> > > I think this is an excellent idea, copying

Re: [PATCH v2 2/2] leds: Add Spreadtrum SC27xx breathing light controller driver

2018-05-09 Thread Baolin Wang
Hi Pavel, On 9 May 2018 at 22:25, Pavel Machek wrote: > On Tue 2018-05-08 13:39:45, Baolin Wang wrote: >> From: Xiaotong Lu >> >> This patch adds Spreadtrum SC27xx PMIC series breathing light controller >> driver, which can support 3 LEDs. Each LED can work at normal PWM mode >> and breathing mo

Re: [RESEND PATCH 1/5] usb: mtu3: avoid TX data length truncated in SS/SSP mode

2018-05-09 Thread Chunfeng Yun
Hi, Greg On Thu, 2018-05-10 at 10:16 +0800, Chunfeng Yun wrote: > Hi, Greg > >Could you please pick up the series of patches, thanks a lot Please ignore it, I find a problem in [RESEND PATCH 4/5], and need send a new version. Very sorry > > On Sat, 2018-05-05 at 10:21 +0800, Chunfeng Yun w

Re: [PATCH] memcg: Replace mm->owner with mm->memcg

2018-05-09 Thread Eric W. Biederman
Oleg Nesterov writes: > On 05/07, Eric W. Biederman wrote: >> >> Oleg Nesterov writes: >> >> > before your patch get_mem_cgroup_from_mm() looks at mm->owner == current >> > (in this case) and mem_cgroup_from_task() should return the correct memcg >> > even if execing task migrates after bprm_mm_

[PATCH] bpf, doc: clarification for the meaning of 'id'

2018-05-09 Thread Wang YanQing
For me, as a reader whose mother language isn't English, the old words bring a little difficulty to catch the meaning, this patch rewords the subsection in a more clarificatory way. This patch also add blank lines as separator at two places to improve readability. Signed-off-by: Wang YanQing ---

linux-next: build warning after merge of the sound-asoc tree

2018-05-09 Thread Stephen Rothwell
Hi all, After merging the sound-asoc tree, today's linux-next build (x86_64 allmodconfig) produced this warning: WARNING: modpost: missing MODULE_LICENSE() in sound/soc/omap/snd-soc-sdma.o see include/linux/module.h for more information WARNING: modpost: missing MODULE_LICENSE() in sound/soc/omap

[PATCH v5] block: add verifier for cmdline partition

2018-05-09 Thread Wang YanQing
I meet strange filesystem corruption issue recently, the reason is there are overlaps partitions in cmdline partition argument. This patch add verifier for cmdline partition, then if there are overlaps partitions, cmdline_partition will log a warning. We don't treat overlaps partition as a error:

Re: [PATCH 2/2] memcg: Close the race between migration and installing bprm->mm as mm

2018-05-09 Thread Eric W. Biederman
Oleg Nesterov writes: > On 05/04, Eric W. Biederman wrote: >> >> --- a/fs/exec.c >> +++ b/fs/exec.c >> @@ -1044,6 +1044,8 @@ static int exec_mmap(struct mm_struct *mm) >> return 0; >> } >> mmdrop(active_mm); >> +/* The tsk may have migrated before the new mm was attache

[PATCH] soc: mediatek: remove unneeded semicolon

2018-05-09 Thread sean.wang
From: Sean Wang Fix up drivers/soc/mediatek/mtk-scpsys.c:255:2-3: Unneeded semicolon accidently being added in commit f9e2f65dd561 ("soc: mediatek: add a fixed wait for SRAM stable"). Fixes: f9e2f65dd561 ("soc: mediatek: add a fixed wait for SRAM stable") Reported-by: kbuild test robot Signed-o

Re: fd3e45436660 ("ACPI / NUMA: ia64: Parse all entries of SRAT memory affinity table")

2018-05-09 Thread Ganapatrao Kulkarni
On Wed, May 9, 2018 at 6:26 PM, Michal Hocko wrote: > On Wed 09-05-18 18:07:16, Ganapatrao Kulkarni wrote: >> Hi Michal >> >> >> On Wed, May 9, 2018 at 5:54 PM, Michal Hocko wrote: >> > On Wed 11-04-18 12:48:32, Michal Hocko wrote: >> >> Hi, >> >> my attention was brought to the %subj commit and

RE: [PATCH v4 2/2] mtd: rawnand: use bit-wise majority to recover the contents of ONFI parameter

2018-05-09 Thread Wan, Jane (Nokia - US/Sunnyvale)
Hi Boris, I've sent v5 of the patch based on your comment. Thanks. Jane > -Original Message- > From: Boris Brezillon [mailto:boris.brezil...@bootlin.com] > Sent: Wednesday, May 09, 2018 7:19 AM > To: Wan, Jane (Nokia - US/Sunnyvale) > Cc: miquel.ray...@bootlin.com; dw...@infradead.org;

Re: [PATCH v4 01/13] mm: Assign id to every memcg-aware shrinker

2018-05-09 Thread Shakeel Butt
On Wed, May 9, 2018 at 3:55 PM Andrew Morton wrote: > On Wed, 09 May 2018 14:56:55 +0300 Kirill Tkhai wrote: > > The patch introduces shrinker::id number, which is used to enumerate > > memcg-aware shrinkers. The number start from 0, and the code tries > > to maintain it as small as possible. >

[PATCH v5 2/2] mtd: rawnand: use bit-wise majority to recover the contents of ONFI parameter

2018-05-09 Thread Jane Wan
Per ONFI specification (Rev. 4.0), if all parameter pages have invalid CRC values, the bit-wise majority may be used to recover the contents of the parameter pages from the parameter page copies present. Signed-off-by: Jane Wan --- drivers/mtd/nand/raw/nand_base.c | 46

Re: [PATCH] PCI: Check whether bridges allow access to extended config space

2018-05-09 Thread Frederick Lawler
Hi, Gilles Buloz wrote: Here are full dmesg + lspci -vv + ... for the following cases : - 4.17-rc1_probe_failed_without_pcieaspmoff.txt : I get a broken PCI config at most boots, without pcie_aspm=off - 4.17-rc1_probe_ok_without_pcieaspmoff.txt : I get a correct PCI config at some boots, even

答复: [PATCH] ANDROID: binder: correct the cmd print for BINDER_WORK_RETURN_ERROR

2018-05-09 Thread 宋金时
OK,this patch is based on the downstream android kernel4.4 version, not yet include the latest changes, let me update the patch to base on the latest upstream, Tks. 发件人: Todd Kjos 发送时间: 2018年5月10日 2:08 收件人: 宋金时 抄送: Greg Kroah-Hartman; Martijn Coenen; Arv

Re: [REVIEW][PATCH 08/22] signal/mips: Use force_sig_fault where appropriate

2018-05-09 Thread Eric W. Biederman
tate); >> } >> @@ -722,32 +716,27 @@ asmlinkage void do_ov(struct pt_regs *regs) >> void force_fcr31_sig(unsigned long fcr31, void __user *fault_addr, >> struct task_struct *tsk) >> { >> -struct siginfo si; >> - >> -clear_

Re: [PATCH 2/4] pid: Export find_task_by_vpid for use in external modules

2018-05-09 Thread Eric W. Biederman
Mathieu Poirier writes: > On Tue, May 08, 2018 at 11:59:38PM -0500, Eric W. Biederman wrote: >> Kim Phillips writes: >> >> > This patch is in the context of allowing the Coresight h/w >> > trace driver suite to be loaded as modules. Coresight uses >> > find_task_by_vpid when running in direct

Re: [RESEND PATCH 1/5] usb: mtu3: avoid TX data length truncated in SS/SSP mode

2018-05-09 Thread Chunfeng Yun
Hi, Greg Could you please pick up the series of patches, thanks a lot On Sat, 2018-05-05 at 10:21 +0800, Chunfeng Yun wrote: > The variable of 'count' is declared as u8, this will cause an issue > due to value truncated when works in SS or SSP mode and data length > is greater than 255, so ch

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

2018-05-09 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: drivers/net/ethernet/realtek/r8169.c between commit: 3148dedfe79e ("r8169: fix powering up RTL8168h") from the net tree and commit: 4f447d296982 ("r8169: drop member pll_power_ops from struct rtl8169_private") fro

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

2018-05-09 Thread Eduardo Valentin
Hey Rui, On Wed, May 09, 2018 at 09:43:41PM +1000, Stephen Rothwell wrote: > Hi Zhang, > > Commits > > a2ace598c00a ("thermal: exynos: Reading temperature makes sense only when > TMU is turned on") > f9cd6a904e6e ("thermal: exynos: Propagate error value from tmu_read()") > > are missing a

[PATCH net-next] tcp: Add mark for TIMEWAIT sockets

2018-05-09 Thread Jon Maxwell
Aidan McGurn from Openwave Mobility systems reported the following bug: "Marked routing is broken on customer deployment. Its effects are large increase in Uplink retransmissions caused by the client never receiving the final ACK to their FINACK - this ACK misses the mark and routes out of the

Re: [PATCH] Revert "sched/numa: Delay retrying placement for automatic NUMA balance after wake_affine()"

2018-05-09 Thread Srikar Dronamraju
* Mel Gorman [2018-05-09 17:31:15]: > This reverts commit 7347fc87dfe6b7315e74310ee1243dc222c68086. > > Srikar Dronamra pointed out that while the commit in question did show > a performance improvement on ppc64, it did so at the cost of disabling > active CPU migration by automatic NUMA balanci

[PATCH v2] ANDROID: binder: correct the cmd print for BINDER_WORK_RETURN_ERROR

2018-05-09 Thread 宋金时
When to execute binder_stat_br the e->cmd has been modifying as BR_OK instead of the original return error cmd, in fact we want to know the original return error, such as BR_DEAD_REPLY or BR_FAILED_REPLY, etc. instead of always BR_OK, in order to avoid the value of the e->cmd is always BR_OK, s

Re: [PATCH 3/6] firmware: differentiate between signed regulatory.db and other firmware

2018-05-09 Thread Mimi Zohar
On Wed, 2018-05-09 at 23:48 +, Luis R. Rodriguez wrote: > On Wed, May 09, 2018 at 06:06:57PM -0400, Mimi Zohar wrote: > > On Wed, 2018-05-09 at 21:22 +, Luis R. Rodriguez wrote: > > > > > > OK, its still not clear to what it will do. If it does not touch the > > > firmware > > > loader co

Re: [PATCH v2 1/2] dt-bindings: leds: Add SC27xx breathing light controller documentation

2018-05-09 Thread Baolin Wang
Hi Pavel, On 9 May 2018 at 22:25, Pavel Machek wrote: > Hi! > >> This patch adds the binding documentation for Spreadtrum SC27xx series >> breathing light controller, which supports 3 outputs: red LED, green >> LED and blue LED. >> >> Signed-off-by: Baolin Wang >> --- >> Changes since v1: >> -

RE: [PATCH] clk: imx6ull: use OSC clock during AXI rate change

2018-05-09 Thread Jacky Bai
> Subject: Re: [PATCH] clk: imx6ull: use OSC clock during AXI rate change > > On 09.05.2018 03:26, Jacky Bai wrote: > >> Subject: Re: [PATCH] clk: imx6ull: use OSC clock during AXI rate > >> change > >> > >> Quoting Stefan Agner (2018-05-08 06:20:03) > >> > On 08.05.2018 09:32, Jacky Bai wrote: >

Re: [PATCH] usb: gadget: composite: fill bcdUSB as 0x0320 for SuperSpeed or higher speeds

2018-05-09 Thread Chunfeng Yun
Hi, On Wed, 2018-05-09 at 14:33 +0300, Felipe Balbi wrote: > Hi, > > Chunfeng Yun writes: > > The USB3CV version 2.1.80 (March 26, 2018) requires all devices > > ( gen1, gen2, single lane, dual lane) to return the value of 0x0320 > > in the bcdUSB field > > this sounds really odd. What happens

Re: [PATCH] ARM: DTS: imx53: Add support for imx53 HSC/DDC boards from K+P

2018-05-09 Thread Fabio Estevam
On Wed, May 9, 2018 at 12:34 PM, Lukasz Majewski wrote: > + button@1 { > + label = "Kaltstart"; > + linux,code = <64>; /* KEY_F6 */ If you include then you can simply do: linux,code = ; > + gpios = <&gpio2 26 GPI

[PATCH v2 2/2] mm: provide a fallback for PAGE_KERNEL_EXEC for architectures

2018-05-09 Thread Luis R. Rodriguez
Some architectures just don't have PAGE_KERNEL_EXEC. The mm/nommu.c and mm/vmalloc.c code have been using PAGE_KERNEL as a fallback for years. Move this fallback to asm-generic. Architectures which do not define PAGE_KERNEL_EXEC yet: o alpha o mips o openrisc o sparc64 Suggested-by: Matt

[PATCH v2 0/2] mm: PAGE_KERNEL_* fallbacks

2018-05-09 Thread Luis R. Rodriguez
While dusting out the firmware loader closet I spotted a PAGE_KERNEL_* fallback hack. This hurts my eyes, and it should also be blinding others. Turns out we have other PAGE_KERNEL_* fallback hacks in other places. This moves them to asm-generic, and keeps track of architectures which need some lo

[PATCH v2 1/2] mm: provide a fallback for PAGE_KERNEL_RO for architectures

2018-05-09 Thread Luis R. Rodriguez
Some architectures do not define certain PAGE_KERNEL_* flags, this is either because: a) The way to implement some these flags is *not yet ported*, or b) The architecture *has no way* to describe them Over time we have accumulated a few PAGE_KERNEL_* fallback work arounds for architectures in the

[PATCH 2/2] staging/bcm2835-camera: Set ourselves up as a platform driver.

2018-05-09 Thread Eric Anholt
This allows bcm2835-camera to automatically probe after VCHI has loaded, rather than only successfully probing if the arbitrary probe order chooses us after VCHI. Signed-off-by: Eric Anholt --- .../staging/vc04_services/bcm2835-camera/TODO | 11 --- .../bcm2835-camera/bcm2835-camera.c

[PATCH 1/2] staging/vc04_services: Register a platform device for the camera driver.

2018-05-09 Thread Eric Anholt
We had the camera driver set up in a module_init function, but that meant that the camera driver would fail to load if it was initialized before VCHI. This enforces that it loads after we've successfully set up. Signed-off-by: Eric Anholt --- I'm going to try to get Dave Stevenson's new v4l2 co

linux-next: manual merge of the jc_docs tree with the dma-mapping tree

2018-05-09 Thread Stephen Rothwell
Hi Jonathan, Today's linux-next merge of the jc_docs tree got a conflict in: Documentation/features/io/dma-api-debug/arch-support.txt between commit: 6e88628d03dd ("dma-debug: remove CONFIG_HAVE_DMA_API_DEBUG") from the dma-mapping tree and commit: 7156fc292850 ("Documentation/features:

Re: [PATCH v2 2/4] tpm: Move eventlog files to a subdirectory

2018-05-09 Thread Jarkko Sakkinen
On Mon, May 07, 2018 at 04:36:37PM -0400, Mimi Zohar wrote: > [Cc'ing Petr Vorel and the ltp mailing list] > > Hi Jarrko, > > On Fri, 2018-04-20 at 08:39 +0300, Jarkko Sakkinen wrote: > > On Thu, Apr 12, 2018 at 12:13:48PM +0200, Thiebaud Weksteen wrote: > > > Signed-off-by: Thiebaud Weksteen >

Re: [PATCH] perf buildid-cache: Warn --purge-all failures

2018-05-09 Thread Masami Hiramatsu
On Wed, 9 May 2018 20:22:05 +0530 Ravi Bangoria wrote: > Warn perf buildid-cache --purge-all failures in non verbose mode. > Ex, > > $ sudo chown root:root /home/ravi/.debug -R > $ ./perf buildid-cache -P > Error: Permission denied. > > Suggested-by: Masami Hiramatsu > Signed-off-by:

Re: [PATCH net] macmace: Set platform device coherent_dma_mask

2018-05-09 Thread Finn Thain
On Thu, 3 May 2018, Geert Uytterhoeven wrote: > > Perhaps you can add a new helper > (platform_device_register_simple_dma()?) that takes the DMA mask, too? Would there be enough potential callers in future to justify that API? It seems that there haven't been many in the past. I found four user

Re: [PATCH v2] mm/ksm: ignore STABLE_FLAG of rmap_item->address in rmap_walk_ksm

2018-05-09 Thread Jia He
Hi Andrew On 5/10/2018 7:31 AM, Andrew Morton Wrote: On Fri, 4 May 2018 11:11:46 +0800 Jia He wrote: In our armv8a server(QDF2400), I noticed lots of WARN_ON caused by PAGE_SIZE unaligned for rmap_item->address under memory pressure tests(start 20 guests and run memhog in the host). ... I

Re: [PATCH net] macmace: Set platform device coherent_dma_mask

2018-05-09 Thread Finn Thain
On Thu, 3 May 2018, Christoph Hellwig wrote: > On Thu, May 03, 2018 at 10:46:56AM +0200, Geert Uytterhoeven wrote: > > Perhaps you can add a new helper > > (platform_device_register_simple_dma()?) that takes the DMA mask, too? > > With people setting the mask to kill the WARNING splat, this may

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

2018-05-09 Thread Luis R. Rodriguez
On Wed, May 02, 2018 at 03:11:13PM +, Luis R. Rodriguez wrote: > On Wed, May 02, 2018 at 12:08:57PM +0200, Geert Uytterhoeven wrote: > > Hi Luis, > > > > On Sat, Apr 28, 2018 at 2:15 AM, Luis R. Rodriguez > > wrote: > > > Some architectures do not define PAGE_KERNEL_RO, best we can do > > >

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

2018-05-09 Thread Luis R. Rodriguez
On Tue, May 08, 2018 at 06:39:35PM -0700, Matthew Wilcox wrote: > On Wed, May 09, 2018 at 01:04:38AM +, Luis R. Rodriguez wrote: > > On Fri, Apr 27, 2018 at 08:18:10PM -0700, Matthew Wilcox wrote: > > > ia64: Add PAGE_KERNEL_RO and PAGE_KERNEL_EXEC > > > > > > The rest of the kernel was fallin

Re: [PATCH v4 6/6] devfreq: rk3399_dmc: fix spelling mistakes.

2018-05-09 Thread Chanwoo Choi
Hi, On 2018년 05월 09일 21:57, Enric Balletbo i Serra wrote: > Fix some spelling mistakes in error and debug messages. > > Signed-off-by: Enric Balletbo i Serra > --- > > Changes in v4: > - [6/6] Introduce this new patch that fixes some spelling. > > Changes in v3: None > Changes in v2: None > >

Re: [PATCH v2] perf test shell: Add -D to check dynamic symbols for ubuntu/debian

2018-05-09 Thread Li Zhijian
The input file is from lizhijian@haswell-OptiPlex-9020:~/lkp/linux/tools/perf/tests/shell$ grep libc= -A1 record+probe_libc_inet_pton.sh libc=$(grep -w libc /proc/self/maps | head -1 | sed -r 's/.*[[:space:]](\/.*)/\1/g') nm -gD $libc 2>/dev/null | fgrep -q inet_pton || exit 254 It mostly poin

Re: [PATCH] ARM: DTS: imx53: Add support for imx53 HSC/DDC boards from K+P

2018-05-09 Thread Fabio Estevam
Hi Lukasz, On Wed, May 9, 2018 at 12:34 PM, Lukasz Majewski wrote: > +&iomuxc { > + imx53-kp-ddc { No need for keeping this imx53-kp-ddc. > diff --git a/arch/arm/boot/dts/imx53-kp-hsc.dts > b/arch/arm/boot/dts/imx53-kp-hsc.dts > new file mode 100644 > index ..fff358395c9d >

Re: [PATCH v4 2/2] ThunderX2: Add Cavium ThunderX2 SoC UNCORE PMU driver

2018-05-09 Thread Kim Phillips
On Fri, 4 May 2018 18:10:44 +0100 Robin Murphy wrote: > Hi Kim, Hi Robin, > On 04/05/18 01:30, Kim Phillips wrote: > > On Tue, 1 May 2018 12:54:05 +0100 > > Will Deacon wrote: > >> On Fri, Apr 27, 2018 at 11:56:25AM -0500, Kim Phillips wrote: > >>> On Fri, 27 Apr 2018 17:09:14 +0100 > >>> Will

  1   2   3   4   5   6   7   8   9   10   >