Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update from base repository #8

Merged
merged 75 commits into from
Dec 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
5c9afbd
dmaengine: ioat: Fix error handling path
tititiou36 Nov 17, 2017
62a277d
dmaengine: at_hdmac: fix potential NULL pointer dereference in atc_pr…
GustavoARSilva Nov 20, 2017
fc82228
ext4: support fast symlinks from ext3 file systems
Dec 4, 2017
c894aa9
ext4: fix fdatasync(2) after fallocate(2) operation
Dec 4, 2017
ca0168e
alloc_super(): do ->s_umount initialization earlier
Dec 5, 2017
d7ee946
VFS: Handle lazytime in do_mount()
Oct 11, 2017
6f6a23a
dmaengine: dmatest: move callback wait queue to thread context
Nov 27, 2017
eb94369
dmaengine: jz4740: disable/unprepare clk if probe fails
Dec 6, 2017
996fc44
ext4: add missing error check in __ext4_new_inode()
tytso Dec 11, 2017
9d5afec
ext4: fix crash when a directory's i_size is too small
Dec 11, 2017
10a6a69
Revert "dt-bindings: mtd: add sst25wf040b and en25s64 to sip-nor list"
CyrillePitchen Dec 12, 2017
2610acf
dmaengine: fsl-edma: disable clks on all error paths
andipla Dec 14, 2017
cef31d9
posix-timer: Properly check sigevent->sigev_notify
KAGA-KOKO Dec 15, 2017
fdf2e82
mtd: nand: gpmi: Fix failure when a erased page has a bitflip at BBM
saschahauer Dec 5, 2017
e44b9a9
mtd: nand: brcmnand: Zero bitflip is not an error
hsiehwt Nov 20, 2017
bc2fd1b
mtd: nand: gpio: Fix ALE gpio configuration
chleroy Dec 6, 2017
9ec4c8e
Merge branch 'spi-nor/fixes' of ssh://bombadil/srv/git/linux-mtd into…
richardweinberger Dec 16, 2017
1784f91
drivers/misc/intel/pti: Rename the header file to free up the namespace
Dec 5, 2017
0fd2e9c
Merge commit 'upstream-x86-entry' into WIP.x86/mm
Dec 1, 2017
650400b
Merge branch 'upstream-x86-selftests' into WIP.x86/pti.base
Dec 17, 2017
2ec077c
Merge branch 'upstream-acpi-fixes' into WIP.x86/pti.base
Dec 17, 2017
e5d77a7
Merge commit 'upstream-x86-virt' into WIP.x86/mm
Dec 1, 2017
a8b4db5
x86/cpufeature: Add User-Mode Instruction Prevention definitions
ricardon Nov 6, 2017
f2dbad3
x86: Make X86_BUG_FXSAVE_LEAK detectable in CPUID on AMD
ruikruik Nov 28, 2017
2fe1bc1
perf/x86: Enable free running PEBS for REGS_USER/INTR
Aug 31, 2017
ab95477
bpf: fix build issues on um due to mising bpf_perf_event.h
borkmann Dec 12, 2017
c2bc660
locking/barriers: Add implicit smp_read_barrier_depends() to READ_ONCE()
wildea01 Oct 24, 2017
3382290
locking/barriers: Convert users of lockless_dereference() to READ_ONCE()
wildea01 Oct 24, 2017
2aeb073
x86/mm/kasan: Don't use vmemmap_populate() to initialize shadow
aryabinin Nov 16, 2017
e17f823
x86/entry/64/paravirt: Use paravirt-safe macro to access eflags
Dec 4, 2017
d3a0910
x86/unwinder/orc: Dont bail on stack overflow
amluto Dec 4, 2017
b02fcf9
x86/unwinder: Handle stack overflows more gracefully
jpoimboe Dec 4, 2017
6669a69
x86/irq: Remove an old outdated comment about context tracking races
amluto Dec 4, 2017
4f3789e
x86/irq/64: Print the offending IP in the stack overflow warning
amluto Dec 4, 2017
1a79797
x86/entry/64: Allocate and enable the SYSENTER stack
amluto Dec 4, 2017
33a2f1a
x86/dumpstack: Add get_stack_info() support for the SYSENTER stack
amluto Dec 4, 2017
aaeed3a
x86/entry/gdt: Put per-CPU GDT remaps in ascending order
amluto Dec 4, 2017
ef8813a
x86/mm/fixmap: Generalize the GDT fixmap mechanism, introduce struct …
amluto Dec 4, 2017
2150652
x86/kasan/64: Teach KASAN about the cpu_entry_area
amluto Dec 4, 2017
7fb983b
x86/entry: Fix assumptions that the HW TSS is at the beginning of cpu…
amluto Dec 4, 2017
6e60e58
x86/dumpstack: Handle stack overflow on all stacks
amluto Dec 4, 2017
1a935bc
x86/entry: Move SYSENTER_stack to the beginning of struct tss_struct
amluto Dec 4, 2017
72f5e08
x86/entry: Remap the TSS into the CPU entry area
amluto Dec 4, 2017
9aaefe7
x86/entry/64: Separate cpu_current_top_of_stack from TSS.sp0
amluto Dec 4, 2017
6d9256f
x86/espfix/64: Stop assuming that pt_regs is on the entry stack
amluto Dec 4, 2017
7f2590a
x86/entry/64: Use a per-CPU trampoline stack for IDT entries
amluto Dec 4, 2017
3e3b929
x86/entry/64: Return to userspace from the trampoline stack
amluto Dec 4, 2017
3386bc8
x86/entry/64: Create a per-CPU SYSCALL entry trampoline
amluto Dec 4, 2017
40e7f94
x86/entry/64: Move the IST stacks into struct cpu_entry_area
amluto Dec 4, 2017
7fbbd5c
x86/entry/64: Remove the SYSENTER stack canary
amluto Dec 4, 2017
0f9a481
x86/entry: Clean up the SYSENTER_stack code
amluto Dec 4, 2017
c482fee
x86/entry/64: Make cpu_entry_area.tss read-only
amluto Dec 4, 2017
a035795
x86/paravirt: Dont patch flush_tlb_single
KAGA-KOKO Dec 4, 2017
79cc741
x86/paravirt: Provide a way to check for hypervisors
KAGA-KOKO Dec 4, 2017
6cbd217
x86/cpufeatures: Make CPU bugs sticky
KAGA-KOKO Dec 4, 2017
203c110
parisc: Fix indenting in puts()
hdeller Dec 12, 2017
0ed9d3d
parisc: Align os_hpmc_size on word boundary
hdeller Dec 12, 2017
bcf3f17
parisc: Hide Diva-built-in serial aux and graphics card
hdeller Dec 12, 2017
6a16fc3
parisc: remove duplicate includes
Dec 10, 2017
9352aea
Revert "parisc: Re-enable interrupts early"
danglin44 Nov 14, 2017
da57c54
parisc: Reduce thread stack to 16 kb
danglin44 Nov 14, 2017
1c6b942
Merge tag 'ext4_for_stable' of git://git.kernel.org/pub/scm/linux/ker…
torvalds Dec 17, 2017
73d080d
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
torvalds Dec 17, 2017
b9f5fb1
cramfs: fix MTD dependency
arndb Nov 10, 2017
c437279
Merge tag 'dmaengine-fix-4.15-rc4' of git://git.infradead.org/users/v…
torvalds Dec 17, 2017
2ffb448
Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/sc…
torvalds Dec 17, 2017
6ba64fe
Merge branch 'WIP.x86-pti.base.prep-for-linus' of git://git.kernel.or…
torvalds Dec 17, 2017
f8940a0
Merge branch 'WIP.x86-pti.base-for-linus' of git://git.kernel.org/pub…
torvalds Dec 17, 2017
779f4e1
Revert "exec: avoid RLIMIT_STACK races with prlimit()"
kees Dec 12, 2017
1291a0d
Linux 4.15-rc4
torvalds Dec 18, 2017
d82c368
mtd: Fix mtd_check_oob_ops()
miquelraynal Dec 18, 2017
64a4809
Merge branch 'WIP.x86-pti.entry-for-linus' of git://git.kernel.org/pu…
torvalds Dec 18, 2017
cb81fc6
Merge branch 'parisc-4.15-2' of git://git.kernel.org/pub/scm/linux/ke…
torvalds Dec 18, 2017
ace5228
Merge tag 'for-linus-20171218' of git://git.infradead.org/linux-mtd
torvalds Dec 19, 2017
10a7e9d
Do not hash userspace addresses in fault handlers
kees Dec 19, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Documentation/devicetree/bindings/mtd/jedec,spi-nor.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Required properties:
at25df321a
at25df641
at26df081a
en25s64
mr25h128
mr25h256
mr25h10
Expand All @@ -33,7 +32,6 @@ Required properties:
s25fl008k
s25fl064k
sst25vf040b
sst25wf040b
m25p40
m25p80
m25p16
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
VERSION = 4
PATCHLEVEL = 15
SUBLEVEL = 0
EXTRAVERSION = -rc3
EXTRAVERSION = -rc4
NAME = Fearless Coyote

# *DOCUMENTATION*
Expand Down
4 changes: 2 additions & 2 deletions arch/parisc/boot/compressed/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ int puts(const char *s)
while ((nuline = strchr(s, '\n')) != NULL) {
if (nuline != s)
pdc_iodc_print(s, nuline - s);
pdc_iodc_print("\r\n", 2);
s = nuline + 1;
pdc_iodc_print("\r\n", 2);
s = nuline + 1;
}
if (*s != '\0')
pdc_iodc_print(s, strlen(s));
Expand Down
5 changes: 5 additions & 0 deletions arch/parisc/include/asm/thread_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ struct thread_info {

/* thread information allocation */

#ifdef CONFIG_IRQSTACKS
#define THREAD_SIZE_ORDER 2 /* PA-RISC requires at least 16k stack */
#else
#define THREAD_SIZE_ORDER 3 /* PA-RISC requires at least 32k stack */
#endif

/* Be sure to hunt all references to this down when you change the size of
* the kernel stack */
#define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
Expand Down
12 changes: 9 additions & 3 deletions arch/parisc/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -878,9 +878,6 @@ ENTRY_CFI(syscall_exit_rfi)
STREG %r19,PT_SR7(%r16)

intr_return:
/* NOTE: Need to enable interrupts incase we schedule. */
ssm PSW_SM_I, %r0

/* check for reschedule */
mfctl %cr30,%r1
LDREG TI_FLAGS(%r1),%r19 /* sched.h: TIF_NEED_RESCHED */
Expand All @@ -907,6 +904,11 @@ intr_check_sig:
LDREG PT_IASQ1(%r16), %r20
cmpib,COND(=),n 0,%r20,intr_restore /* backward */

/* NOTE: We need to enable interrupts if we have to deliver
* signals. We used to do this earlier but it caused kernel
* stack overflows. */
ssm PSW_SM_I, %r0

copy %r0, %r25 /* long in_syscall = 0 */
#ifdef CONFIG_64BIT
ldo -16(%r30),%r29 /* Reference param save area */
Expand Down Expand Up @@ -958,6 +960,10 @@ intr_do_resched:
cmpib,COND(=) 0, %r20, intr_do_preempt
nop

/* NOTE: We need to enable interrupts if we schedule. We used
* to do this earlier but it caused kernel stack overflows. */
ssm PSW_SM_I, %r0

#ifdef CONFIG_64BIT
ldo -16(%r30),%r29 /* Reference param save area */
#endif
Expand Down
1 change: 1 addition & 0 deletions arch/parisc/kernel/hpmc.S
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ ENDPROC_CFI(os_hpmc)


__INITRODATA
.align 4
.export os_hpmc_size
os_hpmc_size:
.word .os_hpmc_end-.os_hpmc
1 change: 0 additions & 1 deletion arch/parisc/kernel/unwind.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include <linux/slab.h>
#include <linux/kallsyms.h>
#include <linux/sort.h>
#include <linux/sched.h>

#include <linux/uaccess.h>
#include <asm/assembly.h>
Expand Down
2 changes: 0 additions & 2 deletions arch/parisc/lib/delay.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
#include <linux/preempt.h>
#include <linux/init.h>

#include <asm/processor.h>
#include <asm/delay.h>

#include <asm/special_insns.h> /* for mfctl() */
#include <asm/processor.h> /* for boot_cpu_data */

Expand Down
2 changes: 1 addition & 1 deletion arch/sparc/mm/fault_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ show_signal_msg(struct pt_regs *regs, int sig, int code,
if (!printk_ratelimit())
return;

printk("%s%s[%d]: segfault at %lx ip %p (rpc %p) sp %p error %x",
printk("%s%s[%d]: segfault at %lx ip %px (rpc %px) sp %px error %x",
task_pid_nr(tsk) > 1 ? KERN_INFO : KERN_EMERG,
tsk->comm, task_pid_nr(tsk), address,
(void *)regs->pc, (void *)regs->u_regs[UREG_I7],
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc/mm/fault_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ show_signal_msg(struct pt_regs *regs, int sig, int code,
if (!printk_ratelimit())
return;

printk("%s%s[%d]: segfault at %lx ip %p (rpc %p) sp %p error %x",
printk("%s%s[%d]: segfault at %lx ip %px (rpc %px) sp %px error %x",
task_pid_nr(tsk) > 1 ? KERN_INFO : KERN_EMERG,
tsk->comm, task_pid_nr(tsk), address,
(void *)regs->tpc, (void *)regs->u_regs[UREG_I7],
Expand Down
2 changes: 1 addition & 1 deletion arch/um/kernel/trap.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ static void show_segv_info(struct uml_pt_regs *regs)
if (!printk_ratelimit())
return;

printk("%s%s[%d]: segfault at %lx ip %p sp %p error %x",
printk("%s%s[%d]: segfault at %lx ip %px sp %px error %x",
task_pid_nr(tsk) > 1 ? KERN_INFO : KERN_EMERG,
tsk->comm, task_pid_nr(tsk), FAULT_ADDRESS(*fi),
(void *)UPT_IP(regs), (void *)UPT_SP(regs),
Expand Down
6 changes: 4 additions & 2 deletions arch/x86/entry/entry_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,8 @@ ENTRY(debug)
movl %esp, %eax # pt_regs pointer

/* Are we currently on the SYSENTER stack? */
PER_CPU(cpu_tss + CPU_TSS_SYSENTER_stack + SIZEOF_SYSENTER_stack, %ecx)
movl PER_CPU_VAR(cpu_entry_area), %ecx
addl $CPU_ENTRY_AREA_SYSENTER_stack + SIZEOF_SYSENTER_stack, %ecx
subl %eax, %ecx /* ecx = (end of SYSENTER_stack) - esp */
cmpl $SIZEOF_SYSENTER_stack, %ecx
jb .Ldebug_from_sysenter_stack
Expand Down Expand Up @@ -984,7 +985,8 @@ ENTRY(nmi)
movl %esp, %eax # pt_regs pointer

/* Are we currently on the SYSENTER stack? */
PER_CPU(cpu_tss + CPU_TSS_SYSENTER_stack + SIZEOF_SYSENTER_stack, %ecx)
movl PER_CPU_VAR(cpu_entry_area), %ecx
addl $CPU_ENTRY_AREA_SYSENTER_stack + SIZEOF_SYSENTER_stack, %ecx
subl %eax, %ecx /* ecx = (end of SYSENTER_stack) - esp */
cmpl $SIZEOF_SYSENTER_stack, %ecx
jb .Lnmi_from_sysenter_stack
Expand Down
Loading