[PATCH 3.18 33/69] afs: Fix afs_kill_pages()

2017-12-18 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: David Howells [ Upstream commit 7286a35e893176169b09715096a4aca557e2ccd2 ] Fix afs_kill_pages() in two ways: (1) If a writeback has been partially flushed, then if we try and kill the

[PATCH 3.18 32/69] afs: Fix page leak in afs_write_begin()

2017-12-18 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: David Howells [ Upstream commit 6d06b0d25209c80e99c1e89700f1e09694a3766b ] afs_write_begin() leaks a ref and a lock on a page if afs_fill_page() fails. Fix the leak by unlocking and releasin

[PATCH 3.18 36/69] btrfs: add missing memset while reading compressed inline extents

2017-12-18 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Zygo Blaxell [ Upstream commit e1699d2d7bf6e6cce3e1baff19f9dd4595a58664 ] This is a story about 4 distinct (and very old) btrfs bugs. Commit c8b978188c ("Btrfs: Add zlib compression support"

[PATCH 3.18 35/69] NFSv4.1 respect servers max size in CREATE_SESSION

2017-12-18 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Olga Kornievskaia [ Upstream commit 033853325fe3bdc70819a8b97915bd3bca41d3af ] Currently client doesn't respect max sizes server returns in CREATE_SESSION. nfs4_session_set_rwsize() gets call

[PATCH 3.18 34/69] perf symbols: Fix symbols__fixup_end heuristic for corner cases

2017-12-18 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Borkmann [ Upstream commit e7ede72a6d40cb3a30c087142d79381ca8a31dab ] The current symbols__fixup_end() heuristic for the last entry in the rb tree is suboptimal as it leads to not bein

Re: [PATCH 0/2] PS3: Adjustments for six function implementations

2017-12-18 Thread Geoff Levand
Hi, On 12/16/2017 05:50 AM, SF Markus Elfring wrote: > Markus Elfring (2): > Delete an error message for a failed memory allocation in two functions > Improve a size determination in five functions As I mentioned before, please keep your commit message subjects to 50 chars or less. -Geoff

[PATCH 3.18 31/69] afs: Populate and use client modification time

2017-12-18 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Marc Dionne [ Upstream commit ab94f5d0dd6fd82e7eeca5e7c8096eaea0a0261f ] The inode timestamps should be set from the client time in the status received from the server, rather than the server

[PATCH v2 4/9] PCI: Add vendor ID for Cadence

2017-12-18 Thread Cyrille Pitchen
This patch adds a new PCI vendor ID for Cadence. Signed-off-by: Cyrille Pitchen --- include/linux/pci_ids.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index ab20dc5db423..eb13e84e1fef 100644 --- a/include/linux/pci_ids.h +++ b/include/

[PATCH 3.18 09/69] Dont leak a key reference if request_key() tries to use a revoked keyring

2017-12-18 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: David Jeffery commit d0709f1e66e8066c4ac6a54620ec116aa41937c0 upstream. If a request_key() call to allocate and fill out a key attempts to insert the key structure into a revoked keyring, the

[PATCH 3.18 21/69] net: Resend IGMP memberships upon peer notification.

2017-12-18 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Vlad Yasevich [ Upstream commit 37c343b4f4e70e9dc328ab04903c0ec8d154c1a4 ] When we notify peers of potential changes, it's also good to update IGMP memberships. For example, during VM migra

[PATCH 3.18 08/69] ext4: fix crash when a directorys i_size is too small

2017-12-18 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Chandan Rajendra commit 9d5afec6b8bd46d6ed821aa1579634437f58ef1f upstream. On a ppc64 machine, when mounting a fuzzed ext2 image (generated by fsfuzzer) the following call trace is seen, VFS:

[PATCH v2 1/9] PCI: Regroup all PCI related entries into drivers/pci/Makefile

2017-12-18 Thread Cyrille Pitchen
This patch cleans drivers/Makefile up by moving the pci/endpoint and pci/dwc entries from drivers/Makefile into drivers/pci/Makefile. Since we don't want to introduce any dependency between CONFIG_PCI and CONFIG_PCI_ENDPOINT, we now always execute drivers/pci/Makefile. Hence all Makefiles in driv

Re: [net-next: PATCH 0/8] Armada 7k/8k PP2 ACPI support

2017-12-18 Thread Marcin Wojtas
Hi Ard 2017-12-18 10:40 GMT+01:00 Ard Biesheuvel : > On 18 December 2017 at 10:17, Marcin Wojtas wrote: >> Hi, >> >> This patchset introduces ACPI support in mvpp2 and mvmdio drivers. >> First three patches introduce fwnode helpers for obtaining PHY >> information from nodes and also MDIO fwnode

[GIT PULL] parisc architecture fixes for 4.15-rc5

2017-12-18 Thread Helge Deller
Hi Linus, please pull a few important fixes for the parisc architecture from: git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git parisc-4.15-2 There are two important fixes: - Add PCI quirks to disable built-in a serial AUX and a graphics cards from specific GSP (manageme

[PATCH 3.18 07/69] xhci: Dont add a virt_dev to the devs array before its fully allocated

2017-12-18 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Mathias Nyman commit 5d9b70f7d52eb14bb37861c663bae44de9521c35 upstream. Avoid null pointer dereference if some function is walking through the devs array accessing members of a new virt_dev th

[PATCH 3.18 04/69] USB: uas and storage: Add US_FL_BROKEN_FUA for another JMicron JMS567 ID

2017-12-18 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: David Kozub commit 62354454625741f0569c2cbe45b2d192f8fd258e upstream. There is another JMS567-based USB3 UAS enclosure (152d:0578) that fails with the following error: [sda] tag#0 FAILED Resu

[PATCH 3.18 06/69] usbip: fix stub_send_ret_submit() vulnerability to null transfer_buffer

2017-12-18 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Shuah Khan commit be6123df1ea8f01ee2f896a16c2b7be3e4557a5a upstream. stub_send_ret_submit() handles urb with a potential null transfer_buffer, when it replays a packet with potential malicious

Re: NFS: 82ms wakeup latency 4.14-rc4

2017-12-18 Thread Mike Galbraith
On Mon, 2017-12-18 at 12:27 -0500, J. Bruce Fields wrote: > I'd forgotten about throughput/latency tradeoffs--but > couldn't those in theory be managed by runtime configuration of the > sceduler, or at least some smaller hammer than turning off preemption > entirely? A kernel that has all of the g

[PATCH 3.18 03/69] autofs: fix careless error in recent commit

2017-12-18 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: NeilBrown commit 302ec300ef8a545a7fc7f667e5fd743b091c2eeb upstream. Commit ecc0c469f277 ("autofs: don't fail mount for transient error") was meant to replace an 'if' with a 'switch', but inste

[PATCH 3.18 19/69] net: wimax/i2400m: fix NULL-deref at probe

2017-12-18 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold [ Upstream commit 6e526fdff7be4f13b24f929a04c0e9ae6761291e ] Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer or accessing memory beyond the endpo

[PATCH 3.18 18/69] Input: i8042 - add TUXEDO BU1406 (N24_25BU) to the nomux list

2017-12-18 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Dmitry Torokhov [ Upstream commit a4c2a13129f7c5bcf81704c06851601593303fd5 ] TUXEDO BU1406 does not implement active multiplexing mode properly, and takes around 550 ms in i8042_set_mux_mode(

[PATCH 3.18 17/69] NFSD: fix nfsd_reset_versions for NFSv4.

2017-12-18 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: NeilBrown [ Upstream commit 800a938f0bf9130c8256116649c0cc5806bfb2fd ] If you write "-2 -3 -4" to the "versions" file, it will notice that no versions are enabled, and nfsd_reset_versions() i

[PATCH 3.18 15/69] net: bcmgenet: Power up the internal PHY before probing the MII

2017-12-18 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Doug Berger [ Upstream commit 6be371b053dc86f11465cc1abce2e99bda0a0574 ] When using the internal PHY it must be powered up when the MII is probed or the PHY will not be detected. Since the P

[PATCH 3.18 13/69] net: bcmgenet: correct the RBUF_OVFL_CNT and RBUF_ERR_CNT MIB values

2017-12-18 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Doug Berger [ Upstream commit 71328a3c321f7c14cc1edd33577717037744 ] The location of the RBUF overflow and error counters has moved between different version of the GENET MAC. This commi

[PATCH 3.18 14/69] net: bcmgenet: correct MIB access of UniMAC RUNT counters

2017-12-18 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Doug Berger [ Upstream commit 1ad3d225e5a40ca6c586989b4baaca710544c15a ] The gap between the Tx status counters and the Rx RUNT counters is now being added to allow correct reporting of the r

[PATCH v2 8/9] dt-bindings: PCI: cadence: Add DT bindings for Cadence PCIe endpoint controller

2017-12-18 Thread Cyrille Pitchen
This patch documents the DT bindings for the Cadence PCIe controller when configured in endpoint mode. Signed-off-by: Cyrille Pitchen --- .../devicetree/bindings/pci/cdns,cdns-pcie-ep.txt | 23 ++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/

[PATCH 3.18 10/69] KEYS: Dont permit request_key() to construct a new keyring

2017-12-18 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: David Howells commit 911b79cde95c7da0ec02f48105358a36636b7a71 upstream. If request_key() is used to find a keyring, only do the search part - don't do the construction part if the keyring was

Re: [PATCH v2 0/5] Support for generalized use of make C={1,2} via a wrapper program

2017-12-18 Thread Knut Omang
On Mon, 2017-12-18 at 17:56 +, Bart Van Assche wrote: > On Mon, 2017-12-18 at 10:46 -0700, Jason Gunthorpe wrote: > > On Sun, Dec 17, 2017 at 10:00:17PM -0800, Joe Perches wrote: > > > > > > Today when we run checkers we get so many warnings it is too hard to > > > > make any sense of it. > >

Re: [PATCH v2 01/17] mm/gup: Fixup p*_access_permitted()

2017-12-18 Thread Dan Williams
On Mon, Dec 18, 2017 at 3:54 AM, Peter Zijlstra wrote: > On Fri, Dec 15, 2017 at 08:38:02AM -0800, Dan Williams wrote: > >> The motivation was that I noticed that get_user_pages_fast() was doing >> a full pud_access_permitted() check, but the get_user_pages() slow >> path was only doing a pud_writ

Re: [PATCH] USB: serial: option: adding support for YUGA CLM920-NC5

2017-12-18 Thread Bjørn Mork
Johan Hovold writes: >> +static const struct option_blacklist_info yuga_clm920_nc5_blacklist = { >> +.reserved = BIT(0) | BIT(1) | BIT(4), >> +}; > > Do you really need to blacklist the first interface? Good question. Interface #0 does look a lot like a Qualcomm DM/DIAG function, based on tw

Re: [PATCH] scripts/spelling.txt: add more spelling mistakes to spelling.txt

2017-12-18 Thread Joe Perches
On Mon, 2017-12-18 at 10:10 -0800, Randy Dunlap wrote: > On 12/18/2017 06:19 AM, Colin King wrote: > > Here are some of the more spelling mistakes and typos that I've found > > while fixing up spelling mistakes in kernel error message text since > > October 2017 [] > > diff --git a/scripts/spelling

[PATCH] mm: don't use the same value for MAP_FIXED_SAFE and MAP_SYNC

2017-12-18 Thread Andrei Vagin
Cc: Michal Hocko Fixes: ("fs, elf: drop MAP_FIXED usage from elf_map") Signed-off-by: Andrei Vagin --- include/uapi/asm-generic/mman-common.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/uapi/asm-generic/mman-common.h b/include/uapi/asm-generic/mman-common.h in

Re: [PATCH v9 29/51] mm/mprotect, powerpc/mm/pkeys, x86/mm/pkeys: Add sysfs interface

2017-12-18 Thread Dave Hansen
On 11/06/2017 12:57 AM, Ram Pai wrote: > Expose useful information for programs using memory protection keys. > Provide implementation for powerpc and x86. > > On a powerpc system with pkeys support, here is what is shown: > > $ head /sys/kernel/mm/protection_keys/* > ==> /sys/kernel/mm/protectio

Re: [PATCH] On ppc64le we HAVE_RELIABLE_STACKTRACE

2017-12-18 Thread Josh Poimboeuf
On Mon, Dec 18, 2017 at 03:33:34PM +1000, Nicholas Piggin wrote: > On Sun, 17 Dec 2017 20:58:54 -0600 > Josh Poimboeuf wrote: > > > On Fri, Dec 15, 2017 at 07:40:09PM +1000, Nicholas Piggin wrote: > > > On Tue, 12 Dec 2017 08:05:01 -0600 > > > Josh Poimboeuf wrote: > > > > > > > On Tue, Dec 1

Re: [PATCH 1/5 v3] Extend the request_region() infrastructure

2017-12-18 Thread Guenter Roeck
On Mon, Dec 18, 2017 at 09:48:37AM +0100, Zoltan Boszormenyi wrote: > From: Böszörményi Zoltán > > Add a new IORESOURCE_ALLOCATED flag that is automatically used > when alloc_resource() is used internally in kernel/resource.c > and free_resource() now takes this flag into account. > > The core o

Re: nouveau. swiotlb: coherent allocation failed for device 0000:01:00.0 size=2097152

2017-12-18 Thread Tobias Klausmann
On 12/18/17 7:06 PM, Mike Galbraith wrote: Greetings, Kernel bound workloads seem to trigger the below for whatever reason.  I only see this when beating up NFS.  There was a kworker wakeup latency issue, but with a bandaid applied to fix that up, I can still trigger this. Hi, i have seen

Re: [PATCH] clk: check ops pointer on clock register

2017-12-18 Thread Stephen Boyd
On 12/18, Jerome Brunet wrote: > Nothing really prevents a provider from (trying to) register a clock > without providing the clock ops structure. > > We do check the individual fields before using them, but not the > structure pointer itself. This may have the usual nasty consequences when > the

Re: [PATCH v2 5/5] RDMA/core: Add runchecks.cfg for drivers/infiniband/core

2017-12-18 Thread Joe Perches
On Mon, 2017-12-18 at 13:36 +0100, Knut Omang wrote: > On Mon, 2017-12-18 at 10:02 +0200, Leon Romanovsky wrote: [] > > Also, I agree with other reviewers, there is no excuse for adding > > checkpatch specifics per-subsystem/folder, the differences are better > > to be treated in checkpatch.pl itse

RE: [PATCH V2 2/8] perf tools: rewrite perf mmap read for overwrite

2017-12-18 Thread Liang, Kan
> > -union perf_event *perf_mmap__read_backward(struct perf_mmap *map) > > +union perf_event *perf_mmap__read_backward(struct perf_mmap *map, > > + u64 *start, u64 end) > > { > > - u64 head, end; > > - u64 start = map->prev; > > - > > - /* > > -* Ch

Re: [PATCH 2/5 v3] Modify behaviour of request_*muxed_region()

2017-12-18 Thread Guenter Roeck
On Mon, Dec 18, 2017 at 09:48:38AM +0100, Zoltan Boszormenyi wrote: > From: Böszörményi Zoltán > > In order to make request_*muxed_region() behave more like > mutex_lock(), a possible failure case needs to be eliminated. > When drivers do not properly share the same I/O region, e.g. > one is usin

[PATCH] Staging: irda: Do not check for NOT NULL before kfree()

2017-12-18 Thread Shreeya Patel
Do not check for NOT NULL before calling kfree because if the pointer is NULL, no action occurs. Done using the following semantic patch by coccinelle. @@ expression ptr; @@ - if (ptr != NULL) { kfree(ptr); ptr = NULL; - } The semantic patch has the effect of adding an assignment of ptr to N

Re: [PATCH v4 1/2] dm-unstripe: unstripe RAID 0/dm-striped device

2017-12-18 Thread Randy Dunlap
On 12/18/2017 09:28 AM, Scott Bauer wrote: > This device mapper module remaps and unstripes IO so it lands > solely on a single drive in a RAID 0/dm-stripe target. > In a 4 drive RAID 0 the mapper exposes 1/4th of the LBA range > as a virtual drive. Each IO to that virtual drive will land on > only

Re: [PATCH 2/2] mmap.2: MAP_FIXED updated documentation

2017-12-18 Thread Michael Kerrisk (man-pages)
Hello Kees, I'm late to the party, and only just caught up with the fuss :-). On 12/14/2017 12:19 AM, Kees Cook wrote: > On Wed, Dec 13, 2017 at 6:40 AM, Cyril Hrubis wrote: >> Hi! >>> You selected stupid name for a flag. Everyone and their dog agrees >>> with that. There's even consensus on bet

Re: nouveau. swiotlb: coherent allocation failed for device 0000:01:00.0 size=2097152

2017-12-18 Thread Mike Galbraith
On Mon, 2017-12-18 at 20:01 +0100, Tobias Klausmann wrote: > On 12/18/17 7:06 PM, Mike Galbraith wrote: > > Greetings, > > > > Kernel bound workloads seem to trigger the below for whatever reason. > >  I only see this when beating up NFS.  There was a kworker wakeup > > latency issue, but with a b

RE: [PATCH V2 6/8] perf top: add overwrite fall back

2017-12-18 Thread Liang, Kan
> > On 2017/12/7 7:33, kan.li...@intel.com wrote: > > From: Kan Liang > > > > Switch to non-overwrite mode if kernel doesnot support overwrite > > ringbuffer. > > > > It's only effect when overwrite mode is supported. > > No change to current behavior. > > > > Signed-off-by: Kan Liang > > --- >

Re: [PATCH v4 1/2] dm-unstripe: unstripe RAID 0/dm-striped device

2017-12-18 Thread Scott Bauer
> > +config DM_UN_STRIPE > > + tristate "Transpose IO to individual drives on a raid device" > > + depends on BLK_DEV_DM > > + ---help--- > > + Enable this feature if you with to unstripe I/O on a RAID 0 > > + device to the respective drive. If your hardware has physical

Re: [PATCH v5] mmap.2: MAP_FIXED updated documentation

2017-12-18 Thread Michael Kerrisk (man-pages)
On 12/12/2017 01:23 AM, john.hubb...@gmail.com wrote: > From: John Hubbard > > -- Expand the documentation to discuss the hazards in >enough detail to allow avoiding them. > > -- Mention the upcoming MAP_FIXED_SAFE flag. > > -- Enhance the alignment requirement slightly. >

Re: [PATCH v2 5/5] RDMA/core: Add runchecks.cfg for drivers/infiniband/core

2017-12-18 Thread Leon Romanovsky
On Mon, Dec 18, 2017 at 11:03:51AM -0800, Joe Perches wrote: > On Mon, 2017-12-18 at 13:36 +0100, Knut Omang wrote: > > On Mon, 2017-12-18 at 10:02 +0200, Leon Romanovsky wrote: > [] > > > Also, I agree with other reviewers, there is no excuse for adding > > > checkpatch specifics per-subsystem/fol

Re: [PATCH] [man-pages] adjtimex.2: document clock_adjtime

2017-12-18 Thread Michael Kerrisk (man-pages)
Hi Richard, On 11/21/2017 05:06 PM, Richard Cochran wrote: > On Tue, Nov 21, 2017 at 09:06:37AM +0100, Arnd Bergmann wrote: >> >> I copied that line from clock_gettime() man page. I suppose we want to >> fix change this in both pages, right? Any suggestions for a good way to >> express your explan

Re: [PATCH] Staging: irda: Do not check for NOT NULL before kfree()

2017-12-18 Thread Stephen Hemminger
On Tue, 19 Dec 2017 00:41:30 +0530 Shreeya Patel wrote: > Do not check for NOT NULL before calling kfree because if the > pointer is NULL, no action occurs. > Done using the following semantic patch by coccinelle. > > @@ > expression ptr; > @@ > > - if (ptr != NULL) { > kfree(ptr); > ptr =

Re: [net-next] phylib: Add device reset GPIO support causes DSA MT7530 acquires reset-gpios fails

2017-12-18 Thread Florian Fainelli
On 12/18/2017 12:01 AM, Andrew Lunn wrote: > Hi Sean > >> It probably can't. Because before the GPIO line is manipulated to reset, >> certain power control should be handled such as power sources from >> external PMIC to let devices actually enter the proper state. >> >> So, I thought the kind of

Re: [PATCH v2 0/5] Support for generalized use of make C={1,2} via a wrapper program

2017-12-18 Thread Leon Romanovsky
On Mon, Dec 18, 2017 at 07:39:50PM +0100, Knut Omang wrote: > On Mon, 2017-12-18 at 17:56 +, Bart Van Assche wrote: > > On Mon, 2017-12-18 at 10:46 -0700, Jason Gunthorpe wrote: > > > On Sun, Dec 17, 2017 at 10:00:17PM -0800, Joe Perches wrote: > > > > > > > > Today when we run checkers we get

Re: [PATCH] Staging: irda: Do not check for NOT NULL before kfree()

2017-12-18 Thread Shreeya Patel
On Mon, 2017-12-18 at 11:20 -0800, Stephen Hemminger wrote: > On Tue, 19 Dec 2017 00:41:30 +0530 > Shreeya Patel wrote: > > > > > Do not check for NOT NULL before calling kfree because if the > > pointer is NULL, no action occurs. > > Done using the following semantic patch by coccinelle. > > >

Re: [BISECTED] tpm CLKRUN breaks PS/2 keyboard and touchpad on Braswell system

2017-12-18 Thread Javier Martinez Canillas
Hello Jason, Thanks a lot for your feedback. On 12/18/2017 06:55 PM, Jason Gunthorpe wrote: > On Mon, Dec 18, 2017 at 01:29:01PM +0100, Javier Martinez Canillas wrote: >> On 12/18/2017 01:22 PM, Javier Martinez Canillas wrote: >> >> [snip] >> >>> >>> James, >>> >>> Can you please test the followi

Re: [PATCH v2] Adjustments: lock/unlock task in context_switch

2017-12-18 Thread Peter Zijlstra
Thanks; I've slightly changed it, find below. I'll queue it for the next merge window. --- Subject: sched: Rework / clarify prepare_lock_switch() From: rodrigosiqueira Date: Fri, 15 Dec 2017 12:06:03 -0200 The function prepare_lock_switch has an unused parameter, and also the function name was

Re: [PATCH v4.1 2/2] livepatch: force transition to finish

2017-12-18 Thread Josh Poimboeuf
On Mon, Dec 18, 2017 at 02:23:40PM +0100, Miroslav Benes wrote: > On Fri, 15 Dec 2017, Jason Baron wrote: > > > On 11/22/2017 05:29 AM, Miroslav Benes wrote: > > > If a task sleeps in a set of patched functions uninterruptedly, it could > > > block the whole transition indefinitely. Thus it may b

Re: [PATCH v4 1/2] dm-unstripe: unstripe RAID 0/dm-striped device

2017-12-18 Thread Mike Snitzer
On Mon, Dec 18 2017 at 1:52pm -0500, Scott Bauer wrote: > > > > +config DM_UN_STRIPE > > > + tristate "Transpose IO to individual drives on a raid device" > > > + depends on BLK_DEV_DM > > > + ---help--- > > > + Enable this feature if you with to unstripe I/O on a RAID 0 > >

Re: [BISECTED] tpm CLKRUN breaks PS/2 keyboard and touchpad on Braswell system

2017-12-18 Thread Javier Martinez Canillas
Hello James, On 12/18/2017 07:26 PM, James Ettle wrote: > The keyboard and touchpad work OK with the patch quoted below and the earlier > two applied, i.e. the three patches with signatures: > > 667dcc75be864ff4c17cf58891853b7393bba3e2 > db3248e8a036c39141c8f7e9f1cf5c5ae6815f76 > 370d45a34dc8914

RE: [BISECTED] tpm CLKRUN breaks PS/2 keyboard and touchpad on Braswell system

2017-12-18 Thread Shaikh, Azhar
>-Original Message- >From: Javier Martinez Canillas [mailto:javi...@redhat.com] >Sent: Monday, December 18, 2017 11:30 AM >To: Jason Gunthorpe >Cc: Jarkko Sakkinen ; James Ettle >; linux-integr...@vger.kernel.org; Shaikh, Azhar >; linux-kernel@vger.kernel.org; >james.l.mor...@oracle.com

Re: [PATCH v3 19/19] fs: handle inode->i_version more efficiently

2017-12-18 Thread Jeff Layton
On Mon, 2017-12-18 at 12:36 -0500, J. Bruce Fields wrote: > On Mon, Dec 18, 2017 at 12:22:20PM -0500, Jeff Layton wrote: > > On Mon, 2017-12-18 at 17:34 +0100, Jan Kara wrote: > > > On Mon 18-12-17 10:11:56, Jeff Layton wrote: > > > > static inline bool > > > > inode_maybe_inc_iversion(struct ino

Re: [PATCH v4 1/2] dm-unstripe: unstripe RAID 0/dm-striped device

2017-12-18 Thread Mike Snitzer
On Mon, Dec 18 2017 at 2:32pm -0500, Mike Snitzer wrote: > On Mon, Dec 18 2017 at 1:52pm -0500, > Scott Bauer wrote: > > > > > > > +config DM_UN_STRIPE > > > > + tristate "Transpose IO to individual drives on a raid device" > > > > + depends on BLK_DEV_DM > > > > + ---help-

Re: [RFC PATCH 0/9] ethtool netlink interface (WiP)

2017-12-18 Thread David Miller
From: "John W. Linville" Date: Thu, 14 Dec 2017 16:07:56 -0500 > Even without considering the ioctl problesms, the current ethtool > API seems a bit crufty. It has been a catch-all, "where else would it > go?" dumping ground for a long time, and it has accrued a number of > not-entirely-related b

Re: [PATCH v2 4/5] rds: Add runchecks.cfg for net/rds

2017-12-18 Thread Santosh Shilimkar
On 12/16/2017 6:02 PM, Knut Omang wrote: On Sat, 2017-12-16 at 12:00 -0800, santosh.shilim...@oracle.com wrote: On 12/16/17 10:24 AM, Joe Perches wrote: [...] Most of these existing messages from checkpatch should probably be inspected and corrected where possible to minimize the style differ

Re: [PATCH] kobject: fix suppressing modalias in uevents delivered over netlink

2017-12-18 Thread Casey Leedom
/ From: Casey Leedom | Date: Friday, December 15, 2017 11:17 PST | | | From: Dmitry Torokhov | | Sent: Friday, December 15, 2017 10:53 AM | | | | Hmm, can she collect output of 'udevadm monitor -p' at the time you | | assign the adapter to the VM? | | Sure. I'll have Komali report on that.

Re: [PATCH 1/3] dt-bindings: chosen: Add clocksource and clockevent selection

2017-12-18 Thread Boris Brezillon
On Fri, 15 Dec 2017 11:32:42 + Mark Rutland wrote: > Hi, > > On Wed, Dec 13, 2017 at 07:53:11PM +0100, Alexandre Belloni wrote: > > The clocksource and clockevent timer are probed early in the boot process. > > At that time it is difficult for linux to know whether a particular timer > > can

[PATCH 0/4] bug fix mmap read in large PEBS

2017-12-18 Thread kan . liang
From: Kan Liang There is bug when mmap read event->count with large PEBS enabled. Here is an example. #./read_count 0x71f0 0x122c0 0x11c54 0x10001257d 0x2bdc5 The bug is caused by two issues. - In x86_perf_event_update, the calculation of event->count does not take th

[PATCH 2/4] perf/x86/intel: fix event update for auto-reload

2017-12-18 Thread kan . liang
From: Kan Liang There is bug when mmap read event->count with large PEBS enabled. Here is an example. #./read_count 0x71f0 0x122c0 0x11c54 0x10001257d 0x2bdc5 There is auto-reload mechanism enabled for PEBS events in fixed period mode. But the calculation of event->coun

[PATCH 4/4] perf/x86/intel: drain PEBS buffer in event read

2017-12-18 Thread kan . liang
From: Kan Liang When the PEBS interrupt threshold is larger than one, there is no way to get exact auto-reload times and value needed for event update unless flush the PEBS buffer. Drain the PEBS buffer in event read when large PEBS is enabled. For the threshold is one, even auto-reload is enab

Re: [PATCH v4 0/9] drm/i915: Implement HDCP

2017-12-18 Thread Sean Paul
On Thu, Dec 7, 2017 at 5:38 AM, Jose Abreu wrote: > Hi Sean, > > On 07-12-2017 00:00, Sean Paul wrote: >> Welcome to version 4 of the patchset. I think we're nearing the finish line >> (hopefully) now. This set addresses the review feedback from v3. I applied >> some >> R-b's from v3 review, and

[PATCH 3/4] perf/x86: introduce read function for x86_pmu

2017-12-18 Thread kan . liang
From: Kan Liang Large PEBS need to be specially handled in event count read. Signed-off-by: Kan Liang --- arch/x86/events/core.c | 3 +++ arch/x86/events/perf_event.h | 1 + 2 files changed, 4 insertions(+) diff --git a/arch/x86/events/core.c b/arch/x86/events/core.c index f74e21d..c781

[PATCH 1/4] perf/x86/intel: pass auto-reload information to event update

2017-12-18 Thread kan . liang
From: Kan Liang There is auto-reload mechanism enabled for PEBS events in fixed period mode. When calculating the event->count, the reload value also need to be taken into account. Pass the auto-reload value and times to event update. They will be used later. No functional change. Signed-off-b

Re: [PATCH net-next] net/ncsi: Don't take any action on HNCDSC AEN

2017-12-18 Thread David Miller
From: Samuel Mendoza-Jonas Date: Fri, 15 Dec 2017 16:16:40 +1100 > The current HNCDSC handler takes the status flag from the AEN packet and > will update or change the current channel based on this flag and the > current channel status. > > However the flag from the HNCDSC packet merely represen

Re: [PATCH] net: arc_emac: restart stalled EMAC

2017-12-18 Thread David Miller
From: Alexander Kochetkov Date: Fri, 15 Dec 2017 14:12:51 +0300 > Under certain conditions EMAC stop reception of incoming packets and > continuously increment R_MISS register instead of saving data into > provided buffer. The commit implement workaround for such situation. > Then the stall detec

Re: [PATCH] media: dvb_usb_pctv452e: module refcount changes were unbalanced

2017-12-18 Thread Arnd Bergmann
On Tue, Nov 28, 2017 at 12:33 PM, Wolfgang Rohdewald wrote: > @@ -913,6 +913,14 @@ static int pctv452e_frontend_attach(struct > dvb_usb_adapter *a) > &a->dev->i2c_adap); > if (!a->fe_adap[0].fe) > return -ENODEV; > + > +

Re: PROBLEM: NULL pointer dereference in kernel 4.14.6

2017-12-18 Thread Bronek Kozicki
On 17/12/2017 23:24, vcap...@pengaru.com wrote: On Sun, Dec 17, 2017 at 05:49:44PM +, Bronek Kozicki wrote: I just upgraded to 4.14.7 and tried to reproduce this error, this time under strace. As you can see this happens when systemctl tries to read a specific entry under /sys/fs . In case

Re: [PATCH 3/4 v3] mtd: onenand: samsung: Remove a useless include

2017-12-18 Thread Boris Brezillon
Don't know how you generated the patch series, but this one should be 4/4 and not 3/4. On Thu, 14 Dec 2017 07:03:52 +0100 Christophe JAILLET wrote: > This include is not needed, so remove it. > > Signed-off-by: Christophe JAILLET > --- > Cross-compiled tested-only > > v3: new patch in the ser

Re: [PATCH 0/4 v3] mtd: onenand: samsung: Simplify code and fix leaks in error handling paths

2017-12-18 Thread Boris Brezillon
On Thu, 14 Dec 2017 07:03:48 +0100 Christophe JAILLET wrote: > The first patch converts 's3c_onenand_probe()' to devm_ functions. > This fixes a leak in one path (line 872). > This also free_irq which was not handled at all. ( I hope I'm correct :) ) > > The 2nd patch is about an un-handled erro

Re: [PATCH 1/4 v3] mtd: onenand: samsung: use devm_ function to simplify code and fix some leaks

2017-12-18 Thread Boris Brezillon
On Thu, 14 Dec 2017 07:03:49 +0100 Christophe JAILLET wrote: > Convert all error handling code in 's3c_onenand_probe()' to > resource-managed alternatives in order to simplify code. > > This fixes a resource leak if 'platform_get_resource()' fails at line 872. > > The 'request_irq()' at line 97

RE: [BISECTED] tpm CLKRUN breaks PS/2 keyboard and touchpad on Braswell system

2017-12-18 Thread Shaikh, Azhar
>-Original Message- >From: linux-integrity-ow...@vger.kernel.org [mailto:linux-integrity- >ow...@vger.kernel.org] On Behalf Of Shaikh, Azhar >Sent: Monday, December 18, 2017 11:34 AM >To: Javier Martinez Canillas ; Jason Gunthorpe > >Cc: Jarkko Sakkinen ; James Ettle >; linux-integr...@vg

Re: [PATCH] kobject: fix suppressing modalias in uevents delivered over netlink

2017-12-18 Thread Casey Leedom
By the way, Komali just reported another bug internally where instantiating an SR-IOV Virtual Function causes cxgb4vf to be automatically loaded, which is normal behavior. But then when she attempts to unload cxgb4vf, it simply gets reloaded again. This is with: [root@t5nic linux]# git sh

Re: [PATCH] clk: check ops pointer on clock register

2017-12-18 Thread Jerome Brunet
On Mon, 2017-12-18 at 11:03 -0800, Stephen Boyd wrote: > On 12/18, Jerome Brunet wrote: > > Nothing really prevents a provider from (trying to) register a clock > > without providing the clock ops structure. > > > > We do check the individual fields before using them, but not the > > structure poi

Re: [PATCH v16 2/4] net: e100: Replace PCI pool old API

2017-12-18 Thread David Miller
From: Romain Perier Date: Fri, 15 Dec 2017 20:31:21 +0100 > From: Romain Perier > > The PCI pool API is deprecated. This commit replaces the PCI pool old > API by the appropriate function with the DMA pool API. > > Signed-off-by: Romain Perier > Acked-by: Peter Senna Tschudin > Acked-by: Jef

Re: [PATCH v16 3/4] hinic: Replace PCI pool old API

2017-12-18 Thread David Miller
From: Romain Perier Date: Fri, 15 Dec 2017 20:31:22 +0100 > From: Romain Perier > > The PCI pool API is deprecated. This commit replaces the PCI pool old > API by the appropriate function with the DMA pool API. > > Signed-off-by: Romain Perier Acked-by: David S. Miller

Re: [alsa-devel][PATCH v6] ASoC: TSCS42xx: Support Tempo Semiconductor's TSCS42xx audio CODECs

2017-12-18 Thread Steven Eckhoff
On Mon, Dec 18, 2017 at 09:50:48AM +, Charles Keepax wrote: > Is this unused? I apologize I missed this. These were going to be mux controls for two differential inputs. There are two inputs, but only one can be used at a time. We have never seen anybody use the second input, so I will remove

Re: [PATCH] net: phy: xgene: disable clk on error paths

2017-12-18 Thread David Miller
From: Alexey Khoroshilov Date: Sat, 16 Dec 2017 00:52:39 +0300 > There are several error paths in xgene_mdio_probe(), > where clk is left undisabled. The patch fixes them. > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alexey Khoroshilov Applied, thank y

Re: [PATCH] clk: check ops pointer on clock register

2017-12-18 Thread Michael Turquette
Hi Jerome & Stephen, On Mon, Dec 18, 2017 at 12:06 PM, Jerome Brunet wrote: > On Mon, 2017-12-18 at 11:03 -0800, Stephen Boyd wrote: >> On 12/18, Jerome Brunet wrote: >> > Nothing really prevents a provider from (trying to) register a clock >> > without providing the clock ops structure. >> > >>

Re: [BISECTED] tpm CLKRUN breaks PS/2 keyboard and touchpad on Braswell system

2017-12-18 Thread Jason Gunthorpe
On Mon, Dec 18, 2017 at 08:29:30PM +0100, Javier Martinez Canillas wrote: > My knowledge of LPC is near to non-existent so I please forgive me if I'm > wrong, > but my understanding is that it's the opposite of what you said. > > When CLKRUN_EN is SET, power management is ENABLED on the LPC bus

Re: [BISECTED] tpm CLKRUN breaks PS/2 keyboard and touchpad on Braswell system

2017-12-18 Thread Jason Gunthorpe
On Mon, Dec 18, 2017 at 07:34:29PM +, Shaikh, Azhar wrote: > >IIUC, if CLKRUN_EN is enabled, then all the devices attached to the > >LPC bus have to support the CLKRUN protocol. My guess is that on > >some Braswell systems LPC power management is enabled but the TPM > >device doesn't have CLKR

Re: [PATCH v6] atmel_flexcom: Support resuming after a chip reset

2017-12-18 Thread Alexandre Belloni
On 12/12/2017 at 17:21:19 +0100, Romain Izard wrote: > The controller used by a flexcom module is configured at boot, and left > alone after this. In the suspend mode called "backup with self-refresh" > available on SAMA5D2, the chip will resume with most of its registers > reset. In this case, we

Re: [PATCH 2/2] mmap.2: MAP_FIXED updated documentation

2017-12-18 Thread Kees Cook
On Mon, Dec 18, 2017 at 11:12 AM, Michael Kerrisk (man-pages) wrote: > Hello Kees, > > I'm late to the party, and only just caught up with the fuss :-). No worries! > On 12/14/2017 12:19 AM, Kees Cook wrote: >> On Wed, Dec 13, 2017 at 6:40 AM, Cyril Hrubis wrote: >>> Hi! You selected stupi

Re: block: oopses on 4.13.*, 4.14.* and 4.15-rc2 (bisected)

2017-12-18 Thread Michele Ballabio
On Mon, 18 Dec 2017 15:46:36 +0800 Ming Lei wrote: > On Sat, Dec 9, 2017 at 7:27 AM, Michele Ballabio > wrote: > > On Fri, 8 Dec 2017 13:08:37 -0700 > > Jens Axboe wrote: > > > >> On 12/08/2017 08:38 AM, Michele Ballabio wrote: > >> > Hi, > >> > kernels 4.13.*, 4.14.* 4.15-rc2 crash on

Re: [PATCH V2 9/9] ARM: dts: stm32: add initial support of stm32mp157c eval board

2017-12-18 Thread Arnd Bergmann
On Mon, Dec 18, 2017 at 4:17 PM, Ludovic Barre wrote: = > + > +/ { > + model = "STMicroelectronics STM32MP157C eval daughter"; > + compatible = "st,stm32mp157c-ed1", "st,stm32mp157"; > + > + chosen { > + bootargs = "earlyprintk console=ttySTM3,115200 root=/dev/ram";

Re: [RFC v2 2/2] backlight: pwm_bl: compute brightness of LED linearly to human eye.

2017-12-18 Thread Daniel Thompson
On Mon, Dec 18, 2017 at 08:46:09AM -0800, Doug Anderson wrote: > Hi, > > On Mon, Dec 18, 2017 at 5:31 AM, Daniel Thompson > wrote: > > I think two different values on the userspace side should always map to > > different values on the kernel side. > > This is what I thought originally, but I bel

Re: [PATCH RFC 2/7] KVM: nVMX: modify vmcs12 fields to match Hyper-V enlightened VMCS

2017-12-18 Thread Jim Mattson
Yikes! This breaks migration to/from older versions of kvm. Will you be submitting another change to handle dynamic conversion between formats? On Mon, Dec 18, 2017 at 9:17 AM, Vitaly Kuznetsov wrote: > From: Ladi Prosek > > Reorders existing fields and adds fields specific to Hyper-V. The layou

[PATCH v5 3/6] leds: lp8860: Update the dt parsing for LED labeling

2017-12-18 Thread Dan Murphy
Update the DT parsing for the label node so that the label is retrieved from the device child as opposed to being part of the parent. This will align this driver with the LED binding documentation Documentation/devicetree/bindings/leds/common.txt Signed-off-by: Dan Murphy --- v5 - no changes

[PATCH v5 2/6] dt: bindings: lp8860: Update DT label binding

2017-12-18 Thread Dan Murphy
Update the lp8860 label binding to the LED standard as documented in Documentation/devicetree/bindings/leds/common.txt Signed-off-by: Dan Murphy --- v5 - Renamed label to just white:backlight - https://patchwork.kernel.org/patch/10108361 Comment was made on patch 4 https://patchwork.kernel.org

[PATCH v5 4/6] dt: bindings: lp8860: Add trigger binding to the lp8860

2017-12-18 Thread Dan Murphy
Add a default trigger optional node to the child node. This will allow the driver to set the trigger for a backlight. Signed-off-by: Dan Murphy --- v5 - No changes v4 - No changes v3 - Removed optional and rebased - https://patchwork.kernel.org/patch/10093755/ v2 - Moved binding changes to firs

[PATCH v5 5/6] leds: lp8860: Add DT parsing to retrieve the trigger node

2017-12-18 Thread Dan Murphy
Add the ability to parse the DT and set the default trigger mode for the LED. Signed-off-by: Dan Murphy --- v5 - No changes v4 - No changes v3 - no changes - https://patchwork.kernel.org/patch/10093751/ v2 - no changes drivers/leds/leds-lp8860.c | 4 1 file changed, 4 insertions(+) diff

[PATCH v5 6/6] leds: lp8860: Various fixes to align with LED framework

2017-12-18 Thread Dan Murphy
Update the driver to conform with the LED framework. Use devm_led_classdev_register Destroy mutex on exit Remove dependency on CONFIG_OF in the driver and move to the Kconfig Update the MODULE_LICENSE to GPL v2 Remove setting of MAX brightness as the LED framework does this. Signed-off-by: Dan Mur

Re: [lustre-devel] [PATCH 04/16] staging: lustre: use wait_event_timeout() where appropriate.

2017-12-18 Thread Patrick Farrell
Same thing as the other one, ll_statahead_thread should not contribute to load. IMO, mgc_process_log should not contribute to load in the case where it¹s waiting for an import to recover, that¹s likely to be a pretty long wait and doesn¹t really represent load. It¹s waiting for network recovery,

<    5   6   7   8   9   10   11   12   13   14   >