Linux 4.4.116
Greg KH
maintainerI'm announcing the release of the 4.4.116 kernel.
All users of the 4.4 kernel series must upgrade.
The updated 4.4.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.4.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 arch/alpha/kernel/pci_impl.h | 3 arch/alpha/kernel/process.c | 3 arch/arm/kvm/handle_exit.c | 13 arch/mn10300/mm/misalignment.c | 2 arch/openrisc/kernel/traps.c | 10 arch/powerpc/Kconfig | 3 arch/powerpc/include/asm/exception-64e.h | 6 arch/powerpc/include/asm/exception-64s.h | 55 + arch/powerpc/include/asm/feature-fixups.h | 15 arch/powerpc/include/asm/hvcall.h | 18 arch/powerpc/include/asm/paca.h | 10 arch/powerpc/include/asm/plpar_wrappers.h | 14 arch/powerpc/include/asm/ppc_asm.h | 12 arch/powerpc/include/asm/setup.h | 13 arch/powerpc/kernel/asm-offsets.c | 4 arch/powerpc/kernel/entry_64.S | 44 arch/powerpc/kernel/exceptions-64s.S | 126 ++ arch/powerpc/kernel/misc_64.S | 32 arch/powerpc/kernel/module_64.c | 12 arch/powerpc/kernel/process.c | 5 arch/powerpc/kernel/setup_64.c | 139 ++ arch/powerpc/kernel/vmlinux.lds.S | 9 arch/powerpc/kvm/book3s_hv_rmhandlers.S | 7 arch/powerpc/kvm/book3s_rmhandlers.S | 7 arch/powerpc/kvm/book3s_segment.S | 4 arch/powerpc/lib/feature-fixups.c | 42 arch/powerpc/platforms/powernv/setup.c | 50 arch/powerpc/platforms/pseries/setup.c | 37 arch/sh/kernel/traps_32.c | 3 arch/x86/crypto/poly1305_glue.c | 1 arch/x86/include/asm/asm.h | 4 arch/x86/include/asm/vsyscall.h | 2 arch/x86/kernel/cpu/microcode/core.c | 47 arch/x86/kvm/vmx.c | 5 arch/x86/mm/kaiser.c | 2 arch/xtensa/include/asm/futex.h | 23 crypto/ahash.c | 11 crypto/cryptd.c | 3 crypto/poly1305_generic.c | 17 crypto/tcrypt.c | 6 drivers/acpi/sbshc.c | 4 drivers/ata/ahci.c | 37 drivers/block/pktcdvd.c | 4 drivers/bluetooth/btsdio.c | 9 drivers/bluetooth/btusb.c | 19 drivers/crypto/caam/ctrl.c | 8 drivers/dma/dmatest.c | 2 drivers/edac/octeon_edac-lmc.c | 1 drivers/gpu/drm/rcar-du/rcar_du_crtc.c | 56 - drivers/gpu/drm/rcar-du/rcar_du_crtc.h | 8 drivers/hid/hid-core.c | 12 drivers/media/dvb-frontends/ts2020.c | 4 drivers/media/platform/soc_camera/soc_scale_crop.c | 4 drivers/media/usb/dvb-usb-v2/lmedm04.c | 39 drivers/media/usb/dvb-usb/cxusb.c | 2 drivers/media/usb/dvb-usb/dib0700_devices.c | 1 drivers/media/v4l2-core/v4l2-compat-ioctl32.c | 1023 ++++++++++++-------- drivers/media/v4l2-core/v4l2-ioctl.c | 5 drivers/media/v4l2-core/videobuf2-v4l2.c | 6 drivers/mtd/nand/brcmnand/brcmnand.c | 13 drivers/mtd/nand/nand_base.c | 5 drivers/mtd/nand/sunxi_nand.c | 8 drivers/mtd/ubi/block.c | 42 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c | 18 drivers/net/ethernet/realtek/r8169.c | 4 drivers/net/usb/cdc_ncm.c | 6 drivers/nvme/host/pci.c | 13 drivers/usb/gadget/function/uvc_configfs.c | 16 drivers/usb/usbip/vhci_hcd.c | 2 drivers/usb/usbip/vhci_sysfs.c | 7 drivers/vhost/net.c | 1 drivers/watchdog/imx2_wdt.c | 20 fs/btrfs/inode.c | 10 fs/cifs/cifsencrypt.c | 3 fs/cifs/connect.c | 6 fs/cifs/file.c | 26 fs/cifs/misc.c | 14 fs/cifs/smb2pdu.c | 3 fs/ext4/inode.c | 1 fs/ext4/namei.c | 1 fs/ext4/symlink.c | 10 fs/f2fs/inode.c | 1 fs/f2fs/namei.c | 5 fs/inode.c | 6 fs/kernfs/file.c | 2 fs/nfs/direct.c | 4 fs/nfs/nfs4idmap.c | 6 fs/nfs/pnfs.c | 4 fs/nfs/write.c | 2 fs/nsfs.c | 1 fs/overlayfs/readdir.c | 6 include/crypto/internal/hash.h | 2 include/crypto/poly1305.h | 2 include/linux/fs.h | 1 include/linux/mtd/map.h | 130 +- include/net/netfilter/nf_queue.h | 4 include/net/netns/netfilter.h | 2 kernel/async.c | 20 kernel/sched/core.c | 13 kernel/sched/rt.c | 24 kernel/sched/sched.h | 2 kernel/time/posix-timers.c | 34 kernel/trace/ftrace.c | 1 net/dccp/proto.c | 5 net/ipv4/igmp.c | 4 net/ipv4/tcp.c | 6 net/ipv6/ip6mr.c | 1 net/netfilter/nf_queue.c | 17 net/netfilter/nfnetlink_queue.c | 18 scripts/mod/modpost.c | 3 security/keys/encrypted-keys/encrypted.c | 31 sound/soc/codecs/pcm512x-spi.c | 4 sound/soc/generic/simple-card.c | 8 sound/soc/sh/rcar/rsnd.h | 2 sound/soc/sh/rcar/ssi.c | 5 116 files changed, 1820 insertions(+), 850 deletions(-)
Al Viro (1):
don't put symlink bodies in pagecache into highmem
Alan Modra (1):
powerpc: Simplify module TOC handling
Amir Goldstein (1):
ovl: fix failure to fsync lower dir
Arnd Bergmann (1):
mtd: cfi: convert inline functions to macros
Aurelien Aptel (1):
CIFS: zero sensitive data when freeing
Bart Van Assche (1):
pktcdvd: Fix pkt_setup_dev() error path
Benjamin Herrenschmidt (1):
powerpc: Fix VSX enabling/flushing to also test MSR_FP and MSR_VEC
Borislav Petkov (2):
x86/microcode/AMD: Do not load when running on a hypervisor x86/microcode: Do the family check first
Bradley Bolen (1):
ubi: block: Fix locking for idr_alloc/idr_remove
Chunhao Lin (1):
r8169: fix RTL8168EP take too long to complete driver initialization.
Cong Wang (1):
nsfs: mark dentry with DCACHE_RCUACCESS
Daniel Mentz (2):
media: v4l2-compat-ioctl32: Copy v4l2_window->global_alpha
media: v4l2-compat-ioctl32.c: refactor compat ioctl32 logic
Daniel N Pettersson (1):
cifs: Fix autonegotiate security settings mismatch
Eric Biggers (6):
KEYS: encrypted: fix buffer overread in valid_master_desc() x86/kaiser: fix build error with KASAN && !FUNCTION_GRAPH_TRACER
NFS: reject request for id_legacy key without auxdata
crypto: hash - introduce crypto_hash_alg_has_setkey()
crypto: cryptd - pass through absence of ->setkey()
crypto: poly1305 - remove ->setkey() method
Eric Dumazet (1):
net: igmp: add a missing rcu locking section
Eric W. Biederman (4):
netfilter: nf_queue: Make the queue_handler pernet signal/openrisc: Fix do_unaligned_access to send the proper signal signal/sh: Ensure si_signo is initialized in do_divide_error mn10300/misalignment: Use SIGSEGV SEGV_MAPERR to report a failed user copy
Greg Kroah-Hartman (2):
ACPI: sbshc: remove raw pointer from printk() message Linux 4.4.116
Hans Verkuil (11):
media: v4l2-ioctl.c: don't copy back the result for -ENOTTY
media: v4l2-compat-ioctl32.c: add missing VIDIOC_PREPARE_BUF
media: v4l2-compat-ioctl32.c: fix the indentation
media: v4l2-compat-ioctl32.c: move 'helper' functions to __get/put_v4l2_format32
media: v4l2-compat-ioctl32.c: avoid sizeof(type)
media: v4l2-compat-ioctl32.c: copy m.userptr in put_v4l2_plane32
media: v4l2-compat-ioctl32.c: fix ctrl_is_pointer
media: v4l2-compat-ioctl32.c: make ctrl_is_pointer work for subdevs
media: v4l2-compat-ioctl32.c: copy clip list in put_v4l2_window32
media: v4l2-compat-ioctl32.c: drop pr_info for unknown buffer type
media: v4l2-compat-ioctl32.c: don't copy back the result for certain errors
Hans de Goede (5):
ahci: Annotate PCI ids for mobile Intel chipsets as such
ahci: Add PCI ids for Intel Bay Trail, Cherry Trail and Apollo Lake AHCI
HID: quirks: Fix keyboard + touchpad on Toshiba Click Mini not working
Bluetooth: btsdio: Do not bind to non-removable BCM43341
Bluetooth: btusb: Restore QCA Rome suspend/resume fix with a "rewritten" version
Horia Geantă (1):
crypto: caam - fix endless loop when DECO acquire fails
Hugh Dickins (1):
kaiser: fix compile error without vsyscall
Ivan Vecera (1):
kernfs: fix regression in kernfs_fop_write caused by wrong type
J. Bruce Fields (1):
NFS: commit direct writes even if they fail partially
James Hogan (1):
EDAC, octeon: Fix an uninitialized variable warning
Jason Wang (1):
vhost_net: stop device during reset owner
Jesse Chan (2):
ASoC: pcm512x: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE
media: soc_camera: soc_scale_crop: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE
Josh Poimboeuf (1):
x86/asm: Fix inline asm call constraints for GCC 4.4
Julian Scheel (1):
ASoC: simple-card: Fix misleading error message
Junxiao Bi (1):
qlcnic: fix deadlock bug
Kai-Heng Feng (1):
Revert "Bluetooth: btusb: fix QCA Rome suspend/resume"
Kamal Dasu (1):
mtd: nand: brcmnand: Disable prefetch by default
Keith Busch (1):
nvme: Fix managing degraded controllers
Kuninori Morimoto (2):
ASoC: rsnd: don't call free_irq() on Parent SSI
ASoC: rsnd: avoid duplicate free_irq()
Laurent Pinchart (2):
drm: rcar-du: Use the VBK interrupt for vblank events
drm: rcar-du: Fix race condition when disabling planes at CRTC stop
Li RongQing (1):
tcp: release sk_frag.page in tcp_disconnect
Liran Alon (1):
KVM: nVMX: Fix races when sending nested PI while dest enters/leaves L2
Malcolm Priestley (2):
media: dvb-usb-v2: lmedm04: Improve logic checking of warm start
media: dvb-usb-v2: lmedm04: move ts2020 attach to dm04_lme2510_tuner
Marc Zyngier (1):
arm: KVM: Fix SMCCC handling of unimplemented SMC/HVC calls
Martin Kaiser (1):
watchdog: imx2_wdt: restore previous timeout after suspend+resume
Matthew Wilcox (1):
cifs: Fix missing put_xid in cifs_file_strict_mmap
Matthias Hintzmann (1):
net: cdc_ncm: initialize drvflags before usage
Mauro Carvalho Chehab (2):
media: ts2020: avoid integer overflows on 32 bit machines
media: cxusb, dib0700: ignore XC2028_I2C_FLUSH
Max Filippov (1):
xtensa: fix futex_atomic_cmpxchg_inatomic
Michael Ellerman (4):
powerpc/64s: Add support for RFI flush of L1-D cache powerpc/64s: Support disabling RFI flush with no_rfi_flush and nopti powerpc/64s: Wire up cpu_show_meltdown()
powerpc/64s: Allow control of RFI flush via debugfs
Michael Neuling (2):
powerpc/pseries: Add H_GET_CPU_CHARACTERISTICS flags & wrapper powerpc/pseries: Query hypervisor for RFI flush settings
Michal Suchanek (1):
powerpc/pseries: include linux/types.h in asm/hvcall.h
Mika Westerberg (1):
ahci: Add Intel Cannon Lake PCH-H PCI ID
Mikulas Patocka (2):
alpha: fix crash if pthread_create races with signal delivery
alpha: fix reboot on Avanti platform
Miquel Raynal (2):
mtd: nand: Fix nand_do_read_oob() return value
mtd: nand: sunxi: Fix ECC strength choice
Mohamed Ghannam (1):
dccp: CVE-2017-8824: use-after-free in DCCP code
Naveen N. Rao (1):
powerpc/bpf/jit: Disable classic BPF JIT on ppc64le
Nicholas Piggin (5):
powerpc/64: Add macros for annotating the destination of rfid/hrfid powerpc/64s: Simple RFI macro conversions
powerpc/64: Convert fast_exception_return to use RFI_TO_USER/KERNEL powerpc/64: Convert the syscall exit path to use RFI_TO_USER/KERNEL powerpc/64s: Convert slb_miss_common to use RFI_TO_USER/KERNEL
Nikolay Aleksandrov (1):
ip6mr: fix stale iterator
Nikolay Borisov (1):
btrfs: Handle btrfs_set_extent_delalloc failure in fixup worker
Oliver O'Halloran (2):
powerpc/64: Fix flush_(d|i)cache_range() called from modules powerpc/powernv: Check device-tree for RFI flush settings
Petr Cvek (1):
usb: gadget: uvc: Missing files for configfs interface
Rasmus Villemoes (1):
kernel/async.c: revert "async: simplify lowest_in_progress()"
Ricardo Ribalda Delgado (1):
vb2: V4L2_BUF_FLAG_DONE is set after DQBUF
Robert Baronescu (1):
crypto: tcrypt - fix S/G table for test_aead_speed()
Scott Mayhew (1):
nfs/pnfs: fix nfs_direct_req ref leak when i/o falls back to the mds
Shuah Khan (2):
usbip: vhci_hcd: clear just the USB_PORT_STAT_POWER bit
usbip: fix 3eee23c3ec14 tcp_socket address still in the status file
Steven Rostedt (VMware) (3):
sched/rt: Use container_of() to get root domain in rto_push_irq_work_func() sched/rt: Up the root domain ref count when passing it around via IPIs
ftrace: Remove incorrect setting of glob search field
Thomas Gleixner (1):
posix-timer: Properly check sigevent->sigev_notify
Trond Myklebust (1):
NFS: Add a cond_resched() to nfs_commit_release_pages()
Yang Shunyong (1):
dmaengine: dmatest: fix container_of member in dmatest_callback
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 4 -SUBLEVEL = 115 +SUBLEVEL = 116 EXTRAVERSION = NAME = Blurry Fish Butt
arch/alpha/kernel/pci_impl.h +2 -1
@@ -143,7 +143,8 @@ struct pci_iommu_arena };#if defined(CONFIG_ALPHA_SRM ) && \ - (defined(CONFIG_ALPHA_CIA ) || defined(CONFIG_ALPHA_LCA )) + (defined(CONFIG_ALPHA_CIA ) || defined(CONFIG_ALPHA_LCA ) || \ + defined(CONFIG_ALPHA_AVANTI ))# define NEED_SRM_SAVE_RESTORE #else # undef NEED_SRM_SAVE_RESTORE
arch/alpha/kernel/process.c +2 -1
@@ -273,12 +273,13 @@ copy_thread(unsigned long clone_flags, unsigned long usp,application calling fork. */ if (clone_flags &CLONE_SETTLS ) childti->pcb.unique = regs->r20; +else + regs->r20 =0 ;/* OSF/1 has some strange fork() semantics. */ childti->pcb.usp = usp ?:rdusp (); *childregs = *regs; childregs->r0 =0 ; childregs->r19 =0 ; childregs->r20 =1 ;/* OSF/1 has some strange fork() semantics. */ - regs->r20 =0 ; stack = ((struct switch_stack *) regs) -1 ; *childstack = *stack; childstack->r26 = (unsigned long ) ret_from_fork;
arch/arm/kvm/handle_exit.c +11 -2
@@ -45,7 +45,7 @@ static int handle_hvc(struct kvm_vcpu *vcpu, struct kvm_run *run) ret =kvm_psci_call (vcpu);if (ret <0 ) { -kvm_inject_undefined (vcpu); +vcpu_set_reg (vcpu,0 , ~0UL );return 1 ; }
@@ -54,7 +54,16 @@ static int handle_hvc(struct kvm_vcpu *vcpu, struct kvm_run *run)static int handle_smc (struct kvm_vcpu *vcpu,struct kvm_run *run) { -kvm_inject_undefined (vcpu); +/* +* "If an SMC instruction executed at Non-secure EL1 is +* trapped to EL2 because HCR_EL2.TSC is 1, the exception is a +* Trap exception, not a Secure Monitor Call exception [...]" +* +* We need to advance the PC after the trap, as it would +* otherwise return to the same address... +*/ +vcpu_set_reg (vcpu,0 , ~0UL ); +kvm_skip_instr (vcpu,kvm_vcpu_trap_il_is32bit (vcpu));return 1 ; }
arch/mn10300/mm/misalignment.c +1 -1
@@ -437,7 +437,7 @@ transfer_failed: info.si_signo =SIGSEGV ; info.si_errno =0 ; - info.si_code =0 ; + info.si_code =SEGV_MAPERR ; info.si_addr = (void *) regs->pc;force_sig_info (SIGSEGV , &info, current);return ;
arch/openrisc/kernel/traps.c +5 -5
@@ -302,12 +302,12 @@ asmlinkage void do_unaligned_access(struct pt_regs *regs, unsigned long address)siginfo_t info;if (user_mode (regs)) { -/* Send a SIGSEGV */ - info.si_signo =SIGSEGV ; +/* Send a SIGBUS */ + info.si_signo =SIGBUS ; info.si_errno =0 ; -/* info.si_code has been set above */ - info.si_addr = (void *)address; -force_sig_info (SIGSEGV , &info, current); + info.si_code =BUS_ADRALN ; + info.si_addr = (void __user *)address; +force_sig_info (SIGBUS , &info, current); }else {printk ("KERNEL: Unaligned Access 0x%.8lx\n" , address);show_registers (regs);
arch/powerpc/Kconfig +2 -1
@@ -129,13 +129,14 @@ config PPC select IRQ_FORCED_THREADING select HAVE_RCU_TABLE_FREE if SMP select HAVE_SYSCALL_TRACEPOINTS - select HAVE_BPF_JIT + select HAVE_BPF_JIT if CPU_BIG_ENDIAN select HAVE_ARCH_JUMP_LABEL select ARCH_HAVE_NMI_SAFE_CMPXCHG select ARCH_HAS_GCOV_PROFILE_ALL select GENERIC_SMP_IDLE_THREAD select GENERIC_CMOS_UPDATE select GENERIC_TIME_VSYSCALL_OLD + select GENERIC_CPU_VULNERABILITIES if PPC_BOOK3S_64 select GENERIC_CLOCKEVENTS select GENERIC_CLOCKEVENTS_BROADCAST if SMP select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
arch/powerpc/include/asm/exception-64e.h +6 -0
@@ -209,5 +209,11 @@ exc_##label##_book3e: ori r3,r3,vector_offset@l; \ mtspr SPRN_IVOR##vector_number,r3; +#define RFI_TO_KERNEL \ + rfi + +#define RFI_TO_USER \ + rfi +#endif /* _ASM_POWERPC_EXCEPTION_64E_H */
arch/powerpc/include/asm/exception-64s.h +54 -1
67 lines not on this page · raw message
arch/powerpc/include/asm/feature-fixups.h +15 -0
@@ -184,4 +184,19 @@ label##3: \ FTR_ENTRY_OFFSET label##1b-label##3b; \ .popsection; +#define RFI_FLUSH_FIXUP_SECTION \ +951: \ + .pushsection __rfi_flush_fixup,"a"; \ + .align 2; \ +952: \ + FTR_ENTRY_OFFSET 951b-952b; \ + .popsection; + + +#ifndef __ASSEMBLY__ + +extern long __start___rfi_flush_fixup, __stop___rfi_flush_fixup; + +#endif +#endif /* __ASM_POWERPC_FEATURE_FIXUPS_H */
arch/powerpc/include/asm/hvcall.h +18 -0
@@ -239,6 +239,7 @@#define H_GET_HCA_INFO 0x1B8#define H_GET_PERF_COUNT 0x1BC#define H_MANAGE_TRACE 0x1C0 +#define H_GET_CPU_CHARACTERISTICS 0x1C8#define H_FREE_LOGICAL_LAN_BUFFER 0x1D4#define H_QUERY_INT_STATE 0x1E4#define H_POLL_PENDING 0x1D8
@@ -285,7 +286,19 @@#define H_SET_MODE_RESOURCE_ADDR_TRANS_MODE 3#define H_SET_MODE_RESOURCE_LE 4 +/* H_GET_CPU_CHARACTERISTICS return values */ +#define H_CPU_CHAR_SPEC_BAR_ORI31 (1ull << 63) // IBM bit 0 +#define H_CPU_CHAR_BCCTRL_SERIALISED (1ull << 62) // IBM bit 1 +#define H_CPU_CHAR_L1D_FLUSH_ORI30 (1ull << 61) // IBM bit 2 +#define H_CPU_CHAR_L1D_FLUSH_TRIG2 (1ull << 60) // IBM bit 3 +#define H_CPU_CHAR_L1D_THREAD_PRIV (1ull << 59) // IBM bit 4 + +#define H_CPU_BEHAV_FAVOUR_SECURITY (1ull << 63) // IBM bit 0 +#define H_CPU_BEHAV_L1D_FLUSH_PR (1ull << 62) // IBM bit 1 +#define H_CPU_BEHAV_BNDS_CHK_SPEC_BAR (1ull << 61) // IBM bit 2 +#ifndef __ASSEMBLY__ +#include <linux/types.h> /** * plpar_hcall_norets: - Make a pseries hypervisor call with no return arguments
@@ -423,6 +436,11 @@ extern long pseries_big_endian_exceptions(void);#endif /* CONFIG_PPC_PSERIES */ +struct h_cpu_char_result { +u64 character; +u64 behaviour; +}; +#endif /* __ASSEMBLY__ */ #endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_HVCALL_H */
arch/powerpc/include/asm/paca.h +10 -0
@@ -192,6 +192,16 @@ struct paca_struct {#endif struct kvmppc_host_state kvm_hstate;#endif +#ifdef CONFIG_PPC_BOOK3S_64 +/* +* rfi fallback flush must be in its own cacheline to prevent +* other paca data leaking into the L1d +*/ +u64 exrfi[13 ]__aligned(0x80) ; +void *rfi_flush_fallback_area; +u64 l1d_flush_congruence; +u64 l1d_flush_sets; +#endif };extern struct paca_struct *paca;
arch/powerpc/include/asm/plpar_wrappers.h +14 -0
@@ -323,4 +323,18 @@ static inline long plapr_set_watchpoint0(unsigned long dawr0, unsigned long dawr return plpar_set_mode(0, H_SET_MODE_RESOURCE_SET_DAWR, dawr0, dawrx0); } +static inline long plpar_get_cpu_characteristics (struct h_cpu_char_result *p) +{ +unsigned long retbuf[PLPAR_HCALL_BUFSIZE ]; +long rc; + + rc =plpar_hcall (H_GET_CPU_CHARACTERISTICS , retbuf); +if (rc ==H_SUCCESS ) { + p->character = retbuf[0 ]; + p->behaviour = retbuf[1 ]; + } + +return rc; +} +#endif /* _ASM_POWERPC_PLPAR_WRAPPERS_H */
arch/powerpc/include/asm/ppc_asm.h +12 -0
@@ -224,6 +224,16 @@ name: \ .globl name; \ name: +#define _KPROBE_TOC (name) \ + .section ".kprobes.text","a"; \ + .align 2 ; \ + .type name,@function; \ + .globl name; \ +name: \ +0: addis r2,r12,(.TOC.-0b)@ha; \ + addi r2,r2,(.TOC.-0b)@l; \ + .localentry name,.-name +#define DOTSYM (a) a#else
@@ -261,6 +271,8 @@ name: \ .type GLUE(.,name),@function; \ GLUE(.,name): +#define _KPROBE_TOC (n) _KPROBE(n) +#define DOTSYM (a) GLUE(.,a)#endif
arch/powerpc/include/asm/setup.h +13 -0
@@ -26,6 +26,19 @@ void initmem_init(void);void setup_panic (void );#define ARCH_PANIC_TIMEOUT 180 +void rfi_flush_enable (bool enable); + +/* These are bit flags */ +enum l1d_flush_type { +L1D_FLUSH_NONE =0x1 , +L1D_FLUSH_FALLBACK =0x2 , +L1D_FLUSH_ORI =0x4 , +L1D_FLUSH_MTTRIG =0x8 , +}; + +void __init setup_rfi_flush (enum l1d_flush_type ,bool enable); +void do_rfi_flush_fixups (enum l1d_flush_type types); +#endif /* !__ASSEMBLY__ */ #endif /* _ASM_POWERPC_SETUP_H */
arch/powerpc/kernel/asm-offsets.c +4 -0
@@ -243,6 +243,10 @@ int main(void)#ifdef CONFIG_PPC_BOOK3S_64 DEFINE (PACAMCEMERGSP , offsetof(struct paca_struct , mc_emergency_sp));DEFINE (PACA_IN_MCE , offsetof(struct paca_struct , in_mce)); +DEFINE (PACA_RFI_FLUSH_FALLBACK_AREA , offsetof(struct paca_struct , rfi_flush_fallback_area)); +DEFINE (PACA_EXRFI , offsetof(struct paca_struct , exrfi)); +DEFINE (PACA_L1D_FLUSH_CONGRUENCE , offsetof(struct paca_struct , l1d_flush_congruence)); +DEFINE (PACA_L1D_FLUSH_SETS , offsetof(struct paca_struct , l1d_flush_sets));#endif DEFINE (PACAHWCPUID , offsetof(struct paca_struct , hw_cpu_id));DEFINE (PACAKEXECSTATE , offsetof(struct paca_struct , kexec_state));
arch/powerpc/kernel/entry_64.S +36 -8
99 lines not on this page · raw message
arch/powerpc/kernel/exceptions-64s.S +115 -11
204 lines not on this page · raw message
arch/powerpc/kernel/misc_64.S +2 -30
@@ -66,7 +66,7 @@ PPC64_CACHES: * flush all bytes from start through stop-1 inclusive */ -_KPROBE(flush_icache_range) +_KPROBE_TOC(flush_icache_range) BEGIN_FTR_SECTION PURGE_PREFETCHED_INS blr
@@ -117,7 +117,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_COHERENT_ICACHE) * * flush all bytes from start to stop-1 inclusive */ -_GLOBAL(flush_dcache_range) +_GLOBAL_TOC(flush_dcache_range) /* * Flush the data cache to memory
@@ -701,31 +701,3 @@ _GLOBAL(kexec_sequence) li r5,0 blr /* image->start(physid, image->start, 0); */ #endif /* CONFIG_KEXEC */ - -#ifdef CONFIG_MODULES -#if defined(_CALL_ELF) && _CALL_ELF == 2 - -#ifdef CONFIG_MODVERSIONS -.weak __crc_TOC. -.section "___kcrctab+TOC.","a" -.globl __kcrctab_TOC. -__kcrctab_TOC.: - .llong __crc_TOC. -#endif - -/* - * Export a fake .TOC. since both modpost and depmod will complain otherwise. - * Both modpost and depmod strip the leading . so we do the same here. - */ -.section "__ksymtab_strings","a" -__kstrtab_TOC.: - .asciz "TOC." - -.section "___ksymtab+TOC.","a" -/* This symbol name is important: it's used by modpost to find exported syms */ -.globl __ksymtab_TOC. -__ksymtab_TOC.: - .llong 0 /* .value */ - .llong __kstrtab_TOC. -#endif /* ELFv2 */ -#endif /* MODULES */
arch/powerpc/kernel/module_64.c +9 -3
@@ -326,7 +326,10 @@ static void dedotify_versions(struct modversion_info *vers, } } -/* Undefined symbols which refer to .funcname, hack to funcname (or .TOC.) */ +/* +* Undefined symbols which refer to .funcname, hack to funcname. Make .TOC. +* seem to be defined (value set later). +*/ static void dedotify (Elf64_Sym *syms,unsigned int numsyms,char *strtab) {unsigned int i;
@@ -334,8 +337,11 @@ static void dedotify(Elf64_Sym *syms, unsigned int numsyms, char *strtab)for (i =1 ; i < numsyms; i++) {if (syms[i].st_shndx ==SHN_UNDEF ) {char *name = strtab + syms[i].st_name; -if (name[0 ] =='.' ) +if (name[0 ] =='.' ) { +if (strcmp (name+1 ,"TOC." ) ==0 ) + syms[i].st_shndx =SHN_ABS ; syms[i].st_name++; + } } } }
@@ -351,7 +357,7 @@ static Elf64_Sym *find_dot_toc(Elf64_Shdr *sechdrs, numsyms = sechdrs[symindex].sh_size /sizeof (Elf64_Sym);for (i =1 ; i < numsyms; i++) { -if (syms[i].st_shndx ==SHN_UNDEF +if (syms[i].st_shndx ==SHN_ABS &&strcmp (strtab + syms[i].st_name,"TOC." ) ==0 )return &syms[i]; }
arch/powerpc/kernel/process.c +3 -2
@@ -209,7 +209,8 @@ void enable_kernel_vsx(void)WARN_ON (preemptible ());#ifdef CONFIG_SMP -if (current->thread.regs && (current->thread.regs->msr &MSR_VSX )) +if (current->thread.regs && + (current->thread.regs->msr & (MSR_VSX |MSR_VEC |MSR_FP )))giveup_vsx (current);else giveup_vsx (NULL );/* just enable vsx for kernel - force */
@@ -231,7 +232,7 @@ void flush_vsx_to_thread(struct task_struct *tsk) {if (tsk->thread.regs) {preempt_disable (); -if (tsk->thread.regs->msr &MSR_VSX ) { +if (tsk->thread.regs->msr & (MSR_VSX |MSR_VEC |MSR_FP )) {#ifdef CONFIG_SMP BUG_ON (tsk != current);#endif
arch/powerpc/kernel/setup_64.c +139 -0
149 lines not on this page · raw message
arch/powerpc/kernel/vmlinux.lds.S +9 -0
@@ -72,6 +72,15 @@ SECTIONS /* Read-only data */ RODATA +#ifdef CONFIG_PPC64 + . = ALIGN(8); + __rfi_flush_fixup : AT(ADDR(__rfi_flush_fixup) - LOAD_OFFSET) { + __start___rfi_flush_fixup = .; + *(__rfi_flush_fixup) + __stop___rfi_flush_fixup = .; + } +#endif + EXCEPTION_TABLE(0) NOTES :kernel :notes
arch/powerpc/kvm/book3s_hv_rmhandlers.S +3 -4
@@ -64,7 +64,7 @@ _GLOBAL_TOC(kvmppc_hv_entry_trampoline) mtmsrd r0,1 /* clear RI in MSR */ mtsrr0 r5 mtsrr1 r6 - RFI + RFI_TO_KERNEL kvmppc_call_hv_entry: ld r4, HSTATE_KVM_VCPU(r13)
@@ -170,7 +170,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_ARCH_207S) mtsrr0 r8 mtsrr1 r7 beq cr1, 13f /* machine check */ - RFI + RFI_TO_KERNEL /* On POWER7, we have external interrupts set to use HSRR0/1 */ 11: mtspr SPRN_HSRR0, r8
@@ -965,8 +965,7 @@ BEGIN_FTR_SECTION END_FTR_SECTION_IFSET(CPU_FTR_HAS_PPR) ld r0, VCPU_GPR(R0)(r4) ld r4, VCPU_GPR(R4)(r4) - - hrfid + HRFI_TO_GUEST b . secondary_too_late:
arch/powerpc/kvm/book3s_rmhandlers.S +5 -2
@@ -46,6 +46,9 @@ #define FUNC(name) name +#define RFI_TO_KERNEL RFI +#define RFI_TO_GUEST RFI + .macro INTERRUPT_TRAMPOLINE intno .global kvmppc_trampoline_\intno
@@ -141,7 +144,7 @@ kvmppc_handler_skip_ins: GET_SCRATCH0(r13) /* And get back into the code */ - RFI + RFI_TO_KERNEL #endif /*
@@ -164,6 +167,6 @@ _GLOBAL_TOC(kvmppc_entry_trampoline) ori r5, r5, MSR_EE mtsrr0 r7 mtsrr1 r6 - RFI + RFI_TO_KERNEL #include "book3s_segment.S"
arch/powerpc/kvm/book3s_segment.S +2 -2
@@ -156,7 +156,7 @@ no_dcbz32_on: PPC_LL r9, SVCPU_R9(r3) PPC_LL r3, (SVCPU_R3)(r3) - RFI + RFI_TO_GUEST kvmppc_handler_trampoline_enter_end:
@@ -389,5 +389,5 @@ END_FTR_SECTION_IFSET(CPU_FTR_HVMODE) cmpwi r12, BOOK3S_INTERRUPT_DOORBELL beqa BOOK3S_INTERRUPT_DOORBELL - RFI + RFI_TO_KERNEL kvmppc_handler_trampoline_exit_end:
arch/powerpc/lib/feature-fixups.c +42 -0
54 lines not on this page · raw message
arch/powerpc/platforms/powernv/setup.c +50 -0
63 lines not on this page · raw message
arch/powerpc/platforms/pseries/setup.c +36 -1
@@ -499,6 +499,39 @@ static void __init find_and_init_phbs(void)of_pci_check_probe_only (); } +static void pseries_setup_rfi_flush (void ) +{ +struct h_cpu_char_result result; +enum l1d_flush_type types; +bool enable; +long rc; + +/* Enable by default */ + enable = true; + + rc =plpar_get_cpu_characteristics (&result); +if (rc ==H_SUCCESS ) { + types =L1D_FLUSH_NONE ; + +if (result.character &H_CPU_CHAR_L1D_FLUSH_TRIG2 ) + types |=L1D_FLUSH_MTTRIG ; +if (result.character &H_CPU_CHAR_L1D_FLUSH_ORI30 ) + types |=L1D_FLUSH_ORI ; + +/* Use fallback if nothing set in hcall */ +if (types ==L1D_FLUSH_NONE ) + types =L1D_FLUSH_FALLBACK ; + +if (!(result.behaviour &H_CPU_BEHAV_L1D_FLUSH_PR )) + enable = false; + }else { +/* Default to fallback if case hcall is not available */ + types =L1D_FLUSH_FALLBACK ; + } + +setup_rfi_flush (types, enable); +} +static void __init pSeries_setup_arch (void ) {set_arch_panic_timeout (10 ,ARCH_PANIC_TIMEOUT );
@@ -515,7 +548,9 @@ static void __init pSeries_setup_arch(void)fwnmi_init (); -/* By default, only probe PCI (can be overriden by rtas_pci) */ +pseries_setup_rfi_flush (); + +/* By default, only probe PCI (can be overridden by rtas_pci) */ pci_add_flags (PCI_PROBE_ONLY );/* Find and initialize PCI host bridges */
arch/sh/kernel/traps_32.c +2 -1
@@ -607,7 +607,8 @@ asmlinkage void do_divide_error(unsigned long r4) break; } -force_sig_info (SIGFPE , &info, current); + info.si_signo =SIGFPE ; +force_sig_info (info.si_signo, &info, current); }#endif
arch/x86/crypto/poly1305_glue.c +0 -1
@@ -164,7 +164,6 @@ static struct shash_alg alg = { .init = poly1305_simd_init, .update = poly1305_simd_update, .final = crypto_poly1305_final, - .setkey = crypto_poly1305_setkey, .descsize = sizeof(struct poly1305_simd_desc_ctx), .base = { .cra_name = "poly1305",
arch/x86/include/asm/asm.h +3 -1
@@ -11,10 +11,12 @@# define __ASM_FORM_COMMA (x) " " #x ","#endif -#ifdef CONFIG_X86_32 +#ifndef __x86_64__ +/* 32 bit */ # define __ASM_SEL (a,b) __ASM_FORM(a)# define __ASM_SEL_RAW (a,b) __ASM_FORM_RAW(a)#else +/* 64 bit */ # define __ASM_SEL (a,b) __ASM_FORM(b)# define __ASM_SEL_RAW (a,b) __ASM_FORM_RAW(b)#endif
arch/x86/include/asm/vsyscall.h +1 -1
@@ -13,7 +13,6 @@ extern void map_vsyscall(void);*/ extern bool emulate_vsyscall (struct pt_regs *regs,unsigned long address);extern bool vsyscall_enabled (void ); -extern unsigned long vsyscall_pgprot;#else static inline void map_vsyscall (void ) {}static inline bool emulate_vsyscall (struct pt_regs *regs,unsigned long address)
@@ -22,5 +21,6 @@ static inline bool emulate_vsyscall(struct pt_regs *regs, unsigned long address) }static inline bool vsyscall_enabled (void ) {return false; }#endif +extern unsigned long vsyscall_pgprot;#endif /* _ASM_X86_VSYSCALL_H */
arch/x86/kernel/cpu/microcode/core.c +33 -14
88 lines not on this page · raw message
arch/x86/kvm/vmx.c +3 -2
@@ -4595,14 +4595,15 @@ static int vmx_deliver_nested_posted_interrupt(struct kvm_vcpu *vcpu,if (is_guest_mode (vcpu) && vector == vmx->nested.posted_intr_nv) { -/* the PIR and ON have been set by L1. */ -kvm_vcpu_trigger_posted_interrupt (vcpu);/* * If a posted intr is not recognized by hardware, * we will accomplish it in the next vmentry. */ vmx->nested.pi_pending = true;kvm_make_request (KVM_REQ_EVENT , vcpu); +/* the PIR and ON have been set by L1. */ +if (!kvm_vcpu_trigger_posted_interrupt (vcpu)) +kvm_vcpu_kick (vcpu);return 0 ; }return -1 ;
arch/x86/mm/kaiser.c +1 -1
@@ -363,7 +363,7 @@ void __init kaiser_init(void)kaiser_add_user_map_ptrs_early (__entry_text_start, __entry_text_end, __PAGE_KERNEL_RX); -#if defined(CONFIG_FUNCTION_GRAPH_TRACER ) || defined(CONFIG_KASAN ) +#ifdef CONFIG_FUNCTION_GRAPH_TRACER kaiser_add_user_map_ptrs_early (__irqentry_text_start, __irqentry_text_end, __PAGE_KERNEL_RX);
arch/xtensa/include/asm/futex.h +10 -13
@@ -109,7 +109,6 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, u32 oldval, u32 newval) { int ret = 0; -u32 prev;if (!access_ok (VERIFY_WRITE , uaddr,sizeof (u32)))return -EFAULT ;
@@ -120,26 +119,24 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, __asm__ __volatile__ (" # futex_atomic_cmpxchg_inatomic\n" -"1: l32i %1, %3, 0\n" -" mov %0, %5\n" -" wsr %1, scompare1\n" -"2: s32c1i %0, %3, 0\n" -"3:\n" +" wsr %5, scompare1\n" +"1: s32c1i %1, %4, 0\n" +" s32i %1, %6, 0\n" +"2:\n" " .section .fixup,\"ax\"\n" " .align 4\n" -"4: .long 3b\n" -"5: l32r %1, 4b\n" -" movi %0, %6\n" +"3: .long 2b\n" +"4: l32r %1, 3b\n" +" movi %0, %7\n" " jx %1\n" " .previous\n" " .section __ex_table,\"a\"\n" -" .long 1b,5b,2b,5b\n" +" .long 1b,4b\n" " .previous\n" - :"+r" (ret),"=&r" (prev),"+m" (*uaddr) - :"r" (uaddr),"r" (oldval),"r" (newval),"I" (-EFAULT ) + :"+r" (ret),"+r" (newval),"+m" (*uaddr),"+m" (*uval) + :"r" (uaddr),"r" (oldval),"r" (uval),"I" (-EFAULT ) :"memory" ); - *uval = prev;return ret; }
crypto/ahash.c +11 -0
@@ -637,5 +637,16 @@ struct hash_alg_common *ahash_attr_alg(struct rtattr *rta, u32 type, u32 mask) }EXPORT_SYMBOL_GPL (ahash_attr_alg); +bool crypto_hash_alg_has_setkey (struct hash_alg_common *halg) +{ +struct crypto_alg *alg = &halg->base; + +if (alg->cra_type != &crypto_ahash_type) +return crypto_shash_alg_has_setkey (__crypto_shash_alg (alg)); + +return __crypto_ahash_alg (alg)->setkey !=NULL ; +} +EXPORT_SYMBOL_GPL (crypto_hash_alg_has_setkey); +MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("Asynchronous cryptographic hash type" );
crypto/cryptd.c +2 -1
@@ -654,7 +654,8 @@ static int cryptd_create_hash(struct crypto_template *tmpl, struct rtattr **tb, inst->alg.finup = cryptd_hash_finup_enqueue; inst->alg.export = cryptd_hash_export; inst->alg.import = cryptd_hash_import; - inst->alg.setkey = cryptd_hash_setkey; +if (crypto_shash_alg_has_setkey (salg)) + inst->alg.setkey = cryptd_hash_setkey; inst->alg.digest = cryptd_hash_digest_enqueue; err =ahash_register_instance (tmpl, inst);
crypto/poly1305_generic.c +5 -12
@@ -51,17 +51,6 @@ int crypto_poly1305_init(struct shash_desc *desc) }EXPORT_SYMBOL_GPL (crypto_poly1305_init); -int crypto_poly1305_setkey (struct crypto_shash *tfm, -const u8 *key,unsigned int keylen) -{ -/* Poly1305 requires a unique key for each tag, which implies that -* we can't set it on the tfm that gets accessed by multiple users -* simultaneously. Instead we expect the key as the first 32 bytes in -* the update() call. */ -return -ENOTSUPP ; -} -EXPORT_SYMBOL_GPL (crypto_poly1305_setkey); -static void poly1305_setrkey (struct poly1305_desc_ctx *dctx,const u8 *key) {/* r &= 0xffffffc0ffffffc0ffffffc0fffffff */
@@ -80,6 +69,11 @@ static void poly1305_setskey(struct poly1305_desc_ctx *dctx, const u8 *key) dctx->s[3 ] =le32_to_cpuvp (key +12 ); } +/* +* Poly1305 requires a unique key for each tag, which implies that we can't set +* it on the tfm that gets accessed by multiple users simultaneously. Instead we +* expect the key as the first 32 bytes in the update() call. +*/ unsigned int crypto_poly1305_setdesckey (struct poly1305_desc_ctx *dctx,const u8 *src,unsigned int srclen) {
@@ -285,7 +279,6 @@ static struct shash_alg poly1305_alg = { .init = crypto_poly1305_init, .update = crypto_poly1305_update, .final = crypto_poly1305_final, - .setkey = crypto_poly1305_setkey, .descsize = sizeof(struct poly1305_desc_ctx), .base = { .cra_name = "poly1305",
crypto/tcrypt.c +4 -2
@@ -291,11 +291,13 @@ static void sg_init_aead(struct scatterlist *sg, char *xbuf[XBUFSIZE], }sg_init_table (sg, np +1 ); - np--; +if (rem) + np--;for (k =0 ; k < np; k++)sg_set_buf (&sg[k +1 ], xbuf[k],PAGE_SIZE ); -sg_set_buf (&sg[k +1 ], xbuf[k], rem); +if (rem) +sg_set_buf (&sg[k +1 ], xbuf[k], rem); } static void test_aead_speed(const char *algo, int enc, unsigned int secs,
drivers/acpi/sbshc.c +2 -2
@@ -275,8 +275,8 @@ static int acpi_smbus_hc_add(struct acpi_device *device) device->driver_data = hc;acpi_ec_add_query_handler (hc->ec, hc->query_bit,NULL , smbus_alarm, hc); - printk(KERN_INFO PREFIX "SBS HC: EC = 0x%p, offset = 0x%0x, query_bit = 0x%0x\n", - hc->ec, hc->offset, hc->query_bit); +dev_info (&device->dev,"SBS HC: offset = 0x%0x, query_bit = 0x%0x\n" , + hc->offset, hc->query_bit);return 0 ; }
drivers/ata/ahci.c +21 -16
@@ -260,9 +260,9 @@ static const struct pci_device_id ahci_pci_tbl[] = { { PCI_VDEVICE(INTEL, 0x3b23), board_ahci }, /* PCH AHCI */ { PCI_VDEVICE(INTEL, 0x3b24), board_ahci }, /* PCH RAID */ { PCI_VDEVICE(INTEL, 0x3b25), board_ahci }, /* PCH RAID */ - { PCI_VDEVICE(INTEL, 0x3b29), board_ahci }, /* PCH AHCI */ + { PCI_VDEVICE(INTEL, 0x3b29), board_ahci }, /* PCH M AHCI */ { PCI_VDEVICE(INTEL, 0x3b2b), board_ahci }, /* PCH RAID */ - { PCI_VDEVICE(INTEL, 0x3b2c), board_ahci }, /* PCH RAID */ + { PCI_VDEVICE(INTEL, 0x3b2c), board_ahci }, /* PCH M RAID */ { PCI_VDEVICE(INTEL, 0x3b2f), board_ahci }, /* PCH AHCI */ { PCI_VDEVICE(INTEL, 0x19b0), board_ahci }, /* DNV AHCI */ { PCI_VDEVICE(INTEL, 0x19b1), board_ahci }, /* DNV AHCI */
@@ -285,9 +285,9 @@ static const struct pci_device_id ahci_pci_tbl[] = { { PCI_VDEVICE(INTEL, 0x19cE), board_ahci }, /* DNV AHCI */ { PCI_VDEVICE(INTEL, 0x19cF), board_ahci }, /* DNV AHCI */ { PCI_VDEVICE(INTEL, 0x1c02), board_ahci }, /* CPT AHCI */ - { PCI_VDEVICE(INTEL, 0x1c03), board_ahci }, /* CPT AHCI */ + { PCI_VDEVICE(INTEL, 0x1c03), board_ahci }, /* CPT M AHCI */ { PCI_VDEVICE(INTEL, 0x1c04), board_ahci }, /* CPT RAID */ - { PCI_VDEVICE(INTEL, 0x1c05), board_ahci }, /* CPT RAID */ + { PCI_VDEVICE(INTEL, 0x1c05), board_ahci }, /* CPT M RAID */ { PCI_VDEVICE(INTEL, 0x1c06), board_ahci }, /* CPT RAID */ { PCI_VDEVICE(INTEL, 0x1c07), board_ahci }, /* CPT RAID */ { PCI_VDEVICE(INTEL, 0x1d02), board_ahci }, /* PBG AHCI */
@@ -296,20 +296,20 @@ static const struct pci_device_id ahci_pci_tbl[] = { { PCI_VDEVICE(INTEL, 0x2826), board_ahci }, /* PBG RAID */ { PCI_VDEVICE(INTEL, 0x2323), board_ahci }, /* DH89xxCC AHCI */ { PCI_VDEVICE(INTEL, 0x1e02), board_ahci }, /* Panther Point AHCI */ - { PCI_VDEVICE(INTEL, 0x1e03), board_ahci }, /* Panther Point AHCI */ + { PCI_VDEVICE(INTEL, 0x1e03), board_ahci }, /* Panther Point M AHCI */ { PCI_VDEVICE(INTEL, 0x1e04), board_ahci }, /* Panther Point RAID */ { PCI_VDEVICE(INTEL, 0x1e05), board_ahci }, /* Panther Point RAID */ { PCI_VDEVICE(INTEL, 0x1e06), board_ahci }, /* Panther Point RAID */ - { PCI_VDEVICE(INTEL, 0x1e07), board_ahci }, /* Panther Point RAID */ + { PCI_VDEVICE(INTEL, 0x1e07), board_ahci }, /* Panther Point M RAID */ { PCI_VDEVICE(INTEL, 0x1e0e), board_ahci }, /* Panther Point RAID */ { PCI_VDEVICE(INTEL, 0x8c02), board_ahci }, /* Lynx Point AHCI */ - { PCI_VDEVICE(INTEL, 0x8c03), board_ahci }, /* Lynx Point AHCI */ + { PCI_VDEVICE(INTEL, 0x8c03), board_ahci }, /* Lynx Point M AHCI */ { PCI_VDEVICE(INTEL, 0x8c04), board_ahci }, /* Lynx Point RAID */ - { PCI_VDEVICE(INTEL, 0x8c05), board_ahci }, /* Lynx Point RAID */ + { PCI_VDEVICE(INTEL, 0x8c05), board_ahci }, /* Lynx Point M RAID */ { PCI_VDEVICE(INTEL, 0x8c06), board_ahci }, /* Lynx Point RAID */ - { PCI_VDEVICE(INTEL, 0x8c07), board_ahci }, /* Lynx Point RAID */ + { PCI_VDEVICE(INTEL, 0x8c07), board_ahci }, /* Lynx Point M RAID */ { PCI_VDEVICE(INTEL, 0x8c0e), board_ahci }, /* Lynx Point RAID */ - { PCI_VDEVICE(INTEL, 0x8c0f), board_ahci }, /* Lynx Point RAID */ + { PCI_VDEVICE(INTEL, 0x8c0f), board_ahci }, /* Lynx Point M RAID */ { PCI_VDEVICE(INTEL, 0x9c02), board_ahci }, /* Lynx Point-LP AHCI */ { PCI_VDEVICE(INTEL, 0x9c03), board_ahci }, /* Lynx Point-LP AHCI */ { PCI_VDEVICE(INTEL, 0x9c04), board_ahci }, /* Lynx Point-LP RAID */
@@ -350,21 +350,21 @@ static const struct pci_device_id ahci_pci_tbl[] = { { PCI_VDEVICE(INTEL, 0x9c87), board_ahci }, /* Wildcat Point-LP RAID */ { PCI_VDEVICE(INTEL, 0x9c8f), board_ahci }, /* Wildcat Point-LP RAID */ { PCI_VDEVICE(INTEL, 0x8c82), board_ahci }, /* 9 Series AHCI */ - { PCI_VDEVICE(INTEL, 0x8c83), board_ahci }, /* 9 Series AHCI */ + { PCI_VDEVICE(INTEL, 0x8c83), board_ahci }, /* 9 Series M AHCI */ { PCI_VDEVICE(INTEL, 0x8c84), board_ahci }, /* 9 Series RAID */ - { PCI_VDEVICE(INTEL, 0x8c85), board_ahci }, /* 9 Series RAID */ + { PCI_VDEVICE(INTEL, 0x8c85), board_ahci }, /* 9 Series M RAID */ { PCI_VDEVICE(INTEL, 0x8c86), board_ahci }, /* 9 Series RAID */ - { PCI_VDEVICE(INTEL, 0x8c87), board_ahci }, /* 9 Series RAID */ + { PCI_VDEVICE(INTEL, 0x8c87), board_ahci }, /* 9 Series M RAID */ { PCI_VDEVICE(INTEL, 0x8c8e), board_ahci }, /* 9 Series RAID */ - { PCI_VDEVICE(INTEL, 0x8c8f), board_ahci }, /* 9 Series RAID */ + { PCI_VDEVICE(INTEL, 0x8c8f), board_ahci }, /* 9 Series M RAID */ { PCI_VDEVICE(INTEL, 0x9d03), board_ahci }, /* Sunrise Point-LP AHCI */ { PCI_VDEVICE(INTEL, 0x9d05), board_ahci }, /* Sunrise Point-LP RAID */ { PCI_VDEVICE(INTEL, 0x9d07), board_ahci }, /* Sunrise Point-LP RAID */ { PCI_VDEVICE(INTEL, 0xa102), board_ahci }, /* Sunrise Point-H AHCI */ - { PCI_VDEVICE(INTEL, 0xa103), board_ahci }, /* Sunrise Point-H AHCI */ + { PCI_VDEVICE(INTEL, 0xa103), board_ahci }, /* Sunrise Point-H M AHCI */ { PCI_VDEVICE(INTEL, 0xa105), board_ahci }, /* Sunrise Point-H RAID */ { PCI_VDEVICE(INTEL, 0xa106), board_ahci }, /* Sunrise Point-H RAID */ - { PCI_VDEVICE(INTEL, 0xa107), board_ahci }, /* Sunrise Point-H RAID */ + { PCI_VDEVICE(INTEL, 0xa107), board_ahci }, /* Sunrise Point-H M RAID */ { PCI_VDEVICE(INTEL, 0xa10f), board_ahci }, /* Sunrise Point-H RAID */ { PCI_VDEVICE(INTEL, 0x2822), board_ahci }, /* Lewisburg RAID*/ { PCI_VDEVICE(INTEL, 0x2823), board_ahci }, /* Lewisburg AHCI*/
@@ -382,6 +382,11 @@ static const struct pci_device_id ahci_pci_tbl[] = { { PCI_VDEVICE(INTEL, 0xa20e), board_ahci }, /* Lewisburg RAID*/ { PCI_VDEVICE(INTEL, 0xa252), board_ahci }, /* Lewisburg RAID*/ { PCI_VDEVICE(INTEL, 0xa256), board_ahci }, /* Lewisburg RAID*/ + { PCI_VDEVICE(INTEL, 0xa356), board_ahci }, /* Cannon Lake PCH-H RAID */ + { PCI_VDEVICE(INTEL, 0x0f22), board_ahci }, /* Bay Trail AHCI */ + { PCI_VDEVICE(INTEL, 0x0f23), board_ahci }, /* Bay Trail AHCI */ + { PCI_VDEVICE(INTEL, 0x22a3), board_ahci }, /* Cherry Trail AHCI */ + { PCI_VDEVICE(INTEL, 0x5ae3), board_ahci }, /* Apollo Lake AHCI *//* JMicron 360/1/3/5/6, match class to avoid IDE function */ { PCI_VENDOR_ID_JMICRON, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
drivers/block/pktcdvd.c +1 -3
@@ -2779,7 +2779,7 @@ static int pkt_setup_dev(dev_t dev, dev_t* pkt_dev) pd->pkt_dev =MKDEV (pktdev_major, idx); ret =pkt_new_dev (pd, dev);if (ret) - goto out_new_dev; + goto out_mem2;/* inherit events of the host device */ disk->events = pd->bdev->bd_disk->events;
@@ -2797,8 +2797,6 @@ static int pkt_setup_dev(dev_t dev, dev_t* pkt_dev)mutex_unlock (&ctl_mutex);return 0 ; -out_new_dev: -blk_cleanup_queue (disk->queue); out_mem2:put_disk (disk); out_mem:
drivers/bluetooth/btsdio.c +9 -0
@@ -31,6 +31,7 @@#include <linux/errno.h> #include <linux/skbuff.h> +#include <linux/mmc/host.h> #include <linux/mmc/sdio_ids.h> #include <linux/mmc/sdio_func.h>
@@ -291,6 +292,14 @@ static int btsdio_probe(struct sdio_func *func, tuple = tuple->next; } +/* BCM43341 devices soldered onto the PCB (non-removable) use an +* uart connection for bluetooth, ignore the BT SDIO interface. +*/ +if (func->vendor ==SDIO_VENDOR_ID_BROADCOM && + func->device ==SDIO_DEVICE_ID_BROADCOM_43341 && + !mmc_card_is_removable (func->card->host)) +return -ENODEV ; + data =devm_kzalloc (&func->dev,sizeof (*data),GFP_KERNEL );if (!data)return -ENOMEM ;
drivers/bluetooth/btusb.c +6 -13
@@ -23,6 +23,7 @@#include <linux/module.h> #include <linux/usb.h> +#include <linux/usb/quirks.h> #include <linux/firmware.h> #include <asm/unaligned.h>
@@ -360,8 +361,8 @@ static const struct usb_device_id blacklist_table[] = {#define BTUSB_FIRMWARE_LOADED 7#define BTUSB_FIRMWARE_FAILED 8#define BTUSB_BOOTING 9 -#define BTUSB_RESET_RESUME 10 -#define BTUSB_DIAG_RUNNING 11 +#define BTUSB_DIAG_RUNNING 10 +#define BTUSB_OOB_WAKE_ENABLED 11struct btusb_data {struct hci_dev *hdev;
@@ -2972,9 +2973,9 @@ static int btusb_probe(struct usb_interface *intf,/* QCA Rome devices lose their updated firmware over suspend, * but the USB hub doesn't notice any status change. -* Explicitly request a device reset on resume. +* explicitly request a device reset on resume. */ -set_bit (BTUSB_RESET_RESUME , &data->flags); +interface_to_usbdev (intf)->quirks |=USB_QUIRK_RESET_RESUME ; }#ifdef CONFIG_BT_HCIBTUSB_RTL
@@ -2985,7 +2986,7 @@ static int btusb_probe(struct usb_interface *intf,* but the USB hub doesn't notice any status change. * Explicitly request a device reset on resume. */ - set_bit(BTUSB_RESET_RESUME, &data->flags); + interface_to_usbdev(intf)->quirks |= USB_QUIRK_RESET_RESUME; }#endif
@@ -3142,14 +3143,6 @@ static int btusb_suspend(struct usb_interface *intf, pm_message_t message)btusb_stop_traffic (data);usb_kill_anchored_urbs (&data->tx_anchor); -/* Optionally request a device reset on resume, but only when -* wakeups are disabled. If wakeups are enabled we assume the -* device will stay powered up throughout suspend. -*/ -if (test_bit (BTUSB_RESET_RESUME , &data->flags) && - !device_may_wakeup (&data->udev->dev)) - data->udev->reset_resume =1 ; -return 0 ; }
drivers/crypto/caam/ctrl.c +6 -2
@@ -224,12 +224,16 @@ static int instantiate_rng(struct device *ctrldev, int state_handle_mask,* without any error (HW optimizations for later * CAAM eras), then try again. */ +if (ret) +break ; + rdsta_val =rd_reg32 (&ctrl->r4tst[0 ].rdsta) &RDSTA_IFMASK ;if ((status && status !=JRSTA_SSRC_JUMP_HALT_CC ) || - !(rdsta_val & (1 << sh_idx))) + !(rdsta_val & (1 << sh_idx))) { ret = -EAGAIN ; -if (ret)break ; + } +dev_info (ctrldev,"Instantiated RNG4 SH%d\n" , sh_idx);/* Clear the contents before recreating the descriptor */ memset (desc,0x00 ,CAAM_CMD_SZ *7 );
drivers/dma/dmatest.c +1 -1
@@ -329,7 +329,7 @@ static void dmatest_callback(void *arg) {struct dmatest_done *done = arg;struct dmatest_thread *thread = - container_of(arg, struct dmatest_thread, done_wait); + container_of(done, struct dmatest_thread, test_done);if (!thread->done) { done->done = true;wake_up_all (done->wait);
drivers/edac/octeon_edac-lmc.c +1 -0
@@ -79,6 +79,7 @@ static void octeon_lmc_edac_poll_o2(struct mem_ctl_info *mci)if (!pvt->inject) int_reg.u64 =cvmx_read_csr (CVMX_LMCX_INT (mci->mc_idx));else { + int_reg.u64 =0 ;if (pvt->error_type ==1 ) int_reg.s.sec_err =1 ;if (pvt->error_type ==2 )
drivers/gpu/drm/rcar-du/rcar_du_crtc.c +49 -7
88 lines not on this page · raw message
drivers/gpu/drm/rcar-du/rcar_du_crtc.h +8 -0
@@ -15,6 +15,7 @@#define __RCAR_DU_CRTC_H__#include <linux/mutex.h> +#include <linux/spinlock.h> #include <linux/wait.h> #include <drm/drmP.h>
@@ -32,6 +33,9 @@ struct rcar_du_group;* @started: whether the CRTC has been started and is running * @event: event to post when the pending page flip completes * @flip_wait: wait queue used to signal page flip completion +* @vblank_lock: protects vblank_wait and vblank_count +* @vblank_wait: wait queue used to signal vertical blanking +* @vblank_count: number of vertical blanking interrupts to wait for * @outputs: bitmask of the outputs (enum rcar_du_output) driven by this CRTC * @enabled: whether the CRTC is enabled, used to control system resume * @group: CRTC group this CRTC belongs to
@@ -48,6 +52,10 @@ struct rcar_du_crtc {struct drm_pending_vblank_event *event;wait_queue_head_t flip_wait; +spinlock_t vblank_lock; +wait_queue_head_t vblank_wait; +unsigned int vblank_count; +unsigned int outputs;bool enabled;
drivers/hid/hid-core.c +11 -1
@@ -2308,7 +2308,6 @@ static const struct hid_device_id hid_ignore_list[] = { { HID_USB_DEVICE(USB_VENDOR_ID_DREAM_CHEEKY, 0x0004) }, { HID_USB_DEVICE(USB_VENDOR_ID_DREAM_CHEEKY, 0x000a) }, { HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, 0x0400) }, - { HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, 0x0401) }, { HID_USB_DEVICE(USB_VENDOR_ID_ESSENTIAL_REALITY, USB_DEVICE_ID_ESSENTIAL_REALITY_P5) }, { HID_USB_DEVICE(USB_VENDOR_ID_ETT, USB_DEVICE_ID_TC5UH) }, { HID_USB_DEVICE(USB_VENDOR_ID_ETT, USB_DEVICE_ID_TC4UM) },
@@ -2578,6 +2577,17 @@ bool hid_ignore(struct hid_device *hdev) strncmp(hdev->name, "www.masterkit.ru MA901", 22) == 0)return true;break ; +case USB_VENDOR_ID_ELAN : +/* +* Many Elan devices have a product id of 0x0401 and are handled +* by the elan_i2c input driver. But the ACPI HID ELAN0800 dev +* is not (and cannot be) handled by that driver -> +* Ignore all 0x0401 devs except for the ELAN0800 dev. +*/ +if (hdev->product ==0x0401 && +strncmp (hdev->name,"ELAN0800" ,8 ) !=0 ) +return true; +break ; } if (hdev->type == HID_TYPE_USBMOUSE &&
drivers/media/dvb-frontends/ts2020.c +2 -2
@@ -369,7 +369,7 @@ static int ts2020_read_tuner_gain(struct dvb_frontend *fe, unsigned v_agc, gain2 =clamp_t (long, gain2,0 ,13 ); v_agc =clamp_t (long, v_agc,400 ,1100 ); - *_gain = -(gain1 *2330 + + *_gain = -((__s64 )gain1 *2330 + gain2 *3500 + v_agc *24 /10 *10 +10000 );
@@ -387,7 +387,7 @@ static int ts2020_read_tuner_gain(struct dvb_frontend *fe, unsigned v_agc, gain3 =clamp_t (long, gain3,0 ,6 ); v_agc =clamp_t (long, v_agc,600 ,1600 ); - *_gain = -(gain1 * 2650 + + *_gain = -((__s64)gain1 * 2650 + gain2 * 3380 + gain3 * 2850 + v_agc * 176 / 100 * 10 -
drivers/media/platform/soc_camera/soc_scale_crop.c +4 -0
@@ -405,3 +405,7 @@ void soc_camera_calc_client_output(struct soc_camera_device *icd, mf->height =soc_camera_shift_scale (rect->height, shift, scale_v); }EXPORT_SYMBOL (soc_camera_calc_client_output); + +MODULE_DESCRIPTION ("soc-camera scaling-cropping functions" ); +MODULE_AUTHOR ("Guennadi Liakhovetski <[email protected]>" ); +MODULE_LICENSE ("GPL" );
drivers/media/usb/dvb-usb-v2/lmedm04.c +24 -15
@@ -503,18 +503,23 @@ static int lme2510_pid_filter(struct dvb_usb_adapter *adap, int index, u16 pid,static int lme2510_return_status (struct dvb_usb_device *d) { -int ret =0 ; +int ret;u8 *data; - data =kzalloc (10 ,GFP_KERNEL ); + data =kzalloc (6 ,GFP_KERNEL );if (!data)return -ENOMEM ; - ret |=usb_control_msg (d->udev,usb_rcvctrlpipe (d->udev,0 ), -0x06 ,0x80 ,0x0302 ,0x00 , data,0x0006 ,200 ); -info ("Firmware Status: %x (%x)" , ret , data[2 ]); + ret =usb_control_msg (d->udev,usb_rcvctrlpipe (d->udev,0 ), +0x06 ,0x80 ,0x0302 ,0x00 , + data,0x6 ,200 ); +if (ret !=6 ) + ret = -EINVAL ; +else + ret = data[2 ]; + +info ("Firmware Status: %6ph" , data); - ret = (ret <0 ) ? -ENODEV : data[2 ];kfree (data);return ret; }
@@ -1078,8 +1083,6 @@ static int dm04_lme2510_frontend_attach(struct dvb_usb_adapter *adap)if (adap->fe[0 ]) {info ("FE Found M88RS2000" ); -dvb_attach (ts2020_attach, adap->fe[0 ], &ts2020_config, - &d->i2c_adap); st->i2c_tuner_gate_w =5 ; st->i2c_tuner_gate_r =5 ; st->i2c_tuner_addr =0x60 ;
@@ -1145,17 +1148,18 @@ static int dm04_lme2510_tuner(struct dvb_usb_adapter *adap) ret = st->tuner_config;break ;case TUNER_RS2000 : - ret = st->tuner_config; +if (dvb_attach (ts2020_attach, adap->fe[0 ], + &ts2020_config, &d->i2c_adap)) + ret = st->tuner_config;break ;default :break ; } -if (ret) +if (ret) {info ("TUN Found %s tuner" , tun_msg[ret]); -else { -info ("TUN No tuner found --- resetting device" ); -lme_coldreset (d); + }else { +info ("TUN No tuner found" );return -ENODEV ; }
@@ -1199,6 +1203,7 @@ static int lme2510_get_adapter_count(struct dvb_usb_device *d)static int lme2510_identify_state (struct dvb_usb_device *d,const char **name) {struct lme2510_state *st = d->priv; +int status;usb_reset_configuration (d->udev);
@@ -1207,12 +1212,16 @@ static int lme2510_identify_state(struct dvb_usb_device *d, const char **name) st->dvb_usb_lme2510_firmware = dvb_usb_lme2510_firmware; -if (lme2510_return_status (d) ==0x44 ) { + status =lme2510_return_status (d); +if (status ==0x44 ) { *name =lme_firmware_switch (d,0 );return COLD ; } -return 0 ; +if (status !=0x47 ) +return -EINVAL ; + +return WARM ; } static int lme2510_get_stream_config(struct dvb_frontend *fe, u8 *ts_type,
drivers/media/usb/dvb-usb/cxusb.c +2 -0
@@ -818,6 +818,8 @@ static int dvico_bluebird_xc2028_callback(void *ptr, int component,case XC2028_RESET_CLK :deb_info ("%s: XC2028_RESET_CLK %d\n" , __func__, arg);break ; +case XC2028_I2C_FLUSH : +break ;default :deb_info ("%s: unknown command %d, arg %d\n" , __func__, command, arg);
drivers/media/usb/dvb-usb/dib0700_devices.c +1 -0
@@ -431,6 +431,7 @@ static int stk7700ph_xc3028_callback(void *ptr, int component, state->dib7000p_ops.set_gpio (adap->fe_adap[0 ].fe,8 ,0 ,1 );break ;case XC2028_RESET_CLK : +case XC2028_I2C_FLUSH :break ;default : err("%s: unknown command %d, arg %d\n", __func__,
drivers/media/v4l2-core/v4l2-compat-ioctl32.c +614 -409
1,143 lines not on this page · raw message
drivers/media/v4l2-core/videobuf2-v4l2.c +6 -0
Lines of this file are not shown. View the raw message.
drivers/mtd/ubi/block.c +26 -16
42 lines not on this page · raw message
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c +9 -9
Lines of this file are not shown. View the raw message.
drivers/usb/gadget/function/uvc_configfs.c +8 -8
Lines of this file are not shown. View the raw message.
include/linux/mtd/map.h +61 -69
130 lines not on this page · raw message
security/keys/encrypted-keys/encrypted.c +15 -16
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.