Re: [PATCH v5 17/32] x86/mm: Add support to access boot related data in the clear

2017-05-15 Thread Borislav Petkov
On Tue, Apr 18, 2017 at 04:19:21PM -0500, Tom Lendacky wrote: > Boot data (such as EFI related data) is not encrypted when the system is > booted because UEFI/BIOS does not run with SME active. In order to access > this data properly it needs to be mapped decrypted. > > The early_memremap() suppor

Re: [RFC][PATCH 0/5] perf/tracing/cpuhotplug: Fix locking order

2017-05-15 Thread Paul E. McKenney
On Mon, May 15, 2017 at 11:03:18AM +0200, Peter Zijlstra wrote: > On Sat, May 13, 2017 at 06:40:03AM -0700, Paul E. McKenney wrote: > > On Fri, May 12, 2017 at 05:34:48PM -0400, Steven Rostedt wrote: > > > On Fri, 12 May 2017 21:49:56 +0200 > > > > [ . . . ] > > > > > This means that text_mutex,

[Kernel.org Helpdesk #40777] Re: Linux 4.12-rc1 (file locations)

2017-05-15 Thread Konstantin Ryabitsev via RT
On 2017-05-15 14:34:56, francoisvalen...@gmail.com wrote: > It doesn't work with Firefox-53.0. After quite a long time while > firefox > uses 100% of CPU, I finally get a text file and not a gzip file of the > patch for 4.12-rc1. It was almost instantaneous previously. I don't > see > this as a pro

[Kernel.org Helpdesk #40777] Re: Linux 4.12-rc1 (file locations)

2017-05-15 Thread Konstantin Ryabitsev via RT
On 2017-05-14 13:59:22, rdun...@infradead.org wrote: > On 05/13/17 13:57, Linus Torvalds wrote: > > One thing worth noting - I haven't uploaded diffs or tar-balls for > > this rc. Those should now be automagically generated by kernel.org for > > the rc's, but that also means that they won't be sign

Re: [PATCH] net: x25: fix one potential use-after-free issue

2017-05-15 Thread David Miller
From: linzhang Date: Mon, 15 May 2017 12:12:49 +0800 > The function x25_init is not properly unregister related resources > on error handler.It is will result in kernel oops if x25_init init > failed, so add right unregister call on error handler. > > Signed-off-by: linzhang I think we need to

Re: Use case for TASKS_RCU

2017-05-15 Thread Steven Rostedt
On Mon, 15 May 2017 11:23:54 -0700 "Paul E. McKenney" wrote: > Hello! > > The question of the use case for TASKS_RCU came up, and here is my > understanding. Steve will not be shy about correcting any misconceptions > I might have. ;-) > > The use case is to support freeing of trampolines use

[PATCH 0/3 linux-next] fs/affs: add blocknumber to stat

2017-05-15 Thread Fabian Frederick
stat doesn't give any block number as it's filesystem specific. This small patchset adds getattr wrapper to return i_blkcnt calculated during affs_iget() and does some clean-up in affs.h Fabian Frederick (3): fs/affs: normalize inode function prototypes fs/affs: remove affs_set_blocksize()

[PATCH 1/3 linux-next] fs/affs: normalize inode function prototypes

2017-05-15 Thread Fabian Frederick
Use the same style as other function blocks Signed-off-by: Fabian Frederick --- fs/affs/affs.h | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/fs/affs/affs.h b/fs/affs/affs.h index 773749b..87b17b5 100644 --- a/fs/affs/affs.h +++ b/fs/affs/affs.h @@ -179,14 +

[PATCH 2/3 linux-next] fs/affs: remove affs_set_blocksize()

2017-05-15 Thread Fabian Frederick
That function was only calling sb_set_blocksize() Signed-off-by: Fabian Frederick --- fs/affs/affs.h | 5 - fs/affs/super.c | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/fs/affs/affs.h b/fs/affs/affs.h index 87b17b5..fd99f28 100644 --- a/fs/affs/affs.h +++ b/fs/af

Re: [PATCH v2 10/18] arm64: dts: meson-gxbb: Fix node order

2017-05-15 Thread Andreas Färber
Am 15.05.2017 um 10:17 schrieb Neil Armstrong: > Like a previous attempt, I'm not OK with such rework since it will break > bisect and add complexity for new patches handling. > > The order is not alphabetically ordered, live with it. No. I was the one to add GXBB, so you live with my preference

[PATCH 3/3 linux-next] fs/affs: stat: return block number

2017-05-15 Thread Fabian Frederick
stat doesn't give any block number as it's filesystem specific. Add getattr wrapper to return i_blkcnt calculated during affs_iget() Signed-off-by: Fabian Frederick --- fs/affs/affs.h | 2 ++ fs/affs/file.c | 1 + fs/affs/inode.c | 11 +++ 3 files changed, 14 insertions(+) diff --g

Re: [PATCH] clk: bcm2835: Correct the prediv logic

2017-05-15 Thread Eric Anholt
Stefan Wahren writes: > Hi Eric, > >> Eric Anholt hat am 15. Mai 2017 um 19:35 geschrieben: >> >> >> From: Phil Elwell >> >> If a clock has the prediv flag set, both the integer and fractional >> parts must be scaled when calculating the resulting frequency. >> >> Signed-off-by: Phil Elwell

Re: [RFC][PATCH 0/5] perf/tracing/cpuhotplug: Fix locking order

2017-05-15 Thread Steven Rostedt
On Fri, 12 May 2017 21:49:56 +0200 Peter Zijlstra wrote: > In general we avoid nested locking in the kernel. Nested locking makes > an absolute mockery of locking rules and what all gets protected. I'm not against the goal of having get_online_cpus() not be nested, but I don't agree with the abo

[PATCH] scripts: check.c fix compile error

2017-05-15 Thread Shuah Khan
Fix the following compile error: checks.c: In function ‘check_simple_bus_reg’: checks.c:876:41: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘uint64_t {aka long long unsigned int}’ [-Werror=format=] snprintf(unit_addr, sizeof(unit_addr), "%lx", reg);

Re: [PATCH v2 00/18] ARM64: meson: DT cleanups

2017-05-15 Thread Andreas Färber
Hi Neil, Am 15.05.2017 um 10:16 schrieb Neil Armstrong: > Hi Andreas, > > On 05/13/2017 04:33 PM, Andreas Färber wrote: >> Hello Kevin, >> >> This series fixes several cosmetic issues, on top of your for-next branch. >> >> Patches 3-6 rename a node, the rest should all be non-functional changes.

[PATCH 0/6] PNP: Adjustments for four function implementations

2017-05-15 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 15 May 2017 21:03:21 +0200 A few update suggestions were taken into account from static source code analysis. Markus Elfring (6): Delete an error message for a failed memory allocation in pnp_alloc() Improve a size determination in pnp_alloc_dev() Improve a

Re: [patch 17/18] sched: Enable might_sleep() checks early

2017-05-15 Thread Thomas Gleixner
On Mon, 15 May 2017, Steven Rostedt wrote: > On Sun, 14 May 2017 20:27:33 +0200 > Thomas Gleixner wrote: > > > might_sleep() checks are enabled after the boot process is done. That hides > > bugs in the smp bringup and driver initialization code. > > > > Enable it right when the scheduler start

[PATCH 1/6] PNP: Delete an error message for a failed memory allocation in pnp_alloc()

2017-05-15 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 15 May 2017 19:35:29 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Sign

Re: frv build failure in mainline kernel

2017-05-15 Thread Matthias Kaehlcke
El Mon, May 15, 2017 at 10:02:15AM -0700 Guenter Roeck ha dit: > Hi all, > > frv fails to build in mainline with the following build errors. > > kernel/built-in.o: In function `__do_softirq': > (.text+0x6460): relocation truncated to fit: R_FRV_GPREL12 against symbol > `jiffies' defined in *ABS*

[PATCH RESEND 0/1] sched/rt: minimize rq->lock contention in, do_sched_rt_period_timer()

2017-05-15 Thread Dave Kleikamp
Peter, Ingo, I sent this patch about a month ago and got no response. https://patchwork.kernel.org/patch/9684545/ Does it seem reasonable? I'm not sure if taking rt_runtime_lock is strictly necessary, but it's a big improvement to taking rq->lock every pass through the loop. Is there another way

[PATCH 2/6] PNP: Improve a size determination in pnp_alloc_dev()

2017-05-15 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 15 May 2017 19:45:23 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Mar

[PATCH] video: fbdev: omap2: omapfb: displays: panel-dsi-cm: Use time comparison kernel macro.

2017-05-15 Thread Karim Eshapa
Use time_before_eq() kernel macro for time comparison more safe. Signed-off-by: Karim Eshapa --- drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c b/drivers/video/

[PATCH RESEND 1/1] sched/rt: minimize rq->lock contention in, do_sched_rt_period_timer()

2017-05-15 Thread Dave Kleikamp
With CONFIG_RT_GROUP_SCHED defined, do_sched_rt_period_timer() sequentially takes each cpu's rq->lock. On a large, busy system, the cumulative time it takes to acquire each lock can be excessive, even triggering a watchdog timeout. If rt_rq_rt_time and rt_rq->rt_nr_running are both zero, this func

[PATCH 3/6] PNP: Improve a size determination in pnp_clone_dependent_set()

2017-05-15 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 15 May 2017 19:52:26 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Mar

Re: [patch 2/2] MM: allow per-cpu vmstat_threshold and vmstat_worker configuration

2017-05-15 Thread Marcelo Tosatti
On Fri, May 12, 2017 at 11:57:15AM -0500, Christoph Lameter wrote: > On Fri, 12 May 2017, Marcelo Tosatti wrote: > > > > What exactly is the issue you are seeing and want to address? I think we > > > have similar aims and as far as I know the current situation is already > > > good enough for what

[PATCH 4/6] PNP: Delete an error message for a failed memory allocation in pnp_clone_dependent_set()

2017-05-15 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 15 May 2017 20:00:38 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Sign

[PATCH 5/6] PNP: Improve a size determination in quirk_awe32_add_ports()

2017-05-15 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 15 May 2017 20:32:12 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Mar

Re: [PATCH] rt2x00: improve calling conventions for register accessors

2017-05-15 Thread Daniel Golle
On Mon, May 15, 2017 at 10:40:52AM -0400, David Miller wrote: > From: Arnd Bergmann > Date: Mon, 15 May 2017 16:36:45 +0200 > > > On Mon, May 15, 2017 at 4:28 PM, Stanislaw Gruszka > > wrote: > >> On Mon, May 15, 2017 at 03:46:55PM +0200, Arnd Bergmann wrote: > >>> With CONFIG_KASAN enabled and

[PATCH 6/6] PNP: Delete an error message for a failed memory allocation in quirk_awe32_add_ports()

2017-05-15 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 15 May 2017 20:36:35 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Sign

Re: Re: [RFC 0/6] optimize ctx switch with rb-tree

2017-05-15 Thread David Carrillo-Cisneros
> So, I see that event_sched_out() function (4.11.0-rc6+) additionally to > disabling an active (PERF_EVENT_STATE_ACTIVE) event in HW also performs > updates of tstamp fields for inactive (PERF_EVENT_STATE_INACTIVE) events > assigned to "the other" cpus (different from the one that is executing the

[RFC] perf: Add "-f" and "-F" flags to watch a "/sys" style file

2017-05-15 Thread Luck, Tony
From: Tony Luck Thomas Gleixner is encouraging us to extend the /sys/fs/resctrl file system to include monitoring data (LLC occupancy, memory bandwidth) from the (weird) counters that come as part of "Resource Director Technology". See Intel Software Developer Manual volume 3, section 17.17.1. O

Re: [PATCH 3/3] coresight: etb10: Improve a size determination in etb_alloc_buffer()

2017-05-15 Thread SF Markus Elfring
>> +++ b/drivers/hwtracing/coresight/coresight-etb10.c >> @@ -278,8 +278,7 @@ static void *etb_alloc_buffer(struct coresight_device >> *csdev, int cpu, >> if (cpu == -1) >> cpu = smp_processor_id(); >> node = cpu_to_node(cpu); >> - >> - buf = kzalloc_node(size

Re: [PATCH v2 0/5] mtd: nand: gpmi: add i.MX 7 support

2017-05-15 Thread Boris Brezillon
On Fri, 21 Apr 2017 18:23:33 -0700 Stefan Agner wrote: > This patchset adds support for i.MX 7 SoC for the GPMI NAND controller. > There have been similar patchsets already: > https://lkml.org/lkml/2016/2/23/912 > > However, this patchset does not make use of any of the new features. > The curre

Re: [v3 0/9] parallelized "struct page" zeroing

2017-05-15 Thread Michal Hocko
On Mon 15-05-17 14:12:10, Pasha Tatashin wrote: > Hi Michal, > > After looking at your suggested memblock_virt_alloc_core() change again, I > decided to keep what I have. I do not want to inline > memblock_virt_alloc_internal(), because it is not a performance critical > path, and by inlining it w

Re: [PATCH 17/17] fs: switch ->s_uuid to uuid_t

2017-05-15 Thread Amir Goldstein
On Mon, May 15, 2017 at 6:43 PM, Christoph Hellwig wrote: > For some file systems we still memcpy into it, but in various places this > already allows us to use the proper uuid helpers. More to come.. > > Signed-off-by: Christoph Hellwig > --- > --- a/fs/xfs/xfs_mount.c > +++ b/fs/xfs/xfs_mount

Re: Question on fscrypt_d_revalidate() and fstest generic/429

2017-05-15 Thread Eric Biggers
Hi Richard, On Mon, May 15, 2017 at 04:39:23PM +0200, Richard Weinberger wrote: > Hi! > > on UBIFS, fstest generic/429 fails due to -ENFILE because the internal orphan > list reaches the maximum size. > When you unlink a file, the inode goes into the orphan list, in UBIFS' > evict() function > i

Re: [PATCHv5, REBASED 9/9] x86/mm: Allow to have userspace mappings above 47-bits

2017-05-15 Thread Kirill A. Shutemov
On Mon, May 15, 2017 at 10:49:43PM +0800, kbuild test robot wrote: > Hi Kirill, > > [auto build test ERROR on linus/master] > [also build test ERROR on v4.12-rc1 next-20170515] > [cannot apply to tip/x86/core xen-tip/linux-next] > [if your patch is applied to the wrong git tree

races between blk-cgroup operations and I/O scheds in blk-mq (?)

2017-05-15 Thread Paolo Valente
Hi Tejun, Jens, and anyone else possibly interested in this issue, I have realized that, while blk-cgroup operation are of course protected by the usual request_queue lock, I/O scheduler operations aren't any longer protected by this same lock in blk-mq. They are protected by a finer-grained sched

Re: Question on fscrypt_d_revalidate() and fstest generic/429

2017-05-15 Thread Richard Weinberger
Eric, Am 15.05.2017 um 21:45 schrieb Eric Biggers: >> If a directory is encrypted, evict() is not being called although the inode >> has no >> users anymore. >> It turned out evict() is not being called because fscrypt's >> fscrypt_d_revalidate() >> function. >> When I omit fscrypt_set_d_op() in

Re: [PATCH] kmod: don't load module unless req process has CAP_SYS_MODULE

2017-05-15 Thread Florian Westphal
Eric W. Biederman wrote: > If loading the conntrack module changes the semantics of packet > processing when nothing is configured that is a bug in the conntrack > module. Thats the default behaviour since forever. modprobe nf_conntrack_ipv4 -- module_init registers netfilter hooks and starts do

[GIT] Networking

2017-05-15 Thread David Miller
1) Track alignment in BPF verifier so that legitimate programs won't be rejected on !CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS architectures. 2) Make tail calls work properly in arm64 BPF JIT, from Deniel Borkmann. 3) Make the configuration and semantics Generic XDP make more sense and

Re: [PATCH 1/3] ipc/sem.c: remove sem_base, embed struct sem

2017-05-15 Thread Andrew Morton
On Mon, 15 May 2017 19:19:10 +0200 Manfred Spraul wrote: > sma->sem_base is initialized with > sma->sem_base = (struct sem *) &sma[1]; > > The current code has four problems: > - There is an unnecessary pointer dereference - sem_base is not needed. > - Alignment for struct sem only works

Re: [PATCHv1.1] Documentation: of: Fix grammar usage in graph bindings

2017-05-15 Thread Rob Herring
On Mon, May 08, 2017 at 11:34:25AM +0100, Kieran Bingham wrote: > From: Kieran Bingham > > Some minor tweaks to the language and formatting used in the > documentation identified while I was reading up on the subject matter. > > Signed-off-by: Kieran Bingham > --- > > Appologies for the resend

Re: [PATCH v3] dt-bindings: add vendor prefix for bananapi

2017-05-15 Thread Rob Herring
On Wed, May 10, 2017 at 12:12:31AM +0800, sean.w...@mediatek.com wrote: > From: Sean Wang > > Add BIPAI KEJI LIMITED which is a company dedicating to design and > manufacture bananapi open hardware. > > Website: http://www.banana-pi.org/ > > Signed-off-by: Sean Wang > --- > Documentation/devi

Re: FIO performance regression in 4.11 kernel vs. 4.10 kernel observed on ARM64

2017-05-15 Thread Scott Branden
Hi Jens, Details on bisecting inline. On 17-05-08 08:28 AM, Jens Axboe wrote: On 05/08/2017 09:24 AM, Will Deacon wrote: On Mon, May 08, 2017 at 08:08:55AM -0600, Jens Axboe wrote: On 05/08/2017 05:19 AM, Arnd Bergmann wrote: On Mon, May 8, 2017 at 1:07 PM, Will Deacon wrote: On Fri, May

Re: [PATCH 1/2] devicetree: add Itead vendor prefix

2017-05-15 Thread Rob Herring
On Wed, May 10, 2017 at 12:31:02PM +, codekip...@gmail.com wrote: > From: Marcus Cooper > > Add the "itead" vendor prefix for ITEAD Intelligent Systems Co.Ltd. > > Signed-off-by: Marcus Cooper > --- > Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + > 1 file changed, 1 insertio

Re: Use case for TASKS_RCU

2017-05-15 Thread Paul E. McKenney
On Mon, May 15, 2017 at 02:48:10PM -0400, Steven Rostedt wrote: > On Mon, 15 May 2017 11:23:54 -0700 > "Paul E. McKenney" wrote: > > > Hello! > > > > The question of the use case for TASKS_RCU came up, and here is my > > understanding. Steve will not be shy about correcting any misconceptions >

Re: [RFC] perf: Add "-f" and "-F" flags to watch a "/sys" style file

2017-05-15 Thread Luck, Tony
On Mon, May 15, 2017 at 12:27:03PM -0700, Luck, Tony wrote: > From: Tony Luck > > Thomas Gleixner is encouraging us to extend the /sys/fs/resctrl file system > to include monitoring data (LLC occupancy, memory bandwidth) from the > (weird) counters that come as part of "Resource Director Technolo

Re: [PATCH 2/4] dt-bindings: power: battery: add constant-charge-current-max-microamp property

2017-05-15 Thread Rob Herring
On Thu, May 11, 2017 at 03:42:18PM +0200, Quentin Schulz wrote: > This adds the constant-charge-current-max-microamp property to the list > of optional properties of the battery. > > The constant charge current is critical for batteries as they can't > handle all charge currents. > > Signed-off-b

Re: [PATCH v2 06/18] arm64: dts: meson-gxl-s905x-khadas-vim: Fix Wifi node name

2017-05-15 Thread Martin Blumenstingl
On Sat, May 13, 2017 at 4:33 PM, Andreas Färber wrote: > bcrmf -> brcmf -> wifi > > Fixes: e15d2774b8c0 ("ARM64: dts: meson-gxl: add support for the Khadas VIM > board") > Cc: Martin Blumenstingl > Signed-off-by: Andreas Färber Reviewed-by: Martin Blumenstingl > --- > v2: New > > arch/arm6

Re: [PATCH v2 00/18] ARM64: meson: DT cleanups

2017-05-15 Thread Martin Blumenstingl
On Mon, May 15, 2017 at 9:10 PM, Andreas Färber wrote: > Hi Neil, > > Am 15.05.2017 um 10:16 schrieb Neil Armstrong: >> Hi Andreas, >> >> On 05/13/2017 04:33 PM, Andreas Färber wrote: >>> Hello Kevin, >>> >>> This series fixes several cosmetic issues, on top of your for-next branch. >>> >>> Patche

Re: [PATCH 1/3] [media] si2157: get chip id during probing

2017-05-15 Thread Andreas Kemnade
Hi, On Sun, 23 Apr 2017 15:19:21 +0300 Antti Palosaari wrote: > On 03/16/2017 12:22 AM, Andreas Kemnade wrote: > > If the si2157 is behind a e.g. si2168, the si2157 will > > at least in some situations not be readable after the si268 > > got the command 0101. It still accepts commands but the an

[PATCH] dmi: mark all struct dmi_system_id instances const

2017-05-15 Thread Christoph Hellwig
... and __initconst if applicable. Based on similar work for an older kernel in the Grsecurity patch. Signed-off-by: Christoph Hellwig --- arch/x86/kernel/acpi/boot.c | 4 ++-- arch/x86/kernel/apm_32.c| 2 +- arch/x86/kernel/io_delay.c

Re: [PATCH] sched: remove sched_find_first_bit()

2017-05-15 Thread Arnd Bergmann
On Mon, May 15, 2017 at 6:17 PM, Yury Norov wrote: > On Mon, May 15, 2017 at 06:06:18PM +0200, Arnd Bergmann wrote: >> On Mon, May 15, 2017 at 5:47 PM, Yury Norov >> wrote: >> > On Sun, May 14, 2017 at 08:09:17PM +0200, Ingo Molnar wrote: >> > >> > I also think that sched_find_first_bit() may be

[PATCH] kernel: mark all struct k_clock instances const

2017-05-15 Thread Christoph Hellwig
And keep a pointer to it instead of a copy in the posix_clocks array. Based on similar changes in the Grsecurity patchset, but redone from scratch including a few tweaks. Signed-off-by: Christoph Hellwig --- drivers/char/mmtimer.c | 4 +- include/linux/posix-timers.h | 7 +- kerne

[PATCH 14/18] xen/pvcalls: disconnect and module_exit

2017-05-15 Thread Stefano Stabellini
Implement backend_disconnect. Call pvcalls_back_release_active on active sockets and pvcalls_back_release_passive on passive sockets. Implement module_exit by calling backend_disconnect on frontend connections. Signed-off-by: Stefano Stabellini CC: boris.ostrov...@oracle.com CC: jgr...@suse.com

[PATCH 00/18] introduce the Xen PV Calls backend

2017-05-15 Thread Stefano Stabellini
Hi all, this series introduces the backend for the newly introduced PV Calls procotol. PV Calls is a paravirtualized protocol that allows the implementation of a set of POSIX functions in a different domain. The PV Calls frontend sends POSIX function calls to the backend, which implements them an

[PATCH 10/18] xen/pvcalls: implement listen command

2017-05-15 Thread Stefano Stabellini
Call inet_listen to implement the listen command. Signed-off-by: Stefano Stabellini CC: boris.ostrov...@oracle.com CC: jgr...@suse.com --- drivers/xen/pvcalls-back.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/drivers/xen/pvcalls-back.c b/drivers/x

[PATCH 15/18] xen/pvcalls: introduce the ioworker

2017-05-15 Thread Stefano Stabellini
We have one ioworker per cpu core. Each ioworker gets assigned active sockets randomly. Once a socket is assigned to an ioworker, it remains tied to it until is released. Each ioworker goes through the list of outstanding read/write requests by walking a list of struct sock_mapping. Once a request

[PATCH 08/18] xen/pvcalls: implement connect command

2017-05-15 Thread Stefano Stabellini
Allocate a socket. Keep track of socket <-> ring mappings with a new data structure, called sock_mapping. Implement the connect command by calling inet_stream_connect, and mapping the new indexes page and data ring. Associate the socket to an ioworker randomly. When an active socket is closed (sk_

[PATCH 17/18] xen/pvcalls: implement write

2017-05-15 Thread Stefano Stabellini
When the other end notifies us that there is data to be written (pvcalls_back_conn_event), add the relative sock_mapping to the ioworker list, increment the io and write counters, and schedule the ioworker. Implement the write function called by ioworker by reading the data from the data ring, wri

[PATCH 18/18] xen: introduce a Kconfig option to enable the pvcalls backend

2017-05-15 Thread Stefano Stabellini
Also add pvcalls-back to the Makefile. Signed-off-by: Stefano Stabellini CC: boris.ostrov...@oracle.com CC: jgr...@suse.com --- drivers/xen/Kconfig | 12 drivers/xen/Makefile | 1 + 2 files changed, 13 insertions(+) diff --git a/drivers/xen/Kconfig b/drivers/xen/Kconfig index f15

[PATCH 03/18] xen/pvcalls: initialize the module and register the xenbus backend

2017-05-15 Thread Stefano Stabellini
The pvcalls backend has one ioworker per cpu: the ioworkers are implemented as a cpu bound workqueue, and will deal with the actual socket and data ring reads/writes. ioworkers are global: we only have one set for all the frontends. They process requests on their wqs list in order, once they are d

[PATCH 16/18] xen/pvcalls: implement read

2017-05-15 Thread Stefano Stabellini
When an active socket has data available, add the relative sock_mapping to the ioworker list, increment the io and read counters, and schedule the ioworker. Implement the read function by reading from the socket, writing the data to the data ring. Set in_error on error. Signed-off-by: Stefano St

[PATCH v3] staging: rtl8188eu: fix indentation error

2017-05-15 Thread Remco Verhoef
Fixes a 'code indent should use tabs where possible' checkpatch code style error by changing whitespace into tabs. Signed-off-by: Remco Verhoef --- Changes in v2: - More expressive commit message and subject Changes in v3: - Align with struct, to line things up better drivers/staging/rtl818

[PATCH 12/18] xen/pvcalls: implement poll command

2017-05-15 Thread Stefano Stabellini
Implement poll on passive sockets by requesting a delayed response with mappass->reqcopy, and reply back when there is data on the passive socket. Poll on active socket is unimplemented as by the spec, as the frontend should just wait for events and check the indexes on the indexes page. Only sup

[PATCH 02/18] xen/pvcalls: introduce the pvcalls xenbus backend

2017-05-15 Thread Stefano Stabellini
Introduce a xenbus backend for the pvcalls protocol, as defined by https://xenbits.xen.org/docs/unstable/misc/pvcalls.html. This patch only adds the stubs, the code will be added by the following patches. Signed-off-by: Stefano Stabellini CC: boris.ostrov...@oracle.com CC: jgr...@suse.com --- d

[PATCH 13/18] xen/pvcalls: implement release command

2017-05-15 Thread Stefano Stabellini
Release both active and passive sockets. For active sockets, make sure to avoid possible conflicts with the ioworker reading/writing to those sockets concurrently. Set map->release to let the ioworker know atomically that the socket will be released soon, then wait until the ioworker removed the so

[PATCH 09/18] xen/pvcalls: implement bind command

2017-05-15 Thread Stefano Stabellini
Allocate a socket. Track the allocated passive sockets with a new data structure named sockpass_mapping. It contains an unbound workqueue to schedule delayed work for the accept and poll commands. It also has a reqcopy field to be used to store a copy of a request for delayed work. Reads/writes to

[PATCH 11/18] xen/pvcalls: implement accept command

2017-05-15 Thread Stefano Stabellini
Implement the accept command by calling inet_accept. To avoid blocking in the kernel, call inet_accept(O_NONBLOCK) from a workqueue, which get scheduled on sk_data_ready (for a passive socket, it means that there are connections to accept). Use the reqcopy field to store the request. Accept the ne

[PATCH 01/18] xen: introduce the pvcalls interface header

2017-05-15 Thread Stefano Stabellini
Introduce the C header file which defines the PV Calls interface. It is imported from xen/include/public/io/pvcalls.h. Signed-off-by: Stefano Stabellini CC: konrad.w...@oracle.com CC: boris.ostrov...@oracle.com CC: jgr...@suse.com --- include/xen/interface/io/pvcalls.h | 117

[PATCH 07/18] xen/pvcalls: implement socket command

2017-05-15 Thread Stefano Stabellini
Just reply with success to the other end for now. Delay the allocation of the actual socket to bind and/or connect. Signed-off-by: Stefano Stabellini CC: boris.ostrov...@oracle.com CC: jgr...@suse.com --- drivers/xen/pvcalls-back.c | 31 ++- 1 file changed, 30 inserti

[PATCH 06/18] xen/pvcalls: handle commands from the frontend

2017-05-15 Thread Stefano Stabellini
When the other end notifies us that there are commands to be read (pvcalls_back_event), wake up the backend thread to parse the command. The command ring works like most other Xen rings, so use the usual ring macros to read and write to it. The functions implementing the commands are empty stubs f

[PATCH 05/18] xen/pvcalls: connect to a frontend

2017-05-15 Thread Stefano Stabellini
Introduce a per-frontend data structure named pvcalls_back_priv. It contains pointers to the command ring, its event channel, a list of active sockets and a tree of passive sockets (passing sockets need to be looked up from the id on listen, accept and poll commands, while active sockets only on re

[PATCH 04/18] xen/pvcalls: xenbus state handling

2017-05-15 Thread Stefano Stabellini
Introduce the code to handle xenbus state changes. Implement the probe function for the pvcalls backend. Write the supported versions, max-page-order and function-calls nodes to xenstore, as required by the protocol. Introduce stub functions for disconnecting/connecting to a frontend. Signed-off

Re: [v3 0/9] parallelized "struct page" zeroing

2017-05-15 Thread Pasha Tatashin
On 05/15/2017 03:38 PM, Michal Hocko wrote: On Mon 15-05-17 14:12:10, Pasha Tatashin wrote: Hi Michal, After looking at your suggested memblock_virt_alloc_core() change again, I decided to keep what I have. I do not want to inline memblock_virt_alloc_internal(), because it is not a performanc

Re: [PATCH 2/4] dt-bindings: Document the Raspberry Pi Touchscreen nodes.

2017-05-15 Thread Rob Herring
On Thu, May 11, 2017 at 04:56:23PM -0700, Eric Anholt wrote: > The Raspberry Pi 7" Touchscreen is a DPI touchscreen panel with > DSI->DPI bridge and touchscreen controller integrated, that connects > to the Raspberry Pi through its 15-pin "DSI" connector (some lines are > DSI, some lines are I2C).

Re: [PATCH] nvmem: rockchip-efuse: add support for rk322x-efuse

2017-05-15 Thread Rob Herring
On Fri, May 12, 2017 at 10:44:20AM +0800, Finley Xiao wrote: > This adds the necessary data for handling eFuse on the rk322x. > > Signed-off-by: Finley Xiao > --- > Documentation/devicetree/bindings/nvmem/rockchip-efuse.txt | 1 + > drivers/nvmem/rockchip-efuse.c | 4

Re: [PATCH] mtd: nand: make nand_ooblayout_lp_hamming_ops static

2017-05-15 Thread Boris Brezillon
On Thu, 4 May 2017 13:11:00 +0100 Colin King wrote: > From: Colin Ian King > > nand_ooblayout_lp_hamming_ops can be made static as it does not need to be > in global scope. > > Signed-off-by: Colin Ian King Applied to nand/fixes. Thanks, Boris > --- > drivers/mtd/nand/nand_base.c | 2 +-

Re: [PATCH v4 1/2] selinux: add brief info to policydb

2017-05-15 Thread Stephen Smalley
On Tue, 2017-05-16 at 03:22 +0900, Sebastien Buisson wrote: > Add policybrief field to struct policydb. It holds a brief info > of the policydb, made of colon separated name and value pairs > that give information about how the policy is applied in the > security module(s). > Note that the ordering

[PATCH] char: ipmi: remove unnecessary code

2017-05-15 Thread Gustavo A. R. Silva
The array field name in struct i2c_adapter is a fixed size array so it can never be NULL. Addresses-Coverity-ID: 1397986 Signed-off-by: Gustavo A. R. Silva --- drivers/char/ipmi/ipmi_ssif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/ipmi/ipmi_ssif.c b/driver

Re: [PATCH] mtd: nand: tango: Export OF device ID table as module aliases

2017-05-15 Thread Boris Brezillon
On Mon, 1 May 2017 16:30:15 -0400 Andres Galacho wrote: > The device table is required to load modules based on > modaliases. After adding MODULE_DEVICE_TABLE, below entries > for example will be added to module.alias: > alias: of:N*T*Csigma,smp8758-nandC* > alias: of:N*T*Csigm

Re: [PATCH v4 1/2] selinux: add brief info to policydb

2017-05-15 Thread Christoph Hellwig
> Add security_policy_brief hook to give access to policy brief to > the rest of the kernel. Lustre client makes use of this information > to detect changes to the policy, and forward it to Lustre servers. > Depending on how the policy is enforced on Lustre client side, > Lustre servers can refuse

Re: [PATCH v3 1/3] dt-bindings: mt8173: Fix mdp device tree

2017-05-15 Thread Rob Herring
On Fri, May 12, 2017 at 11:22:39AM +0800, Minghsiu Tsai wrote: > If the mdp_* nodes are under an mdp sub-node, their corresponding > platform device does not automatically get its iommu assigned properly. > > Fix this by moving the mdp component nodes up a level such that they are > siblings of md

RE: [PATCH v3] Add "shutdown" to "struct class".

2017-05-15 Thread Winkler, Tomas
> -Original Message- > From: Jason Gunthorpe [mailto:jguntho...@obsidianresearch.com] > Sent: Monday, May 15, 2017 20:46 > To: Josh Zimmerman > Cc: Greg Kroah-Hartman ; linux- > ker...@vger.kernel.org; Winkler, Tomas ; Jarkko > Sakkinen ; tpmdd- > de...@lists.sourceforge.net > Subject: R

Re: [PATCH v3 4/9] dt-bindings: arm: mediatek: add bindings for mediatek MT7623a SoC Platform

2017-05-15 Thread Rob Herring
On Fri, May 12, 2017 at 03:56:41PM +0800, sean.w...@mediatek.com wrote: > From: Sean Wang > > This adds DT binding documentation for Mediatek MT7623a > > Signed-off-by: Sean Wang > --- > Documentation/devicetree/bindings/arm/mediatek.txt | 1 + > 1 file changed, 1 insertion(+) Acked-by: Rob H

Re: [PATCH v3 9/9] arm: dts: mt7623: add dts file for Bananapi R2 (BPI-R2) board

2017-05-15 Thread Rob Herring
On Fri, May 12, 2017 at 03:56:46PM +0800, sean.w...@mediatek.com wrote: > From: Sean Wang > > Add support for the Bananapi R2 (BPI-R2) development board from > BIPAI KEJI. Detailed hardware information for BPI-R2 which could be > found on http://www.banana-pi.org/r2.html > > The patch currently

Re: [PATCH v6 0/2] security: tty: make TIOCSTI ioctl require CAP_SYS_ADMIN

2017-05-15 Thread Alan Cox
O> I'm not implying that my patch is supposed to provide safety for > "hundreds of other" issues. I'm looking to provide a way to lock down a > single TTY ioctl that has caused real security issues to arise. For In other words you are not actually fixing anything. > this reason, it's completely i

Re: [PATCH] sched: remove sched_find_first_bit()

2017-05-15 Thread Yury Norov
On Mon, May 15, 2017 at 10:31:17PM +0200, Arnd Bergmann wrote: > On Mon, May 15, 2017 at 6:17 PM, Yury Norov wrote: > > On Mon, May 15, 2017 at 06:06:18PM +0200, Arnd Bergmann wrote: > >> On Mon, May 15, 2017 at 5:47 PM, Yury Norov > >> wrote: > >> > On Sun, May 14, 2017 at 08:09:17PM +0200, Ing

[PATCH] ASoC: simple-card: fix mic jack initialization

2017-05-15 Thread Stefan Agner
Initialize asoc_simple_card_init_mic with the correct struct asoc_simple_jack. Signed-off-by: Stefan Agner Fixes: 9eac361877b3 ("ASoC: simple-card: add new asoc_simple_jack and use it") --- sound/soc/generic/simple-card.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/

Re: [PATCH v4 3/3] hwmon: (adt7475) add high frequency support

2017-05-15 Thread Chris Packham
On 16/05/17 01:26, Guenter Roeck wrote: > On 05/14/2017 06:30 PM, Chris Packham wrote: >> Systems using 4-wire fans usually require high frequency (22.5kHz) >> output on the pwm. Add 22500 as a valid option in the pwmfreq_table. In >> high frequency mode the low-order bit are ignored so they can sa

Re: [PATCH] sched: remove sched_find_first_bit()

2017-05-15 Thread Arnd Bergmann
On Mon, May 15, 2017 at 10:58 PM, Yury Norov wrote: > On Mon, May 15, 2017 at 10:31:17PM +0200, Arnd Bergmann wrote: >> On Mon, May 15, 2017 at 6:17 PM, Yury Norov >> wrote: >> > Yes, something like this. But size is not the multiple of BITS_PER_LONG in > general. This should work better: > >

Re: [PATCH] block: xen-blkback: add null check to avoid null pointer dereference

2017-05-15 Thread Konrad Rzeszutek Wilk
On Thu, May 11, 2017 at 10:27:35AM -0500, Gustavo A. R. Silva wrote: > Add null check before calling xen_blkif_put() to avoid potential > null pointer dereference. > Applied to 'stable/for-jens-4.12' and will push soon to Jens. > Addresses-Coverity-ID: 1350942 > Cc: Juergen Gross > Signed-off-b

[RESEND PATCH] power: supply: sysfs: parse string as enum when writing property

2017-05-15 Thread David Lechner
This fixes the TODO to parse strings and convert them to enum values when writing to a power_supply class property sysfs attribute. There is at least one driver that has a writable enum property that previously could only be written as an integer, so a fallback to writing enums as integers instead

[PATCH v3] libertas: Avoid reading past end of buffer

2017-05-15 Thread Kees Cook
Using memcpy() from a string that is shorter than the length copied means the destination buffer is being filled with arbitrary data from the kernel rodata segment. Instead, redefine the stat strings to be ETH_GSTRING_LEN sizes, like other drivers. This lets us use a single memcpy that does not lea

[PATCH V16 00/11] Add UEFI 2.6 and ACPI 6.1 updates for RAS on ARM64

2017-05-15 Thread Tyler Baicar
When a memory error, CPU error, PCIe error, or other type of hardware error that's covered by RAS occurs, firmware should populate the shared GHES memory location with the proper GHES structures to notify the OS of the error. For example, platforms that implement firmware first handling may impleme

[PATCH V16 01/11] acpi: apei: read ack upon ghes record consumption

2017-05-15 Thread Tyler Baicar
A RAS (Reliability, Availability, Serviceability) controller may be a separate processor running in parallel with OS execution, and may generate error records for consumption by the OS. If the RAS controller produces multiple error records, then they may be overwritten before the OS has consumed th

[PATCH V16 03/11] cper: add timestamp print to CPER status printing

2017-05-15 Thread Tyler Baicar
The ACPI 6.1 spec added a timestamp to the generic error data entry structure. Print the timestamp out when printing out the error information. Signed-off-by: Tyler Baicar CC: Jonathan (Zhixiong) Zhang --- drivers/firmware/efi/cper.c | 26 ++ 1 file changed, 26 insertion

[PATCH V16 06/11] acpi: apei: handle SEA notification type for ARMv8

2017-05-15 Thread Tyler Baicar
ARM APEI extension proposal added SEA (Synchronous External Abort) notification type for ARMv8. Add a new GHES error source handling function for SEA. If an error source's notification type is SEA, then this function can be registered into the SEA exception handler. That way GHES will parse and rep

[PATCH V16 08/11] efi: print unrecognized CPER section

2017-05-15 Thread Tyler Baicar
UEFI spec allows for non-standard section in Common Platform Error Record. This is defined in section N.2.3 of UEFI version 2.5. Currently if the CPER section's type (UUID) does not match with one of the section types that the kernel knows how to parse, the section is skipped. Therefore, user is n

<    3   4   5   6   7   8   9   10   11   >