Re: [PATCH 3/4] mfd: da9055-core: make it explicitly non-modular

2017-06-03 Thread kbuild test robot
-drivers-explicitly-non-modular/20170603-211054 base: https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next config: arm-allyesconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://raw.githubusercontent.com/01org

Re: [PATCH 3/4] mfd: da9055-core: make it explicitly non-modular

2017-06-03 Thread kbuild test robot
-drivers-explicitly-non-modular/20170603-211054 base: https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next config: arm-allyesconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://raw.githubusercontent.com/01org

Re: get_random_bytes returns bad randomness before seeding is complete

2017-06-03 Thread Stephan Müller
Am Sonntag, 4. Juni 2017, 00:54:39 CEST schrieb Jeffrey Walton: Hi Jeffrey, > On Sat, Jun 3, 2017 at 5:45 PM, Sandy Harris wrote: > > ... > > Of course this will fail on systems with no high-res timer. Are there > > still some of those? It might be done in about 1000

Re: get_random_bytes returns bad randomness before seeding is complete

2017-06-03 Thread Stephan Müller
Am Sonntag, 4. Juni 2017, 00:54:39 CEST schrieb Jeffrey Walton: Hi Jeffrey, > On Sat, Jun 3, 2017 at 5:45 PM, Sandy Harris wrote: > > ... > > Of course this will fail on systems with no high-res timer. Are there > > still some of those? It might be done in about 1000 times as long on a > >

Re: get_random_bytes returns bad randomness before seeding is complete

2017-06-03 Thread Jeffrey Walton
On Sun, Jun 4, 2017 at 1:48 AM, Stephan Müller wrote: > Am Freitag, 2. Juni 2017, 16:59:56 CEST schrieb Jason A. Donenfeld: > >> Alternatively, I'm open to other solutions people might come up with. > > How about stirring in some data from the Jitter RNG that we have in the

Re: get_random_bytes returns bad randomness before seeding is complete

2017-06-03 Thread Jeffrey Walton
On Sun, Jun 4, 2017 at 1:48 AM, Stephan Müller wrote: > Am Freitag, 2. Juni 2017, 16:59:56 CEST schrieb Jason A. Donenfeld: > >> Alternatively, I'm open to other solutions people might come up with. > > How about stirring in some data from the Jitter RNG that we have in the kernel > already and

Re: [PATCH 3/4] mfd: da9055-core: make it explicitly non-modular

2017-06-03 Thread kbuild test robot
-drivers-explicitly-non-modular/20170603-211054 base: https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next config: s390-allmodconfig (attached as .config) compiler: s390x-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://raw.githubusercontent.com/01org

Re: [PATCH 3/4] mfd: da9055-core: make it explicitly non-modular

2017-06-03 Thread kbuild test robot
-drivers-explicitly-non-modular/20170603-211054 base: https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next config: s390-allmodconfig (attached as .config) compiler: s390x-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://raw.githubusercontent.com/01org

Re: get_random_bytes returns bad randomness before seeding is complete

2017-06-03 Thread Stephan Müller
Am Freitag, 2. Juni 2017, 16:59:56 CEST schrieb Jason A. Donenfeld: Hi Jason, > > Alternatively, I'm open to other solutions people might come up with. How about stirring in some data from the Jitter RNG that we have in the kernel already and that is used for the DRBG in case get_random_bytes

Re: get_random_bytes returns bad randomness before seeding is complete

2017-06-03 Thread Stephan Müller
Am Freitag, 2. Juni 2017, 16:59:56 CEST schrieb Jason A. Donenfeld: Hi Jason, > > Alternatively, I'm open to other solutions people might come up with. How about stirring in some data from the Jitter RNG that we have in the kernel already and that is used for the DRBG in case get_random_bytes

Re: [kernel-hardening] Re: [PATCH v1 1/1] Add Trusted Path Execution as a stackable LSM

2017-06-03 Thread Eric Biggers
On Sun, Jun 04, 2017 at 01:24:13AM -0400, Matt Brown wrote: > On 06/03/2017 02:33 AM, Al Viro wrote: > > On Sat, Jun 03, 2017 at 01:53:51AM -0400, Matt Brown wrote: > > > > > +static int tpe_bprm_set_creds(struct linux_binprm *bprm) > > > +{ > > > + struct file *file = bprm->file; > > > + struct

Re: [kernel-hardening] Re: [PATCH v1 1/1] Add Trusted Path Execution as a stackable LSM

2017-06-03 Thread Eric Biggers
On Sun, Jun 04, 2017 at 01:24:13AM -0400, Matt Brown wrote: > On 06/03/2017 02:33 AM, Al Viro wrote: > > On Sat, Jun 03, 2017 at 01:53:51AM -0400, Matt Brown wrote: > > > > > +static int tpe_bprm_set_creds(struct linux_binprm *bprm) > > > +{ > > > + struct file *file = bprm->file; > > > + struct

Re: [RFC v2 2/4] tracing: Add support for recording tgid of tasks

2017-06-03 Thread Joel Fernandes
Some minor things that I will rework in next rev after spending some more time on it: On Sat, Jun 3, 2017 at 9:03 PM, Joel Fernandes wrote: [..] > @@ -463,7 +469,7 @@ int trace_set_clr_event(const char *system, const char > *event, int set); > #define event_trace_printk(ip,

Re: [RFC v2 2/4] tracing: Add support for recording tgid of tasks

2017-06-03 Thread Joel Fernandes
Some minor things that I will rework in next rev after spending some more time on it: On Sat, Jun 3, 2017 at 9:03 PM, Joel Fernandes wrote: [..] > @@ -463,7 +469,7 @@ int trace_set_clr_event(const char *system, const char > *event, int set); > #define event_trace_printk(ip, fmt, args...)

Re: [PATCH v2 02/20] staging: ccree: replace bit shift with BIT macro

2017-06-03 Thread Gilad Ben-Yossef
On Sat, Jun 3, 2017 at 11:46 AM, Greg Kroah-Hartman wrote: > On Thu, Jun 01, 2017 at 02:02:52PM +0300, Gilad Ben-Yossef wrote: >> CC_CTX_SIZE was being defined using a hand rolled bit shift operation. >> Replace with use of BIT macro. >> >> Signed-off-by: Gilad

Re: [PATCH v2 02/20] staging: ccree: replace bit shift with BIT macro

2017-06-03 Thread Gilad Ben-Yossef
On Sat, Jun 3, 2017 at 11:46 AM, Greg Kroah-Hartman wrote: > On Thu, Jun 01, 2017 at 02:02:52PM +0300, Gilad Ben-Yossef wrote: >> CC_CTX_SIZE was being defined using a hand rolled bit shift operation. >> Replace with use of BIT macro. >> >> Signed-off-by: Gilad Ben-Yossef >> --- >>

Re: [PATCH v1 1/1] Add Trusted Path Execution as a stackable LSM

2017-06-03 Thread Matt Brown
On 06/03/2017 02:33 AM, Al Viro wrote: On Sat, Jun 03, 2017 at 01:53:51AM -0400, Matt Brown wrote: +static int tpe_bprm_set_creds(struct linux_binprm *bprm) +{ + struct file *file = bprm->file; + struct inode *inode = d_backing_inode(file->f_path.dentry->d_parent); + struct

Re: [PATCH v1 1/1] Add Trusted Path Execution as a stackable LSM

2017-06-03 Thread Matt Brown
On 06/03/2017 02:33 AM, Al Viro wrote: On Sat, Jun 03, 2017 at 01:53:51AM -0400, Matt Brown wrote: +static int tpe_bprm_set_creds(struct linux_binprm *bprm) +{ + struct file *file = bprm->file; + struct inode *inode = d_backing_inode(file->f_path.dentry->d_parent); + struct

Investment Interest & Offer

2017-06-03 Thread Seydou Thieba

Investment Interest & Offer

2017-06-03 Thread Seydou Thieba

Re: [PATCH v7 16/34] [media] add Omnivision OV5640 sensor driver

2017-06-03 Thread Steve Longerbeam
On 06/03/2017 02:57 PM, Sakari Ailus wrote: On Sat, Jun 03, 2017 at 09:51:39PM +0200, Pavel Machek wrote: Hi! + /* Auto/manual exposure */ + ctrls->auto_exp = v4l2_ctrl_new_std_menu(hdl, ops, +V4L2_CID_EXPOSURE_AUTO, +

Re: [PATCH v7 16/34] [media] add Omnivision OV5640 sensor driver

2017-06-03 Thread Steve Longerbeam
On 06/03/2017 02:57 PM, Sakari Ailus wrote: On Sat, Jun 03, 2017 at 09:51:39PM +0200, Pavel Machek wrote: Hi! + /* Auto/manual exposure */ + ctrls->auto_exp = v4l2_ctrl_new_std_menu(hdl, ops, +V4L2_CID_EXPOSURE_AUTO, +

Re: [PATCH] tcmu: Add fifo type waiter list support to avoid starvation

2017-06-03 Thread Mike Christie
On 05/04/2017 09:51 PM, lixi...@cmss.chinamobile.com wrote: > From: Xiubo Li > > The fifo type waiter list will hold the udevs who are waiting for the > blocks from the data global pool. The unmap thread will try to feed the > first udevs in waiter list, if the

Re: [PATCH 2/5] x86/cpuid: Add generic table for cpuid dependencies

2017-06-03 Thread kbuild test robot
Hi Andi, [auto build test ERROR on tip/auto-latest] [also build test ERROR on v4.12-rc3 next-20170602] [cannot apply to tip/x86/core] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH 2/5] x86/cpuid: Add generic table for cpuid dependencies

2017-06-03 Thread kbuild test robot
Hi Andi, [auto build test ERROR on tip/auto-latest] [also build test ERROR on v4.12-rc3 next-20170602] [cannot apply to tip/x86/core] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH] tcmu: Add fifo type waiter list support to avoid starvation

2017-06-03 Thread Mike Christie
On 05/04/2017 09:51 PM, lixi...@cmss.chinamobile.com wrote: > From: Xiubo Li > > The fifo type waiter list will hold the udevs who are waiting for the > blocks from the data global pool. The unmap thread will try to feed the > first udevs in waiter list, if the global free blocks available are >

[RFC v2 4/4] tracing/ftrace: Add support to record and display tgid

2017-06-03 Thread Joel Fernandes
Make function tracer able to record tgid if/when record-tgid is enabled. Cc: kernel-t...@android.com Cc: Steven Rostedt Cc: Ingo Molnar Signed-off-by: Joel Fernandes --- kernel/trace/trace_functions.c | 23 +-- 1

Re: [PATCH] acpi/iort, numa: Add numa node mapping for smmuv3 devices

2017-06-03 Thread Ganapatrao Kulkarni
On Fri, Jun 2, 2017 at 9:20 AM, Hanjun Guo wrote: > [+Cc Lv Zheng] > > On 2017/6/2 0:21, Lorenzo Pieralisi wrote: >> On Thu, Jun 01, 2017 at 07:35:37PM +0530, Ganapatrao Kulkarni wrote: >>> ARM IORT specification has provision to define Proximity domain >>> in SMMUv3 IORT

[RFC v2 4/4] tracing/ftrace: Add support to record and display tgid

2017-06-03 Thread Joel Fernandes
Make function tracer able to record tgid if/when record-tgid is enabled. Cc: kernel-t...@android.com Cc: Steven Rostedt Cc: Ingo Molnar Signed-off-by: Joel Fernandes --- kernel/trace/trace_functions.c | 23 +-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git

Re: [PATCH] acpi/iort, numa: Add numa node mapping for smmuv3 devices

2017-06-03 Thread Ganapatrao Kulkarni
On Fri, Jun 2, 2017 at 9:20 AM, Hanjun Guo wrote: > [+Cc Lv Zheng] > > On 2017/6/2 0:21, Lorenzo Pieralisi wrote: >> On Thu, Jun 01, 2017 at 07:35:37PM +0530, Ganapatrao Kulkarni wrote: >>> ARM IORT specification has provision to define Proximity domain >>> in SMMUv3 IORT table. Adding required

[RFC v2 3/4] tracing: Add support for display of tgid in trace output

2017-06-03 Thread Joel Fernandes
Earlier patches introduced ability to record the tgid using the 'record-tgid' option. Here we read the tgid and output it if the option is enabled. Cc: kernel-t...@android.com Cc: Steven Rostedt Cc: Ingo Molnar Signed-off-by: Joel Fernandes

[RFC v2 3/4] tracing: Add support for display of tgid in trace output

2017-06-03 Thread Joel Fernandes
Earlier patches introduced ability to record the tgid using the 'record-tgid' option. Here we read the tgid and output it if the option is enabled. Cc: kernel-t...@android.com Cc: Steven Rostedt Cc: Ingo Molnar Signed-off-by: Joel Fernandes --- kernel/trace/trace.c| 47

[RFC v2 2/4] tracing: Add support for recording tgid of tasks

2017-06-03 Thread Joel Fernandes
Inorder to support recording of tgid, the following changes are made: - Introduce a new API for optionally recording the tgid along with the task's comm which replaces the existing '*cmdline*' APIs. - reuse the existing sched_switch and sched_wakeup probes - replace all uses of the old API -

[RFC v2 2/4] tracing: Add support for recording tgid of tasks

2017-06-03 Thread Joel Fernandes
Inorder to support recording of tgid, the following changes are made: - Introduce a new API for optionally recording the tgid along with the task's comm which replaces the existing '*cmdline*' APIs. - reuse the existing sched_switch and sched_wakeup probes - replace all uses of the old API -

[RFC v2 1/4] tracing: Remove unused declaration of trace_stop_cmdline_recording

2017-06-03 Thread Joel Fernandes
trace_stop_cmdline_recording declaration isn't in use, remove it. Cc: kernel-t...@android.com Cc: Steven Rostedt Cc: Ingo Molnar Signed-off-by: Joel Fernandes --- kernel/trace/trace.c | 2 -- 1 file changed, 2 deletions(-) diff --git

[RFC v2 1/4] tracing: Remove unused declaration of trace_stop_cmdline_recording

2017-06-03 Thread Joel Fernandes
trace_stop_cmdline_recording declaration isn't in use, remove it. Cc: kernel-t...@android.com Cc: Steven Rostedt Cc: Ingo Molnar Signed-off-by: Joel Fernandes --- kernel/trace/trace.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index

[RFC v2 0/4] tracing: Add support to record and display tgid of tasks

2017-06-03 Thread Joel Fernandes
Hi Steven, Ingo, Here is a rework of the last RFC [1] I posted. Its a a complete rewrite from scratch to be more upstream friendly. Android systrace viewer heavily depends on the tgid to group tasks. tgid is also useful for analyzing traces and generating stats for groups of tasks. Basically in

[RFC v2 0/4] tracing: Add support to record and display tgid of tasks

2017-06-03 Thread Joel Fernandes
Hi Steven, Ingo, Here is a rework of the last RFC [1] I posted. Its a a complete rewrite from scratch to be more upstream friendly. Android systrace viewer heavily depends on the tgid to group tasks. tgid is also useful for analyzing traces and generating stats for groups of tasks. Basically in

Re: [PATCH] ARM: imx_v6_v7_defconfig: Explicitly restore CONFIG_DEBUG_FS

2017-06-03 Thread Shawn Guo
On Fri, May 26, 2017 at 02:26:06PM +0300, Leonard Crestez wrote: > This option was removed by "make savedefconfig" in > commit c5054a98bce4 ("ARM: imx_v6_v7_defconfig: Select SMSC_PHY") > > This happened because CONFIG_DEBUG_FS was implicitly selected by > CONFIG_TREE_RCU_TRACE which defaulted to

Re: [PATCH] ARM: imx_v6_v7_defconfig: Explicitly restore CONFIG_DEBUG_FS

2017-06-03 Thread Shawn Guo
On Fri, May 26, 2017 at 02:26:06PM +0300, Leonard Crestez wrote: > This option was removed by "make savedefconfig" in > commit c5054a98bce4 ("ARM: imx_v6_v7_defconfig: Select SMSC_PHY") > > This happened because CONFIG_DEBUG_FS was implicitly selected by > CONFIG_TREE_RCU_TRACE which defaulted to

Re: [kernel-hardening] Re: [PATCH v7 2/2] security: tty: make TIOCSTI ioctl require CAP_SYS_ADMIN

2017-06-03 Thread Peter Dolding
On Sun, Jun 4, 2017 at 8:22 AM, Matt Brown wrote: > On 06/03/2017 06:00 PM, Alan Cox wrote: >>> >>> TIOCSLCKTRMIOS >> >> >> That one I'm more dubious about >> >>> TIOCSLTC >>> TIOCSSOFTCAR >> >> >> tty_io.c also has a few and n_tty has a couple we'd want. >> >>> >>> would it be

Re: [kernel-hardening] Re: [PATCH v7 2/2] security: tty: make TIOCSTI ioctl require CAP_SYS_ADMIN

2017-06-03 Thread Peter Dolding
On Sun, Jun 4, 2017 at 8:22 AM, Matt Brown wrote: > On 06/03/2017 06:00 PM, Alan Cox wrote: >>> >>> TIOCSLCKTRMIOS >> >> >> That one I'm more dubious about >> >>> TIOCSLTC >>> TIOCSSOFTCAR >> >> >> tty_io.c also has a few and n_tty has a couple we'd want. >> >>> >>> would it be overkill to have a

Re: [PATCH V3 1/2] powerpc/numa: Update CPU topology when VPHN enabled

2017-06-03 Thread kbuild test robot
Hi Michael, [auto build test ERROR on powerpc/next] [also build test ERROR on v4.12-rc3 next-20170602] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH V3 1/2] powerpc/numa: Update CPU topology when VPHN enabled

2017-06-03 Thread kbuild test robot
Hi Michael, [auto build test ERROR on powerpc/next] [also build test ERROR on v4.12-rc3 next-20170602] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH v2 2/3] PCI: Enable PCIe Relaxed Ordering if supported

2017-06-03 Thread Ding Tianhong
On 2017/6/4 2:19, Alexander Duyck wrote: > On Fri, Jun 2, 2017 at 9:04 PM, Ding Tianhong wrote: >> The PCIe Device Control Register use the bit 4 to indicate that >> whether the device is permitted to enable relaxed ordering or not. >> But relaxed ordering is not safe

Re: [PATCH v2 2/3] PCI: Enable PCIe Relaxed Ordering if supported

2017-06-03 Thread Ding Tianhong
On 2017/6/4 2:19, Alexander Duyck wrote: > On Fri, Jun 2, 2017 at 9:04 PM, Ding Tianhong wrote: >> The PCIe Device Control Register use the bit 4 to indicate that >> whether the device is permitted to enable relaxed ordering or not. >> But relaxed ordering is not safe for some platform which

[PATCH 1/2] arm64: allwinner: a64: add DTSI file for SoPine SoM

2017-06-03 Thread Icenowy Zheng
From: Icenowy Zheng SoPine is a SoM by Pine64, which have a gold finger compatible with the slot of DDR3 SODIMM (signals are not compatible), and have an A64, an AXP803, a LPDDR3 DRAM chip, a power led and a MicroSD slot on it. The card detect pin of the MicroSD slot on the

[PATCH 1/2] arm64: allwinner: a64: add DTSI file for SoPine SoM

2017-06-03 Thread Icenowy Zheng
From: Icenowy Zheng SoPine is a SoM by Pine64, which have a gold finger compatible with the slot of DDR3 SODIMM (signals are not compatible), and have an A64, an AXP803, a LPDDR3 DRAM chip, a power led and a MicroSD slot on it. The card detect pin of the MicroSD slot on the SoM is pulled down,

[PATCH 2/2] arm64: allwinner: a64: add device tree for SoPine with baseboard

2017-06-03 Thread Icenowy Zheng
From: Icenowy Zheng Pine64 have made an official baseboard when SoPine SoM is out. The official baseboard is like the original Pine64 -- but with SD card slot replaced with Pine64's eMMC module slot. Add a device tree for SoPine with the baseboard. Signed-off-by: Icenowy

[PATCH 2/2] arm64: allwinner: a64: add device tree for SoPine with baseboard

2017-06-03 Thread Icenowy Zheng
From: Icenowy Zheng Pine64 have made an official baseboard when SoPine SoM is out. The official baseboard is like the original Pine64 -- but with SD card slot replaced with Pine64's eMMC module slot. Add a device tree for SoPine with the baseboard. Signed-off-by: Icenowy Zheng ---

Re: [RFC 0/3] WhiteEgret LSM module

2017-06-03 Thread Peter Dolding
On Thu, Jun 1, 2017 at 1:35 AM, Serge E. Hallyn wrote: > Quoting Casey Schaufler (ca...@schaufler-ca.com): >> >> >> On 5/31/2017 3:59 AM, Peter Dolding wrote: >> > ... >> > >> > Like you see here in Australian government policy there is another >> > thing called whitelisted. >>

Re: [RFC 0/3] WhiteEgret LSM module

2017-06-03 Thread Peter Dolding
On Thu, Jun 1, 2017 at 1:35 AM, Serge E. Hallyn wrote: > Quoting Casey Schaufler (ca...@schaufler-ca.com): >> >> >> On 5/31/2017 3:59 AM, Peter Dolding wrote: >> > ... >> > >> > Like you see here in Australian government policy there is another >> > thing called whitelisted. >> >

Re: [RFC 0/3] WhiteEgret LSM module

2017-06-03 Thread Peter Dolding
On Thu, Jun 1, 2017 at 1:36 AM, Mehmet Kayaalp wrote: > >> On May 31, 2017, at 6:59 AM, Peter Dolding wrote: >> >> Number 1 we need to split the idea of signed and whitelisted. IMA is >> signed should not be confused with white-listed.You will

Re: [RFC 0/3] WhiteEgret LSM module

2017-06-03 Thread Peter Dolding
On Thu, Jun 1, 2017 at 1:36 AM, Mehmet Kayaalp wrote: > >> On May 31, 2017, at 6:59 AM, Peter Dolding wrote: >> >> Number 1 we need to split the idea of signed and whitelisted. IMA is >> signed should not be confused with white-listed.You will find >> policies stating whitelist and signed

Re: [PATCH 1/1] Sealable memory support

2017-06-03 Thread kbuild test robot
Hi Igor, [auto build test ERROR on mmotm/master] [also build test ERROR on v4.12-rc3 next-20170602] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH 1/1] Sealable memory support

2017-06-03 Thread kbuild test robot
Hi Igor, [auto build test ERROR on mmotm/master] [also build test ERROR on v4.12-rc3 next-20170602] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

[PATCH net-next v10 1/5] skbuff: return -EMSGSIZE in skb_to_sgvec to prevent overflow

2017-06-03 Thread Jason A. Donenfeld
This is a defense-in-depth measure in response to bugs like 4d6fa57b4dab ("macsec: avoid heap overflow in skb_to_sgvec"). There's not only a potential overflow of sglist items, but also a stack overflow potential, so we fix this by limiting the amount of recursion this function is allowed to do.

[PATCH net-next v10 2/5] ipsec: check return value of skb_to_sgvec always

2017-06-03 Thread Jason A. Donenfeld
Signed-off-by: Jason A. Donenfeld Cc: Steffen Klassert Cc: Herbert Xu Cc: "David S. Miller" --- net/ipv4/ah4.c | 8 ++-- net/ipv4/esp4.c | 20 +--- net/ipv6/ah6.c | 8

[PATCH net-next v10 1/5] skbuff: return -EMSGSIZE in skb_to_sgvec to prevent overflow

2017-06-03 Thread Jason A. Donenfeld
This is a defense-in-depth measure in response to bugs like 4d6fa57b4dab ("macsec: avoid heap overflow in skb_to_sgvec"). There's not only a potential overflow of sglist items, but also a stack overflow potential, so we fix this by limiting the amount of recursion this function is allowed to do.

[PATCH net-next v10 2/5] ipsec: check return value of skb_to_sgvec always

2017-06-03 Thread Jason A. Donenfeld
Signed-off-by: Jason A. Donenfeld Cc: Steffen Klassert Cc: Herbert Xu Cc: "David S. Miller" --- net/ipv4/ah4.c | 8 ++-- net/ipv4/esp4.c | 20 +--- net/ipv6/ah6.c | 8 ++-- net/ipv6/esp6.c | 20 +--- 4 files changed, 38 insertions(+), 18

[PATCH net-next v10 3/5] rxrpc: check return value of skb_to_sgvec always

2017-06-03 Thread Jason A. Donenfeld
Signed-off-by: Jason A. Donenfeld Acked-by: David Howells --- net/rxrpc/rxkad.c | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/net/rxrpc/rxkad.c b/net/rxrpc/rxkad.c index 1bb9b2ccc267..29fe20ad04aa 100644 ---

[PATCH net-next v10 3/5] rxrpc: check return value of skb_to_sgvec always

2017-06-03 Thread Jason A. Donenfeld
Signed-off-by: Jason A. Donenfeld Acked-by: David Howells --- net/rxrpc/rxkad.c | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/net/rxrpc/rxkad.c b/net/rxrpc/rxkad.c index 1bb9b2ccc267..29fe20ad04aa 100644 --- a/net/rxrpc/rxkad.c +++ b/net/rxrpc/rxkad.c

[PATCH net-next v10 4/5] macsec: check return value of skb_to_sgvec always

2017-06-03 Thread Jason A. Donenfeld
Signed-off-by: Jason A. Donenfeld Cc: Sabrina Dubroca --- drivers/net/macsec.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/drivers/net/macsec.c b/drivers/net/macsec.c index 91642fd87cd1..b79513b8322f 100644 ---

[PATCH net-next v10 4/5] macsec: check return value of skb_to_sgvec always

2017-06-03 Thread Jason A. Donenfeld
Signed-off-by: Jason A. Donenfeld Cc: Sabrina Dubroca --- drivers/net/macsec.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/drivers/net/macsec.c b/drivers/net/macsec.c index 91642fd87cd1..b79513b8322f 100644 --- a/drivers/net/macsec.c +++

[PATCH net-next v10 5/5] virtio_net: check return value of skb_to_sgvec always

2017-06-03 Thread Jason A. Donenfeld
Signed-off-by: Jason A. Donenfeld Reviewed-by: Sergei Shtylyov Cc: "Michael S. Tsirkin" Cc: Jason Wang --- drivers/net/virtio_net.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff

[PATCH net-next v10 0/5] Avoiding stack overflow in skb_to_sgvec

2017-06-03 Thread Jason A. Donenfeld
Changes v9->v10: - Spaces to tabs on one line. - Added some acked-by, reviewed-by lines. Since we're down to only cleaning up things like spaces-to-tabs, I believe we can merge this patch series. David - would you put this in net-next, please? The recent bug with macsec and historical one

[PATCH net-next v10 5/5] virtio_net: check return value of skb_to_sgvec always

2017-06-03 Thread Jason A. Donenfeld
Signed-off-by: Jason A. Donenfeld Reviewed-by: Sergei Shtylyov Cc: "Michael S. Tsirkin" Cc: Jason Wang --- drivers/net/virtio_net.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 3e9246cc49c3..57763d30cabb

[PATCH net-next v10 0/5] Avoiding stack overflow in skb_to_sgvec

2017-06-03 Thread Jason A. Donenfeld
Changes v9->v10: - Spaces to tabs on one line. - Added some acked-by, reviewed-by lines. Since we're down to only cleaning up things like spaces-to-tabs, I believe we can merge this patch series. David - would you put this in net-next, please? The recent bug with macsec and historical one

Re: [PATCH net] net: ping: do not abuse udp_poll()

2017-06-03 Thread Lorenzo Colitti
On Sun, Jun 4, 2017 at 1:29 AM, Eric Dumazet wrote: > The problem is that ping sockets should not use udp_poll() in the first > place, and recent changes in UDP stack finally exposed this old bug. Acked-By: Lorenzo Colitti Tested-By: Lorenzo Colitti

Re: [PATCH net] net: ping: do not abuse udp_poll()

2017-06-03 Thread Lorenzo Colitti
On Sun, Jun 4, 2017 at 1:29 AM, Eric Dumazet wrote: > The problem is that ping sockets should not use udp_poll() in the first > place, and recent changes in UDP stack finally exposed this old bug. Acked-By: Lorenzo Colitti Tested-By: Lorenzo Colitti

Re: [PATCH v4 1/6] pinctrl: qcom: Add ipq8074 pinctrl driver

2017-06-03 Thread Christian Lamparter
On Saturday, June 3, 2017 12:57:50 PM CEST Varadarajan Narayanan wrote: > +- function: > + Usage: required > + Value type: > + Definition: Specify the alternative function to be configured for the > + specified pins. Functions are only valid for gpio pins. > +

Re: [PATCH v4 1/6] pinctrl: qcom: Add ipq8074 pinctrl driver

2017-06-03 Thread Christian Lamparter
On Saturday, June 3, 2017 12:57:50 PM CEST Varadarajan Narayanan wrote: > +- function: > + Usage: required > + Value type: > + Definition: Specify the alternative function to be configured for the > + specified pins. Functions are only valid for gpio pins. > +

Re: [PATCH v9 2/4] arm64: dts: hisi: add kirin pcie node

2017-06-03 Thread kbuild test robot
Hi Xiaowei, [auto build test ERROR on pci/next] [also build test ERROR on v4.12-rc3 next-20170602] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH v9 2/4] arm64: dts: hisi: add kirin pcie node

2017-06-03 Thread kbuild test robot
Hi Xiaowei, [auto build test ERROR on pci/next] [also build test ERROR on v4.12-rc3 next-20170602] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [kernel-hardening] Re: get_random_bytes returns bad randomness before seeding is complete

2017-06-03 Thread Daniel Micay
On 3 June 2017 at 18:54, Jeffrey Walton wrote: > On Sat, Jun 3, 2017 at 5:45 PM, Sandy Harris wrote: >> ... >> Of course this will fail on systems with no high-res timer. Are there >> still some of those? It might be done in about 1000 times as long on

Re: [kernel-hardening] Re: get_random_bytes returns bad randomness before seeding is complete

2017-06-03 Thread Daniel Micay
On 3 June 2017 at 18:54, Jeffrey Walton wrote: > On Sat, Jun 3, 2017 at 5:45 PM, Sandy Harris wrote: >> ... >> Of course this will fail on systems with no high-res timer. Are there >> still some of those? It might be done in about 1000 times as long on a >> system that lacks the realtime

Re: [PATCH] staging: rtl8723bs: fix a couple of spelling mistakes

2017-06-03 Thread Joe Perches
On Sat, 2017-06-03 at 23:21 +0100, Colin King wrote: > Replace cant with cannot, argumetns with arguments and > add line break to overly long DBG_871X statement. [] > diff --git a/drivers/staging/rtl8723bs/hal/hal_com.c > b/drivers/staging/rtl8723bs/hal/hal_com.c [] > @@ -26,7 +26,7 @@ u8

Re: [PATCH] staging: rtl8723bs: fix a couple of spelling mistakes

2017-06-03 Thread Joe Perches
On Sat, 2017-06-03 at 23:21 +0100, Colin King wrote: > Replace cant with cannot, argumetns with arguments and > add line break to overly long DBG_871X statement. [] > diff --git a/drivers/staging/rtl8723bs/hal/hal_com.c > b/drivers/staging/rtl8723bs/hal/hal_com.c [] > @@ -26,7 +26,7 @@ u8

[PATCH 4/4] Staging: ccree: cc_crypto_ctx.h: Added * on subsequent lines of a comment block

2017-06-03 Thread srishti sharma
Added *'s on subsequent lines of a comment block to fix coding style issues. Signed-off-by: srishti sharma --- drivers/staging/ccree/cc_crypto_ctx.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/ccree/cc_crypto_ctx.h

[PATCH 4/4] Staging: ccree: cc_crypto_ctx.h: Added * on subsequent lines of a comment block

2017-06-03 Thread srishti sharma
Added *'s on subsequent lines of a comment block to fix coding style issues. Signed-off-by: srishti sharma --- drivers/staging/ccree/cc_crypto_ctx.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/ccree/cc_crypto_ctx.h

[PATCH 3/4] Staging: ccree: cc_crypto_ctx.h: Fixed * alignment issues in a comment block

2017-06-03 Thread srishti sharma
Fixed the alignment of * in a comment block. Signed-off-by: srishti sharma --- drivers/staging/ccree/cc_crypto_ctx.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/ccree/cc_crypto_ctx.h b/drivers/staging/ccree/cc_crypto_ctx.h

[PATCH 2/4] Staging: ccree: cc_crypto_ctx.h: Fixed trailing */ issue in a comment block

2017-06-03 Thread srishti sharma
Fixed trailing */ style issue in a block comment. Signed-off-by: srishti sharma --- drivers/staging/ccree/cc_crypto_ctx.h | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/staging/ccree/cc_crypto_ctx.h

[PATCH 3/4] Staging: ccree: cc_crypto_ctx.h: Fixed * alignment issues in a comment block

2017-06-03 Thread srishti sharma
Fixed the alignment of * in a comment block. Signed-off-by: srishti sharma --- drivers/staging/ccree/cc_crypto_ctx.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/ccree/cc_crypto_ctx.h b/drivers/staging/ccree/cc_crypto_ctx.h index 27a5914..03164624

[PATCH 2/4] Staging: ccree: cc_crypto_ctx.h: Fixed trailing */ issue in a comment block

2017-06-03 Thread srishti sharma
Fixed trailing */ style issue in a block comment. Signed-off-by: srishti sharma --- drivers/staging/ccree/cc_crypto_ctx.h | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/staging/ccree/cc_crypto_ctx.h b/drivers/staging/ccree/cc_crypto_ctx.h index

[PATCH 1/4] Staging: ccree: cc_crypto_ctx.h: Added * on subsequent lines of a comment block.

2017-06-03 Thread srishti sharma
Added * on subsequent lines of a comment block. Signed-off-by: srishti sharma --- drivers/staging/ccree/cc_crypto_ctx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ccree/cc_crypto_ctx.h b/drivers/staging/ccree/cc_crypto_ctx.h index

[PATCH 1/4] Staging: ccree: cc_crypto_ctx.h: Added * on subsequent lines of a comment block.

2017-06-03 Thread srishti sharma
Added * on subsequent lines of a comment block. Signed-off-by: srishti sharma --- drivers/staging/ccree/cc_crypto_ctx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ccree/cc_crypto_ctx.h b/drivers/staging/ccree/cc_crypto_ctx.h index ac39d34..6ee51b8

[GIT PULL] Please pull NFS client bugfixes for Linux 4.12

2017-06-03 Thread Trond Myklebust
Hi Linus, The following changes since commit 08332893e37af6ae779367e78e444f8f9571511d: Linux 4.12-rc2 (2017-05-21 19:30:23 -0700) are available in the git repository at: git://git.linux-nfs.org/projects/trondmy/linux-nfs.git tags/nfs-for-4.12-2 for you to fetch changes up to

[GIT PULL] Please pull NFS client bugfixes for Linux 4.12

2017-06-03 Thread Trond Myklebust
Hi Linus, The following changes since commit 08332893e37af6ae779367e78e444f8f9571511d: Linux 4.12-rc2 (2017-05-21 19:30:23 -0700) are available in the git repository at: git://git.linux-nfs.org/projects/trondmy/linux-nfs.git tags/nfs-for-4.12-2 for you to fetch changes up to

[PATCH 0/4] Fixed comment coding style issues.

2017-06-03 Thread srishti sharma
This patchset contains a series of comment coding style issues fixes. srishti sharma (4): Staging: ccree: cc_crypto_ctx.h: Added * on subsequent lines of a comment block. Staging: ccree: cc_crypto_ctx.h: Fixed trailing */ issue in a comment block Staging: ccree: cc_crypto_ctx.h:

[PATCH 0/4] Fixed comment coding style issues.

2017-06-03 Thread srishti sharma
This patchset contains a series of comment coding style issues fixes. srishti sharma (4): Staging: ccree: cc_crypto_ctx.h: Added * on subsequent lines of a comment block. Staging: ccree: cc_crypto_ctx.h: Fixed trailing */ issue in a comment block Staging: ccree: cc_crypto_ctx.h:

[PATCH][V2] staging: ccree: fix spelling mistake: "chanined" -> "chained"

2017-06-03 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in SSI_LOG_ERR message Signed-off-by: Colin Ian King --- drivers/staging/ccree/ssi_buffer_mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH][V2] staging: ccree: fix spelling mistake: "chanined" -> "chained"

2017-06-03 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in SSI_LOG_ERR message Signed-off-by: Colin Ian King --- drivers/staging/ccree/ssi_buffer_mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ccree/ssi_buffer_mgr.c

[PATCH] taging: ccree: fix spelling mistake: "chanined" -> "chained"

2017-06-03 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in SSI_LOG_ERR message Signed-off-by: Colin Ian King --- drivers/staging/ccree/ssi_buffer_mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] taging: ccree: fix spelling mistake: "chanined" -> "chained"

2017-06-03 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in SSI_LOG_ERR message Signed-off-by: Colin Ian King --- drivers/staging/ccree/ssi_buffer_mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ccree/ssi_buffer_mgr.c

Re: [PATCH V1 2/2] pwm: pwm-qti-lpg: Add PWM driver for QTI LPG module

2017-06-03 Thread kbuild test robot
Hi Fenglin, [auto build test ERROR on j.anaszewski-leds/for-next] [also build test ERROR on v4.12-rc3 next-20170602] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH V1 2/2] pwm: pwm-qti-lpg: Add PWM driver for QTI LPG module

2017-06-03 Thread kbuild test robot
Hi Fenglin, [auto build test ERROR on j.anaszewski-leds/for-next] [also build test ERROR on v4.12-rc3 next-20170602] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: get_random_bytes returns bad randomness before seeding is complete

2017-06-03 Thread Jeffrey Walton
On Sat, Jun 3, 2017 at 5:45 PM, Sandy Harris wrote: > ... > Of course this will fail on systems with no high-res timer. Are there > still some of those? It might be done in about 1000 times as long on a > system that lacks the realtime library's nanosecond timer but has

Re: get_random_bytes returns bad randomness before seeding is complete

2017-06-03 Thread Jeffrey Walton
On Sat, Jun 3, 2017 at 5:45 PM, Sandy Harris wrote: > ... > Of course this will fail on systems with no high-res timer. Are there > still some of those? It might be done in about 1000 times as long on a > system that lacks the realtime library's nanosecond timer but has the > Posix standard

[PATCH] staging: rtl8723bs: fix another spelling mistake

2017-06-03 Thread Colin King
From: Colin Ian King I found one more spelling mistake in a DBG_8192C debug message, replace "avaliable" with "available", add some spacing between text and a number and split overly long line Signed-off-by: Colin Ian King ---

[PATCH] staging: rtl8723bs: fix another spelling mistake

2017-06-03 Thread Colin King
From: Colin Ian King I found one more spelling mistake in a DBG_8192C debug message, replace "avaliable" with "available", add some spacing between text and a number and split overly long line Signed-off-by: Colin Ian King --- drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c | 3 ++- 1 file

  1   2   3   4   5   6   >