[PATCH 4.9 007/175] Input: cm109 - do not stomp on control URB

2020-12-28 Thread Greg Kroah-Hartman
From: Dmitry Torokhov commit 82e06090473289ce63e23fdeb8737aad59b10645 upstream. We need to make sure we are not stomping on the control URB that was issued when opening the device when attempting to toggle buzzer. To do that we need to mark it as pending in cm109_open(). Reported-and-tested-by:

[PATCH 4.9 016/175] net: bridge: vlan: fix error return code in __vlan_add()

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Changzhong [ Upstream commit ee4f52a8de2c6f78b01f10b4c330867d88c1653a ] Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: f8ed289fab84 ("bridge: vlan: use br_vlan_(get|put)_master to deal with refcounts") Repor

[PATCH 4.9 017/175] mac80211: mesh: fix mesh_pathtbl_init() error path

2020-12-28 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit 905b2032fa424f253d9126271439cc1db2b01130 ] If tbl_mpp can not be allocated, we call mesh_table_free(tbl_path) while tbl_path rhashtable has not yet been initialized, which causes panics. Simply factorize the rhashtable_init() call into mesh_table_alloc() WA

[PATCH 4.9 015/175] net: stmmac: dwmac-meson8b: fix mask definition of the m250_sel mux

2020-12-28 Thread Greg Kroah-Hartman
From: Martin Blumenstingl [ Upstream commit 82ca4c922b8992013a238d65cf4e60cc33e12f36 ] The m250_sel mux clock uses bit 4 in the PRG_ETH0 register. Fix this by shifting the PRG_ETH0_CLK_M250_SEL_MASK accordingly as the "mask" in struct clk_mux expects the mask relative to the "shift" field in the

[PATCH 4.9 013/175] tcp: fix cwnd-limited bug for TSO deferral where we send nothing

2020-12-28 Thread Greg Kroah-Hartman
From: Neal Cardwell [ Upstream commit 299bcb55ecd1412f6df606e9dc0912d55610029e ] When cwnd is not a multiple of the TSO skb size of N*MSS, we can get into persistent scenarios where we have the following sequence: (1) ACK for full-sized skb of N*MSS arrives -> tcp_write_xmit() transmit full-s

[PATCH 4.9 012/175] net/mlx4_en: Avoid scheduling restart task if it is already running

2020-12-28 Thread Greg Kroah-Hartman
From: Moshe Shemesh [ Upstream commit fed91613c9dd455dd154b22fa8e11b8526466082 ] Add restarting state flag to avoid scheduling another restart task while such task is already running. Change task name from watchdog_task to restart_task to better fit the task role. Fixes: 1e338db56e5a ("mlx4_en:

[PATCH 4.4 127/132] xen/xenbus: Allow watches discard events before queueing

2020-12-28 Thread Greg Kroah-Hartman
From: SeongJae Park commit fed1755b118147721f2c87b37b9d66e62c39b668 upstream. If handling logics of watch events are slower than the events enqueue logic and the events can be created from the guests, the guests could trigger memory pressure by intensively inducing the events, because it will cr

[PATCH 4.4 125/132] iio: adc: rockchip_saradc: fix missing clk_disable_unprepare() on error in rockchip_saradc_resume

2020-12-28 Thread Greg Kroah-Hartman
From: Qinglang Miao commit 560c6b914c6ec7d9d9a69fddbb5bf3bf71433e8b upstream. Fix the missing clk_disable_unprepare() of info->pclk before return from rockchip_saradc_resume in the error handling case when fails to prepare and enable info->clk. Suggested-by: Robin Murphy Fixes: 44d6f2ef94f9 ("

[PATCH 4.9 001/175] spi: bcm2835aux: Fix use-after-free on unbind

2020-12-28 Thread Greg Kroah-Hartman
From: Lukas Wunner [ Upstream commit e13ee6cc4781edaf8c7321bee19217e3702ed481 ] bcm2835aux_spi_remove() accesses the driver's private data after calling spi_unregister_master() even though that function releases the last reference on the spi_master and thereby frees the private data. Fix by swi

[PATCH 4.4 126/132] iio:pressure:mpl3115: Force alignment of buffer

2020-12-28 Thread Greg Kroah-Hartman
From: Jonathan Cameron commit 198cf32f0503d2ad60d320b95ef6fb8243db857f upstream. Whilst this is another case of the issue Lars reported with an array of elements of smaller than 8 bytes being passed to iio_push_to_buffers_with_timestamp(), the solution here is a bit different from the other case

[PATCH 4.4 113/132] USB: serial: keyspan_pda: fix tx-unthrottle use-after-free

2020-12-28 Thread Greg Kroah-Hartman
From: Johan Hovold commit 49fbb8e37a961396a5b6c82937c70df91de45e9d upstream. The driver's transmit-unthrottle work was never flushed on disconnect, something which could lead to the driver port data being freed while the unthrottle work is still scheduled. Fix this by cancelling the unthrottle

[PATCH 4.4 092/132] qlcnic: Fix error code in probe

2020-12-28 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit 0d52848632a357948028eab67ff9b7cc0c12a0fb ] Return -EINVAL if we can't find the correct device. Currently it returns success. Fixes: 13159183ec7a ("qlcnic: 83xx base driver") Signed-off-by: Dan Carpenter Link: https://lore.kernel.org/r/X9nHbMqEyI/xPfGd@mwa

[PATCH 4.4 096/132] Input: goodix - add upside-down quirk for Teclast X98 Pro tablet

2020-12-28 Thread Greg Kroah-Hartman
From: Simon Beginn [ Upstream commit cffdd6d90482316e18d686060a4397902ea04bd2 ] The touchscreen on the Teclast x98 Pro is also mounted upside-down in relation to the display orientation. Signed-off-by: Simon Beginn Signed-off-by: Bastien Nocera Link: https://lore.kernel.org/r/20201117004253.2

[PATCH 4.4 087/132] net: bcmgenet: Fix a resource leak in an error handling path in the probe functin

2020-12-28 Thread Greg Kroah-Hartman
From: Christophe JAILLET [ Upstream commit 4375ada01963d1ebf733d60d1bb6e5db401e1ac6 ] If the 'register_netdev()' call fails, we must undo a previous 'bcmgenet_mii_init()' call. Fixes: 1c1008c793fa ("net: bcmgenet: add main driver file") Signed-off-by: Christophe JAILLET Acked-by: Florian Faine

[PATCH 4.4 116/132] btrfs: scrub: Dont use inode page cache in scrub_handle_errored_block()

2020-12-28 Thread Greg Kroah-Hartman
From: Qu Wenruo commit 665d4953cde6d9e75c62a07ec8f4f8fd7d396ade upstream In commit ac0b4145d662 ("btrfs: scrub: Don't use inode pages for device replace") we removed the branch of copy_nocow_pages() to avoid corruption for compressed nodatasum extents. However above commit only solves the probl

[PATCH 4.4 095/132] Input: cros_ec_keyb - send scancodes in addition to key events

2020-12-28 Thread Greg Kroah-Hartman
From: Dmitry Torokhov [ Upstream commit 80db2a087f425b63f0163bc95217abd01c637cb5 ] To let userspace know what 'scancodes' should be used in EVIOCGKEYCODE and EVIOCSKEYCODE ioctls, we should send EV_MSC/MSC_SCAN events in addition to EV_KEY/KEY_* events. The driver already declared MSC_SCAN capab

[PATCH] tty: serial: amba-pl011: added RS485 support v2

2020-12-28 Thread Ivan Sistik
AMBA PL011 do not have hardware support for RS485. This implementation is for drive enable signal (DE), which switch direction of RS485 driver chip. This signal si drived by RTS pin. Correct multiplexor settings have to be provided to Device Tree. Usually it is 'ctsrts', which is used for enabling

[PATCH v6 0/7] Convert all THP vmstat counters to pages

2020-12-28 Thread Muchun Song
This patch series is aimed to convert all THP vmstat counters to pages. The unit of some vmstat counters are pages, some are bytes, some are HPAGE_PMD_NR, and some are KiB. When we want to expose these vmstat counters to the userspace, we have to know the unit of the vmstat counters is which one.

[PATCH 4.4 128/132] xen/xenbus: Add will_handle callback support in xenbus_watch_path()

2020-12-28 Thread Greg Kroah-Hartman
From: SeongJae Park commit 2e85d32b1c865bec703ce0c962221a5e955c52c2 upstream. Some code does not directly make 'xenbus_watch' object and call 'register_xenbus_watch()' but use 'xenbus_watch_path()' instead. This commit adds support of 'will_handle' callback in the 'xenbus_watch_path()' and it's

[PATCH 4.4 094/132] cfg80211: initialize rekey_data

2020-12-28 Thread Greg Kroah-Hartman
From: Sara Sharon [ Upstream commit f495acd8851d7b345e5f0e521b2645b1e1f928a0 ] In case we have old supplicant, the akm field is uninitialized. Signed-off-by: Sara Sharon Signed-off-by: Luca Coelho Link: https://lore.kernel.org/r/iwlwifi.20201129172929.930f0ab7ebee.Ic546e384efab3f4a89f318eafd

[PATCH 4.9 010/175] scsi: be2iscsi: Revert "Fix a theoretical leak in beiscsi_create_eqs()"

2020-12-28 Thread Greg Kroah-Hartman
From: Dan Carpenter commit eeaf06af6f87e1dba371fbe42674e6f963220b9c upstream. My patch caused kernel Oopses and delays in boot. Revert it. The problem was that I moved the "mem->dma = paddr;" before the call to be_fill_queue(). But the first thing that the be_fill_queue() function does is mem

Re: [PATCH v3 07/14] software_node: Add support for fwnode_graph*() family of functions

2020-12-28 Thread Sakari Ailus
Hi Daniel, On Thu, Dec 24, 2020 at 02:21:15PM +, Daniel Scally wrote: > Hi Andy, Laurent > > > On Thu, Dec 24, 2020 at 2:55 PM Laurent Pinchart > > wrote: > >> On Thu, Dec 24, 2020 at 02:24:12PM +0200, Andy Shevchenko wrote: > >>> On Thu, Dec 24, 2020 at 3:14 AM Daniel Scally wrote: > > > >

[PATCH v6 5/7] mm: memcontrol: convert NR_SHMEM_PMDMAPPED account to pages

2020-12-28 Thread Muchun Song
Currently we use struct per_cpu_nodestat to cache the vmstat counters, which leads to inaccurate statistics especially THP vmstat counters. In the systems with hundreds of processors it can be GBs of memory. For example, for a 96 CPUs system, the threshold is the maximum number of 125. And the per

[PATCH v6 6/7] mm: memcontrol: convert NR_FILE_PMDMAPPED account to pages

2020-12-28 Thread Muchun Song
Currently we use struct per_cpu_nodestat to cache the vmstat counters, which leads to inaccurate statistics especially THP vmstat counters. In the systems with hundreds of processors it can be GBs of memory. For example, for a 96 CPUs system, the threshold is the maximum number of 125. And the per

[PATCH v6 3/7] mm: memcontrol: convert NR_FILE_THPS account to pages

2020-12-28 Thread Muchun Song
Currently we use struct per_cpu_nodestat to cache the vmstat counters, which leads to inaccurate statistics especially THP vmstat counters. In the systems with if hundreds of processors it can be GBs of memory. For example, for a 96 CPUs system, the threshold is the maximum number of 125. And the p

[PATCH v6 7/7] mm: memcontrol: make the slab calculation consistent

2020-12-28 Thread Muchun Song
Although the ratio of the slab is one, we also should read the ratio from the related memory_stats instead of hard-coding. And the local variable of size is already the value of slab_unreclaimable. So we do not need to read again. To do this we need some code like below: if (unlikely(memory_stats

[PATCH v6 4/7] mm: memcontrol: convert NR_SHMEM_THPS account to pages

2020-12-28 Thread Muchun Song
Currently we use struct per_cpu_nodestat to cache the vmstat counters, which leads to inaccurate statistics especially THP vmstat counters. In the systems with hundreds of processors it can be GBs of memory. For example, for a 96 CPUs system, the threshold is the maximum number of 125. And the per

[PATCH 4.4 111/132] USB: serial: keyspan_pda: fix stalled writes

2020-12-28 Thread Greg Kroah-Hartman
From: Johan Hovold commit c01d2c58698f710c9e13ba3e2d296328606f74fd upstream. Make sure to clear the write-busy flag also in case no new data was submitted due to lack of device buffer space so that writing is resumed once space again becomes available. Fixes: 507ca9bc0476 ("[PATCH] USB: add abi

[PATCH v6 2/7] mm: memcontrol: convert NR_ANON_THPS account to pages

2020-12-28 Thread Muchun Song
Currently we use struct per_cpu_nodestat to cache the vmstat counters, which leads to inaccurate statistics especially THP vmstat counters. In the systems with hundreds of processors it can be GBs of memory. For example, for a 96 CPUs system, the threshold is the maximum number of 125. And the per

[PATCH v6 1/7] mm: memcontrol: fix NR_ANON_THPS accounting in charge moving

2020-12-28 Thread Muchun Song
The unit of NR_ANON_THPS is HPAGE_PMD_NR already. So it should inc/dec by one rather than nr_pages. Fixes: 468c398233da ("mm: memcontrol: switch to native NR_ANON_THPS counter") Signed-off-by: Muchun Song Acked-by: Michal Hocko Acked-by: Johannes Weiner Acked-by: Pankaj Gupta Reviewed-by: Roma

[PATCH 4.4 103/132] ALSA: pcm: oss: Fix a few more UBSAN fixes

2020-12-28 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 11cb881bf075cea41092a20236ba708b18e1dbb2 upstream. There are a few places that call round{up|down}_pow_of_two() with the value zero, and this causes undefined behavior warnings. Avoid calling those macros if such a nonsense value is passed; it's a minor optimization as

[PATCH 4.4 117/132] Btrfs: fix selftests failure due to uninitialized i_mode in test inodes

2020-12-28 Thread Greg Kroah-Hartman
From: Filipe Manana commit 9f7fec0ba89108b9385f1b9fb167861224912a4a upstream Some of the self tests create a test inode, setup some extents and then do calls to btrfs_get_extent() to test that the corresponding extent maps exist and are correct. However btrfs_get_extent(), since the 5.2 merge wi

[PATCH 4.4 107/132] powerpc/perf: Exclude kernel samples while counting events in user space.

2020-12-28 Thread Greg Kroah-Hartman
From: Athira Rajeev commit aa8e21c053d72b6639ea5a7f1d3a1d0209534c94 upstream. Perf event attritube supports exclude_kernel flag to avoid sampling/profiling in supervisor state (kernel). Based on this event attr flag, Monitor Mode Control Register bit is set to freeze on supervisor state. But som

[PATCH 4.4 115/132] btrfs: quota: Set rescan progress to (u64)-1 if we hit last leaf

2020-12-28 Thread Greg Kroah-Hartman
From: Qu Wenruo commoit 6f7de19ed3d4d3526ca5eca428009f97cf969c2f upstream Commit ff3d27a048d9 ("btrfs: qgroup: Finish rescan when hit the last leaf of extent tree") added a new exit for rescan finish. However after finishing quota rescan, we set fs_info->qgroup_rescan_progress to (u64)-1 before

[PATCH 4.4 112/132] USB: serial: keyspan_pda: fix write-wakeup use-after-free

2020-12-28 Thread Greg Kroah-Hartman
From: Johan Hovold commit 37faf50615412947868c49aee62f68233307f4e4 upstream. The driver's deferred write wakeup was never flushed on disconnect, something which could lead to the driver port data being freed while the wakeup work is still scheduled. Fix this by using the usb-serial write wakeup

[PATCH 4.4 108/132] USB: serial: mos7720: fix parallel-port state restore

2020-12-28 Thread Greg Kroah-Hartman
From: Johan Hovold commit 975323ab8f116667676c30ca3502a6757bd89e8d upstream. The parallel-port restore operations is called when a driver claims the port and is supposed to restore the provided state (e.g. saved when releasing the port). Fixes: b69578df7e98 ("USB: usbserial: mos7720: add suppor

[PATCH 4.4 102/132] ACPI: PNP: compare the string length in the matching_id()

2020-12-28 Thread Greg Kroah-Hartman
From: Hui Wang commit b08221c40febcbda9309dd70c61cf1b0ebb0e351 upstream. Recently we met a touchscreen problem on some Thinkpad machines, the touchscreen driver (i2c-hid) is not loaded and the touchscreen can't work. An i2c ACPI device with the name WACF2200 is defined in the BIOS, with the cur

[PATCH 4.4 098/132] media: sunxi-cir: ensure IR is handled when it is continuous

2020-12-28 Thread Greg Kroah-Hartman
From: Sean Young commit 3f56df4c8ffeb120ed41906d3aae71799b7e726a upstream. If a user holds a button down on a remote, then no ir idle interrupt will be generated until the user releases the button, depending on how quickly the remote repeats. No IR is processed until that point, which means that

[PATCH 4.4 063/132] media: saa7146: fix array overflow in vidioc_s_audio()

2020-12-28 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit 8e4d86e241cf035d6d3467cd346e7ce490681937 ] The "a->index" value comes from the user via the ioctl. The problem is that the shift can wrap resulting in setting "mxb->cur_audinput" to an invalid value, which later results in an array overflow. Fixes: 6680427

[PATCH 4.4 101/132] Revert "ACPI / resources: Use AE_CTRL_TERMINATE to terminate resources walks"

2020-12-28 Thread Greg Kroah-Hartman
From: Daniel Scally commit 12fc4dad94dfac25599f31257aac181c691ca96f upstream. This reverts commit 8a66790b7850a6669129af078768a1d42076a0ef. Switching this function to AE_CTRL_TERMINATE broke the documented behaviour of acpi_dev_get_resources() - AE_CTRL_TERMINATE does not, in fact, terminate th

[PATCH 4.4 062/132] NFS: switch nfsiod to be an UNBOUND workqueue.

2020-12-28 Thread Greg Kroah-Hartman
From: NeilBrown [ Upstream commit bf701b765eaa82dd164d65edc5747ec7288bb5c3 ] nfsiod is currently a concurrency-managed workqueue (CMWQ). This means that workitems scheduled to nfsiod on a given CPU are queued behind all other work items queued on any CMWQ on the same CPU. This can introduce une

[PATCH 4.4 097/132] media: gspca: Fix memory leak in probe

2020-12-28 Thread Greg Kroah-Hartman
From: Alan Stern commit e469d0b09a19496e1972a20974bbf55b728151eb upstream. The gspca driver leaks memory when a probe fails. gspca_dev_probe2() calls v4l2_device_register(), which takes a reference to the underlying device node (in this case, a USB interface). But the failure pathway neglects

[PATCH 4.4 084/132] nfc: s3fwrn5: Release the nfc firmware

2020-12-28 Thread Greg Kroah-Hartman
From: Bongsu Jeon [ Upstream commit a4485baefa1efa596702ebffd5a9c760d42b14b5 ] add the code to release the nfc firmware when the firmware image size is wrong. Fixes: c04c674fadeb ("nfc: s3fwrn5: Add driver for Samsung S3FWRN5 NFC Chip") Signed-off-by: Bongsu Jeon Reviewed-by: Krzysztof Kozlows

[PATCH 4.4 082/132] ASoC: wm_adsp: remove "ctl" from list on error in wm_adsp_create_control()

2020-12-28 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit 85a775a0e48f9b73db310d0d762a08a46d63 ] The error handling frees "ctl" but it's still on the "dsp->ctl_list" list so that could result in a use after free. Remove it from the list before returning. Fixes: 2323736dca72 ("ASoC: wm_adsp: Add basic support

[PATCH 4.4 061/132] lockd: dont use interval-based rebinding over TCP

2020-12-28 Thread Greg Kroah-Hartman
From: Calum Mackay [ Upstream commit 9b82d88d5976e5f2b8015d58913654856576ace5 ] NLM uses an interval-based rebinding, i.e. it clears the transport's binding under certain conditions if more than 60 seconds have elapsed since the connection was last bound. This rebinding is not necessary for an

[PATCH 4.4 086/132] checkpatch: fix unescaped left brace

2020-12-28 Thread Greg Kroah-Hartman
From: Dwaipayan Ray [ Upstream commit 03f4935135b9efeb780b970ba023c201f81cf4e6 ] There is an unescaped left brace in a regex in OPEN_BRACE check. This throws a runtime error when checkpatch is run with --fix flag and the OPEN_BRACE check is executed. Fix it by escaping the left brace. Link: h

[PATCH 4.4 081/132] extcon: max77693: Fix modalias string

2020-12-28 Thread Greg Kroah-Hartman
From: Marek Szyprowski [ Upstream commit e1efdb604f5c9903a5d92ef42244009d3c04880f ] The platform device driver name is "max77693-muic", so advertise it properly in the modalias string. This fixes automated module loading when this driver is compiled as a module. Fixes: db1b9037424b ("extcon: MA

[PATCH 4.4 072/132] scsi: pm80xx: Fix error return in pm8001_pci_probe()

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit 97031ccffa4f62728602bfea8439dd045cd3aeb2 ] The driver did not return an error in the case where pm8001_configure_phy_settings() failed. Use rc to store the return value of pm8001_configure_phy_settings(). Link: https://lore.kernel.org/r/20201205115551.20794

[PATCH 4.4 083/132] um: chan_xterm: Fix fd leak

2020-12-28 Thread Greg Kroah-Hartman
From: Anton Ivanov [ Upstream commit 9431f7c199ab0d02da1482d62255e0b4621cb1b5 ] xterm serial channel was leaking a fd used in setting up the port helper This bug is prehistoric - it predates switching to git. The "fixes" header here is really just to mark all the versions we would like this to

[PATCH 4.4 071/132] cpufreq: scpi: Add missing MODULE_ALIAS

2020-12-28 Thread Greg Kroah-Hartman
From: Pali Rohár [ Upstream commit c0382d049d2def37b81e907a8b22661a4a4a6eb5 ] This patch adds missing MODULE_ALIAS for automatic loading of this cpufreq driver when it is compiled as an external module. Signed-off-by: Pali Rohár Fixes: 8def31034d033 ("cpufreq: arm_big_little: add SCPI interfac

[PATCH 4.4 065/132] memstick: r592: Fix error return in r592_probe()

2020-12-28 Thread Greg Kroah-Hartman
From: Jing Xiangfeng [ Upstream commit db29d3d1c2451e673e29c7257471e3ce9d50383a ] Fix to return a error code from the error handling case instead of 0. Fixes: 926341250102 ("memstick: add driver for Ricoh R5C592 card reader") Signed-off-by: Jing Xiangfeng Link: https://lore.kernel.org/r/202011

[PATCH 4.4 022/132] scsi: bnx2i: Requires MMU

2020-12-28 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit 2d586494c4a001312650f0b919d534e429dd1e09 ] The SCSI_BNX2_ISCSI kconfig symbol selects CNIC and CNIC selects UIO, which depends on MMU. Since 'select' does not follow dependency chains, add the same MMU dependency to SCSI_BNX2_ISCSI. Quietens this kconfig wa

[PATCH 4.4 069/132] cpufreq: highbank: Add missing MODULE_DEVICE_TABLE

2020-12-28 Thread Greg Kroah-Hartman
From: Pali Rohár [ Upstream commit 9433777a6e0aae27468d3434b75cd51bb88ff711 ] This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this cpufreq driver when it is compiled as an external module. Signed-off-by: Pali Rohár Fixes: 6754f55

[PATCH 4.4 056/132] ARM: dts: at91: sama5d3_xplained: add pincontrol for USB Host

2020-12-28 Thread Greg Kroah-Hartman
From: Cristian Birsan [ Upstream commit e1062fa7292f1e3744db0a487c4ac0109e09b03d ] The pincontrol node is needed for USB Host since Linux v5.7-rc1. Without it the driver probes but VBus is not powered because of wrong pincontrol configuration. Fixes: b7c2b61570798 ("ARM: at91: add Atmel's SAMA5

[PATCH 4.4 057/132] orinoco: Move context allocation after processing the skb

2020-12-28 Thread Greg Kroah-Hartman
From: Sebastian Andrzej Siewior [ Upstream commit a31eb615646a63370aa1da1053c45439c7653d83 ] ezusb_xmit() allocates a context which is leaked if orinoco_process_xmit_skb() returns an error. Move ezusb_alloc_ctx() after the invocation of orinoco_process_xmit_skb() because the context is not need

[PATCH 4.4 029/132] usb: chipidea: ci_hdrc_imx: Pass DISABLE_DEVICE_STREAMING flag to imx6ul

2020-12-28 Thread Greg Kroah-Hartman
From: Fabio Estevam commit c7721e15f434920145c376e8fe77e1c079fc3726 upstream. According to the i.MX6UL Errata document: https://www.nxp.com/docs/en/errata/IMX6ULCE.pdf ERR007881 also affects i.MX6UL, so pass the CI_HDRC_DISABLE_DEVICE_STREAMING flag to workaround the issue. Fixes: 52fe568e5d71

[PATCH 4.4 068/132] clocksource/drivers/arm_arch_timer: Correct fault programming of CNTKCTL_EL1.EVNTI

2020-12-28 Thread Greg Kroah-Hartman
From: Keqian Zhu [ Upstream commit 8b7770b877d187bfdae1eaf587bd2b792479a31c ] ARM virtual counter supports event stream, it can only trigger an event when the trigger bit (the value of CNTKCTL_EL1.EVNTI) of CNTVCT_EL0 changes, so the actual period of event stream is 2^(cntkctl_evnti + 1). For ex

[PATCH 4.4 054/132] memstick: fix a double-free bug in memstick_check

2020-12-28 Thread Greg Kroah-Hartman
From: Qinglang Miao [ Upstream commit e3e9ced5c93803d5b2ea1942c4bf0192622531d6 ] kfree(host->card) has been called in put_device so that another kfree would raise cause a double-free bug. Fixes: 0193383a5833 ("memstick: core: fix device_register() error handling") Reported-by: Hulk Robot Signe

Re: [PATCH v2 0/3] perf arm64: Support SDT

2020-12-28 Thread Arnaldo Carvalho de Melo
Em Fri, Dec 25, 2020 at 01:27:48PM +0800, Leo Yan escreveu: > This patch is to enable SDT on Arm64. > > Since Arm64 SDT marker in ELF file is different from other archs, > especially for using stack pointer (sp) to retrieve data for local > variables, patch 01 is used to fixup the arguments for th

[PATCH 4.4 031/132] Bluetooth: Fix slab-out-of-bounds read in hci_le_direct_adv_report_evt()

2020-12-28 Thread Greg Kroah-Hartman
From: Peilin Ye commit f7e0e8b2f1b0a09b527885babda3e912ba820798 upstream. `num_reports` is not being properly checked. A malformed event packet with a large `num_reports` number makes hci_le_direct_adv_report_evt() read out of bounds. Fix it. Cc: sta...@vger.kernel.org Fixes: 2f010b55884e ("Blu

[PATCH 4.4 042/132] net: evaluate net.ipvX.conf.all.ignore_routes_with_linkdown

2020-12-28 Thread Greg Kroah-Hartman
From: Vincent Bernat [ Upstream commit c0c5a60f0f1311bcf08bbe735122096d6326fb5b ] Introduced in 0eeb075fad73, the "ignore_routes_with_linkdown" sysctl ignores a route whose interface is down. It is provided as a per-interface sysctl. However, while a "all" variant is exposed, it was a noop since

[PATCH 4.4 044/132] RDMa/mthca: Work around -Wenum-conversion warning

2020-12-28 Thread Greg Kroah-Hartman
From: Arnd Bergmann [ Upstream commit fbb7dc5db6dee553b5a07c27e86364a5223e244c ] gcc points out a suspicious mixing of enum types in a function that converts from MTHCA_OPCODE_* values to IB_WC_* values: drivers/infiniband/hw/mthca/mthca_cq.c: In function 'mthca_poll_one': drivers/infiniband/hw

[PATCH 4.4 037/132] Bluetooth: Fix null pointer dereference in hci_event_packet()

2020-12-28 Thread Greg Kroah-Hartman
From: Anmol Karn [ Upstream commit 6dfccd13db2ff2b709ef60a50163925d477549aa ] AMP_MGR is getting derefernced in hci_phy_link_complete_evt(), when called from hci_event_packet() and there is a possibility, that hcon->amp_mgr may not be found when accessing after initialization of hcon. - net/blu

[PATCH 4.4 034/132] crypto: talitos - Fix return type of current_desc_hdr()

2020-12-28 Thread Greg Kroah-Hartman
From: Christophe Leroy [ Upstream commit 0237616173fd363a54bd272aa3bd376faa1d7caa ] current_desc_hdr() returns a u32 but in fact this is a __be32, leading to a lot of sparse warnings. Change the return type to __be32 and ensure it is handled as sure by the caller. Fixes: 3e721aeb3df3 ("crypto:

[PATCH 4.4 004/132] platform/x86: acer-wmi: add automatic keyboard background light toggle key as KEY_LIGHTS_TOGGLE

2020-12-28 Thread Greg Kroah-Hartman
From: Timo Witte [ Upstream commit 9e7a005ad56aa7d6ea5830c5ffcc60bf35de380b ] Got a dmesg message on my AMD Renoir based Acer laptop: "acer_wmi: Unknown key number - 0x84" when toggling keyboard background light Signed-off-by: Timo Witte Reviewed-by: "Lee, Chun-Yi" Link: https://lore.kernel.o

[PATCH 4.4 009/132] net/mlx4_en: Avoid scheduling restart task if it is already running

2020-12-28 Thread Greg Kroah-Hartman
From: Moshe Shemesh [ Upstream commit fed91613c9dd455dd154b22fa8e11b8526466082 ] Add restarting state flag to avoid scheduling another restart task while such task is already running. Change task name from watchdog_task to restart_task to better fit the task role. Fixes: 1e338db56e5a ("mlx4_en:

[PATCH 4.4 040/132] spi: tegra20-sflash: fix reference leak in tegra_sflash_resume

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit 3482e797ab688da6703fe18d8bad52f94199f4f2 ] pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to pm_runtime_put_noidle will result in reference leak in tegra_sflash_resume, so we should fix it. Fixes: 8528547bcc336 ("spi: tegra: a

[PATCH 4.4 035/132] spi: img-spfi: fix reference leak in img_spfi_resume

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit ee5558a9084584015c8754ffd029ce14a5827fa8 ] pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to pm_runtime_put_noidle will result in reference leak in img_spfi_resume, so we should fix it. Fixes: deba25800a12b ("spi: Add driver f

[PATCH 4.4 007/132] pinctrl: amd: remove debounce filter setting in IRQ type setting

2020-12-28 Thread Greg Kroah-Hartman
From: Coiby Xu commit 47a0001436352c9853d72bf2071e85b316d688a2 upstream. Debounce filter setting should be independent from IRQ type setting because according to the ACPI specs, there are separate arguments for specifying debounce timeout and IRQ type in GpioIo() and GpioInt(). Together with co

[PATCH 4.4 006/132] Input: i8042 - add Acer laptops to the i8042 reset list

2020-12-28 Thread Greg Kroah-Hartman
From: Chris Chiu commit ce6520b0eafad5962ffc21dc47cd7bd3250e9045 upstream. The touchpad operates in Basic Mode by default in the Acer BIOS setup, but some Aspire/TravelMate models require the i8042 to be reset in order to be correctly detected. Signed-off-by: Chris Chiu Link: https://lore.kern

[PATCH 4.4 038/132] spi: spi-ti-qspi: fix reference leak in ti_qspi_setup

2020-12-28 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit 45c0cba753641e5d7c3207f04241bd0e7a021698 ] pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to pm_runtime_put_noidle will result in reference leak in ti_qspi_setup, so we should fix it. Fixes: 505a14954e2d7 ("spi/qspi: Add qspi

[PATCH 4.4 033/132] ARM: p2v: fix handling of LPAE translation in BE mode

2020-12-28 Thread Greg Kroah-Hartman
From: Ard Biesheuvel [ Upstream commit 4e79f0211b473f8e1eab8211a9fd50cc41a3a061 ] When running in BE mode on LPAE hardware with a PA-to-VA translation that exceeds 4 GB, we patch bits 39:32 of the offset into the wrong byte of the opcode. So fix that, by rotating the offset in r0 to the right by

[PATCH 4.4 032/132] drm/gma500: fix double free of gma_connector

2020-12-28 Thread Greg Kroah-Hartman
From: Tom Rix [ Upstream commit 4e19d51ca5b28a1d435a844c7b2a8e1b1b6fa237 ] clang static analysis reports this problem: cdv_intel_dp.c:2101:2: warning: Attempt to free released memory kfree(gma_connector); ^~~~ In cdv_intel_dp_init() when the call to cdv_intel_ed

[PATCH 4.4 003/132] ARC: stack unwinding: dont assume non-current task is sleeping

2020-12-28 Thread Greg Kroah-Hartman
From: Vineet Gupta [ Upstream commit e42404fa10fd11fe72d0a0e149a321d10e577715 ] To start stack unwinding (SP, PC and BLINK) are needed. When the explicit execution context (pt_regs etc) is not available, unwinder assumes the task is sleeping (in __switch_to()) and fetches SP and BLINK from kerne

[PATCH 4.4 018/132] USB: sisusbvga: Make console support depend on BROKEN

2020-12-28 Thread Greg Kroah-Hartman
From: Thomas Gleixner commit 862ee699fefe1e6d6f2c1518395f0b999b8beb15 upstream. The console part of sisusbvga is broken vs. printk(). It uses in_atomic() to detect contexts in which it cannot sleep despite the big fat comment in preempt.h which says: Do not use in_atomic() in driver code. in_at

[PATCH 4.4 020/132] serial: 8250_omap: Avoid FIFO corruption caused by MDR1 access

2020-12-28 Thread Greg Kroah-Hartman
From: Alexander Sverdlin commit d96f04d347e4011977abdbb4da5d8f303ebd26f8 upstream. It has been observed that once per 300-1300 port openings the first transmitted byte is being corrupted on AM3352 ("v" written to FIFO appeared as "e" on the wire). It only happened if single byte has been transmi

[PATCH 4.4 019/132] ALSA: pcm: oss: Fix potential out-of-bounds shift

2020-12-28 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 175b8d89fe292796811fdee87fa39799a5b6b87a upstream. syzbot spotted a potential out-of-bounds shift in the PCM OSS layer where it calculates the buffer size with the arbitrary shift value given via an ioctl. Add a range check for avoiding the undefined behavior. As the v

[PATCH 4.4 016/132] ALSA: usb-audio: Fix control access overflow errors from chmap

2020-12-28 Thread Greg Kroah-Hartman
From: Takashi Iwai commit c6dde8ffd071aea9d1ce64279178e470977b235c upstream. The current channel-map control implementation in USB-audio driver may lead to an error message like "control 3:0:0:Playback Channel Map:0: access overflow" when CONFIG_SND_CTL_VALIDATION is set. It's because the chm

[PATCH 4.4 014/132] USB: add RESET_RESUME quirk for Snapscan 1212

2020-12-28 Thread Greg Kroah-Hartman
From: Oliver Neukum commit 08a02f954b0def3ada8ed6d4b2c7bcb67e885e9c upstream. I got reports that some models of this old scanner need this when using runtime PM. Signed-off-by: Oliver Neukum Cc: stable Link: https://lore.kernel.org/r/20201207130323.23857-1-oneu...@suse.com Signed-off-by: Greg

Re: [PATCH] media: v4l2-async: Put fwnode after last access

2020-12-28 Thread Ezequiel Garcia
On Mon, 2020-12-28 at 15:16 +0200, Laurent Pinchart wrote: > Hi Ezequiel, > > Thank you for the patch. > > On Mon, Dec 28, 2020 at 09:17:25AM -0300, Ezequiel Garcia wrote: > > fwnode_handle_put() should be called after the fwnode > > is last accessed. Fix it. > > > > Fixes: b98158d837ef ("media:

Bug in __mmdrop() triggered by io-uring on v5.11-rc1

2020-12-28 Thread Christian Brauner
Hey everyone, The following oops can be triggered on a pristine v5.11-rc1 which I discovered while rebasing my idmapped mount patchset onto v5.11-rc1: [ 577.716339][ T7216] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009)/LXD, BIOS 0.0.0 02/06/2015 [ 577.718584][ T7216] Call Trace: [ 577.71

Re: [PATCH 5.4 000/453] 5.4.86-rc1 review

2020-12-28 Thread Naresh Kamboju
On Mon, 28 Dec 2020 at 19:09, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.4.86 release. > There are 453 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. > > Res

Re: [PATCH v2] drivers: soc: atmel: Avoid calling at91_soc_init on non AT91 SoCs

2020-12-28 Thread Alexandre Belloni
On Fri, 11 Dec 2020 13:58:46 +, Sudeep Holla wrote: > Since at91_soc_init is called unconditionally from atmel_soc_device_init, > we get the following warning on all non AT91 SoCs: > " AT91: Could not find identification node" > > Fix the same by filtering with allowed AT91 SoC list. Ap

[PATCH RESEND] ds2490: prevent dead lock during detection of w1_therm sensors

2020-12-28 Thread Hans-Frieder Vogt
(patch resend because seems to have disappeared) with the introduction of the ext_power sysfs entry, commit b7bb6ca17a90f47c2fe2848531b5bbaf27a65ba7 (w1_therm: adding ext_power sysfs entry), a bus locking error got exposed in ds2490: bus_mutex needs to be released before calling the detection cal

Re: [PATCH v3 14/14] ipu3-cio2: Add cio2-bridge to ipu3-cio2 driver

2020-12-28 Thread Sakari Ailus
Hi Andy, Daniel, On Thu, Dec 24, 2020 at 02:54:44PM +0200, Andy Shevchenko wrote: > On Thu, Dec 24, 2020 at 3:12 AM Daniel Scally wrote: > > > > Currently on platforms designed for Windows, connections between CIO2 and > > sensors are not properly defined in DSDT. This patch extends the ipu3-cio2

Re: [PATCH v3 06/14] include: fwnode.h: Define format macros for ports and endpoints

2020-12-28 Thread Sakari Ailus
On Mon, Dec 28, 2020 at 06:30:24PM +0200, Sakari Ailus wrote: > Hi Daniel, Andy, > > On Thu, Dec 24, 2020 at 01:08:59AM +, Daniel Scally wrote: > > OF, ACPI and software_nodes all implement graphs including nodes for ports > > and endpoints. These are all intended to be named with a common sch

Re: [RFC please help] membarrier: Rewrite sync_core_before_usermode()

2020-12-28 Thread Andy Lutomirski
On Mon, Dec 28, 2020 at 2:25 AM Russell King - ARM Linux admin wrote: > > On Sun, Dec 27, 2020 at 01:36:13PM -0800, Andy Lutomirski wrote: > > On Sun, Dec 27, 2020 at 12:18 PM Mathieu Desnoyers > > wrote: > > > > > > - On Dec 27, 2020, at 1:28 PM, Andy Lutomirski l...@kernel.org wrote: > > >

Re: [PATCH] ALSA: hda: Resume codec for system suspend if LED is controlled by codec

2020-12-28 Thread Kai-Heng Feng
On Sat, Dec 26, 2020 at 3:46 PM Takashi Iwai wrote: > > On Fri, 25 Dec 2020 17:47:23 +0100, > Kai-Heng Feng wrote: > > > > Laptop with codec controlled LEDs takes a very long time to suspend > > after commit 215a22ed31a1 ("ALSA: hda: Refactor codec PM to use > > direct-complete optimization"): > >

Re: [PATCH v1 01/19] x86/insn: Rename insn_decode() to insn_decode_regs()

2020-12-28 Thread Sean Christopherson
On Wed, Dec 23, 2020, Borislav Petkov wrote: > From: Borislav Petkov > > Rename insn_decode() to insn_decode_regs() to denote that it receives > regs as param and free the name for a more generic version of the > function. Can we add a preposition in there, e.g. insn_decode_from_regs() or insn_d

[PATCH] Fix default q_len for usb_f_printer gadget driver

2020-12-28 Thread Michael R Sweet
The usb_f_printer gadget driver uses a default q_len value of *0* which prevents any IO from occurring. Moreover, once the driver is instantiated it is impossible to change the q_len value. The following patch uses a default q_len value of 10 which matches the legacy g_printer gadget driver. Thi

Re: [PATCH RFC v2] docs: experimental: build PDF with rst2pdf

2020-12-28 Thread Nícolas F . R . A . Prado
On Fri, Dec 11, 2020 at 05:03:50PM -0700, Jonathan Corbet wrote: > The right solution is probably something like this: > > try: > import rst2pdf > extensions.append('rst2pdf.pdfbuilder') > except ModuleNotFoundError: > pass # no rst2pdf for you I tested i

Re: [RFC please help] membarrier: Rewrite sync_core_before_usermode()

2020-12-28 Thread Russell King - ARM Linux admin
On Mon, Dec 28, 2020 at 09:14:23AM -0800, Andy Lutomirski wrote: > On Mon, Dec 28, 2020 at 2:25 AM Russell King - ARM Linux admin > wrote: > > > > On Sun, Dec 27, 2020 at 01:36:13PM -0800, Andy Lutomirski wrote: > > > On Sun, Dec 27, 2020 at 12:18 PM Mathieu Desnoyers > > > wrote: > > > > > > > >

Re: [PATCH 3/3] overlayfs: Report writeback errors on upper

2020-12-28 Thread Jeff Layton
On Mon, 2020-12-28 at 15:56 +, Matthew Wilcox wrote: > On Mon, Dec 28, 2020 at 08:25:50AM -0500, Jeff Layton wrote: > > To be clear, the main thing you'll lose with the method above is the > > ability to see an unseen error on a newly opened fd, if there was an > > overlayfs mount using the sam

Re: [PATCH 1/2] mm: memcg: fix memcg file_dirty numa stat

2020-12-28 Thread Yang Shi
On Sun, Dec 27, 2020 at 10:13 AM Shakeel Butt wrote: > > The kernel updates the per-node NR_FILE_DIRTY stats on page migration > but not the memcg numa stats. That was not an issue until recently the > commit 5f9a4f4a7096 ("mm: memcontrol: add the missing numa_stat interface > for cgroup v2") expo

[tip: x86/build] x86/build: Add {kvm_guest,xen}.config targets to make help's output

2020-12-28 Thread tip-bot2 for Borislav Petkov
The following commit has been merged into the x86/build branch of tip: Commit-ID: fbaf0aa8c7a8d4f7c3e4664f2f03ec8c7cc79910 Gitweb: https://git.kernel.org/tip/fbaf0aa8c7a8d4f7c3e4664f2f03ec8c7cc79910 Author:Borislav Petkov AuthorDate:Thu, 17 Dec 2020 13:13:34 +01:00 Committ

Re: [PATCH 2/2] mm: fix numa stats for thp migration

2020-12-28 Thread Yang Shi
On Sun, Dec 27, 2020 at 10:16 AM Shakeel Butt wrote: > > On Sun, Dec 27, 2020 at 10:14 AM Shakeel Butt wrote: > > > > Currently the kernel is not correctly updating the numa stats for > > NR_FILE_PAGES and NR_SHMEM on THP migration. Fix that. For NR_FILE_DIRTY > > and NR_ZONE_WRITE_PENDING, altho

[tip: x86/build] x86/build: Realign archhelp

2020-12-28 Thread tip-bot2 for Borislav Petkov
The following commit has been merged into the x86/build branch of tip: Commit-ID: ac5d08870d0b94cbfa8103c9e294de2b96f249bc Gitweb: https://git.kernel.org/tip/ac5d08870d0b94cbfa8103c9e294de2b96f249bc Author:Borislav Petkov AuthorDate:Thu, 17 Dec 2020 14:42:00 +01:00 Committ

Re: [PATCH 5.4 000/453] 5.4.86-rc1 review

2020-12-28 Thread Guenter Roeck
On 12/28/20 4:43 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.4.86 release. > There are 453 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 shou

Re: [PATCH v5 2/4] perf: support build BPF skeletons with perf

2020-12-28 Thread Song Liu
> On Dec 28, 2020, at 4:55 AM, Jiri Olsa wrote: > > On Tue, Dec 15, 2020 at 10:14:10AM -0800, Song Liu wrote: > > SNIP > >> HOSTCC ?= gcc >> HOSTLD ?= ld >> HOSTAR ?= ar >> +CLANG ?= clang >> +LLVM_STRIP ?= llvm-strip >> >> PKG_CONFIG = $(CROSS_COMPILE)pkg-config >> LLVM_CONFIG ?= llvm

Re: [PATCH] tty: serial: amba-pl011: added RS485 support v2

2020-12-28 Thread Stefan Wahren
Hi Ivan, please place the patch version between [ ... ] in the subject. Am 28.12.20 um 17:41 schrieb Ivan Sistik: > AMBA PL011 do not have hardware support for RS485. This implementation is > for drive enable signal (DE), which switch direction of RS485 driver chip. > This signal si drived by RTS

<    4   5   6   7   8   9   10   11   12   13   >