[PATCH v2 1/1] usb: xhci: dbc: Add SPDX identifiers to dbc files

2017-12-22 Thread Lu Baolu
Update the xhci dbc files with the correct SPDX license identifiers. Fixes: dfba2174dc42 ("usb: xhci: Add DbC support in xHCI driver") Cc: Philippe Ombredanne Signed-off-by: Lu Baolu --- changes from v1: * Use plain C style comments in header file. drivers/usb/host/xhci-dbgcap.c | 1 + drive

[PATCH] clk: mediatek: Fix all warnings for missing struct clk_onecell_data

2017-12-22 Thread sean.wang
From: Sean Wang In fact, the clk-mtk.h header is unnecessary for reset.c and thus it's safe to remove it from the file to get rid of below build warnings. All warnings (new ones prefixed by >>): In file included from drivers/clk/mediatek/reset.c:22:0: >>drivers/clk/mediatek/clk-mtk.h:44:19:

Re: [PATCH] arm: dts: mt7623: enable all four available UARTs on bananapi-r2

2017-12-22 Thread Matthias Brugger
On 12/22/2017 07:06 AM, sean.w...@mediatek.com wrote: > From: Sean Wang > > On bpi-r2 board, totally there're four uarts which we usually called > uart[0-3] helpful to extend slow I/O devices. Among those ones, uart2 has > dedicated pin slot which is used to conolse log. uart[0-1] appear at the

Re: [PATCH 1/1] usb: xhci: dbc: Add SPDX identifiers to dbc files

2017-12-22 Thread Lu Baolu
Hi, On 12/22/2017 04:32 PM, Philippe Ombredanne wrote: > Lu, > > On Fri, Dec 22, 2017 at 2:34 AM, Lu Baolu wrote: >> Update the xhci dbc files with the correct SPDX license identifiers. >> >> Fixes: dfba2174dc42 ("usb: xhci: Add DbC support in xHCI driver") >> Signed-off-by: Lu Baolu >> --- >>

Re: [PATCH 04/11] x86: geode: constify gpio_led

2017-12-22 Thread kbuild test robot
Hi Arvind, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on arm-soc/for-next] [also build test WARNING on v4.15-rc4 next-20171222] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com

Re: [PATCH 0/1] Re: kernel BUG at fs/userfaultfd.c:LINE!

2017-12-22 Thread Dmitry Vyukov
On Sat, Dec 23, 2017 at 1:25 AM, Andrea Arcangeli wrote: > Hello, > > Thanks for the CC, I'm temporarily very busy so if there's something > urgent, safer to CC. Hi, syzbot uses get_maintainer.pl and for fs/userfaultfd.c you are not there, so if you want to be CCed please add yourself to MAINTAI

Re: [PATCH v16 3/5] mfd: Add driver for RAVE Supervisory Processor

2017-12-22 Thread kbuild test robot
Hi Andrey, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.15-rc4] [cannot apply to next-20171222] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https

Re: platform/x86/thinkpad_acpi: Adjustments for four function implementations

2017-12-22 Thread SF Markus Elfring
>> Do you find the Linux allocation failure report insufficient in this case? > > Leave those pr_ messages alone, please, Have you got special software development concerns? > unless they are really causing some sort of issue (which?). Can the code be redundant here? > Doing it just for "com

Re: [PATCH v3 0/3] create sysfs representation of ACPI HMAT

2017-12-22 Thread Anshuman Khandual
On 12/23/2017 03:43 AM, Ross Zwisler wrote: > On Fri, Dec 22, 2017 at 08:39:41AM +0530, Anshuman Khandual wrote: >> On 12/14/2017 07:40 AM, Ross Zwisler wrote: >>> Quick Summary >>> >>> Platforms exist today which have multiple types of memory attached to a >>> single CPU. These disparat

Re: Prototype patch for Linux-kernel memory model

2017-12-22 Thread afzal mohammed
Hi, On Fri, Dec 22, 2017 at 09:41:32AM +0530, afzal mohammed wrote: > On Thu, Dec 21, 2017 at 08:15:02AM -0800, Paul E. McKenney wrote: > > Have you installed and run the herd tool? Doing so would allow you > > to experiment with changes to the litmus tests. > > Yes, i installed herd tool and t

Re: [RFC][PATCH][REGRESSION FIX] x86/ftrace: Add ORC annotation to 64 bit ftrace assembly

2017-12-22 Thread Steven Rostedt
On Fri, 22 Dec 2017 20:43:37 -0600 Josh Poimboeuf wrote: > Objtool doesn't like the fact that save_mcount_regs pushes rbp at the > beginning, but it's never restored (directly, at least). > > How about something like this instead, where it skips the original rbp > push? I didn't test it, but I

Re: [RFC] does ioremap() cause memory leak?

2017-12-22 Thread Xishi Qiu
On 2017/12/21 16:55, Xishi Qiu wrote: > When we use iounmap() to free the mapping, it calls unmap_vmap_area() to > clear page table, > but do not free the memory of page table, right? > > So when use ioremap() to mapping another area(incluce the area before), it > may use > large mapping(e.g. i

Re: thinkpad x60: sound problems in 4.15-rc1 was Re: thinkpad x60: sound problems in 4.14.0-next-20171114

2017-12-22 Thread vcaputo
On Wed, Dec 20, 2017 at 01:33:45AM +0100, Thomas Gleixner wrote: > On Tue, 19 Dec 2017, vcap...@pengaru.com wrote: > > On Wed, Dec 20, 2017 at 12:22:12AM +0100, Pavel Machek wrote: > > > You forgot to mention commit id :-). > > > > > > > That is very strange, anyhow: > > > > commit fdba46ffb4c2

Re: [PATCH v3 0/3] create sysfs representation of ACPI HMAT

2017-12-22 Thread Anshuman Khandual
On 12/22/2017 10:43 PM, Dave Hansen wrote: > On 12/21/2017 07:09 PM, Anshuman Khandual wrote: >> I had presented a proposal for NUMA redesign in the Plumbers Conference this >> year where various memory devices with different kind of memory attributes >> can be represented in the kernel and be used

Re: [PATCH v11 2/6] mailbox: qcom: Create APCS child device for clock controller

2017-12-22 Thread Jassi Brar
On Tue, Dec 5, 2017 at 9:16 PM, Georgi Djakov wrote: > There is a clock controller functionality provided by the APCS hardware > block of msm8916 devices. The device-tree would represent an APCS node > with both mailbox and clock provider properties. > The spec might depict a 'clock' box and 'mail

Re: PROBLEM: 4.15.0-rc3 APIC causes lockups on Core 2 Duo laptop

2017-12-22 Thread Alexandru Chirvasitu
I was just now trying to track down my other issue, whereby somewhere along the tree kexec stops working properly. In the process of doing that I realized I had initially made one change to the original 4.9 config beyond oldconfig: I'd turned off WX debugging. I've now compiled a bunch of versions

Re: [PATCH RESEND 1/1] cpufreq: imx6q: switch to Use clk_bulk_get to refine clk operations

2017-12-22 Thread Dong Aisheng
On Fri, Dec 22, 2017 at 07:34:57PM +0100, Rafael J. Wysocki wrote: > On Thursday, December 21, 2017 2:18:01 PM CET Dong Aisheng wrote: > > Hi Rafael, > > > > On Thu, Sep 14, 2017 at 02:40:32PM -0700, Viresh Kumar wrote: > > > On 31-08-17, 19:43, Dong Aisheng wrote: > > > > Use clk_bulk_get to ease

kasan for bpf

2017-12-22 Thread Alexei Starovoitov
Hi All, the recent bugs make people question the safety of bpf and not a surprise that some folks propose to set kernel.unprivileged_bpf_disabled = 1 by default. I think it will be wrong long term decision, since it will steer bpf into "root only" mentality. The verifier checks will become sloppi

[PATCH] mm/fadvise: discard partial pages iff endbyte is also eof

2017-12-22 Thread 十刀
From: "shidao.ytt" in commit 441c228f817f7 ("mm: fadvise: document the fadvise(FADV_DONTNEED) behaviour for partial pages") Mel Gorman explained why partial pages should be preserved instead of discarded when using fadvise(FADV_DONTNEED), however the actual codes to calcuate end_index was unexpec

Re: [PATCH 11/11] evm: Don't update hmacs in user ns mounts

2017-12-22 Thread Serge E. Hallyn
On Fri, Dec 22, 2017 at 03:32:35PM +0100, Dongsu Park wrote: > From: Seth Forshee > > The kernel should not calculate new hmacs for mounts done by > non-root users. Update evm_calc_hmac_or_hash() to refuse to > calculate new hmacs for mounts for non-init user namespaces. > > Cc: linux-integr...@

Re: [PATCH] On ppc64le we HAVE_RELIABLE_STACKTRACE

2017-12-22 Thread Josh Poimboeuf
On Thu, Dec 21, 2017 at 11:10:46PM +1100, Michael Ellerman wrote: > Josh Poimboeuf writes: > > > On Tue, Dec 19, 2017 at 12:28:33PM +0100, Torsten Duwe wrote: > >> On Mon, Dec 18, 2017 at 12:56:22PM -0600, Josh Poimboeuf wrote: > >> > On Mon, Dec 18, 2017 at 03:33:34PM +1000, Nicholas Piggin wrot

Re: [PATCH 10/11] fuse: Allow user namespace mounts

2017-12-22 Thread Serge E. Hallyn
On Fri, Dec 22, 2017 at 03:32:34PM +0100, Dongsu Park wrote: > From: Seth Forshee > > To be able to mount fuse from non-init user namespaces, it's necessary > to set FS_USERNS_MOUNT flag to fs_flags. > > Patch v4 is available: https://patchwork.kernel.org/patch/8944681/ > > Cc: linux-fsde...@vg

Re: [PATCH 09/11] fuse: Restrict allow_other to the superblock's namespace or a descendant

2017-12-22 Thread Serge E. Hallyn
On Fri, Dec 22, 2017 at 03:32:33PM +0100, Dongsu Park wrote: > From: Seth Forshee > > Unprivileged users are normally restricted from mounting with the > allow_other option by system policy, but this could be bypassed > for a mount done with user namespace root permissions. In such > cases allow_

Re: [PATCH 08/11] fuse: Support fuse filesystems outside of init_user_ns

2017-12-22 Thread Serge E. Hallyn
On Fri, Dec 22, 2017 at 03:32:32PM +0100, Dongsu Park wrote: > From: Seth Forshee > > In order to support mounts from namespaces other than > init_user_ns, fuse must translate uids and gids to/from the > userns of the process servicing requests on /dev/fuse. This > patch does that, with a couple

Re: [PATCH v4] fsck.f2fs: check and fix i_namelen to avoid double free

2017-12-22 Thread Yunlong Song
And there is en[namelen] = '\0', should fix namelen to its right value. On 2017/12/23 11:35, Chao Yu wrote: On 2017/12/23 11:19, Yunlong Song wrote: Double free problem: Since ddr bit jump makes i_namelen a larger value (> 255),when file is not encrypted, the convert_encrypted_name will memcpy

Re: [PATCH 07/11] fs: Allow CAP_SYS_ADMIN in s_user_ns to freeze and thaw filesystems

2017-12-22 Thread Serge E. Hallyn
On Fri, Dec 22, 2017 at 03:32:31PM +0100, Dongsu Park wrote: > From: Seth Forshee > > The user in control of a super block should be allowed to freeze > and thaw it. Relax the restrictions on the FIFREEZE and FITHAW > ioctls to require CAP_SYS_ADMIN in s_user_ns. > > Cc: linux-fsde...@vger.kerne

Re: [PATCH v2] fsck.f2fs: check nid range before use to avoid segmentation fault

2017-12-22 Thread Yunlong Song
Both are OK, since nid < root_ino cannot trigger segmentation fault (nat_block->entries[nid%NAT_ENTRY_PER_BLOCK]). On 2017/12/23 11:14, Chao Yu wrote: On 2017/12/18 19:53, Yunlong Song wrote: Signed-off-by: Yunlong Song How about introducing IS_AVAILABLE_NID as below, and use it instead? #d

Re: [PATCH v4] fsck.f2fs: check and fix i_namelen to avoid double free

2017-12-22 Thread Chao Yu
On 2017/12/23 11:19, Yunlong Song wrote: > Double free problem: > Since ddr bit jump makes i_namelen a larger value (> 255),when file is > not encrypted, > the convert_encrypted_name will memcpy out range of en[255], when en is > freed, there > will be double free problem. It looks there is only

Re: [PATCH 06/11] capabilities: Allow privileged user in s_user_ns to set security.* xattrs

2017-12-22 Thread Serge E. Hallyn
On Fri, Dec 22, 2017 at 03:32:30PM +0100, Dongsu Park wrote: > From: Seth Forshee > > A privileged user in s_user_ns will generally have the ability to > manipulate the backing store and insert security.* xattrs into > the filesystem directly. Therefore the kernel must be prepared to > handle the

Re: [PATCH 05/11] fs: Allow superblock owner to access do_remount_sb()

2017-12-22 Thread Serge E. Hallyn
On Fri, Dec 22, 2017 at 03:32:29PM +0100, Dongsu Park wrote: > From: Seth Forshee > > Superblock level remounts are currently restricted to global > CAP_SYS_ADMIN, as is the path for changing the root mount to > read only on umount. Loosen both of these permission checks to > also allow CAP_SYS_A

Re: [PATCH v20 3/7 RESEND] xbitmap: add more operations

2017-12-22 Thread Matthew Wilcox
On Sat, Dec 23, 2017 at 11:59:54AM +0900, Tetsuo Handa wrote: > Matthew Wilcox wrote: > > + bit %= IDA_BITMAP_BITS; > > + radix_tree_iter_init(&iter, index); > > + slot = idr_get_free_cmn(root, &iter, GFP_NOWAIT | __GFP_NOWARN, index); > > + if (IS_ERR(slot)) { > > + if (slot == E

Re: [PATCH 04/11] fs: Don't remove suid for CAP_FSETID for userns root

2017-12-22 Thread Serge E. Hallyn
On Fri, Dec 22, 2017 at 03:32:28PM +0100, Dongsu Park wrote: > From: Seth Forshee > > Expand the check in should_remove_suid() to keep privileges for I realize this description came from Seth, but reading it now, 'Expand' seems wrong. Expanding a check brings to my mind making it stricter, not

Re: [PATCH v4] fsck.f2fs: check and fix i_namelen to avoid double free

2017-12-22 Thread Yunlong Song
Double free problem: Since ddr bit jump makes i_namelen a larger value (> 255),when file is not encrypted, the convert_encrypted_name will memcpy out range of en[255], when en is freed, there will be double free problem. On 2017/12/23 11:05, Chao Yu wrote: On 2017/12/18 21:25, Yunlong Song wr

Re: [PATCH 03/11] fs: Allow superblock owner to change ownership of inodes

2017-12-22 Thread Serge E. Hallyn
On Fri, Dec 22, 2017 at 03:32:27PM +0100, Dongsu Park wrote: > From: Eric W. Biederman > > Allow users with CAP_SYS_CHOWN over the superblock of a filesystem to Note it is CAP_CHOWN > chown files. Ordinarily the capable_wrt_inode_uidgid check is > sufficient to allow access to files but when t

Re: [PATCH v2] fsck.f2fs: check nid range before use to avoid segmentation fault

2017-12-22 Thread Chao Yu
On 2017/12/18 19:53, Yunlong Song wrote: > Signed-off-by: Yunlong Song How about introducing IS_AVAILABLE_NID as below, and use it instead? #define IS_AVAILABLE_NID(sbi, nid) (IS_VALID_NID(sbi, nid) && (nid >= root_ino)) Thanks, > --- > fsck/fsck.c | 2 +- > 1 file changed, 1 insertion(

Re: [PATCH v4] fsck.f2fs: check and fix i_namelen to avoid double free

2017-12-22 Thread Chao Yu
On 2017/12/18 21:25, Yunlong Song wrote: > v1 -> v2: use child_info to pass dentry namelen > v2 -> v3: check child != NULL to include the F2FS_FT_ORPHAN file type > v3 -> v4: fix the i_namelen problem of dump.f2fs、 There is no commit log, so what do you mean about "avoid double free"? Other than

Re: [PATCH 02/11] mtd: Check permissions towards mtd block device inode when mounting

2017-12-22 Thread Serge E. Hallyn
On Fri, Dec 22, 2017 at 03:32:26PM +0100, Dongsu Park wrote: > From: Seth Forshee > > Unprivileged users should not be able to mount mtd block devices > when they lack sufficient privileges towards the block device > inode. Update mount_mtd() to validate that the user has the > required access t

Re: [PATCH 01/11] block_dev: Support checking inode permissions in lookup_bdev()

2017-12-22 Thread Serge E. Hallyn
On Fri, Dec 22, 2017 at 03:32:25PM +0100, Dongsu Park wrote: > From: Seth Forshee > > When looking up a block device by path no permission check is > done to verify that the user has access to the block device inode > at the specified path. In some cases it may be necessary to > check permissions

Re: [PATCH v20 3/7 RESEND] xbitmap: add more operations

2017-12-22 Thread Tetsuo Handa
Matthew Wilcox wrote: > +/** > + * xb_set_bit() - Set a bit in the XBitmap. > + * @xb: The XBitmap. > + * @bit: Index of the bit to set. > + * > + * This function is used to set a bit in the xbitmap. > + * > + * Return: 0 on success. -ENOMEM if memory could not be allocated. > + */ > +int xb_set_bi

Re: [RFC][PATCH][REGRESSION FIX] x86/ftrace: Add ORC annotation to 64 bit ftrace assembly

2017-12-22 Thread Josh Poimboeuf
On Fri, Dec 22, 2017 at 01:38:01PM -0500, Steven Rostedt wrote: > On Fri, 22 Dec 2017 12:30:24 -0600 > Josh Poimboeuf wrote: > > > I'm officially on vacation but I got a chance to look at this myself a > > few minutes ago. This looks mostly right. In theory, you should able > > to mark those as

[PATCH] usbip: fix vudc_rx: harden CMD_SUBMIT path to handle malicious input

2017-12-22 Thread Shuah Khan
Harden CMD_SUBMIT path to handle malicious input that could trigger large memory allocations. Add checks to validate transfer_buffer_length and number_of_packets to protect against bad input requesting for unbounded memory allocations. Signed-off-by: Shuah Khan --- drivers/usb/usbip/vudc_rx.c |

[PATCH] usbip: vudc_tx: fix v_send_ret_submit() vulnerability to null xfer buffer

2017-12-22 Thread Shuah Khan
v_send_ret_submit() handles urb with a null transfer_buffer, when it replays a packet with potential malicious data that could contain a null buffer. Add a check for the condition when actual_length > 0 and transfer_buffer is null. Signed-off-by: Shuah Khan --- drivers/usb/usbip/vudc_tx.c | 11

mmotm 2017-12-22-17-55 uploaded

2017-12-22 Thread akpm
The mm-of-the-moment snapshot 2017-12-22-17-55 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

Re: [PATCH 04/17] mm: pass the vmem_altmap to arch_add_memory and __add_pages

2017-12-22 Thread Dan Williams
On Fri, Dec 15, 2017 at 6:09 AM, Christoph Hellwig wrote: > We can just pass this on instead of having to do a radix tree lookup > without proper locking 2 levels into the callchain. > > Signed-off-by: Christoph Hellwig [..] > diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c > index 8ac

Re: [PATCH v2 1/3] phy: core: Move runtime PM reference counting to the parent device

2017-12-22 Thread Rafael J. Wysocki
On Sat, Dec 23, 2017 at 2:35 AM, Rafael J. Wysocki wrote: > On Thu, Dec 21, 2017 at 11:50 AM, Ulf Hansson wrote: >> On 21 December 2017 at 02:39, Rafael J. Wysocki wrote: >>> On Wed, Dec 20, 2017 at 3:09 PM, Ulf Hansson wrote: The runtime PM deployment in the phy core is deployed using the

Re: [PATCH 04/17] mm: pass the vmem_altmap to arch_add_memory and __add_pages

2017-12-22 Thread Dan Williams
On Fri, Dec 15, 2017 at 6:09 AM, Christoph Hellwig wrote: > We can just pass this on instead of having to do a radix tree lookup > without proper locking 2 levels into the callchain. > > Signed-off-by: Christoph Hellwig [..] > diff --git a/kernel/memremap.c b/kernel/memremap.c > index 403ab9cdb94

Re: platform/x86/thinkpad_acpi: Adjustments for four function implementations

2017-12-22 Thread Henrique de Moraes Holschuh
On Tue, 19 Dec 2017, SF Markus Elfring wrote: > >> Delete an error message for a failed memory allocation in three functions > > > > This one is questionable since it prints error messages at ->init() stage. > > I would rather not touch this. > > Do you find the Linux allocation failure report

Re: [PATCH 0/2] platform/x86/thinkpad_acpi: Adjustments for four function implementations

2017-12-22 Thread Henrique de Moraes Holschuh
On Tue, 19 Dec 2017, Andy Shevchenko wrote: > On Mon, Dec 18, 2017 at 11:26 PM, SF Markus Elfring > wrote: > > From: Markus Elfring > > Date: Mon, 18 Dec 2017 22:23:45 +0100 > > > > Two update suggestions were taken into account > > from static source code analysis. > > > > Markus Elfring (2): >

Re: [PATCH -V4 -mm] mm, swap: Fix race between swapoff and some swap operations

2017-12-22 Thread Minchan Kim
On Fri, Dec 22, 2017 at 10:14:43PM +0800, Huang, Ying wrote: > Minchan Kim writes: > > > On Thu, Dec 21, 2017 at 03:48:56PM +0800, Huang, Ying wrote: > >> Minchan Kim writes: > >> > >> > On Wed, Dec 20, 2017 at 09:26:32AM +0800, Huang, Ying wrote: > >> >> From: Huang Ying > >> >> > >> >> When

RE: PROBLEM: 4.15.0-rc3 APIC causes lockups on Core 2 Duo laptop

2017-12-22 Thread Dexuan Cui
> From: Alexandru Chirvasitu [mailto:achirva...@gmail.com] > Sent: Friday, December 22, 2017 14:29 > > The output of that precise command run just now on a freshly-compiled > copy of that commit is attached. > > On Fri, Dec 22, 2017 at 09:31:28PM +, Dexuan Cui wrote: > > > From: Alexandru Chi

Re: [PATCH v2 1/3] phy: core: Move runtime PM reference counting to the parent device

2017-12-22 Thread Rafael J. Wysocki
On Thu, Dec 21, 2017 at 11:50 AM, Ulf Hansson wrote: > On 21 December 2017 at 02:39, Rafael J. Wysocki wrote: >> On Wed, Dec 20, 2017 at 3:09 PM, Ulf Hansson wrote: >>> The runtime PM deployment in the phy core is deployed using the phy core >>> device, which is created by the phy core and assig

Re: [PATCH v3 0/3] create sysfs representation of ACPI HMAT

2017-12-22 Thread Rafael J. Wysocki
On Sat, Dec 23, 2017 at 12:57 AM, Dan Williams wrote: > On Fri, Dec 22, 2017 at 3:22 PM, Ross Zwisler > wrote: >> On Fri, Dec 22, 2017 at 02:53:42PM -0800, Dan Williams wrote: >>> On Thu, Dec 21, 2017 at 12:31 PM, Brice Goglin >>> wrote: >>> > Le 20/12/2017 à 23:41, Ross Zwisler a écrit : >>> [

[PATCH] arm64: support __int128 with clang

2017-12-22 Thread Jason A. Donenfeld
Commit fb8722735f50 ("arm64: support __int128 on gcc 5+") added support for arm64 __int128 with gcc with a version-conditional, but neglected to enable this for clang, which in fact appears to support aarch64 __int128. This commit therefore enables it if the compiler is clang, using the same type o

[PATCH] mmc: Don't reference Linux-specific OF_GPIO_ACTIVE_LOW flag in DT binding

2017-12-22 Thread Tuomas Tynkkynen
OF_GPIO_ACTIVE_LOW is a Linux implementation detail. The binding document should be referring to GPIO_ACTIVE_LOW found in include/dt-bindings/gpio/gpio.h. Signed-off-by: Tuomas Tynkkynen --- Documentation/devicetree/bindings/mmc/mmc.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[PATCH 0/1] Re: kernel BUG at fs/userfaultfd.c:LINE!

2017-12-22 Thread Andrea Arcangeli
Hello, Thanks for the CC, I'm temporarily very busy so if there's something urgent, safer to CC. This passed both testcases, the hard part was already done. I'm glad there was nothing wrong in the previous fix that had to be redone. Simply we forgot to undo the vma->vm_userfaultfd_ctx = NULL aft

[PATCH 1/1] userfaultfd: clear the vma->vm_userfaultfd_ctx if UFFD_EVENT_FORK fails

2017-12-22 Thread Andrea Arcangeli
The previous fix 384632e67e0829deb8015ee6ad916b180049d252 corrected the refcounting in case of UFFD_EVENT_FORK failure for the fork userfault paths. That still didn't clear the vma->vm_userfaultfd_ctx of the vmas that were set to point to the aborted new uffd ctx earlier in dup_userfaultfd. Cc: st

Re: [PATCH v4 14/19] xfs: convert to new i_version API

2017-12-22 Thread Darrick J. Wong
On Fri, Dec 22, 2017 at 07:05:51AM -0500, Jeff Layton wrote: > From: Jeff Layton > > Signed-off-by: Jeff Layton > --- > fs/xfs/libxfs/xfs_inode_buf.c | 7 +-- > fs/xfs/xfs_icache.c | 5 +++-- > fs/xfs/xfs_inode.c| 3 ++- > fs/xfs/xfs_inode_item.c | 3 ++- > fs/xf

Re: [PATCH v4 17/19] xfs: avoid setting XFS_ILOG_CORE if i_version doesn't need incrementing

2017-12-22 Thread Darrick J. Wong
On Fri, Dec 22, 2017 at 07:05:54AM -0500, Jeff Layton wrote: > From: Jeff Layton > > If XFS_ILOG_CORE is already set then go ahead and increment it. > > Signed-off-by: Jeff Layton Looks ok, Acked-by: Darrick J. Wong > --- > fs/xfs/xfs_trans_inode.c | 14 -- > 1 file changed, 8 i

[PATCH] usbip: remove kernel addresses from usb device and urb debug msgs

2017-12-22 Thread Shuah Khan
usbip_dump_usb_device() and usbip_dump_urb() print kernel addresses. Remove kernel addresses from usb device and urb debug msgs and improve the message content. Instead of printing parent device and bus addresses, print parent device and bus names. Signed-off-by: Shuah Khan --- drivers/usb/usbi

Re: [PATCH/RFC] perf report: Add option to change offset format when address is specified as a sort_key

2017-12-22 Thread Jiri Olsa
On Fri, Dec 15, 2017 at 03:35:10PM +, Aaron Tomlin wrote: > With --call-graph option, a user can choose to display call chains with a > specific sort_key. The sort_key can be either: function, address or srcline. > By default, when the address is specified as the sort_key, the offset (i.e. > sy

Re: [PATCH v3 0/3] create sysfs representation of ACPI HMAT

2017-12-22 Thread Dan Williams
On Fri, Dec 22, 2017 at 3:22 PM, Ross Zwisler wrote: > On Fri, Dec 22, 2017 at 02:53:42PM -0800, Dan Williams wrote: >> On Thu, Dec 21, 2017 at 12:31 PM, Brice Goglin >> wrote: >> > Le 20/12/2017 à 23:41, Ross Zwisler a écrit : >> [..] >> > Hello >> > >> > I can confirm that HPC runtimes are goi

Re: [PATCH v4 01/19] fs: new API for handling inode->i_version

2017-12-22 Thread Jeff Layton
On Sat, 2017-12-23 at 10:14 +1100, NeilBrown wrote: > On Fri, Dec 22 2017, Jeff Layton wrote: > > > From: Jeff Layton > > > > Add a documentation blob that explains what the i_version field is, how > > it is expected to work, and how it is currently implemented by various > > filesystems. > > >

Re: [PATCH v3 0/3] create sysfs representation of ACPI HMAT

2017-12-22 Thread Ross Zwisler
On Fri, Dec 22, 2017 at 02:53:42PM -0800, Dan Williams wrote: > On Thu, Dec 21, 2017 at 12:31 PM, Brice Goglin wrote: > > Le 20/12/2017 à 23:41, Ross Zwisler a écrit : > [..] > > Hello > > > > I can confirm that HPC runtimes are going to use these patches (at least > > all runtimes that use hwloc

[PATCH] iio: adc: add driver for ti adc081s/adc101s/adc121s

2017-12-22 Thread Milan Stevanovic
Signed-off-by: Milan Stevanovic --- drivers/iio/adc/Kconfig | 10 ++ drivers/iio/adc/Makefile | 1 + drivers/iio/adc/ti-adc081s.c | 239 +++ 3 files changed, 250 insertions(+) create mode 100644 drivers/iio/adc/ti-adc081s.c diff --git a/driver

Re: [RFC PATCH v2 1/3] PCI: rockchip: Add support for pcie wake irq

2017-12-22 Thread Brian Norris
+ Rafael to this thread On Wed, Dec 20, 2017 at 11:19:12AM -0800, Tony Lindgren wrote: > * Brian Norris [171219 00:50]: > > On Wed, Aug 23, 2017 at 09:32:39AM +0800, Jeffy Chen wrote: > > > > Did this problem ever get resolved? To be clear, I believe the problem > > at hand is: > > > > (a) in s

[PATCH v5 6/6] [media] cxusb: add analog mode support for Medion MD95700

2017-12-22 Thread Maciej S. Szmigiero
This patch adds support for analog part of Medion 95700 in the cxusb driver. What works: * Video capture at various sizes with sequential fields, * Input switching (TV Tuner, Composite, S-Video), * TV and radio tuning, * Video standard switching and auto detection, * Radio mode switching (stereo /

[PATCH v5 2/6] cx25840: add kernel-doc description of struct cx25840_state

2017-12-22 Thread Maciej S. Szmigiero
This commit describes a device instance private data of the driver (struct cx25840_state) in a kernel-doc style comment. Signed-off-by: Maciej S. Szmigiero --- drivers/media/i2c/cx25840/cx25840-core.h | 33 ++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff -

[PATCH v5 5/6] [media] cxusb: implement Medion MD95700 digital / analog coexistence

2017-12-22 Thread Maciej S. Szmigiero
This patch prepares cxusb driver for supporting the analog part of Medion 95700 (previously only the digital - DVB - mode was supported). Specifically, it adds support for: * switching the device between analog and digital modes of operation, * enforcing that only one mode is active at the same ti

[PATCH v5 3/6] cx25840: add pin to pad mapping and output format configuration

2017-12-22 Thread Maciej S. Szmigiero
This commit adds pin to pad mapping and output format configuration support in CX2584x-series chips to cx25840 driver. This functionality is then used to allow disabling ivtv-specific hacks (called a "generic mode"), so cx25840 driver can be used for other devices not needing them without risking

[PATCH v5 4/6] tuner-simple: allow setting mono radio mode

2017-12-22 Thread Maciej S. Szmigiero
For some types of tuners (Philips FMD1216ME(X) MK3 currently) we know that letting TDA9887 output port 1 remain high (inactive) will switch FM radio to mono mode. Let's make use of this functionality - nothing changes for the default stereo radio mode. Tested on a Medion 95700 board which has a FM

[PATCH v5 1/6] ivtv: zero-initialize cx25840 platform data

2017-12-22 Thread Maciej S. Szmigiero
We need to zero-initialize cx25840 platform data structure to make sure that its future members do not contain random stack garbage. Signed-off-by: Maciej S. Szmigiero --- drivers/media/pci/ivtv/ivtv-i2c.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/pci/ivtv/ivtv-i2c.c b/d

[PATCH v5 0/6] [media] Add analog mode support for Medion MD95700

2017-12-22 Thread Maciej S. Szmigiero
This series adds support for analog part of Medion 95700 in the cxusb driver. What works: * Video capture at various sizes with sequential fields, * Input switching (TV Tuner, Composite, S-Video), * TV and radio tuning, * Video standard switching and auto detection, * Radio mode switching (stereo

Re: [PATCH v4 6/6] [media] cxusb: add analog mode support for Medion MD95700

2017-12-22 Thread Maciej S. Szmigiero
On 19.12.2017 13:53, Mauro Carvalho Chehab wrote: > Em Sun, 17 Dec 2017 19:47:25 +0100 > "Maciej S. Szmigiero" escreveu: > >> This patch adds support for analog part of Medion 95700 in the cxusb >> driver. >> >> What works: >> * Video capture at various sizes with sequential fields, >> * Input sw

Re: [PATCH v4 01/19] fs: new API for handling inode->i_version

2017-12-22 Thread NeilBrown
On Fri, Dec 22 2017, Jeff Layton wrote: > From: Jeff Layton > > Add a documentation blob that explains what the i_version field is, how > it is expected to work, and how it is currently implemented by various > filesystems. > > We already have inode_inc_iversion. Add several other functions for >

Re: ptrace versus setuid changes in 4.14?

2017-12-22 Thread Kees Cook
On Fri, Dec 22, 2017 at 12:55 PM, Tom Horsley wrote: > On Fri, 22 Dec 2017 12:28:25 -0800 > Laura Abbott wrote: > >> Assuming this is https://bugzilla.redhat.com/show_bug.cgi?id=1528633 >> This is yet another victim of >> >> commit e37fdb785a5f95ecadf43b773c97f676500ac7b8 (refs/bisect/bad) >> Auth

Re: [PATCH 2/2] sched/wait: add wait_event_idle_exclusive_lifo()

2017-12-22 Thread NeilBrown
On Fri, Dec 22 2017, Peter Zijlstra wrote: > On Fri, Dec 22, 2017 at 02:11:04PM +1100, NeilBrown wrote: >> wait_event_*_exclusive() adds new waiters to the end of the >> quest, while non-exclusive wait_event adds to the head. >> >> This ensures that a wake_up will wake all non-exclusive >> waiter

Re: [PATCH 1/2] sched/wait: add wait_event_idle() functions.

2017-12-22 Thread NeilBrown
[removing close lustre-devel list as requested, adding assorted Lustre individuals] On Fri, Dec 22 2017, Peter Zijlstra wrote: > On Fri, Dec 22, 2017 at 02:11:04PM +1100, NeilBrown wrote: >> The new TASK_IDLE state (TASK_UNINTERRUPTIBLE | __TASK_NOLOAD) >> is not much used. One way to make it

Re: [PATCH v3 0/3] create sysfs representation of ACPI HMAT

2017-12-22 Thread Dan Williams
On Thu, Dec 21, 2017 at 12:31 PM, Brice Goglin wrote: > Le 20/12/2017 à 23:41, Ross Zwisler a écrit : [..] > Hello > > I can confirm that HPC runtimes are going to use these patches (at least > all runtimes that use hwloc for topology discovery, but that's the vast > majority of HPC anyway). > > W

Re: [PATCH v2 1/2] kbuild: Require a 'make clean' if we detect gcc changed underneath us

2017-12-22 Thread Guenter Roeck
On Fri, Dec 22, 2017 at 02:14:53PM -0800, Douglas Anderson wrote: > Several people reported that the commit 3298b690b21c ("kbuild: Add a > cache for generated variables") caused them problems when they updated > gcc versions. Specifically the reports all looked something similar > to this: > > >

Re: [PATCH] [v4] kasan: rework Kconfig settings

2017-12-22 Thread Andrew Morton
On Thu, 21 Dec 2017 14:46:39 +0100 Arnd Bergmann wrote: > We get a lot of very large stack frames using gcc-7.0.1 with the default > -fsanitize-address-use-after-scope --param asan-stack=1 options, which > can easily cause an overflow of the kernel stack, e.g. > > drivers/gpu/drm/i915/gvt/handle

Re: [PATCH 4.9 000/104] 4.9.72-stable review

2017-12-22 Thread Dan Rue
On Fri, Dec 22, 2017 at 05:02:54PM +0100, Greg Kroah-Hartman wrote: > On Fri, Dec 22, 2017 at 09:45:26AM +0100, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.9.72 release. > > There are 104 patches in this series, all will be posted as a response > > to this o

Re: [PATCH v3 0/3] create sysfs representation of ACPI HMAT

2017-12-22 Thread Ross Zwisler
On Fri, Dec 22, 2017 at 08:39:41AM +0530, Anshuman Khandual wrote: > On 12/14/2017 07:40 AM, Ross Zwisler wrote: <> > > We solve this issue by providing userspace with performance information on > > individual memory ranges. This performance information is exposed via > > sysfs: > > > > # grep

Re: [PATCH 4.14 000/159] 4.14.9-stable review

2017-12-22 Thread Dan Rue
On Fri, Dec 22, 2017 at 09:44:45AM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.9 release. > There are 159 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

Re: [PATCH 1/6] dt-bindings: soc: qcom: Add label for GLINK bindings

2017-12-22 Thread Bjorn Andersson
On Wed 20 Dec 10:30 PST 2017, Rob Herring wrote: > On Mon, Dec 18, 2017 at 02:02:09PM -0800, Chris Lew wrote: > > Add a label property to identify the edge this node represents. > > Why does a user need to know this? > Each SMD or GLINK edge will expose a dev node as /dev/rpmsg_ctrlX that can b

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

2017-12-22 Thread Eric Biggers
On Fri, Dec 22, 2017 at 01:37:02PM -0800, syzbot wrote: > Hello, > > syzkaller hit the following crash on > e7655085973bd33ee47bb12de663d31c81717404 > git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console ou

Re: kernel BUG at fs/userfaultfd.c:LINE!

2017-12-22 Thread Eric Biggers
[+Cc aarca...@redhat.com, linux...@kvack.org] On Fri, Dec 22, 2017 at 01:37:01PM -0800, syzbot wrote: > Hello, > > syzkaller hit the following crash on > 6084b576dca2e898f5c101baef151f7bfdbb606d > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master > compiler: gcc (GCC) 7.1.1

[PATCH] xen-blkfront: move negotiate_mq to cover all cases of new VBDs

2017-12-22 Thread Bhavesh Davda
negotiate_mq should happen in all cases of a new VBD being discovered by xen-blkfront, whether called through _probe() or a hot-attached new VBD from dom-0 via xenstore. Otherwise, hot-attached new VBDs are left configured without multi-queue. Signed-off-by: Bhavesh Davda Reviewed-by: Konrad Rzes

[PATCH v2 1/2] kbuild: Require a 'make clean' if we detect gcc changed underneath us

2017-12-22 Thread Douglas Anderson
Several people reported that the commit 3298b690b21c ("kbuild: Add a cache for generated variables") caused them problems when they updated gcc versions. Specifically the reports all looked something similar to this: > In file included from ./include/uapi/linux/uuid.h:21:0, > fro

[PATCH v2 0/2] kbuild: Fix corner caches with .cache.mk

2017-12-22 Thread Douglas Anderson
This two-patches fixes two corner cases with .cache.mk that have been reported recently. Neither problem was catastrophic, but certainly several people ran into the problem solved by the first patch (can't build after gcc upgrade) and wasted time debugging, so it's really a good idea to fix. For

Re: [PATCH 1/2] kbuild: Require a 'make clean' if we detect gcc changed underneath us

2017-12-22 Thread Doug Anderson
Hi, On Fri, Dec 22, 2017 at 1:58 PM, Guenter Roeck wrote: > On Thu, Dec 21, 2017 at 05:53:02PM -0800, Douglas Anderson wrote: >> Several people reported that the commit 3298b690b21c ("kbuild: Add a >> cache for generated variables") caused them problems when they updated >> gcc versions. Specifi

[PATCH v2 2/2] kbuild: Don't mess with the .cache.mk when installing

2017-12-22 Thread Douglas Anderson
As pointed out by Masahiro Yamada people often run "sudo make install" or "sudo make modules_install". In theory, that could cause a cache file (or the directory containing it) to be created by root. After doing this then subsequent invocations to make would yell with a whole bunch of warnings li

Re: BUG: unable to handle kernel paging request in security_compute_sid

2017-12-22 Thread Eric Biggers
On Fri, Dec 22, 2017 at 01:38:01PM -0800, syzbot wrote: > Hello, > > syzkaller hit the following crash on > 6084b576dca2e898f5c101baef151f7bfdbb606d > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console o

Re: [PATCH v3 0/3] create sysfs representation of ACPI HMAT

2017-12-22 Thread Ross Zwisler
On Fri, Dec 22, 2017 at 08:39:41AM +0530, Anshuman Khandual wrote: > On 12/14/2017 07:40 AM, Ross Zwisler wrote: > > Quick Summary > > > > Platforms exist today which have multiple types of memory attached to a > > single CPU. These disparate memory ranges have some characteristics in >

[RFC PATCH] backlight: otm3225a: otm3225a_ops can be static

2017-12-22 Thread kbuild test robot
Fixes: 640b353b5467 ("backlight: otm3225a: add support for ORISE OTM3225A LCD SoC") Signed-off-by: Fengguang Wu --- otm3225a.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/backlight/otm3225a.c b/drivers/video/backlight/otm3225a.c index 0de75f8..056ac8b 1

Re: [PATCH] backlight: otm3225a: add support for ORISE OTM3225A LCD SoC

2017-12-22 Thread kbuild test robot
Hi Felix, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on backlight/for-backlight-next] [also build test WARNING on v4.15-rc4 next-20171222] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https

RE: [Intel-wired-lan] [PATCH] e1000e: Fix e1000_check_for_copper_link_ich8lan return value.

2017-12-22 Thread Brown, Aaron F
> From: Intel-wired-lan [mailto:intel-wired-lan-boun...@osuosl.org] On > Behalf Of Neftin, Sasha > Sent: Wednesday, December 20, 2017 10:57 PM > To: Benjamin Poirier ; Kirsher, Jeffrey T > > Cc: Ben Hutchings ; Gabriel C > ; net...@vger.kernel.org; Christian Hesse > ; sta...@vger.kernel.org; linux

Re: [PATCH 1/2] kbuild: Require a 'make clean' if we detect gcc changed underneath us

2017-12-22 Thread Guenter Roeck
On Thu, Dec 21, 2017 at 05:53:02PM -0800, Douglas Anderson wrote: > Several people reported that the commit 3298b690b21c ("kbuild: Add a > cache for generated variables") caused them problems when they updated > gcc versions. Specifically the reports all looked something similar > to this: > > >

Re: [PATCH] mtd: nand: vf610: fix error handling in vf610_nfc_probe()

2017-12-22 Thread Boris Brezillon
On Sat, 23 Dec 2017 00:43:14 +0300 Alexey Khoroshilov wrote: > vf610_nfc_probe() misses error handling of mtd_device_register(). > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alexey Khoroshilov > --- > drivers/mtd/nand/vf610_nfc.c | 5 - > 1 file ch

Re: [PATCH 4.14 108/159] kvm, mm: account kvm related kmem slabs to kmemcg

2017-12-22 Thread alexander . levin
On Fri, Dec 22, 2017 at 07:22:32PM +0100, Michal Hocko wrote: >On Fri 22-12-17 18:07:23, Sasha Levin wrote: >> I don't try and override maintainers, I mostly try to get fixes out >> of subsystems where maintainers/authors partially (or just don't) >> mark their commits for stable. > >Well, I have s

Re: [PATCH v3 0/3] create sysfs representation of ACPI HMAT

2017-12-22 Thread Ross Zwisler
On Thu, Dec 21, 2017 at 01:41:15AM +, Elliott, Robert (Persistent Memory) wrote: > > > > -Original Message- > > From: Linux-nvdimm [mailto:linux-nvdimm-boun...@lists.01.org] On Behalf Of > > Ross Zwisler > ... > > > > On Wed, Dec 20, 2017 at 10:19:37AM -0800, Matthew Wilcox wrote: >

  1   2   3   4   5   6   7   8   9   10   >