[PATCH 1/2] x86/smp: Refine the code in the case of X86_32_SMP

2017-04-09 Thread Dou Liyang
Current code in CONFIG_X86_32_SMP is redundant. Merge the raw_smp_processor_id() macro and refine the #if directive. Signed-off-by: Dou Liyang --- BTW, what's the purpose of commit 96b89dc6598a ("x86: smp.h move safe_smp_processor_id declartion to cpu.h")? Reduce the impact of SMP on the com

[PATCH RFC v2 1/3] LSM: Allow per LSM module per "struct task_struct" blob.

2017-04-09 Thread Djalal Harouni
From: Tetsuo Handa Since several modules are planning to use per "struct task_struct" blob, we need a layer for isolating it. Therefore, this patch introduces per LSM module per "struct task_struct" blob. It would be possible to remember location in security_hook_heads.task_alloc list and undo u

[PATCH RFC v2 2/3] security: add the ModAutoRestrict Linux Security Module

2017-04-09 Thread Djalal Harouni
This adds the ModAutoRestrict Linux Security Module. The new module is a stackable LSM that has been tested with Yama and SELinux, all the three modules running. The module applies restrictions on automatic module loading operations. If it is selected, every request to use a kernel feature that is

[PATCH RFC v2 3/3] Documentation: add ModAutoRestrict LSM documentation

2017-04-09 Thread Djalal Harouni
Cc: Andy Lutomirski Cc: James Morris Cc: Tetsuo Handa Cc: Kees Cook Signed-off-by: Djalal Harouni --- Documentation/security/00-INDEX| 2 + Documentation/security/ModAutoRestrict.txt | 77 ++ 2 files changed, 79 insertions(+) create mode 100644 Docume

[PATCH RFC v2 0/3] security: Add ModAutoRestrict LSM

2017-04-09 Thread Djalal Harouni
Hi List, This is RFC v2 of the Module auto-loading restriction feature. The module has been renamed ModAutoRestrict LSM. This RFC is a work in progress update. There are still minor things to fix which are listed in the TODO section. Also I used Tetsuo approach of stacking task->security, since

Re: [PATCH v2] fault-inject: support systematic fault injection

2017-04-09 Thread Akinobu Mita
2017-04-09 2:40 GMT+09:00 Dmitry Vyukov : > On Fri, Apr 7, 2017 at 6:47 PM, Akinobu Mita wrote: >> 2017-04-07 3:33 GMT+09:00 Michal Hocko : >>> [Let's add linux-api - please always cc this list when adding/modifying >>> user visible interfaces] >>> >>> On Tue 28-03-17 15:01:28, Dmitry Vyukov wrote

Re: ia64: fix module loading for gcc-5.4

2017-04-09 Thread Sergei Trofimovich
On Sun, 9 Apr 2017 11:02:43 +0200 SF Markus Elfring wrote: > >>> That caused ia64 module loader to choke > >>> on such instructions: > >>> fuse: invalid slot number 1 for IMM64 > >> > >> Why does it matter to check such a value? > > > > I'm not sure I follow the question. Is your quest

Re: [regression] Re: 4.11-rc0, thinkpad x220: GPU hang

2017-04-09 Thread Pavel Machek
On Mon 2017-03-06 12:23:41, Chris Wilson wrote: > On Mon, Mar 06, 2017 at 01:10:48PM +0100, Pavel Machek wrote: > > On Mon 2017-03-06 11:15:28, Chris Wilson wrote: > > > On Mon, Mar 06, 2017 at 12:01:51AM +0100, Pavel Machek wrote: > > > > Hi! > > > > > > > > > > mplayer stopped working after a wh

Re: [printk] fbc14616f4: BUG:kernel_reboot-without-warning_in_test_stage

2017-04-09 Thread Pavel Machek
On Sat 2017-04-08 00:13:06, Sergey Senozhatsky wrote: > On (04/07/17 14:44), Pavel Machek wrote: > [..] > > > [..] > > > > I believe "spend at most 2 seconds in printk(), then print a warning > > > > and offload" is a solution closer to what we had before. > > > > > > a warning here can be very no

Re: [printk] fbc14616f4: BUG:kernel_reboot-without-warning_in_test_stage

2017-04-09 Thread Pavel Machek
On Fri 2017-04-07 10:29:17, Steven Rostedt wrote: > On Fri, 7 Apr 2017 10:14:49 +0200 > Pavel Machek wrote: > > > > serial console can be quite slow. and port->lock, that is acquired by > > > console_unlock()->call_console_drivers()->write(), is also accessible > > > by serial driver's IRQ handle

patch to candidate for stable kernel 4.10

2017-04-09 Thread Mkrtchyan, Tigran
Dear stable kernel maintainers, Please consider commit f17f8a14e82cdf34cd6473e3644f3c672b3884f6 to be included into 4.10 kernel. As long as it crashes kernels used by some distors, we have to disable corresponding functionality on the NFS servers. Thanks in advance, Tigran.

Re: [PATCH] net: netfilter: Replace explicit NULL comparisons

2017-04-09 Thread Liping Zhang
2017-04-09 16:26 GMT+08:00 Jan Engelhardt : > > On Sunday 2017-04-09 05:42, Arushi Singhal wrote: >>On Sun, Apr 9, 2017 at 1:44 AM, Pablo Neira Ayuso wrote: >> On Sat, Apr 08, 2017 at 08:21:56PM +0200, Jan Engelhardt wrote: >> > On Saturday 2017-04-08 19:21, Arushi Singhal wrote: >>

Re: [PATCH v2 5/5] iio: dac: stm32: add support for waveform generator

2017-04-09 Thread Jonathan Cameron
On 06/04/17 17:11, Fabrice Gasnier wrote: > STM32 DAC has built-in noise or triangle waveform generator. > - "wavetype" extended attribute selects noise or triangle. > - "amplitude" extended attribute selects amplitude for waveform generator > > A DC offset can be added to waveform generator outpu

Re: [PATCH v3] lightnvm: physical block device (pblk) target

2017-04-09 Thread Javier González
Hi Bart, Thanks for reviewing the code. > On 8 Apr 2017, at 22.56, Bart Van Assche wrote: > > On 04/07/17 11:50, Javier González wrote: >> Documentation/lightnvm/pblk.txt | 21 + >> drivers/lightnvm/Kconfig | 19 + >> drivers/lightnvm/Makefile|5 + >> drivers/lightnvm/pblk

Re: [PATCH v2 4/5] iio: dac: stm32: add support for trigger events

2017-04-09 Thread Jonathan Cameron
On 06/04/17 17:11, Fabrice Gasnier wrote: > STM32 DAC supports triggers to synchronize conversions. When trigger > occurs, data is transferred from DHR (data holding register) to DOR > (data output register) so output voltage is updated. > Both hardware and software triggers are supported. > > Sig

Re: ia64: fix module loading for gcc-5.4

2017-04-09 Thread SF Markus Elfring
>>> That caused ia64 module loader to choke >>> on such instructions: >>> fuse: invalid slot number 1 for IMM64 >> >> Why does it matter to check such a value? > > I'm not sure I follow the question. Is your question about > linux kernel relocation code handler, gcc or ia64 instruction forma

Re: [PATCH 9/9] IB/isert: Improve size determinations in three functions

2017-04-09 Thread Sagi Grimberg
Acked-by: Sagi Grimberg

Re: [PATCH 8/9] IB/isert: Use kcalloc() in isert_alloc_rx_descriptors()

2017-04-09 Thread Sagi Grimberg
Acked-by: Sagi Grimberg

Re: [PATCH 6/9] IB/iser: Use kmalloc_array() in iser_alloc_rx_descriptors()

2017-04-09 Thread Sagi Grimberg
Acked-by: Sagi Grimberg

Re: [bug report] checkpatch: if statement does not need to be enclosed in parentheses

2017-04-09 Thread Andreas Mohr
On Sat, Apr 08, 2017 at 10:33:19AM -0700, Joe Perches wrote: > On Sat, 2017-04-08 at 17:07 +0100, Alfonso Lima wrote: > > Hi, > > > > In current linux-next, if you run the script on this piece of > > code: > > > > #define FOO(a) \ > > if (a) {

Re: [PATCH 7/9] IB/iser: Add spaces for better code readability

2017-04-09 Thread Sagi Grimberg
Acked-by: Sagi Grimberg

Re: [PATCH v3] ia64: fix module loading for gcc-5.4

2017-04-09 Thread Sergei Trofimovich
On Sun, 9 Apr 2017 10:27:52 +0200 SF Markus Elfring wrote: > > That caused ia64 module loader to choke > > on such instructions: > > fuse: invalid slot number 1 for IMM64 > > Why does it matter to check such a value? I'm not sure I follow the question. Is your question about linux kernel

Re: [PATCH v2 3/5] iio: trigger: add set_trigger callback to notify device

2017-04-09 Thread Jonathan Cameron
On 06/04/17 17:11, Fabrice Gasnier wrote: > Add 'set_trigger' callback to iio info structure. This allows device > to be notified when a trigger (or no trigger) has been assigned. This > maybe useful for instance in non buffered mode (e.g. event triggered). > This is called, after trigger and devic

Re: [PATCH v2 2/5] iio: dac: add support for stm32 DAC

2017-04-09 Thread Jonathan Cameron
On 06/04/17 17:11, Fabrice Gasnier wrote: > Add support for STMicroelectronics STM32 DAC. It's a 12-bit, voltage > output digital-to-analog converter. It has two output channels, each > with its own converter. > It supports 8 bits or 12bits left/right aligned data format. Only > 12bits right-aligne

Re: [PATCH v3] ia64: fix module loading for gcc-5.4

2017-04-09 Thread SF Markus Elfring
> Starting from gcc-5.4+ gcc generates MLX How do you think about to omit the plus character? > instructions in more cases to refer local > symbols: I wonder about your choice of a line length limit here. > That caused ia64 module loader to choke > on such instructions: > fuse: invalid sl

Re: [PATCH] net: netfilter: Replace explicit NULL comparisons

2017-04-09 Thread Jan Engelhardt
On Sunday 2017-04-09 05:42, Arushi Singhal wrote: >On Sun, Apr 9, 2017 at 1:44 AM, Pablo Neira Ayuso wrote: > On Sat, Apr 08, 2017 at 08:21:56PM +0200, Jan Engelhardt wrote: > > On Saturday 2017-04-08 19:21, Arushi Singhal wrote: > > > > >Replace explicit NULL comparison with

[GIT PULL] Staging/IIO driver fixes for 4.11-rc6

2017-04-09 Thread Greg KH
The following changes since commit c02ed2e75ef4c74e41e421acb4ef1494671585e8: Linux 4.11-rc4 (2017-03-26 14:15:16 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git/ tags/staging-4.11-rc6 for you to fetch changes up to 97fbfef6bd5

[GIT PULL] Driver core fixes for 4.11-rc6

2017-04-09 Thread Greg KH
The following changes since commit c02ed2e75ef4c74e41e421acb4ef1494671585e8: Linux 4.11-rc4 (2017-03-26 14:15:16 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/ tags/driver-core-4.11-rc6 for you to fetch changes up to 27f

[PATCH] cpufreq: imx6q: Fix error handling code

2017-04-09 Thread Christophe JAILLET
According to the previous error handling code, it is likely that 'goto out_free_opp' is expected here in order to avoid a memory leak in error handling path. Signed-off-by: Christophe JAILLET --- drivers/cpufreq/imx6q-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

Re: [PATCH v3 33/37] mtd: nand: allocate aligned buffers if NAND_OWN_BUFFERS is unset

2017-04-09 Thread Boris Brezillon
On Fri, 7 Apr 2017 15:49:23 +0900 Masahiro Yamada wrote: > Hi Leonard, > > 2017-04-06 23:08 GMT+09:00 Leonard Crestez : > > On Thu, Mar 30, 2017 at 11:15 AM, Masahiro Yamada > > wrote: > >> > >> Some NAND controllers are using DMA engine requiring a specific > >> buffer alignment. The core

Re: [PATCH v2 1/3] staging: vc04_services: bcm2835-audio: bcm2835-pcm.c Fixed checkpatch warning about unaligned function params

2017-04-09 Thread Greg Kroah-Hartman
On Sat, Apr 08, 2017 at 05:21:38PM +0100, Andrea della Porta wrote: > Fixed unaligned function parameters issues, as per checkpatch warning > > Signed-off-by: Andrea della Porta > --- > Changes in v2: > - subject line more explicit > - checkpatch output removed as requested, summarized in one lin

<    1   2   3