[PATCH] quota: set init_needed flag only when successfully getting dquot

2019-04-27 Thread Chengguang Xu
Set init_needed flag only when successfully getting dquot, so that we can skip unnecessary subsequent operation. Signed-off-by: Chengguang Xu --- fs/quota/dquot.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index fc20e06c56ba..8d4c

Re: [RFC PATCH 2/7] x86/sci: add core implementation for system call isolation

2019-04-27 Thread Mike Rapoport
On Fri, Apr 26, 2019 at 09:49:56AM +0200, Peter Zijlstra wrote: > On Fri, Apr 26, 2019 at 12:45:49AM +0300, Mike Rapoport wrote: > > The initial SCI implementation allows access to any kernel data, but it > > limits access to the code in the following way: > > * calls and jumps to known code symbol

Re: [RFC PATCH 5/7] x86/mm/fault: hook up SCI verification

2019-04-27 Thread Mike Rapoport
On Fri, Apr 26, 2019 at 09:42:23AM +0200, Peter Zijlstra wrote: > On Fri, Apr 26, 2019 at 12:45:52AM +0300, Mike Rapoport wrote: > > If a system call runs in isolated context, it's accesses to kernel code and > > data will be verified by SCI susbsytem. > > > > Signed-off-by: Mike Rapoport > > ---

Re: [RFC PATCH 0/7] x86: introduce system calls addess space isolation

2019-04-27 Thread Mike Rapoport
On Thu, Apr 25, 2019 at 05:30:13PM -0700, Andy Lutomirski wrote: > On Thu, Apr 25, 2019 at 2:46 PM Mike Rapoport wrote: > > > > Hi, > > > > Address space isolation has been used to protect the kernel from the > > userspace and userspace programs from each other since the invention of the > > virtu

Re: [RFC PATCH 0/7] x86: introduce system calls addess space isolation

2019-04-27 Thread Mike Rapoport
On Fri, Apr 26, 2019 at 07:41:09AM -0700, Dave Hansen wrote: > On 4/25/19 2:45 PM, Mike Rapoport wrote: > > The idea behind the prevention is that if we fault in pages in the > > execution path, we can compare target address against the kernel symbol > > table. So if we're in a function, we allow

Re: [PATCH] mm: Fix kobject memleak in SLUB

2019-04-27 Thread Pekka Enberg
On 28/04/2019 2.40, Tobin C. Harding wrote: Currently error return from kobject_init_and_add() is not followed by a call to kobject_put(). This means there is a memory leak. Add call to kobject_put() in error path of kobject_init_and_add(). Signed-off-by: Tobin C. Harding Reviewed-by: Pe

Re: [v3] ARM: rockchip: Fix a leaked reference by adding of_node_put() in two functions

2019-04-27 Thread Markus Elfring
> arch/arm/mach-rockchip/platsmp.c | 12 ++-- > arch/arm/mach-rockchip/pm.c | 2 ++ * Would a commit subject variant be nicer? * I dare to present a reminder for a recurring development topic. How do you think about to adjust the exception handling in these function implementati

RE: [PATCH] mailbox: imx: use devm_platform_ioremap_resource() to simplify code

2019-04-27 Thread Anson Huang
Ping... > -Original Message- > From: Anson Huang > Sent: Monday, April 1, 2019 1:15 PM > To: jassisinghb...@gmail.com; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pengutronix.de; feste...@gmail.com; > linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infradead.org > Cc: dl-lin

Re: [PATCH v3] sound: isa: gus: fix misuse of %x

2019-04-27 Thread Takashi Iwai
On Fri, 26 Apr 2019 05:16:24 +0200, Fuqian Huang wrote: > > Pointers should be printed with %p or %px rather than > cast to long type and printed with %lx. > Drop the address printing. > > Signed-off-by: Fuqian Huang Applied now. Thanks. Takashi

RE: [PATCH] pwm: imx27: use devm_platform_ioremap_resource() to simplify code

2019-04-27 Thread Anson Huang
Ping... > -Original Message- > From: Mukesh Ojha [mailto:mo...@codeaurora.org] > Sent: Monday, April 1, 2019 4:01 PM > To: Anson Huang ; thierry.red...@gmail.com; > shawn...@kernel.org; s.ha...@pengutronix.de; ker...@pengutronix.de; > feste...@gmail.com; linux-...@vger.kernel.org; linux-ar

RE: [PATCH] irqchip/imx-irqsteer: use devm_platform_ioremap_resource() to simplify code

2019-04-27 Thread Anson Huang
Ping... > -Original Message- > From: Mukesh Ojha [mailto:mo...@codeaurora.org] > Sent: Monday, April 1, 2019 3:47 PM > To: Anson Huang ; t...@linutronix.de; > ja...@lakedaemon.net; marc.zyng...@arm.com; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pengutronix.de; feste...@gmail.co

RE: [PATCH] input: imx6ul_tsc: use devm_platform_ioremap_resource() to simplify code

2019-04-27 Thread Anson Huang
Ping... > -Original Message- > From: Mukesh Ojha [mailto:mo...@codeaurora.org] > Sent: Monday, April 1, 2019 4:02 PM > To: Anson Huang ; dmitry.torok...@gmail.com; > shawn...@kernel.org; s.ha...@pengutronix.de; ker...@pengutronix.de; > feste...@gmail.com; linux-in...@vger.kernel.org; linux

[PATCH 0/6] fix some bugs and add some features in stmmac

2019-04-27 Thread Biao Huang
This series fix some bugs and add some features in stmmac driver. 5 patches are for common stmmac or dwmac4: 1. update rx tail pointer to fix rx dma hang issue. 2. change condition for mdc clock to fix csr_clk

[PATCH] ALSA: usx2y: fix a memory leak bug

2019-04-27 Thread Wenwen Wang
In usX2Y_In04_init(), a new urb is firstly created through usb_alloc_urb() and saved to 'usX2Y->In04urb'. Then, a buffer is allocated through kmalloc() and saved to 'usX2Y->In04Buf'. After the urb is initialized, a sanity check is performed for the endpoint in the urb by invoking usb_urb_ep_type_ch

[RESEND PATCH v2] lib/scatterlist: Remove leftover from sg_page_iter comment

2019-04-27 Thread Gal Pressman
Commit d901b2760dc6 ("lib/scatterlist: Provide a DMA page iterator") added the sg DMA iterator but a leftover remained in the sg_page_iter documentation as you cannot get the page dma address (only the page itself), fix it. Cc: Jason Gunthorpe Signed-off-by: Gal Pressman Reviewed-by: Mukesh Ojha

linux-next: Fixes tag needs some work in the input-current tree

2019-04-27 Thread Stephen Rothwell
Hi Dmitry, In commit 3a349763cf11 ("Input: synaptics-rmi4 - write config register values to the right offset") Fixes tag Fixes: ff8f83708b3e (Input: synaptics-rmi4 - add support for 2D has these problem(s): - Subject has leading but no trailing parentheses Please do not split Fixes ta

<    1   2   3   4   5