Re: [PATCH v3] thunderbolt: Fix to check return value of ida_simple_get

2019-03-22 Thread Mika Westerberg
On Wed, Mar 20, 2019 at 11:34:09AM -0500, Aditya Pakki wrote: > In enumerate_services, ida_simple_get on failure can return an error and > leaks memory. The patch ensures that the dev_set_name is set on non > failure cases, and releases memory during failure. > > Signed-off-by: Aditya Pakki Appl

[GIT PULL] ACPI fix for v5.1-rc2

2019-03-22 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ acpi-5.1-rc2 with top-most commit 54e3aca84e571559915998aa6cc05e5ac37c043b ACPI / utils: Drop reference in test for device presence on top of commit 9e98c678c2d6ae3a17cb2de55d17f69dddaa231

[GIT PULL] Device properties framework fix for v5.1-rc2

2019-03-22 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ devprop-5.1-rc2 with top-most commit 0e3edd94448001a33ed7f8af2179cd4a280348a2 drivers: base: swnode: Make two functions static on top of commit 9e98c678c2d6ae3a17cb2de55d17f69dddaa231b L

Re: [PATCH v5 10/19] mm: pagewalk: Add p4d_entry() and pgd_entry()

2019-03-22 Thread Mike Rapoport
On Fri, Mar 22, 2019 at 10:11:59AM +, Steven Price wrote: > On 21/03/2019 21:15, Mike Rapoport wrote: > > On Thu, Mar 21, 2019 at 02:19:44PM +, Steven Price wrote: > >> pgd_entry() and pud_entry() were removed by commit 0b1fbfe50006c410 > >> ("mm/pagewalk: remove pgd_entry() and pud_entry()

Re: [PATCH v2 05/15] drm/bridge: tc358767: Drop custom tc_write()/tc_read() accessors

2019-03-22 Thread Tomi Valkeinen
On 22/03/2019 05:28, Andrey Smirnov wrote: > A very unfortunate aspect of tc_write()/tc_read() macro helpers is > that they capture quite a bit of context around them and thus require > the caller to have magic variables 'ret' and 'tc' as well as label > 'err'. That makes a number of code paths rat

Re: [PATCH] Staging: comedi: ni_mio_common.c: Added blank line after declarations

2019-03-22 Thread Ian Abbott
On 21/03/2019 19:18, Arash Fotouhi wrote: Added blank line after declarations. Signed-off-by: Arash Fotouhi --- drivers/staging/comedi/drivers/ni_mio_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/comedi/drivers/ni_mio_common.c b/drivers/staging/comedi/driver

Re: [PATCH 2/7] drm/vc4: Use drm_print_regset32() for our debug register dumping.

2019-03-22 Thread Paul Kocialkowski
Hi, Le mercredi 20 février 2019 à 13:03 -0800, Eric Anholt a écrit : > This removes a bunch of duplicated boilerplate for the debugfs vs > runtime printk debug dumping. This is: Reviewed-by: Paul Kocialkowski Cheers, Paul > Signed-off-by: Eric Anholt > --- > drivers/gpu/drm/vc4/vc4_crtc.c

Re:

2019-03-22 Thread Maxim Levitsky
On Fri, 2019-03-22 at 07:54 +, Felipe Franciosi wrote: > > On Mar 21, 2019, at 5:04 PM, Maxim Levitsky wrote: > > > > On Thu, 2019-03-21 at 16:41 +, Felipe Franciosi wrote: > > > > On Mar 21, 2019, at 4:21 PM, Keith Busch wrote: > > > > > > > > On Thu, Mar 21, 2019 at 04:12:39PM +,

Re: WARNING: syz-executor still has locks held!

2019-03-22 Thread Pavel Machek
Hi! > > > > as removing the cgred is way way too complicated. > > > > > > We need to do this anyway, this leads to other more serious problems... > > > > Yes but this is far away and it doesn't really seem like a stable tree > > material > > strace -f can hang ;) so this is the stable material.

Мотивиран персонал

2019-03-22 Thread Radoslav Dobrev
Здравейте! Ваучерите за храна се нареждат сред любимите социални придобивки на работещите хора и сред най-предпочитаните начини за стимулиране от работодателите. Те подобряват ефективността и производителността на Вашите служители. Благодарение на ваучерите за храна реализирате спестявания – ст

Re: WARNING: syz-executor still has locks held!

2019-03-22 Thread Michal Hocko
On Thu 21-03-19 18:28:33, Oleg Nesterov wrote: > On 03/20, Michal Hocko wrote: > > > > So we need > > freezable_schedule_unsafe unsafe here to workaround the original problem > > and do not trigger the warning. > > Yes, but note the comment above freezable_schedule_unsafe() ;) > > that is why I d

Re: [PATCH v5 10/19] mm: pagewalk: Add p4d_entry() and pgd_entry()

2019-03-22 Thread Steven Price
On 22/03/2019 10:29, Mike Rapoport wrote: > On Fri, Mar 22, 2019 at 10:11:59AM +, Steven Price wrote: >> On 21/03/2019 21:15, Mike Rapoport wrote: >>> On Thu, Mar 21, 2019 at 02:19:44PM +, Steven Price wrote: pgd_entry() and pud_entry() were removed by commit 0b1fbfe50006c410 ("mm

Re: Re: [PATCH] pinctrl: intel: Implements gpio free function

2019-03-22 Thread Mika Westerberg
On Fri, Mar 22, 2019 at 11:14:14AM +0800, zhuchangc...@cvte.com wrote: >static int intel_gpio_set_direction(struct pinctrl_dev *pctldev, > struct pinctrl_gpio_range *range, > unsigned pin, bool input) >{ >struct intel_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); >v

RE: [PATCH] ARM: dts: imx6qdl-sabresd: change phy-mode to use rgmii-id

2019-03-22 Thread Steve Twiss
Here are my thoughts. On 22 March 2019 10:21, Michal Vokáč wrote: > Subject: Re: [PATCH] ARM: dts: imx6qdl-sabresd: change phy-mode to use > rgmii-id > > On 22. 03. 19 3:24, Fabio Estevam wrote: > > On Thu, Mar 21, 2019 at 11:15 PM Shawn Guo wrote: > > > >>> Unfortunately, just by looking at

[PATCH] tpm: turn on TPM on suspend for TPM 1.x

2019-03-22 Thread Jarkko Sakkinen
tpm_chip_start/stop() should be also called for TPM 1.x devices on suspend. Add that functionality back. Do not lock the chip because it is unnecessary as there are no multiple threads using it when doing the suspend. Fixes: a3fbfae82b4c ("tpm: take TPM chip power gating out of tpm_transmit()") Re

[GIT PULL] sound fixes for 5.1-rc2

2019-03-22 Thread Takashi Iwai
Linus, please pull sound fixes for v5.1-rc2 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-5.1-rc2 The topmost commit is 667a8f73753908c4d0171e52b71774f9be5d6713 sound fixes for 5.1-rc2 The onl

Re: [PATCH 1/3] ALSA: hda/realtek: Enable ASUS X441MB and X705FD headset MIC with ALC256

2019-03-22 Thread Takashi Iwai
On Fri, 22 Mar 2019 04:37:18 +0100, Jian-Hong Pan wrote: > > The ASUS laptop X441MB and X705FD with ALC256 cannot detect the headset > MIC until ALC256_FIXUP_ASUS_MIC_NO_PRESENCE quirk applied. > > Signed-off-by: Chris Chiu > Signed-off-by: Daniel Drake > Signed-off-by: Jian-Hong Pan Applied,

Re: [PATCH 2/3] ALSA: hda/realtek: Enable headset mic of ASUS P5440FF with ALC256

2019-03-22 Thread Takashi Iwai
On Fri, 22 Mar 2019 04:37:20 +0100, Jian-Hong Pan wrote: > > From: Chris Chiu > > The ASUS laptop P5440FF with ALC256 can't detect the headset microphone > until ALC256_FIXUP_ASUS_MIC_NO_PRESENCE quirk applied. > > Signed-off-by: Chris Chiu > Signed-off-by: Daniel Drake > Signed-off-by: Jian-

Re: [PATCH 3/3] ALSA: hda/realtek: Enable headset MIC of ASUS X430UN and X512DK with ALC256

2019-03-22 Thread Takashi Iwai
On Fri, 22 Mar 2019 04:37:22 +0100, Jian-Hong Pan wrote: > > The ASUS X430UN and X512DK with ALC256 cannot detect the headset MIC > until ALC256_FIXUP_ASUS_MIC_NO_PRESENCE quirk applied. > > Signed-off-by: Jian-Hong Pan > Signed-off-by: Daniel Drake Applied, thanks. Takashi

Re: [PATCH] ARM: dts: imx6qdl-sabresd: change phy-mode to use rgmii-id

2019-03-22 Thread Andrew Lunn
> There is a way of doing this to preserve backwards compatibility I think. > Maybe deprecating the previous DTS phy-mode and replacing it with a new one, > phy-mode-v2 instead? Hi Steve It needs to be a vendor specific property, atheros,phy-mode, for example. Andrew

[PATCH] x86/boot: Use EFI setup data if provided

2019-03-22 Thread Junichi Nomura
Commit 3a63f70bf4c3a ("x86/boot: Early parse RSDP and save it in boot_params") broke kexec boot on EFI systems. efi_get_rsdp_addr() in the early parsing code tries to search RSDP from EFI table but whose address is virtual. Since kexec(1) provides physical address of config_table via boot_params,

[PATCH] Skip deferred request irqs for devices known to fail

2019-03-22 Thread Ian W MORRISON
Patch ca876c7483b6 "gpiolib-acpi: make sure we trigger edge events at least once on boot" causes the MINIX family of mini PCs to fail to boot resulting in a "black screen". This patch excludes MINIX devices from executing this trigger in order to successfully boot. Cc: sta...@vger.kernel.org Sig

Re: [PATCH] tools: PCI: exit with error code when test fails

2019-03-22 Thread Lorenzo Pieralisi
On Thu, Sep 20, 2018 at 05:02:53PM +0200, Jean-Jacques Hiblot wrote: > This makes it easier to use pcitest in automated setups. > > Signed-off-by: Jean-Jacques Hiblot > --- > tools/pci/pcitest.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Applied to pci/misc for v5.2, thanks. L

[RFC PATCH] x86/cpu/hygon: Fix phys_proc_id calculation logic for multi-die processor

2019-03-22 Thread Pu Wen
For Hygon family 18h multi-die processor platform, which support 1-Die/ 2-Die/4-Die per socket, the system view is shown in the following system topology. System View (with 1-Die 2-Socket): || -- - SOCKET0 | D0 | | D1 | SOCKET1 --

Re: [PATCH 2/4] signal: Make flush_sigqueue() use free_q to release memory

2019-03-22 Thread Oleg Nesterov
On 03/21, Matthew Wilcox wrote: > > On Thu, Mar 21, 2019 at 05:45:10PM -0400, Waiman Long wrote: > > > To avoid this dire condition and reduce lock hold time of tasklist_lock, > > flush_sigqueue() is modified to pass in a freeing queue pointer so that > > the actual freeing of memory objects can be

[PATCH 3.18 013/134] MIPS: jazz: fix 64bit build

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 41af167fbc0032f9d7562854f58114eaa9270336 ] 64bit JAZZ builds failed with linux-next/arch/mips/jazz/jazzdma.c: In function `vdma_init`: /linux-next/arch/mips/jazz/jazzdma.c:77:30

[PATCH 3.18 011/134] scsi: qla4xxx: check return code of qla4xxx_copy_from_fwddb_param

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 72b4a0465f995175a2e22cf4a636bf781f1f28a7 ] The return code should be check while qla4xxx_copy_from_fwddb_param fails. Signed-off-by: YueHaibing Acked-by: Manish Rangankar Signed-o

[PATCH 3.18 001/134] ceph: avoid repeatedly adding inode to mdsc->snap_flush_list

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Yan, Zheng commit 04242ff3ac0abbaa4362f97781dac268e6c3541a upstream. Otherwise, mdsc->snap_flush_list may get corrupted. Cc: sta...@vger.kernel.org Signed-off-by: "Yan, Zheng" Reviewed-by: I

[PATCH] csky: remove redundant generic-y

2019-03-22 Thread Masahiro Yamada
Since commit 7c8bc297 ("kbuild: warn redundant generic-y"), redundant generic-y is reported. I missed to delete this one. scripts/Makefile.asm-generic:25: redundant generic-y found in arch/csky/include/asm/Kbuild: ftrace.h In this case, csky-specific implementation exists in arch/csky/includ

[PATCH 3.18 010/134] MIPS: ath79: Enable OF serial ports in the default config

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 565dc8a4f55e491935bfb04866068d21784ea9a4 ] CONFIG_SERIAL_OF_PLATFORM is needed to get a working console on the OF boards, enable it in the default config to get a working setup out o

[PATCH 3.18 002/134] numa: change get_mempolicy() to use nr_node_ids instead of MAX_NUMNODES

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Ralph Campbell commit 050c17f239fd53adb55aa768d4f41bc76c0fe045 upstream. The system call, get_mempolicy() [1], passes an unsigned long *nodemask pointer and an unsigned long maxnode argument w

[PATCH 3.18 014/134] isdn: i4l: isdn_tty: Fix some concurrency double-free bugs

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 2ff33d6637393fe9348357285931811b76e1402f ] The functions isdn_tty_tiocmset() and isdn_tty_set_termios() may be concurrently executed. isdn_tty_tiocmset isdn_tty_modem_hup line

[PATCH 3.18 017/134] isdn: avm: Fix string plus integer warning from Clang

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 7afa81c55fca0cad589722cb4bce698b4803b0e1 ] A recent commit in Clang expanded the -Wstring-plus-int warning, showing some odd behavior in this file. drivers/isdn/hardware/avm/b1.c:42

[PATCH 3.18 016/134] leds: lp5523: fix a missing check of return value of lp55xx_read

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 248b57015f35c94d4eae2fdd8c6febf5cd703900 ] When lp55xx_read() fails, "status" is an uninitialized variable and thus may contain random value; using it leads to undefined behaviors.

[PATCH 3.18 012/134] scsi: isci: initialize shost fully before calling scsi_add_host()

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit cc29a1b0a3f2597ce887d339222fa85b9307706d ] scsi_mq_setup_tags(), which is called by scsi_add_host(), calculates the command size to allocate based on the prot_capabilities. In the is

[PATCH 3.18 003/134] KEYS: allow reaching the keys quotas exactly

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Eric Biggers commit a08bf91ce28ed3ae7b6fef35d843fef8dc8c2cd9 upstream. If the sysctl 'kernel.keys.maxkeys' is set to some number n, then actually users can only add up to 'n - 1' keys. Likewi

[PATCH 3.18 004/134] mfd: ti_am335x_tscadc: Use PLATFORM_DEVID_AUTO while registering mfd cells

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit b40ee006fe6a8a25093434e5d394128c356a48f3 ] Use PLATFORM_DEVID_AUTO to number mfd cells while registering, so that different instances are uniquely identified. This is required in ord

[PATCH 3.18 005/134] mfd: twl-core: Fix section annotations on {,un}protect_pm_master

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 8838555089f0345b87f4277fe5a8dd647dc65589 ] When building the kernel with Clang, the following section mismatch warning appears: WARNING: vmlinux.o(.text+0x3d84a3b): Section mismatch

[PATCH 3.18 009/134] mfd: mc13xxx: Fix a missing check of a register-read failure

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 9e28989d41c0eab57ec0bb156617a8757406ff8a ] When mc13xxx_reg_read() fails, "old_adc0" is uninitialized and will contain random value. Further execution uses "old_adc0" even when mc13x

[PATCH 3.18 015/134] atm: he: fix sign-extension overflow on large shift

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit cb12d72b27a6f41325ae23a11033cf5fedfa1b97 ] Shifting the 1 by exp by an int can lead to sign-extension overlow when exp is 31 since 1 is an signed int and sign-extending this result t

[PATCH 3.18 008/134] mfd: wm5110: Add missing ASRC rate register

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 04c801c18ded421845324255e660147a6f58dcd6 ] Signed-off-by: Charles Keepax Signed-off-by: Lee Jones Signed-off-by: Sasha Levin --- drivers/mfd/wm5110-tables.c | 2 ++ 1 file change

[PATCH 3.18 000/134] 3.18.137-stable review

2019-03-22 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 3.18.137 release. There are 134 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 Sun Mar 24 11:10:54 UTC 2019. Anything rece

[PATCH 3.18 033/134] mac80211: fix miscounting of ttl-dropped frames

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit a0dc02039a2ee54fb4ae400e0b755ed30e73e58c ] In ieee80211_rx_h_mesh_fwding, we increment the 'dropped_frames_ttl' counter when we decrement the ttl to zero. For unicast frames destine

[PATCH 3.18 019/134] KEYS: always initialize keyring_index_key::desc_len

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Eric Biggers commit ede0fa98a900e657d1fcd80b50920efc896c1a4c upstream. syzbot hit the 'BUG_ON(index_key->desc_len == 0);' in __key_link_begin() called from construct_alloc_key() during sys_req

[PATCH 3.18 031/134] usb: gadget: Potential NULL dereference on allocation error

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit df28169e1538e4a8bcd8b779b043e5aa6524545c ] The source_sink_alloc_func() function is supposed to return error pointers on error. The function is called from usb_get_function() which

[PATCH 3.18 034/134] serial: fsl_lpuart: fix maximum acceptable baud rate with over-sampling

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 815d835b7ba46685c316b13367dacb2b461b ] Using over-sampling ratio, lpuart can accept baud rate upto uartclk / 4. Signed-off-by: Tomonori Sakita Signed-off-by: Atsushi Nemoto Si

[PATCH 3.18 037/134] ibmveth: Do not process frames after calling napi_reschedule

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit e95d22c69b2c130ccce257b84daf283fd82d611e ] The IBM virtual ethernet driver's polling function continues to process frames after rescheduling NAPI, resulting in a warning if it exhaus

[PATCH 3.18 006/134] mfd: db8500-prcmu: Fix some section annotations

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit a3888f62fe66429fad3be7f2ba962e1e08c26fd6 ] When building the kernel with Clang, the following section mismatch warnings appear: WARNING: vmlinux.o(.text+0x7239cc): Section mismatch

[PATCH 3.18 036/134] net: altera_tse: fix connect_local_phy error path

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 17b42a20d7ca59377788c6a2409e77569570cc10 ] The connect_local_phy should return NULL (not negative errno) on error, since its caller expects it. Signed-off-by: Atsushi Nemoto Acked-

[PATCH 3.18 028/134] ASoC: Intel: Haswell/Broadwell: fix setting for .dynamic field

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 906a9abc5de73c383af518f5a806f4be2993a0c7 ] For some reason this field was set to zero when all other drivers use .dynamic = 1 for front-ends. This change was tested on Dell XPS13 and

[PATCH 3.18 035/134] scsi: csiostor: fix NULL pointer dereference in csio_vport_set_state()

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit fe35a40e675473eb65f2f5462b82770f324b5689 ] Assign fc_vport to ln->fc_vport before calling csio_fcoe_alloc_vnp() to avoid a NULL pointer dereference in csio_vport_set_state(). ln->fc

[PATCH 3.18 032/134] ASoC: imx-audmux: change snprintf to scnprintf for possible overflow

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit c407cd008fd039320d147088b52d0fa34ed3ddcb ] Change snprintf to scnprintf. There are generally two cases where using snprintf causes problems. 1) Uses of size += snprintf(buf, SIZE -

[PATCH 3.18 030/134] usb: dwc3: gadget: Fix the uninitialized link_state when udc starts

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 88b1bb1f3b88e0bf20b05d543a53a5b99bd7ceb6 ] Currently the link_state is uninitialized and the default value is 0(U0) before the first time we start the udc, and after we start the udc

[PATCH 3.18 022/134] team: avoid complex list operations in team_nl_cmd_options_set()

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Cong Wang [ Upstream commit 2fdeee2549231b1f989f011bb18191f5660d3745 ] The current opt_inst_list operations inside team_nl_cmd_options_set() is too complex to track: LIST_HEAD(opt_inst_li

[PATCH 3.18 039/134] cfg80211: extend range deviation for DMG

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 93183bdbe73bbdd03e9566c8dc37c9d06b0d0db6 ] Recently, DMG frequency bands have been extended till 71GHz, so extend the range check till 20GHz (45-71GHZ), else some channels will be ma

[PATCH 3.18 048/134] net: Add __icmp_send helper.

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Nazarov Sergey [ Upstream commit 9ef6b42ad6fd7929dd1b6092cb02014e382c6a91 ] Add __icmp_send function having ip_options struct parameter Signed-off-by: Sergey Nazarov Reviewed-by: Paul Moore

[PATCH 3.18 026/134] scsi: libsas: Fix rphy phy_identifier for PHYs with end devices attached

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: John Garry commit ffeafdd2bf0b280d67ec1a47ea6287910d271f3f upstream. The sysfs phy_identifier attribute for a sas_end_device comes from the rphy phy_identifier value. Currently this is not be

[PATCH 3.18 049/134] net: avoid use IPCB in cipso_v4_error

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Nazarov Sergey [ Upstream commit 3da1ed7ac398f34fff1694017a07054d69c5f5c5 ] Extract IP options in cipso_v4_error and use __icmp_send. Signed-off-by: Sergey Nazarov Acked-by: Paul Moore Sign

[PATCH 3.18 021/134] net/packet: fix 4gb buffer limit due to overflow check

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Kal Conley [ Upstream commit fc62814d690cf62189854464f4bd07457d5e9e50 ] When calculating rb->frames_per_block * req->tp_block_nr the result can overflow. Check it for overflow without limiting

[PATCH 3.18 018/134] KEYS: user: Align the payload buffer

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Eric Biggers commit cc1780fc42c76c705dd07ea123f1143dc5057630 upstream. Align the payload of "user" and "logon" keys so that users of the keyrings service can access it as a struct that require

[PATCH 3.18 020/134] batman-adv: fix uninit-value in batadv_interface_tx()

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit 4ffcbfac60642f63ae3d80891f573ba7e94a265c ] KMSAN reported batadv_interface_tx() was possibly using a garbage value [1] batadv_get_vid() does have a pskb_may_pul

[PATCH 3.18 024/134] netlink: Trim skb to alloc size to avoid MSG_TRUNC

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Arad, Ronen commit db65a3aaf29ecce2e34271d52e8d2336b97bd9fe upstream. netlink_dump() allocates skb based on the calculated min_dump_alloc or a per socket max_recvmsg_len. min_alloc_size is max

[PATCH 3.18 027/134] drm/msm: Unblock writer if reader closes file

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 99c66bc051e7407fe0bf0607b142ec0be1a1d1dd ] Prevents deadlock when fifo is full and reader closes file. Signed-off-by: Kristian H. Kristensen Signed-off-by: Rob Clark Signed-off-by

[PATCH 3.18 051/134] netlabel: fix out-of-bounds memory accesses

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Paul Moore [ Upstream commit 5578de4834fe0f2a34fedc7374be691443396d1f ] There are two array out-of-bounds memory accesses, one in cipso_v4_map_lvl_valid(), the other in netlbl_bitmap_walk().

[PATCH 3.18 055/134] vti4: Fix a ipip packet processing bug in IPCOMP virtual tunnel

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit dd9ee3444014e8f28c0eefc9fffc9ac9c5248c12 ] Recently we run a network test over ipcomp virtual tunnel.We find that if a ipv4 packet needs fragment, then the peer can't receive it. We

[PATCH 3.18 053/134] hugetlbfs: fix races and page leaks during migration

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Mike Kravetz commit cb6acd01e2e43fd8bad11155752b7699c3d0fb76 upstream. hugetlb pages should only be migrated if they are 'active'. The routines set/clear_page_huge_active() modify the active

[PATCH 3.18 054/134] media: uvcvideo: Fix type check leading to overflow

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Alistair Strachan commit 47bb117911b051bbc90764a8bff96543cbd2005f upstream. When initially testing the Camera Terminal Descriptor wTerminalType field (buffer[4]), no mask is used. Later in the

[PATCH 3.18 042/134] mm: enforce min addr even if capable() in expand_downwards()

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Jann Horn commit 0a1d52994d440e21def1c2174932410b4f2a98a1 upstream. security_mmap_addr() does a capability check with current_cred(), but we can reach this code from contexts like a VFS write

[PATCH 3.18 052/134] ip6mr: Do not call __IP6_INC_STATS() from preemptible context

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Ido Schimmel [ Upstream commit 87c11f1ddbbad38ad8bad47af133a8208985fbdf ] Similar to commit 44f49dd8b5a6 ("ipmr: fix possible race resulting from improper usage of IP_INC_STATS_BH() in preempt

[PATCH 3.18 069/134] mm, memory_hotplug: is_mem_section_removable do not pass the end of a zone

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit efad4e475c312456edb3c789d0996d12ed744c13 ] Patch series "mm, memory_hotplug: fix uninitialized pages fallouts", v2. Mikhail Zaslonko has posted fixes for the two bugs quite some tim

[PATCH 3.18 068/134] x86/kexec: Dont setup EFI info if EFI runtime is not enabled

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 2aa958c99c7fd3162b089a1a56a34a0cdb778de1 ] Kexec-ing a kernel with "efi=noruntime" on the first kernel's command line causes the following null pointer dereference: BUG: unable to

[PATCH 3.18 046/134] team: Free BPF filter when unregistering netdev

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Ido Schimmel [ Upstream commit 692c31bd4054212312396b1d303bffab2c5b93a7 ] When team is used in loadbalance mode a BPF filter can be used to provide a hash which will determine the Tx port. Wh

[PATCH 3.18 067/134] cifs: fix computation for MAX_SMB2_HDR_SIZE

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 58d15ed1203f4d858c339ea4d7dafa94bd2a56d3 ] The size of the fixed part of the create response is 88 bytes not 56. Signed-off-by: Ronnie Sahlberg Signed-off-by: Steve French Reviewe

[PATCH 3.18 044/134] net-sysfs: Fix mem leak in netdev_register_kobject

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: YueHaibing [ Upstream commit 895a5e96dbd6386c8e78e5b78e067dcc67b7f0ab ] syzkaller report this: BUG: memory leak unreferenced object 0x88837a71a500 (size 256): comm "syz-executor.2", pid

[PATCH 3.18 058/134] iommu/amd: Fix IOMMU page flush when detach device from a domain

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 9825bd94e3a2baae1f4874767ae3a7d4c049720e ] When a VM is terminated, the VFIO driver detaches all pass-through devices from VFIO domain by clearing domain id and page table root point

[PATCH 3.18 047/134] net: nfc: Fix NULL dereference on nfc_llcp_build_tlv fails

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: YueHaibing [ Upstream commit 58bdd544e2933a21a51eecf17c3f5f94038261b5 ] KASAN report this: BUG: KASAN: null-ptr-deref in nfc_llcp_build_gb+0x37f/0x540 [nfc] Read of size 3 at addr 000

[PATCH 3.18 063/134] net: altera_tse: fix msgdma_tx_completion on non-zero fill_level case

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 6571ebce112a21ec9be68ef2f53b96fcd41fd81b ] If fill_level was not zero and status was not BUSY, result of "tx_prod - tx_cons - inuse" might be zero. Subtracting 1 unconditionally resu

[PATCH 3.18 086/134] net/x25: fix a race in x25_bind()

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit 797a22bd5298c2674d927893f46cadf619dad11d ] syzbot was able to trigger another soft lockup [1] I first thought it was the O(N^2) issue I mentioned in my prior fi

[PATCH 3.18 071/134] autofs: fix error return in autofs_fill_super()

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit f585b283e3f025754c45bbe7533fc6e5c4643700 ] In autofs_fill_super() on error of get inode/make root dentry the return should be ENOMEM as this is the only failure case of the called fu

[PATCH 3.18 059/134] xtensa: SMP: fix secondary CPU initialization

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 32a7726c4f4aadfabdb82440d84f88a5a2c8fe13 ] - add missing memory barriers to the secondary CPU synchronization spin loops; add comment to the matching memory barrier in the boot_sec

[PATCH 3.18 062/134] xtensa: SMP: limit number of possible CPUs by NR_CPUS

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 25384ce5f9530def39421597b1457d9462df6455 ] This fixes the following warning at boot when the kernel is booted on a board with more CPU cores than was configured in NR_CPUS: smp_in

[PATCH 3.18 074/134] dmaengine: dmatest: Abort test in case of mapping error

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 6454368a804c4955ccd116236037536f81e5b1f1 ] In case of mapping error the DMA addresses are invalid and continuing will screw system memory or potentially something else. [ 222.48031

[PATCH 3.18 072/134] ARM: pxa: ssp: unneeded to free devm_ allocated data

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit ba16adeb346387eb2d1ada69003588be96f098fa ] devm_ allocated data will be automatically freed. The free of devm_ allocated data is invalid. Fixes: 1c459de1e645 ("ARM: pxa: ssp: use de

[PATCH 3.18 073/134] irqchip/mmp: Only touch the PJ4 IRQ & FIQ bits on enable/disable

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 2380a22b60ce6f995eac806e69c66e397b59d045 ] Resetting bit 4 disables the interrupt delivery to the "secure processor" core. This breaks the keyboard on a OLPC XO 1.75 laptop, where th

[PATCH 3.18 089/134] missing barriers in some of unix_sock ->addr and ->path accesses

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Al Viro [ Upstream commit ae3b564179bfd06f32d051b9e5d72ce4b2a07c37 ] Several u->addr and u->path users are not holding any locks in common with unix_bind(). unix_state_lock() is useless for t

[PATCH 3.18 090/134] vxlan: test dev->flags & IFF_UP before calling gro_cells_receive()

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit 59cbf56fcd98ba2a715b6e97c4e43f773f956393 ] Same reasons than the ones explained in commit 4179cb5a4c92 ("vxlan: test dev->flags & IFF_UP before calling netif_rx(

[PATCH 3.18 077/134] Input: wacom_serial4 - add support for Wacom ArtPad II tablet

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Jason Gerecke commit 44fc95e218a09d7966a9d448941fdb003f6bb69f upstream. Tablet initially begins communicating at 9600 baud, so this command should be used to connect to the device: $ inpu

[PATCH 3.18 064/134] nfs: Fix NULL pointer dereference of dev_name

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 80ff00172407e0aad4b10b94ef0816fc3e7813cb ] There is a NULL pointer dereference of dev_name in nfs_parse_devname() The oops looks something like: BUG: unable to handle kernel NULL

[PATCH 3.18 065/134] scsi: libfc: free skb when receiving invalid flogi resp

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 5d8fc4a9f0eec20b6c07895022a6bea3fb6dfb38 ] The issue to be fixed in this commit is when libfc found it received a invalid FLOGI response from FC switch, it would return without freei

[PATCH 3.18 066/134] platform/x86: Fix unmet dependency warning for SAMSUNG_Q10

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 0ee4b5f801b73b83a9fb3921d725f2162fd4a2e5 ] Add BACKLIGHT_LCD_SUPPORT for SAMSUNG_Q10 to fix the warning: unmet direct dependencies detected for BACKLIGHT_CLASS_DEVICE. SAMSUNG_Q10 s

[PATCH 3.18 087/134] mdio_bus: Fix use-after-free on device_register fails

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: YueHaibing [ Upstream commit 6ff7b060535e87c2ae14dd8548512abfdda528fb ] KASAN has found use-after-free in fixed_mdio_bus_init, commit 0c692d07842a ("drivers/net/phy/mdio_bus.c: call put_device

[PATCH 3.18 079/134] l2tp: fix infoleak in l2tp_ip6_recvmsg()

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit 163d1c3d6f17556ed3c340d3789ea93be95d6c28 ] Back in 2013 Hannes took care of most of such leaks in commit bceaa90240b6 ("inet: prevent leakage of uninitialized me

[PATCH 3.18 078/134] iscsi_ibft: Fix missing break in switch statement

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Gustavo A. R. Silva commit df997abeebadaa4824271009e2d2b526a70a11cb upstream. Add missing break statement in order to prevent the code from falling through to case ISCSI_BOOT_TGT_NAME, which i

[PATCH 3.18 092/134] gro_cells: make sure device is up in gro_cells_receive()

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit 2a5ff07a0eb945f291e361aa6f6becca8340ba46 ] We keep receiving syzbot reports [1] that show that tunnels do not play the rcu/IFF_UP rules properly. At device dism

[PATCH 3.18 080/134] net: hsr: fix memory leak in hsr_dev_finalize()

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Mao Wenan [ Upstream commit 6caabe7f197d3466d238f70915d65301f1716626 ] If hsr_add_port(hsr, hsr_dev, HSR_PT_MASTER) failed to add port, it directly returns res and forgets to free the node tha

[PATCH 3.18 081/134] net: sit: fix UBSAN Undefined behaviour in check_6rd

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Miaohe Lin [ Upstream commit a843dc4ebaecd15fca1f4d35a97210f72ea1473b ] In func check_6rd,tunnel->ip6rd.relay_prefixlen may equal to 32,so UBSAN complain about it. UBSAN: Undefined behaviour

[PATCH 3.18 082/134] net/x25: fix use-after-free in x25_device_event()

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit 95d6ebd53c79522bf9502dbc7e89e0d63f94dae4 ] In case of failure x25_connect() does a x25_neigh_put(x25->neighbour) but forgets to clear x25->neighbour pointer, thu

[PATCH 3.18 103/134] scsi: libiscsi: Fix race between iscsi_xmit_task and iscsi_complete_task

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 79edd00dc6a96644d76b4a1cb97d94d49e026768 ] When a target sends Check Condition, whilst initiator is busy xmiting re-queued data, could lead to race between iscsi_complete_task() and

[PATCH 3.18 094/134] Its wrong to add len to sector_nr in raid10 reshape twice

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Xiao Ni commit b761dcf1217760a42f7897c31dcb649f59b2333e upstream. In reshape_request it already adds len to sector_nr already. It's wrong to add len to sector_nr again after adding pages to b

[PATCH 3.18 076/134] perf symbols: Filter out hidden symbols from labels

2019-03-22 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 59a17706915fe5ea6f711e1f92d4fb706bce07fe ] When perf is built with the annobin plugin (RHEL8 build) extra symbols are added to its binary: # nm perf | grep annobin | head -10 00

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