Re: [PATCH] PM / s2idle: Clear the events_check_enabled flag

2018-05-10 Thread Rajat Jain
Sorry, please ignore, sent by mistake. On Thu, May 10, 2018 at 4:34 PM, Rajat Jain wrote: > Problem: This flag does not get cleared currently in the suspend or > resume path in the following cases: > > * In case some driver's suspend routine returns an error. > * Successful s2idle case > * etc? >

mmotm 2018-05-10-16-34 uploaded

2018-05-10 Thread akpm
The mm-of-the-moment snapshot 2018-05-10-16-34 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You wi

[PATCH] PM / s2idle: Clear the events_check_enabled flag

2018-05-10 Thread Rajat Jain
Problem: This flag does not get cleared currently in the suspend or resume path in the following cases: * In case some driver's suspend routine returns an error. * Successful s2idle case * etc? Why is this a problem: What happens is that the next suspend attempt could fail even though the user di

[PATCH] mlx4_core: allocate 4KB ICM chunks

2018-05-10 Thread Qing Huang
When a system is under memory presure (high usage with fragments), the original 256KB ICM chunk allocations will likely trigger kernel memory management to enter slow path doing memory compact/migration ops in order to complete high order memory allocations. When that happens, user processes calli

Re: [PATCH] coredump: rename umh_pipe_setup() to coredump_pipe_setup()

2018-05-10 Thread Luis R. Rodriguez
On Thu, May 10, 2018 at 04:19:09PM -0700, Alexei Starovoitov wrote: > On Mon, May 07, 2018 at 04:30:02PM -0700, Luis R. Rodriguez wrote: > > This makes it clearer this code is part of the coredump code, and > > is not an exported generic helper from kernel/umh.c. > > > > Signed-off-by: Luis R. Rod

[PATCH] staging: bcm2835-camera: Replace open-coded idr with a struct idr.

2018-05-10 Thread Eric Anholt
We just need some integer handles that can map back to our message struct when we're handling a reply, which struct idr is perfect for. Signed-off-by: Eric Anholt --- .../vc04_services/bcm2835-camera/mmal-vchiq.c | 135 -- 1 file changed, 31 insertions(+), 104 deletions(-) diff

[PATCH 3/3] x86/platform/UV: Add kernel parameter to set memory block size

2018-05-10 Thread mike.travis
Add a kernel parameter that allows setting UV memory block size. This is to provide an adjustment for new forms of PMEM and other DIMM memory that might require alignment restrictions other than scanning the global address table for the required minimum alignment. The value set will be further ad

[PATCH 2/3] x86/platform/UV: Use new set memory block size function

2018-05-10 Thread mike.travis
Add a call to the new function to "adjust" the current fixed UV memory block size of 2GB so it can be changed to a different physical boundary. This accommodates changes in the Intel BIOS, and therefore UV BIOS, which now can align boundaries different than the previous UV standard of 2GB. It also

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

2018-05-10 Thread Luis R. Rodriguez
On Wed, May 09, 2018 at 10:00:58PM -0400, Mimi Zohar wrote: > 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: > > > > > > Yes, writing regdb as a micro/mini LSM sounds reasonable.  The LSM > > > > > would differentiate bet

[PATCH 1/3] x86/platform/UV: Add adjustable set memory block size function

2018-05-10 Thread mike.travis
Add a new function to "adjust" the current fixed UV memory block size of 2GB so it can be changed to a different physical boundary. This is out of necessity so UV BIOS can accommodate Intel BIOS changes for NVDIMM's, which can align these new PMEM modules at other than 2GB boundaries. A "set orde

[PATCH 0/3] x86/platform/UV: Update Memory Block Size Setting

2018-05-10 Thread mike.travis
Update support for the UV kernel to accommodate Intel BIOS changes in NVDIMM alignment, which caused UV BIOS to align the memory boundaries on different blocks than the previous UV standard of 2GB. --

RE: [PATCH] armpmu: broadcast overflow irq on multi-core system having one muxed SPI for PMU.

2018-05-10 Thread 류호은
Thank you for the reply. > -Original Message- > From: Mark Rutland [mailto:mark.rutl...@arm.com] > Sent: Thursday, May 10, 2018 7:21 PM > To: Hoeun Ryu > Cc: Will Deacon ; Hoeun Ryu ; > linux-arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH] armpmu: broad

Re: [PATCH 0/5] fix radix tree multi-order iteration race

2018-05-10 Thread Dan Williams
On Thu, May 10, 2018 at 4:12 PM, Andrew Morton wrote: > On Thu, 10 May 2018 15:54:53 -0700 Dan Williams > wrote: > >> > - The Fixes: tag >> > - The Reported-by >> >> Those were there. >> >> > - Jan's reviewed-by >> >> Right, Jan's came after I pushed it for -next soaking, but I updated it. >> >>

Re: [PATCH] coredump: rename umh_pipe_setup() to coredump_pipe_setup()

2018-05-10 Thread Alexei Starovoitov
On Mon, May 07, 2018 at 04:30:02PM -0700, Luis R. Rodriguez wrote: > This makes it clearer this code is part of the coredump code, and > is not an exported generic helper from kernel/umh.c. > > Signed-off-by: Luis R. Rodriguez > --- > fs/coredump.c | 9 + > 1 file changed, 5 insertions(+

Re: perf: fuzzer causes stack going in wrong direction warnings

2018-05-10 Thread Josh Poimboeuf
On Thu, May 10, 2018 at 03:48:41PM +0200, Peter Zijlstra wrote: > On Sun, May 06, 2018 at 06:49:35PM -0500, Josh Poimboeuf wrote: > > > Deja vu. Most of these are related to perf PEBS, similar to the > > following issue: > > > > b8000586c90b ("perf/x86/intel: Cure bogus unwind from PEBS entrie

Re: [PATCH v2 net-next 1/4] umh: introduce fork_usermode_blob() helper

2018-05-10 Thread Alexei Starovoitov
On Thu, May 10, 2018 at 03:27:24PM -0700, Kees Cook wrote: > On Fri, May 4, 2018 at 12:56 PM, Luis R. Rodriguez wrote: > > What a mighty short list of reviewers. Adding some more. My review below. > > I'd appreciate a Cc on future versions of these patches. > > Me too, please. And likely linux-se

[RFC v2 2/4] xfs: add verifier check for symlink with append/immutable flags

2018-05-10 Thread Luis R. Rodriguez
The Linux VFS does not allow a way to set append/immuttable attributes to symlinks, this is just not possible. If this is detected we can correct this with xfs_repair, so inform the user. Signed-off-by: Luis R. Rodriguez --- fs/xfs/libxfs/xfs_symlink_remote.c | 5 + 1 file changed, 5 inserti

[RFC v2 0/4] vfs: detect symlink corruption with attributes

2018-05-10 Thread Luis R. Rodriguez
Filesystems which detect symlinks with append/immutable should inform users their filesystem is corrupted and their respective filesystem checker tool should fix this. In lieu of this though users may be stuck with pesky files or directories which they cannot remove. We cannot expect all filesyste

[RFC v2 3/4] ext4: add verifier check for symlink with append/immutable flags

2018-05-10 Thread Luis R. Rodriguez
The Linux VFS does not allow a way to set append/immuttable attributes to symlinks, this is just not possible. If this is detected inform the user as the filesystem must be corrupted. Signed-off-by: Luis R. Rodriguez --- fs/ext4/inode.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/

[RFC v2 4/4] btrfs: verify symlinks with append/immutable flags

2018-05-10 Thread Luis R. Rodriguez
The Linux VFS does not allow a way to set append/immuttable attributes to symlinks, this is just not possible. If this is detected inform the user as the filesystem must be corrupted. Signed-off-by: Luis R. Rodriguez --- fs/btrfs/inode.c | 9 + 1 file changed, 9 insertions(+) diff --git

[RFC v2 1/4] vfs: skip extra attributes check on removal for symlinks

2018-05-10 Thread Luis R. Rodriguez
Linux filesystems cannot set extra file attributes (stx_attributes as per statx(2)) on a symbolic link. To set extra file attributes you issue ioctl(2) with FS_IOC_SETFLAGS, *all* ioctl(2) calls on a symbolic link yield EBADF. This is because ioctl(2) tries to obtain struct fd from the symbolic li

[PATCH] staging: bcm2835-camera: Add TODO for removing overlay support

2018-05-10 Thread Stefan Schake
The overlay code is non-functional since it relies on firmware control of the HVS. Signed-off-by: Stefan Schake --- Dave, does this match your understanding? drivers/staging/vc04_services/bcm2835-camera/TODO | 8 1 file changed, 8 insertions(+) diff --git a/drivers/staging/vc04_servic

Re: [PATCH 0/5] fix radix tree multi-order iteration race

2018-05-10 Thread Andrew Morton
On Thu, 10 May 2018 15:54:53 -0700 Dan Williams wrote: > > - The Fixes: tag > > - The Reported-by > > Those were there. > > > - Jan's reviewed-by > > Right, Jan's came after I pushed it for -next soaking, but I updated it. > > > - the cc:stable tag > > That was there too, not sure where you

Re: [RFC/RFT] Add noats flag to boot parameters

2018-05-10 Thread Bjorn Helgaas
On Sun, Apr 29, 2018 at 09:16:48PM +0300, Gil Kupfer wrote: > This patch adds noats option to the pci boot parameter. > When noats is selected, all ATS related functions fail immediately and > the IOMMU is configured to not use device-iotlb. > > Any function that checks for ATS capabilities direct

Re: [RFC] vfs: skip extra attributes check on removal for symlinks

2018-05-10 Thread Luis R. Rodriguez
On Thu, May 10, 2018 at 09:48:07PM +0100, Al Viro wrote: > On Thu, Apr 26, 2018 at 04:46:39PM -0700, Luis R. Rodriguez wrote: > > > Since we cannot set these attributes we should special-case the > > immutable/append on delete for symlinks, this would be consistent with > > what we *do* allow on L

Re: [PATCH 0/5] fix radix tree multi-order iteration race

2018-05-10 Thread Dan Williams
On Thu, May 10, 2018 at 3:48 PM, Andrew Morton wrote: > On Tue, 8 May 2018 11:44:24 -0600 Ross Zwisler > wrote: > >> On Thu, May 03, 2018 at 01:24:25PM -0600, Ross Zwisler wrote: >> > The following series gets the radix tree test suite compiling again in >> > the current linux/master, adds a uni

Re: [PATCH v2 00/10] PCI: leak fixes, removable generic PCI host, assorted stuff

2018-05-10 Thread Bjorn Helgaas
On Mon, Apr 30, 2018 at 07:48:34AM +0200, Jan Kiszka wrote: > Changes in v2: > - patch 1: commit message reworking as suggested by Lorenzo > - patch 3-6: split-up as suggested by Bjorn > - patch 8: new > - patch 10: select PCI_DOMAINS from PCI_HOST_GENERIC, rather than >allowing manual choi

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

2018-05-10 Thread Josh Poimboeuf
With GCC 8, some issues were found with the objtool switch table detection. 1) In the .rodata section, immediately after the switch table, there can be another object which contains a pointer to the function which had the switch statement. In this case objtool wrongly considers the func

Re: [PATCH 0/5] fix radix tree multi-order iteration race

2018-05-10 Thread Andrew Morton
On Tue, 8 May 2018 11:44:24 -0600 Ross Zwisler wrote: > On Thu, May 03, 2018 at 01:24:25PM -0600, Ross Zwisler wrote: > > The following series gets the radix tree test suite compiling again in > > the current linux/master, adds a unit test which exposes a race in the > > radix tree multi-order i

[PATCH net 1/5] rxrpc: Fix missing start of call timeout

2018-05-10 Thread David Howells
The expect_rx_by call timeout is supposed to be set when a call is started to indicate that we need to receive a packet by that point. This is currently put back every time we receive a packet, but it isn't started when we first send a packet. Without this, the call may wait forever if the server

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

2018-05-10 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 net 4/5] rxrpc: Add a tracepoint to log ICMP/ICMP6 and error messages

2018-05-10 Thread David Howells
Add a tracepoint to log received ICMP/ICMP6 events and other error messages. Signed-off-by: David Howells --- include/trace/events/rxrpc.h | 30 +++ net/rxrpc/peer_event.c | 46 +- 2 files changed, 53 insertions(+), 23 de

[PATCH net 5/5] rxrpc: Trace UDP transmission failure

2018-05-10 Thread David Howells
Add a tracepoint to log transmission failure from the UDP transport socket being used by AF_RXRPC. Signed-off-by: David Howells --- include/trace/events/rxrpc.h | 55 ++ net/rxrpc/conn_event.c | 11 ++-- net/rxrpc/local_event.c |3 +

[PATCH net 3/5] rxrpc: Fix the min security level for kernel calls

2018-05-10 Thread David Howells
Fix the kernel call initiation to set the minimum security level for kernel initiated calls (such as from kAFS) from the sockopt value. Fixes: 19ffa01c9c45 ("rxrpc: Use structs to hold connection params and protocol info") Signed-off-by: David Howells --- net/rxrpc/af_rxrpc.c |2 +- 1 file

[PATCH net 2/5] rxrpc: Fix error reception on AF_INET6 sockets

2018-05-10 Thread David Howells
AF_RXRPC tries to turn on IP_RECVERR and IP_MTU_DISCOVER on the UDP socket it just opened for communications with the outside world, regardless of the type of socket. Unfortunately, this doesn't work with an AF_INET6 socket. Fix this by turning on IPV6_RECVERR and IPV6_MTU_DISCOVER instead if the

[PATCH net 0/5] rxrpc: Fixes

2018-05-10 Thread David Howells
re so that we can find out if transmission failure occurred on the UDP socket. The patches are tagged here: git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git rxrpc-fixes-20180510 and can also be found on the following branch: http://git.kernel.org

Re: [PATCH v7 04/10] drivers: qcom: rpmh: add RPMH helper functions

2018-05-10 Thread Doug Anderson
Hi, On Tue, May 8, 2018 at 9:05 AM, wrote: > On 2018-05-03 14:26, Doug Anderson wrote: > Hi Doug, > > >> Hi, >> >> On Wed, May 2, 2018 at 12:37 PM, Lina Iyer wrote: >>> >>> +static struct rpmh_ctrlr rpmh_rsc[RPMH_MAX_CTRLR]; >>> +static DEFINE_SPINLOCK(rpmh_rsc_lock); >>> + >>> +static struct r

cross-compiling a 64-bit kernel on a 32-bit host

2018-05-10 Thread Josh Poimboeuf
Hi Fengguang, I occasionally get compilation bug reports from people who are cross-compiling an x86-64 kernel target on an x86-32 host. Any chance the 0-day build bot could test that configuration? I think just building a defconfig would be sufficient. It would help sort out issues in objtool a

Re: [V9fs-developer][PATCH v3 1/2] net/9p: detecting invalid options as much as possible

2018-05-10 Thread Andrew Morton
On Thu, 3 May 2018 17:44:35 +0800 Chengguang Xu wrote: > Currently when detecting invalid options in option parsing, > some options(e.g. msize) just set errno and allow to continuously > validate other options so that it can detect invalid options > as much as possible and give proper error mess

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

2018-05-10 Thread Daniel Borkmann
On 05/10/2018 05:09 AM, Wang YanQing wrote: > 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 > t

Re: [PATCH v6 0/5] PCI: Improve PCIe link status reporting

2018-05-10 Thread Bjorn Helgaas
On Thu, May 03, 2018 at 03:00:07PM -0500, Bjorn Helgaas wrote: > This is based on Tal's recent work to unify the approach for reporting PCIe > link speed/width and whether the device is being limited by a slower > upstream link. > > The new pcie_print_link_status() interface appeared in v4.17-rc1;

Re: [RFC][PATCH] arm64: update iomem_resource.end

2018-05-10 Thread Nicolin Chen
Thanks for the comments, Robin. On Thu, May 10, 2018 at 06:45:59PM +0100, Robin Murphy wrote: > On 09/05/18 23:58, Nicolin Chen wrote: > >The iomem_resource.end is -1 by default and should be updated in > >arch-level code. > > > >ARM64 so far hasn't updated it while core kernel code (mm/hmm.c) > >

Re: [PATCH v2 net-next 1/4] umh: introduce fork_usermode_blob() helper

2018-05-10 Thread Kees Cook
On Fri, May 4, 2018 at 12:56 PM, Luis R. Rodriguez wrote: > What a mighty short list of reviewers. Adding some more. My review below. > I'd appreciate a Cc on future versions of these patches. Me too, please. And likely linux-security-module@ and Jessica too. > On Wed, May 02, 2018 at 09:36:01PM

Re: [RESEND PATCH] pinctrl: rockchip: Disable interrupt when changing it's capability

2018-05-10 Thread Brian Norris
+ irqchip maintainers [ irqchip is weird -- it's all over drivers/{pinctrl,gpio,irqchip}/ :D ] Hi Doug, On Tue, May 08, 2018 at 10:18:18PM -0700, Doug Anderson wrote: > On Tue, May 8, 2018 at 7:21 PM, JeffyChen wrote: > > On 05/09/2018 03:46 AM, Doug Anderson wrote: > >> One note is that in the

[PATCH 2/2] PCI: Clean up whitespace in quirks.c

2018-05-10 Thread Bjorn Helgaas
From: Bjorn Helgaas Clean up whitespace, capitalization, etc. in comments. No functional change intended. Signed-off-by: Bjorn Helgaas --- drivers/pci/quirks.c | 664 +- 1 file changed, 329 insertions(+), 335 deletions(-) diff --git a/drivers/

[PATCH 1/2] PCI: Reorder quirks infrastructure code

2018-05-10 Thread Bjorn Helgaas
From: Bjorn Helgaas The infrastructure that applies PCI quirks was buried in the middle of the quirks themselves (at one time it was probably at the end of the file, but new quirks tend to be added at the end of the file). Move it all to the top of the file so it's easy to find. No functional c

[PATCH 0/2] PCI: Trivial quirks cleanup

2018-05-10 Thread Bjorn Helgaas
[Sorry for the repost; network hiccup here.] Trivial reorganization (move quirk infrastructure to the top) and whitespace/comment style cleanup for consistency. No functional change intended. --- Bjorn Helgaas (2): PCI: Reorder quirks infrastructure code PCI: Clean up whitespace in

Re: [Ksummit-discuss] bug-introducing patches

2018-05-10 Thread Stephen Rothwell
Hi Tony, On Thu, 10 May 2018 08:57:55 -0700 Tony Lindgren wrote: > > * Stephen Rothwell [180509 10:49]: > > I currently have 44 such fixes branches. More welcome! > > Can you please also add mine: > > git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git fixes Added from toda

Re: linux-next: Tree for May 10 (mm/ksm.c)

2018-05-10 Thread Randy Dunlap
On 05/10/2018 01:48 PM, Andrew Morton wrote: > On Thu, 10 May 2018 09:37:51 -0700 Randy Dunlap wrote: > >> On 05/10/2018 12:28 AM, Stephen Rothwell wrote: >>> Hi all, >>> >>> Changes since 20180509: >>> >> >> on i386: >> >> ../mm/ksm.c: In function 'try_to_merge_one_page': >> ../mm/ksm.c:1244:4:

[PATCH 0/2] PCI: Trivial quirks cleanup

2018-05-10 Thread Bjorn Helgaas
Trivial reorganization (move quirk infrastructure to the top) and whitespace/comment style cleanup for consistency. No functional change intended. --- Bjorn Helgaas (2): PCI: Reorder quirks infrastructure code PCI: Clean up whitespace in quirks.c drivers/pci/quirks.c | 978 ++

Re: [Ksummit-discuss] bug-introducing patches

2018-05-10 Thread Stephen Rothwell
Hi Mark, On Thu, 10 May 2018 22:36:28 +0900 Mark Brown wrote: > > On Thu, May 10, 2018 at 08:09:09AM +1000, Stephen Rothwell wrote: > > On Wed, 9 May 2018 23:05:32 +0900 Mark Brown wrote: > > > > Well, all my trees have a for-linus branch to go with the for-next > > > branch for a start. >

[PATCH 2/2] powerpc: hlwd-pic: Prevent interrupts from being handled by Starlet

2018-05-10 Thread Jonathan Neuschäfer
The interrupt controller inside the Wii's Hollywood chip is connected to two masters, the "Broadway" PowerPC and the "Starlet" ARM926, each with their own interrupt status and mask registers. When booting the Wii with mini[1], interrupts from the SD card controller (IRQ 7) are handled by the ARM,

[PATCH 1/2] powerpc: flipper-pic: Don't match all IRQ domains

2018-05-10 Thread Jonathan Neuschäfer
On the Wii, there is a secondary IRQ controller (hlwd-pic), so flipper-pic's match operation should not be hardcoded to return 1. In fact, the default matching logic is sufficient, and we can completely omit flipper_pic_match. Signed-off-by: Jonathan Neuschäfer --- Note: This shouldn't break Lin

Re: [PATCH v3 3/4] rtc: ds1307: add offset sysfs for mt41txx chips.

2018-05-10 Thread Alexandre Belloni
On 09/05/2018 21:33:54+0200, Giulio Benetti wrote: > m41txx chips can hold a calibration value to get correct clock bias. > If positive offset is passed, it means adding 512 cycles(@32.768Hz) > every tick(1s). > If negative offset is passed, it means subtracting 256 cycles(@32.768Hz) > every tick(1

[PATCH 0/2] powerpc: Wii IRQ fixes

2018-05-10 Thread Jonathan Neuschäfer
This series makes it possible to use the SD card on the Wii. The WLAN now also works on the SDIO level, but fails to connect to a network for some reason. Patch 1 seems quite obvious, although I don't know why the code was broken in this particular way. Patch 2 might not be the right solution for

Re: [PATCH] qed: fix spelling mistake: "taskelt" -> "tasklet"

2018-05-10 Thread David Miller
From: Colin King Date: Thu, 10 May 2018 15:03:27 +0100 > From: Colin Ian King > > Trivial fix to spelling mistake in DP_VERBOSE message text > > Signed-off-by: Colin Ian King Applied.

Re: [PATCH][next] net: aquantia: fix unsigned numvecs comparison with less than zero

2018-05-10 Thread David Miller
From: Colin King Date: Thu, 10 May 2018 13:52:01 +0100 > From: Colin Ian King > > The comparison of numvecs < 0 is always false because numvecs is a u32 > and hence the error return from a failed call to pci_alloc_irq_vectores > is never detected. Fix this by using the signed int ret to handle

[PATCH] platform/chrome: cros_ec_lpc: Add support for newer Google devices using custom coreboot firmware or stock SeaBIOS.

2018-05-10 Thread Vittorio Gambaletta (VittGam)
Custom coreboot firmware does not contain "Google_*" as BIOS version string; also, booting through stock SeaBIOS will present an empty BIOS version string to Linux. So the generic match at the top would not work. A previous patch added the "GOOGLE" match for DMI system vendor, but newer machines s

Re: KASAN: use-after-free Read in __dev_queue_xmit

2018-05-10 Thread Willem de Bruijn
On Wed, May 9, 2018 at 5:05 PM, Willem de Bruijn wrote: > On Wed, May 9, 2018 at 3:36 PM, Eric Dumazet wrote: >> >> >> On 05/09/2018 12:21 PM, Willem de Bruijn wrote: >> >>> Indeed. The skb shared info struct is zeroed by dev_validate_header >>> as a result of dev->hard_header_len exceeding skb->

Re: [PATCH] ocfs2: ocfs2_inode_lock_tracker does not distinguish lock level

2018-05-10 Thread Andrew Morton
On Thu, 10 May 2018 13:32:30 +0800 Larry Chen wrote: > 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 atta

Re: [PATCH v2] net/mlx4_en: Fix an error handling path in 'mlx4_en_init_netdev()'

2018-05-10 Thread David Miller
From: Christophe JAILLET Date: Thu, 10 May 2018 09:06:04 +0200 > If an error occurs, 'mlx4_en_destroy_netdev()' is called. > It then calls 'mlx4_en_free_resources()' which does the needed resources > cleanup. > > So, doing some explicit kfree in the error handling path would lead to > some doubl

Re: [PATCH v3 4/4] rtc: ds1307: add freq_test sysfs attribute to check tick on m41txx

2018-05-10 Thread Alexandre Belloni
On 09/05/2018 21:33:55+0200, Giulio Benetti wrote: > On m41txx you can enable open-drain OUT pin to check if offset is ok. > Enabling OUT pin with freq_test attribute, OUT pin will tick 512 times > faster than 1s tick base. > > Enable or Disable FT bit on CONTROL register if freq_test is 1 or 0. >

WARNING: kmalloc bug in get_valid_checkpoint

2018-05-10 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:008464a9360e Merge branch 'for-linus' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15f3a07780 kernel config: https://syzkaller.appspot.com/x/.config?x=31f4b3733894ef79 da

[PATCH] PCI/portdrv: Remove unused pcie_port_acpi_setup()

2018-05-10 Thread Bjorn Helgaas
From: Bjorn Helgaas 02bfeb484230 ("PCI/portdrv: Simplify PCIe feature permission checking") removed the only call of pcie_port_acpi_setup() and removed portdrv_acpi.o from the Makefile, but I forgot to remove pcie_port_acpi_setup() itself. Remove pcie_port_acpi_setup() and the drivers/pci/pcie/p

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

2018-05-10 Thread David Miller
From: Jon Maxwell Date: Thu, 10 May 2018 16:53:51 +1000 > 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. > - Factor

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

2018-05-10 Thread Jonathan Corbet
On Fri, 11 May 2018 07:40:49 +1000 Stephen Rothwell wrote: > Commit > > 5a779c40a8ad ("Revert "Documentation/features/vm: Remove arch support > status file for 'pte_special'"") > > is missing a Signed-off-by from its author and committer. Reverts are > commits too. ;-) Argh. I'm really no

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

2018-05-10 Thread David Miller
From: Joe Perches Date: Wed, 9 May 2018 23:24:07 -0700 > 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. >

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

2018-05-10 Thread Stephen Rothwell
Hi Jon, Commit 5a779c40a8ad ("Revert "Documentation/features/vm: Remove arch support status file for 'pte_special'"") is missing a Signed-off-by from its author and committer. Reverts are commits too. ;-) -- Cheers, Stephen Rothwell pgp_XzVkE5MXv.pgp Description: OpenPGP digital signatur

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

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

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

2018-05-10 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 --- v6: support the cases that srcbufs are not contiguous v5: make th

Re: [PATCH v2 00/11] Fix some doc build warnings/errors and broken links

2018-05-10 Thread Mauro Carvalho Chehab
Em Thu, 10 May 2018 14:22:35 -0600 Jonathan Corbet escreveu: > On Wed, 9 May 2018 10:18:43 -0300 > Mauro Carvalho Chehab wrote: > > > Patches 1 to 5 on this series contain the patches that weren't yet > > applied from the past patch series and touch only at Documentation. > > There are two cha

Re: [PATCH ghak81 RFC V1 5/5] audit: collect audit task parameters

2018-05-10 Thread Richard Guy Briggs
On 2018-05-09 11:46, Paul Moore wrote: > On Fri, May 4, 2018 at 4:54 PM, Richard Guy Briggs wrote: > > The audit-related parameters in struct task_struct should ideally be > > collected together and accessed through a standard audit API. > > > > Collect the existing loginuid, sessionid and audit_c

Re: [PATCH net-next 0/4] Misc bug fixes for HNS3 Ethernet Driver

2018-05-10 Thread David Miller
From: Salil Mehta Date: Wed, 9 May 2018 17:24:37 +0100 > Fixes to some of the bugs found during system test, internal review > and clean-up Series applied, thank you.

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

2018-05-10 Thread Stephen Rothwell
Hi Greentime, Commits 711b53601ac1 ("nds32: Renaming the file for unaligned access") fd3a79dbf575 ("nds32: Fix the unaligned access handler") are missing a Signed-off-by from their committer. -- Cheers, Stephen Rothwell pgpHoJPf1dEMy.pgp Description: OpenPGP digital signature

Re: [PATCH ghak81 RFC V1 1/5] audit: normalize loginuid read access

2018-05-10 Thread Richard Guy Briggs
On 2018-05-09 11:13, Paul Moore wrote: > On Fri, May 4, 2018 at 4:54 PM, Richard Guy Briggs wrote: > > Recognizing that the loginuid is an internal audit value, use an access > > function to retrieve the audit loginuid value for the task rather than > > reaching directly into the task struct to ge

linux-next: unable to fetch the mips tree

2018-05-10 Thread Stephen Rothwell
Hi Ralf, For the past few days I have been unable to fetch the mips tree (git://git.linux-mips.org/pub/scm/ralf/upstream-sfr#mips-next). The initial connection just times out. -- Cheers, Stephen Rothwell pgpZdyrh7x2p0.pgp Description: OpenPGP digital signature

Re: [PATCH ghak81 RFC V1 3/5] audit: use inline function to get audit context

2018-05-10 Thread Richard Guy Briggs
On 2018-05-09 11:28, Paul Moore wrote: > On Fri, May 4, 2018 at 4:54 PM, Richard Guy Briggs wrote: > > Recognizing that the audit context is an internal audit value, use an > > access function to retrieve the audit context pointer for the task > > rather than reaching directly into the task struct

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

2018-05-10 Thread Stephen Rothwell
Hi all, Commit 0e8411e426e2 ("ipv4: reset fnhe_mtu_locked after cache route flushed") is missing a Signed-off-by from its author. -- Cheers, Stephen Rothwell pgpn4q9Rz6lZ6.pgp Description: OpenPGP digital signature

[ANNOUNCE] 4.9.98-rt76

2018-05-10 Thread Julia Cartwright
Hello RT Folks! I'm pleased to announce the 4.9.98-rt76 stable release. This release is just an update to the new stable 4.9.98 version and no RT specific changes have been made. Expect a 4.9.98-rt77-rc1 with backports from rt-devel soon. You can get this release via the git tree at: git://g

Re: [PATCH v4 1/2] usb: dwc2: alloc dma aligned buffer for isoc split in

2018-05-10 Thread Doug Anderson
Hi, On Wed, May 9, 2018 at 3:11 AM, William Wu wrote: > The commit 3bc04e28a030 ("usb: dwc2: host: Get aligned DMA in > a more supported way") rips out a lot of code to simply the > allocation of aligned DMA. However, it also introduces a new > issue when use isoc split in transfer. > > In my tes

Re: [PATCH v4 3/4] kernel hacking: new config CC_OPTIMIZE_FOR_DEBUGGING to apply GCC -Og optimization

2018-05-10 Thread kbuild test robot
Hi Changbin, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v4.17-rc4 next-20180510] [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

Re: [PATCH v1] lib/string_helpers: Add missed declaration of struct task_struct

2018-05-10 Thread Kees Cook
On Thu, May 3, 2018 at 9:34 PM, Kees Cook wrote: > On Thu, May 3, 2018 at 6:13 PM, Andy Shevchenko > wrote: >> Starting from the commit 0d0443288f22 the new function has been >> introduced which takes struct task_struct as a parameter. Though, >> compiler doesn't know where to get information abo

Re: [PATCH v3 1/2] usb: dwc2: alloc dma aligned buffer for isoc split in

2018-05-10 Thread Doug Anderson
Hi, On Wed, May 9, 2018 at 1:55 AM, wlf wrote: > + } else if (hsotg->params.host_dma) { Are you sure this is "else if"? Can't you have descriptor DMA enabled in the controller and still need to do a normal DMA transfer if you plug in a hub? Seems like this should b

Re: [PATCH v2] async_pq: Remove VLA usage

2018-05-10 Thread Kees Cook
On Sat, May 5, 2018 at 12:58 AM, Kyle Spiers wrote: > In the quest to remove VLAs from the kernel[1], this moves the > allocation of coefs and blocks from the stack to being kmalloc()ed. > > [1] https://lkml.org/lkml/2018/3/7/621 > > Signed-off-by: Kyle Spiers Reviewed-by: Kees Cook Is this so

Re: [PATCH v5 1/2] dt: bindings: lm3601x: Introduce the lm3601x driver

2018-05-10 Thread Jacek Anaszewski
On 05/10/2018 07:47 PM, Dan Murphy wrote: Introduce the device tree bindings for the lm3601x family of LED torch, flash and IR drivers. Signed-off-by: Dan Murphy --- v5 - No changes - https://patchwork.kernel.org/patch/10391743/ v4 - Added " " around "=", changed strobe to flash on label, rem

Re: [PATCH v5 2/2] leds: lm3601x: Introduce the lm3601x LED driver

2018-05-10 Thread Jacek Anaszewski
Hi Dan, Thank you for the patch. On 05/10/2018 07:47 PM, Dan Murphy wrote: Introduce the family of LED devices that can drive a torch, strobe or IR LED. The LED driver can be configured with a strobe timer to execute a strobe flash. The IR LED brightness is controlled via the torch brightness

Re: [RFC] vfs: skip extra attributes check on removal for symlinks

2018-05-10 Thread Al Viro
On Thu, Apr 26, 2018 at 04:46:39PM -0700, Luis R. Rodriguez wrote: > Since we cannot set these attributes we should special-case the > immutable/append on delete for symlinks, this would be consistent with > what we *do* allow on Linux for all filesystems. Er... So why not simply sanity-check it

Re: linux-next: Tree for May 10 (mm/ksm.c)

2018-05-10 Thread Andrew Morton
On Thu, 10 May 2018 09:37:51 -0700 Randy Dunlap wrote: > On 05/10/2018 12:28 AM, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20180509: > > > > on i386: > > ../mm/ksm.c: In function 'try_to_merge_one_page': > ../mm/ksm.c:1244:4: error: implicit declaration of function > 'set_pag

Re: [PATCH RFC 07/19] perf tools: Workaround missing maps for x86_64 KPTI entry trampolines

2018-05-10 Thread Arnaldo Carvalho de Melo
Em Thu, May 10, 2018 at 05:19:22PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Thu, May 10, 2018 at 05:15:42PM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Thu, May 10, 2018 at 07:08:37PM +, Hunter, Adrian escreveu: > > > Let me know if you want me to post the workaround patches separate

[PATCH] arm64: dts: stratix10: Add QSPI support for Stratix10

2018-05-10 Thread thor . thayer
From: Thor Thayer Add qspi_clock The qspi_clk frequency is updated by U-Boot before starting Linux. Add QSPI interface node. Add QSPI flash memory child node. Setup the QSPI memory in 2 partitions. Signed-off-by: Thor Thayer --- arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | 22 +++

Re: [PATCH v6 4/5] ixgbe: Report PCIe link properties with pcie_print_link_status()

2018-05-10 Thread Jeff Kirsher
On Thu, 2018-05-03 at 15:00 -0500, Bjorn Helgaas wrote: > From: Bjorn Helgaas > > Previously the driver used pcie_get_minimum_link() to warn when the > NIC > is in a slot that can't supply as much bandwidth as the NIC could > use. > > pcie_get_minimum_link() can be misleading because it finds th

Re: [PATCH v6 5/5] PCI: Remove unused pcie_get_minimum_link()

2018-05-10 Thread Jeff Kirsher
On Thu, 2018-05-10 at 11:33 -0500, Bjorn Helgaas wrote: > On Thu, May 03, 2018 at 03:00:43PM -0500, Bjorn Helgaas wrote: > > From: Bjorn Helgaas > > > > In some cases pcie_get_minimum_link() returned misleading > > information > > because it found the slowest link and the narrowest link without >

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

2018-05-10 Thread Michael Schmitz
Hi Finn, On Thu, May 10, 2018 at 1:25 PM, Finn Thain wrote: > 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? [...] > To actually hoist the dma mask setup out of existing platform driv

Re: [PATCH 9/8] powerpc/pkeys: Drop private VM_PKEY definitions

2018-05-10 Thread Ram Pai
Agree. Was going to send that the moment the other patches landed upstream. Glad I dont have to do it :-) Reviewed-by: Ram Pai On Thu, May 10, 2018 at 11:54:22PM +1000, Michael Ellerman wrote: > Now that we've updated the generic headers to support 5 PKEY bits for > powerpc we don't need our

Re: [PATCH v2 00/11] Fix some doc build warnings/errors and broken links

2018-05-10 Thread Jonathan Corbet
On Wed, 9 May 2018 10:18:43 -0300 Mauro Carvalho Chehab wrote: > Patches 1 to 5 on this series contain the patches that weren't yet > applied from the past patch series and touch only at Documentation. > There are two changes there: > patch 2: fixed the description and added a c/c to cgroup ma

Re: [PATCH RFC 07/19] perf tools: Workaround missing maps for x86_64 KPTI entry trampolines

2018-05-10 Thread Arnaldo Carvalho de Melo
Em Thu, May 10, 2018 at 05:15:42PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Thu, May 10, 2018 at 07:08:37PM +, Hunter, Adrian escreveu: > > > -Original Message- > > > From: Arnaldo Carvalho de Melo [mailto:a...@kernel.org] > > > Sent: Wednesday, May 9, 2018 8:07 PM > > > To: Hunte

Re: [PATCH v5 1/2] dt: bindings: lm3601x: Introduce the lm3601x driver

2018-05-10 Thread Jacek Anaszewski
Hi Dan, On 05/10/2018 09:10 PM, Dan Murphy wrote: On 05/10/2018 02:06 PM, Dan Murphy wrote: Pavel On 05/10/2018 01:54 PM, Pavel Machek wrote: Hi! Introduce the device tree bindings for the lm3601x family of LED torch, flash and IR drivers. Signed-off-by: Dan Murphy Better, thanks. +++

Re: [PATCH 09/24] selftests: ftrace: return Kselftest Skip code for skipped tests

2018-05-10 Thread Shuah Khan
Hi Masami, On 05/07/2018 09:38 PM, Masami Hiramatsu wrote: > On Fri, 4 May 2018 19:13:13 -0600 > "Shuah Khan (Samsung OSG)" wrote: > >> When ftrace test is skipped because of unmet dependencies and/or >> unsupported configuration, it returns 0 which is treated as a pass >> by the Kselftest fram

Re: [PATCH v6 2/2] drivers: soc: Add LLCC driver

2018-05-10 Thread Evan Green
Hi Rishabh, On Tue, May 8, 2018 at 1:23 PM Rishabh Bhatnagar wrote: > LLCC (Last Level Cache Controller) provides additional cache memory > in the system. LLCC is partitioned into multiple slices and each > slice gets its own priority, size, ID and other config parameters. > LLCC driver programs

Re: [PATCH RFC 07/19] perf tools: Workaround missing maps for x86_64 KPTI entry trampolines

2018-05-10 Thread Arnaldo Carvalho de Melo
Em Thu, May 10, 2018 at 07:08:37PM +, Hunter, Adrian escreveu: > > -Original Message- > > From: Arnaldo Carvalho de Melo [mailto:a...@kernel.org] > > Sent: Wednesday, May 9, 2018 8:07 PM > > To: Hunter, Adrian > > Cc: Thomas Gleixner ; Ingo Molnar > > ; Peter Zijlstra ; Andy > > Lutomi

<    1   2   3   4   5   6   7   8   9   >