[PATCH 5.8 294/464] powerpc/watchpoint: Fix DAWR exception constraint

2020-08-17 Thread Greg Kroah-Hartman
From: Ravi Bangoria [ Upstream commit f6780ce619f8daa285760302d56e95892087bd1f ] Pedro Miraglia Franco de Carvalho noticed that on p8/p9, DAR value is inconsistent with different type of load/store. Like for byte,word etc. load/stores, DAR is set to the address of the first byte of overlap

Re: [PATCH][V3] of/address: check for invalid range.cpu_addr

2020-08-17 Thread Rob Herring
On Mon, 17 Aug 2020 12:32:08 +0100, Colin King wrote: > From: Colin Ian King > > Currently invalid CPU addresses are not being sanity checked resulting in > SATA setup failure on a SynQuacer SC2A11 development machine. The original > check was removed by and earlier commit, so add a sanity check

[PATCH 5.8 295/464] powerpc/watchpoint: Fix DAWR exception for CACHEOP

2020-08-17 Thread Greg Kroah-Hartman
From: Ravi Bangoria [ Upstream commit f3c832f1350bcf1e6906113ee3168066f4235dbe ] 'ea' returned by analyse_instr() needs to be aligned down to cache block size for CACHEOP instructions. analyse_instr() does not set size for CACHEOP, thus size also needs to be calculated manually. Fixes:

[PATCH 5.8 302/464] Smack: fix another vsscanf out of bounds

2020-08-17 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit a6bd4f6d9b07452b0b19842044a6c3ea384b0b88 ] This is similar to commit 84e99e58e8d1 ("Smack: slab-out-of-bounds in vsscanf") where we added a bounds check on "rule". Reported-by: syzbot+a22c6092d003d6fe1...@syzkaller.appspotmail.com Fixes: f7112e6c9abf

Re: [PATCH 06/20] ethernet: chelsio: convert tasklets to use new tasklet_setup() API

2020-08-17 Thread Jakub Kicinski
On Mon, 17 Aug 2020 13:54:20 +0530 Allen Pais wrote: > In preparation for unconditionally passing the > struct tasklet_struct pointer to all tasklet > callbacks, switch to using the new tasklet_setup() > and from_tasklet() to pass the tasklet pointer explicitly. > > Signed-off-by: Romain Perier

[PATCH 5.8 285/464] usb: dwc3: meson-g12a: fix shared reset control use

2020-08-17 Thread Greg Kroah-Hartman
From: Dan Robertson [ Upstream commit 7a410953d1fb4dbe91ffcfdee9cbbf889d19b0d7 ] The reset is a shared reset line, but reset_control_reset is still used and reset_control_deassert is not guaranteed to have been called before the first reset_control_assert call. When suspending the following

[PATCH 5.8 300/464] PCI: cadence: Fix updating Vendor ID and Subsystem Vendor ID register

2020-08-17 Thread Greg Kroah-Hartman
From: Kishon Vijay Abraham I [ Upstream commit e3bca37d15dca118f2ef1f0a068bb6e07846ea20 ] Commit 1b79c5284439 ("PCI: cadence: Add host driver for Cadence PCIe controller") in order to update Vendor ID, directly wrote to PCI_VENDOR_ID register. However PCI_VENDOR_ID in root port configuration

[PATCH 5.8 301/464] RDMA/core: Fix return error value in _ib_modify_qp() to negative

2020-08-17 Thread Greg Kroah-Hartman
From: Li Heng [ Upstream commit 47fda651d5af2506deac57d54887cf55ce26e244 ] The error codes in _ib_modify_qp() are supposed to be negative errno. Fixes: 7a5c938b9ed0 ("IB/core: Check for rdma_protocol_ib only after validating port_num") Link:

[PATCH 5.8 299/464] PCI: cadence: Fix cdns_pcie_{host|ep}_setup() error path

2020-08-17 Thread Greg Kroah-Hartman
From: Kishon Vijay Abraham I [ Upstream commit 19abcd790b51b26d775e1170ba2ac086823cceeb ] commit bd22885aa188 ("PCI: cadence: Refactor driver to use as a core library") while refactoring the Cadence PCIe driver to be used as library, removed pm_runtime_get_sync() from cdns_pcie_ep_setup() and

[PATCH 5.8 306/464] Bluetooth: hci_h5: Set HCI_UART_RESET_ON_INIT to correct flags

2020-08-17 Thread Greg Kroah-Hartman
From: Nicolas Boichat [ Upstream commit a7ad4b6119d740b1ec5788f1b98be0fd1c1b5a5a ] HCI_UART_RESET_ON_INIT belongs in hdev_flags, not flags. Fixes: ce945552fde4a09 ("Bluetooth: hci_h5: Add support for serdev enumerated devices") Signed-off-by: Nicolas Boichat Reviewed-by: Hans de Goede

Re: [PATCH 0/8] scsi: convert tasklets to use new tasklet_setup()

2020-08-17 Thread Kees Cook
On Mon, Aug 17, 2020 at 07:41:58AM -0700, James Bottomley wrote: > On Mon, 2020-08-17 at 14:24 +0530, Allen Pais wrote: > > From: Allen Pais > > > > Commit 12cc923f1ccc ("tasklet: Introduce new initialization API")' > > introduced a new tasklet initialization API. This series converts > > all

[PATCH 5.8 304/464] power: supply: check if calc_soc succeeded in pm860x_init_battery

2020-08-17 Thread Greg Kroah-Hartman
From: Tom Rix [ Upstream commit ccf193dee1f0fff55b556928591f7818bac1b3b1 ] clang static analysis flags this error 88pm860x_battery.c:522:19: warning: Assigned value is garbage or undefined [core.uninitialized.Assign] info->start_soc = soc; ^

[PATCH 5.8 305/464] Bluetooth: btusb: Fix and detect most of the Chinese Bluetooth controllers

2020-08-17 Thread Greg Kroah-Hartman
From: Ismael Ferreras Morezuelas [ Upstream commit cde1a8a992875a7479c4321b2a4a190c2e92ec2a ] For some reason they tend to squat on the very first CSR/ Cambridge Silicon Radio VID/PID instead of paying fees. This is an extremely common problem; the issue goes as back as 2013 and these devices

[PATCH 5.8 313/464] xfs: fix inode allocation block res calculation precedence

2020-08-17 Thread Greg Kroah-Hartman
From: Brian Foster [ Upstream commit b2a8864728683443f34a9fd33a2b78b860934cc1 ] The block reservation calculation for inode allocation is supposed to consist of the blocks required for the inode chunk plus (maxlevels-1) of the inode btree multiplied by the number of inode btrees in the fs (2

[PATCH 5.8 310/464] Bluetooth: hci_qca: Stop collecting memdump again for command timeout during SSR

2020-08-17 Thread Greg Kroah-Hartman
From: Venkata Lakshmi Narayana Gubba [ Upstream commit 58789a1990c1a849a461ac912e72a698a771951a ] Setting memdump state to idle prior to setting of callback function pointer for command timeout to NULL,causing the issue.Now moved the initialisation of memdump state to qca_setup(). Fixes:

[PATCH 5.8 312/464] net: dsa: rtl8366: Fix VLAN set-up

2020-08-17 Thread Greg Kroah-Hartman
From: Linus Walleij [ Upstream commit 788abc6d9d278ed6fa1fa94db2098481a04152b7 ] Alter the rtl8366_vlan_add() to call rtl8366_set_vlan() inside the loop that goes over all VIDs since we now properly support calling that function more than once. Augment the loop to postincrement as this is more

[PATCH 5.8 314/464] xfs: clear XFS_DQ_FREEING if we cant lock the dquot buffer to flush

2020-08-17 Thread Greg Kroah-Hartman
From: Darrick J. Wong [ Upstream commit c97738a960a86081a147e7d436138e6481757445 ] In commit 8d3d7e2b35ea, we changed xfs_qm_dqpurge to bail out if we can't lock the dquot buf to flush the dquot. This prevents the AIL from blocking on the dquot, but it also forgets to clear the FREEING flag on

drivers/media/platform/fsl-viu.c:36: warning: "out_be32" redefined

2020-08-17 Thread kernel test robot
-20200817 (attached as .config) compiler: m68k-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout a19f228b8dd9a67e8de4ebd4eac8a4c94ec39d1a

Re: [RFC PATCH 0/8] memcg: Enable fine-grained per process memory control

2020-08-17 Thread Michal Hocko
On Mon 17-08-20 11:55:37, Waiman Long wrote: > On 8/17/20 11:26 AM, Michal Hocko wrote: > > On Mon 17-08-20 10:08:23, Waiman Long wrote: > > > Memory controller can be used to control and limit the amount of > > > physical memory used by a task. When a limit is set in "memory.high" in > > > a v2

[PATCH 5.8 291/464] net: dsa: mv88e6xxx: MV88E6097 does not support jumbo configuration

2020-08-17 Thread Greg Kroah-Hartman
From: Chris Packham [ Upstream commit 0f3c66a3c7b4e8b9f654b3c998e9674376a51b0f ] The MV88E6097 chip does not support configuring jumbo frames. Prior to commit 5f430d65 only the 6352, 6351, 6165 and 6320 chips configured jumbo mode. The refactor accidentally added the function for the 6097.

Re: [PATCH 08/20] ethernet: hinic: convert tasklets to use new tasklet_setup() API

2020-08-17 Thread Jakub Kicinski
On Mon, 17 Aug 2020 13:54:22 +0530 Allen Pais wrote: > In preparation for unconditionally passing the > struct tasklet_struct pointer to all tasklet > callbacks, switch to using the new tasklet_setup() > and from_tasklet() to pass the tasklet pointer explicitly. > > Signed-off-by: Romain Perier

[PATCH 5.8 290/464] scsi: core: Add missing scsi_device_put() in scsi_host_block()

2020-08-17 Thread Greg Kroah-Hartman
From: Ye Bin [ Upstream commit f30785db7546520acd53aac7497d42352ff031e0 ] The scsi_host_block() case was missing in commit 4dea170f4fb2 ("scsi: core: Fix incorrect usage of shost_for_each_device"). Link: https://lore.kernel.org/r/20200717090921.29243-1-yebi...@huawei.com Fixes: 2bb955840c1d

[PATCH 5.8 331/464] ASoC: meson: axg-tdm-formatters: fix sclk inversion

2020-08-17 Thread Greg Kroah-Hartman
From: Jerome Brunet [ Upstream commit 0d3f01dcdc234001f979a0af0b6b31cb9f25b6c1 ] After carefully checking, it appears that both tdmout and tdmin require the rising edge of the sclk they get to be synchronized with the frame sync event (which should be a rising edge of lrclk). TDMIN was

[PATCH 5.8 333/464] net: ll_temac: Use devm_platform_ioremap_resource_byname()

2020-08-17 Thread Greg Kroah-Hartman
From: Wang Hai [ Upstream commit bd69058f50d5ffa659423bcfa6fe6280ce9c760a ] platform_get_resource() may fail and return NULL, so we had better check its return value to avoid a NULL pointer dereference a bit later in the code. Fix it to use devm_platform_ioremap_resource_byname() instead of

[PATCH 5.8 332/464] ASoC: soc-core: Fix regression causing sysfs entries to disappear

2020-08-17 Thread Greg Kroah-Hartman
From: Charles Keepax [ Upstream commit 5c74c9d34aec1ac756de6979dd5580096aba8643 ] The allocation order of things in soc_new_pcm_runtime was changed to move the device_register before the allocation of the rtd structure. This was to allow the rtd allocation to be managed by devm. However

[PATCH 5.8 334/464] drm/msm/dpu: dont use INTF_INPUT_CTRL feature on sdm845

2020-08-17 Thread Greg Kroah-Hartman
From: Jonathan Marek [ Upstream commit cace3ac4bc08c5261aa4360a7d7aacc45a362fc2 ] The INTF_INPUT_CTRL feature is not available on sdm845, so don't set it. This also adds separate feature bits for INTF (based on downstream) instead of using CTL feature bit for it, and removes the unnecessary

[PATCH 5.8 335/464] libbpf: Fix register in PT_REGS MIPS macros

2020-08-17 Thread Greg Kroah-Hartman
From: Jerry Crunchtime [ Upstream commit 1acf8f90ea7ee59006d0474275922145ac291331 ] The o32, n32 and n64 calling conventions require the return value to be stored in $v0 which maps to $2 register, i.e., the register 2. Fixes: c1932cd ("bpf: Add MIPS support to samples/bpf.") Signed-off-by:

Re: [PATCH v4 00/20] gpio: cdev: add uAPI v2

2020-08-17 Thread Bartosz Golaszewski
On Mon, Aug 17, 2020 at 8:40 PM Andy Shevchenko wrote: > > On Mon, Aug 17, 2020 at 08:24:24PM +0200, Bartosz Golaszewski wrote: > > On Fri, Aug 14, 2020 at 5:03 AM Kent Gibson wrote: > > > > > > This patchset defines and implements adds a new version of the > > > GPIO CDEV uAPI to address

[PATCH 5.8 340/464] s390/qeth: tolerate pre-filled RX buffer

2020-08-17 Thread Greg Kroah-Hartman
From: Julian Wiedmann [ Upstream commit eff73e16ee116f6eafa2be48fab42659a27cb453 ] When preparing a buffer for RX refill, tolerate that it already has a pool_entry attached. Otherwise we could easily leak such a pool_entry when re-driving the RX refill after an error (from eg. do_qdio()). This

[PATCH 5.8 337/464] ASoC: core: use less strict tests for dailink capabilities

2020-08-17 Thread Greg Kroah-Hartman
From: Pierre-Louis Bossart [ Upstream commit 4f8721542f7b75954bfad98c51aa59d683d35b50 ] Previous updates to set dailink capabilities and check dailink capabilities were based on a flawed assumption that all dais support the same capabilities as the dailink. This is true for TDM configurations

Re: [GIT PULL] fscache rewrite -- please drop for now

2020-08-17 Thread Steven French
On 8/10/20 12:06 PM, Jeff Layton wrote: On Mon, 2020-08-10 at 12:35 -0400, David Wysochanski wrote: On Mon, Aug 10, 2020 at 11:48 AM David Howells wrote: Steve French wrote: cifs.ko also can set rsize quite small (even 1K for example, although that will be more than 10x slower than the

[PATCH v2] checkpatch: add --kconfig-prefix

2020-08-17 Thread Jerome Forissier
Kconfig allows to customize the CONFIG_ prefix via the $CONFIG_ environment variable. Out-of-tree projects may therefore use Kconfig with a different prefix, or they may use a custom configuration tool which does not use the CONFIG_ prefix at all. Such projects may still want to adhere to the

[PATCH 5.8 318/464] selftests/powerpc: Fix CPU affinity for child process

2020-08-17 Thread Greg Kroah-Hartman
From: Harish [ Upstream commit 854eb5022be04f81e318765f089f41a57c8e5d83 ] On systems with large number of cpus, test fails trying to set affinity by calling sched_setaffinity() with smaller size for affinity mask. This patch fixes it by making sure that the size of allocated affinity mask is

[PATCH 5.8 336/464] MIPS: only register FTLBPar exception handler for supported models

2020-08-17 Thread Greg Kroah-Hartman
From: WANG Xuerui [ Upstream commit efd1b4ad3d5178a74387bc5ff69a2d4585f586c6 ] Previously ExcCode 16 is unconditionally treated as the FTLB parity exception (FTLBPar), but in fact its semantic is implementation- dependent. Looking at various manuals it seems the FTLBPar exception is only

[PATCH 5.8 341/464] s390/qeth: dont process empty bridge port events

2020-08-17 Thread Greg Kroah-Hartman
From: Julian Wiedmann [ Upstream commit 02472e28b9a45471c6d8729ff2c7422baa9be46a ] Discard events that don't contain any entries. This shouldn't happen, but subsequent code relies on being able to use entry 0. So better be safe than accessing garbage. Fixes: b4d72c08b358 ("qeth: bridgeport

[PATCH 5.8 344/464] netfilter: nft_meta: fix iifgroup matching

2020-08-17 Thread Greg Kroah-Hartman
From: Florian Westphal [ Upstream commit 78470d9d0d9f2f8d16f28382a4071568e839c0d5 ] iifgroup matching erroneously checks the output interface. Fixes: 8724e819cc9a ("netfilter: nft_meta: move all interface related keys to helper") Reported-by: Demi M. Obenour Signed-off-by: Florian Westphal

[PATCH 5.8 348/464] qtnfmac: Missing platform_device_unregister() on error in qtnf_core_mac_alloc()

2020-08-17 Thread Greg Kroah-Hartman
From: Wang Hai [ Upstream commit 141bc9abbbffa89d020957caa9ac4a61d0ef1e26 ] Add the missing platform_device_unregister() before return from qtnf_core_mac_alloc() in the error handling case. Fixes: 616f5701f4ab ("qtnfmac: assign each wiphy to its own virtual platform device") Reported-by: Hulk

[PATCH 5.8 346/464] rtw88: fix short GI capability based on current bandwidth

2020-08-17 Thread Greg Kroah-Hartman
From: Tsang-Shian Lin [ Upstream commit 4dd86b901d1373ef8446ecb50a7ca009f3475211 ] Fix the transmission is not sent with short GI under some conditions even if the receiver supports short GI. If VHT capability IE exists in the beacon, the original code uses the short GI for 80M field as

[PATCH 5.8 319/464] nvmem: sprd: Fix return value of sprd_efuse_probe()

2020-08-17 Thread Greg Kroah-Hartman
From: Tiezhu Yang [ Upstream commit bcd14bb7a68520bf88e45e91d354e43535624f82 ] When call function devm_platform_ioremap_resource(), we should use IS_ERR() to check the return value and return PTR_ERR() if failed. Fixes: 096030e7f449 ("nvmem: sprd: Add Spreadtrum SoCs eFuse support")

[PATCH 5.8 345/464] rtw88: fix LDPC field for RA info

2020-08-17 Thread Greg Kroah-Hartman
From: Tsang-Shian Lin [ Upstream commit ae44fa993e8e6c1a1d22e5ca03d9eadd53b2745b ] Convert the type of LDPC field to boolen because LDPC field of RA info H2C command to firmware is only one bit. Fixes: e3037485c68e ("rtw88: new Realtek 802.11ac driver") Signed-off-by: Tsang-Shian Lin

[PATCH 5.8 322/464] RDMA/netlink: Remove CAP_NET_RAW check when dump a raw QP

2020-08-17 Thread Greg Kroah-Hartman
From: Mark Zhang [ Upstream commit 1d70ad0f85435a7262de802b104e49e6598c50ff ] When dumping QPs bound to a counter, raw QPs should be allowed to dump without the CAP_NET_RAW privilege. This is consistent with what "rdma res show qp" does. Fixes: c4ffee7c9bdb ("RDMA/netlink: Implement counter

Re: [PATCH RFC 2/2] lkdtm: Add heap spraying test

2020-08-17 Thread Kees Cook
On Mon, Aug 17, 2020 at 01:24:37PM -0500, Eric W. Biederman wrote: > Alexander Popov writes: > > > Add a simple test for CONFIG_SLAB_QUARANTINE. > > > > It performs heap spraying that aims to reallocate the recently freed heap > > object. This technique is used for exploiting use-after-free > >

[PATCH 5.8 347/464] rtw88: coex: only skip coex triggered by BT info

2020-08-17 Thread Greg Kroah-Hartman
From: Yan-Hsuan Chuang [ Upstream commit 3f194bd4ca1cd9b8eef34d37d562279dbeb80319 ] The coex mechanism used to skip upon the freeze flag is raised. That will cause the coex mechanism being skipped unexpectedly. Coex only wanted to keep the TDMA table from being changed by BT side. So, check

[PATCH 5.8 342/464] ice: Clear and free XLT entries on reset

2020-08-17 Thread Greg Kroah-Hartman
From: Vignesh Sridhar [ Upstream commit ec1d1d2302067e3ccbc4d0adcd36d72410933b70 ] This fix has been added to address memory leak issues resulting from triggering a sudden driver reset which does not allow us to follow our normal removal flows for SW XLT entries for advanced features. - Adding

[PATCH 5.8 320/464] RDMA/rtrs-clt: add an additional random 8 seconds before reconnecting

2020-08-17 Thread Greg Kroah-Hartman
From: Danil Kipnis [ Upstream commit 09e0dbbeed82e35ce2cd21e086a6fac934163e2a ] In order to avoid all the clients to start reconnecting at the same time schedule the reconnect dwork with a random jitter of +[0,8] seconds. Fixes: 6a98d71daea1 ("RDMA/rtrs: client: main functionality") Link:

[PATCH 5.8 323/464] PCI: Release IVRS table in AMD ACS quirk

2020-08-17 Thread Greg Kroah-Hartman
From: Hanjun Guo [ Upstream commit 090688fa4e448284aaa16136372397d7d10814db ] The acpi_get_table() should be coupled with acpi_put_table() if the mapped table is not used at runtime to release the table mapping. In pci_quirk_amd_sb_acs(), IVRS table is just used for checking AMD IOMMU is

[PATCH 5.8 325/464] powerpc/pseries/hotplug-cpu: Remove double free in error path

2020-08-17 Thread Greg Kroah-Hartman
From: Nathan Lynch [ Upstream commit a0ff72f9f5a780341e7ff5e9ba50a0dad5fa1980 ] In the unlikely event that the device tree lacks a /cpus node, find_dlpar_cpus_to_add() oddly frees the cpu_drcs buffer it has been passed before returning an error. Its only caller also frees the buffer on error.

[PATCH 5.8 262/464] coresight: etmv4: Fix resource selector constant

2020-08-17 Thread Greg Kroah-Hartman
From: Mike Leach [ Upstream commit cb8bba907a4ff4ba42f1d245cb506d55829674b8 ] ETMv4 max resource selector constant incorrectly set to 16. Updated to the correct 32 value, and adjustments made to limited code using it. Signed-off-by: Mike Leach Fixes: 2e1cdfe184b52 ("coresight-etm4x: Adding

[PATCH 5.8 360/464] fsl/fman: use 32-bit unsigned integer

2020-08-17 Thread Greg Kroah-Hartman
From: Florinel Iordache [ Upstream commit 99f47abd9f7bf6e365820d355dc98f6955a562df ] Potentially overflowing expression (ts_freq << 16 and intgr << 16) declared as type u32 (32-bit unsigned) is evaluated using 32-bit arithmetic and then used in a context that expects an expression of type u64

[PATCH 5.8 364/464] fsl/fman: fix eth hash table allocation

2020-08-17 Thread Greg Kroah-Hartman
From: Florinel Iordache [ Upstream commit 3207f715c34317d08e798e11a10ce816feb53c0f ] Fix memory allocation for ethernet address hash table. The code was wrongly allocating an array for eth hash table which is incorrect because this is the main structure for eth hash table (struct eth_hash_t)

[PATCH 5.8 363/464] fsl/fman: check dereferencing null pointer

2020-08-17 Thread Greg Kroah-Hartman
From: Florinel Iordache [ Upstream commit cc5d229a122106733a85c279d89d7703f21e4d4f ] Add a safe check to avoid dereferencing null pointer Fixes: 57ba4c9b56d8 ("fsl/fman: Add FMan MAC support") Signed-off-by: Florinel Iordache Signed-off-by: David S. Miller Signed-off-by: Sasha Levin ---

[PATCH 5.8 370/464] Revert "vxlan: fix tos value before xmit"

2020-08-17 Thread Greg Kroah-Hartman
From: Hangbin Liu [ Upstream commit a0dced17ad9dc08b1b25e0065b54c97a318e6e8b ] This reverts commit 71130f29979c7c7956b040673e6b9d5643003176. In commit 71130f29979c ("vxlan: fix tos value before xmit") we want to make sure the tos value are filtered by RT_TOS() based on RFC1349. 0 1

[PATCH 5.8 366/464] net: thunderx: use spin_lock_bh in nicvf_set_rx_mode_task()

2020-08-17 Thread Greg Kroah-Hartman
From: Xin Long [ Upstream commit bab9693a9a8c6dd19f670408ec1e78e12a320682 ] A dead lock was triggered on thunderx driver: CPU0CPU1 [01] lock(&(>rx_mode_wq_lock)->rlock); [11]

[PATCH 5.8 324/464] cpufreq: ap806: fix cpufreq driver needs ap cpu clk

2020-08-17 Thread Greg Kroah-Hartman
From: Sven Auhagen [ Upstream commit 8c37ad2f523396e15cf002b29f8f796447c71932 ] The Armada 8K cpufreq driver needs the Armada AP CPU CLK to work. This dependency is currently not satisfied and the ARMADA_AP_CPU_CLK can not be selected independently. Add it to the cpufreq Armada8k driver.

[PATCH 5.8 352/464] net/mlx5: DR, Change push vlan action sequence

2020-08-17 Thread Greg Kroah-Hartman
From: Alex Vesker [ Upstream commit b206490940216542c68563699b279eed3c55107c ] The DR TX state machine supports the following order: modify header, push vlan and encapsulation. Instead fs_dr would pass: push vlan, modify header and encapsulation. The above caused the rule creation to fail on

[PATCH 5.8 361/464] fsl/fman: fix dereference null return value

2020-08-17 Thread Greg Kroah-Hartman
From: Florinel Iordache [ Upstream commit 0572054617f32670abab4b4e89a876954d54b704 ] Check before using returned value to avoid dereferencing null pointer. Fixes: 18a6c85fcc78 ("fsl/fman: Add FMan Port Support") Signed-off-by: Florinel Iordache Signed-off-by: David S. Miller Signed-off-by:

[PATCH 5.8 316/464] powerpc/32s: Fix CONFIG_BOOK3S_601 uses

2020-08-17 Thread Greg Kroah-Hartman
From: Michael Ellerman [ Upstream commit df4d4ef22446b3a789a4efd74d34f2ec1e24deb2 ] We have two uses of CONFIG_BOOK3S_601, which doesn't exist. Fix them to use CONFIG_PPC_BOOK3S_601 which is the correct symbol. Fixes: 12c3f1fd87bf ("powerpc/32s: get rid of CPU_FTR_601 feature") Signed-off-by:

[PATCH 5.8 369/464] hv_netvsc: do not use VF device if link is down

2020-08-17 Thread Greg Kroah-Hartman
From: Stephen Hemminger [ Upstream commit 7c9864bbccc23e1812ac82966555d68c13ea4006 ] If the accelerated networking SRIOV VF device has lost carrier use the synthetic network device which is available as backup path. This is a rare case since if VF link goes down, normally the VMBus device will

[PATCH 5.8 367/464] net: macb: Properly handle phylink on at91sam9x

2020-08-17 Thread Greg Kroah-Hartman
From: Stefan Roese [ Upstream commit f7ba7dbf4f7af67b5936ff1cbd40a3254b409ebf ] I just recently noticed that ethernet does not work anymore since v5.5 on the GARDENA smart Gateway, which is based on the AT91SAM9G25. Debugging showed that the "GEM bits" in the NCFGR register are now

[PATCH 5.8 372/464] net: thunderx: initialize VFs mailbox mutex before first usage

2020-08-17 Thread Greg Kroah-Hartman
From: Dean Nelson [ Upstream commit c1055b76ad00aed0e8b79417080f212d736246b6 ] A VF's mailbox mutex is not getting initialized by nicvf_probe() until after it is first used. And such usage is resulting in... [ 28.270927] [ cut here ] [ 28.270934]

[PATCH 5.8 371/464] selftests/net: relax cpu affinity requirement in msg_zerocopy test

2020-08-17 Thread Greg Kroah-Hartman
From: Willem de Bruijn [ Upstream commit 16f6458f2478b55e2b628797bc81a4455045c74e ] The msg_zerocopy test pins the sender and receiver threads to separate cores to reduce variance between runs. But it hardcodes the cores and skips core 0, so it fails on machines with the selected cores

[PATCH 5.8 378/464] svcrdma: Fix page leak in svc_rdma_recv_read_chunk()

2020-08-17 Thread Greg Kroah-Hartman
From: Chuck Lever [ Upstream commit e814eecbe3bbeaa8b004d25a4b8974d232b765a9 ] Commit 07d0ff3b0cd2 ("svcrdma: Clean up Read chunk path") moved the page saver logic so that it gets executed event when an error occurs. In that case, the I/O is never posted, and those pages are then leaked. Errors

[PATCH 5.8 379/464] nfsd: avoid a NULL dereference in __cld_pipe_upcall()

2020-08-17 Thread Greg Kroah-Hartman
From: Scott Mayhew [ Upstream commit df60446cd1fb487becd1f36f4c0da9e0e523c0cf ] If the rpc_pipefs is unmounted, then the rpc_pipe->dentry becomes NULL and dereferencing the dentry->d_sb will trigger an oops. The only reason we're doing that is to determine the nfsd_net, which could instead be

[PATCH 5.8 380/464] SUNRPC: Fix ("SUNRPC: Add "@len" parameter to gss_unwrap()")

2020-08-17 Thread Greg Kroah-Hartman
From: Chuck Lever [ Upstream commit 986a4b63d3bc5f2c0eb4083b05aff2bf883b7b2f ] Braino when converting "buf->len -=" to "buf->len = len -". The result is under-estimation of the ralign and rslack values. On krb5p mounts, this has caused READDIR to fail with EIO, and KASAN splats when decoding

[PATCH 5.8 382/464] crypto: aesni - add compatibility with IAS

2020-08-17 Thread Greg Kroah-Hartman
From: Jian Cai [ Upstream commit 44069737ac9625a0f02f0f7f5ab96aae4cd819bc ] Clang's integrated assembler complains "invalid reassignment of non-absolute variable 'var_ddq_add'" while assembling arch/x86/crypto/aes_ctrby8_avx-x86_64.S. It was because var_ddq_add was reassigned with non-absolute

[PATCH 5.8 353/464] net/mlx5: Delete extra dump stack that gives nothing

2020-08-17 Thread Greg Kroah-Hartman
From: Leon Romanovsky [ Upstream commit 6c4e9bcfb48933d533ff975e152757991556294a ] The WARN_*() macros are intended to catch impossible situations from the SW point of view. They gave a little in case HW<->SW interface is out-of-sync. Such out-of-sync scenario can be due to SW errors that are

[PATCH 5.8 381/464] x86/fsgsbase/64: Fix NULL deref in 86_fsgsbase_read_task

2020-08-17 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit 8ab49526b53d3172d1d8dd03a75c7d1f5bd21239 ] syzbot found its way in 86_fsgsbase_read_task() and triggered this oops: KASAN: null-ptr-deref in range [0x0008-0x000f] CPU: 0 PID: 6866 Comm: syz-executor262 Not tainted

[PATCH 5.8 376/464] pinctrl-single: fix pcs_parse_pinconf() return value

2020-08-17 Thread Greg Kroah-Hartman
From: Drew Fustini [ Upstream commit f46fe79ff1b65692a65266a5bec6dbe2bf7fc70f ] This patch causes pcs_parse_pinconf() to return -ENOTSUPP when no pinctrl_map is added. The current behavior is to return 0 when !PCS_HAS_PINCONF or !nconfs. Thus pcs_parse_one_pinctrl_entry() incorrectly assumes

[PATCH 5.8 375/464] ocfs2: fix unbalanced locking

2020-08-17 Thread Greg Kroah-Hartman
From: Pavel Machek [ Upstream commit 57c720d4144a9c2b88105c3e8f7b0e97e4b5cc93 ] Based on what fails, function can return with nfs_sync_rwlock either locked or unlocked. That can not be right. Always return with lock unlocked on error. Fixes: 4cd9973f9ff6 ("ocfs2: avoid inode removal while

[PATCH 5.8 377/464] mtd: rawnand: brcmnand: Dont default to edu transfer

2020-08-17 Thread Greg Kroah-Hartman
From: Kamal Dasu [ Upstream commit bee3ab8bdd3b13faf08e5b6e0218f59b0a49fcc3 ] When flash-dma is absent do not default to using flash-edu. Make sure flash-edu is enabled before setting EDU transfer function. Fixes: a5d53ad26a8b ("mtd: rawnand: brcmnand: Add support for flash-edu for dma

[PATCH 5.8 350/464] tools, build: Propagate build failures from tools/build/Makefile.build

2020-08-17 Thread Greg Kroah-Hartman
From: Andrii Nakryiko [ Upstream commit a278f3d8191228212c553a5d4303fa603214b717 ] The '&&' command seems to have a bad effect when $(cmd_$(1)) exits with non-zero effect: the command failure is masked (despite `set -e`) and all but the first command of $(dep-cmd) is executed (successfully, as

[PATCH 5.8 356/464] net: ethernet: aquantia: Fix wrong return value

2020-08-17 Thread Greg Kroah-Hartman
From: Tianjia Zhang [ Upstream commit 0470a48880f8bc42ce26962b79c7b802c5a695ec ] In function hw_atl_a0_hw_multicast_list_set(), when an invalid request is encountered, a negative error code should be returned. Fixes: bab6de8fd180b ("net: ethernet: aquantia: Atlantic A0 and B0 specific

[PATCH 5.8 394/464] vsock: fix potential null pointer dereference in vsock_poll()

2020-08-17 Thread Greg Kroah-Hartman
From: Stefano Garzarella [ Upstream commit 1980c05844830a44708c98c96d600833aa3fae08 ] syzbot reported this issue where in the vsock_poll() we find the socket state at TCP_ESTABLISHED, but 'transport' is null: general protection fault, probably for non-canonical address 0xdc12:

[PATCH 5.8 355/464] net: mvpp2: fix memory leak in mvpp2_rx

2020-08-17 Thread Greg Kroah-Hartman
From: Lorenzo Bianconi [ Upstream commit d6526926de7397a97308780911565e31a6b67b59 ] Release skb memory in mvpp2_rx() if mvpp2_rx_refill routine fails Fixes: b5015854674b ("net: mvpp2: fix refilling BM pools in RX path") Signed-off-by: Lorenzo Bianconi Acked-by: Matteo Croce Signed-off-by:

[PATCH 5.8 384/464] drivers/net/wan/lapbether: Added needed_headroom and a skb->len check

2020-08-17 Thread Greg Kroah-Hartman
From: Xie He [ Upstream commit c7ca03c216acb14466a713fedf1b9f2c24994ef2 ] 1. Added a skb->len check This driver expects upper layers to include a pseudo header of 1 byte when passing down a skb for transmission. This driver will read this 1-byte header. This patch added a skb->len check before

[PATCH 5.8 357/464] liquidio: Fix wrong return value in cn23xx_get_pf_num()

2020-08-17 Thread Greg Kroah-Hartman
From: Tianjia Zhang [ Upstream commit aa027850a292ea65524b8fab83eb91a124ad362c ] On an error exit path, a negative error code should be returned instead of a positive return value. Fixes: 0c45d7fe12c7e ("liquidio: fix use of pf in pass-through mode in a virtual machine") Cc: Rick Farrington

[PATCH 5.8 358/464] net: sgi: ioc3-eth: Fix the size used in some dma_free_coherent() calls

2020-08-17 Thread Greg Kroah-Hartman
From: Christophe JAILLET [ Upstream commit edab74e9cb1d073c70add0f9b75e17aebf0598ff ] Update the size used in 'dma_free_coherent()' in order to match the one used in the corresponding 'dma_alloc_coherent()'. Fixes: 369a782af0f1 ("net: sgi: ioc3-eth: ensure tx ring is 16k aligned.")

Re: [PATCH 4.19 35/47] x86/irq: Seperate unused system vectors from spurious entry again

2020-08-17 Thread Guilherme G. Piccoli
Hi Greg / Thomas and all involved here. First, apologies for necro-bumping this thread, but I'm working a backport of this patch to kernel 4.15 (Ubuntu) and then I noticed we have it on stable, but only in 4.19+. Since the fixes tag presents an old commit (since ~3.19), I'm curious if we have a

[PATCH 5.8 359/464] net: spider_net: Fix the size used in a dma_free_coherent() call

2020-08-17 Thread Greg Kroah-Hartman
From: Christophe JAILLET [ Upstream commit 36f28f7687a9ce665479cce5d64ce7afaa9e77ae ] Update the size used in 'dma_free_coherent()' in order to match the one used in the corresponding 'dma_alloc_coherent()', in 'spider_net_init_chain()'. Fixes: d4ed8f8d1fb7 ("Spidernet DMA coalescing")

[PATCH 5.8 393/464] net: initialize fastreuse on inet_inherit_port

2020-08-17 Thread Greg Kroah-Hartman
From: Tim Froidcoeur [ Upstream commit d76f3351cea2d927fdf70dd7c06898235035e84e ] In the case of TPROXY, bind_conflict optimizations for SO_REUSEADDR or SO_REUSEPORT are broken, possibly resulting in O(n) instead of O(1) bind behaviour or in the incorrect reuse of a bind. the kernel keeps

[PATCH 5.8 385/464] net: Fix potential memory leak in proto_register()

2020-08-17 Thread Greg Kroah-Hartman
From: Miaohe Lin [ Upstream commit 0f5907af39137f8183ed536aaa00f322d7365130 ] If we failed to assign proto idx, we free the twsk_slab_name but forget to free the twsk_slab. Add a helper function tw_prot_cleanup() to free these together and also use this helper function in proto_unregister().

[PATCH 5.8 407/464] ALSA: usb-audio: add quirk for Pioneer DDJ-RB

2020-08-17 Thread Greg Kroah-Hartman
From: Hector Martin commit 6e8596172ee1cd46ec0bfd5adcf4ff86371478b6 upstream. This is just another Pioneer device with fixed endpoints. Input is dummy but used as feedback (it always returns silence). Cc: sta...@vger.kernel.org Signed-off-by: Hector Martin Link:

[PATCH 5.8 399/464] usb: cdns3: gadget: always zeroed TRB buffer when enable endpoint

2020-08-17 Thread Greg Kroah-Hartman
From: Peter Chen commit 95f5acfc4f58f01a22b66d8c9c0ffb72aa96271c upstream. During the endpoint dequeue operation, it changes dequeued TRB as link TRB, when the endpoint is disabled and re-enabled, the DMA fetches the TRB before the link TRB, after it handles current TRB, the DMA pointer will

[PATCH 5.8 402/464] ALSA: hda - fix the micmute led status for Lenovo ThinkCentre AIO

2020-08-17 Thread Greg Kroah-Hartman
From: Hui Wang commit 386a6539992b82fe9ac4f9dc3f548956fd894d8c upstream. After installing the Ubuntu Linux, the micmute led status is not correct. Users expect that the led is on if the capture is disabled, but with the current kernel, the led is off with the capture disabled. We tried the old

[PATCH 5.8 400/464] iommu/vt-d: Skip TE disabling on quirky gfx dedicated iommu

2020-08-17 Thread Greg Kroah-Hartman
From: Lu Baolu commit b1012ca8dc4f9b1a1fe8e2cb1590dd6d43ea3849 upstream. The VT-d spec requires (10.4.4 Global Command Register, TE field) that: Hardware implementations supporting DMA draining must drain any in-flight DMA read/write requests queued within the Root-Complex before completing

[PATCH 5.8 398/464] USB: serial: cp210x: enable usb generic throttle/unthrottle

2020-08-17 Thread Greg Kroah-Hartman
From: Brant Merryman commit 4387b3dbb079d482d3c2b43a703ceed4dd27ed28 upstream. Assign the .throttle and .unthrottle functions to be generic function in the driver structure to prevent data loss that can otherwise occur if the host does not enable USB throttling. Signed-off-by: Brant Merryman

[PATCH 5.8 401/464] vdpasim: protect concurrent access to iommu iotlb

2020-08-17 Thread Greg Kroah-Hartman
From: Max Gurtovoy commit 0ea9ee430e74b16c6b17e70757d1c26d8d140e1f upstream. Iommu iotlb can be accessed by different cores for performing IO using multiple virt queues. Add a spinlock to synchronize iotlb accesses. This could be easily reproduced when using more than 1 pktgen threads to

[PATCH 5.8 396/464] r8152: Use MAC address from correct device tree node

2020-08-17 Thread Greg Kroah-Hartman
From: Thierry Reding [ Upstream commit b9b40ee4db6cb186341b97bca4f0d7aa2a042a66 ] Query the USB device's device tree node when looking for a MAC address. The struct device embedded into the struct net_device does not have a device tree node attached at all. The reason why this went unnoticed

Re: [RFC PATCH 2/3] mm: Drop use of test_and_set_skip in favor of just setting skip

2020-08-17 Thread Alexander Duyck
On Sat, Aug 15, 2020 at 2:51 AM Alex Shi wrote: > > > > 在 2020/8/15 上午5:15, Alexander Duyck 写道: > > On Fri, Aug 14, 2020 at 7:24 AM Alexander Duyck > > wrote: > >> > >> On Fri, Aug 14, 2020 at 12:19 AM Alex Shi > >> wrote: > >>> > >>> > >>> > >>> 在 2020/8/13 下午12:02, Alexander Duyck 写道: >

[PATCH v1 2/2] power: supply: bq256xx: Introduce the BQ256XX charger driver

2020-08-17 Thread Ricardo Rivera-Matos
The BQ256XX family of devices are highly integrated buck chargers for single cell batteries. Signed-off-by: Ricardo Rivera-Matos --- drivers/power/supply/Kconfig | 11 + drivers/power/supply/Makefile |1 + drivers/power/supply/bq256xx_charger.c | 1769

[PATCH 5.8 411/464] crypto: qat - fix double free in qat_uclo_create_batch_init_list

2020-08-17 Thread Greg Kroah-Hartman
From: Tom Rix commit c06c76602e03bde24ee69a2022a829127e504202 upstream. clang static analysis flags this error qat_uclo.c:297:3: warning: Attempt to free released memory [unix.Malloc] kfree(*init_tab_base); ^ When input *init_tab_base is

[PATCH 5.8 387/464] net: phy: fix memory leak in device-create error path

2020-08-17 Thread Greg Kroah-Hartman
From: Johan Hovold [ Upstream commit d02cbc46136105cf86f84ac355e16f04696f538d ] A recent commit introduced a late error path in phy_device_create() which fails to release the device name allocated by dev_set_name(). Fixes: 13d0ab6750b2 ("net: phy: check return code when requesting PHY driver

[PATCH v1 1/2] dt-bindings: power: Add the bq256xx dt bindings

2020-08-17 Thread Ricardo Rivera-Matos
Add the bindings for the bq256xx series of battery charging ICs. Datasheets: - https://www.ti.com/lit/ds/symlink/bq25600.pdf - https://www.ti.com/lit/ds/symlink/bq25601.pdf - https://www.ti.com/lit/ds/symlink/bq25600d.pdf - https://www.ti.com/lit/ds/symlink/bq25601d.pdf -

[PATCH 5.8 390/464] tcp: correct read of TFO keys on big endian systems

2020-08-17 Thread Greg Kroah-Hartman
From: Jason Baron [ Upstream commit f19008e676366c44e9241af57f331b6c6edf9552 ] When TFO keys are read back on big endian systems either via the global sysctl interface or via getsockopt() using TCP_FASTOPEN_KEY, the values don't match what was written. For example, on s390x: # echo "1-2-3-4"

[PATCH 5.8 414/464] tick/nohz: Narrow down noise while setting current tasks tick dependency

2020-08-17 Thread Greg Kroah-Hartman
From: Frederic Weisbecker commit 3c8920e2dbd1a55f72dc14d656df9d0097cf5c72 upstream. Setting a tick dependency on any task, including the case where a task sets that dependency on itself, triggers an IPI to all CPUs. That is of course suboptimal but it had previously not been an issue because

[PATCH 5.8 389/464] net/tls: Fix kmap usage

2020-08-17 Thread Greg Kroah-Hartman
From: Ira Weiny [ Upstream commit b06c19d9f827f6743122795570bfc0c72db482b0 ] When MSG_OOB is specified to tls_device_sendpage() the mapped page is never unmapped. Hold off mapping the page until after the flags are checked and the page is actually needed. Fixes: e8f69799810c ("net/tls: Add

[PATCH 5.8 412/464] crypto: ccp - Fix use of merged scatterlists

2020-08-17 Thread Greg Kroah-Hartman
From: John Allen commit 8a302808c60d441d9884cb00ea7f2b534f2e3ca5 upstream. Running the crypto manager self tests with CONFIG_CRYPTO_MANAGER_EXTRA_TESTS may result in several types of errors when using the ccp-crypto driver: alg: skcipher: cbc-des3-ccp encryption failed on test vector 0;

[PATCH 5.8 386/464] net/nfc/rawsock.c: add CAP_NET_RAW check.

2020-08-17 Thread Greg Kroah-Hartman
From: Qingyu Li [ Upstream commit 26896f01467a28651f7a536143fe5ac8449d4041 ] When creating a raw AF_NFC socket, CAP_NET_RAW needs to be checked first. Signed-off-by: Qingyu Li Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/nfc/rawsock.c |7 +-- 1 file

[PATCH v1 0/2] Introduce the BQ256XX family of chargers

2020-08-17 Thread Ricardo Rivera-Matos
Hello, This patchset introduces the bq256xx family of charging ICs. The bq256xx ICs are highly integrated, buck, switching chargers intended for use in smartphones, tablets, and portable electronics. Ricardo Rivera-Matos (2): dt-bindings: power: Add the bq256xx dt bindings power: supply:

[PATCH 5.8 413/464] crypto: cpt - dont sleep of CRYPTO_TFM_REQ_MAY_SLEEP was not specified

2020-08-17 Thread Greg Kroah-Hartman
From: Mikulas Patocka commit 9e27c99104707f083dccd3b4d79762859b5a0614 upstream. There is this call chain: cvm_encrypt -> cvm_enc_dec -> cptvf_do_request -> process_request -> kzalloc where we call sleeping allocator function even if CRYPTO_TFM_REQ_MAY_SLEEP was not specified. Signed-off-by:

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