[PATCH] dm flakey: Document "error_writes" feature

2018-10-09 Thread Nikolay Borisov
Commit ef548c551e72 ("dm flakey: introduce "error_writes" feature") added the ability to dm flakey to error out writes in contrast to silently dropping it with 'drop_writes'. Unfortunately this feature is not currently documented and one has to be either familiar with the source code of dm flakey o

Re: [PATCH v2] Documentation/arm64: HugeTLB page implementation

2018-10-09 Thread Punit Agrawal
Randy Dunlap writes: > On 10/8/18 3:03 AM, Punit Agrawal wrote: >> Arm v8 architecture supports multiple page sizes - 4k, 16k and >> 64k. Based on the active page size, the Linux port supports >> corresponding hugepage sizes at PMD and PUD(4k only) levels. >> >> In addition, the architecture als

[PATCH v4 0/3] x86: make rsdp address accessible via boot params

2018-10-09 Thread Juergen Gross
In the non-EFI boot path the ACPI RSDP table is currently found via either EBDA or by searching through low memory for the RSDP magic. This requires the RSDP to be located in the first 1MB of physical memory. Xen PVH guests, however, get the RSDP address via the start of day information block. In

[PATCH v4 1/3] x86/xen: fix boot loader version reported for pvh guests

2018-10-09 Thread Juergen Gross
The boot loader version reported via sysfs is wrong in case of the kernel being booted via the Xen PVH boot entry. it should be 2.12 (0x020c), but it is reported to be 2.18 (0x0212). As the current way to set the version is error prone use the more readable variant (2 << 8) | 12. Cc: # 4.12 Sign

[PATCH v4 3/3] x86/acpi: take rsdp address for boot params if available

2018-10-09 Thread Juergen Gross
In case the rsdp address in struct boot_params is specified don't try to find the table by searching, but take the address directly as set by the boot loader. Signed-off-by: Juergen Gross --- V3: use a generic retrieval function with a __weak annotated default function (Ingo Molnar) V4: chec

[PATCH v4 2/3] x86/boot: add acpi rsdp address to setup_header

2018-10-09 Thread Juergen Gross
Xen PVH guests receive the address of the RSDP table from Xen. In order to support booting a Xen PVH guest via Grub2 using the standard x86 boot entry we need a way for Grub2 to pass the RSDP address to the kernel. For this purpose expand the struct setup_header to hold the physical address of the

Re: [PATCH v2] Documentation/arm64: HugeTLB page implementation

2018-10-09 Thread Will Deacon
On Tue, Oct 09, 2018 at 11:02:01AM +0100, Punit Agrawal wrote: > Randy Dunlap writes: > > > On 10/8/18 3:03 AM, Punit Agrawal wrote: > >> Arm v8 architecture supports multiple page sizes - 4k, 16k and > >> 64k. Based on the active page size, the Linux port supports > >> corresponding hugepage siz

Re: [PATCH v4 3/3] x86/acpi: take rsdp address for boot params if available

2018-10-09 Thread Boris Ostrovsky
On 10/9/18 6:54 AM, Juergen Gross wrote: > + > +u64 x86_default_get_root_pointer(void) > +{ > + return boot_params.hdr.acpi_rsdp_addr; > +} Should we then update init_pvh_bootparams() with     pvh_bootparams.hdr.acpi_rsdp_addr = pvh_start_info.rsdp_paddr; (and drop x86_init.acpi.get_root_po

Re: [PATCH v4 3/3] x86/acpi: take rsdp address for boot params if available

2018-10-09 Thread Juergen Gross
On 09/10/2018 15:22, Boris Ostrovsky wrote: > On 10/9/18 6:54 AM, Juergen Gross wrote: >> + >> +u64 x86_default_get_root_pointer(void) >> +{ >> +return boot_params.hdr.acpi_rsdp_addr; >> +} > > > Should we then update init_pvh_bootparams() with > >     pvh_bootparams.hdr.acpi_rsdp_addr = pvh

Re: [PATCH 1/3] lib/vsprintf: Prepare for more general use of ptr_to_id()

2018-10-09 Thread Petr Mladek
On Mon 2018-10-08 16:37:29, Geert Uytterhoeven wrote: > Hi Andy, > > On Mon, Oct 8, 2018 at 4:25 PM Andy Shevchenko > wrote: > > On Mon, Oct 08, 2018 at 01:05:02PM +0200, Geert Uytterhoeven wrote: > > > - Make the ptr argument const, to avoid adding casts in future > > > callers, > > > > >

Re: [PATCH 2/3] lib/vsprintf: Hash legacy clock addresses

2018-10-09 Thread Petr Mladek
On Mon 2018-10-08 13:05:03, Geert Uytterhoeven wrote: > On platforms using the Common Clock Framework, "%pC" prints the clock's > name. On legacy platforms, it prints the unhashed clock's address, > potentially leaking sensitive information regarding the kernel layout in > memory. > > Avoid this l

Re: [PATCH 1/3] lib/vsprintf: Prepare for more general use of ptr_to_id()

2018-10-09 Thread Geert Uytterhoeven
Hi Petr, On Tue, Oct 9, 2018 at 3:56 PM Petr Mladek wrote: > On Mon 2018-10-08 16:37:29, Geert Uytterhoeven wrote: > > On Mon, Oct 8, 2018 at 4:25 PM Andy Shevchenko > > wrote: > > > On Mon, Oct 08, 2018 at 01:05:02PM +0200, Geert Uytterhoeven wrote: > > > > - Make the ptr argument const, to a

Re: [PATCH 3/3] lib/vsprintf: Hash printed address for netdev bits fallback

2018-10-09 Thread Petr Mladek
On Mon 2018-10-08 13:05:04, Geert Uytterhoeven wrote: > The handler for "%pN" falls back to printing the raw pointer value when > using a different format than the (sole supported) special format > "%pNF", potentially leaking sensitive information regarding the kernel > layout in memory. > > Avoid

Re: [PATCH] security: fix LSM description location

2018-10-09 Thread James Morris
On Mon, 8 Oct 2018, Randy Dunlap wrote: > From: Randy Dunlap > > Fix Documentation location reference for where LSM descriptions should > be placed. > > Suggested-by: Kees Cook > Signed-off-by: Randy Dunlap > Cc: James Morris > Cc: "Serge E. Hallyn" > Cc: linux-security-mod...@vger.kernel.o

Re: [RFC PATCH v4 21/27] x86/cet/shstk: ELF header parsing of Shadow Stack

2018-10-09 Thread Yu-cheng Yu
On Thu, 2018-10-04 at 01:27 +0200, Eugene Syromiatnikov wrote: > On Fri, Sep 21, 2018 at 08:03:45AM -0700, Yu-cheng Yu wrote: [...] > > diff --git a/arch/x86/include/asm/elf.h b/arch/x86/include/asm/elf.h > > index 0d157d2a1e2a..5b5f169c5c07 100644 > > --- a/arch/x86/include/asm/elf.h > > +++ b/a

Re: [PATCH] docs: rcu: Make reader aware of rcu_dereference_protected

2018-10-09 Thread Paul E. McKenney
On Mon, Oct 08, 2018 at 06:33:41PM -0700, Joel Fernandes (Google) wrote: > whatisRCU says rcu_dereference cannot be used outside of rcu read lock > protected sections. Its better to mention rcu_dereference_protected when > it says that, so that the new reader is aware of this API and is not led > t

Re: [PATCH] docs: rcu: Make reader aware of rcu_dereference_protected

2018-10-09 Thread Joel Fernandes
On Tue, Oct 09, 2018 at 08:09:06PM -0700, Paul E. McKenney wrote: > On Mon, Oct 08, 2018 at 06:33:41PM -0700, Joel Fernandes (Google) wrote: > > whatisRCU says rcu_dereference cannot be used outside of rcu read lock > > protected sections. Its better to mention rcu_dereference_protected when > > it

Re: [PATCH v4 3/3] x86/acpi: take rsdp address for boot params if available

2018-10-09 Thread kbuild test robot
Hi Juergen, I love your patch! Yet something to improve: [auto build test ERROR on tip/x86/core] [also build test ERROR on v4.19-rc7 next-20181009] [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

[PATCH 0/2] hwmon: Add operating mode support for core and ina3221

2018-10-09 Thread Nicolin Chen
Add operating mode support in the core and ina3221. Nicolin Chen (2): hwmon: (core) Add hwmon_mode structure and mode sysfs node hwmon: (ina3221) Add operating mode support Documentation/hwmon/sysfs-interface | 15 + drivers/hwmon/hwmon.c | 87 ++---

[PATCH 2/2] hwmon: (ina3221) Add operating mode support

2018-10-09 Thread Nicolin Chen
The hwmon core now has a new optional mode interface. So this patch just implements this mode support so that user space can check and configure via sysfs node its operating modes: power-down, one-shot, and continuous modes. Signed-off-by: Nicolin Chen --- drivers/hwmon/ina3221.c | 64 ++

[PATCH 1/2] hwmon: (core) Add hwmon_mode structure and mode sysfs node

2018-10-09 Thread Nicolin Chen
There are a few hwmon sensors support different operating modes, for example, one-shot and continuous modes. So it's probably not a bad idea to abstract a mode sysfs node as a common feature in the hwmon core. Right beside the hwmon device name, this patch adds a new sysfs attribute named "mode" a

[PATCH v5 0/3] x86: make rsdp address accessible via boot params

2018-10-09 Thread Juergen Gross
In the non-EFI boot path the ACPI RSDP table is currently found via either EBDA or by searching through low memory for the RSDP magic. This requires the RSDP to be located in the first 1MB of physical memory. Xen PVH guests, however, get the RSDP address via the start of day information block. In

[PATCH v5 2/3] x86/boot: add acpi rsdp address to setup_header

2018-10-09 Thread Juergen Gross
Xen PVH guests receive the address of the RSDP table from Xen. In order to support booting a Xen PVH guest via Grub2 using the standard x86 boot entry we need a way for Grub2 to pass the RSDP address to the kernel. For this purpose expand the struct setup_header to hold the physical address of the

[PATCH v5 1/3] x86/xen: fix boot loader version reported for pvh guests

2018-10-09 Thread Juergen Gross
The boot loader version reported via sysfs is wrong in case of the kernel being booted via the Xen PVH boot entry. it should be 2.12 (0x020c), but it is reported to be 2.18 (0x0212). As the current way to set the version is error prone use the more readable variant (2 << 8) | 12. Cc: # 4.12 Sign

[PATCH v5 3/3] x86/acpi: take rsdp address for boot params if available

2018-10-09 Thread Juergen Gross
In case the rsdp address in struct boot_params is specified don't try to find the table by searching, but take the address directly as set by the boot loader. Signed-off-by: Juergen Gross --- V3: use a generic retrieval function with a __weak annotated default function (Ingo Molnar) V4: chec

Re: [PATCH v5 0/3] x86: make rsdp address accessible via boot params

2018-10-09 Thread Ingo Molnar
* Juergen Gross wrote: > In the non-EFI boot path the ACPI RSDP table is currently found via > either EBDA or by searching through low memory for the RSDP magic. > This requires the RSDP to be located in the first 1MB of physical > memory. Xen PVH guests, however, get the RSDP address via the s

Re: [PATCH v5 0/3] x86: make rsdp address accessible via boot params

2018-10-09 Thread Juergen Gross
On 10/10/2018 08:23, Ingo Molnar wrote: > > * Juergen Gross wrote: > >> In the non-EFI boot path the ACPI RSDP table is currently found via >> either EBDA or by searching through low memory for the RSDP magic. >> This requires the RSDP to be located in the first 1MB of physical >> memory. Xen PV