Re: [PATCH v2 04/11] locking/ww_mutex: Set use_ww_ctx even when locking without a context

2016-12-16 Thread Maarten Lankhorst
Op 16-12-16 om 14:17 schreef Nicolai Hähnle: > On 06.12.2016 16:25, Peter Zijlstra wrote: >> On Thu, Dec 01, 2016 at 03:06:47PM +0100, Nicolai Hähnle wrote: >> >>> @@ -640,10 +640,11 @@ __mutex_lock_common(struct mutex *lock, long state, >>> unsigned int subclass, >>> struct mutex_waiter wait

Re: [RFC PATCH 06/14] sparc64: general shared context tsb creation and support

2016-12-16 Thread Sam Ravnborg
Hi Mike > --- a/arch/sparc/mm/hugetlbpage.c > +++ b/arch/sparc/mm/hugetlbpage.c > @@ -162,8 +162,14 @@ void set_huge_pte_at(struct mm_struct *mm, unsigned long > addr, > { > pte_t orig; > > - if (!pte_present(*ptep) && pte_present(entry)) > - mm->context.hugetlb_pte_count

Re: [RFC PATCH 04/14] sparc64: load shared id into context register 1

2016-12-16 Thread Sam Ravnborg
Hi Mike > diff --git a/arch/sparc/kernel/fpu_traps.S b/arch/sparc/kernel/fpu_traps.S > index 336d275..f85a034 100644 > --- a/arch/sparc/kernel/fpu_traps.S > +++ b/arch/sparc/kernel/fpu_traps.S > @@ -73,6 +73,16 @@ do_fpdis: > ldxa[%g3] ASI_MMU, %g5 > .previous > > +661: n

Re: [RFC PATCH 02/14] sparc64: add new fields to mmu context for shared context support

2016-12-16 Thread Sam Ravnborg
Hi Mike > diff --git a/arch/sparc/include/asm/mmu_context_64.h > b/arch/sparc/include/asm/mmu_context_64.h > index b84be67..d031799 100644 > --- a/arch/sparc/include/asm/mmu_context_64.h > +++ b/arch/sparc/include/asm/mmu_context_64.h > @@ -35,15 +35,15 @@ void __tsb_context_switch(unsigned long

Re: [RFC PATCH 02/14] sparc64: add new fields to mmu context for shared context support

2016-12-16 Thread Sam Ravnborg
Hi Mike. On Fri, Dec 16, 2016 at 10:35:25AM -0800, Mike Kravetz wrote: > Add new fields to the mm_context structure to support shared context. > Instead of a simple context ID, add a pointer to a structure with a > reference count. This is needed as multiple tasks will share the > context ID. Wh

Re: [PATCH] ARM: dts: Add missing CPU frequencies for Exynos5422/5800

2016-12-16 Thread Anand Moon
Hi Markus, On 16 December 2016 at 14:38, Markus Reichl wrote: > Am 16.12.2016 um 08:37 schrieb Krzysztof Kozlowski: >> On Thu, Dec 15, 2016 at 04:52:58PM -0800, Doug Anderson wrote: [ I added Arjun to Cc:, maybe he can help in explaining this issue (unfortunately Inderpal's email is n

Re: i2c: xiic: Strange clk_prepare_enable() in xiic_i2c_remove()

2016-12-16 Thread Shubhrajyoti Datta
On Sat, Dec 17, 2016 at 3:24 AM, Alexey Khoroshilov wrote: > Dear Shubhrajyoti, > > Looking at 36ecbcab84d0 ("i2c: xiic: Implement power management") > it is not clear why clk_prepare_enable(i2c->clk) is required in > xiic_i2c_remove()? 834 ret = clk_prepare_enable(i2c->clk); 835

Re: Document accounting of FDs passed over UNIX domain sockets

2016-12-16 Thread Willy Tarreau
Hi Michael, On Fri, Dec 16, 2016 at 12:08:33PM +0100, Michael Kerrisk (man-pages) wrote: > Hello Willy, > > Your commit 712f4aad406bb1 ("unix: properly account for FDs passed over > unix sockets" added accounting to ensure that the RLIMIT_NOFILE limit > could not be bypassed when passing file de

Re: Issue with DRM and "reimplement IDR and IDA using the radix tree"

2016-12-16 Thread Alexandre Courbot
t;> Reverting "reimplement IDR and IDA using the radix tree" on 20161213's >>> next fixes the issue for me, suggesting a bug may have slipped in there. >>> >>> Not sure how this could be fixed, so reporting the issue for now in case >>> it is no

Re: [PATCH] spi: rockchip: support "sleep" pin configuration

2016-12-16 Thread Doug Anderson
Hi, On Fri, Dec 16, 2016 at 4:59 PM, Brian Norris wrote: > In the pattern of many other devices, support a system-sleep pin > configuration. > > Signed-off-by: Brian Norris > --- > Documentation/devicetree/bindings/spi/spi-rockchip.txt | 7 +++ > drivers/spi/spi-rockchip.c

[RFC][PATCH 3/5 v2] usb: dwc2: Force port resume on switching to device mode

2016-12-16 Thread John Stultz
From: Chen Yu We've seen failures when switching between host and gadget mode, which was diagnosed as being caused due to the bus being auto-suspended when we switched. So this patch forces a port resume when switching to device mode if the bus is suspended. Cc: Wei Xu Cc: Guodong Xu Cc: Amit

[RFC][PATCH 1/5 v2] usb: dwc2: Avoid sleeping while holding hsotg->lock

2016-12-16 Thread John Stultz
Basically when plugging in various cables in different orders, I'm occasionally seeing the following BUG splat: [ 86.215403] BUG: scheduling while atomic: kworker/u16:2/53/0x0002 [ 86.219164] usb 1-1: USB disconnect, device number 9 [ 86.226845] Preemption disabled at:[ 86.230218] [] d

[RFC][PATCH 0/5 v2] Fixes and workarounds for dwc2 on HiKey board

2016-12-16 Thread John Stultz
I just wanted to re-send my current queue of patches for dwc2 controller on the HiKey board, as my last patchset ended up colliding with a number of changes that landed in the 4.10-rc merge window. I've fixed things up and validated these against HiKey. I also made a small change to one of the pa

[RFC][PATCH 4/5 v2] usb: dwc2: Avoid suspending if we're in gadget mode

2016-12-16 Thread John Stultz
I've found when booting HiKey with the usb gadget cable attached if I then try to connect via adb, I get an infinite spew of: dwc2 f72c.usb: dwc2_hsotg_ep_sethalt(ep ffc0790ecb18 ep1out, 0) dwc2 f72c.usb: dwc2_hsotg_ep_sethalt(ep ffc0790eca18 ep1in, 0) It seems that the usb autosu

[RFC][PATCH 5/5 v2] usb: dwc2: Add a quirk to allow speed negotiation for Hisilicon Hi6220

2016-12-16 Thread John Stultz
From: Chen Yu The Hi6220's usb controller is limited in that it does not support "Split Transactions", so it does not support communicating with low-speed and full-speed devices behind a high-speed hub. Thus it requires a quirk so that we can manually drop the usb speed when low/full-speed are a

[RFC][PATCH 2/5 v2] usb: dwc2: Workaround case where GOTGCTL state is wrong

2016-12-16 Thread John Stultz
When removing a USB-A to USB-otg adapter cable, we get a change status irq, and then in dwc2_conn_id_status_change, we erroniously see the GOTGCTL_CONID_B flag set. This causes us to get stuck in the "while (!dwc2_is_device_mode(hsotg))" loop, spitting out "Waiting for Peripheral Mode, Mode=Host"

[PATCH] cgroup: Add new capability to allow a process to migrate other tasks between cgroups

2016-12-16 Thread John Stultz
This patch adds CAP_GROUP and logic to allows a process to migrate other tasks between cgroups. In Android (where this feature originated), the ActivityManager tracks various application states (TOP_APP, FOREGROUND, BACKGROUND, SYSTEM, etc), and then as applications change states, the SchedPolicy

Re: [PATCH] x86/vm86: fix compilation warning on a unused variable

2016-12-16 Thread Jérémy Lefaure
On Mon, 12 Dec 2016 17:52:50 +0300 "Kirill A. Shutemov" wrote: > On Thu, Dec 08, 2016 at 01:25:37PM -0500, Jérémy Lefaure wrote: > > On Thu, 8 Dec 2016 13:50:11 +0300 > > "Kirill A. Shutemov" wrote: > > > > > On Wed, Dec 07, 2016 at 11:38:33PM -0500, Jérémy Lefaure wrote: > > > > When CONFI

Re: [RFC 10/10] kmod: add a sanity check on module loading

2016-12-16 Thread Rusty Russell
"Luis R. Rodriguez" writes: > On Thu, Dec 15, 2016 at 10:57:42AM +1030, Rusty Russell wrote: >> "Luis R. Rodriguez" writes: >> > kmod has an optimization in place whereby if a some kernel code >> > uses request_module() on a module already loaded we never bother >> > userspace as the module alrea

Re: [GIT PULL] KVM fixes for 4.10 merge window

2016-12-16 Thread Pan Xinhui
在 2016/12/17 03:42, Linus Torvalds 写道: On Fri, Dec 16, 2016 at 8:57 AM, Paolo Bonzini wrote: git://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus This piece-of-shit branch has obviously never been even compile-tested: arch/x86/kernel/kvm.c: In function ‘__kvm_vcpu_is_preempted

Re: [PATCH] TOMOYO: use designated initializers

2016-12-16 Thread Tetsuo Handa
Kees Cook wrote: > Prepare to mark sensitive kernel structures for randomization by making > sure they're using designated initializers. These were identified during > allyesconfig builds of x86, arm, and arm64, with most initializer fixes > extracted from grsecurity. > > Signed-off-by: Kees Cook

Re: [PATCH 2/2] remoteproc: Remove firmware_loading_complete

2016-12-16 Thread Sarangdhar Joshi
On 12/16/2016 11:28 AM, Bjorn Andersson wrote: On Fri 16 Dec 00:26 PST 2016, loic pallardy wrote: On 12/16/2016 01:03 AM, Sarangdhar Joshi wrote: rproc_del() waits on firmware_loading_complete in order to make sure rproc_add() completed successfully before calling rproc_shutdown(). However

[PATCH] input: i8042-x86ia64io.h: Add Pegatron touchpad to noloop table

2016-12-16 Thread Marcos Paulo de Souza
Avoid AUX loopback in Pegatron C15B touchpad, so input subsystem is able to recognize a synaptics touchpad in the AUX port. Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=93791 (Touchpad is not detected on DNS 0801480 notebook (PEGATRON C15B)) Suggested-by: Dmitry Torokhov Signed-off-by: Mar

Re: [PATCH] ACPICA: use designated initializers

2016-12-16 Thread Rafael J. Wysocki
On Sat, Dec 17, 2016 at 2:04 AM, Kees Cook wrote: > Prepare to mark sensitive kernel structures for randomization by making > sure they're using designated initializers. These were identified during > allyesconfig builds of x86, arm, and arm64, with most initializer fixes > extracted from grsecuri

Re: [PATCH v5 1/4] siphash: add cryptographically secure PRF

2016-12-16 Thread George Spelvin
> I already did this. Check my branch. Do you think it should return "u32" (as you currently have it) or "unsigned long"? I thought the latter, since it doesn't cost any more and makes more > I wonder if this could also lead to a similar aliasing > with arch_get_random_int, since I'm pretty sur

Re: [PATCH] acpi: Fix format string type mistakes

2016-12-16 Thread Rafael J. Wysocki
On Sat, Dec 17, 2016 at 12:04 AM, Kees Cook wrote: > On Fri, Dec 16, 2016 at 2:36 PM, Rafael J. Wysocki wrote: >> On Fri, Dec 16, 2016 at 10:51 PM, Kees Cook wrote: >>> From: Emese Revfy >>> >>> This adds the missing __printf attribute which allows compile time >>> format string checking (and w

Re: [PATCH] apparmor: use designated initializers

2016-12-16 Thread John Johansen
On 12/16/2016 05:04 PM, Kees Cook wrote: > Prepare to mark sensitive kernel structures for randomization by making > sure they're using designated initializers. These were identified during > allyesconfig builds of x86, arm, and arm64, with most initializer fixes > extracted from grsecurity. > > S

Re: [GIT pull] x86/cache: Updates for 4.10

2016-12-16 Thread Tony Luck
On Tue, Dec 13, 2016 at 1:01 AM, Thomas Gleixner wrote: > On Mon, 12 Dec 2016, Linus Torvalds wrote: > >> On Mon, Dec 12, 2016 at 1:53 AM, Thomas Gleixner wrote: >> Ugh, this is some funky stuff. And it's entirely x86-specific, with a >> rather odd special filesystem interface. > > Yes. The inter

Re: [PATCH v5 1/4] siphash: add cryptographically secure PRF

2016-12-16 Thread Jason A. Donenfeld
On Sat, Dec 17, 2016 at 12:44 AM, George Spelvin wrote: > Ths advice I'd give now is: > - Implement > unsigned long hsiphash(const void *data, size_t len, const unsigned long > key[2]) > .. as SipHash on 64-bit (maybe SipHash-1-3, still being discussed) and > HalfSipHash on 32-bit. I already

Re: [PATCH] platform/x86: fujitsu-laptop: set default trigger for radio LED to rfkill-any

2016-12-16 Thread Jonathan Woithe
On Fri, Dec 16, 2016 at 03:46:03PM +0100, Micha?? K??pie?? wrote: > The "radio components indicator" LED present in Lifebook E734/E744/E754 > should be lit when any radio transmitter is enabled, so set its default > trigger to rfkill-any. This shouldn't cause any problems. At the end of the day i

Re: [alsa-devel] [PATCH v6 1/3] clk: x86: Add Atom PMC platform clocks

2016-12-16 Thread Stephen Boyd
On 12/15, Pierre-Louis Bossart wrote: > I am not sure I understand this last comment. > init.name is not a constant, it's made of the "pmc_plt_clk_" string > concatenated with an id which directly maps to which hardware clock > is registered. That's all fine. We need globally unique strings for cl

Re: [PATCH v6] soc: qcom: Add SoC info driver

2016-12-16 Thread Stephen Boyd
On 12/15, Imran Khan wrote: > On 12/14/2016 5:56 AM, Stephen Boyd wrote: > > On 12/12, Imran Khan wrote: > >> The SoC info driver provides information such as Chip ID, > >> Chip family, serial number and other such details about > >> Qualcomm SoCs. > > > > Yes but why do we care? > > > > We inten

Re: [PATCH 3/3] arm64: dts: rockchip: add clk-480m for ehci and ohci of rk3399

2016-12-16 Thread Heiko Stuebner
Am Freitag, 16. Dezember 2016, 14:57:01 CET schrieb Xing Zheng: > Hi Heiko, Doug, > > On 2016年12月16日 02:18, Heiko Stuebner wrote: > > Am Donnerstag, 15. Dezember 2016, 08:34:09 CET schrieb Doug Anderson: > >> I still need to digest all of the things that were added to this > >> thread overnight, b

Re: Questions on the task isolation patches

2016-12-16 Thread yunhong jiang
On Fri, 16 Dec 2016 16:00:48 -0500 Chris Metcalf wrote: > Sorry for the slow response - I have been busy with some other things. Thanks for the reply. > > On 12/6/2016 4:43 PM, yunhong jiang wrote: > > On Fri, 2 Dec 2016 13:58:08 -0500 > > Chris Metcalf wrote: > > > >> On 12/1/2016 5:28 PM, yu

[PATCH] reiserfs: use designated initializers

2016-12-16 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- fs/reiserfs/item_ops.c

[PATCH] solo6x10: use designated initializers

2016-12-16 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- drivers/media/pci/solo6

[PATCH] apparmor: use designated initializers

2016-12-16 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- security/apparmor/file.

[PATCH] hpsa: use designated initializers

2016-12-16 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- drivers/scsi/hpsa.h | 4

[PATCH] rbtree: use designated initializers

2016-12-16 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- include/linux/rbtree_au

[PATCH] TOMOYO: use designated initializers

2016-12-16 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- security/tomoyo/file.c

[PATCH] scsi/bfa: use designated initializers

2016-12-16 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- drivers/scsi/bfa/bfa_fc

[PATCH] drm/nouveau: use designated initializers

2016-12-16 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- drivers/gpu/drm/nouveau

[PATCH] cciss: use designated initializers

2016-12-16 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- drivers/block/cciss.h |

[PATCH] RDMA/nes: use designated initializers

2016-12-16 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- drivers/infiniband/hw/n

[PATCH] x86/floppy: use designated initializers

2016-12-16 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- arch/x86/include/asm/fl

[PATCH] drm/vmwgfx: use designated initializers

2016-12-16 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- drivers/gpu/drm/vmwgfx/

[PATCH] net/x25: use designated initializers

2016-12-16 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- net/x25/sysctl_net_x25.

[PATCH] RDMA/i40iw: use designated initializers

2016-12-16 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- drivers/infiniband/hw/i

Re: [PATCH] sbus: char: Move D7S_MINOR to include/linux/miscdevice.h

2016-12-16 Thread Julian Calaby
Hi Corentin, On Fri, Dec 16, 2016 at 6:47 AM, Corentin Labbe wrote: > This patch move the define for D7S_MINOR to include/linux/miscdevice.h. > It's better that all minor number are in the same place. > > Signed-off-by: Corentin Labbe > --- > drivers/sbus/char/display7seg.c | 1 - > include/lin

[PATCH] ACPICA: use designated initializers

2016-12-16 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- drivers/acpi/acpica/hwx

[PATCH] video: use designated initializers

2016-12-16 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- drivers/video/fbdev/mat

[PATCH] video: fbdev: sh_mobile_lcdcfb: use designated initializers

2016-12-16 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- drivers/video/fbdev/sh_

Re: [PATCH 1/2] usb: dwc3: gadget: Fix full speed mode

2016-12-16 Thread John Youn
On 12/7/2016 7:06 PM, John Youn wrote: > On 12/7/2016 4:44 AM, Felipe Balbi wrote: >> >> Hi, >> >> Roger Quadros writes: > Roger Quadros writes: >> DCFG.DEVSPD == 0x3 is not valid and we need to set >> DCFG.DEVSPD to 0x1 for full speed mode. > > seems like it has been made inv

[PATCH] drm/amdgpu: use designated initializers

2016-12-16 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- drivers/gpu/drm/amd/amd

[PATCH] drm/ttm: use designated initializers

2016-12-16 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- drivers/gpu/drm/ttm/ttm

[PATCH] staging: lustre: ldlm: use designated initializers

2016-12-16 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- drivers/staging/lustre/

[PATCH] spi: rockchip: support "sleep" pin configuration

2016-12-16 Thread Brian Norris
In the pattern of many other devices, support a system-sleep pin configuration. Signed-off-by: Brian Norris --- Documentation/devicetree/bindings/spi/spi-rockchip.txt | 7 +++ drivers/spi/spi-rockchip.c | 5 + 2 files changed, 12 insertions(+) diff --git a/Do

[PATCH] bna: use designated initializers

2016-12-16 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- drivers/net/ethernet/br

[PATCH] isdn: use designated initializers

2016-12-16 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- drivers/isdn/i4l/isdn_c

[PATCH] sgi-xp: use designated initializers

2016-12-16 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- drivers/misc/sgi-xp/xp_

[PATCH] mtk-vcodec: use designated initializers

2016-12-16 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- drivers/media/platform/

[PATCH] WAN: use designated initializers

2016-12-16 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- drivers/net/wan/lmc/lmc

[PATCH] drm/ttm: use designated initializers

2016-12-16 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- drivers/gpu/drm/virtio/

[PATCH] net: use designated initializers

2016-12-16 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- net/decnet/dn_dev.c | 2

[PATCH] ALSA: use designated initializers

2016-12-16 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- sound/synth/emux/emux_s

[PATCH] ATM: use designated initializers

2016-12-16 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- net/atm/lec.c

[PATCH] isdn/gigaset: use designated initializers

2016-12-16 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- drivers/isdn/gigaset/ba

Re: [PATCH 2/2] Input: i8042 - change dbg to pr_warn when returning errors

2016-12-16 Thread Dmitry Torokhov
Hi Marcos, On Tue, Dec 06, 2016 at 09:44:55PM -0200, Marcos Paulo de Souza wrote: > Signed-off-by: Marcos Paulo de Souza > --- > drivers/input/serio/i8042.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c > i

Re: [PATCH -v4 04/10] futex: Use smp_store_release() in mark_wake_futex()

2016-12-16 Thread Darren Hart
On Tue, Dec 13, 2016 at 09:36:42AM +0100, Peter Zijlstra wrote: > Since the futex_q can dissapear the instruction after assigning NULL, > this really should be a RELEASE barrier. That stops loads from hitting > dead memory too. > +Paul McKenney Per the introduction of the comment below from:

Re: thermal zones break with patch "Reimplement IDR and IDA using the radix tree" (mainline+next)

2016-12-16 Thread Heiko Stuebner
appens both on todays mainline and > > linux-next-20161216 and produces errors like: > > > > > While I haven't looked to deeply into what idr exactly does, some > > findings: - thermal_zone0 and thermal_zone1 are allocated correctly > > - every further th

[PATCH] net: mv643xx_eth: fix build failure

2016-12-16 Thread Sudip Mukherjee
ly use #if defined(CONFIG_OF_IRQ) in the code. Signed-off-by: Sudip Mukherjee --- build log of next-20161216 is at: https://travis-ci.org/sudipm-mukherjee/parport/jobs/184652820 drivers/net/ethernet/marvell/mv643xx_eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d

[PATCH] irqchip: st: fix defined but not used compilation warning

2016-12-16 Thread Jérémy Lefaure
When CONFIG_PM_SLEEP is disabled, the compiler raises a warning on st_irq_syscfg_resume: drivers/irqchip/irq-st.c:183:12: warning: 'st_irq_syscfg_resume' defined but not used [-Wunused-function] static int st_irq_syscfg_resume(struct device *dev) ^~~~ Adding __maybe_

RE: [PATCH RFC] liquidio: make timeout HZ independent

2016-12-16 Thread Chickles, Derek
> -Original Message- > From: Nicholas Mc Guire [mailto:hof...@osadl.org] > Sent: Thursday, December 15, 2016 10:57 PM > To: Chickles, Derek > Cc: Burla, Satananda; Manlunas, Felix; Vatsavayi, Raghu; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; Nicholas Mc Guire > Subject: [PATCH

[PATCH 8/8] blk-mq-sched: allow setting of default IO scheduler

2016-12-16 Thread Jens Axboe
Add Kconfig entries to manage what devices get assigned an MQ scheduler, and add a blk-mq flag for drivers to opt out of scheduling. The latter is useful for admin type queues that still allocate a blk-mq queue and tag set, but aren't use for normal IO. Signed-off-by: Jens Axboe --- block/Kconfi

Re: [PATCH -v4 03/10] futex: Cleanup variable names for futex_top_waiter()

2016-12-16 Thread Darren Hart
On Tue, Dec 13, 2016 at 09:36:41AM +0100, Peter Zijlstra wrote: > futex_top_waiter() returns the top-waiter on the pi_mutex. Assinging > this to a variable 'match' totally obscures the code. > Yes please. One wording nit... > Signed-off-by: Peter Zijlstra (Intel) > --- > kernel/futex.c | 30

[PATCH 7/8] mq-deadline: add blk-mq adaptation of the deadline IO scheduler

2016-12-16 Thread Jens Axboe
This is basically identical to deadline-iosched, except it registers as a MQ capable scheduler. This is still a single queue design. Signed-off-by: Jens Axboe --- block/Kconfig.iosched | 6 + block/Makefile| 1 + block/mq-deadline.c | 649 +++

[PATCH 6/8] blk-mq-sched: add framework for MQ capable IO schedulers

2016-12-16 Thread Jens Axboe
This adds a set of hooks that intercepts the blk-mq path of allocating/inserting/issuing/completing requests, allowing us to develop a scheduler within that framework. We reuse the existing elevator scheduler API on the registration side, but augment that with the scheduler flagging support for th

[PATCH 5/8] blk-mq: export some helpers we need to the scheduling framework

2016-12-16 Thread Jens Axboe
Signed-off-by: Jens Axboe --- block/blk-mq.c | 39 +-- block/blk-mq.h | 25 + 2 files changed, 46 insertions(+), 18 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index 6eeae30cc027..c3119f527bc1 100644 --- a/block/blk-mq.c +

[PATCH 4/8] blk-mq: un-export blk_mq_free_hctx_request()

2016-12-16 Thread Jens Axboe
It's only used in blk-mq, kill it from the main exported header and kill the symbol export as well. Signed-off-by: Jens Axboe --- block/blk-mq.c | 5 ++--- include/linux/blk-mq.h | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index 8

[PATCHSET v4] blk-mq-scheduling framework

2016-12-16 Thread Jens Axboe
This is version 4 of this patchset, version 3 was posted here: https://marc.info/?l=linux-block&m=148178513407631&w=2 >From the discussion last time, I looked into the feasibility of having two sets of tags for the same request pool, to avoid having to copy some of the request fields at dispatch

[PATCH 1/8] block: move existing elevator ops to union

2016-12-16 Thread Jens Axboe
Prep patch for adding MQ ops as well, since doing anon unions with named initializers doesn't work on older compilers. Signed-off-by: Jens Axboe --- block/blk-ioc.c | 8 +++ block/blk-merge.c| 4 ++-- block/blk.h | 10 block/cfq-iosched.c | 2 +-

[PATCH 2/8] blk-mq: make mq_ops a const pointer

2016-12-16 Thread Jens Axboe
We never change it, make that clear. Signed-off-by: Jens Axboe Reviewed-by: Bart Van Assche --- block/blk-mq.c | 2 +- include/linux/blk-mq.h | 2 +- include/linux/blkdev.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index d79fd

[PATCH 3/8] block: move rq_ioc() to blk.h

2016-12-16 Thread Jens Axboe
We want to use it outside of blk-core.c. Signed-off-by: Jens Axboe --- block/blk-core.c | 16 block/blk.h | 16 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/block/blk-core.c b/block/blk-core.c index 61ba08c58b64..92baea07acbc 100644 ---

Re: [PATCH -v4 02/10] futex: Add missing error handling to FUTEX_REQUEUE_PI

2016-12-16 Thread Darren Hart
On Tue, Dec 13, 2016 at 09:36:40AM +0100, Peter Zijlstra wrote: > Thomas spotted that fixup_pi_state_owner() can return errors and we > fail to unlock the rt_mutex in that case. > We handled this explicitly before Patch 1/10, so can this be rolled into 1/10 (er 9) as a single commit? > Reported-

Re: OOM: Better, but still there on

2016-12-16 Thread Michal Hocko
On Fri 16-12-16 19:47:00, Nils Holland wrote: [...] > Despite the fact that I'm no expert, I can see that there's no more > GFP_NOFS being logged, which seems to be what the patches tried to > achieve. What the still present OOMs mean remains up for > interpretation by the experts, all I can say is

Re: [PATCH -v4 01/10] futex: Fix potential use-after-free in FUTEX_REQUEUE_PI

2016-12-16 Thread Darren Hart
On Tue, Dec 13, 2016 at 09:36:39AM +0100, Peter Zijlstra wrote: > While working on the futex code, I stumbled over this potential > use-after-free scenario. > > pi_mutex is a pointer into pi_state, which we drop the reference on in > unqueue_me_pi(). So any access to that pointer after that is bad

Re: [PATCH v5 1/4] siphash: add cryptographically secure PRF

2016-12-16 Thread George Spelvin
> 64-bit security for an RNG is not reasonable even with rekeying. No no > no. Considering we already have a massive speed-up here with the > secure version, there's zero reason to start weakening the security > because we're trigger happy with our benchmarks. No no no. Just to clarify, I was disc

Re: [PATCH -v4 00/10] FUTEX_UNLOCK_PI wobbles

2016-12-16 Thread Darren Hart
On Tue, Dec 13, 2016 at 09:36:38AM +0100, Peter Zijlstra wrote: > > Hi all, > > This is (I think) the 4th attempt at fixing this tiny pesky issue with > FUTEX_UNLOCK_PI, where we would really like to drop (and unboost) the rt_mutex > without holding hb->lock. > > While going through the requeue

Re: OOM: Better, but still there on 4.9

2016-12-16 Thread Michal Hocko
On Fri 16-12-16 17:47:25, Chris Mason wrote: > On 12/16/2016 05:14 PM, Michal Hocko wrote: > > On Fri 16-12-16 13:15:18, Chris Mason wrote: > > > On 12/16/2016 02:39 AM, Michal Hocko wrote: > > [...] > > > > I believe the right way to go around this is to pursue what I've started > > > > in [1]. I

Re: [PATCH 1/3] staging: android: remove ION_IOC_SYNC

2016-12-16 Thread Matthew Smith
On Fri, Dec 16, 2016 at 03:05:54PM -0800, Laura Abbott wrote: > The 'remove' from that TODO is more than just removing the code. > There's also an implicit 'replace it with something else'. The > work to do this is still ongoing (see some of my latest patches). > NAK for all 3 of these patches righ

Re: [PATCH v3] mfd: intel-lpss: Avoid resuming runtime-suspended lpss unnecessarily

2016-12-16 Thread Lukas Wunner
Hi Lee, you wrote on Oct 4 that you applied the below patch for v4.10. However I don't see the patch on your for-mfd-next branch. Maybe the patch slipped between the cracks, please double-check. I would like to use the DPM_DIRECT_COMPLETE macro introduced by it in a patch of my own. I also don't

[PATCH v6 2/5] lib: implement __arch_bitrev8x4()

2016-12-16 Thread Joshua Clayton
Implement faster bitrev8x4() for arm, arm64 and mips, all the platforms with CONFIG_HAVE_ARCH_BITREVERSE. ARM platforms just need a byteswap added to the existing __arch_bitrev32() Amusingly, the mips implementation is exactly the opposite, requiring removal of the byteswap from its __arch_bitrev32

[PATCH v6 3/5] doc: dt: add cyclone-ps-spi binding document

2016-12-16 Thread Joshua Clayton
Describe a cyclone-ps-spi devicetree entry, required features Signed-off-by: Joshua Clayton Acked-by: Rob Herring --- .../bindings/fpga/cyclone-ps-spi-fpga-mgr.txt | 25 ++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/fpga/cycl

[PATCH v6 5/5] ARM: dts: imx6q-evi: support cyclone-ps-spi

2016-12-16 Thread Joshua Clayton
Add support for Altera cyclone V FPGA connected to an spi port to the evi devicetree file Signed-off-by: Joshua Clayton --- arch/arm/boot/dts/imx6q-evi.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/imx6q-evi.dts b/arch/arm/boot/dts/imx6q-evi.dts inde

[PATCH v6 1/5] lib: add bitrev8x4()

2016-12-16 Thread Joshua Clayton
Add a function to reverse bytes within a 32 bit word. Operate on a u32 rather than individual bytes. ARCH specific versions require substantially fewer instructions than working a byte at a time. Signed-off-by: Joshua Clayton --- include/linux/bitrev.h | 25 + 1 file chan

[PATCH v6 4/5] fpga manager: Add cyclone-ps-spi driver for Altera FPGAs

2016-12-16 Thread Joshua Clayton
cyclone-ps-spi loads FPGA firmware over spi, using the "passive serial" interface on Altera Cyclone FPGAS. This is one of the simpler ways to set up an FPGA at runtime. The signal interface is close to unidirectional spi with lsb first. Signed-off-by: Joshua Clayton --- drivers/fpga/Kconfig

[PATCH v6 0/5] Altera Cyclone Passive Serial SPI FPGA Manager

2016-12-16 Thread Joshua Clayton
This series adds an FPGA manager for Altera cyclone FPGAs that can program them using an spi port and a couple of gpios, using Alteras passive serial protocol. Need ACKs from ARCH maintainers for ARCH specific implementations of __arch_bitrev8x4(), and I've added more ARCHes, so will need more ACK

Re: [PATCH v4 1/4] gcc-plugins: Add the initify gcc plugin

2016-12-16 Thread PaX Team
On 16 Dec 2016 at 15:02, Kees Cook wrote: > >> static inline struct cgraph_node_hook_list > >> *cgraph_add_function_insertion_hook(cgraph_node_hook hook, void *data) > >> { > >> return symtab->add_cgraph_insertion_hook(hook, data); > > > > ...this one aren't needed by any plugins upstream so

[PATCH 08/14] x86/cqm: Add support for monitoring task and cgroup together

2016-12-16 Thread Vikas Shivappa
From: David Carrillo-Cisneros This patch adds support to monitor a cgroup x and a task p1 when p1 is part of cgroup x. Since we cannot write two RMIDs during sched in the driver handles this. This patch introduces a u32 *rmid in the task_struck which keeps track of the RMIDs associated with the

[PATCH 09/14] x86/cqm: Add Continuous cgroup monitoring

2016-12-16 Thread Vikas Shivappa
This patch adds support for cgroup continuous monitoring which enables to start monitoring a cgroup by toggling the cont_monitor field in the cgroup without any perf overhead. The cgroup would be monitored from the time this field is set and user can fetch the data from the perf when data is needed

  1   2   3   4   5   6   7   8   >