[PATCH AUTOSEL 4.19 033/192] fs/file.c: initialize init_files.resize_wait

2019-03-27 Thread Sasha Levin
From: Shuriyc Chu [ Upstream commit 5704a06810682683355624923547b41540e2801a ] (Taken from https://bugzilla.kernel.org/show_bug.cgi?id=200647) 'get_unused_fd_flags' in kthread cause kernel crash. It works fine on 4.1, but causes crash after get 64 fds. It also cause crash on ubuntu1404/1604/1

[PATCH AUTOSEL 4.19 031/192] f2fs: do not use mutex lock in atomic context

2019-03-27 Thread Sasha Levin
From: Sahitya Tummala [ Upstream commit 9083977dabf3833298ddcd40dee28687f1e6b483 ] Fix below warning coming because of using mutex lock in atomic context. BUG: sleeping function called from invalid context at kernel/locking/mutex.c:98 in_atomic(): 1, irqs_disabled(): 0, pid: 585, name: sh Preem

Re: [PATCH] watchdog: Respect watchdog cpumask on CPU hotplug

2019-03-27 Thread Thomas Gleixner
On Wed, 27 Mar 2019, Oleg Nesterov wrote: > On 03/26, Thomas Gleixner wrote: > > > > The rework of the watchdog core to use cpu_stop_work broke the watchdog > > cpumask on CPU hotplug. > > > > The watchdog_enable/disable() functions are now called unconditionally from > > the hotplug callback, i.e.

[PATCH AUTOSEL 4.19 017/192] scsi: hisi_sas: Fix a timeout race of driver internal and SMP IO

2019-03-27 Thread Sasha Levin
From: Xiang Chen [ Upstream commit 4790595723d4b833b18c994973d39f9efb842887 ] For internal IO and SMP IO, there is a time-out timer for them. In the timer handler, it checks whether IO is done according to the flag task->task_state_lock. There is an issue which may cause system suspended: inter

[PATCH AUTOSEL 4.19 025/192] mm,oom: don't kill global init via memory.oom.group

2019-03-27 Thread Sasha Levin
From: Tetsuo Handa [ Upstream commit d342a0b38674867ea67fde47b0e1e60ffe9f17a2 ] Since setting global init process to some memory cgroup is technically possible, oom_kill_memcg_member() must check it. Tasks in /test1 are going to be killed due to memory.oom.group set Memory cgroup out of mem

[PATCH AUTOSEL 4.19 021/192] mm/sparse: fix a bad comparison

2019-03-27 Thread Sasha Levin
From: Qian Cai [ Upstream commit d778015ac95bc036af73342c878ab19250e01fe1 ] next_present_section_nr() could only return an unsigned number -1, so just check it specifically where compilers will convert -1 to unsigned if needed. mm/sparse.c: In function 'sparse_init_nid': mm/sparse.c:200:20:

[PATCH AUTOSEL 4.19 016/192] scsi: hisi_sas: Set PHY linkrate when disconnected

2019-03-27 Thread Sasha Levin
From: John Garry [ Upstream commit efdcad62e7b8a02f5ccca57806dce1482ac8 ] When the PHY comes down, we currently do not set the negotiated linkrate: root@(none)$ pwd /sys/class/sas_phy/phy-0:0 root@(none)$ more enable 1 root@(none)$ more negotiated_linkrate 12.0 Gbit root@(none)$ echo 0 > en

[PATCH AUTOSEL 4.19 020/192] perf c2c: Fix c2c report for empty numa node

2019-03-27 Thread Sasha Levin
From: Jiri Olsa [ Upstream commit e34c940245437f36d2c492edd1f8237eff391064 ] Ravi Bangoria reported that we fail with an empty NUMA node with the following message: $ lscpu NUMA node0 CPU(s): NUMA node1 CPU(s): 0-4 $ sudo ./perf c2c report node/cpu topology bugFailed setup nodes F

[PATCH AUTOSEL 4.19 024/192] mm, swap: bounds check swap_info array accesses to avoid NULL derefs

2019-03-27 Thread Sasha Levin
From: Daniel Jordan [ Upstream commit c10d38cc8d3e43f946b6c2bf4602c86791587f30 ] Dan Carpenter reports a potential NULL dereference in get_swap_page_of_type: Smatch complains that the NULL checks on "si" aren't consistent. This seems like a real bug because we have not ensured that the typ

[PATCH AUTOSEL 4.19 011/192] include/linux/relay.h: fix percpu annotation in struct rchan

2019-03-27 Thread Sasha Levin
From: Luc Van Oostenryck [ Upstream commit 62461ac2e5b6520b6d65fc6d7d7b4b8df4b848d8 ] The percpu member of this structure is declared as: struct ... ** __percpu member; So its type is: __percpu pointer to pointer to struct ... But looking at how it's used, its type should be:

[PATCH AUTOSEL 4.19 013/192] net: stmmac: Avoid sometimes uninitialized Clang warnings

2019-03-27 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit df103170854e87124ee7bdd2bca64b178e653f97 ] When building with -Wsometimes-uninitialized, Clang warns: drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:495:3: warning: variable 'ns' is used uninitialized whenever 'if' condition is false [-Wsometimes-u

[PATCH AUTOSEL 4.19 010/192] gpio: gpio-omap: fix level interrupt idling

2019-03-27 Thread Sasha Levin
From: Russell King [ Upstream commit d01849f7deba81f4959fd9e51bf20dbf46987d1c ] Tony notes that the GPIO module does not idle when level interrupts are in use, as the wakeup appears to get stuck. After extensive investigation, it appears that the wakeup will only be cleared if the interrupt sta

[PATCH AUTOSEL 4.19 006/192] i2c: sis630: correct format strings

2019-03-27 Thread Sasha Levin
From: Louis Taylor [ Upstream commit 60f7691c624b41a05bfc3493d9b0519e7951b7ef ] When compiling with -Wformat, clang warns: drivers/i2c/busses/i2c-sis630.c:482:4: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat] smbus_base +

[PATCH AUTOSEL 4.19 001/192] CIFS: fix POSIX lock leak and invalid ptr deref

2019-03-27 Thread Sasha Levin
From: Aurelien Aptel [ Upstream commit bc31d0cdcfbadb6258b45db97e93b1c83822ba33 ] We have a customer reporting crashes in lock_get_status() with many "Leaked POSIX lock" messages preceeding the crash. Leaked POSIX lock on dev=0x0:0x56 ... Leaked POSIX lock on dev=0x0:0x56 ... Leaked POSIX lo

[PATCH AUTOSEL 5.0 253/262] staging: iio: adt7316: fix dac_bits assignment

2019-03-27 Thread Sasha Levin
From: Jeremy Fertic [ Upstream commit e9de475723de5bf207a5b7b88bdca863393e42c8 ] The value of dac_bits is used in adt7316_show_DAC() and adt7316_store_DAC(), and it should be either 8, 10, or 12 bits depending on the device in use. The driver currently only assigns a value to dac_bits in adt7316

[PATCH AUTOSEL 5.0 260/262] gpio: of: Restrict enable-gpio quirk to regulator-gpio

2019-03-27 Thread Sasha Levin
From: Thierry Reding [ Upstream commit 692ef26e72fcce0c1e73c41683fd3512f3719d55 ] Commit 0e7d6f940164 ("gpio: of: Apply regulator-gpio quirk only to enable-gpios") breaks the device tree ABI specified in the device tree bindings for fixed regulators (compatible "regulator-fixed"). According to t

[PATCH AUTOSEL 5.0 254/262] Input: soc_button_array - fix mapping of the 5th GPIO in a PNP0C40 device

2019-03-27 Thread Sasha Levin
From: Hans de Goede [ Upstream commit e9eb788f9442d1b5d93efdb30c3be071ce8a22b1 ] The Microsoft documenation for the PNP0C40 device aka the "Windows-compatible button array" describes the 5th GpioInt listed in the resources as: '5. Interrupt corresponding to the "Rotation Lock" button, if support

[PATCH AUTOSEL 5.0 262/262] bcache: fix potential div-zero error of writeback_rate_p_term_inverse

2019-03-27 Thread Sasha Levin
From: Coly Li [ Upstream commit 5b5fd3c94eef69dcfaa8648198e54c92e5687d6d ] Current code already uses d_strtoul_nonzero() to convert input string to an unsigned integer, to make sure writeback_rate_p_term_inverse won't be zero value. But overflow may happen when converting input string to an unsi

[PATCH AUTOSEL 5.0 259/262] appletalk: Fix compile regression

2019-03-27 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 27da0d2ef998e222a876c0cec72aa7829a626266 ] A bugfix just broke compilation of appletalk when CONFIG_SYSCTL is disabled: In file included from net/appletalk/ddp.c:65: net/appletalk/ddp.c: In function 'atalk_init': include/linux/atalk.h:164:34: error: expecte

[PATCH AUTOSEL 5.0 249/262] clk: meson: clean-up clock registration

2019-03-27 Thread Sasha Levin
From: Jerome Brunet [ Upstream commit 8d9981efbcab066d17af4d3c85c169200f6f78df ] Order, ids and size between the table of regmap clocks and the onecell data table could be different. Set regmap pointer in all the regmap clocks before starting the registration using the onecell data, to make su

[PATCH AUTOSEL 5.0 251/262] clk: rockchip: fix frac settings of GPLL clock for rk3328

2019-03-27 Thread Sasha Levin
From: Katsuhiro Suzuki [ Upstream commit a0e447b0c50240a90ab84b7126b3c06b0bab4adc ] This patch fixes settings of GPLL frequency in fractional mode for rk3328. In this mode, FOUTVCO is calcurated by following formula: FOUTVCO = FREF * FBDIV / REFDIV + ((FREF * FRAC / REFDIV) >> 24) The problem

[PATCH AUTOSEL 5.0 244/262] selinux: do not override context on context mounts

2019-03-27 Thread Sasha Levin
From: Ondrej Mosnacek [ Upstream commit 53e0c2aa9a59a48e3798ef193d573ade85aa80f5 ] Ignore all selinux_inode_notifysecctx() calls on mounts with SBLABEL_MNT flag unset. This is achived by returning -EOPNOTSUPP for this case in selinux_inode_setsecurtity() (because that function should not be call

[PATCH AUTOSEL 5.0 243/262] x86/build: Specify elf_i386 linker emulation explicitly for i386 objects

2019-03-27 Thread Sasha Levin
From: George Rimar [ Upstream commit 927185c124d62a9a4d35878d7f6d432a166b74e3 ] The kernel uses the OUTPUT_FORMAT linker script command in it's linker scripts. Most of the time, the -m option is passed to the linker with correct architecture, but sometimes (at least for x86_64) the -m option con

[PATCH AUTOSEL 5.0 240/262] pinctrl: meson: meson8b: add the eth_rxd2 and eth_rxd3 pins

2019-03-27 Thread Sasha Levin
From: Martin Blumenstingl [ Upstream commit 6daae00243e622dd3feec7965bfe421ad6dd317e ] Gigabit Ethernet requires the Ethernet TXD0..3 and RXD0..3 data lines. Add the missing eth_rxd2 and eth_rxd3 definitions so we don't have to rely on the bootloader to set them up correctly. The vendor u-boot

[PATCH AUTOSEL 5.0 242/262] drm/nouveau: Stop using drm_crtc_force_disable

2019-03-27 Thread Sasha Levin
From: Daniel Vetter [ Upstream commit 934c5b32a5e43d8de2ab4f1566f91d7c3bf8cb64 ] The correct way for legacy drivers to update properties that need to do a full modeset, is to do a full modeset. Note that we don't need to call the drm_mode_config_internal helper because we're not changing any of

[PATCH AUTOSEL 5.0 238/262] audit: hand taken context to audit_kill_trees for syscall logging

2019-03-27 Thread Sasha Levin
From: Richard Guy Briggs [ Upstream commit 9e36a5d49c3a6fc4a2e0ba2dc11b27c4a8ae6303 ] Since the context is derived from the task parameter handed to __audit_free(), hand the context to audit_kill_trees() so it can be used to associate with a syscall record. This requires adding the context para

[PATCH AUTOSEL 5.0 236/262] media: s5p-jpeg: Check for fmt_ver_flag when doing fmt enumeration

2019-03-27 Thread Sasha Levin
From: Pawe? Chmiel [ Upstream commit 49710c32cd9d6626a77c9f5f978a5f58cb536b35 ] Previously when doing format enumeration, it was returning all formats supported by driver, even if they're not supported by hw. Add missing check for fmt_ver_flag, so it'll be fixed and only those supported by hw

[PATCH AUTOSEL 5.0 231/262] dmaengine: qcom_hidma: assign channel cookie correctly

2019-03-27 Thread Sasha Levin
From: Shunyong Yang [ Upstream commit 546c0547555efca8ba8c120716c325435e29df1b ] When dma_cookie_complete() is called in hidma_process_completed(), dma_cookie_status() will return DMA_COMPLETE in hidma_tx_status(). Then, hidma_txn_is_success() will be called to use channel cookie mchan->last_suc

[PATCH AUTOSEL 5.0 235/262] media: rcar-vin: Allow independent VIN link enablement

2019-03-27 Thread Sasha Levin
From: Steve Longerbeam [ Upstream commit c5ff0edb8e2270a75935c73217fb0de1abd2d910 ] There is a block of code in rvin_group_link_notify() that prevents enabling a link to a VIN node if any entity in the media graph is in use. This prevents enabling a VIN link even if there is an in-use entity som

[PATCH AUTOSEL 5.0 232/262] dmaengine: qcom_hidma: initialize tx flags in hidma_prep_dma_*

2019-03-27 Thread Sasha Levin
From: Shunyong Yang [ Upstream commit 875aac8a46424e5b73a9ff7f40b83311b609e407 ] In async_tx_test_ack(), it uses flags in struct dma_async_tx_descriptor to check the ACK status. As hidma reuses the descriptor in a free list when hidma_prep_dma_*(memcpy/memset) is called, the flag will keep ACKed

[PATCH AUTOSEL 5.0 228/262] pinctrl: sh-pfc: r8a77995: Fix MOD_SEL bit numbering

2019-03-27 Thread Sasha Levin
From: Takeshi Kihara [ Upstream commit 5219aa33caec2f7b68eda2b7e4ab8e276f323254 ] MOD_SEL register bit numbering was different from R-Car D3 SoC and R-Car H3/M3-[WN] SoCs. MOD_SEL 1-bit H3/M3-[WN] D3 ===== = Set Value = H'0b'0 b'0 Set Value = H'1

[PATCH AUTOSEL 5.0 230/262] dmaengine: imx-dma: fix warning comparison of distinct pointer types

2019-03-27 Thread Sasha Levin
From: Anders Roxell [ Upstream commit 9227ab5643cb8350449502dd9e3168a873ab0e3b ] The warning got introduced by commit 930507c18304 ("arm64: add basic Kconfig symbols for i.MX8"). Since it got enabled for arm64. The warning haven't been seen before since size_t was 'unsigned int' when built on ar

[PATCH AUTOSEL 5.0 226/262] pinctrl: meson: fix G12A ao pull registers base address

2019-03-27 Thread Sasha Levin
From: Xingyu Chen [ Upstream commit e66dd48e8b0dee104d16417d30361074b08baca8 ] Since Meson G12A SoC, Introduce new ao registers AO_RTI_PULL_UP_EN_REG and AO_GPIO_O. These bits of controlling output level are remapped to the new register AO_GPIO_O, and the AO_GPIO_O_EN_N support only controlling

Re: [PATCH v3 4/4] Input: add Apple SPI keyboard and trackpad driver.

2019-03-27 Thread Steven Rostedt
On Wed, 27 Mar 2019 19:45:26 +0100 Greg Kroah-Hartman wrote: > > > +// SPDX-License-Identifier: GPL-2.0 > > > > According to last changes this should be GPL-2.0-only > > What "last changes"? "GPL-2.0" is a totally valid SPDX identifier for > the kernel. Don't buy into the "-only" prefix c

Re: Linux 5.1-rc2

2019-03-27 Thread Kees Cook
On Mon, Mar 25, 2019 at 2:06 PM Tetsuo Handa wrote: > > On 2019/03/26 4:08, James Morris wrote: > > On Sun, 24 Mar 2019, Randy Dunlap wrote: > > > >> On 3/24/19 2:26 PM, Linus Torvalds wrote: > >>> Well, we're a week away from the merge window close, and here's rc2. > >>> Things look fairly normal

[PATCH AUTOSEL 5.0 218/262] selftests/bpf: suppress readelf stderr when probing for BTF support

2019-03-27 Thread Sasha Levin
From: Stanislav Fomichev [ Upstream commit 2f0921262ba943fe9d9f59037a033927d8c4789b ] Before: $ make -s -C tools/testing/selftests/bpf readelf: Error: Missing knowledge of 32-bit reloc types used in DWARF sections of machine number 247 readelf: Warning: unable to apply unsupported reloc type 10

[PATCH AUTOSEL 5.0 214/262] perf script python: Add trace_context extension module to sys.modules

2019-03-27 Thread Sasha Levin
From: Tony Jones [ Upstream commit cc437642255224e4140fed1f3e3156fc8ad91903 ] In Python3, the result of PyModule_Create (called from scripts/python/Perf-Trace-Util/Context.c) is not automatically added to sys.modules. See: https://bugs.python.org/issue4592 Below is the observed behavior withou

[PATCH AUTOSEL 5.0 216/262] hwrng: virtio - Avoid repeated init of completion

2019-03-27 Thread Sasha Levin
From: David Tolnay [ Upstream commit aef027db48da56b6f25d0e54c07c8401ada6ce21 ] The virtio-rng driver uses a completion called have_data to wait for a virtio read to be fulfilled by the hypervisor. The completion is reset before placing a buffer on the virtio queue and completed by the virtio ca

[PATCH AUTOSEL 5.0 211/262] platform/x86: intel-hid: Missing power button release on some Dell models

2019-03-27 Thread Sasha Levin
From: Jérôme de Bretagne [ Upstream commit e97a34563d18606ee5db93e495382a967f999cd4 ] Power button suspend for some Dell models was added in: commit 821b85366284 ("platform/x86: intel-hid: Power button suspend on Dell Latitude 7275") by checking against the power button press notification (0x

[PATCH AUTOSEL 5.0 208/262] ALSA: dice: add support for Solid State Logic Duende Classic/Mini

2019-03-27 Thread Sasha Levin
From: Takashi Sakamoto [ Upstream commit b2e9e1c8810ee05c95f4d55800b8afae70ab01b4 ] Duende Classic was produced by Solid State Logic in 2006, as a first model of Duende DSP series. The following model, Duende Mini was produced in 2008. They are designed to receive isochronous packets for PCM fra

[PATCH AUTOSEL 5.0 203/262] cgroup/pids: turn cgroup_subsys->free() into cgroup_subsys->release() to fix the accounting

2019-03-27 Thread Sasha Levin
From: Oleg Nesterov [ Upstream commit 51bee5abeab2058ea5813c5615d6197a23dbf041 ] The only user of cgroup_subsys->free() callback is pids_cgrp_subsys which needs pids_free() to uncharge the pid. However, ->free() is called from __put_task_struct()->cgroup_free() and this is too late. Even the tr

[PATCH AUTOSEL 5.0 190/262] ARM: dts: lpc32xx: Remove leading 0x and 0s from bindings notation

2019-03-27 Thread Sasha Levin
From: Mathieu Malaterre [ Upstream commit 3e3380d0675d5e20b0af067d60cb947a4348bf9b ] Improve the DTS files by removing all the leading "0x" and zeros to fix the following dtc warnings: Warning (unit_address_format): Node /XXX unit name should not have leading "0x" and Warning (unit_address_fo

[PATCH AUTOSEL 5.0 187/262] sched/core: Use READ_ONCE()/WRITE_ONCE() in move_queued_task()/task_rq_lock()

2019-03-27 Thread Sasha Levin
From: Andrea Parri [ Upstream commit c546951d9c9300065bad253ecdf1ac59ce9d06c8 ] move_queued_task() synchronizes with task_rq_lock() as follows: move_queued_task() task_rq_lock() [S] ->on_rq = MIGRATING [L] rq = task_rq() WMB (__set_task_cpu())

[PATCH AUTOSEL 5.0 180/262] i2c: of: Try to find an I2C adapter matching the parent

2019-03-27 Thread Sasha Levin
From: Thierry Reding [ Upstream commit e814e688413aabd7b0d75e2a8ed1caa472951dec ] If an I2C adapter doesn't match the provided device tree node, also try matching the parent's device tree node. This allows finding an adapter based on the device node of the parent device that was used to register

[PATCH AUTOSEL 5.0 186/262] efi/memattr: Don't bail on zero VA if it equals the region's PA

2019-03-27 Thread Sasha Levin
From: Ard Biesheuvel [ Upstream commit 5de0fef0230f3c8d75cff450a71740a7bf2db866 ] The EFI memory attributes code cross-references the EFI memory map with the more granular EFI memory attributes table to ensure that they are in sync before applying the strict permissions to the regions it describ

Re: [PATCH v4 2/2] x86/MCE/AMD: Don't report L1 BTB MCA errors on some Family 17h models

2019-03-27 Thread Thomas Gleixner
On Mon, 25 Mar 2019, Ghannam, Yazen wrote: > From: Yazen Ghannam > > AMD Family 17h Models 10h-2Fh may report a high number of L1 BTB MCA > errors under certain conditions. The errors are benign and can safely be > ignored. However, the high error rate may cause the MCA threshold > counter to

[PATCH AUTOSEL 5.0 170/262] drm: rcar-du: add missing of_node_put

2019-03-27 Thread Sasha Levin
From: Julia Lawall [ Upstream commit 4c6d8fc20b09f9684743afd72e4dbc3f15524479 ] Add an of_node_put when the result of of_graph_get_remote_port_parent is not available. Add a second of_node_put if no encoder is selected (encoder remains NULL). The semantic match that finds the first problem is

[PATCH AUTOSEL 5.0 172/262] bpf: test_maps: fix possible out of bound access warning

2019-03-27 Thread Sasha Levin
From: Breno Leitao [ Upstream commit dd9cef43c222df7c0d76d34451808e789952379d ] When compiling test_maps selftest with GCC-8, it warns that an array might be indexed with a negative value, which could cause a negative out of bound access, depending on parameters of the function. This is the GCC-

[PATCH AUTOSEL 5.0 169/262] cdrom: Fix race condition in cdrom_sysctl_register

2019-03-27 Thread Sasha Levin
From: Guenter Roeck [ Upstream commit f25191bb322dec8fa2979ecb8235643aa42470e1 ] The following traceback is sometimes seen when booting an image in qemu: [ 54.608293] cdrom: Uniform CD-ROM driver Revision: 3.20 [ 54.611085] Fusion MPT base driver 3.04.20 [ 54.611877] Copyright (c) 1999-20

Re: [PATCH] kbuild: do not overwrite .gitignore in output directory

2019-03-27 Thread Andre Przywara
On Tue, 26 Mar 2019 13:26:58 +0900 Masahiro Yamada wrote: Masahiro, > Commit 3a51ff344204 ("kbuild: gitignore output directory") seemed to > bother people who version-control output directories. Thanks a lot for the patch, that works for me. > Andre Przywara says: > "Unfortunately this breaks

[PATCH AUTOSEL 5.0 177/262] e1000e: fix cyclic resets at link up with active tx

2019-03-27 Thread Sasha Levin
From: Konstantin Khlebnikov [ Upstream commit 0f9e980bf5ee1a97e2e401c846b2af989eb21c61 ] I'm seeing series of e1000e resets (sometimes endless) at system boot if something generates tx traffic at this time. In my case this is netconsole who sends message "e1000e :02:00.0: Some CPU C-states h

[PATCH AUTOSEL 5.0 167/262] net: phy: consider latched link-down status in polling mode

2019-03-27 Thread Sasha Levin
From: Heiner Kallweit [ Upstream commit 93c0970493c71f264e6c3c7caf1ff24a9e1de786 ] The link status value latches link-down events. To get the current status we read the register twice in genphy_update_link(). There's a potential risk that we miss a link-down event in polling mode. This may cause

[PATCH AUTOSEL 5.0 166/262] iw_cxgb4: fix srqidx leak during connection abort

2019-03-27 Thread Sasha Levin
From: Raju Rangoju [ Upstream commit f368ff188ae4b3ef6f740a15999ea0373261b619 ] When an application aborts the connection by moving QP from RTS to ERROR, then iw_cxgb4's modify_rc_qp() RTS->ERROR logic sets the *srqidxp to 0 via t4_set_wq_in_error(&qhp->wq, 0), and aborts the connection by calli

[PATCH RFC] vdso: introduce timens_static_branch

2019-03-27 Thread Andrei Vagin
As it has been discussed on timens RFC, adding a new conditional branch `if (inside_time_ns)` on VDSO for all processes is undesirable. Addressing those problems, there are two versions of VDSO's .so: for host tasks (without any penalty) and for processes inside of time namespace with clk_to_ns()

[PATCH AUTOSEL 5.0 163/262] bcache: improve sysfs_strtoul_clamp()

2019-03-27 Thread Sasha Levin
From: Coly Li [ Upstream commit 596b5a5dd1bc2fa019fdaaae522ef331deef927f ] Currently sysfs_strtoul_clamp() is defined as, 82 #define sysfs_strtoul_clamp(file, var, min, max) \ 83 do { \ 84 if (attr == &sys

[PATCH AUTOSEL 5.0 159/262] sched/topology: Fix percpu data types in struct sd_data & struct s_data

2019-03-27 Thread Sasha Levin
From: Luc Van Oostenryck [ Upstream commit 99687cdbb3f6c8e32bcc7f37496e811f30460e48 ] The percpu members of struct sd_data and s_data are declared as: struct ... ** __percpu member; So their type is: __percpu pointer to pointer to struct ... But looking at how they're used, t

[PATCH AUTOSEL 5.0 160/262] bcache: fix input overflow to cache set sysfs file io_error_halflife

2019-03-27 Thread Sasha Levin
From: Coly Li [ Upstream commit a91fbda49f746119828f7e8ad0f0aa2ab0578f65 ] Cache set sysfs entry io_error_halflife is used to set c->error_decay. c->error_decay is in type unsigned int, and it is converted by strtoul_or_return(), therefore overflow to c->error_decay is possible for a large input

[PATCH AUTOSEL 5.0 156/262] ALSA: PCM: check if ops are defined before suspending PCM

2019-03-27 Thread Sasha Levin
From: Ranjani Sridharan [ Upstream commit d9c0b2afe820fa3b3f8258a659daee2cc71ca3ef ] BE dai links only have internal PCM's and their substream ops may not be set. Suspending these PCM's will result in their ops->trigger() being invoked and cause a kernel oops. So skip suspending PCM's if their

[PATCH AUTOSEL 5.0 155/262] ARM: dts: meson8b: fix the Ethernet data line signals in eth_rgmii_pins

2019-03-27 Thread Sasha Levin
From: Martin Blumenstingl [ Upstream commit 29f0023d01f063feacfc404f0446905aee4f82ee ] According to the Odroid-C1+ schematics the Ethernet TXD1 signal is routed to GPIOH_5 and the TXD0 signal is routed to GPIOH_6. The public S805 datasheet shows that TXD0 can be routed to DIF_2_P and TXD1 can be

[PATCH AUTOSEL 5.0 146/262] ACPI / video: Refactor and fix dmi_is_desktop()

2019-03-27 Thread Sasha Levin
From: Hans de Goede [ Upstream commit cecf3e3e0803462335e25d083345682518097334 ] This commit refactors the chassis-type detection introduced by commit 53fa1f6e8a59 ("ACPI / video: Only default only_lcd to true on Win8-ready _desktops_") (where desktop means anything without a builtin screen). T

[PATCH AUTOSEL 5.0 151/262] kprobes: Prohibit probing on RCU debug routine

2019-03-27 Thread Sasha Levin
From: Masami Hiramatsu [ Upstream commit a39f15b9644fac3f950f522c39e667c3af25c588 ] Since kprobe itself depends on RCU, probing on RCU debug routine can cause recursive breakpoint bugs. Prohibit probing on RCU debug routines. int3 ->do_int3() ->ist_enter() ->RCU_LOCKDEP_WARN()

[PATCH AUTOSEL 5.0 147/262] drm: allow render capable master with DRM_AUTH ioctls

2019-03-27 Thread Sasha Levin
From: Emil Velikov [ Upstream commit 8059add0478e29cb641936011a8fcc9ce9fd80be ] There are cases (in mesa and applications) where one would open the primary node without properly authenticating the client. Sometimes we don't check if the authentication succeeds, but there's also cases we simply

[PATCH AUTOSEL 5.0 148/262] selftests: ir: fix warning: "%s" directive output may be truncated ’ directive output may be truncated

2019-03-27 Thread Sasha Levin
From: Shuah Khan [ Upstream commit ed675ed9da6d951322efd72d739d6b5ce1c18f02 ] Fix the following warning by sizing the buffer to max. of sysfs path max. size + d_name max. size. gcc -Wall -O2 -I../../../include/uapi ir_loopback.c -o ../tools/testing/selftests/ir/ir_loopback ir_loopback.c: In f

[PATCH RFC] x86/asm: Introduce static_retcall(s)

2019-03-27 Thread Andrei Vagin
From: Dmitry Safonov Provide framework to overwrite tail call in a function with return. XXX: split vdso/generic part Signed-off-by: Dmitry Safonov Signed-off-by: Andrei Vagin --- arch/x86/entry/vdso/vclock_gettime.c | 19 ++ arch/x86/entry/vdso/vdso-layout.lds.S | 1 + arch/x86/en

[PATCH AUTOSEL 5.0 141/262] perf beauty waitid options: Fix up prefix showing logic

2019-03-27 Thread Sasha Levin
From: Arnaldo Carvalho de Melo [ Upstream commit 1da7e0022784b0e05b49bf73521fa2cc4633af85 ] When introducing the possibility for selecting if the common prefix to options such as the waitid ones, i.e. all 'waitid' options start with 'W', so, to make it make it more compact if configured to suppr

Re: [PATCH v3 4/4] Input: add Apple SPI keyboard and trackpad driver.

2019-03-27 Thread Andy Shevchenko
On Wed, Mar 27, 2019 at 07:45:26PM +0100, Greg Kroah-Hartman wrote: > On Wed, Mar 27, 2019 at 11:35:30AM +0200, Andy Shevchenko wrote: > > On Tue, Mar 26, 2019 at 06:48:07PM -0700, Ronald Tschalär wrote: > > > The keyboard and trackpad on recent MacBook's (since 8,1) and > > > MacBookPro's (13,* an

[PATCH AUTOSEL 5.0 134/262] efi: Fix build error due to enum collision between efi.h and ima.h

2019-03-27 Thread Sasha Levin
From: Anders Roxell [ Upstream commit 5c418dc789a3898717ebf2caa5716ba91a7150b2 ] The following commit: a893ea15d764 ("tpm: move tpm_chip definition to include/linux/tpm.h") introduced a build error when both IMA and EFI are enabled: In file included from ../security/integrity/ima/ima_fs

[PATCH AUTOSEL 5.0 162/262] bcache: fix potential div-zero error of writeback_rate_i_term_inverse

2019-03-27 Thread Sasha Levin
From: Coly Li [ Upstream commit c3b75a2199cdbfc1c335155fe143d842604b1baa ] dc->writeback_rate_i_term_inverse can be set via sysfs interface. It is in type unsigned int, and convert from input string by d_strtoul(). The problem is d_strtoul() does not check valid range of the input, if 4294967296

[PATCH AUTOSEL 5.0 140/262] tools build: Add test-reallocarray.c to test-all.c to fix the build

2019-03-27 Thread Sasha Levin
From: Arnaldo Carvalho de Melo [ Upstream commit a96c03e8cdcf123384319f312d0a08a7a760bb35 ] When a test is in the FEATURE_TESTS_BASIC list in tools/build/Makefile.feature must be added to tools/build/feature/test-all.c, because the successfull compilation and linking of that test-all.bin file me

[PATCH AUTOSEL 5.0 131/262] vfs: fix preadv64v2 and pwritev64v2 compat syscalls with offset == -1

2019-03-27 Thread Sasha Levin
From: Aurelien Jarno [ Upstream commit cc4b1242d7e3b42eed73881fc749944146493e4f ] The preadv2 and pwritev2 syscalls are supposed to emulate the readv and writev syscalls when offset == -1. Therefore the compat code should check for offset before calling do_compat_preadv64 and do_compat_pwritev64

[PATCH AUTOSEL 5.0 135/262] drm/sched: Fix entities with 0 rqs.

2019-03-27 Thread Sasha Levin
From: Bas Nieuwenhuizen [ Upstream commit 1decbf6bb0b4dc56c9da6c5e57b994ebfc2be3aa ] Some blocks in amdgpu can have 0 rqs. Job creation already fails with -ENOENT when entity->rq is NULL, so jobs cannot be pushed. Without a rq there is no scheduler to pop jobs, and rq selection already does the

[PATCH AUTOSEL 5.0 129/262] gpio: of: Apply regulator-gpio quirk only to enable-gpios

2019-03-27 Thread Sasha Levin
From: Marek Vasut [ Upstream commit 0e7d6f94016407fd7e1ae472e254d64d4454e9c8 ] Since commit d6cd33ad7102 ("regulator: gpio: Convert to use descriptors") the GPIO regulator had inverted the polarity of the control GPIO. This problem manifested itself on systems with DT containing the following de

[PATCH AUTOSEL 5.0 132/262] HID: intel-ish-hid: avoid binding wrong ishtp_cl_device

2019-03-27 Thread Sasha Levin
From: Hong Liu [ Upstream commit 0d28f49412405d87d3aae83da255070a46e67627 ] When performing a warm reset in ishtp bus driver, the ishtp_cl_device will not be removed, its fw_client still points to the already freed ishtp_device.fw_clients array. Later after driver finishing ishtp client enumera

[PATCH AUTOSEL 5.0 137/262] jbd2: fix race when writing superblock

2019-03-27 Thread Sasha Levin
From: Theodore Ts'o [ Upstream commit 538bcaa6261b77e71d37f5596c33127c1a3ec3f7 ] The jbd2 superblock is lockless now, so there is probably a race condition between writing it so disk and modifing contents of it, which may lead to checksum error. The following race is the one case that we have ca

[PATCH AUTOSEL 5.0 138/262] leds: lp55xx: fix null deref on firmware load failure

2019-03-27 Thread Sasha Levin
From: Michal Kazior [ Upstream commit 5ddb0869bfc1bca6cfc592c74c64a026f936638c ] I've stumbled upon a kernel crash and the logs pointed me towards the lp5562 driver: > <4>[306013.841294] lp5562 0-0030: Direct firmware load for lp5562 failed with > error -2 > <4>[306013.894990] lp5562 0-0030: F

[PATCH AUTOSEL 5.0 133/262] cgroup, rstat: Don't flush subtree root unless necessary

2019-03-27 Thread Sasha Levin
From: Tejun Heo [ Upstream commit b4ff1b44bcd384d22fcbac6ebaf9cc0d33debe50 ] cgroup_rstat_cpu_pop_updated() is used to traverse the updated cgroups on flush. While it was only visiting updated ones in the subtree, it was visiting @root unconditionally. We can easily check whether @root is upda

[PATCH AUTOSEL 5.0 128/262] Bluetooth: hci_ldisc: Initialize hci_dev before open()

2019-03-27 Thread Sasha Levin
From: Jeremy Cline [ Upstream commit 32a7b4cbe93b0a0ef7e63d31ca69ce54736c4412 ] The hci_dev struct hdev is referenced in work queues and timers started by open() in some protocols. This creates a race between the initialization function and the work or timer which can result hdev being dereferen

[PATCH AUTOSEL 5.0 126/262] media: rockchip/vpu: Correct return type for mem2mem buffer helpers

2019-03-27 Thread Sasha Levin
From: Ezequiel Garcia [ Upstream commit 29701c3612fa025d5e8dc64c7a4ae8dc4763912e ] Fix the assigned type of mem2mem buffer handling API. Namely, these functions: v4l2_m2m_next_buf v4l2_m2m_last_buf v4l2_m2m_buf_remove v4l2_m2m_next_src_buf v4l2_m2m_next_dst_buf v4l2_m2m_last_src_buf v4l2

[PATCH AUTOSEL 5.0 107/262] ASoC: qcom: Fix of-node refcount unbalance in apq8016_sbc_parse_of()

2019-03-27 Thread Sasha Levin
From: Takashi Iwai [ Upstream commit 8d1667200850f8753c0265fa4bd25c9a6e5f94ce ] The apq8016 driver leaves the of-node refcount at aborting from the loop of for_each_child_of_node() in the error path. Not only the iterator node of for_each_child_of_node(), the children nodes referred from it for

[PATCH AUTOSEL 5.0 114/262] drm/amd/display: Clear stream->mode_changed after commit

2019-03-27 Thread Sasha Levin
From: Nicholas Kazlauskas [ Upstream commit d8d2f174bcc2c26c3485c70e0c6fe22b27bce739 ] [Why] The stream->mode_changed flag can persist in the following sequence of atomic commits: Commit 1: Enable CRTC0 (mode_changed = true), Enable CRTC1 (mode_changed = true) Commit 2: Disable CRTC1 (mode_cha

[PATCH AUTOSEL 5.0 111/262] s390/ism: ignore some errors during deregistration

2019-03-27 Thread Sasha Levin
From: Sebastian Ott [ Upstream commit 0ff06c44efeede4acd068847d3bf8cf894b6c664 ] Prior to dma unmap/free operations the ism driver tries to ensure that the memory is no longer accessed by the HW. When errors during deregistration of memory regions from the HW occur the ism driver will not unmap/

[PATCH AUTOSEL 5.0 115/262] perf test: Fix failure of 'evsel-tp-sched' test on s390

2019-03-27 Thread Sasha Levin
From: Thomas Richter [ Upstream commit 03d309711d687460d1345de8a0363f45b1c8cd11 ] Commit 489338a717a0 ("perf tests evsel-tp-sched: Fix bitwise operator") causes test case 14 "Parse sched tracepoints fields" to fail on s390. This test succeeds on x86. In fact this test now fails on all architec

[PATCH AUTOSEL 5.0 113/262] scsi: fcoe: make use of fip_mode enum complete

2019-03-27 Thread Sasha Levin
From: Sedat Dilek [ Upstream commit 8beb90aaf334a6efa3e924339926b5f93a234dbb ] commit 1917d42d14b7 ("fcoe: use enum for fip_mode") introduces a separate enum for the fip_mode that shall be used during initialisation handling until it is passed to fcoe_ctrl_link_up to set the initial fip_state.

[PATCH AUTOSEL 5.0 109/262] cpufreq: acpi-cpufreq: Report if CPU doesn't support boost technologies

2019-03-27 Thread Sasha Levin
From: Erwan Velu [ Upstream commit 1222d527f314c86a3b59a522115d62facc5a7965 ] There is some rare cases where CPB (and possibly IDA) are missing on processors. This is the case fixed by commit f7f3dc00f612 ("x86/cpu/AMD: Fix erratum 1076 (CPB bit)") and following. In such context, the boost sta

[PATCH AUTOSEL 5.0 102/262] i2c: designware: Do not allow i2c_dw_xfer() calls while suspended

2019-03-27 Thread Sasha Levin
From: Hans de Goede [ Upstream commit 2751541555382dfa7661bcfaac3ee0fac49f505d ] On most Intel Bay- and Cherry-Trail systems the PMIC is connected over I2C and the PMIC is accessed through various means by the _PS0 and _PS3 ACPI methods (power on / off methods) of various devices. This leads to

[PATCH AUTOSEL 5.0 103/262] IB/mlx4: Increase the timeout for CM cache

2019-03-27 Thread Sasha Levin
From: Håkon Bugge [ Upstream commit 2612d723aadcf8281f9bf8305657129bd9f3cd57 ] Using CX-3 virtual functions, either from a bare-metal machine or pass-through from a VM, MAD packets are proxied through the PF driver. Since the VF drivers have separate name spaces for MAD Transaction Ids (TIDs),

[PATCH AUTOSEL 5.0 100/262] platform/mellanox: mlxreg-hotplug: Fix KASAN warning

2019-03-27 Thread Sasha Levin
From: Vadim Pasternak [ Upstream commit e4c275f77624961b56cce397814d9d770a45ac59 ] Fix the following KASAN warning produced when booting a 64-bit kernel: [ 13.334750] BUG: KASAN: stack-out-of-bounds in find_first_bit+0x19/0x70 [ 13.342166] Read of size 8 at addr 880235067178 by task kwor

[PATCH AUTOSEL 5.0 099/262] platform/x86: ideapad-laptop: Fix no_hw_rfkill_list for Lenovo RESCUER R720-15IKBN

2019-03-27 Thread Sasha Levin
From: Yang Fan [ Upstream commit 4d9b2864a415fec39150bc13efc730c7eb88711e ] Commit ae7c8cba3221 ("platform/x86: ideapad-laptop: add lenovo RESCUER R720-15IKBN to no_hw_rfkill_list") added DMI_MATCH(DMI_BOARD_NAME, "80WW") for Lenovo RESCUER R720-15IKBN. But DMI_BOARD_NAME does not match 80W

[PATCH AUTOSEL 5.0 098/262] i2c: Allow recovery of the initial IRQ by an I2C client device.

2019-03-27 Thread Sasha Levin
From: Jim Broadus [ Upstream commit 93b6604c5a669d84e45fe5129294875bf82eb1ff ] A previous change allowed I2C client devices to discover new IRQs upon reprobe by clearing the IRQ in i2c_device_remove. However, if an IRQ was assigned in i2c_new_device, that information is lost. For example, the t

[PATCH AUTOSEL 5.0 092/262] mmc: omap: fix the maximum timeout setting

2019-03-27 Thread Sasha Levin
From: Aaro Koskinen [ Upstream commit a6327b5e57fdc679c842588c3be046c0b39cc127 ] When running OMAP1 kernel on QEMU, MMC access is annoyingly noisy: MMC: CTO of 0xff and 0xfe cannot be used! MMC: CTO of 0xff and 0xfe cannot be used! MMC: CTO of 0xff and 0xfe cannot be use

[PATCH AUTOSEL 5.0 089/262] perf script: Handle missing fields with -F +..

2019-03-27 Thread Sasha Levin
From: Andi Kleen [ Upstream commit 4b6ac811bce46c83811b83cdf87b41251596b9fc ] When using -F + syntax to add a field the existing defaults are currently all marked user_set. This can cause errors when some field is missing in the perf.data This patch tracks the actually user set fields separatel

[PATCH AUTOSEL 5.0 084/262] ARM: 8845/1: use unified assembler in c files

2019-03-27 Thread Sasha Levin
From: Stefan Agner [ Upstream commit b7e8c9397cd4efe6567d2728f091f1b728025533 ] Use unified assembler syntax (UAL) in inline assembler. Divided syntax is considered deprecated. This will also allow to build the kernel using LLVM's integrated assembler. When compiling non-Thumb2 GCC always emits

[PATCH AUTOSEL 5.0 081/262] coresight: etm4x: Add support to enable ETMv4.2

2019-03-27 Thread Sasha Levin
From: Sai Prakash Ranjan [ Upstream commit 5666dfd1d8a45a167f0d8b4ef47ea7f780b1f24a ] SDM845 has ETMv4.2 and can use the existing etm4x driver. But the current etm driver checks only for ETMv4.0 and errors out for other etm4x versions. This patch adds this missing support to enable SoC's with ET

[PATCH AUTOSEL 5.0 074/262] kbuild: invoke syncconfig if include/config/auto.conf.cmd is missing

2019-03-27 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit 9390dff66a52d1a60c6e517d8fa6cdbdffc83cb1 ] If include/config/auto.conf.cmd is lost for some reasons, it is not self-healing, so the top Makefile misses to run syncconfig. Move include/config/auto.conf.cmd to the target side. I used a pattern rule instead

[PATCH AUTOSEL 5.0 072/262] powerpc/powernv/ioda: Fix locked_vm counting for memory used by IOMMU tables

2019-03-27 Thread Sasha Levin
From: Alexey Kardashevskiy [ Upstream commit 11f5acce2fa43b015a8120fa7620fa4efd0a2952 ] We store 2 multilevel tables in iommu_table - one for the hardware and one with the corresponding userspace addresses. Before allocating the tables, the iommu_table_group_ops::get_table_size() hook returns th

Re: [PATCH v4 2/2] x86/MCE/AMD: Don't report L1 BTB MCA errors on some Family 17h models

2019-03-27 Thread Borislav Petkov
On Wed, Mar 27, 2019 at 08:19:57PM +0100, Thomas Gleixner wrote: > > Cc: # 5.0.x: c95b323dcd35: x86/MCE/AMD: Turn off > > MC4_MISC thresholding on all family 0x15 models > > What is this supposed to tell us? That's stable speak from Documentation/process/stable-kernel-rules.rst for patch prereq

[PATCH AUTOSEL 5.0 063/262] wil6210: check null pointer in _wil_cfg80211_merge_extra_ies

2019-03-27 Thread Sasha Levin
From: Alexei Avshalom Lazar [ Upstream commit de77a53c2d1e8fb3621e63e8e1f0f0c9a1a99ff7 ] ies1 or ies2 might be null when code inside _wil_cfg80211_merge_extra_ies access them. Add explicit check for null and make sure ies1/ies2 are not accessed in such a case. spos might be null and be accessed

[PATCH AUTOSEL 5.0 059/262] fs: fix guard_bio_eod to check for real EOD errors

2019-03-27 Thread Sasha Levin
From: Carlos Maiolino [ Upstream commit dce30ca9e3b676fb288c33c1f4725a0621361185 ] guard_bio_eod() can truncate a segment in bio to allow it to do IO on odd last sectors of a device. It already checks if the IO starts past EOD, but it does not consider the possibility of an IO request starting

[PATCH AUTOSEL 5.0 054/262] PCI: mediatek: Fix memory mapped IO range size computation

2019-03-27 Thread Sasha Levin
From: Honghui Zhang [ Upstream commit c61df57343bf05743f8abbb31eec9a6f05820dd1 ] Mediatek's HW assigns a MMIO address range (typically starts from 0x2000 to 0x2fff for both mt2712 and mt7622) for PCI usage. This MMIO address space represents the address space that can be allocated to PC

[PATCH AUTOSEL 5.0 057/262] jbd2: fix invalid descriptor block checksum

2019-03-27 Thread Sasha Levin
From: luojiajun [ Upstream commit 6e876c3dd205d30b0db6850e97a03d75457df007 ] In jbd2_journal_commit_transaction(), if we are in abort mode, we may flush the buffer without setting descriptor block checksum by goto start_journal_io. Then fs is mounted, jbd2_descriptor_block_csum_verify() failed.

<    5   6   7   8   9   10   11   12   13   >