Re: [PATCH v2] apparmor: add braces around optional statement

2017-06-20 Thread John Johansen
On 06/20/2017 01:49 PM, Serge E. Hallyn wrote: > Quoting Arnd Bergmann (a...@arndb.de): >> We get a warning when AA_BUG() compiles to an nothing: >> >> security/apparmor/label.c: In function '__label_update': >> security/apparmor/label.c:2055:3: error: suggest braces around empty body in >> an 'el

[Update][PATCH 4/6] PCI / PM: Simplify device wakeup settings code

2017-06-20 Thread Rafael J. Wysocki
From: Rafael J. Wysocki After previous changes it is not necessary to distinguish between device wakeup for run time and device wakeup from system sleep states any more, so rework the PCI device wakeup settings code accordingly. Signed-off-by: Rafael J. Wysocki --- Updated to fix a build issue

[Update][PATCH 5/6] PCI / ACPI / PM: Avoid disabling wakeup for bridges too early

2017-06-20 Thread Rafael J. Wysocki
From: Rafael J. Wysocki If acpi_pci_propagate_wakeup() is used, it may trigger wakeup configuration twice for the same bridge indirectly, when configuring wakeup for two different PCI devices under that bridge. Actually, however, the ACPI wakeup code can only be enabled to trigger wakeup notific

Re: [PATCH] kernel/watchdog: fix spurious hard lockups

2017-06-20 Thread Prarit Bhargava
On 06/20/2017 05:33 PM, kan.li...@intel.com wrote: > From: Kan Liang > > Some users reported spurious NMI watchdog timeouts. > > We now have more and more systems where the Turbo range is wide enough > that the NMI watchdog expires faster than the soft watchdog timer that > updates the interru

Re: [PATCH 00/51] rtc: stop using rtc deprecated functions

2017-06-20 Thread Russell King - ARM Linux
On Wed, Jun 21, 2017 at 12:00:30AM +0200, Thomas Gleixner wrote: > Yes, but there are still quite some issues to solve there: > > 1) How do you tell the system that it should apply the offset in the > first place, i.e at boot time before NTP or any other mechanism can > correct it

Re: [PATCH] tty: hide unused pty_get_peer function

2017-06-20 Thread Kees Cook
On Tue, Jun 20, 2017 at 1:34 PM, Arnd Bergmann wrote: > TIOCGPTPEER is only used for unix98 PTYs, and we get a warning > when those are disabled: > > drivers/tty/pty.c:466:12: error: 'pty_get_peer' defined but not used > [-Werror=unused-function] > > This moves the respective functions inside of

[PATCH] Documentation: remove overlay-notes reference to non-existent file

2017-06-20 Thread frowand . list
From: Frank Rowand File dt-object-internal.txt does not exist. Remove a reference to it and fix up tags for references to other files. Reported-by: afaer...@suse.de Signed-off-by: Frank Rowand --- Documentation/devicetree/overlay-notes.txt | 8 +++- 1 file changed, 3 insertions(+), 5 dele

Re: [PATCH] kernel.h: fix new warnings for container_of()

2017-06-20 Thread Kees Cook
On Tue, Jun 20, 2017 at 1:09 PM, Arnd Bergmann wrote: > I see new warnings with gcc-7.0.1 with the modified container_of(): > > fs/f2fs/dir.c: In function 'F2FS_I': > fs/f2fs/f2fs.h:1122:385: note: found mismatched ssa struct pointer types: > 'struct f2fs_inode_info' and 'struct inode' This is a

Re: [RFC v2 03/12] powerpc: Implement sys_pkey_alloc and sys_pkey_free system call.

2017-06-20 Thread Ram Pai
On Mon, Jun 19, 2017 at 10:18:01PM +1000, Michael Ellerman wrote: > Hi Ram, > > Ram Pai writes: > > Sys_pkey_alloc() allocates and returns available pkey > > Sys_pkey_free() frees up the pkey. > > > > Total 32 keys are supported on powerpc. However pkey 0,1 and 31 > > are reserved. So effectivel

Re: [PATCH] kernel.h: fix new warnings for container_of()

2017-06-20 Thread Kees Cook
On Tue, Jun 20, 2017 at 3:43 PM, Kees Cook wrote: > On Tue, Jun 20, 2017 at 1:09 PM, Arnd Bergmann wrote: >> I see new warnings with gcc-7.0.1 with the modified container_of(): >> >> fs/f2fs/dir.c: In function 'F2FS_I': >> fs/f2fs/f2fs.h:1122:385: note: found mismatched ssa struct pointer types:

Re: [PATCH] slub: make sysfs file removal asynchronous

2017-06-20 Thread Tejun Heo
Hello, On Tue, Jun 20, 2017 at 06:22:05PM -0400, Steven Rostedt wrote: > > I think we'd risk more by backporting it through -stable than keeping > > the bug there. The bug is very difficult to hit. > > Famous last words. > > > Writing to a slub > > sysfs file has to race against kmem_cache dest

Re: [kernel-hardening] [PATCH 23/23] mm: Allow slab_nomerge to be set at build time

2017-06-20 Thread Kees Cook
On Mon, Jun 19, 2017 at 9:09 PM, Daniel Micay wrote: > On Mon, 2017-06-19 at 16:36 -0700, Kees Cook wrote: >> Some hardened environments want to build kernels with slab_nomerge >> already set (so that they do not depend on remembering to set the >> kernel >> command line option). This is desired t

Re: [PATCH] kernel/watchdog: fix spurious hard lockups

2017-06-20 Thread Andi Kleen
On Tue, Jun 20, 2017 at 06:34:23PM -0400, Prarit Bhargava wrote: > > > On 06/20/2017 05:33 PM, kan.li...@intel.com wrote: > > From: Kan Liang > > > > Some users reported spurious NMI watchdog timeouts. > > > > We now have more and more systems where the Turbo range is wide enough > > that the

Re: [PATCH] Revert "HID: magicmouse: Set multi-touch keybits for Magic Mouse"

2017-06-20 Thread Peter Hutterer
On Thu, Jun 15, 2017 at 01:35:50PM +0100, Daniel Stone wrote: > Setting these bits causes libinput to fail to initialize the device; > setting BTN_TOUCH and BTN_TOOL_FINGER causes it to treat the mouse as a > touchpad, and it then refuses to continue when it discovers ABS_X is not > set. What happ

RE: [Intel-gfx] [PATCH v9 5/7] vfio: Define vfio based dma-buf operations

2017-06-20 Thread Zhang, Tina
> -Original Message- > From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Tuesday, June 20, 2017 11:00 PM > To: Gerd Hoffmann > Cc: Zhang, Tina ; intel-...@lists.freedesktop.org; > linux- > ker...@vger.kernel.org; Kirti Wankhede ; Chen, > Xiaoguang ; intel-gvt-...@lists.f

[PATCH] Input: synaptics-rmi4 - Only read the F54 query registers which are used

2017-06-20 Thread Andrew Duggan
The F54 driver is currently only using the first 6 bytes of F54 so there is no need to read all 27 bytes. Some Dell systems (Dell XP13 9333 and similar) have an issue with the touchpad or I2C bus when readiing reports larger then 16 bytes. Reads larger then 16 bytes are reported in two HID reports.

[PATCH v2] mm: Allow slab_nomerge to be set at build time

2017-06-20 Thread Kees Cook
Some hardened environments want to build kernels with slab_nomerge already set (so that they do not depend on remembering to set the kernel command line option). This is desired to reduce the risk of kernel heap overflows being able to overwrite objects from merged caches and changes the requiremen

Re: [kernel-hardening] [PATCH 23/23] mm: Allow slab_nomerge to be set at build time

2017-06-20 Thread Kees Cook
On Mon, Jun 19, 2017 at 9:29 PM, Eric Biggers wrote: > On Mon, Jun 19, 2017 at 04:36:37PM -0700, Kees Cook wrote: >> Some hardened environments want to build kernels with slab_nomerge >> already set (so that they do not depend on remembering to set the kernel >> command line option). This is desir

Re: [PATCH 05/20] arm64: rename COMPAT to AARCH32_EL0 in Kconfig

2017-06-20 Thread Yury Norov
On Mon, Jun 19, 2017 at 04:58:16PM +0100, James Morse wrote: > Hi Yury, > > On 04/06/17 12:59, Yury Norov wrote: > > From: Andrew Pinski > > > > In this patchset ILP32 ABI support is added. Additionally to AARCH32, > > which is binary-compatible with ARM, ILP32 is (mostly) ABI-compatible. > >

Re: [PATCH] tty: hide unused pty_get_peer function

2017-06-20 Thread Aleksa Sarai
TIOCGPTPEER is only used for unix98 PTYs, and we get a warning when those are disabled: drivers/tty/pty.c:466:12: error: 'pty_get_peer' defined but not used [-Werror=unused-function] This moves the respective functions inside of the existing #ifdef. Fixes: 54ebbfb16034 ("tty: add TIOCGPTPEER i

Re: [PATCH] compiler, clang: Add always_inline attribute to inline

2017-06-20 Thread David Rientjes
On Tue, 20 Jun 2017, Mark Rutland wrote: > As with my reply to David, my preference would be that we: > > 1) Align compiler-clang.h with the compiler-gcc.h inlining behaviour, so >that things work by default. > > 2) Fix up the arm64 core code (and drivers for architected / common >periph

[PATCH v7 10/10] mm: memory_hotplug: memory hotremove supports thp migration

2017-06-20 Thread Zi Yan
From: Naoya Horiguchi This patch enables thp migration for memory hotremove. --- ChangeLog v1->v2: - base code switched from alloc_migrate_target to new_node_page() Signed-off-by: Naoya Horiguchi ChangeLog v2->v7: - base code switched from new_node_page() new_page_nodemask() Signed-off-by: Z

[PATCH v7 03/10] mm: thp: introduce separate TTU flag for thp freezing

2017-06-20 Thread Zi Yan
From: Naoya Horiguchi TTU_MIGRATION is used to convert pte into migration entry until thp split completes. This behavior conflicts with thp migration added later patches, so let's introduce a new TTU flag specifically for freezing. try_to_unmap() is used both for thp split (via freeze_page()) an

[PATCH v7 07/10] mm: soft-dirty: keep soft-dirty bits over thp migration

2017-06-20 Thread Zi Yan
From: Naoya Horiguchi Soft dirty bit is designed to keep tracked over page migration. This patch makes it work in the same manner for thp migration too. --- ChangeLog v1 -> v2: - separate diff moving _PAGE_SWP_SOFT_DIRTY from bit 7 to bit 1 - clear_soft_dirty_pmd can handle migration entry Sign

[PATCH v7 01/10] mm: mempolicy: add queue_pages_required()

2017-06-20 Thread Zi Yan
From: Naoya Horiguchi Introduce a separate check routine related to MPOL_MF_INVERT flag. This patch just does cleanup, no behavioral change. Signed-off-by: Naoya Horiguchi Signed-off-by: Zi Yan --- mm/mempolicy.c | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) d

[PATCH v7 00/10] mm: page migration enhancement for thp

2017-06-20 Thread Zi Yan
From: Zi Yan Hi all, The patches are rebased on mmotm-2017-06-16-13-59 with the feedbacks (the kbuild bot warning and error) from v6 patches. Hi Kirill, I have cleaned up Patch 5 and Patch 6, so PTE-mapped THP migration is handled fully by existing code. Can you review these two patches? Patch

[PATCH v7 08/10] mm: mempolicy: mbind and migrate_pages support thp migration

2017-06-20 Thread Zi Yan
From: Naoya Horiguchi This patch enables thp migration for mbind(2) and migrate_pages(2). ChangeLog v1 -> v2: - support pte-mapped and doubly-mapped thp Signed-off-by: Naoya Horiguchi ChangeLog v2 -> v6: - use the same gfp flag (GFP_TRANSHUGE) in mbind() and migrate_pages() for thp allocati

Re: [PATCH v2] mm: Allow slab_nomerge to be set at build time

2017-06-20 Thread Randy Dunlap
On 06/20/2017 04:09 PM, Kees Cook wrote: > Some hardened environments want to build kernels with slab_nomerge > already set (so that they do not depend on remembering to set the kernel > command line option). This is desired to reduce the risk of kernel heap > overflows being able to overwrite obje

[PATCH v7 09/10] mm: migrate: move_pages() supports thp migration

2017-06-20 Thread Zi Yan
From: Naoya Horiguchi This patch enables thp migration for move_pages(2). Signed-off-by: Naoya Horiguchi ChangeLog: v1 -> v5: - fix page counting ChangeLog: v5 -> v6: - drop changes on soft-offline in unmap_and_move() Signed-off-by: Zi Yan --- mm/migrate.c | 45

[PATCH v7 05/10] mm: thp: enable thp migration in generic path

2017-06-20 Thread Zi Yan
From: Zi Yan This patch adds thp migration's core code, including conversions between a PMD entry and a swap entry, setting PMD migration entry, removing PMD migration entry, and waiting on PMD migration entries. This patch makes it possible to support thp migration. If you fail to allocate a de

[PATCH v7 06/10] mm: thp: check pmd migration entry in common path

2017-06-20 Thread Zi Yan
From: Zi Yan If one of callers of page migration starts to handle thp, memory management code start to see pmd migration entry, so we need to prepare for it before enabling. This patch changes various code point which checks the status of given pmds in order to prevent race between thp migration

[PATCH v7 02/10] mm: x86: move _PAGE_SWP_SOFT_DIRTY from bit 7 to bit 1

2017-06-20 Thread Zi Yan
From: Naoya Horiguchi _PAGE_PSE is used to distinguish between a truly non-present (_PAGE_PRESENT=0) PMD, and a PMD which is undergoing a THP split and should be treated as present. But _PAGE_SWP_SOFT_DIRTY currently uses the _PAGE_PSE bit, which would cause confusion between one of those PMDs u

[PATCH v7 04/10] mm: thp: introduce CONFIG_ARCH_ENABLE_THP_MIGRATION

2017-06-20 Thread Zi Yan
From: Naoya Horiguchi Introduces CONFIG_ARCH_ENABLE_THP_MIGRATION to limit thp migration functionality to x86_64, which should be safer at the first step. ChangeLog v1 -> v2: - fixed config name in subject and patch description Signed-off-by: Naoya Horiguchi Reviewed-by: Anshuman Khandual ---

[PATCH] dt-bindings: display-timing.txt convert non-ascii characters to ascii

2017-06-20 Thread frowand . list
From: Frank Rowand Convert non-ascii up and down arrows to '^' and 'v' Signed-off-by: Frank Rowand --- .../devicetree/bindings/display/panel/display-timing.txt | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/display/panel/d

Re: [Intel-gfx] [PATCH v9 5/7] vfio: Define vfio based dma-buf operations

2017-06-20 Thread Alex Williamson
On Tue, 20 Jun 2017 23:01:53 + "Zhang, Tina" wrote: > > -Original Message- > > From: Alex Williamson [mailto:alex.william...@redhat.com] > > Sent: Tuesday, June 20, 2017 11:00 PM > > To: Gerd Hoffmann > > Cc: Zhang, Tina ; intel-...@lists.freedesktop.org; > > linux- > > ker...@vger.

Re: [RFC v2 01/12] powerpc: Free up four 64K PTE bits in 4K backed hpte pages.

2017-06-20 Thread Ram Pai
On Tue, Jun 20, 2017 at 03:50:25PM +0530, Anshuman Khandual wrote: > On 06/17/2017 09:22 AM, Ram Pai wrote: > > Rearrange 64K PTE bits to free up bits 3, 4, 5 and 6 > > in the 4K backed hpte pages. These bits continue to be used > > for 64K backed hpte pages in this patch, but will be freed >

Re: [RFC v2 02/12] powerpc: Free up four 64K PTE bits in 64K backed hpte pages.

2017-06-20 Thread Ram Pai
On Tue, Jun 20, 2017 at 04:21:45PM +0530, Anshuman Khandual wrote: > On 06/17/2017 09:22 AM, Ram Pai wrote: > > Rearrange 64K PTE bits to free up bits 3, 4, 5 and 6 > > in the 64K backed hpte pages. This along with the earlier > > patch will entirely free up the four bits from 64K PTE. > > >

Re: [RFC v2 06/12] powerpc: Program HPTE key protection bits.

2017-06-20 Thread Ram Pai
On Tue, Jun 20, 2017 at 01:51:45PM +0530, Anshuman Khandual wrote: > On 06/17/2017 09:22 AM, Ram Pai wrote: > > Map the PTE protection key bits to the HPTE key protection bits, > > while creatiing HPTE entries. > > > > Signed-off-by: Ram Pai > > --- > > arch/powerpc/include/asm/book3s/64/mmu-ha

Re: [PATCH] [PATCH v2 net-next] bonding: Convert multiple netdev_info messages to netdev_dbg

2017-06-20 Thread Joe Perches
On Tue, 2017-06-20 at 23:05 +0100, Michael J Dilmore wrote: > The bond_options.c file contains several netdev_info messages that clutter > kernel output. This patch changes all netdev_info messages > to netdev_dbg and adds a netdev debug for the packets per slave parameter. Hey Michael. You shou

Re: [RFC v2 07/12] powerpc: Macro the mask used for checking DSI exception

2017-06-20 Thread Ram Pai
On Tue, Jun 20, 2017 at 01:44:25PM +0530, Anshuman Khandual wrote: > On 06/17/2017 09:22 AM, Ram Pai wrote: > > Replace the magic number used to check for DSI exception > > with a meaningful value. > > > > Signed-off-by: Ram Pai > > --- > > arch/powerpc/include/asm/reg.h | 9 - > >

Re: [PATCH v2] mm: Allow slab_nomerge to be set at build time

2017-06-20 Thread Kees Cook
On Tue, Jun 20, 2017 at 4:16 PM, Randy Dunlap wrote: > On 06/20/2017 04:09 PM, Kees Cook wrote: >> Some hardened environments want to build kernels with slab_nomerge >> already set (so that they do not depend on remembering to set the kernel >> command line option). This is desired to reduce the r

linux-next: build warnings after merge of the clk tree

2017-06-20 Thread Stephen Rothwell
Hi all, After merging the clk tree, today's linux-next build (x86_64 allmodconfig) produced these warnings: WARNING: drivers/clk/bcm/built-in.o(.text+0x4022): Section mismatch in reference from the function sr_genpll3_clk_init() to the function .init.text:iproc_pll_clk_setup() The function sr_g

Re: [PATCH RFC] hugetlbfs 'noautofill' mount option

2017-06-20 Thread Prakash Sangappa
On 6/16/17 6:15 AM, Andrea Arcangeli wrote: Hello Prakash, Thanks for you response. Comments inline. On Tue, May 09, 2017 at 01:59:34PM -0700, Prakash Sangappa wrote: On 5/9/17 1:58 AM, Christoph Hellwig wrote: On Mon, May 08, 2017 at 03:12:42PM -0700, prakash.sangappa wrote: Regardin

[PATCH] of: make of_fdt_is_compatible() static

2017-06-20 Thread frowand . list
From: Frank Rowand The callers of of_fdt_is_compatible() are all in fdt.c so make it static. Signed-off-by: Frank Rowand --- drivers/of/fdt.c | 2 +- include/linux/of_fdt.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index 30

Re: [PATCH] random: silence compiler warnings and fix race

2017-06-20 Thread Theodore Ts'o
On Tue, Jun 20, 2017 at 11:49:07AM +0200, Jason A. Donenfeld wrote: > Uh, talk about a totally unnecessary punch... In case my last email > wasn't clear, I fully recognize that `default y` is a tad too extreme, > which is why from one of the earliest revisions in this series, I > moved directly to

Re: [RFC v2 08/12] powerpc: Handle exceptions caused by violation of pkey protection.

2017-06-20 Thread Ram Pai
On Tue, Jun 20, 2017 at 12:54:45PM +0530, Anshuman Khandual wrote: > On 06/17/2017 09:22 AM, Ram Pai wrote: > > Handle Data and Instruction exceptions caused by memory > > protection-key. > > > > Signed-off-by: Ram Pai > > (cherry picked from commit a5e5217619a0c475fe0cacc3b0cf1d3d33c79a09) Sorr

Re: [BUG] Deadlock due due to interactions of block, RCU, and cpu offline

2017-06-20 Thread Paul E. McKenney
On Mon, Mar 27, 2017 at 11:17:11AM -0700, Paul E. McKenney wrote: > On Mon, Mar 27, 2017 at 12:02:27PM -0600, Jeffrey Hugo wrote: > > Hi Paul. > > > > Thanks for the quick reply. > > > > On 3/26/2017 5:28 PM, Paul E. McKenney wrote: > > >On Sun, Mar 26, 2017 at 05:10:40PM -0600, Jeffrey Hugo wrot

[PATCH] of: fdt.c header comment typo

2017-06-20 Thread frowand . list
From: Frank Rowand Fix typo in header comment for early_init_dt_scan_memory() Signed-off-by: Frank Rowand --- drivers/of/fdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index 3080d9dd031d..c053b4f4fbc1 100644 --- a/drivers/of/fdt.c

Re: [PATCH] serial: imx: disable DMA for RS-485 on i.MX6 SMP

2017-06-20 Thread Fabio Estevam
Hi Clemens, On Tue, Jun 20, 2017 at 1:13 PM, Fabio Estevam wrote: > The subject gives the impression that the DMA will only be disabled > for RS485, but the impact of this change is wider. > > For example: if I have a mx6q system with a Bluetooth serial > connection I can no longer use DMA with

[PATCH] of: address.c header comment typo

2017-06-20 Thread frowand . list
From: Frank Rowand Fix typo in header comment for of_address_to_resource() Signed-off-by: Frank Rowand --- drivers/of/address.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/address.c b/drivers/of/address.c index 72914cdfce2a..580bbf6ca2b1 100644 --- a/drivers/

Re: [RFC PATCH 2/2] mm, fs: daxfile, an interface for byte-addressable updates to pmem

2017-06-20 Thread Dave Chinner
On Tue, Jun 20, 2017 at 09:17:36AM -0700, Dan Williams wrote: > On Tue, Jun 20, 2017 at 1:49 AM, Christoph Hellwig wrote: > > [stripped giant fullquotes] > > > > On Mon, Jun 19, 2017 at 10:53:12PM -0700, Andy Lutomirski wrote: > >> But that's my whole point. The kernel doesn't really need to prev

Re: [PATCH] random: silence compiler warnings and fix race

2017-06-20 Thread Jason A. Donenfeld
On Wed, Jun 21, 2017 at 1:38 AM, Theodore Ts'o wrote: > The punch was in response to this statement, which I personally found > fairly infuriating: > >>> I more or less agree with you that we should just turn this on for all >>> users and they'll just have to live with the spam and report odd >>>

Re: [RFC v2 09/12] powerpc: Deliver SEGV signal on pkey violation.

2017-06-20 Thread Ram Pai
On Tue, Jun 20, 2017 at 12:24:53PM +0530, Anshuman Khandual wrote: > On 06/17/2017 09:22 AM, Ram Pai wrote: > > The value of the AMR register at the time of exception > > is made available in gp_regs[PT_AMR] of the siginfo. > > > > This field can be used to reprogram the permission bits of > > any

Re: [RFC v2 10/12] powerpc: Read AMR only if pkey-violation caused the exception.

2017-06-20 Thread Ram Pai
On Mon, Jun 19, 2017 at 09:06:13PM +1000, Michael Ellerman wrote: > Ram Pai writes: > > > Signed-off-by: Ram Pai > > --- > > arch/powerpc/kernel/exceptions-64s.S | 16 ++-- > > 1 file changed, 10 insertions(+), 6 deletions(-) > > > > diff --git a/arch/powerpc/kernel/exceptions-64s.S

Re: [RFC v2 10/12] powerpc: Read AMR only if pkey-violation caused the exception.

2017-06-20 Thread Ram Pai
On Tue, Jun 20, 2017 at 12:16:40PM +0530, Anshuman Khandual wrote: > On 06/19/2017 11:29 PM, Ram Pai wrote: > > On Mon, Jun 19, 2017 at 09:06:13PM +1000, Michael Ellerman wrote: > >> Ram Pai writes: > >> > >>> Signed-off-by: Ram Pai > >>> --- > >>> arch/powerpc/kernel/exceptions-64s.S | 16 +

[PATCH] random: warn when kernel uses unseeded randomness

2017-06-20 Thread Jason A. Donenfeld
This enables an important dmesg notification about when drivers have used the crng without it being seeded first. Prior, these errors would occur silently, and so there hasn't been a great way of diagnosing these types of bugs for obscure setups. By adding this as a config option, we can leave it o

Re: [RFC v2 11/12]Documentation: Documentation updates.

2017-06-20 Thread Ram Pai
On Tue, Jun 20, 2017 at 11:48:23AM +0530, Anshuman Khandual wrote: > On 06/17/2017 09:22 AM, Ram Pai wrote: > > The Documentaton file is moved from x86 into the generic area, > > since this feature is now supported by more than one archs. > > > > Signed-off-by: Ram Pai > > --- > > Documentation/

Re: [PATCH 2/2] writeback: Rework wb_[dec|inc]_stat family of functions

2017-06-20 Thread kbuild test robot
Hi Nikolay, [auto build test ERROR on linus/master] [also build test ERROR on v4.12-rc6 next-20170620] [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-ci/linux/commits/Nikolay-Borisov/percpu_counter-Rename

Re: [PATCH v2] mm: Allow slab_nomerge to be set at build time

2017-06-20 Thread Randy Dunlap
On 06/20/2017 04:29 PM, Kees Cook wrote: > On Tue, Jun 20, 2017 at 4:16 PM, Randy Dunlap wrote: >> On 06/20/2017 04:09 PM, Kees Cook wrote: >>> Some hardened environments want to build kernels with slab_nomerge >>> already set (so that they do not depend on remembering to set the kernel >>> comman

linux-next: manual merge of the file-locks tree with the uuid tree

2017-06-20 Thread Stephen Rothwell
Hi Jeff, Today's linux-next merge of the file-locks tree got a conflict in: include/linux/fs.h between commit: 85787090a21e ("fs: switch ->s_uuid to uuid_t") from the uuid tree and commit: 7356fd927059 ("fs: new infrastructure for writeback error handling and reporting") from the file

Re: [RFC v2 12/12]selftest: Updated protection key selftest

2017-06-20 Thread Ram Pai
On Tue, Jun 20, 2017 at 11:56:04AM +0530, Anshuman Khandual wrote: > On 06/17/2017 09:22 AM, Ram Pai wrote: > > Added test support for PowerPC implementation off protection keys. > > > > Signed-off-by: Ram Pai > > First of all, there are a lot of instances where we use *pkru* > named functions o

Re: [PATCH] kernel/watchdog: fix spurious hard lockups

2017-06-20 Thread Prarit Bhargava
On 06/20/2017 07:00 PM, Andi Kleen wrote: > On Tue, Jun 20, 2017 at 06:34:23PM -0400, Prarit Bhargava wrote: >> >> >> On 06/20/2017 05:33 PM, kan.li...@intel.com wrote: >>> From: Kan Liang >>> >>> Some users reported spurious NMI watchdog timeouts. >>> >>> We now have more and more systems where

Re: [PATCH] random: warn when kernel uses unseeded randomness

2017-06-20 Thread Kees Cook
On Tue, Jun 20, 2017 at 5:03 PM, Jason A. Donenfeld wrote: > This enables an important dmesg notification about when drivers have > used the crng without it being seeded first. Prior, these errors would > occur silently, and so there hasn't been a great way of diagnosing these > types of bugs for

Re: [PATCH v3 0/4] kmod: help make deterministic

2017-06-20 Thread Kees Cook
On Tue, Jun 20, 2017 at 1:56 PM, Luis R. Rodriguez wrote: > On Fri, May 26, 2017 at 02:12:24PM -0700, Luis R. Rodriguez wrote: >> This v3 nukes the proc sysctl interface in favor for just letting userspace >> just check kernel revision. Prior to whenever this is merged userspace should >> try to a

linux-next: build warning after merge of the file-locks tree

2017-06-20 Thread Stephen Rothwell
Hi Jeff, After merging the file-locks tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: mm/page-writeback.c: In function 'write_one_page': mm/page-writeback.c:2380:15: warning: unused variable 'ret2' [-Wunused-variable] int ret = 0, ret2; ^ Introduce

linux-next: build warning after merge of the file-locks tree

2017-06-20 Thread Stephen Rothwell
Hi Jeff, After merging the file-locks tree, today's linux-next build (powerpc ppc64_defconfig) produced this warning: fs/jfs/jfs_metapage.c: In function 'force_metapage': fs/jfs/jfs_metapage.c:714:2: warning: ignoring return value of 'write_one_page', declared with attribute warn_unused_result [

Re: [PATCH 2/6] drivers base/arch_topology: frequency-invariant load-tracking support

2017-06-20 Thread Saravana Kannan
On 06/19/2017 11:17 PM, Viresh Kumar wrote: On Thu, Jun 8, 2017 at 1:25 PM, Dietmar Eggemann wrote: diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c static int __init register_cpufreq_notifier(void) { + int ret; + /* * on ACPI-based syste

Re: [PATCH 1/2] drm/rockchip: add const to drm_encoder_helper_funcs structures

2017-06-20 Thread Mark yao
On 2017年06月20日 21:07, Bhumika Goyal wrote: Add const to drm_encoder_helper_funcs structures as they are only passed as an argument to the function drm_encoder_helper_add and this argument is of type const. So, add const to these structures. Also, fix line over 80 characters warning while adding c

Re: [PATCH v9 1/5] firmware: add extensible driver data params

2017-06-20 Thread AKASHI Takahiro
On Tue, Jun 20, 2017 at 07:22:19PM +0200, Luis R. Rodriguez wrote: > On Tue, Jun 20, 2017 at 09:27:45AM -0700, Vikram Mulukutla wrote: > > > > perhaps a light > > internal rework inside firmware_class might be more suitable towards the > > extensibility goal while keeping driver API usage as simpl

Re: [PATCH] drivers/fsi: fix fsi_slave_mode prototype

2017-06-20 Thread Jeremy Kerr
Hi Arnd, > gcc warns about the return type of this function: > > drivers/fsi/fsi-core.c:535:8: error: type qualifiers ignored on function > return type [-Werror=ignored-qualifiers] > > This removes the 'const' attribute, as suggested by the warning. Acked-by: Jeremy Kerr Cheers, Jeremy

Re: [PATCH v2] perf: libdw support for powerpc [ping]

2017-06-20 Thread Arnaldo Carvalho de Melo
Em Thu, Jun 15, 2017 at 01:16:32PM +0200, Mark Wielaard escreveu: > On Thu, 2017-06-15 at 10:46 +0200, Milian Wolff wrote: > > Just a quick question: Have you guys applied my recent patch: > > > > commit 5ea0416f51cc93436bbe497c62ab49fd9cb245b6 > > Author: Milian Wolff > > Date: Thu Jun 1 23:00

[PATCH 4/4] sparc64: Cleanup hugepage table walk functions

2017-06-20 Thread Nitin Gupta
Flatten out nested code structure in huge_pte_offset() and huge_pte_alloc(). Signed-off-by: Nitin Gupta --- arch/sparc/mm/hugetlbpage.c | 54 + 1 file changed, 20 insertions(+), 34 deletions(-) diff --git a/arch/sparc/mm/hugetlbpage.c b/arch/sparc/mm/

Re: [PATCH v2] perf: libdw support for powerpc [ping]

2017-06-20 Thread Arnaldo Carvalho de Melo
Em Thu, Jun 15, 2017 at 10:46:16AM +0200, Milian Wolff escreveu: > On Tuesday, June 13, 2017 5:55:09 PM CEST Ravi Bangoria wrote: > Just a quick question: Have you guys applied my recent patch: > commit 5ea0416f51cc93436bbe497c62ab49fd9cb245b6 > Author: Milian Wolff > Date: Thu Jun 1 23:00:21

[PATCH 1/4] sparc64: Add 16GB hugepage support

2017-06-20 Thread Nitin Gupta
Adds support for 16GB hugepage size. To use this page size use kernel parameters as: default_hugepagesz=16G hugepagesz=16G hugepages=10 Testing: Tested with the stream benchmark which allocates 48G of arrays backed by 16G hugepages and does RW operation on them in parallel. Orabug: 25362942 Si

[PATCH 2/4] sparc64: Support huge PUD case in get_user_pages

2017-06-20 Thread Nitin Gupta
get_user_pages() is used to do direct IO. It already handles the case where the address range is backed by PMD huge pages. This patch now adds the case where the range could be backed by PUD huge pages. Signed-off-by: Nitin Gupta --- arch/sparc/include/asm/pgtable_64.h | 15 ++-- arch/sp

[PATCH 3/4] sparc64: Fix gup_huge_pmd

2017-06-20 Thread Nitin Gupta
The function assumes that each PMD points to head of a huge page. This is not correct as a PMD can point to start of any 8M region with a, say 256M, hugepage. The fix ensures that it points to the correct head of any PMD huge page. Signed-off-by: Nitin Gupta --- arch/sparc/mm/gup.c | 2 ++ 1 fil

RE: [PATCH v2 3/3] ACPI / sleep: EC-based wakeup from suspend-to-idle on recent Dell systems

2017-06-20 Thread Zheng, Lv
Hi, > From: rjwyso...@gmail.com [mailto:rjwyso...@gmail.com] On Behalf Of Rafael J. > Wysocki > Subject: Re: [PATCH v2 3/3] ACPI / sleep: EC-based wakeup from > suspend-to-idle on recent Dell systems > > On Tue, Jun 20, 2017 at 1:37 AM, Zheng, Lv wrote: > > Hi, Rafael > > > >> From: linux-acpi

RE: [PATCH v2 3/3] ACPI / sleep: EC-based wakeup from suspend-to-idle on recent Dell systems

2017-06-20 Thread Zheng, Lv
Hi, Rafael > From: linux-acpi-ow...@vger.kernel.org > [mailto:linux-acpi-ow...@vger.kernel.org] On Behalf Of Rafael J. > Wysocki > Subject: Re: [PATCH v2 3/3] ACPI / sleep: EC-based wakeup from > suspend-to-idle on recent Dell systems > > On Tue, Jun 20, 2017 at 2:07 AM, Linus Torvalds > wrote

Re: [PATCH] percpu_counter: Rename __percpu_counter_add to percpu_counter_add_batch

2017-06-20 Thread Darrick J. Wong
On Tue, Jun 20, 2017 at 03:47:59PM -0400, Tejun Heo wrote: > From 104b4e5139fe384431ac11c3b8a6cf4a529edf4a Mon Sep 17 00:00:00 2001 > From: Nikolay Borisov > Date: Tue, 20 Jun 2017 21:01:20 +0300 > > Currently, percpu_counter_add is a wrapper around __percpu_counter_add > which is preempt safe du

RE: [PATCH v0] crypto: virtio - Refacotor virtio_crypto driver for new virito crypto services

2017-06-20 Thread Zeng, Xin
Ping... any comments? Thanks < -Original Message- < From: Zeng, Xin < Sent: Wednesday, June 7, 2017 2:18 PM < To: linux-kernel@vger.kernel.org; linux-crypto-ow...@vger.kernel.org; < virtio-...@lists.oasis-open.org < Cc: arei.gong...@huawei.com; Zeng, Xin < Subject: [PATCH v0] crypto: vir

Re: [PATCH] liquidio: stop using huge static buffer, save 4096k in .data

2017-06-20 Thread David Miller
From: Felix Manlunas Date: Tue, 20 Jun 2017 13:51:25 -0700 > From: Derek Chickles > Date: Tue, 20 Jun 2017 13:15:34 -0700 > >> > From: David Miller [mailto:da...@davemloft.net] >> > Sent: Tuesday, June 20, 2017 12:22 PM >> > >> > From: Denys Vlasenko >> > Date: Mon, 19 Jun 2017 21:50:52 +0200

Re: [PATCH v4] irqchip/gicv3-its: Avoid memory over allocation for ITEs

2017-06-20 Thread Shanker Donthineni
Hi Marc, On 05/06/2017 06:25 AM, Marc Zyngier wrote: > On Fri, May 05 2017 at 11:04:22 pm BST, Shanker Donthineni > wrote: >> Hi Marc, >> >> >> On 05/02/2017 11:16 AM, Marc Zyngier wrote: >>> On Sun, Apr 30 2017 at 3:36:15 pm BST, Shanker Donthineni >>> wrote: We are always allocating ex

Re: [RFC PATCH 2/2] mm, fs: daxfile, an interface for byte-addressable updates to pmem

2017-06-20 Thread Darrick J. Wong
On Wed, Jun 21, 2017 at 09:53:46AM +1000, Dave Chinner wrote: > On Tue, Jun 20, 2017 at 09:17:36AM -0700, Dan Williams wrote: > > On Tue, Jun 20, 2017 at 1:49 AM, Christoph Hellwig wrote: > > > [stripped giant fullquotes] > > > > > > On Mon, Jun 19, 2017 at 10:53:12PM -0700, Andy Lutomirski wrote:

linux-next: build failure after merge of the v4l-dvb tree

2017-06-20 Thread Stephen Rothwell
HFI files") 703528005e58 ("[media] media: venus: enable building of Venus video driver") I have merged the 4vl-dvb tree from next-20170620 for today. -- Cheers, Stephen Rothwell

Re: [PATCH 1/1] iommu/arm-smmu-v3: replace writel with writel_relaxed in queue_inc_prod

2017-06-20 Thread Leizhen (ThunderTown)
On 2017/6/20 19:35, Robin Murphy wrote: > On 20/06/17 12:04, Zhen Lei wrote: >> This function is protected by spinlock, and the latter will do memory >> barrier implicitly. So that we can safely use writel_relaxed. In fact, the >> dmb operation will lengthen the time protected by lock, which indi

Re: [PATCH v2] perf: libdw support for powerpc [ping]

2017-06-20 Thread Mark Wielaard
On Tue, Jun 20, 2017 at 10:06:35PM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Jun 15, 2017 at 01:16:32PM +0200, Mark Wielaard escreveu: > > On Thu, 2017-06-15 at 10:46 +0200, Milian Wolff wrote: > > > Just a quick question: Have you guys applied my recent patch: > > > > > > commit 5ea0416f51

Re: [PATCH] powerpc: dts: use #include "..." to include local DT

2017-06-20 Thread Masahiro Yamada
2017-06-14 15:45 GMT+09:00 Michael Ellerman : > Masahiro Yamada writes: >> 2017-06-13 19:21 GMT+09:00 Michael Ellerman : >>> Masahiro Yamada writes: (+Anatolij Gustschin ) Ping. I am not 100% sure who is responsible for this, but somebody, could take a look at this p

Re: [RFC PATCH 2/2] mm, fs: daxfile, an interface for byte-addressable updates to pmem

2017-06-20 Thread Dave Chinner
On Tue, Jun 20, 2017 at 09:14:24AM -0700, Andy Lutomirski wrote: > On Tue, Jun 20, 2017 at 3:11 AM, Dave Chinner wrote: > > On Mon, Jun 19, 2017 at 10:53:12PM -0700, Andy Lutomirski wrote: > >> On Mon, Jun 19, 2017 at 5:46 PM, Dave Chinner wrote: > >> > On Mon, Jun 19, 2017 at 08:22:10AM -0700, A

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

2017-06-20 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: net/core/rtnetlink.c between commit: db833d40ad32 ("rtnetlink: add IFLA_GROUP to ifla_policy") from the net tree and commit: 3d3ea5af5c0b ("rtnl: Add support for netdev event to link messages") from the net-next t

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

2017-06-20 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: drivers/net/wireless/marvell/mwifiex/pcie.c between commit: c336cc0ee4eb ("PCI: Split ->reset_notify() method into ->reset_prepare() and ->reset_done()") from the pci tree and commit: 68efd0386988 ("mwifiex: pcie:

Re: [PATCH 3/3] arm64: dts: register Hi3660's thermal sensor

2017-06-20 Thread Guodong Xu
con/hi3660.dtsi >> @@ -156,5 +156,12 @@ >> >> >> i am wondering which tree this patch should be applied to. Actually Olof >> Johansson o...@lixom.net <mailto:o...@lixom.net> just merged hi3660 dts into >> his tree. You should better rebase you dts patch

Re: [PATCH NET] net/hns:bugfix of ethtool -t phy self_test

2017-06-20 Thread l00371289
Hi, Andrew On 2017/6/20 21:27, Andrew Lunn wrote: > On Tue, Jun 20, 2017 at 11:05:54AM +0800, l00371289 wrote: >> hi, Florian >> >> On 2017/6/20 5:00, Florian Fainelli wrote: >>> On 06/16/2017 02:24 AM, Lin Yun Sheng wrote: This patch fixes the phy loopback self_test failed issue. when M

Re: [PATCH NET] net/hns:bugfix of ethtool -t phy self_test

2017-06-20 Thread l00371289
Hi, Andrew On 2017/6/20 21:28, Andrew Lunn wrote: The question really is, why is not this properly integrated into the PHY driver and PHYLIB such that the only thing the Ethernet MAC driver has to call is a function of the PHY driver putting it in self-test? >>> >>> This whole drive

[PATCH] PATCH v3 Convert multiple netdev_info messages to netdev_dbg

2017-06-20 Thread Michael J Dilmore
The bond_options.c file contains multiple netdev_info messages that clutter kernel output. This patches replaces these with netdev_dbg messages and adds a netdev_dbg for packets for slave. Signed-off-by: Michael J Dilmore Suggested-by: Joe Perches --- drivers/net/bonding/bond_options.c | 54 +++

Re: [PATCH 1/3] dt-bindings: Document the hi3660 thermal sensor bindings

2017-06-20 Thread Wangtao (Kevin, Kirin)
e( 2017/6/20 18:27, Wei Xu ei: Hi Tao, On 2017/6/20 4:40, Tao Wang wrote: This adds documentation of device tree bindings for the thermal sensor controller of hi3660 SoC. Signed-off-by: Tao Wang --- .../devicetree/bindings/thermal/hi3660-thermal.txt | 17 + 1 file

Re: [PATCH] mm/hwpoison: Clear PRESENT bit for kernel 1:1 mappings of poison pages

2017-06-20 Thread Naoya Horiguchi
(drop stable from CC) On Fri, Jun 16, 2017 at 12:02:00PM -0700, Luck, Tony wrote: > From: Tony Luck > > Speculative processor accesses may reference any memory that has a > valid page table entry. While a speculative access won't generate > a machine check, it will log the error in a machine ch

linux-next: build failure after merge of the spi-nor tree

2017-06-20 Thread Stephen Rothwell
this function) size == SZ_128M) { ^ Caused by commit bb3a588d2151 ("mtd: spi-nor: aspeed: configure chip window on AHB bus") Forgot to include linux/sizes.h. I have used the spi-nor tree from next-20170620 for today. -- Cheers, Stephen Rothwell

Re: [RFC PATCH 2/2] mm, fs: daxfile, an interface for byte-addressable updates to pmem

2017-06-20 Thread Dave Chinner
On Tue, Jun 20, 2017 at 06:24:03PM -0700, Darrick J. Wong wrote: > On Wed, Jun 21, 2017 at 09:53:46AM +1000, Dave Chinner wrote: > > On Tue, Jun 20, 2017 at 09:17:36AM -0700, Dan Williams wrote: > > > An immutable-extent DAX-file and a reflink-capable DAX-file are not > > > mutually exclusive, > >

Re: [PATCH 2/3] thermal: hisilicon: add thermal sensor driver for Hi3660

2017-06-20 Thread Wangtao (Kevin, Kirin)
e( 2017/6/20 18:31, Wei Xu ei: Hi Tao Wang, On 2017/6/20 4:40, Tao Wang wrote: This patch adds the support for thermal sensor of Hi3660 SoC. this will register sensors for thermal framework and use device tree to bind cooling device. Signed-off-by: Tao Wang Signed-off-by: Leo Yan ---

Re: [PATCH 2/3] thermal: hisilicon: add thermal sensor driver for Hi3660

2017-06-20 Thread Leo Yan
Hi Rui, Eduardo, On Tue, Jun 20, 2017 at 11:40:34AM +0800, Tao Wang wrote: [...] > diff --git a/drivers/thermal/hi3660_thermal.c > b/drivers/thermal/hi3660_thermal.c > new file mode 100644 > index 000..a538721 > --- /dev/null > +++ b/drivers/thermal/hi3660_thermal.c > @@ -0,0 +1,198 @@ > +/

<    5   6   7   8   9   10   11   12   >