[PATCH 0/5] tools build: Make FEATURE_DUMP include makefile

2015-12-23 Thread Jiri Olsa
hi, Changing the contents of the FEATURE-DUMP file, so it looks like: feature-backtrace=1 feature-dwarf=0 feature-fortify-source=1 feature-sync-compare-and-swap=0 This way it could get included in sub projects, so they won't be forced to redo features detection. changing bpf libr

[PATCH 3/5] tools build feature: Introduce feature_ass macro

2015-12-23 Thread Jiri Olsa
The feature_ass macro generates feature value assignment for name, like: $(call feature_ass,dwarf) == feature-dwarf=1 This will be used more in following patches. Link: http://lkml.kernel.org/n/tip-jst8x3nv43w0h8afu9mfs...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/build/Makefile.feat

[PATCH 4/5] tools build feature: Use value assignment form for FEATURE-DUMP file

2015-12-23 Thread Jiri Olsa
Changing the contents of the FEATURE-DUMP file, so it looks like: feature-backtrace=1 feature-dwarf=0 feature-fortify-source=1 feature-sync-compare-and-swap=0 This way it could get included in sub projects, so they won't be forced to redo features detection. Also now storing the complete

[PATCH 1/5] tools build feature: Fix feature_check_display_code typo

2015-12-23 Thread Jiri Olsa
This function is cursed.. ;-) Link: http://lkml.kernel.org/n/tip-8p5nvjgaypgsu5ycfjmkr...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/build/Makefile.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build/Makefile.feature b/tools/build/Makefile.feature index

[PATCH 2/5] tools build feature: Move dwarf post unwind choice output into perf

2015-12-23 Thread Jiri Olsa
We decide what dwarf unwind to choose way after Makefile.feature makefile is included. The $(dwarf-post-unwind) is not even set at that time. For the same reason it was never included in FEATURE-DUMP file. Moving it into perf VF=1 verbose display. $ make VF=1 BUILD: Doing 'make -j4' paral

[PATCH 0/5] block-LDM: Improvements for exception handling

2015-12-23 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 23 Dec 2015 17:32:12 +0100 Several update suggestions were taken into account from static source code analysis. Markus Elfring (5): One function call less in ldm_validate_tocblocks() after error detection Delete extra log messages for memory allocation failure

[PATCH 1/5] block-LDM: One function call less in ldm_validate_tocblocks() after error detection

2015-12-23 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 22 Dec 2015 22:32:07 +0100 This issue was detected by using the Coccinelle software. Let us return directly if a memory allocation failed. Signed-off-by: Markus Elfring --- block/partitions/ldm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH] futex: Prevent pi_state from double freeing in case of error

2015-12-23 Thread Thomas Gleixner
Bhuvanesh, On Wed, 23 Dec 2015, Bhuvanesh wrote: > Apologies for not putting the backtrace earlier. No problem. Let's look at it. > During our regression test of the kernel version 3.14, generated a > warning in futex code and resulted in crash with the backtrace given > below: > > WARNING:

[PATCH 2/5] block-LDM: Delete extra log messages for memory allocation failures

2015-12-23 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 23 Dec 2015 13:21:01 +0100 A failed call of the kmalloc() function can generate appropriate information about insufficient memory already. Thus remove unnecessary log messages for such failures. Suggested-by: Julia Lawall Signed-off-by: Markus Elfring --- block

[PATCH 3/5] block-LDM: One function call less in ldm_partition() after error detection

2015-12-23 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 23 Dec 2015 13:32:51 +0100 Let us return directly if a memory allocation failed. Signed-off-by: Markus Elfring --- block/partitions/ldm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/partitions/ldm.c b/block/partitions/ldm.c index 85

[PATCH 4/5] block-LDM: Less function calls in ldm_validate_privheads() after error detection

2015-12-23 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 23 Dec 2015 14:31:01 +0100 The kfree() function was called by the ldm_validate_privheads() function during error handling even if the passed variable "ph" contained a null pointer. * Corresponding implementation details could be improved by adjustments for jump

[PATCH 5/5] block-LDM: Fine-tuning for the source code formatting

2015-12-23 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 23 Dec 2015 17:23:25 +0100 1. Remove some space characters and add a few according to the Linux coding style convention. 2. Reformat a bit of source code also for one switch statement. 3. Apply a few more recommendations from the script "checkpatch.pl". Signe

Re: [PATCH v3] i2c: designware: Do not require clock when SSCN and FFCN are provided

2015-12-23 Thread Andy Shevchenko
On Tue, 2015-12-22 at 15:35 -0600, Suravee Suthikulpanit wrote: > The current driver uses input clock source frequency to calculate > values for [SS|FS]_[HC|LC] registers. However, when booting ACPI, we > do not > currently have a good way to provide the frequency information. > Instead, we can lev

[PATCH net] sctp: use GFP_USER for user-controlled kmalloc

2015-12-23 Thread Marcelo Ricardo Leitner
Commit cacc06215271 ("sctp: use GFP_USER for user-controlled kmalloc") missed two other spots. For connectx, as it's more likely to be used by kernel users of the API, it detects if GFP_USER should be used or not. Fixes: cacc06215271 ("sctp: use GFP_USER for user-controlled kmalloc") Reported-by:

Re: [PATCH v6 12/20] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2015-12-23 Thread Yury Norov
On Mon, Dec 21, 2015 at 11:31:57PM +0100, Arnd Bergmann wrote: > On Tuesday 15 December 2015, Yury Norov wrote: > > + > > +#define compat_sys_open_by_handle_at sys_open_by_handle_at > > +#define compat_sys_openat sys_openat > > + > > One more thing I just remembered: I think we want

[PATCH] DT: i2c: Add Epson RX8010 to list of trivial devices

2015-12-23 Thread Akshay Bhat
This adds devicetree documentation for the bindings of rtc-rx8010 driver. Signed-off-by: Akshay Bhat --- Documentation/devicetree/bindings/i2c/trivial-devices.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/i2c/trivial-devices.txt b/Documentation/device

Re: [PATCH v2] um: Fix pointer cast

2015-12-23 Thread Richard Weinberger
Am 23.12.2015 um 14:17 schrieb Mickaël Salaün: > Fix a pointer cast typo introduced in v4.4-rc5 especially visible for > the i386 subarchitecture where it results in a kernel crash. > > Fixes: 8090bfd2bb9a ("um: Fix fpstate handling") > Signed-off-by: Mickaël Salaün > Cc: Jeff Dike > Cc: Richard

Re: [Bugfix v2 4/5] x86/irq: Fix a race condition between vector assigning and cleanup

2015-12-23 Thread Borislav Petkov
On Wed, Dec 23, 2015 at 10:13:29PM +0800, Jiang Liu wrote: > Joe Lawrence reported an use after release > issue related to x86 IRQ management code. Please refer to following > link for more information: > https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1026840.html Please use link re

Re: [PATCH v4 1/3] ACPI: amba bus probing support

2015-12-23 Thread Andy Shevchenko
On Wed, Dec 23, 2015 at 4:19 PM, Aleksey Makarov wrote: > From: Graeme Gregory > > On ARM64 some devices use the AMBA device and not the platform bus for > probing so add support for this. Uses a dummy clock for apb_pclk as ACPI > does not have a suitable clock representation and to keep the core

Re: [f2fs-dev] [PATCH 2/4 v2] f2fs: avoid unnecessary f2fs_gc for dir operations

2015-12-23 Thread Jaegeuk Kim
Chang log from v1: - add more cases >From 9fea6346f5dd2992525e853e27a4fe899d122379 Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Tue, 22 Dec 2015 11:56:08 -0800 Subject: [PATCH] f2fs: avoid unnecessary f2fs_gc for dir operations The f2fs_balance_fs doesn't need to cover f2fs_new_inode or f2f

[PATCH] tty/serial: Skip 'NULL' char after console break when sysrq enabled

2015-12-23 Thread Vijay Kumar
When sysrq is triggered from console, serial driver for SUN hypervisor console receives a console break and enables the sysrq. It expects a valid sysrq char following with break. Meanwhile if driver receives 'NULL' ASCII char then it disables sysrq and sysrq handler will never be invoked. This fix

Re: [PATCH v3 0/4] Add PWM clock support for bcm2835

2015-12-23 Thread Remi Pommarel
On Sun, Dec 06, 2015 at 05:22:45PM +0100, Remi Pommarel wrote: > Hi, > > This patchset adds support for pwm clock. At boot, this clock does not have a > default parent nor a default rate set. Thus we should be able to change its > parent to get this clock working. The current clock implementation

Re: [f2fs-dev] [PATCH 3/4] f2fs: record node block allocation in dnode_of_data

2015-12-23 Thread Jaegeuk Kim
Hi Chao, On Wed, Dec 23, 2015 at 04:00:36PM +0800, Chao Yu wrote: > Hi Jaegeuk, > > > -Original Message- > > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > > Sent: Wednesday, December 23, 2015 9:00 AM > > To: linux-kernel@vger.kernel.org; linux-fsde...@vger.kernel.org; > > linux-f2fs-de.

[PATCH] DT: i2c: Add Freescale MPL3115 to trivial devices list

2015-12-23 Thread Akshay Bhat
This adds devicetree documentation for the bindings of mpl3115 driver. Signed-off-by: Akshay Bhat --- Documentation/devicetree/bindings/i2c/trivial-devices.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/i2c/trivial-devices.txt b/Documentation/devicetre

Re: [PATCH v2 0/2] Improve drm_of_component_probe() and move rockchip to use it

2015-12-23 Thread Russell King - ARM Linux
On Wed, Dec 23, 2015 at 06:20:33PM +0100, Jean-Francois Moine wrote: > On Wed, 23 Dec 2015 10:05:34 + > Liviu Dudau wrote: > > > > What was the reason to keep the "ports" node instead of the device? > > > > The function is an extract of common code sprinkled through a few DRM > > drivers, >

[PATCH v5] serial: rewrite pxa2xx-uart to use 8250_core

2015-12-23 Thread Sergei Ianovich
pxa2xx-uart was a separate uart platform driver. It was declaring the same device names and numbers as 8250 driver. As a result, it was impossible to use 8250 driver on PXA SoCs. Upon closer examination pxa2xx-uart turned out to be a clone of 8250_core driver. Workaround for Erratum #19 according

Re: [PATCH 3/4 v2] f2fs: record node block allocation in dnode_of_data

2015-12-23 Thread Jaegeuk Kim
Change log from v1: - remove redundant set - adjust memory alignment >From 60c6a898094535e850268dd77701255a37cce3d3 Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Tue, 22 Dec 2015 12:59:54 -0800 Subject: [PATCH] f2fs: record node block allocation in dnode_of_data This patch introduces record

Re: [Bugfix v2 1/5] x86/irq: Do not reuse struct apic_chip_data.old_domain as temporary buffer

2015-12-23 Thread Borislav Petkov
On Wed, Dec 23, 2015 at 10:13:26PM +0800, Jiang Liu wrote: > Function __assign_irq_vector() makes use of apic_chip_data.old_domain > as a temporary buffer, which causes trouble to rollback logic in case of > failure. So use a dedicated temporary buffer for __assign_irq_vector(). > > Signed-off-by:

Re: [f2fs-dev] [PATCH 4/4] f2fs: call f2fs_balance_fs only when node was changed

2015-12-23 Thread Jaegeuk Kim
Hi Chao, On Wed, Dec 23, 2015 at 05:46:59PM +0800, Chao Yu wrote: > Hi Jaegeuk, > > > -Original Message- > > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > > Sent: Wednesday, December 23, 2015 9:00 AM > > To: linux-kernel@vger.kernel.org; linux-fsde...@vger.kernel.org; > > linux-f2fs-de.

Re: [PATCH 4/4] f2fs: call f2fs_balance_fs only when node was changed

2015-12-23 Thread Jaegeuk Kim
Change log v2: - add dio case >From c2d16a526371954671f9c8cff5f09f9d230f7993 Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Tue, 22 Dec 2015 13:23:35 -0800 Subject: [PATCH] f2fs: call f2fs_balance_fs only when node was changed If user tries to update or read data, we don't need to call f2fs_b

[PATCH] DT: i2c: Update vendor prefix for 24c00

2015-12-23 Thread Akshay Bhat
"at" is not a valid vendor prefix, correcting the same to "atmel" Signed-off-by: Akshay Bhat --- Documentation/devicetree/bindings/i2c/trivial-devices.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/i2c/trivial-devices.txt b/Documentatio

Re: [PATCHV3 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks

2015-12-23 Thread Dan Williams
On Wed, Dec 23, 2015 at 4:58 AM, Borislav Petkov wrote: > On Tue, Dec 22, 2015 at 11:38:07AM -0800, Tony Luck wrote: >> I interpreted that comment as "stop playing with %rax in the fault >> handler ... just change the IP to point the the .fixup location" ... >> the target of the fixup being the "l

Re: [PATCH 1/8 v8.2] kernfs: Add API to generate relative kernfs path

2015-12-23 Thread Serge E. Hallyn
e minds I can update it too. Changelog 20151223: - don't allocate memory pr_cont_kernfs_path() under spinlock --- fs/kernfs/dir.c| 192 include/linux/kernfs.h |9 ++- 2 files changed, 166 insertions(+), 35 deletions(-) diff --g

Re: [PATCH 3/8 v8.2] cgroup: introduce cgroup namespaces

2015-12-23 Thread Serge E. Hallyn
Introduce the ability to create new cgroup namespace. The newly created cgroup namespace remembers the cgroup of the process at the point of creation of the cgroup namespace (referred as cgroupns-root). The main purpose of cgroup namespace is to virtualize the contents of /proc/self/cgroup file. Pr

[PATCH v6 0/7] DAX fsync/msync support

2015-12-23 Thread Ross Zwisler
orr. (Andrew) This series applies cleanly and was tested against next-20151223. A working tree can be found here: https://git.kernel.org/cgit/linux/kernel/git/zwisler/linux.git/log/?h=fsync_v6 [1]: https://lists.01.org/pipermail/linux-nvdimm/2015-December/003588.html Ross Zwisler (7): pmem:

[PATCH v6 3/7] mm: add find_get_entries_tag()

2015-12-23 Thread Ross Zwisler
Add find_get_entries_tag() to the family of functions that include find_get_entries(), find_get_pages() and find_get_pages_tag(). This is needed for DAX dirty page handling because we need a list of both page offsets and radix tree entries ('indices' and 'entries' in this function) that are marked

[PATCH v6 4/7] dax: add support for fsync/msync

2015-12-23 Thread Ross Zwisler
To properly handle fsync/msync in an efficient way DAX needs to track dirty pages so it is able to flush them durably to media on demand. The tracking of dirty pages is done via the radix tree in struct address_space. This radix tree is already used by the page writeback infrastructure for tracki

[PATCH v6 1/7] pmem: add wb_cache_pmem() to the PMEM API

2015-12-23 Thread Ross Zwisler
The function __arch_wb_cache_pmem() was already an internal implementation detail of the x86 PMEM API, but this functionality needs to be exported as part of the general PMEM API to handle the fsync/msync case for DAX mmaps. One thing worth noting is that we really do want this to be part of the P

[PATCH v6 2/7] dax: support dirty DAX entries in radix tree

2015-12-23 Thread Ross Zwisler
Add support for tracking dirty DAX entries in the struct address_space radix tree. This tree is already used for dirty page writeback, and it already supports the use of exceptional (non struct page*) entries. In order to properly track dirty DAX pages we will insert new exceptional entries into

[PATCH V4 0/4] scsi: storvsc: Properly support FC hosts

2015-12-23 Thread K. Y. Srinivasan
Properly support FC hosts. Additional cleanup patches are also included. V2: Comments from Dan Carpenter and from Johannes Thumshirn addressed. V3: Fixed build issues reported by kbuild test robot V4: Addressed comments from Hannes and James. K. Y. Srin

[PATCH v6 7/7] xfs: call dax_pfn_mkwrite() for DAX fsync/msync

2015-12-23 Thread Ross Zwisler
To properly support the new DAX fsync/msync infrastructure filesystems need to call dax_pfn_mkwrite() so that DAX can track when user pages are dirtied. Signed-off-by: Ross Zwisler --- fs/xfs/xfs_file.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fs/xfs/xfs_file.c

[PATCH V4 3/4] scsi: storvsc: Refactor the code in storvsc_channel_init()

2015-12-23 Thread K. Y. Srinivasan
The function storvsc_channel_init() repeatedly interacts with the host to extract various channel properties. Refactor this code to eliminate code repetition. Signed-off-by: K. Y. Srinivasan Reviewed-by: Long Li Reviewed-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke Tested-by: Alex Ng -

[PATCH V4 4/4] scsi: storvsc: Tighten up the interrupt path

2015-12-23 Thread K. Y. Srinivasan
On the interrupt path, we repeatedly establish the pointer to the storvsc_device. While the compiler does inline get_in_stor_device() (and other static functions) in the call chain in the interrupt path, the compiler is repeatedly inlining the call to get_in_stor_device() each time it is invoked. T

[PATCH V4 1/4] scsi: storvsc: Fix a bug in the layout of the hv_fc_wwn_packet

2015-12-23 Thread K. Y. Srinivasan
The hv_fc_wwn_packet is exchanged over vmbus. Make the definition in Linux match the Window's definition. Signed-off-by: K. Y. Srinivasan Reviewed-by: Johannes Thumshirn Reviewed-by: Long Li Reviewed-by: Hannes Reinecke Tested-by: Alex Ng --- drivers/scsi/storvsc_drv.c |5 ++--- 1 files

[PATCH V4 2/4] scsi: storvsc: Properly support Fibre Channel devices

2015-12-23 Thread K. Y. Srinivasan
For FC devices managed by this driver, atttach the appropriate transport template. This will allow us to create the appropriate sysfs files for these devices. With this we can publish the wwn for both the port and the node. Signed-off-by: K. Y. Srinivasan Reviewed-by: Long Li Tested-by: Alex Ng

[PATCH v6 6/7] ext4: call dax_pfn_mkwrite() for DAX fsync/msync

2015-12-23 Thread Ross Zwisler
To properly support the new DAX fsync/msync infrastructure filesystems need to call dax_pfn_mkwrite() so that DAX can track when user pages are dirtied. Signed-off-by: Ross Zwisler Reviewed-by: Jan Kara --- fs/ext4/file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs

[PATCH v6 5/7] ext2: call dax_pfn_mkwrite() for DAX fsync/msync

2015-12-23 Thread Ross Zwisler
To properly support the new DAX fsync/msync infrastructure filesystems need to call dax_pfn_mkwrite() so that DAX can track when user pages are dirtied. Signed-off-by: Ross Zwisler Reviewed-by: Jan Kara --- fs/ext2/file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs

Re: completion queue abstraction V2

2015-12-23 Thread Doug Ledford
On 12/07/2015 03:51 PM, Christoph Hellwig wrote: > This series adds a new RDMA core abstraction that insulated the > ULPs from the nitty gritty details of CQ polling. See the individual > patches for more details. > > Note that this series should be applied on top of my > "IB: merge struct ib_dev

Re: [PATCH v2] ARM: mm: flip priority of CONFIG_DEBUG_RODATA

2015-12-23 Thread Tony Lindgren
* Kees Cook [151202 12:31]: > The use of CONFIG_DEBUG_RODATA is generally seen as an essential part of > kernel self-protection: > http://www.openwall.com/lists/kernel-hardening/2015/11/30/13 > Additionally, its name has grown to mean things beyond just rodata. To > get ARM closer to this, we ough

Re: [PATCH v5] extcon: add Maxim MAX3355 driver

2015-12-23 Thread Sergei Shtylyov
Hello. On 12/23/2015 05:17 AM, Chanwoo Choi wrote: This patch depend on GPIOLIB configuration as following: I modified it with following diff and applied it. diff --git a/drivers/extcon/Kconfig b/drivers/extcon/Kconfig index ba4db7d..3d89e60 100644 --- a/drivers/extcon/Kconfig +++ b/drivers/ex

Re: [PATCH v2] ARM: mm: flip priority of CONFIG_DEBUG_RODATA

2015-12-23 Thread Russell King - ARM Linux
On Wed, Dec 23, 2015 at 11:51:29AM -0800, Tony Lindgren wrote: > Also all omap3 boards are now oopsing in Linux next if PM is enabled: I'm not sure that's entirely true. My LDP3430 works fine with this change in place, and that has CONFIG_PM=y. See my nightly build/boot results, which includes a

Re: [PATCH v2] ARM: mm: flip priority of CONFIG_DEBUG_RODATA

2015-12-23 Thread Russell King - ARM Linux
On Wed, Dec 02, 2015 at 12:27:25PM -0800, Kees Cook wrote: > The use of CONFIG_DEBUG_RODATA is generally seen as an essential part of > kernel self-protection: > http://www.openwall.com/lists/kernel-hardening/2015/11/30/13 > Additionally, its name has grown to mean things beyond just rodata. To > g

Re: [PATCH v2] ARM: mm: flip priority of CONFIG_DEBUG_RODATA

2015-12-23 Thread Tony Lindgren
* Russell King - ARM Linux [151223 12:01]: > On Wed, Dec 23, 2015 at 11:51:29AM -0800, Tony Lindgren wrote: > > Also all omap3 boards are now oopsing in Linux next if PM is enabled: > > I'm not sure that's entirely true. My LDP3430 works fine with this > change in place, and that has CONFIG_PM=y

Re: [PATCH v4] crypto: KEYS: convert public key and digsig asym to the akcipher api

2015-12-23 Thread Herbert Xu
On Wed, Dec 23, 2015 at 06:58:55AM -0800, Tadeusz Struk wrote: > > Because the first patch modifies the struct public_key and removes the MPIs > from it, > which the code modified in the second patch still uses. If bisect only takes > the first > then the build will fail on the security/integrit

[PATCH] tile: fix bug in setting PT_FLAGS_DISABLE_IRQ on kernel entry

2015-12-23 Thread Chris Metcalf
This flag value is saved in ptregs and used to decide whether to disable irqs when returning from the kernel. Commit 1168df528fe4 ("tile: don't assume user privilege is zero") performed a bad merge from some KVM-enabled code that had not yet been upstreamed. The only issue with the old code is th

[PATCH 1/1] imx25: Fix LCD pixelclock configuration

2015-12-23 Thread Carlos Soto
Set LCDC base clock (per_7) parent clock to UPLL clock. This is needed to allow finer resolution in pixelclock Signed-off-by: Carlos Soto --- drivers/clk/imx/clk-imx25.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/clk/imx/clk-imx25.c b/drivers/clk/imx/clk-imx25.c index c

Re: [PATCH v2] ARM: mm: flip priority of CONFIG_DEBUG_RODATA

2015-12-23 Thread Laura Abbott
On 12/23/2015 11:51 AM, Tony Lindgren wrote: * Kees Cook [151202 12:31]: The use of CONFIG_DEBUG_RODATA is generally seen as an essential part of kernel self-protection: http://www.openwall.com/lists/kernel-hardening/2015/11/30/13 Additionally, its name has grown to mean things beyond just roda

Re: [PATCH v6 13/20] arm64: ilp32: share aarch32 syscall wrappers to ilp32

2015-12-23 Thread Arnd Bergmann
On Wednesday 23 December 2015, Catalin Marinas wrote: > > That means we have to set ARCH_PACK_STATFS64 in the arm64 header files > > though, and propagate the OABI alignment to arm64/ilp32 as well, rather > > than using the 88-byte version that every other 32-bit architecture > > except for x86-32

Re: [PATCHV3 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks

2015-12-23 Thread Tony Luck
> I know, memcpy returns the ptr to @dest like a parrot Maybe I need to change the name to remove the "memcpy" substring to avoid this confusion. How about "mcsafe_copy()"? Perhaps with a "__" prefix to point out it is a building block that will get various wrappers around it?? Dan wants a copy_f

Re: [PATCH v2 1/3] clk: bcm2835: Add bindings for the auxiliary peripheral clock gates.

2015-12-23 Thread Michael Turquette
On Fri, Dec 18, 2015 at 8:19 PM, Rob Herring wrote: > On Tue, Dec 15, 2015 at 03:35:57PM -0800, Eric Anholt wrote: >> These will be used for enabling UART1, SPI1, and SPI2. >> >> Signed-off-by: Eric Anholt >> --- >> >> v2: Make the binding cover both the IRQ and clock enable registers. >> >> ...

Re: [PATCH v2 2/3] clk: bcm2835: Add a driver for the auxiliary peripheral clock gates.

2015-12-23 Thread Michael Turquette
On Tue, Dec 15, 2015 at 3:35 PM, Eric Anholt wrote: > There are a pair of SPI masters and a mini UART that were last minute > additions. As a result, they didn't get integrated in the same way as > the other gates off of the VPU clock in CPRMAN. > > Signed-off-by: Eric Anholt Applied to clk-nex

[PATCH] shpchp: constify hpc_ops structure

2015-12-23 Thread Julia Lawall
The hpc_ops structure is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/pci/hotplug/shpchp.h |4 ++-- drivers/pci/hotplug/shpchp_hpc.c |2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/pc

PANIC: double fault, error_code: 0x0 on recent kernel

2015-12-23 Thread Bob Peterson
Hi, Does this look familiar to anyone? Granted, this was seen on a recent linux-gfs2/for-next kernel, but it doesn't seem related to any of the GFS2 patches. Regards, Bob Peterson Red Hat File Systems [ 2083.844866] PANIC: double fault, error_code: 0x0 [ 2083.845020] CPU: 0 PID: 26262 Comm: d_d

[PATCH] staging: rdma: hfi1: diag: constify hfi1_filter_array structure

2015-12-23 Thread Julia Lawall
The hfi1_filter_array structure is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/staging/rdma/hfi1/diag.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rdma/hfi1/diag.c b/drivers/stagin

[PATCH] cleancache: constify cleancache_ops structure

2015-12-23 Thread Julia Lawall
The cleancache_ops structure is never modified, so declare it as const. This also removes the __read_mostly declaration on the cleancache_ops variable declaration, since it seems redundant with const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- Not sure that the __read_m

RE: A blocksize problem about dax and ext4

2015-12-23 Thread Elliott, Robert (Persistent Memory)
> -Original Message- > From: Linux-nvdimm [mailto:linux-nvdimm-boun...@lists.01.org] On Behalf Of > Dan Williams > Sent: Wednesday, December 23, 2015 11:16 AM > To: Cholerae Hu > Cc: linux-nvd...@lists.01.org > Subject: Re: A blocksize problem about dax and ext4 > > On Wed, Dec 23, 2015

[PATCH v2 00/13] staging:lustre: split kernel comm between user and kernel

2015-12-23 Thread James Simmons
The kernel communication code used for HSM and changelog is entangled. Move the user space bits into the liblustreapi. This will also help for a possible relicensing. The kernel portion is also moved from libcfs to obdclass. The original libcfs_kernelcomm.h header is split into three parts: * l

[PATCH v2 01/13] staging: lustre: kg_sem semaphore handling is incorrectly

2015-12-23 Thread James Simmons
During the removal of the cfs wrappers the kg_sem semaphore was handled incorrectly. We need to take a write lock when writing data to the kkuc_groups. The libcfs_kkuc_group_foreach needs to only take a read lock. This makes use match the OpenSFS development branch. Signed-off-by: James Simmons -

[PATCH v2 04/13] staging: lustre: split kernel comm between user and kernel

2015-12-23 Thread James Simmons
From: frank zago Split the kernel comm header in libcfs into two new headers to handle both kernel space and user space for the lustre layer. This is broken out of the original patch 14270. The part covered by this change is as follows: The original libcfs_kernelcomm.h header is split into three

[PATCH v2 02/13] staging: lustre: Prevent duplicate CT registrations

2015-12-23 Thread James Simmons
From: Henri Doreau Associate copytool registration to a given MDC import so that multiple mounts of the same filesystem do not lead to having the copytool registered multiple time. Signed-off-by: Henri Doreau Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3882 Reviewed-on: http://review.wh

[PATCH 13/13] staging: lustre: cleanup white space in kernel comm code

2015-12-23 Thread James Simmons
Cleanup the last white space issues in the kernel comm code. Signed-off-by: James Simmons --- .../lustre/lustre/include/uapi_kernelcomm.h| 10 +- .../staging/lustre/lustre/obdclass/kernelcomm.c|2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers

[PATCH 11/13] staging: lustre: return proper error code for libcfs_kkuc_msg_put

2015-12-23 Thread James Simmons
The functon libcfs_kkuc_msg_put() returns -ENOSYS which is not correct. Return -ENXIO instead if the kuc header is corrupt. Signed-off-by: James Simmons --- .../staging/lustre/lustre/obdclass/kernelcomm.c|4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/stag

[PATCH v2 06/13] staging: lustre: convert kernelcomm group to unsigned int

2015-12-23 Thread James Simmons
The group variable was converted to an unsigned int in libcfs_kkuc_group_add() to avoid a potential overflow. The variable group is used in other kernelcomm functions so it makes sense to convert the rest of the group variables to unsigned int. Signed-off-by: James Simmons --- .../lustre/lustre/

[PATCH 10/13] staging: lustre: use proper braces in libcfs_kkuc_group_put

2015-12-23 Thread James Simmons
Add in missing braces for libcfs_kkuc_group_put();. Signed-off-by: James Simmons --- .../staging/lustre/lustre/obdclass/kernelcomm.c|4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/lustre/lustre/obdclass/kernelcomm.c b/drivers/staging/lustre/lustre

Re: [PATCH v2] ARM: mm: flip priority of CONFIG_DEBUG_RODATA

2015-12-23 Thread Laura Abbott
On 12/23/2015 12:15 PM, Russell King - ARM Linux wrote: On Wed, Dec 02, 2015 at 12:27:25PM -0800, Kees Cook wrote: The use of CONFIG_DEBUG_RODATA is generally seen as an essential part of kernel self-protection: http://www.openwall.com/lists/kernel-hardening/2015/11/30/13 Additionally, its name

[PATCH 09/13] staging: lustre: add space around '+' in kernel_comm code

2015-12-23 Thread James Simmons
Add in missing space arouund '+' in the kernel_comm code. Signed-off-by: James Simmons --- .../lustre/lustre/include/uapi_kernelcomm.h|2 +- .../staging/lustre/lustre/obdclass/kernelcomm.c|2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/lu

[PATCH v2 08/13] staging: lustre: cleanup block comment style in kernel_comm code

2015-12-23 Thread James Simmons
Fixup the comments to the linux kernel style for the source and headers related to the kernel_comm work. Signed-off-by: James Simmons --- .../lustre/lustre/include/uapi_kernelcomm.h| 10 ++ .../staging/lustre/lustre/obdclass/kernelcomm.c| 12 2 files changed,

[PATCH v2 07/13] staging: lustre: remove unnecessary NULL checks in kernel_comm.c

2015-12-23 Thread James Simmons
Fix checkpatch.pl reports of NULL comparison in kernel_comm.c. Signed-off-by: James Simmons --- .../staging/lustre/lustre/obdclass/kernelcomm.c| 18 +- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/staging/lustre/lustre/obdclass/kernelcomm.c b/driv

[PATCH 12/13] staging: lustre: fix all conditional comparison to zero for kernelcomm.c

2015-12-23 Thread James Simmons
Doing if (rc != 0) or if (rc == 0) is bad form. This patch corrects kernelcomm.c to behavior according to kernel coding standards. Signed-off-by: James Simmons --- .../staging/lustre/lustre/obdclass/kernelcomm.c|6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dri

[PATCH v2 05/13] staging: lustre: embed kr_data into kkuc_reg

2015-12-23 Thread James Simmons
From: Hongchao Zhang In struct kkuc_reg, the "kr_data" is difficult to be freed outside of libcfs, then it's better to change it to be inline data instead of the data pointer. Signed-off-by: Hongchao Zhang Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6485 Reviewed-on: http://review.whamc

[PATCH v2 03/13] staging: lustre: move kernel_user_comm.c from libcfs to lustre

2015-12-23 Thread James Simmons
From: frank zago Move the kernel portion from libcfs to obdclass. This code is only used by lustre. This is broken out of the original patch 14270. The part covered by this change is as follows: The original code in kernel_user_comm.c is split into two parts: * obdclass/kernelcomm.c for the k

Re: [PATCH v2] ARM: mm: flip priority of CONFIG_DEBUG_RODATA

2015-12-23 Thread Tony Lindgren
Hi, * Laura Abbott [151223 12:31]: > > Looks like a case similar to Geert's > > adr r7, kick_counter > wait_dll_lock_timed: > ldr r4, wait_dll_lock_counter > add r4, r4, #1 > str r4, [r7, #wait_dll_lock_counter - kick_counter] > ldr r4

[PATCH] cgroup: Fix uninitialized variable warning

2015-12-23 Thread Ross Zwisler
Commit 1f7dd3e5a6e4 ("cgroup: fix handling of multi-destination migration from subtree_control enabling") introduced the following compiler warning: mm/memcontrol.c: In function ‘mem_cgroup_can_attach’: mm/memcontrol.c:4790:9: warning: ‘memcg’ may be used uninitialized in this function [-Wmaybe-u

[PATCH v3 0/5] firmware_class: extensible firmware API

2015-12-23 Thread Luis R. Rodriguez
get to this yet. I'll be back January 13th. These patches are based on top of linux-next tag next-20151223. [0] http://lkml.kernel.org/r/1443721449-22882-1-git-send-email-mcg...@do-not-panic.com [1] http://kernelnewbies.org/KernelProjects/firmware-class-enhancements David Howells (2): firm

[PATCH v3 2/5] firmware: move completing fw into a helper

2015-12-23 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" This will be re-used later through a new extensible interface. Signed-off-by: Luis R. Rodriguez --- drivers/base/firmware_class.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_

[PATCH v3 3/5] firmware: fold successful fw read early

2015-12-23 Thread Luis R. Rodriguez
From: David Howells We'll be folding in some more checks on fw_read_file_contents(), this will make the success case easier to follow. Signed-off-by: David Howells Signed-off-by: Luis R. Rodriguez --- drivers/base/firmware_class.c | 16 +++- 1 file changed, 7 insertions(+), 9 dele

Re: [PATCH] cgroup: Fix uninitialized variable warning

2015-12-23 Thread Tejun Heo
Hello, Ross. On Wed, Dec 23, 2015 at 02:30:40PM -0700, Ross Zwisler wrote: > static int mem_cgroup_can_attach(struct cgroup_taskset *tset) > { > struct cgroup_subsys_state *css; > - struct mem_cgroup *memcg; > + struct mem_cgroup *memcg = NULL; It's one thing to add spurious init

[PATCH v3 4/5] firmware: generalize reading file contents as a helper

2015-12-23 Thread Luis R. Rodriguez
From: David Howells We'll want to reuse this same code later in order to read two separate types of file contents. This generalizes fw_read_file_contents() for reading a file and rebrands it as fw_read_file(). This new caller is now generic: the path used can be arbitrary and the caller is also a

[PATCH v3 5/5] firmware: add an extensible system data helpers

2015-12-23 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" The firmware API has evolved over the years slowly, as it grows we extend it by adding new routines or at times we extend existing routines with more or less arguments. This doesn't scale well, when new arguments are added to existing routines it means we need to travers

[PATCH v3 1/5] firmware: generalize "firmware" as "system data" helpers

2015-12-23 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" Historically firmware_class code was added to help get device driver firmware binaries but these days request_firmware*() helpers are being repurposed for general system data needed by the kernel. Annotate this before we extend firmare_class more, as this is expected. W

[PATCH] lockd: constify nlmsvc_binding structure

2015-12-23 Thread Julia Lawall
The nlmsvc_binding structure is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- This assumes that whoever takes advantage of the EXPORT_SYMBOL will also not want to write in the fields. Is that reasonable? fs/lockd/svc.c

Re: [PATCH] cgroup: Fix uninitialized variable warning

2015-12-23 Thread Ross Zwisler
On Wed, Dec 23, 2015 at 04:35:19PM -0500, Tejun Heo wrote: > Hello, Ross. > > On Wed, Dec 23, 2015 at 02:30:40PM -0700, Ross Zwisler wrote: > > static int mem_cgroup_can_attach(struct cgroup_taskset *tset) > > { > > struct cgroup_subsys_state *css; > > - struct mem_cgroup *memcg; > > + s

RE: [lustre-devel] [PATCH] staging: lustre: Remove unused memhog functionality

2015-12-23 Thread Simmons, James A.
>From: Niranjan Dighe > >Remove IOC_LIBCFS_MEMHOG ioctl functionality as it is no longer needed thereby >making functions like - kportal_memhog_alloc(), kportal_memhog_free() and type >- >struct libcfs_device_userstate unused. Actually so much more can be cleaned up. This work is also being done

Re: [PATCH] cgroup: Fix uninitialized variable warning

2015-12-23 Thread Tejun Heo
On Wed, Dec 23, 2015 at 02:38:13PM -0700, Ross Zwisler wrote: > On Wed, Dec 23, 2015 at 04:35:19PM -0500, Tejun Heo wrote: > > Hello, Ross. > > > > On Wed, Dec 23, 2015 at 02:30:40PM -0700, Ross Zwisler wrote: > > > static int mem_cgroup_can_attach(struct cgroup_taskset *tset) > > > { > > > st

Re: [PATCH v2] um: Fix build error and kconfig for i386

2015-12-23 Thread Josh Triplett
On Wed, Dec 23, 2015 at 01:59:13PM +0100, Mickaël Salaün wrote: > Fix build error by selecting COREDUMP when X86_32 is selected: > > arch/x86/um/built-in.o: In function `elf_core_write_extra_phdrs': > (.text+0x3e62): undefined reference to `dump_emit' > arch/x86/um/built-in.o: In function `elf_cor

Re: [PATCH 02/13] perf hist: Save raw_data/size for tracepoint events

2015-12-23 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 23, 2015 at 02:06:59AM +0900, Namhyung Kim escreveu: > The raw_data and raw_size fields are to provide tracepoint specific > information. They will be used by dynamic sort keys later. > > Signed-off-by: Namhyung Kim > --- > tools/perf/util/hist.c | 4 > tools/perf/util/sort.h |

Re: [PATCH v2] ARM: mm: flip priority of CONFIG_DEBUG_RODATA

2015-12-23 Thread Nicolas Pitre
On Wed, 23 Dec 2015, Tony Lindgren wrote: > Hi, > > * Laura Abbott [151223 12:31]: > > > > Looks like a case similar to Geert's > > > > adr r7, kick_counter > > wait_dll_lock_timed: > > ldr r4, wait_dll_lock_counter > > add r4, r4, #1 > > str r4,

Re: [PATCH] staging: lustre: Remove unused memhog functionality

2015-12-23 Thread Dilger, Andreas
On 2015/12/23, 02:40, "Dighe, Niranjan (N.)" wrote: >From: Niranjan Dighe > >Remove IOC_LIBCFS_MEMHOG ioctl functionality as it is no longer needed >thereby >making functions like - kportal_memhog_alloc(), kportal_memhog_free() and >type - >struct libcfs_device_userstate unused. > >Signed-off-by

[PATCH] mac802154: constify ieee802154_llsec_ops structure

2015-12-23 Thread Julia Lawall
The ieee802154_llsec_ops structure is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- include/net/ieee802154_netdev.h |2 +- net/mac802154/mac_cmd.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/i

Re: [PATCH v6 12/20] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2015-12-23 Thread Arnd Bergmann
On Wednesday 23 December 2015, Yury Norov wrote: > On Mon, Dec 21, 2015 at 11:31:57PM +0100, Arnd Bergmann wrote: > > On Tuesday 15 December 2015, Yury Norov wrote: > > > + > > > +#define compat_sys_open_by_handle_at sys_open_by_handle_at > > > +#define compat_sys_openat sys_openat >

<    1   2   3   4   5   6   >