Re: [PATCH] iio:magnetometer: Replace magic number 0 by IIO_CHAN_INFO_RAW

2018-03-03 Thread Jonathan Cameron
On Tue, 27 Feb 2018 11:47:55 -0300 Rodrigo Siqueira wrote: > The function magn_3d_read_raw has a switch statement handling multiple > cases per channel. The first case statement uses the magic number 0, > which means IIO_CHAN_INFO_RAW. Additionally, the iio_chan_spec for > magn_3d_channels is con

Re: [PATCH v2 2/2] iio:dummy: Add extra paragraphs on Kconfig

2018-03-03 Thread Jonathan Cameron
On Tue, 27 Feb 2018 10:47:06 -0300 Rodrigo Siqueira wrote: > This patch fixes the checkpatch.pl warning: > > drivers/iio/dummy/Kconfig:21: WARNING: please write a paragraph that > describes the config symbol fully > drivers/iio/dummy/Kconfig:27: WARNING: please write a paragraph that > describes

Re: [PATCH v2 1/2] iio: dummy: Add correct tabs and spaces to Kconfig

2018-03-03 Thread Jonathan Cameron
On Tue, 27 Feb 2018 10:46:51 -0300 Rodrigo Siqueira wrote: > Kconfig from iio/dummy does not follow the coding style recommendations. > According to the coding-style, Lines under a config definition are > indented with one tab, while help text is indented an additional two > spaces. This patch ad

Re: [RFC PATCH] Randomization of address chosen by mmap.

2018-03-03 Thread Ilya Smith
> On 2 Mar 2018, at 23:48, Matthew Wilcox wrote: > Ah, I didn't mean that. I was thinking that we can change the > implementation to reserve 1-N pages after the end of the mapping. > So you can't map anything else in there, and any load/store into that > region will segfault. > I’m afraid it st

Re: [PATCH 5/7] iio: adc: stm32-dfsdm: misc style improvements and fixes

2018-03-03 Thread Jonathan Cameron
On Tue, 27 Feb 2018 09:21:00 +0100 Fabrice Gasnier wrote: > On 02/24/2018 02:03 PM, Jonathan Cameron wrote: > > On Fri, 23 Feb 2018 13:50:59 +0100 > > Fabrice Gasnier wrote: > > > >> Misc fixes & style improvements: > >> - checkpatch warns about line over 80 characters. > >> - remove extra sp

Re: [PATCH] dt-bindings: iio: adc: stm32-dfsdm: fix types, add missing pinctrl

2018-03-03 Thread Jonathan Cameron
On Fri, 2 Mar 2018 10:25:13 -0600 Rob Herring wrote: > On Fri, Feb 23, 2018 at 12:11:00PM +0100, Fabrice Gasnier wrote: > > - Add missing pinctrl description. Support is made optional as dfsdm > > may use internal sources (e.g. via registers) > > - Fix typo in IIO STM32 DFSDM filter "MANCH_F" d

Re: [PATCH v3] staging:iio:meter: Add name to function definition arguments

2018-03-03 Thread Jonathan Cameron
On Fri, 2 Mar 2018 20:38:47 -0300 Rodrigo Siqueira wrote: > On 02/24, Jonathan Cameron wrote: > > On Wed, 21 Feb 2018 16:54:35 -0300 > > Rodrigo Siqueira wrote: > > > > > This patch fixes the checkpatch.pl warning: > > > > > > drivers/staging/iio/meter/ade7854.h:157: WARNING: function defini

Re: [PATCH v7 08/61] xarray: Add the xa_lock to the radix_tree_root

2018-03-03 Thread Jeff Layton
On Mon, 2018-02-19 at 11:45 -0800, Matthew Wilcox wrote: > From: Matthew Wilcox > > This results in no change in structure size on 64-bit x86 as it fits in > the padding between the gfp_t and the void *. > While the patch itself looks fine, we should take note that this will likely increase the

Query:Regarding object poison overwritten in binder_transaction

2018-03-03 Thread Kohli, Gaurav
HI , Is there any known issue of slab poisoning in binder_transaction variable on kernel 4.9,  it seems owner variable of spinlock is getting corrupted(which is last 8th byte of binder_transaction struct).    368.423462:   <2> [] print_trailer+0x13c/0x214    368.428998:   <2> [] check_bytes_a

Re: linux-next: build failure after merge of the printk tree

2018-03-03 Thread Sergey Senozhatsky
Cc-ing Tejun On (03/02/18 16:54), Petr Mladek wrote: [..] > > (Though it is not immediately obvious why.) > > It is a mistery to me. The error appears when I move any of > dump_stack_print_info() or show_regs_print_info() function > definitions from kernel/printk/printk.c to lib/dump_stack.c. > A

Re: [PATCH v2] media: siano: Fix coherent memory allocation failure on arm64

2018-03-03 Thread Mauro Carvalho Chehab
Hi Tomoki, Em Sat, 3 Mar 2018 21:20:17 +0900 tomoki.sekiy...@gmail.com escreveu: > From: Tomoki Sekiyama > > On some architectures such as arm64, siano chip based TV-tuner > USB devices are not recognized correctly due to coherent memory > allocation failure with the following error: > > [ 6

Re: [RFC V2 1/3] perf, tools: Support wildcards on pmu name in dynamic pmu events

2018-03-03 Thread Jiri Olsa
On Fri, Mar 02, 2018 at 06:41:30PM -0500, Agustin Vega-Frias wrote: SNIP > > diff --git a/tools/perf/util/parse-events.l b/tools/perf/util/parse-events.l > index 655ecff..a1a01b1 100644 > --- a/tools/perf/util/parse-events.l > +++ b/tools/perf/util/parse-events.l > @@ -175,7 +175,7 @@ bpf_source

Re: [PATCH v7 09/61] page cache: Use xa_lock

2018-03-03 Thread Jeff Layton
On Mon, 2018-02-19 at 11:45 -0800, Matthew Wilcox wrote: > From: Matthew Wilcox > > Remove the address_space ->tree_lock and use the xa_lock newly added to > the radix_tree_root. Rename the address_space ->page_tree to ->pages, > since we don't really care that it's a tree. Take the opportunity

Re: [kernel-hardening] [PATCH 2/2] arm: Kconfig: Add ARCH_HAS_FORTIFY_SOURCE

2018-03-03 Thread kbuild test robot
/commits/Jinbum-Park/arm-Add-ARCH_HAS_FORTIFY_SOURCE/20180303-184154 config: arm-allmodconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross

Re: [PATCH] pinctrl: bc2835: Add brcm,level property

2018-03-03 Thread Stefan Wahren
Hi Matheus, sorry for my late reply. > Matheus Castello hat am 22. Februar 2018 um 18:44 > geschrieben: > > > Property to set initial value of pin output buffer. > > Signed-off-by: Matheus Castello > --- > .../bindings/pinctrl/brcm,bcm2835-gpio.txt | 5 +- > drivers/pinctrl/bcm/pi

Re: [PATCH v7 08/61] xarray: Add the xa_lock to the radix_tree_root

2018-03-03 Thread Jeff Layton
On Mon, 2018-02-19 at 11:45 -0800, Matthew Wilcox wrote: > From: Matthew Wilcox > > This results in no change in structure size on 64-bit x86 as it fits in > the padding between the gfp_t and the void *. > > Initialising the spinlock requires a name for the benefit of lockdep, > so RADIX_TREE_IN

Re: [Outreachy kernel] [PATCH] infiniband: hw: Drop unnecessary continue

2018-03-03 Thread Julia Lawall
On Sat, 3 Mar 2018, Arushi Singhal wrote: > Continue at the bottom of a loop are removed. > Issue found using drop_continue.cocci Coccinelle script. > > Signed-off-by: Arushi Singhal > --- > drivers/infiniband/hw/qib/qib_init.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/in

Re: [Outreachy kernel] [PATCH] net: ethernet: Drop unnecessary continue

2018-03-03 Thread Julia Lawall
On Sat, 3 Mar 2018, Arushi Singhal wrote: > Continue at the bottom of a loop are removed. > Issue found using drop_continue.cocci Coccinelle script. In each case you leave an if with a single statement in the branch. In that case the { } should be dropped too. julia > > Signed-off-by: Arushi

[PATCH] mtd: nand: Added spaces around ('=' and '<')

2018-03-03 Thread Arushi Singhal
Add spaces around ('=' and '<'), to conform to the Linux kernel coding style. Issue found using checkpatch. Signed-off-by: Arushi Singhal --- drivers/mtd/nand/ams-delta.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/ams-delta.c b/drivers/mtd/nand/ams-

Re: [PATCH 1/2] mmc: bcm2835: reset host on timeout

2018-03-03 Thread Stefan Wahren
Hi Michal, [add Stefan to CC] > Michal Suchánek hat am 14. Februar 2018 um 20:24 > geschrieben: > > > On Wed, 14 Feb 2018 17:49:31 +0100 > Stefan Wahren wrote: > > > Hi Michal, > > > > [add Phil] > > > > Am 14.02.2018 um 17:13 schrieb Michal Suchánek: > > > On Wed, 14 Feb 2018 16:36:49 +0

Re: [RFC PATCH] Randomization of address chosen by mmap.

2018-03-03 Thread Ilya Smith
Hello Daniel, thanks for sharing you experience! > On 1 Mar 2018, at 00:02, Daniel Micay wrote: > > I don't think it makes sense for the kernel to attempt mitigations to > hide libraries. The best way to do that is in userspace, by having the > linker reserve a large PROT_NONE region for mapping

Re: [PATCH v7 07/61] fscache: Use appropriate radix tree accessors

2018-03-03 Thread Jeff Layton
On Mon, 2018-02-19 at 11:45 -0800, Matthew Wilcox wrote: > From: Matthew Wilcox > > Don't open-code accesses to data structure internals. > > Signed-off-by: Matthew Wilcox > --- > fs/fscache/cookie.c | 2 +- > fs/fscache/object.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >

Re: [PATCH v7 05/61] Export __set_page_dirty

2018-03-03 Thread Jeff Layton
On Mon, 2018-02-19 at 11:45 -0800, Matthew Wilcox wrote: > From: Matthew Wilcox > > XFS currently contains a copy-and-paste of __set_page_dirty(). Export > it from buffer.c instead. > > Signed-off-by: Matthew Wilcox > --- > fs/buffer.c| 3 ++- > fs/xfs/xfs_aops.c | 15 ++

Re: [RFC] perf: a different approach to perf_rotate_context()

2018-03-03 Thread Jiri Olsa
On Thu, Mar 01, 2018 at 11:53:21AM -0800, Song Liu wrote: > When there are more perf_event's than hardware PMCs, perf rotate events > so that all events get chance to run. Currently, the rotation works as: > sched_out flexible_groups in cpuctx->ctx and cpuctx->task_ctx; > rotate_left flexible_g

[PATCH] net: ethernet: Drop unnecessary continue

2018-03-03 Thread Arushi Singhal
Continue at the bottom of a loop are removed. Issue found using drop_continue.cocci Coccinelle script. Signed-off-by: Arushi Singhal --- drivers/net/ethernet/amd/ni65.c | 1 - drivers/net/ethernet/neterion/s2io.c | 1 - drivers/net/ethernet/netronome/nfp/nfp_net_ma

[PATCH] infiniband: hw: Drop unnecessary continue

2018-03-03 Thread Arushi Singhal
Continue at the bottom of a loop are removed. Issue found using drop_continue.cocci Coccinelle script. Signed-off-by: Arushi Singhal --- drivers/infiniband/hw/qib/qib_init.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/infiniband/hw/qib/qib_init.c b/drivers/infiniband/hw/qib/qib_i

[PATCH v2] selftests/vm/run_vmtests: adjust hugetlb size accroding to nr_cpus

2018-03-03 Thread Li Zhijian
Fix userfaultfd_hugetlb on hosts which have more than 64 cpus. --- running userfaultfd_hugetlb --- invalid MiB Usage: [FAIL] Via userfaultfd.c we can know, hugetlb_size needs to meet hugetlb_size >= nr_cpus * hugepage_size. hugepage_size is often

Re: [PATCH v7 02/61] radix tree: Use bottom four bits of gfp_t for flags

2018-03-03 Thread Jeff Layton
On Mon, 2018-02-19 at 11:44 -0800, Matthew Wilcox wrote: > From: Matthew Wilcox > > None of these four bits may be used for slab allocations, so we can > use them for flags as long as we mask them off before passing them > to the slab allocator. Move the IDR flag from the top bits to the > botto

Re: [PATCH] ARM: dts: tpc: Device tree description of the TPC board

2018-03-03 Thread Fabio Estevam
Hi Lukasz, On Sat, Mar 3, 2018 at 4:06 AM, Lukasz Majewski wrote: > Previously (for other imx6q board) I've added entry to e.g. > panel-simple.c file [1] to describe the display. > > I thought that adding timings to DTS is more welcome - hence we do not > need to add any extra code to Linux when

Re: [PATCH -tip] x86: kprobes: Cleanup preempt disabling and enabling

2018-03-03 Thread Masami Hiramatsu
On Sat, 3 Mar 2018 10:58:23 +0100 Ingo Molnar wrote: > > * Masami Hiramatsu wrote: > > > +/* > > + * Interrupts are disabled on entry as trap3 is an interrupt gate and they > > + * remain disabled throughout this function. > > + */ > > +int kprobe_int3_handler(struct pt_regs *regs) > > +{ > >

[PATCH v2] media: siano: Fix coherent memory allocation failure on arm64

2018-03-03 Thread tomoki . sekiyama
From: Tomoki Sekiyama On some architectures such as arm64, siano chip based TV-tuner USB devices are not recognized correctly due to coherent memory allocation failure with the following error: [ 663.556135] usbcore: deregistering interface driver smsusb [ 683.624809] smsusb:smsusb_probe: boar

[RFC v2] vfio iommu type1: improve memory pinning process for raw PFN mapping

2018-03-03 Thread Jason Cai (Xiang Feng)
When using vfio to pass through a PCIe device (e.g. a GPU card) that has a huge BAR (e.g. 16GB), a lot of cycles are wasted on memory pinning because PFNs of PCI BAR are not backed by struct page, and the corresponding VMA has flag VM_PFNMAP. With this change, when pinning a region which is a raw

RE: [PATCH v3 3/3] platform/x86: dell-smbios: Link all dell-smbios-* modules together

2018-03-03 Thread Mario.Limonciello
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Friday, March 2, 2018 8:11 PM > To: Limonciello, Mario > Cc: Andy Shevchenko ; pali.ro...@gmail.com; LKML > ; platform-driver-...@vger.kernel.org > Subject: Re: [PATCH v3 3/3] platform/x86: dell-smbios: Link all

Re: "x86/boot/compressed/64: Prepare trampoline memory" breaks boot on Zotac CI-321

2018-03-03 Thread Heiner Kallweit
Am 03.03.2018 um 11:02 schrieb Ingo Molnar: > > * Heiner Kallweit wrote: > >> Am 03.03.2018 um 00:50 schrieb Dexuan-Linux Cui: >>> On Fri, Mar 2, 2018 at 12:57 PM, Heiner Kallweit >> > wrote: >>> >>> Recently my Mini PC Zotac CI-321 started to reboot immediately

Re: [PATCH 0/2] Backport IBPB on context switch to non-dumpable process

2018-03-03 Thread Woodhouse, David
On Sat, 2018-03-03 at 09:54 +0100, Greg Kroah-Hartman wrote: > On Fri, Mar 02, 2018 at 01:32:08PM -0800, Tim Chen wrote: > > > > Greg, > > > > I will like to propose backporting "x86/speculation: Use Indirect Branch > > Prediction Barrier on context switch" from commit 18bf3c3e in upstream > > to

Re: [PATCH v2 3/6] arm64: dts: rockchip: enable typec-phy for rk3399-sapphire.

2018-03-03 Thread Vicente Bergas
On Thu, Mar 1, 2018 at 4:25 PM, Enric Balletbo i Serra wrote: > Commit c301b327aea898af ("arm64: dts: rockchip: add usb3-phy otg-port > support for rk3399") caused a regression regarding the USB3 type-A port. > During boot, the following message appears a few times: > > dwc3: failed to initializ

[GIT PULL for v4.16-rc4] media fixes

2018-03-03 Thread Mauro Carvalho Chehab
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media tags/media/v4.16-3 For: - some build fixes with randconfigs; - a fix at m88ds3103 to prevent an OOPS if the chip doesn't provide a right version during probe (with can happen if the hardware h

[PATCH] ubi: Reject MLC NAND

2018-03-03 Thread Richard Weinberger
While UBI and UBIFS seem to work at first sight with MLC NAND, you will most likely lose all your data upon a power-cut or due to read/write disturb. In order to protect users from bad surprises, refuse to attach to MLC NAND. Cc: sta...@vger.kernel.org Signed-off-by: Richard Weinberger --- drive

Re: [RFC 0/2] kernel: add support to collect hardware logs in panic

2018-03-03 Thread Rahul Lakkireddy
On Friday, March 03/02/18, 2018 at 18:52:45 +0530, Eric W. Biederman wrote: > Rahul Lakkireddy writes: > > > On production servers running variety of workloads over time, kernel > > panic can happen sporadically after days or even months. It is > > important to collect as much debug logs as possi

[PATCH] ARM: dts: imx6dl: Fix typo in Engicam i.CoreM6 DualLite/Solo RQS

2018-03-03 Thread Jérôme Pouiller
Obviously "Engicam i.CoreM6 DualLite/Solo RQS" include an imx6dl, not an imx6q. Signed-off-by: Jérôme Pouiller --- arch/arm/boot/dts/imx6dl-icore-rqs.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6dl-icore-rqs.dts b/arch/arm/boot/dts/imx6dl-icore-r

Re: [PATCH] ARM: dts: imx6dl: Fix typo in Engicam i.CoreM6 DualLite/Solo RQS

2018-03-03 Thread Michael Nazzareno Trimarchi
Hi On Sat, Mar 3, 2018 at 11:34 AM, Jérôme Pouiller wrote: > Obviously "Engicam i.CoreM6 DualLite/Solo RQS" include an imx6dl, not > an imx6q. > > Signed-off-by: Jérôme Pouiller > --- > arch/arm/boot/dts/imx6dl-icore-rqs.dts | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: 4.16-rc3 fails to resume on MacBookPro10,1 -

2018-03-03 Thread Pavel Machek
On Sat 2018-03-03 11:00:28, Rafael J. Wysocki wrote: > On Sat, Mar 3, 2018 at 10:24 AM, Pavel Machek wrote: > > Hi! > > > > On Sat 2018-03-03 17:27:36, Andrew Worsley wrote: > >> On 3 March 2018 at 16:41, Andrew Worsley wrote: > >> > Basically hangs on resuming after decompressing. The last state

Re: "x86/boot/compressed/64: Prepare trampoline memory" breaks boot on Zotac CI-321

2018-03-03 Thread Ingo Molnar
* Heiner Kallweit wrote: > Am 03.03.2018 um 00:50 schrieb Dexuan-Linux Cui: > > On Fri, Mar 2, 2018 at 12:57 PM, Heiner Kallweit > > wrote: > > > > Recently my Mini PC Zotac CI-321 started to reboot immediately before > > anything was written to the console

Re: 4.16-rc3 fails to resume on MacBookPro10,1 -

2018-03-03 Thread Rafael J. Wysocki
On Sat, Mar 3, 2018 at 10:24 AM, Pavel Machek wrote: > Hi! > > On Sat 2018-03-03 17:27:36, Andrew Worsley wrote: >> On 3 March 2018 at 16:41, Andrew Worsley wrote: >> > Basically hangs on resuming after decompressing. The last statement >> > displayed is "resume: Image successfully loaded" >> >

Re: [PATCH -tip] x86: kprobes: Cleanup preempt disabling and enabling

2018-03-03 Thread Ingo Molnar
* Masami Hiramatsu wrote: > +/* > + * Interrupts are disabled on entry as trap3 is an interrupt gate and they > + * remain disabled throughout this function. > + */ > +int kprobe_int3_handler(struct pt_regs *regs) > +{ > + struct kprobe_ctlblk *kcb; > + int ret; > + > + if (user_mode

Re: [PATCH 1/3] leaking_addresses: skip all /proc/PID except /proc/1

2018-03-03 Thread Alexander Kapshuk
On Thu, Mar 1, 2018 at 11:06 PM, Tobin C. Harding wrote: > On Tue, Feb 27, 2018 at 03:45:09PM +1100, Tobin C. Harding wrote: >> When the system is idle it is likely that most files under /proc/PID >> will be identical for various processes. Scanning _all_ the PIDs under >> /proc is unnecessary an

[GIT PULL REQUEST] watchdog - v4.16 Fixes

2018-03-03 Thread wim
Hi Linus, Please pull the watchdog fixes for the v4.16 release cycle. This series contains: * rave-sp: add NVMEM dependency * Build fixes for i6300esb_wdt, xen_wdt and sp5100_tco The output from git request-pull: The following chan

Re: [PATCH v2 09/11] kconfig: unittest: test randconfig for choice in choice

2018-03-03 Thread Ulf Magnusson
On Fri, Mar 2, 2018 at 10:29 PM, Luis R. Rodriguez wrote: > > > On Fri, Mar 2, 2018, 3:14 AM Ulf Magnusson wrote: >> >> On Fri, Mar 2, 2018 at 5:31 AM, Masahiro Yamada >> > This is complicated usage, but it is still used in the real world; >> > drivers/usb/gadget/legacy/Kconfig is source'd in a c

Re: 4.16-rc3 fails to resume on MacBookPro10,1 -

2018-03-03 Thread Pavel Machek
Hi! On Sat 2018-03-03 17:27:36, Andrew Worsley wrote: > On 3 March 2018 at 16:41, Andrew Worsley wrote: > > Basically hangs on resuming after decompressing. The last statement > > displayed is "resume: Image successfully loaded" > > - I attach a photo as I can't get access to it > > > Bug h

Re: [RFC PATCH V1 01/12] audit: add container id

2018-03-03 Thread Serge E. Hallyn
On Thu, Mar 01, 2018 at 02:41:04PM -0500, Richard Guy Briggs wrote: ... > +static inline bool audit_containerid_set(struct task_struct *tsk) Hi Richard, the calls to audit_containerid_set() confused me. Could you make it is_audit_containerid_set() or audit_containerid_isset()? > +{ > + retu

Re: [PATCH] x86: devicetree: fix config option around x86_flattree_get_config()

2018-03-03 Thread Laurent Pinchart
Hi Frank, Thank you for the patch. On Saturday, 3 March 2018 06:12:26 EET frowand.l...@gmail.com wrote: > From: Frank Rowand > > x86_flattree_get_config() is incorrectly protected by > ifdef CONFIG_OF_FLATTREE. It uses of_get_flat_dt_size(), which > only exists if CONFIG_OF_EARLY_FLATTREE. Th

Re: [PATCH 4.4 64/67] usb: uas: unconditionally bring back host after reset

2018-03-03 Thread Hans de Goede
Hi, On 03-03-18 01:19, Ben Hutchings wrote: On Fri, 2018-02-02 at 17:58 +0100, Greg Kroah-Hartman wrote: 4.4-stable review patch.  If anyone has any objections, please let me know. -- From: Oliver Neukum commit cbeef22fd611c4f47c494b821b2b105b8af970bb upstream. [...] --- a

Re: [PATCH 0/3] userfaultfd: non-cooperative: syncronous events

2018-03-03 Thread Mike Rapoport
On Fri, Mar 02, 2018 at 03:38:49PM -0800, Andrew Morton wrote: > On Tue, 27 Feb 2018 10:19:49 +0200 Mike Rapoport > wrote: > > > Hi, > > > > These patches add ability to generate userfaultfd events so that their > > processing will be synchronized with the non-cooperative thread that caused > >

[RFC] [PATCH] taskstats: introduce verison 9 with executable file info: empty device ID

2018-03-03 Thread Dr. Thomas Orgis
Hi, this is a request for comments/help for a little patch I am working on. It works to give me an inode for the executable file of an existing task via taskstats, but I fail to get a device ID for that to be able to then look for the correct filesystem in userspace. I am not sure if that informat

Re: [PATCH 4.14 000/115] 4.14.24-stable review

2018-03-03 Thread Greg Kroah-Hartman
On Fri, Mar 02, 2018 at 02:29:01PM -0700, Shuah Khan wrote: > On 03/02/2018 01:50 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.14.24 release. > > There are 115 patches in this series, all will be posted as a response > > to this one. If anyone has any is

Re: [PATCH 0/2] Backport IBPB on context switch to non-dumpable process

2018-03-03 Thread Greg Kroah-Hartman
On Fri, Mar 02, 2018 at 01:32:08PM -0800, Tim Chen wrote: > Greg, > > I will like to propose backporting "x86/speculation: Use Indirect Branch > Prediction Barrier on context switch" from commit 18bf3c3e in upstream > to 4.9 and 4.4 stable. The patch has already been ported to 4.14 and > 4.15 sta

Re: [PATCH v4 4/6] MIPS: mscc: add ocelot PCB123 device tree

2018-03-03 Thread Sergei Shtylyov
Hello! On 3/3/2018 1:48 AM, Alexandre Belloni wrote: Add a device tree for the Microsemi Ocelot PCB123 evaluation board. Cc: Rob Herring Cc: devicet...@vger.kernel.org Signed-off-by: Alexandre Belloni [...] diff --git a/arch/mips/boot/dts/mscc/ocelot_pcb123.dts b/arch/mips/boot/dts/mscc/o

Re: [RFC v2 1/2] WhiteEgret: Add WhiteEgret core functions.

2018-03-03 Thread Tetsuo Handa
Masanobu Koike wrote: > On Friday, March 02, 2018 12:43 AM, Casey Schaufler wrote: > > On 2/28/2018 11:38 PM, Masanobu Koike wrote: > > > @@ -264,6 +266,9 @@ choice > > > config DEFAULT_SECURITY_APPARMOR > > > bool "AppArmor" if SECURITY_APPARMOR=y > > > > > > + config DEFAULT_SECURITY_

Re: [PATCH] direct-io: Minor cleanups in do_blockdev_direct_IO

2018-03-03 Thread Nikolay Borisov
On 3.03.2018 02:24, Andrew Morton wrote: > On Mon, 26 Feb 2018 11:54:30 +0200 Nikolay Borisov wrote: > >> We already get the block counts and the calculate the end block at the >> beginning of the function. Let's use the local variables for consistency and >> readability. No functional changes

[PATCH v10 2/5] arm64: KVM: export the capability to set guest SError syndrome

2018-03-03 Thread Dongjiu Geng
Before user space injects a SError, it needs to know whether it can specify the guest Exception Syndrome, so KVM should tell user space whether it has such capability. Signed-off-by: Dongjiu Geng --- Documentation/virtual/kvm/api.txt | 11 +++ arch/arm64/kvm/reset.c| 3 +++

[PATCH v10 0/5] set VSESR_EL2 by user space and support NOTIFY_SEI notification

2018-03-03 Thread Dongjiu Geng
1. Detect whether KVM can set set guest SError syndrome 2. Support to Set VSESR_EL2 and inject SError by user space. 3. Support live migration to keep SError pending state and VSESR_EL2 value. 4. ACPI 6.1 adds support for NOTIFY_SEI as a GHES notification mechanism, so support this notification

[PATCH v10 1/5] arm64: KVM: Prepare set virtual SEI syndrome value

2018-03-03 Thread Dongjiu Geng
Export one API to specify virtual SEI syndrome value for guest, and add a helper to get the VSESR_EL2 value. Signed-off-by: Dongjiu Geng --- arch/arm64/include/asm/kvm_emulate.h | 5 + arch/arm64/include/asm/kvm_host.h| 2 ++ arch/arm64/kvm/inject_fault.c| 5 + 3 files change

[PATCH v10 5/5] arm64: handle NOTIFY_SEI notification by the APEI driver

2018-03-03 Thread Dongjiu Geng
Add a helper to handle the NOTIFY_SEI notification, when kernel gets the NOTIFY_SEI notification, call this helper and let APEI driver to handle this notification. Signed-off-by: Dongjiu Geng --- arch/arm64/include/asm/system_misc.h | 1 + arch/arm64/kernel/traps.c| 4 arch/ar

[PATCH v10 3/5] arm/arm64: KVM: Introduce set and get per-vcpu event

2018-03-03 Thread Dongjiu Geng
RAS Extension provides VSESR_EL2 register to specify virtual SError syndrome value, this patch adds a new IOCTL to export user-invisible states related to SError exceptions. User space can setup the kvm_vcpu_events to inject specified SError, also it can support live migration. Signed-off-by: Dong

[PATCH v10 4/5] ACPI / APEI: Add SEI notification type support for ARMv8

2018-03-03 Thread Dongjiu Geng
ACPI 6.x adds support for NOTIFY_SEI as a GHES notification mechanism, so add new GHES notification handling functions. Expose API ghes_notify_sei() to arch code, arch code will call this API when it gets this NOTIFY_SEI. Signed-off-by: Dongjiu Geng --- drivers/acpi/apei/Kconfig | 15 +++

<    3   4   5   6   7   8