Re: [RFC 1/2] sched: reduce migration cost between faster caches for idle_balance

2018-02-15 Thread Steven Sistare
On 2/15/2018 1:07 PM, Mike Galbraith wrote: > On Thu, 2018-02-15 at 11:35 -0500, Steven Sistare wrote: >> On 2/10/2018 1:37 AM, Mike Galbraith wrote: >>> On Fri, 2018-02-09 at 11:08 -0500, Steven Sistare wrote: >> @@ -8804,7 +8803,8 @@ static int idle_balance(struct rq *this_rq, struct >>

[PATCH 4.9 00/88] 4.9.82-stable review

2018-02-15 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.9.82 release. There are 88 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Sat Feb 17 15:11:46 UTC 2018. Anything receive

Re: arm64/v4.16-rc1: KASAN: use-after-free Read in finish_task_switch

2018-02-15 Thread Will Deacon
On Thu, Feb 15, 2018 at 05:47:54PM +0100, Peter Zijlstra wrote: > On Thu, Feb 15, 2018 at 02:22:39PM +, Will Deacon wrote: > > Instead, we've come up with a more plausible sequence that can in theory > > happen on a single CPU: > > > > > > > > do_exit > > exit_mm > > If this is the last

Re: [PATCH v14 2/9] fw_cfg: add a public uapi header

2018-02-15 Thread Michael S. Tsirkin
On Thu, Feb 15, 2018 at 10:29:33AM +0100, Marc-Andre Lureau wrote: > Hi > > On Wed, Feb 14, 2018 at 8:37 PM, Michael S. Tsirkin wrote: > > On Wed, Feb 14, 2018 at 03:18:43PM +0100, Marc-André Lureau wrote: > >> Create a common header file for well-known values and structures to be > >> shared by

[PATCH 4.9 18/88] mtd: nand: sunxi: Fix ECC strength choice

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Miquel Raynal commit f4c6cd1a7f2275d5bc0e494b21fff26f8dde80f0 upstream. When the requested ECC strength does not exactly match the strengths supported by the ECC engine, the driver is selecting

Re: [PATCH v14 2/9] fw_cfg: add a public uapi header

2018-02-15 Thread Michael S. Tsirkin
On Thu, Feb 15, 2018 at 10:25:27AM +0100, Marc-Andre Lureau wrote: > Hi > > On Wed, Feb 14, 2018 at 9:41 PM, Michael S. Tsirkin wrote: > > On Wed, Feb 14, 2018 at 03:18:43PM +0100, Marc-André Lureau wrote: > >> Create a common header file for well-known values and structures to be > >> shared by

[PATCH 4.9 30/88] ahci: Add Intel Cannon Lake PCH-H PCI ID

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Mika Westerberg commit f919dde0772a894c693a1eeabc77df69d6a9b937 upstream. Add Intel Cannon Lake PCH-H PCI ID to the list of supported controllers. Signed-off-by: Mika Westerberg Signed-off-by

Re: [RFC PATCH 3/5] asm-generic/bitops/atomic.h: Rewrite using atomic_fetch_*

2018-02-15 Thread Will Deacon
Hi Peter, Thanks for having a look. On Thu, Feb 15, 2018 at 06:08:47PM +0100, Peter Zijlstra wrote: > On Thu, Feb 15, 2018 at 03:29:33PM +, Will Deacon wrote: > > +static inline void __clear_bit_unlock(unsigned int nr, > > + volatile unsigned long *p) > > +{ >

[PATCH 4.9 32/88] crypto: cryptd - pass through absence of ->setkey()

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Eric Biggers commit 841a3ff329713f796a63356fef6e2f72e4a3f6a3 upstream. When the cryptd template is used to wrap an unkeyed hash algorithm, don't install a ->setkey() method to the cryptd instan

[PATCH 4.9 34/88] crypto: poly1305 - remove ->setkey() method

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Eric Biggers commit a16e772e664b9a261424107784804cffc8894977 upstream. Since Poly1305 requires a nonce per invocation, the Linux kernel implementations of Poly1305 don't use the crypto API's ke

[PATCH 4.9 35/88] nsfs: mark dentry with DCACHE_RCUACCESS

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Cong Wang commit 073c516ff73557a8f7315066856c04b50383ac34 upstream. Andrey reported a use-after-free in __ns_get_path(): spin_lock include/linux/spinlock.h:299 [inline] lockref_get_not_dea

[PATCH 4.9 19/88] ubi: fastmap: Erase outdated anchor PEBs during attach

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Sascha Hauer commit f78e5623f45bab2b726eec29dc5cefbbab2d0b1c upstream. The fastmap update code might erase the current fastmap anchor PEB in case it doesn't find any new free PEB. When a power

[PATCH 4.9 37/88] media: v4l2-compat-ioctl32.c: add missing VIDIOC_PREPARE_BUF

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Hans Verkuil commit 3ee6d040719ae09110e5cdf24d5386abe5d1b776 upstream. The result of the VIDIOC_PREPARE_BUF ioctl was never copied back to userspace since it was missing in the switch. Signed-

Re: [alsa-devel] [PATCH] ASoC: dmic: Add optional wakeup delay

2018-02-15 Thread Matthias Kaehlcke
El Thu, Feb 15, 2018 at 09:42:01AM +0200 Peter Ujfalusi ha dit: > > > On 2018-02-15 01:51, Matthias Kaehlcke wrote: > > On some systems a delay is needed after switching on the clocks, to allow > > the DMIC output to stabilize and avoid a popping noise at the beginning > > of the recording. Add

[PATCH 4.9 38/88] media: v4l2-compat-ioctl32.c: fix the indentation

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Hans Verkuil commit b7b957d429f601d6d1942122b339474f31191d75 upstream. The indentation of this source is all over the place. Fix this. This patch only changes whitespace. Signed-off-by: Hans V

[PATCH 4.9 39/88] media: v4l2-compat-ioctl32.c: move helper functions to __get/put_v4l2_format32

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Hans Verkuil commit 486c521510c44a04cd756a9267e7d1e271c8a4ba upstream. These helper functions do not really help. Move the code to the __get/put_v4l2_format32 functions. Signed-off-by: Hans Ve

[PATCH 4.9 41/88] media: v4l2-compat-ioctl32.c: copy m.userptr in put_v4l2_plane32

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Hans Verkuil commit 8ed5a59dcb47a6f76034ee760b36e089f3e82529 upstream. The struct v4l2_plane32 should set m.userptr as well. The same happens in v4l2_buffer32 and v4l2-compliance tests for this

[PATCH 4.9 43/88] media: v4l2-compat-ioctl32.c: make ctrl_is_pointer work for subdevs

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Hans Verkuil commit 273caa260035c03d89ad63d72d8cd3d9e5c5e3f1 upstream. If the device is of type VFL_TYPE_SUBDEV then vdev->ioctl_ops is NULL so the 'if (!ops->vidioc_query_ext_ctrl)' check woul

[PATCH 4.9 42/88] media: v4l2-compat-ioctl32.c: fix ctrl_is_pointer

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Hans Verkuil commit b8c601e8af2d08f733d74defa8465303391bb930 upstream. ctrl_is_pointer just hardcoded two known string controls, but that caused problems when using e.g. custom controls that us

[PATCH 4.9 45/88] media: v4l2-compat-ioctl32.c: copy clip list in put_v4l2_window32

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Hans Verkuil commit a751be5b142ef6bcbbb96d9899516f4d9c8d0ef4 upstream. put_v4l2_window32() didn't copy back the clip list to userspace. Drivers can update the clip rectangles, so this should be

[PATCH 4.9 20/88] ubi: block: Fix locking for idr_alloc/idr_remove

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Bradley Bolen commit 7f29ae9f977bcdc3654e68bc36d170223c52fd48 upstream. This fixes a race with idr_alloc where gd->first_minor can be set to the same value for two simultaneous calls to ubibloc

[PATCH 4.9 47/88] media: v4l2-compat-ioctl32.c: dont copy back the result for certain errors

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Hans Verkuil commit d83a8243aaefe62ace433e4384a4f077bed86acb upstream. Some ioctls need to copy back the result even if the ioctl returned an error. However, don't do this for the error code -E

[PATCH 4.9 51/88] crypto: talitos - fix Kernel Oops on hashing an empty file

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: LEROY Christophe commit 87a81dce53b1ea61acaeefa5191a0376a2d1d721 upstream. Performing the hash of an empty file leads to a kernel Oops [ 44.504600] Unable to handle kernel paging request for

[PATCH 4.9 50/88] crypto: sha512-mb - initialize pending lengths correctly

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Eric Biggers commit eff84b379089cd8b4e83599639c1f5f6e34ef7bf upstream. The SHA-512 multibuffer code keeps track of the number of blocks pending in each lane. The minimum of these values is use

[PATCH 4.9 54/88] KVM: arm/arm64: Handle CPU_PM_ENTER_FAILED

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: James Morse commit 58d6b15e9da5042a99c9c30ad725792e4569150e upstream. cpu_pm_enter() calls the pm notifier chain with CPU_PM_ENTER, then if there is a failure: CPU_PM_ENTER_FAILED. When KVM re

[PATCH 4.9 23/88] NFS: Add a cond_resched() to nfs_commit_release_pages()

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Trond Myklebust commit 7f1bda447c9bd48b415acedba6b830f61591601f upstream. The commit list can get very large, and so we need a cond_resched() in nfs_commit_release_pages() in order to ensure we

[PATCH 4.9 21/88] ubifs: Massage assert in ubifs_xattr_set() wrt. init_xattrs

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Xiaolei Li commit d8db5b1ca9d4c57e49893d0f78e6d5ce81450cc8 upstream. The inode is not locked in init_xattrs when creating a new inode. Without this patch, there will occurs assert when booting

[PATCH 4.9 55/88] ASoC: rockchip: i2s: fix playback after runtime resume

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: John Keeping commit c66234cfedfc3e6e3b62563a5f2c1562be09a35d upstream. When restoring registers during runtime resume, we must not write to I2S_TXDR which is the transmit FIFO as this queues up

Re: [PATCH 0/3] Use global pages with PTI

2018-02-15 Thread Dave Hansen
On 02/15/2018 09:47 AM, Linus Torvalds wrote: > On Thu, Feb 15, 2018 at 5:20 AM, Dave Hansen > wrote: >> >> During the switch over to PTI, we seem to have lost our ability to have >> GLOBAL mappings. > > Oops. Odd, I have this distinct memory of somebody even _testing_ the > global bit performanc

[PATCH 4.9 25/88] NFS: reject request for id_legacy key without auxdata

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Eric Biggers commit 49686cbbb3ebafe42e63868222f269d8053ead00 upstream. nfs_idmap_legacy_upcall() is supposed to be called with 'aux' pointing to a 'struct idmap', via the call to request_key_wi

[PATCH 4.9 26/88] NFS: Fix a race between mmap() and O_DIRECT

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Trond Myklebust commit e231c6879cfd44e4fffd384bb6dd7d313249a523 upstream. When locking the file in order to do O_DIRECT on it, we must unmap any mmapped ranges on the pagecache so that we can f

[PATCH 4.9 68/88] Revert "Bluetooth: btusb: fix QCA Rome suspend/resume"

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Kai-Heng Feng commit 7d06d5895c159f64c46560dc258e553ad8670fe0 upstream. This reverts commit fd865802c66bc451dc515ed89360f84376ce1a56. This commit causes a regression on some QCA ROME chips. Th

[PATCH 4.9 67/88] Bluetooth: btsdio: Do not bind to non-removable BCM43341

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Hans de Goede commit b4cdaba274247c9c841c6a682c08fa91fb3aa549 upstream. BCM43341 devices soldered onto the PCB (non-removable) always (AFAICT) use an UART connection for bluetooth. But they als

[PATCH 4.9 69/88] Bluetooth: btusb: Restore QCA Rome suspend/resume fix with a "rewritten" version

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Hans de Goede commit 61f5acea8737d9b717fcc22bb6679924f3c82b98 upstream. Commit 7d06d5895c15 ("Revert "Bluetooth: btusb: fix QCA...suspend/resume"") removed the setting of the BTUSB_RESET_RESUME

[PATCH 4.9 58/88] media: dvb-frontends: fix i2c access helpers for KASAN

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 3cd890dbe2a4f14cc44c85bb6cf37e5e22d4dd0e upstream. A typical code fragment was copied across many dvb-frontend drivers and causes large stack frames when built with with CO

[PATCH 4.9 71/88] signal/sh: Ensure si_signo is initialized in do_divide_error

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Eric W. Biederman commit 0e88bb002a9b2ee8cc3cc9478ce2dc126f849696 upstream. Set si_signo. Cc: Yoshinori Sato Cc: Rich Felker Cc: Paul Mundt Cc: linux...@vger.kernel.org Fixes: 0983b31849bb

Re: [PATCH] i40evf/i40evf_main: Fix variable assignment in i40evf_parse_cls_flower

2018-02-15 Thread Jeff Kirsher
On Thu, 2018-02-15 at 09:56 -0800, Ramamurthy, Harshitha wrote: > On Thu, 2018-02-15 at 11:44 -0600, Gustavo A. R. Silva wrote: > > It seems this is a copy-paste error and that the proper variable to > > use > > in this particular case is _src_ instead of _dst_. > > > > Addresses-Coverity-ID: 1465

Re: [PATCH-next] sched/headers: Clean up

2018-02-15 Thread Christopher Díaz Riveros
El jue, 15-02-2018 a las 09:49 -0800, Randy Dunlap escribió: > On 02/15/2018 07:43 AM, Christopher Diaz Riveros wrote: > > Trivial clean up making comments fit in 80 columns and keeping the > > same comment style. > > Why change the /** (indicates kernel-doc notation) to just /* ? > > Is scripts

[PATCH] net: dsa: mv88e6xxx: hwtstamp: fix potential negative array index read

2018-02-15 Thread Gustavo A. R. Silva
_port_ is being used as index to array port_hwtstamp before verifying it is a non-negative number and a valid index at 209: if (port < 0 || port >= mv88e6xxx_num_ports(chip)) Fix this by checking _port_ before using it as index to array port_hwtstamp. Addresses-Coverity-ID: 1465287 ("Negative ar

Re: [PATCH v14 8/9] fw_cfg: write vmcoreinfo details

2018-02-15 Thread Michael S. Tsirkin
On Wed, Feb 14, 2018 at 03:18:49PM +0100, Marc-André Lureau wrote: > If the "etc/vmcoreinfo" fw_cfg file is present and we are not running > the kdump kernel, write the addr/size of the vmcoreinfo ELF note. > > The DMA operation is expected to run synchronously with today qemu, > but the specifica

Re: [PATCH RFC v2 1/6] x86: Skip PTI when disable indication is set

2018-02-15 Thread Dave Hansen
On 02/15/2018 08:35 AM, Nadav Amit wrote: > +.Lno_spec_\@: > + lfence > + jmp .Lend_\@ > + > .Lnoflush_\@: > SET_NOFLUSH_BIT \save_reg > How expensive is this?

[PATCH 4.9 74/88] alpha: fix formating of stack content

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Mikulas Patocka commit 4b01abdb32fc36abe877503bfbd33019159fad71 upstream. Since version 4.9, the kernel automatically breaks printk calls into multiple newlines unless pr_cont is used. Fix the

[PATCH 4.9 73/88] alpha: fix reboot on Avanti platform

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Mikulas Patocka commit 55fc633c41a08ce9244ff5f528f420b16b1e04d6 upstream. We need to define NEED_SRM_SAVE_RESTORE on the Avanti, otherwise we get machine check exception when attempting to rebo

Re: [PATCH v3 1/2] drm/virtio: Add window server support

2018-02-15 Thread Tomeu Vizoso
On 02/12/2018 12:45 PM, Gerd Hoffmann wrote: 4. QEMU pops data+buffers from the virtqueue, looks up shmem FD for each resource, sends data + FDs to the compositor with SCM_RIGHTS >>> >>> BTW: Is there a 1:1 relationship between buffers and shmem blocks? Or >>> does the wayland protocol

[PATCH 4.9 75/88] xtensa: fix futex_atomic_cmpxchg_inatomic

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Max Filippov commit ca47480921587ae30417dd234a9f79af188e3666 upstream. Return 0 if the operation was successful, not the userspace memory value. Check that userspace value equals passed oldval,

Re: [PATCH RFC v2 5/6] x86: Use global pages when PTI is disabled

2018-02-15 Thread Dave Hansen
On 02/15/2018 09:47 AM, Nadav Amit wrote: > Dave Hansen wrote: >>> diff --git a/arch/x86/mm/tlb.c b/arch/x86/mm/tlb.c >>> index c67ef3fb4f35..979c7ec6baab 100644 >>> --- a/arch/x86/mm/tlb.c >>> +++ b/arch/x86/mm/tlb.c >>> @@ -74,7 +74,8 @@ static void choose_new_asid(struct mm_struct *next, u64 >

Re: [RFC 1/2] sched: reduce migration cost between faster caches for idle_balance

2018-02-15 Thread Mike Galbraith
On Thu, 2018-02-15 at 11:35 -0500, Steven Sistare wrote: > On 2/10/2018 1:37 AM, Mike Galbraith wrote: > > On Fri, 2018-02-09 at 11:08 -0500, Steven Sistare wrote: > @@ -8804,7 +8803,8 @@ static int idle_balance(struct rq *this_rq, struct > rq_flags *rf) > if (!(sd-

[PATCH 4.9 78/88] pktcdvd: Fix pkt_setup_dev() error path

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Bart Van Assche commit 5a0ec388ef0f6e33841aeb810d7fa23f049ec4cd upstream. Commit 523e1d399ce0 ("block: make gendisk hold a reference to its queue") modified add_disk() and disk_release() but di

Re: [RFC 1/2] sched: reduce migration cost between faster caches for idle_balance

2018-02-15 Thread Rohit Jain
On 02/15/2018 08:35 AM, Steven Sistare wrote: On 2/10/2018 1:37 AM, Mike Galbraith wrote: On Fri, 2018-02-09 at 11:08 -0500, Steven Sistare wrote: @@ -8804,7 +8803,8 @@ static int idle_balance(struct rq *this_rq, struct rq_flags *rf) if (!(sd->flags & SD_LOAD_BALANCE))

[PATCH 4.9 81/88] lib/ubsan: add type mismatch handler for new GCC/Clang

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Andrey Ryabinin commit 42440c1f9911b4b7b8ba3dc4e90c1197bc561211 upstream. UBSAN=y fails to build with new GCC/clang: arch/x86/kernel/head64.o: In function `sanitize_boot_params': arch/

[PATCH 4.9 80/88] lib/ubsan.c: s/missaligned/misaligned/

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Andrew Morton commit b8fe1120b4ba342b4f156d24e952d6e686b20298 upstream. A vist from the spelling fairy. Cc: David Laight Cc: Andrey Ryabinin Signed-off-by: Andrew Morton Signed-off-by: Linu

[PATCH 4.9 79/88] clocksource/drivers/stm32: Fix kernel panic with multiple timers

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Lezcano commit e0aeca3d8cbaea514eb98df1149faa918f9ec42d upstream. The current code hides a couple of bugs: - The global variable 'clock_event_ddata' is overwritten each time the ini

Re: [PATCH v3 0/5] crypto: ahash.c: Require export/import in ahash

2018-02-15 Thread Kamil Konieczny
On 15.02.2018 18:06, Marek Vasut wrote: > On 02/15/2018 06:00 PM, Kamil Konieczny wrote: >> >> >> On 15.02.2018 17:27, Marek Vasut wrote: >>> On 02/15/2018 04:41 PM, Herbert Xu wrote: On Thu, Jan 18, 2018 at 07:33:59PM +0100, Kamil Konieczny wrote: > First four patches add empty hash exp

Re: [PATCH 2/2] drm/sun4i: Handle DRM_MODE_FLAG_**SYNC_POSITIVE correctly

2018-02-15 Thread Giulio Benetti
Hi, Il 08/02/2018 21:40, Maxime Ripard ha scritto: On Wed, Feb 07, 2018 at 01:49:59PM +0100, Giulio Benetti wrote: Hi, Il 07/02/2018 11:39, Maxime Ripard ha scritto: On Wed, Jan 24, 2018 at 08:37:28PM +0100, Giulio Benetti wrote: Also, how was it tested? This seems quite weird that we haven'

Re: objtool warnings on 4.14-stable/gcc-7.3.0

2018-02-15 Thread Kees Cook
On Thu, Feb 15, 2018 at 7:59 AM, Arnd Bergmann wrote: > On Thu, Feb 15, 2018 at 4:25 PM, Josh Poimboeuf wrote: >> On Thu, Feb 15, 2018 at 04:01:57PM +0100, Arnd Bergmann wrote: >>> On Wed, Feb 14, 2018 at 11:45 PM, Josh Poimboeuf >>> wrote: >>> > On Wed, Feb 14, 2018 at 04:24:12PM -0600, Josh P

[PATCH 4.9 87/88] mn10300/misalignment: Use SIGSEGV SEGV_MAPERR to report a failed user copy

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Eric W. Biederman commit 6ac1dc736b323011a55ecd1fc5897c24c4f77cbd upstream. Setting si_code to 0 is the same a setting si_code to SI_USER which is definitely not correct. With si_code set to

[PATCH 4.9 61/88] fs/proc/kcore.c: use probe_kernel_read() instead of memcpy()

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Heiko Carstens commit d0290bc20d4739b7a900ae37eb5d4cc3be2b393f upstream. Commit df04abfd181a ("fs/proc/kcore.c: Add bounce buffer for ktext data") added a bounce buffer to avoid hardened userco

[PATCH 4.9 65/88] pipe: fix off-by-one error when checking buffer limits

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Eric Biggers commit 9903a91c763ecdae333a04a9d89d79d2b8966503 upstream. With pipe-user-pages-hard set to 'N', users were actually only allowed up to 'N - 1' buffers; and likewise for pipe-user-p

[PATCH 4.9 63/88] kernel/relay.c: revert "kernel/relay.c: fix potential memory leak"

2018-02-15 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Eric Biggers commit a1be1f3931bfe0a42b46fef77a04593c2b136e7f upstream. This reverts commit ba62bafe942b ("kernel/relay.c: fix potential memory leak"). This commit introduced a double free bug,

[PATCH 4.14 002/195] powerpc/pseries: include linux/types.h in asm/hvcall.h

2018-02-15 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Michal Suchanek commit 1b689a95ce7427075f9ac9fb4aea1af530742b7f upstream. Commit 6e032b350cd1 ("powerpc/powernv: Check device-tree for RFI flush settings") uses u64 in asm/hvcall.h without inc

[PATCH 4.14 001/195] watchdog: indydog: Add dependency on SGI_HAS_INDYDOG

2018-02-15 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Matt Redfearn commit 24f8d233074badd4c18e4dafd2fb97d65838afed upstream. Commit da2a68b3eb47 ("watchdog: Enable COMPILE_TEST where possible") enabled building the Indy watchdog driver when COMP

[PATCH 4.14 005/195] CIFS: zero sensitive data when freeing

2018-02-15 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Aurelien Aptel commit 97f4b7276b829a8927ac903a119bef2f963ccc58 upstream. also replaces memset()+kfree() by kzfree(). Signed-off-by: Aurelien Aptel Signed-off-by: Steve French Reviewed-by: P

[PATCH 4.14 003/195] cifs: Fix missing put_xid in cifs_file_strict_mmap

2018-02-15 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Matthew Wilcox commit f04a703c3d613845ae3141bfaf223489de8ab3eb upstream. If cifs_zap_mapping() returned an error, we would return without putting the xid that we got earlier. Restructure cifs

[RFC PATCH 4/5] arm64: Replace our atomic bitops implementation with asm-generic

2018-02-15 Thread Will Deacon
The asm-generic/bitops/atomic.h implementation is built around the atomic-fetch ops, which we implement efficiently for both LSE and LL/SC systems. Use that instead of our hand-rolled, out-of-line bitops.S. Signed-off-by: Will Deacon --- arch/arm64/include/asm/bitops.h | 13 +-- arch/arm64/l

Re: [PATCH v3] Add delay-init quirk for Corsair K70 RGB keyboards

2018-02-15 Thread Greg Kroah-Hartman
On Thu, Feb 15, 2018 at 05:59:34PM +, Jack wrote: > On 15/02/18 17:35, Greg Kroah-Hartman wrote: > > On Sun, Feb 04, 2018 at 04:50:58PM +, JackStocker wrote: > > > Following on from this patch: https://lkml.org/lkml/2017/11/3/516, > > > Corsair K70 RGB keyboards also require the DELAY_INIT

[RFC PATCH 2/5] asm-generic: Avoid including linux/kernel.h in asm-generic/bug.h

2018-02-15 Thread Will Deacon
asm-generic/bug.h unnecessarily includes linux/kernel.h whereas it can get away with linux/types.h instead. lib/errseq.c relies on this transitive include, so update it to include linux/kernel.h instead. Signed-off-by: Will Deacon --- include/asm-generic/bug.h | 2 +- lib/errseq.c |

[RFC PATCH 3/5] asm-generic/bitops/atomic.h: Rewrite using atomic_fetch_*

2018-02-15 Thread Will Deacon
The atomic bitops can actually be implemented pretty efficiently using the atomic_fetch_* ops, rather than explicit use of spinlocks. Cc: Peter Zijlstra Cc: Ingo Molnar Signed-off-by: Will Deacon --- include/asm-generic/bitops/atomic.h | 219 1 file changed

[RFC PATCH 1/5] arm64: fpsimd: include in fpsimd.h

2018-02-15 Thread Will Deacon
fpsimd.h uses the __init annotation, so pull in linux/init.h Signed-off-by: Will Deacon --- arch/arm64/include/asm/fpsimd.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/include/asm/fpsimd.h b/arch/arm64/include/asm/fpsimd.h index 8857a0f0d0f7..fc3527b985ca 100644 --- a/arch/arm

[PATCH v13 2/8] media: v4l-ioctl: fix clearing pad for VIDIOC_DV_TIMIGNS_CAP

2018-02-15 Thread Tim Harvey
Signed-off-by: Tim Harvey --- drivers/media/v4l2-core/v4l2-ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c index 7961499..5f3670d 100644 --- a/drivers/media/v4l2-core/v4l2-ioctl.c +++ b/driver

[PATCH v13 3/8] media: add digital video decoder entity functions

2018-02-15 Thread Tim Harvey
Add a new media entity function definition for digital TV decoders: MEDIA_ENT_F_DTV_DECODER Signed-off-by: Tim Harvey --- Documentation/media/uapi/mediactl/media-types.rst | 11 +++ include/uapi/linux/media.h| 5 + 2 files changed, 16 insertions(+) diff --gi

[PATCH v13 1/8] v4l2-dv-timings: add v4l2_hdmi_colorimetry()

2018-02-15 Thread Tim Harvey
From: Hans Verkuil Add the v4l2_hdmi_colorimetry() function so we have a single function that determines the colorspace, YCbCr encoding, quantization range and transfer function from the InfoFrame data. Cc: Randy Dunlap Signed-off-by: Hans Verkuil --- v9: - fix kernel-doc format (Randy) dri

[PATCH v13 5/8] media: dt-bindings: Add bindings for TDA1997X

2018-02-15 Thread Tim Harvey
Acked-by: Rob Herring Acked-by: Sakari Ailus Signed-off-by: Tim Harvey --- v6: - replace copyright with SPDX tag - added Rob's ack v5: - added Sakari's ack v4: - move include/dt-bindings/media/tda1997x.h to bindings patch - clarify port node details v3: - fix typo v2: - add vendor pre

[PATCH v13 0/8] TDA1997x HDMI video reciver

2018-02-15 Thread Tim Harvey
This is a v4l2 subdev driver supporting the TDA1997x HDMI video receiver. I've tested this on a Gateworks GW54xx/GW551x with an IMX6Q/IMX6DL which uses the TDA19971 with 16bits connected to the IMX6 CSI and single-lane I2S audio providing 2-channel audio. For this configuration I've tested both 1

Re: [PATCH v3] Add delay-init quirk for Corsair K70 RGB keyboards

2018-02-15 Thread Jack
On 15/02/18 17:35, Greg Kroah-Hartman wrote: On Sun, Feb 04, 2018 at 04:50:58PM +, JackStocker wrote: Following on from this patch: https://lkml.org/lkml/2017/11/3/516, Corsair K70 RGB keyboards also require the DELAY_INIT quirk to start correctly at boot. Device ids found here: usb 3-3: Ne

Re: [PATCH v9 5/7] arm64: kvm: Introduce KVM_ARM_SET_SERROR_ESR ioctl

2018-02-15 Thread James Morse
Hi gengdongjiu, On 12/02/18 10:19, gengdongjiu wrote: > On 2018/2/10 1:44, James Morse wrote: >> The point? We can't know what a CPU without the RAS extensions puts in there. >> >> Why Does this matter? When migrating a pending SError we have to know the >> difference between 'use this 64bit value

Re: [PATCH v5 1/3] arm64/ras: support sea error recovery

2018-02-15 Thread James Morse
Hi Xie XiuQi, On 08/02/18 08:35, Xie XiuQi wrote: > I am very glad that you are trying to solve the problem, which is very > helpful. > I agree with your proposal, and I'll test it on by box latter. > > Indeed, we're in precess context when we are in sea handler. I was thought we > can't call sc

[PATCH v13 8/8] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW551x

2018-02-15 Thread Tim Harvey
Signed-off-by: Tim Harvey --- v5: - add missing audmux config arch/arm/boot/dts/imx6qdl-gw551x.dtsi | 138 ++ 1 file changed, 138 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-gw551x.dtsi b/arch/arm/boot/dts/imx6qdl-gw551x.dtsi index 30d4662..749548a 100

[REPOST PATCH] arm/arm64: KVM: Add PSCI version selection API

2018-02-15 Thread Marc Zyngier
Although we've implemented PSCI 0.1, 0.2 and 1.0, we expose either 0.1 or 1.0 to a guest, defaulting to the latest version of the PSCI implementation that is compatible with the requested version. This is no different from doing a firmware upgrade on KVM. But in order to give a chance to hypotheti

Re: [PATCH 2/2] [stable-4.9] x86: fix build warnign with 32-bit PAE

2018-02-15 Thread Kees Cook
On Thu, Feb 15, 2018 at 7:16 AM, Arnd Bergmann wrote: > I ran into a 4.9 build warning in randconfig testing, starting with the > KAISER patches: > > arch/x86/kernel/ldt.c: In function 'alloc_ldt_struct': > arch/x86/include/asm/pgtable_types.h:208:24: error: large integer implicitly > truncated t

Re: [PATCH v9 3/7] acpi: apei: Add SEI notification type support for ARMv8

2018-02-15 Thread James Morse
Hi gengdongjiu, liu jun On 05/02/18 11:24, gengdongjiu wrote: > James Morse wrote: >> I'd like to pick these patches onto the end of that series, but first I want >> to >> know what NOTIFY_SEI means for any OS. The ACPI spec doesn't say, and >> because its asynchronous, route-able and mask-able,

[PATCH v13 7/8] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW54xx

2018-02-15 Thread Tim Harvey
The GW54xx has a front-panel microHDMI connector routed to a TDA19971 which is connected the the IPU CSI when using IMX6Q. Signed-off-by: Tim Harvey --- v5: - remove leading 0 from unit address - add newline between property list and child node v4: no changes v3: no changes v2: - add HDMI au

Re: v4.16-rc1 misaligned atomics in skb__clone / __napi_alloc_skb

2018-02-15 Thread Mark Rutland
On Thu, Feb 15, 2018 at 09:43:06AM -0800, Eric Dumazet wrote: > On Thu, 2018-02-15 at 09:24 -0800, Eric Dumazet wrote: > > > > I will send something more suited to original intent of these commits : > > > > 90e33d45940793def6f773b2d528e9f3c84ffdc7 tun: enable napi_gro_frags() > > for TUN/TAP driv

Re: [PATCH] i40evf/i40evf_main: Fix variable assignment in i40evf_parse_cls_flower

2018-02-15 Thread Ramamurthy, Harshitha
On Thu, 2018-02-15 at 11:44 -0600, Gustavo A. R. Silva wrote: > It seems this is a copy-paste error and that the proper variable to > use > in this particular case is _src_ instead of _dst_. > > Addresses-Coverity-ID: 1465282 ("Copy-paste error") > Fixes: 0075fa0fadd0 ("i40evf: Add support to appl

[PATCH v13 6/8] media: i2c: Add TDA1997x HDMI receiver driver

2018-02-15 Thread Tim Harvey
Add support for the TDA1997x HDMI receivers. Cc: Hans Verkuil Signed-off-by: Tim Harvey --- v13: - fix coccinelle warnings v12: - fix coccinelle warnings v11: - return -ERANGE from tda1997x_detect_std (Hans) - clean up tda1997x_g_input_status (Hans) - show detected timings on resolution c

[PATCH] drm/sun4i: fix HSYNC and VSYNC polarity

2018-02-15 Thread Giulio Benetti
Differently from other Lcd signals, HSYNC and VSYNC signals result inverted if their bits are cleared to 0. Invert their settings of IO_POL register. Signed-off-by: Giulio Benetti --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driv

[PATCH 4.14 008/195] sched/wait: Fix add_wait_queue() behavioral change

2018-02-15 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Omar Sandoval commit c6b9d9a33029014446bd9ed84c1688f6d3d4eab9 upstream. The following cleanup commit: 50816c48997a ("sched/wait: Standardize internal naming of wait-queue entries") ... uni

[PATCH v13 4/8] MAINTAINERS: add entry for NXP TDA1997x driver

2018-02-15 Thread Tim Harvey
Signed-off-by: Tim Harvey --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 845fc25..439b500 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13262,6 +13262,14 @@ T: git git://linuxtv.org/mkrufky/tuners.git S: Maintained F: dri

[RFC PATCH 0/5] Rewrite asm-generic/bitops/atomic.h and use on arm64

2018-02-15 Thread Will Deacon
Hi all, Whilst investigating a livelock in fs/dcache.c [1], I noticed that the arm64 test_and_set operation always writes back to memory even if the value is already set. This led me to start hacking on improved versions of our bitops, including an acquire version of test_and_set_bit_lock. Since

[PATCH 4.14 018/195] dccp: CVE-2017-8824: use-after-free in DCCP code

2018-02-15 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Mohamed Ghannam commit 69c64866ce072dea1d1e59a0d61e0f66c0dffb76 upstream. Whenever the sock object is in DCCP_CLOSED state, dccp_disconnect() must free dccps_hc_tx_ccid and dccps_hc_rx_ccid an

[RFC PATCH 5/5] arm64: bitops: Include

2018-02-15 Thread Will Deacon
asm-generic/bitops/ext2-atomic-setbit.h provides the ext2 atomic bitop definitions, so we don't need to define our own. Signed-off-by: Will Deacon --- arch/arm64/include/asm/bitops.h | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/arm64/include/asm/bitops.h b/arch/

[PATCH 4.14 020/195] media: dvb-usb-v2: lmedm04: move ts2020 attach to dm04_lme2510_tuner

2018-02-15 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Malcolm Priestley commit 7bf7a7116ed313c601307f7e585419369926ab05 upstream. When the tuner was split from m88rs2000 the attach function is in wrong place. Move to dm04_lme2510_tuner to trap e

[PATCH 3/5] regmap: Use _regmap_read in regmap_bulk_read

2018-02-15 Thread Charles Keepax
Bulk reads may potentially read a lot of registers and regmap_read will take and release the regmap lock for each register. Avoid bouncing the lock so frequently by holding the lock locally and calling _regmap_read instead. This also has the nice side-effect that all the reads will be done atomical

Re: [PATCH v3] rtc: ac100: Fix ac100 determine rate bug

2018-02-15 Thread Philipp Rossak
On 15.02.2018 15:11, Maxime Ripard wrote: On Wed, Feb 14, 2018 at 02:56:12PM +0100, Philipp Rossak wrote: This patch fixes a bug, that prevents the Allwinner A83T and the A80 from a successful boot. The bug is there since v4.16-rc1 and appeared after the clk branch was merged. Out of curios

[PATCH 5/5] regmap: Remove regmap_get_raw_read_max

2018-02-15 Thread Charles Keepax
Since the handling for max_raw_read is now inside regmap_raw_read there should be no need for client drivers to query as max_raw_read. Signed-off-by: Charles Keepax --- drivers/base/regmap/regmap.c | 11 --- include/linux/regmap.h | 1 - 2 files changed, 12 deletions(-) diff --gi

[PATCH 1/5] regmap: Move the handling for max_raw_read into regmap_raw_read

2018-02-15 Thread Charles Keepax
Currently regmap_bulk_read will split a read into chunks before calling regmap_raw_read if max_raw_read is set. It is more logical for this handling to be inside regmap_raw_read itself, as this removes the need to keep re-implementing the chunking code, which would be the same for all users of regm

[PATCH 2/5] regmap: Tidy up regmap_raw_read chunking code

2018-02-15 Thread Charles Keepax
Raw reads may need to be split into small chunks if max_raw_read is set. Tidy up the code implementing this, the new code is slightly clearer, slightly shorter and slightly more efficient. Signed-off-by: Charles Keepax --- drivers/base/regmap/regmap.c | 44 +++---

[PATCH 4/5] iio: accel: bcm150: Remove handling for regmap raw_read_max

2018-02-15 Thread Charles Keepax
The regmap core now handles splitting up transactions according to max_raw_read, so this code is no longer required in client drivers. Signed-off-by: Charles Keepax --- drivers/iio/accel/bmc150-accel-core.c | 23 +++ 1 file changed, 3 insertions(+), 20 deletions(-) diff --gi

Re: [PATCH] Build: Scripts/Makefile: Remove Repeated Lines

2018-02-15 Thread Randy Dunlap
On 02/15/2018 01:38 AM, Progyan Bhattacharya wrote: > I think some merge error happened in my local workspace. > > Yes the file is correct in Linus's tree as well as current HEAD of linux-next. > Thanks. > I will update my tree accordingly. > > About the nonstandard range statements in case, shou

[PATCH 4.14 021/195] media: hdpvr: Fix an error handling path in hdpvr_probe()

2018-02-15 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Arvind Yadav commit c0f71bbb810237a38734607ca4599632f7f5d47f upstream. Here, hdpvr_register_videodev() is responsible for setup and register a video device. Also defining and initializing a wo

[PATCH 4.14 023/195] [Variant 3/Meltdown] arm64: mm: Use non-global mappings for kernel space

2018-02-15 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Will Deacon Commit e046eb0c9bf2 upstream. In preparation for unmapping the kernel whilst running in userspace, make the kernel mappings non-global so we can avoid expensive TLB invalidation o

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