[PATCH v3 03/10] compat: enable compat_get/put_timespec64 always

2018-01-15 Thread Deepa Dinamani
These functions are used in the repurposed compat syscalls to provide backward compatibility for using 32 bit time_t on 32 bit systems. Signed-off-by: Deepa Dinamani --- include/linux/compat.h | 2 -- include/linux/compat_time.h | 4 kernel/compat.c | 52 +++--

Re: [PATCH 39/40] drm/rockchip: analogix_dp: Fix invalid implementation of unbind

2018-01-15 Thread Tomasz Figa
Hi Thierry, On Tue, Jan 16, 2018 at 2:16 AM, Thierry Escande wrote: > From: Tomasz Figa > > Current implementation of unbind dereferences the drvdata pointer > assuming that it's its own data, however the ownership belongs to the > analogix code, which means that the pointer is dereferenced with

Re: [PATCH 0/2] genirq/affinity: try to make sure online CPU is assgined to irq vector

2018-01-15 Thread Ming Lei
On Mon, Jan 15, 2018 at 09:40:36AM -0800, Christoph Hellwig wrote: > On Tue, Jan 16, 2018 at 12:03:43AM +0800, Ming Lei wrote: > > Hi, > > > > These two patches fixes IO hang issue reported by Laurence. > > > > 84676c1f21 ("genirq/affinity: assign vectors to all possible CPUs") > > may cause one

Re: [mm 4.15-rc8] Random oopses under memory pressure.

2018-01-15 Thread Linus Torvalds
On Mon, Jan 15, 2018 at 5:15 PM, Tetsuo Handa wrote: > > I can't reproduce this with CONFIG_FLATMEM=y . But I'm not sure whether > we are hitting a bug in CONFIG_SPARSEMEM=y code, for the bug is highly > timing dependent. Hmm. Maybe. But sparsemem really also generates *much* more complex code pa

Re: linux-next: Tree for Jan 15 (drivers/usb/mtu3/)

2018-01-15 Thread Chunfeng Yun
Hi, Arnd had sent a patch to fix this issue, please refer to : https://patchwork.kernel.org/patch/10155685 thanks On Mon, 2018-01-15 at 11:34 -0800, Randy Dunlap wrote: > On 01/14/2018 09:44 PM, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20180112: > > > > on i386: > > ../driv

Re: [PATCHv2 5/7] printk: allow kmsg to be encrypted using public key encryption

2018-01-15 Thread Sergey Senozhatsky
On (01/15/18 07:52), Steven Rostedt wrote: [..] > I'm very skeptical that such an approach has much benefit. From the > email referenced above: agreed. dmesg can be SECURITY_DMESG_RESTRICT. so the patch is *probably* aiming the systems in which anyone can read dmesg, but we kinda don't want that t

Re: linux-next: manual merge of the printk tree with Linus' tree

2018-01-15 Thread Sergey Senozhatsky
On (01/16/18 09:23), Stephen Rothwell wrote: > Today's linux-next merge of the printk tree got a conflict in: > > scripts/checkpatch.pl > > between commit: > > 7b1924a1d930 ("vsprintf: add printk specifier %px") > > from Linus' tree and commit: > > 1df7338ac965 ("checkpatch: add pF/pf de

Re: [PATCH v4 00/36] hrtimer: Provide softirq context hrtimers

2018-01-15 Thread Ingo Molnar
* Ingo Molnar wrote: > No serious changes intended, but please double check the end result once I've > pushed it out after local testing. I made the fix below for the !NO_HZ_COMMON || !HIGH_RES_TIMERS case, which would fail with a build failure due to non-available __hrtimer_next_event_base(

[PATCH 0/2] [GIT PULL] tracing: A couple of fixes for 4.15

2018-01-15 Thread Steven Rostedt
Linus, This includes two fixes - Bring back context level recursive protection in ring buffer. The simpler counter protection failed, due to a path when tracing with trace_clock_global() as it could not be reentrant and depended on the ring buffer recursive protection to keep that f

[PATCH 2/2] tracing: Prevent PROFILE_ALL_BRANCHES when FORTIFY_SOURCE=y

2018-01-15 Thread Steven Rostedt
From: Randy Dunlap I regularly get 50 MB - 60 MB files during kernel randconfig builds. These large files mostly contain (many repeats of; e.g., 124,594): In file included from ../include/linux/string.h:6:0, from ../include/linux/uuid.h:20, from ../include/linux

[PATCH 1/2] ring-buffer: Bring back context level recursive checks

2018-01-15 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Commit 1a149d7d3f45 ("ring-buffer: Rewrite trace_recursive_(un)lock() to be simpler") replaced the context level recursion checks with a simple counter. This would prevent the ring buffer code from recursively calling itself more than the max number of contexts tha

Re: [PATCH bpf-next] bpftool: recognize BPF_PROG_TYPE_CGROUP_DEVICE programs

2018-01-15 Thread Daniel Borkmann
On 01/15/2018 08:49 PM, Roman Gushchin wrote: > On Mon, Jan 15, 2018 at 07:32:01PM +, Quentin Monnet wrote: >> 2018-01-15 19:16 UTC+ ~ Roman Gushchin >>> Bpftool doesn't recognize BPF_PROG_TYPE_CGROUP_DEVICE programs, >>> so the prog show command prints the numeric type value: >>> >>> $ bp

Re: [PATCH v5 0/2] printk: Console owner and waiter logic cleanup

2018-01-15 Thread Sergey Senozhatsky
On (01/15/18 07:06), Steven Rostedt wrote: > > > Yep, but I'm still not convinced you are seeing an issue with a single > > > printk. > > > > what do you mean by this? > > I'm not sure your issues happen because a single printk is locked up, > but you have many printks in one area. hm, need to

Re: [PATCH v4 00/36] hrtimer: Provide softirq context hrtimers

2018-01-15 Thread Ingo Molnar
* Anna-Maria Gleixner wrote: > There are quite some places in the kernel which use a combination of > hrtimers and tasklets to make use of the precise expiry of hrtimers, which > schedule a tasklet to bring the actual function into softirq context. > > This was introduced when the previous hrti

Re: [PATCH v6 5/5] kaslr: add kaslr_mem=nn[KMG]!ss[KMG] to avoid memory regions

2018-01-15 Thread Chao Fan
On Tue, Jan 16, 2018 at 08:43:20AM +0800, Baoquan He wrote: >On 01/15/18 at 08:49pm, Chao Fan wrote: >> Hi Luiz, >> >> I don't know if this patch is OK for you. >> Of coure you can only use kaslr_mem=nn@ss to solve the 1G huge page >> issue. Because we know the region [0,1G] is not suitable for 1G

Re: [PATCH 0/2] genirq/affinity: try to make sure online CPU is assgined to irq vector

2018-01-15 Thread Ming Lei
On Mon, Jan 15, 2018 at 06:43:47PM +0100, Thomas Gleixner wrote: > On Tue, 16 Jan 2018, Ming Lei wrote: > > These two patches fixes IO hang issue reported by Laurence. > > > > 84676c1f21 ("genirq/affinity: assign vectors to all possible CPUs") > > may cause one irq vector assigned to all offline C

答复: [PATCH] x86/acpi/cstate delete some unuseful operations

2018-01-15 Thread Tim Guo(BJ-RD)
Add more. Tim -邮件原件- 发件人: Tim Guo(BJ-RD) 发送时间: 2018年1月10日 11:47 收件人: 'Rafael J. Wysocki' 抄送: t...@linutronix.de; mi...@redhat.com; h...@zytor.com; mi...@kernel.org; x...@kernel.org; linux...@vger.kernel.org; linux-kernel@vger.kernel.org; Bruce Chang (VAS) ; Cooper Yan(BJ-RD) ; Qiyuan

Re: [PATCH 0/2] genirq/affinity: try to make sure online CPU is assgined to irq vector

2018-01-15 Thread Ming Lei
On Mon, Jan 15, 2018 at 09:40:36AM -0800, Christoph Hellwig wrote: > On Tue, Jan 16, 2018 at 12:03:43AM +0800, Ming Lei wrote: > > Hi, > > > > These two patches fixes IO hang issue reported by Laurence. > > > > 84676c1f21 ("genirq/affinity: assign vectors to all possible CPUs") > > may cause one

Re: [PATCH] x86/jailhouse: fix building without X86_X2APIC

2018-01-15 Thread Dou Liyang
Hi Arnd, At 01/16/2018 04:23 AM, Arnd Bergmann wrote: When CONFIG_X86_X2APIC is disabled, jailhouse fails to build: arch/x86/kernel/jailhouse.c: In function 'jailhouse_get_smp_config': arch/x86/kernel/jailhouse.c:73:3: error: 'x2apic_phys' undeclared (first use in this function); did you mean

[PATCH] PM / Hibernate: Remove unused parameter of enough_swap

2018-01-15 Thread Kyungsik Lee
Parameter flags is no longer used, remove it. Signed-off-by: Kyungsik Lee --- kernel/power/swap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/power/swap.c b/kernel/power/swap.c index 293ead5..a46be12 100644 --- a/kernel/power/swap.c +++ b/kernel/power/swap.c @@

Re: [RFC 0/6] Enlightened VMCS support for KVM on Hyper-V

2018-01-15 Thread Wanpeng Li
2018-01-16 1:30 GMT+08:00 Vitaly Kuznetsov : > Early RFC. I'll refer to this patchset in my DevConf/FOSDEM > presentations. > > When running nested KVM on Hyper-V it's possible to use so called > 'Enlightened VMCS' and do normal memory reads/writes instead of > doing VMWRITE/VMREAD instructions. Te

[PATCH] mm: memory: fixed a coding style issue

2018-01-15 Thread Robert Donald Rickett
This is a patch to the memory.c file that fixes the "ERROR: code indent should use tabs where possible" found by the checkpatch.pl tool. Signed-off-by: Robert Donald Rickett --- mm/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memory.c b/mm/memory.c index ca5674

Re: [PATCH v6 1/5] kaslr: add kaslr_mem=nn[KMG]@ss[KMG] to specify extracting memory

2018-01-15 Thread Chao Fan
On Mon, Jan 15, 2018 at 02:40:35PM -0800, Randy Dunlap wrote: >On 01/15/2018 04:40 AM, Chao Fan wrote: >> In current code, kaslr only has a method to avoid some memory regions, >> but no method to specify the regions for kaslr to extract. So kaslr >> may choose the wrong position sometimes, which w

Re: [mm 4.15-rc8] Random oopses under memory pressure.

2018-01-15 Thread Tetsuo Handa
Linus Torvalds wrote: > On Sun, Jan 14, 2018 at 3:54 AM, Tetsuo Handa > wrote: > > This memory corruption bug occurs even on CONFIG_SMP=n CONFIG_PREEMPT_NONE=y > > kernel. This bug highly depends on timing and thus too difficult to bisect. > > This bug seems to exist at least since Linux 4.8 (judg

Re: [PATCH v2] x86/microcode/intel: Extend BDW late-loading with LLC size check

2018-01-15 Thread Jia Zhang
在 2018/1/16 上午2:46, Borislav Petkov 写道: > On Mon, Jan 15, 2018 at 09:11:57PM +0800, Jia Zhang wrote: >> The commit b94b73733171 >> ("x86/microcode/intel: Extend BDW late-loading with a revision check") >> reduces the impact of erratum BDF90 for Broadwell process model. >> Actually, the impact can

[PATCH] reset: ti-rstctrl: use the reset-simple driver

2018-01-15 Thread Tony Lindgren
We can support the RSTCTRL reset registers on many TI SoCs with reset-simple. Cc: Dave Gerlach Cc: Mark Rutland Cc: Nishant Menon Cc: Philipp Zabel Cc: Rob Herring Cc: Suman Anna Cc: Tero Kristo Signed-off-by: Tony Lindgren --- That's all there is to it :) Naturally this can wait for v4.1

Re: [PATCH] perf/trace : Fix repetitious traces of perf on tracepoint When i use perf to trace the sched_wakeup_new tracepoint, there is a bug that output the same event repetitiously. It can be repro

2018-01-15 Thread chengjian (D)
On 2018/1/15 20:31, Peter Zijlstra wrote: I'm sorry I gave an inappropriate example to make the phenomenon look confusing. These events are registered per_cpu and attach in the the perf_event_ctxp of task too. So the same event is placed in the process context CPU times. perf record -e sch

Re: Reg : Spectre & Meltdown

2018-01-15 Thread Akemi Yagi
On Mon, Jan 15, 2018 at 4:50 PM, David Lang wrote: > the 4.4.112 patches that Greg just posted include a bunch of work for these > vulnerabilities. > > Who knows what has been backported to the kernel he is running. > k In RHEL (therefore CentOS), microcode comes from the microcode_ctl package wh

Re: [PATCH v4 02/36] hrtimer: Correct blantanly wrong comment

2018-01-15 Thread Ingo Molnar
* Anna-Maria Gleixner wrote: > From: Thomas Gleixner > > The protection of a hrtimer which runs its callback against migration to a > different CPU has nothing to do with hard interrupt context. > > The protection against migration of a hrtimer running the expiry callback > is the pointer in

Re: [PATCH] x86/pti: Fix !PCID and sanitize defines

2018-01-15 Thread Ingo Molnar
* Laura Abbott wrote: > On 01/13/2018 03:23 PM, Thomas Gleixner wrote: > > The switch to the user space page tables in the low level ASM code sets > > unconditionally bit 12 and bit 11 of CR3. Bit 12 is switching the base > > address of the page directory to the user part, bit 11 is switching th

Re: [PATCH 9/8] KVM: x86: limit MSR_IA32_SPEC_CTRL access based on CPUID availability

2018-01-15 Thread Eric Wheeler
On Tue, 9 Jan 2018, Paolo Bonzini wrote: > MSR_IA32_SPEC_CTRL is not available unless CPU[7,0].EDX[26] is 1. > Check that against host CPUID or guest CPUID, respectively for > host-initiated and guest-initiated accesses. Hi Radim, Paolo: In porting this patch series to v4.14, I'm getting this BUI

Re: linux-next: manual merge of the kvm tree with Linus' and the tip trees

2018-01-15 Thread Ingo Molnar
* Paolo Bonzini wrote: > On 15/01/2018 19:36, Thomas Gleixner wrote: > >> Can KVM folks please stop doing random changes to the cpufeatures code > >> without talking to x86 maintainers and Borislav? > >> > >> This wants to go through TIP or at least reviewed and acked. > > In fact it needs to go

Re: Reg : Spectre & Meltdown

2018-01-15 Thread David Lang
the 4.4.112 patches that Greg just posted include a bunch of work for these vulnerabilities. Who knows what has been backported to the kernel he is running. k

Re: [PATCH 04/19] drm/rockchip: Use the alpha format helper

2018-01-15 Thread Sandy Huang
在 2018/1/9 18:56, Maxime Ripard 写道: Now that the core has a drm format helper to tell if a format embeds an alpha component in it, let's use it. Cc: Mark Yao Signed-off-by: Maxime Ripard --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 13 + 1 file changed, 1 insertion(+), 12 d

Re: [PATCH] netfilter: nf_tables: flow_offload depends on flow_table

2018-01-15 Thread Pablo Neira Ayuso
On Fri, Jan 12, 2018 at 04:50:26PM +0100, Arnd Bergmann wrote: > Without CONFIG_NF_FLOW_TABLE, the new nft_flow_offload module produces > a link error: > > net/netfilter/nft_flow_offload.o: In function > `nft_flow_offload_iterate_cleanup': > nft_flow_offload.c:(.text+0xb0): undefined reference to

Re: [PATCH net-next 1/2] netfilter: nf_defrag: mark xt_table structures 'const' again

2018-01-15 Thread Pablo Neira Ayuso
On Mon, Jan 15, 2018 at 04:49:05PM +0100, Arnd Bergmann wrote: > As a side-effect of adding the module option, we now get a section > mismatch warning: > > WARNING: net/ipv4/netfilter/iptable_raw.o(.data+0x1c): Section mismatch in > reference from the variable packet_raw to the function > .init.

Re: [PATCH net-next 2/2] netfilter: nf_defrag: move NF_CONNTRACK bits into #ifdef

2018-01-15 Thread Pablo Neira Ayuso
On Mon, Jan 15, 2018 at 04:49:06PM +0100, Arnd Bergmann wrote: > We cannot access the skb->_nfct field when CONFIG_NF_CONNTRACK is > disabled: > > net/ipv4/netfilter/nf_defrag_ipv4.c: In function 'ipv4_conntrack_defrag': > net/ipv4/netfilter/nf_defrag_ipv4.c:83:9: error: 'struct sk_buff' has no >

[PATCH 01/22] signal: Document all of the signals that use the _sigfault union member

2018-01-15 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- include/uapi/asm-generic/siginfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/asm-generic/siginfo.h b/include/uapi/asm-generic/siginfo.h index e447283b8f52..cbe1b0cc7a6a 100644 --- a/include/uapi/asm-generic/siginfo.h +

[PATCH 03/22] signal: Document glibc's si_code of SI_ASYNCNL

2018-01-15 Thread Eric W. Biederman
The header uapi/asm-generic/siginfo.h appears to the the repository of all of these definitions in linux so collect up glibcs additions as well. Just to prevent someone from accidentally creating a conflict in the future. Signed-off-by: "Eric W. Biederman" --- include/uapi/asm-generic/siginfo.h

[PATCH 21/22] signal: Remove the code to clear siginfo before calling copy_siginfo_from_user32

2018-01-15 Thread Eric W. Biederman
The new unified copy_siginfo_from_user32 takes care of this. Signed-off-by: "Eric W. Biederman" --- kernel/ptrace.c | 1 - kernel/signal.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/kernel/ptrace.c b/kernel/ptrace.c index 84b1367935e4..ec4365da9be8 100644 --- a/kern

[PATCH 19/22] signal/blackfin: Remove pointless UID16_SIGINFO_COMPAT_NEEDED

2018-01-15 Thread Eric W. Biederman
Nothing tests this define so just remove it. I suspect the intention was to make the uid field in siginfo 16bit however I can't find any code that ever tested this defined, and even if it did it the layout has been this way for 8 years so changing it now would break the ABI with userspace. Signed

[PATCH 15/22] signal/ia64: Move the ia64 specific si_codes to asm-generic/siginfo.h

2018-01-15 Thread Eric W. Biederman
Having si_codes in many different files simply encourages duplicate definitions that can cause problems later. To avoid that merge the ia64 specific si_codes into uapi/asm-generic/siginfo.h Update the sanity checks in arch/x86/kernel/signal_compat.c to expect the now lager NSIGILL and NSIGFPE. A

[PATCH 20/22] signal: Unify and correct copy_siginfo_from_user32

2018-01-15 Thread Eric W. Biederman
The function copy_siginfo_from_user32 is used for two things, in ptrace since the dawn of siginfo for arbirarily modifying a signal that user space sees, and in sigqueueinfo to send a signal with arbirary siginfo data. Create a single copy of copy_siginfo_from_user32 that all architectures share,

[PATCH 16/22] signal/frv: Move the frv specific si_codes to asm-generic/siginfo.h

2018-01-15 Thread Eric W. Biederman
Having si_codes in many different files simply encourages duplicate definitions that can cause problems later. To avoid that merce the frv specific si_codes into uapi/asm-generic/siginfo.h This allows the removal of arch/frv/uapi/include/asm/siginfo.h as the last last meaningful definition it hel

[PATCH 13/22] signal: Move addr_lsb into the _sigfault union for clarity

2018-01-15 Thread Eric W. Biederman
The addr_lsb fields is only valid and available when the signal is SIGBUS and the si_code is BUS_MCEERR_AR or BUS_MCEERR_AO. Document this with a comment and place the field in the _sigfault union to make this clear. All of the fields stay in the same physical location so both the old and new defi

[PATCH 14/22] signal/powerpc: Remove redefinition of NSIGTRAP on powerpc

2018-01-15 Thread Eric W. Biederman
NSIGTRAP is 4 in the generic siginfo and powerpc just undefines NSGTRAP and redefine it as 4. That accomplishes nothing so remove the duplication. Signed-off-by: "Eric W. Biederman" --- arch/powerpc/include/uapi/asm/siginfo.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/powerpc/in

[PATCH 17/22] signal/tile: Move the tile specific si_codes to asm-generic/siginfo.h

2018-01-15 Thread Eric W. Biederman
Having si_codes in many different files simply encourages duplicate definitions that can cause problems later. To avoid that merge the tile specific si_codes into uapi/asm-generic/siginfo.h Signed-off-by: "Eric W. Biederman" --- arch/tile/include/uapi/asm/siginfo.h | 8 include/uapi/as

[PATCH 12/22] signal: unify compat_siginfo_t

2018-01-15 Thread Eric W. Biederman
From: Al Viro --EWB Added #ifdef CONFIG_X86_X32_ABI to arch/x86/kernel/signal_compat.c Changed #ifdef CONFIG_X86_X32 to #ifdef CONFIG_X86_X32_ABI in linux/compat.h CONFIG_X86_X32 is set when the user requests X32 support. CONFIG_X86_X32_ABI is set when the user requests

[PATCH 18/22] signal/blackfin: Move the blackfin specific si_codes to asm-generic/siginfo.h

2018-01-15 Thread Eric W. Biederman
Having si_codes in many different files simply encourages duplicate definitions that can cause problems later. To avoid that merge the blackfin specific si_codes into uapi/asm-generic/siginfo.h Update copy_siginfo_to_user to copy with the absence of BUS_MCEERR_AR that blackfin defines to be som

[PATCH 11/22] signal: kill __ARCH_SI_UID_T

2018-01-15 Thread Eric W. Biederman
From: Al Viro it's always __kernel_uid32_t Signed-off-by: Al Viro Signed-off-by: Eric W. Biederman --- include/uapi/asm-generic/siginfo.h | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/include/uapi/asm-generic/siginfo.h b/include/uapi/asm-generic/siginfo.h in

Re: [PATCH v6 5/5] kaslr: add kaslr_mem=nn[KMG]!ss[KMG] to avoid memory regions

2018-01-15 Thread Baoquan He
On 01/15/18 at 08:49pm, Chao Fan wrote: > Hi Luiz, > > I don't know if this patch is OK for you. > Of coure you can only use kaslr_mem=nn@ss to solve the 1G huge page > issue. Because we know the region [0,1G] is not suitable for 1G huge > page, so you can specify ksalr_mem=1G@0 of kaslr_mem=1G to

[PATCH 22/22] signal: Unify and correct copy_siginfo_to_user32

2018-01-15 Thread Eric W. Biederman
Among the existing architecture specific versions of copy_siginfo_to_user32 there are several different implementation problems. Some architectures fail to handle all of the cases in in the siginfo union. Some architectures perform a blind copy of the siginfo union when the si_code is negative.

[PATCH 07/22] ia64/signal: switch to generic struct siginfo

2018-01-15 Thread Eric W. Biederman
... at a cost of added small ifdef __ia64__ in asm-generic siginfo.h, that is. -- EWB Corrected the comment on _flags to reflect the move Signed-off-by: Al Viro Signed-off-by: "Eric W. Biederman" --- arch/ia64/include/uapi/asm/siginfo.h | 67 include/uapi/a

[PATCH 05/22] signal: Clear si_sys_private before copying siginfo to userspace

2018-01-15 Thread Eric W. Biederman
In preparation for unconditionally copying the whole of siginfo to userspace clear si_sys_private. So this kernel internal value is guaranteed not to make it to userspace. Signed-off-by: "Eric W. Biederman" --- kernel/signal.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/signal

[PATCH 08/22] signal/ia64: switch the last arch-specific copy_siginfo_to_user() to generic version

2018-01-15 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- arch/ia64/include/uapi/asm/siginfo.h | 2 -- arch/ia64/kernel/signal.c| 52 kernel/signal.c | 9 --- 3 files changed, 5 insertions(+), 58 deletions(-) diff --git a/arch/ia64/include

[PATCH 10/22] signal: Remove unnecessary ifdefs now that there is only one struct siginfo

2018-01-15 Thread Eric W. Biederman
Remove HAVE_ARCH_SIGINFO_T Remove __ARCH_SIGSYS Signed-off-by: "Eric W. Biederman" --- include/linux/signal.h | 2 -- include/uapi/asm-generic/siginfo.h | 8 kernel/signal.c| 4 3 files changed, 14 deletions(-) diff --git a/include/linux/signal.h b/

Re: [RFC] x86: Avoid CR3 load on compatibility mode with PTI

2018-01-15 Thread Ingo Molnar
* Nadav Amit wrote: > > Also, what's the end goal here? Run old 32-bit binaries better? You > > want to weaken the security of the whole implementation to do that? > > Sounds like a bad tradeoff to me. > > As Willy noted in this thread, I think that some users may be interested in > running

[PATCH 06/22] signal: Remove _sys_private and _overrun_incr from struct compat_siginfo

2018-01-15 Thread Eric W. Biederman
We have never passed either field to or from userspace so just remove them. Signed-off-by: "Eric W. Biederman" --- arch/arm64/include/asm/compat.h | 1 - arch/parisc/include/asm/compat.h | 1 - arch/powerpc/include/asm/compat.h | 1 - arch/s390/include/asm/compat.h| 1 - arch/sparc/includ

[PATCH 09/22] signal/mips: switch mips to generic siginfo

2018-01-15 Thread Eric W. Biederman
From: Al Viro ... having taught the latter that si_errno and si_code might be swapped. Signed-off-by: Al Viro Signed-off-by: Eric W. Biederman --- arch/mips/include/uapi/asm/siginfo.h | 86 +--- include/uapi/asm-generic/siginfo.h | 5 +++ 2 files changed, 6

[PATCH 04/22] signal: Ensure no siginfo union member increases the size of struct siginfo

2018-01-15 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- kernel/signal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/signal.c b/kernel/signal.c index 241d54958bbb..b9e5d825ee46 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -3688,6 +3688,7 @@ void __init signals_init(void) /* If this

[PATCH 02/22] signal: Document the strange si_codes used by ptrace event stops

2018-01-15 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- include/uapi/asm-generic/siginfo.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/uapi/asm-generic/siginfo.h b/include/uapi/asm-generic/siginfo.h index cbe1b0cc7a6a..7158421ac911 100644 --- a/include/uapi/asm-generic/siginfo.h +++ b/includ

[PATCH 00/22] siginfo unification

2018-01-15 Thread Eric W. Biederman
The following changes are available at: git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git siginfo-testing This set of changes unifies struct siginfo and struct compat_siginfo so that there is only one definition of each. Additionally this ends up with a single imple

Re: [PATCH 8/8] KVM: x86: add SPEC_CTRL and IBPB_SUPPORT to MSR and CPUID lists

2018-01-15 Thread Eric Wheeler
On Sat, 13 Jan 2018, Paolo Bonzini wrote: > Just add the new MSR at the end of the array. I'm assuming you meant emulated_msrs[], correct? -- Eric Wheeler > > Paolo > > - Eric Wheeler ha scritto: > > On Tue, 9 Jan 2018, Paolo Bonzini wrote: > > > > > Expose them to userspace, now t

Re: [PATCH] ipmi: Clear smi_info->thread to prevent use-after-free during module unload

2018-01-15 Thread Corey Minyard
On 01/15/2018 01:58 AM, Masamitsu Yamazaki wrote: Subject:[PATCH] ipmi: Clear smi_info->thread to prevent use-after-free during module unload To: Corey Minyard To: openipmi-develo...@lists.sourceforge.net Cc: linux-kernel@vger.kernel.org Cc: j-nom...@ce.jp.nec.com Cc: k-u...@ct.jp.nec.com Cc: m

Re: PM regression in next

2018-01-15 Thread Kuninori Morimoto
Hi Mark, Tony > From tony Mon Sep 17 00:00:00 2001 > From: Tony Lindgren > Date: Fri, 12 Jan 2018 10:24:36 -0800 > Subject: [PATCH] ASoC: Fix twl4030 and 6040 regression by adding back read > and write > > Commit 3bb0f7c31b1a ("ASoC: don't use snd_soc_write/read on twl4030") > caused regressio

Re: PM regression in next

2018-01-15 Thread Tony Lindgren
* Kuninori Morimoto [180115 23:22]: > > For the next set of changes like this, > > please make sure you Cc the driver authors so they can test > > and ack the changes if you can't test them, OK? > > Actually, I have posted "convert codec/platform to component" > patch-set to ALSA ML, without Cc:i

Re: [PATCH 1/2] objtool: Fix seg fault with gold linker

2018-01-15 Thread Ingo Molnar
* Josh Poimboeuf wrote: > Objtool seg faults when the gold linker is used with > CONFIG_MODVERSIONS=y and CONFIG_UNWINDER_ORC=y. > > With CONFIG_MODVERSIONS=y, the .o file gets passed to the linker before > being passed to objtool. The gold linker seems to strip unused ELF > symbols by default

Re: [PATCH 4.15-rc8] net/core: Increase default optmem_max limit

2018-01-15 Thread Björn 'besser82' Esser
With the new Linux Kernel Crypto API User Space Interface and its underlying socket interface, the current default value for `net.core.optmem_max` can be exhausted pretty quick. On 32 bit systems it is not even enough for sending 16 IOVECs at once to the socket interface. To provide consumers of t

linux-next: manual merge of the mac80211-next tree with the mac80211 tree

2018-01-15 Thread Stephen Rothwell
Hi Johannes, Today's linux-next merge of the mac80211-next tree got a conflict in: drivers/net/wireless/mac80211_hwsim.c between commit: b71d856ab536 ("mac80211_hwsim: add workqueue to wait for deferred radio deletion on mod unload") from the mac80211 tree and commit: c6509cc3b3e8 ("ma

[PATCH 4.15-rc8] net/core: Increase default optmem_max limit

2018-01-15 Thread Björn 'besser82' Esser
With the new Linux Kernel Crypto API User Space Interface and its underlying socket interface, the current default value for `net.core.optmem_max` can be exhausted pretty quick. On 32 bit systems it is not even enough for sending 16 IOVECs at once to the socket interface. To provide consumers of t

Re: Reg : Spectre & Meltdown

2018-01-15 Thread Akemi Yagi
On Mon, 15 Jan 2018 13:17:17 -0800, David Lang wrote: > you are running a RedHat kernel, you will have to ask them about what they > have > included in it. > k I see that he OP is running kernel 4.4.111 as provided by ELRepo ( http://elrepo.org/tiki/kernel-ml ). Mohammed, try updating the mic

[PATCH 4.15-rc8] net/core: Increase default optmem_max limit

2018-01-15 Thread Björn 'besser82' Esser
With the new Linux Kernel Crypto API User Space Interface and its underlying socket interface, the current default value for `net.core.optmem_max` can be exhausted pretty quick. On 32 bit systems it is not even enough for sending 16 IOVECs at once to the socket interface. To provide consumers of t

Re: [tip:timers/urgent] timers: Unconditionally check deferrable base

2018-01-15 Thread Paul E. McKenney
On Sun, Jan 14, 2018 at 02:44:15PM -0800, Paul E. McKenney wrote: > On Sun, Jan 14, 2018 at 02:31:07PM -0800, tip-bot for Thomas Gleixner wrote: > > Commit-ID: ed4bbf7910b28ce3c691aef28d245585eaabda06 > > Gitweb: > > https://git.kernel.org/tip/ed4bbf7910b28ce3c691aef28d245585eaabda06 > > Auth

[PATCH] drbd: standardize kthread/workqueue thread naming to include drbd minor number

2018-01-15 Thread Eric Wheeler
From: Eric Wheeler For DRBD resources with long names that start with the same prefix, it was difficult to find all process pids for that minor since names are truncated to the task_struct's comm field (16 bytes). This patch names all processes associated with a DRBD device as drbdN_* where N is

Re: [PATCH 2/2] extcon: axp288: Only reschedule charger-detection at boot when a SDP is detected

2018-01-15 Thread Chanwoo Choi
On 2018년 01월 15일 20:32, Hans de Goede wrote: > HI, > > On 15-01-18 10:08, Chanwoo Choi wrote: >> On 2018년 01월 15일 17:36, Hans de Goede wrote: >>> Hi, >>> >>> On 15-01-18 06:22, Chanwoo Choi wrote: On 2018년 01월 15일 00:10, Hans de Goede wrote: > The only misdetection which can happen at boo

linux-next: manual merge of the net-next tree with the net tree

2018-01-15 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: net/ipv6/ip6_output.c between commit: 749439bfac6e ("ipv6: fix udpv6 sendmsg crash caused by too small MTU") from the net tree and commit: 0f6c480f23f4 ("xfrm: Move dst->path into struct xfrm_dst") from the net-ne

linux-next: manual merge of the net-next tree with the net tree

2018-01-15 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: net/openvswitch/flow_netlink.c between commit: 95a332088ecb ("Revert "openvswitch: Add erspan tunnel support."") from the net tree and commit: 1d7e2ed22f8d ("net: erspan: refactor existing erspan code") from the n

[PATCH v4 2/8] dt-bindings: pci: Add DT docs for Brcmstb PCIe device

2018-01-15 Thread Jim Quinlan
The DT bindings description of the Brcmstb PCIe device is described. This node can be used by almost all Broadcom settop box chips, using ARM, ARM64, or MIPS CPU architectures. Signed-off-by: Jim Quinlan --- .../devicetree/bindings/pci/brcmstb-pcie.txt | 59 ++ 1 file

[PATCH v4 4/8] PCI: brcmstb: Add dma-range mapping for inbound traffic

2018-01-15 Thread Jim Quinlan
The Broadcom STB PCIe host controller is intimately related to the memory subsystem. This close relationship adds complexity to how cpu system memory is mapped to PCIe memory. Ideally, this mapping is an identity mapping, or an identity mapping off by a constant. Not so in this case. Consider t

[PATCH v4 3/8] PCI: brcmstb: Add Broadcom STB PCIe host controller driver

2018-01-15 Thread Jim Quinlan
This commit adds the basic Broadcom STB PCIe controller. Missing is the ability to process MSI and also handle dma-ranges for inbound memory accesses. These two functionalities are added in subsequent commits. The PCIe block contains an MDIO interface. This is a local interface only accessible

[PATCH v4 6/8] PCI: brcmstb: Add MSI capability

2018-01-15 Thread Jim Quinlan
This commit adds MSI to the Broadcom STB PCIe host controller. It does not add MSIX since that functionality is not in the HW. The MSI controller is physically located within the PCIe block, however, there is no reason why the MSI controller could not be moved elsewhere in the future. Since the i

[PATCH v4 7/8] MIPS: BMIPS: Add PCI bindings for 7425, 7435

2018-01-15 Thread Jim Quinlan
Adds the PCIe nodes for the Broadcom STB PCIe root complex. Signed-off-by: Jim Quinlan --- arch/mips/boot/dts/brcm/bcm7425.dtsi | 26 ++ arch/mips/boot/dts/brcm/bcm7435.dtsi | 27 +++ arch/mips/boot/dts/brcm/bcm97425svmb.dts | 4 arch

[PATCH v4 8/8] MIPS: BMIPS: Enable PCI

2018-01-15 Thread Jim Quinlan
Adds the Kconfig hooks to enable the Broadcom STB PCIe root complex driver for Broadcom MIPS systems. Signed-off-by: Jim Quinlan --- arch/mips/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 350a990..fe17361 100644 --- a/arch/mips/Kconfi

[PATCH v4 1/8] SOC: brcmstb: add memory API

2018-01-15 Thread Jim Quinlan
From: Florian Fainelli This commit adds a memory API suitable for ascertaining the sizes of each of the N memory controllers in a Broadcom STB chip. Its first user will be the Broadcom STB PCIe root complex driver, which needs to know these sizes to properly set up DMA mappings for inbound regio

[PATCH v4 5/8] PCI/MSI: Enable PCI_MSI_IRQ_DOMAIN support for MIPS

2018-01-15 Thread Jim Quinlan
Add MIPS as an arch that supports PCI_MSI_IRQ_DOMAIN and add generation of msi.h in the MIPS arch. Signed-off-by: Jim Quinlan --- arch/mips/include/asm/Kbuild | 1 + drivers/pci/Kconfig | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/mips/include/asm/Kbuild b/

[PATCH v4 0/8] PCI: brcmstb: Add Broadcom Settopbox PCIe support

2018-01-15 Thread Jim Quinlan
This patch series adds support for the Broadcom Settopbox PCIe host controller. It is targeted to Broadcom Settopbox chips running on ARM, ARM64, and MIPS platforms. V4 Changes: - Merged all BrcmSTB PCIe controller files into a single file. - All new files now have the SPDX identifier. - Re

[PATCH v4 01/17] ASoC: fsl_ssi: Redefine RX and TX macros

2018-01-15 Thread Nicolin Chen
The RX and TX macros were defined implicitly and there was a potential risk if someone changes their values. Since they were defined to index the array ssi->regvals[2], this patch moves these two macros to fsl_ssi.c, closer to its owner ssi->regvals. And it also puts some comments here to limit th

[PATCH v4 04/17] ASoC: fsl_ssi: Maintain a mask of active streams

2018-01-15 Thread Nicolin Chen
Checking TE and RE bits in SCR register doesn't work for AC97 mode which enables SSIEN, TE and RE in the fsl_ssi_setup_ac97() that's called during probe(). So when running into the trigger(), it will always get the result of both TE and RE being enabled already, even if actually there is no active

[PATCH v4 03/17] ASoC: fsl_ssi: Clean up set_dai_tdm_slot()

2018-01-15 Thread Nicolin Chen
This patch replaces the register read with ssi->i2s_net for simplification. It also removes masking SSIEN from scr value since it's handled later by regmap_update_bits() to set this scr value back. Signed-off-by: Nicolin Chen Tested-by: Caleb Crome --- sound/soc/fsl/fsl_ssi.c | 7 ++- 1 fil

[PATCH v4 05/17] ASoC: fsl_ssi: Rename fsl_ssi_disable_val macro

2018-01-15 Thread Nicolin Chen
The define of fsl_ssi_disable_val is not so clear as it mixes two steps of calculations together. And those parameter names are also a bit long to read. Since it just tries to exclude the shared bits from the regvals of current stream while the opposite stream is active, it's better to use somethi

[PATCH v4 02/17] ASoC: fsl_ssi: Keep ssi->i2s_net updated

2018-01-15 Thread Nicolin Chen
The hw_params() overwrites i2s_net settings for special cases like mono-channel support, however, it doesn't update ssi->i2s_net as set_dai_fmt() does. This patch removes the local i2s_net variable and directly updates ssi->i2s_net in the hw_params() so that the driver can simply look up the ssi->

[PATCH v4 08/17] ASoC: fsl_ssi: Add DAIFMT define for AC97

2018-01-15 Thread Nicolin Chen
The _fsl_ssi_set_dai_fmt() bypasses an undefined format for AC97 mode. However, it's not really necessary if AC97 has its complete format defined. So this patch adds a DAIFMT macro of complete format including a clock direction and polarity. Signed-off-by: Nicolin Chen Tested-by: Caleb Crome --

Re: [PATCH v2 1/3] tracing: detect the string termination character when parsing user input string

2018-01-15 Thread Steven Rostedt
On Mon, 15 Jan 2018 19:41:12 +0800 changbin...@intel.com wrote: > From: Changbin Du > > The usersapce can give a '\0' terminated C string in the input buffer. > Before this change, trace_get_user() will return a parsed string "\0" in > below case which is not expected (expects it skip all inputs

[PATCH v4 10/17] ASoC: fsl_ssi: Set xFEN0 and xFEN1 together

2018-01-15 Thread Nicolin Chen
It'd be safer to enable both FIFOs for TX or RX at the same time. Signed-off-by: Nicolin Chen Tested-by: Caleb Crome --- sound/soc/fsl/fsl_ssi.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c index e5efee2..ba06

[PATCH v4 09/17] ASoC: fsl_ssi: Clean up fsl_ssi_setup_regvals()

2018-01-15 Thread Nicolin Chen
This patch cleans fsl_ssi_setup_regvals() by following changes: 1) Moving DBG bits to the first lines. 2) Setting SSIE, RE/TE as default and cleaning it for AC97 Signed-off-by: Nicolin Chen Tested-by: Caleb Crome --- sound/soc/fsl/fsl_ssi.c | 17 ++--- 1 file changed, 6 insertions(+

[PATCH v4 11/17] ASoC: fsl_ssi: Use snd_soc_init_dma_data instead

2018-01-15 Thread Nicolin Chen
Since there is a helper function, use it to help readability. Signed-off-by: Nicolin Chen Tested-by: Caleb Crome --- sound/soc/fsl/fsl_ssi.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c index ba06e94..e1fe511 100644

[PATCH v4 14/17] ASoC: fsl_ssi: Clean up _fsl_ssi_set_dai_fmt()

2018-01-15 Thread Nicolin Chen
The _fsl_ssi_set_dai_fmt() is a helper function being called from fsl_ssi_set_dai_fmt() as an ASoC operation and fsl_ssi_hw_init() mainly for AC97 format initialization. This patch cleans the _fsl_ssi_set_dai_fmt() in following ways: * Removing *dev pointer in the parameters as it's included in th

[PATCH v4 13/17] ASoC: fsl_ssi: Setup AC97 in fsl_ssi_hw_init()

2018-01-15 Thread Nicolin Chen
AC97 configures most of registers earlier to start a communication with CODECs in order to successfully initialize CODEC. Currently, _fsl_ssi_set_dai_fmt() and fsl_ssi_setup_ac97() are called to get all SSI registers properly set. Since now the driver has a fsl_ssi_hw_init() to handle all register

[PATCH v4 07/17] ASoC: fsl_ssi: Clean up helper functions of trigger()

2018-01-15 Thread Nicolin Chen
The trigger() calls fsl_ssi_tx_config() and fsl_ssi_rx_config(), and both of them jump to fsl_ssi_config(). And fsl_ssi_config() later calls another fsl_ssi_rxtx_config(). However, the whole routine, especially fsl_ssi_config() function, is too complicated because of the folowing reasons: 1) It ha

[PATCH v4 12/17] ASoC: fsl_ssi: Move one-time configurations to probe()

2018-01-15 Thread Nicolin Chen
The probe() could handle some one-time configurations since they will not be changed once being configured. Signed-off-by: Nicolin Chen Tested-by: Caleb Crome --- Changelog v2 * Moved all to fsl_ssi_hw_init() in platform probe() sound/soc/fsl/fsl_ssi.c | 39 ++-

<    1   2   3   4   5   6   7   8   9   10   >