[PATCH 4.4 119/312] isa: Call isa_bus_init before dependent ISA bus drivers register

2020-05-08 Thread Greg Kroah-Hartman
From: William Breathitt Gray commit 32a5a0c047343b11f581f663a2309cf43d13466f upstream. The isa_bus_init function must be called before drivers which utilize the ISA bus driver are registered. A race condition for initilization exists if device_initcall is used (the isa_bus_init callback is

[PATCH 4.4 114/312] batman-adv: Fix lockdep annotation of batadv_tlv_container_remove

2020-05-08 Thread Greg Kroah-Hartman
From: Sven Eckelmann commit 008a374487070a391c12aa39288fd8511f822cab upstream. The function handles tlv containers and not tlv handlers. Thus the lockdep_assert_held has to check for the container_list lock. Fixes: 2c72d655b044 ("batman-adv: Annotate deleting functions with external lock via

[PATCH 4.4 103/312] xprtrdma: rpcrdma_bc_receive_call() should init rq_private_buf.len

2020-05-08 Thread Greg Kroah-Hartman
From: Chuck Lever commit 9f74660bcf1e4cca577be99e54bc77b5df62b508 upstream. Some NFSv4.1 OPEN requests were hanging waiting for the NFS server to finish recalling delegations. Turns out that each NFSv4.1 CB request on RDMA gets a GARBAGE_ARGS reply from the Linux client. Commit

[PATCH 4.4 104/312] RDMA/cxgb3: device driver frees DMA memory with different size

2020-05-08 Thread Greg Kroah-Hartman
From: Honggang Li commit 0de4cbb3dddca35ecd06b95918f38439c9c6401f upstream. [ 598.852037] [ cut here ] [ 598.856698] WARNING: at lib/dma-debug.c:887 check_unmap+0xf8/0x920() [ 598.863079] cxgb3 :01:00.0: DMA-API: device driver frees DMA memory with different size

[PATCH 4.4 126/312] mac80211: fix mgmt-tx abort cookie and leak

2020-05-08 Thread Greg Kroah-Hartman
From: Johannes Berg commit e673a65952b4ab045a3e3eb200fdf408004fb4fd upstream. If a mgmt-tx operation is aborted before it runs, the wrong cookie is reported back to userspace, and the ack_skb gets leaked since the frame is freed directly instead of freeing it using ieee80211_free_txskb(). Fix

[PATCH 4.4 068/312] GRE: Disable segmentation offloads w/ CSUM and we are encapsulated via FOU

2020-05-08 Thread Greg Kroah-Hartman
From: Alexander Duyck commit a0ca153f98db8cf25298565a09e11fe9d82846ad upstream. This patch fixes an issue I found in which we were dropping frames if we had enabled checksums on GRE headers that were encapsulated by either FOU or GUE. Without this patch I was barely able to get 1 Gb/s of

[PATCH 4.4 120/312] Btrfs: clean up an error code in btrfs_init_space_info()

2020-05-08 Thread Greg Kroah-Hartman
From: Dan Carpenter commit 0dc924c5f2a3c4d999e12feaccee5f970cea1315 upstream. If we return 1 here, then the caller treats it as an error and returns -EINVAL. It causes a static checker warning to treat positive returns as an error. Fixes: 1aba86d67f34 ('Btrfs: fix easily get into ENOSPC in

[PATCH 4.4 093/312] sch_tbf: update backlog as well

2020-05-08 Thread Greg Kroah-Hartman
From: WANG Cong commit 8d5958f424b62060a8696b12c17dad198d5d386f upstream. Fixes: 2f5fb43f ("net_sched: update hierarchical backlog too") Cc: Jamal Hadi Salim Signed-off-by: Cong Wang Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/sched/sch_tbf.c |4

[PATCH 4.4 115/312] batman-adv: replace WARN with rate limited output on non-existing VLAN

2020-05-08 Thread Greg Kroah-Hartman
From: Simon Wunderlich commit 0b3dd7dfb81ad8af53791ea2bb64b83bac1b7d32 upstream. If a VLAN tagged frame is received and the corresponding VLAN is not configured on the soft interface, it will splat a WARN on every packet received. This is a quite annoying behaviour for some scenarios, e.g. if

[PATCH 4.4 116/312] tty: serial: msm: Support more bauds

2020-05-08 Thread Greg Kroah-Hartman
From: Stephen Boyd commit 98952bf510d0c7cdfc284f098bbf4682dc47bc61 upstream. The msm_find_best_baud() function is written with the assumption that the port->uartclk rate is fixed to a particular rate at boot time, but now this driver changes that clk rate at runtime when the baud is changed.

[PATCH 4.4 117/312] serial: samsung: Fix possible out of bounds access on non-DT platform

2020-05-08 Thread Greg Kroah-Hartman
From: Krzysztof Kozlowski commit 926b7b5122c96e1f18cd20e85a286c7ec8d18c97 upstream. On non-DeviceTree platforms, the index of serial device is a static variable incremented on each probe. It is incremented even if deferred probe happens when getting the clock in s3c24xx_serial_init_port().

[PATCH 4.4 102/312] xprtrdma: xprt_rdma_free() must not release backchannel reqs

2020-05-08 Thread Greg Kroah-Hartman
From: Chuck Lever commit ffc4d9b1596c34caa98962722e930e97912c8a9f upstream. Preserve any rpcrdma_req that is attached to rpc_rqst's allocated for the backchannel. Otherwise, after all the pre-allocated backchannel req's are consumed, incoming backward calls start writing on freed memory.

[PATCH 4.4 123/312] net/xfrm_input: fix possible NULL deref of tunnel.ip6->parms.i_key

2020-05-08 Thread Greg Kroah-Hartman
From: Alexey Kodanev commit 1625f4529957738be7d87cf157e107b8fb9d23b9 upstream. Running LTP 'icmp-uni-basic.sh -6 -p ipcomp -m tunnel' test over openvswitch + veth can trigger kernel panic: BUG: unable to handle kernel NULL pointer dereference at 00e0 IP: []

[PATCH 4.4 105/312] mlxsw: spectrum: Dont forward packets when STP state is DISABLED

2020-05-08 Thread Greg Kroah-Hartman
From: Ido Schimmel commit 9cb026ebb8ab76829a8d8e4bbd057168ac38fb86 upstream. When STP state is set to DISABLED the port is assumed to be inactive, but currently we forward packets ingressing through it. Instead, set the port's STP state in hardware to DISCARDING, which means it doesn't forward

[PATCH 4.4 136/312] ASoC: fsl_ssi: mark SACNT register volatile

2020-05-08 Thread Greg Kroah-Hartman
From: Maciej S. Szmigiero commit 3f1c241f0f5f90046258e6b8d4aeb6463ffdc08e upstream. SACNT register should be marked volatile since its WR and RD bits are cleared by SSI after completing the relevant operation. This unbreaks AC'97 register access. Fixes: 05cf237972fe ("ASoC: fsl_ssi: Add driver

[PATCH 4.4 107/312] mlxsw: spectrum: Dont count internal TX header bytes to stats

2020-05-08 Thread Greg Kroah-Hartman
From: Nogah Frankel commit 63dcdd35c1552ca0c911e98ba3389a0729a457f4 upstream. Stop the SW TX counter from counting the TX header bytes since they are not being sent out. Fixes: 56ade8fe3fe1 ("mlxsw: spectrum: Add initial support for Spectrum ASIC") Reviewed-by: Ido Schimmel Signed-off-by:

[PATCH 4.4 106/312] mlxsw: spectrum: Disable learning according to STP state

2020-05-08 Thread Greg Kroah-Hartman
From: Ido Schimmel commit 454911333b1d86e1d58a557be271bc6b7e9e7f10 upstream. When port is put into LISTENING state it shouldn't populate the FDB, so set the port's STP state in hardware to DISCARDING instead of LEARNING. It will therefore keep listening to BPDU packets, but discard other

[PATCH 4.4 135/312] ASoC: tegra_alc5632: check return value

2020-05-08 Thread Greg Kroah-Hartman
From: Sudip Mukherjee commit 319c32597fc22a58b946a6146f2be1fd208582e0 upstream. We have been returning success even if snd_soc_card_jack_new() fails. Lets check the return value and return error if it fails. Fixes: 12cc6d1dca4d ("ASoC: tegra_alc5632: Register jacks at the card level")

[PATCH 4.4 128/312] mac80211: TDLS: change BW calculation for WIDER_BW peers

2020-05-08 Thread Greg Kroah-Hartman
From: Arik Nemtsov commit 59021c675995281d453eee45b3e2e1e3edbc0ec2 upstream. The previous approach simply ignored chandef restrictions when calculating the appropriate peer BW for a WIDER_BW peer. This could result in a regulatory violation if both peers indicated 80MHz support, but the

[PATCH 4.4 129/312] mac80211: Fix BW upgrade for TDLS peers

2020-05-08 Thread Greg Kroah-Hartman
From: Ilan Peer commit 4b559ec0bfc3a9f41a127cea6964f38b2b4bb323 upstream. It is possible that the station is connected to an AP with bandwidth of 80+80MHz or 160MHz. In such cases there is no need to perform an upgrade as the maximal supported bandwidth is 80MHz. In addition, when upgrading

[PATCH 4.4 140/312] mmc: debugfs: correct wrong voltage value

2020-05-08 Thread Greg Kroah-Hartman
From: Chuanxiao Dong commit 0036e74686344f1051afc3107740140abfd03616 upstream. Correct the wrong voltage value shown in debugfs for mmc/sd/sdio. Signed-off-by: Chuanxiao Dong Signed-off-by: Pawel Wodkowski Fixes: 42cd95a0603e ("mmc: core: debugfs: Add signal_voltage to ios dump")

[PATCH 4.4 110/312] net: tcp_memcontrol: properly detect ancestor socket pressure

2020-05-08 Thread Greg Kroah-Hartman
From: Johannes Weiner commit 8c2c2358b236530bc2c79b4c2a447cbdbc3d96d7 upstream. When charging socket memory, the code currently checks only the local page counter for excess to determine whether the memcg is under socket pressure. But even if the local counter is fine, one of the ancestors

[PATCH 4.4 111/312] tcp: do not set rtt_min to 1

2020-05-08 Thread Greg Kroah-Hartman
From: Eric Dumazet commit 372022830b06d9980c7e8b41fa0a4081cff883b0 upstream. There are some cases where rtt_us derives from deltas of jiffies, instead of using usec timestamps. Since we want to track minimal rtt, better to assume a delta of 0 jiffie might be in fact be very close to 1 jiffie.

[PATCH 4.4 154/312] net: phy: bcm7xxx: Fix shadow mode 2 disabling

2020-05-08 Thread Greg Kroah-Hartman
From: Florian Fainelli commit 50d899808d33a5b0aa82be23e824119944042689 upstream. The clear and set masks in the call to phy_set_clr_bits() called from bcm7xxx_config_init() are inverted. We need to fix this by swapping the two arguments, that is, set 0 bits, but clear the shade mode 2 enable

[PATCH 4.4 157/312] net: dsa: slave: fix of-node leak and phy priority

2020-05-08 Thread Greg Kroah-Hartman
From: Johan Hovold commit 0d8f3c67151faaa80e332c254372dca58fb2a9d4 upstream. Make sure to drop the reference taken by of_parse_phandle() before returning from dsa_slave_phy_setup(). Note that this also modifies the PHY priority so that any fixed-link node is only parsed when no phy-handle is

[PATCH 4.4 160/312] mdio-sun4i: oops in error handling in probe

2020-05-08 Thread Greg Kroah-Hartman
From: Dan Carpenter commit 227f33beab746aeec4ef3305bd17b1d374df09e7 upstream. We could end up dereferencing an error pointer when we call regulator_disable(). Fixes: 4bdcb1dd9feb ('net: Add MDIO bus driver for the Allwinner EMAC') Signed-off-by: Dan Carpenter Acked-by: Chen-Yu Tsai

[PATCH 4.4 170/312] [media] lirc_imon: do not leave imon_probe() with mutex held

2020-05-08 Thread Greg Kroah-Hartman
From: Alexey Khoroshilov commit b833d0df943d70682e288c38c96b8e7bfff4023a upstream. Commit af8a819a2513 ("[media] lirc_imon: simplify error handling code") lost mutex_unlock(>ctx_lock), so imon_probe() exits with the context->ctx_lock mutex acquired. The patch adds mutex_unlock(>ctx_lock) back.

Re: [PATCH 04/14] sched: cpufreq: Move sched_cpufreq_governor_change()

2020-05-08 Thread Quentin Perret
On Friday 08 May 2020 at 11:05:23 (+0530), Pavan Kondeti wrote: > In the previous patch, you removed reference to schedutil and replaced it with > " an EAS-compatible CPUfreq governor (schedutil)". May be you could do the > same here. Good point, I add it to the todo list for v2 ;) Thanks,

[PATCH 4.4 155/312] of_mdio: fix node leak in of_phy_register_fixed_link error path

2020-05-08 Thread Greg Kroah-Hartman
From: Johan Hovold commit 48c1699d5335bc045b50989a06b1c526b17a25ff upstream. Make sure to drop the of_node reference also on failure to parse the speed property in of_phy_register_fixed_link(). Fixes: 3be2a49e5c08 ("of: provide a binding for fixed link PHYs") Signed-off-by: Johan Hovold

[PATCH 4.4 168/312] net: systemport: suppress warnings on failed Rx SKB allocations

2020-05-08 Thread Greg Kroah-Hartman
From: Doug Berger [ Upstream commit 3554e54a46125030c534820c297ed7f6c3907e24 ] The driver is designed to drop Rx packets and reclaim the buffers when an allocation fails, and the network interface needs to safely handle this packet loss. Therefore, an allocation failure of Rx SKBs is relatively

[PATCH 4.4 166/312] lib/mpi: Fix building for powerpc with clang

2020-05-08 Thread Greg Kroah-Hartman
From: Nathan Chancellor [ Upstream commit 5990cdee689c6885b27c6d969a3d58b09002b0bc ] 0day reports over and over on an powerpc randconfig with clang: lib/mpi/generic_mpih-mul1.c:37:13: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with

[PATCH 4.4 162/312] selftests/ipc: Fix test failure seen after initial test run

2020-05-08 Thread Greg Kroah-Hartman
From: Tyler Hicks [ Upstream commit b87080eab4c1377706c113fc9c0157f19ea8fed1 ] After successfully running the IPC msgque test once, subsequent runs result in a test failure: $ sudo ./run_kselftest.sh TAP version 13 1..1 # selftests: ipc: msgque # Failed to get stats for IPC queue

[PATCH 4.4 167/312] net: bcmgenet: suppress warnings on failed Rx SKB allocations

2020-05-08 Thread Greg Kroah-Hartman
From: Doug Berger [ Upstream commit ecaeceb8a8a145d93c7e136f170238229165348f ] The driver is designed to drop Rx packets and reclaim the buffers when an allocation fails, and the network interface needs to safely handle this packet loss. Therefore, an allocation failure of Rx SKBs is relatively

[PATCH 4.4 185/312] pinctrl: bcm2835: Fix memory leak in error path

2020-05-08 Thread Greg Kroah-Hartman
From: Stefan Wahren commit 53653c6b91750debba6dc4503003c851257fd340 upstream. In case of an invalid pin value bcm2835_pctl_dt_node_to_map() would leak the pull configs of already assigned pins. So avoid this by calling the free map function in error case. Signed-off-by: Stefan Wahren Fixes:

Re: [PATCH 00/14] Modularize schedutil

2020-05-08 Thread Quentin Perret
Hi Viresh, On Friday 08 May 2020 at 11:03:59 (+0530), Viresh Kumar wrote: > IMHO, you have over-broken the patches, like first two could be merged > together and all exports could have been done in a single patch, etc. > i.e. all related or similar changes together... Right, I don't mind

Re: [PATCH] staging: iio: ad5933: rework probe to use devm_ function variants

2020-05-08 Thread Jonathan Cameron
On Thu, 7 May 2020 12:50:16 +0300 Dan Carpenter wrote: > On Sat, May 02, 2020 at 07:25:42PM +0100, Jonathan Cameron wrote: > > On Tue, 28 Apr 2020 12:31:28 +0300 > > Alexandru Ardelean wrote: > > > +static void ad5933_cleanup(void *data) > > > +{ > > > + struct ad5933_state *st = data; > > >

[PATCH 4.4 180/312] qede: uninitialized variable in qede_start_xmit()

2020-05-08 Thread Greg Kroah-Hartman
From: Dan Carpenter commit 810810ffb2f6d46365d0790bbe77698a5534393a upstream. "data_split" was never set to false. It's just uninitialized. Fixes: 2950219d87b0 ('qede: Add basic network device support') Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller Signed-off-by: Greg

[PATCH 4.4 173/312] ath9k_htc: check for underflow in ath9k_htc_rx_msg()

2020-05-08 Thread Greg Kroah-Hartman
From: Dan Carpenter commit 3a318426e09a9c9266fe6440842e11238f640a20 upstream. We check for overflow here, but we don't check for underflow so it causes a static checker warning. Fixes: fb9987d0f748 ('ath9k_htc: Support for AR9271 chipset.') Signed-off-by: Dan Carpenter Signed-off-by: Kalle

[PATCH 4.4 150/312] sunrpc: Update RPCBIND_MAXNETIDLEN

2020-05-08 Thread Greg Kroah-Hartman
From: Chuck Lever commit 4b9c7f9db9a003f5c342184dc4401c1b7f2efb39 upstream. Commit 176e21ee2ec8 ("SUNRPC: Support for RPC over AF_LOCAL transports") added a 5-character netid, but did not bump RPCBIND_MAXNETIDLEN from 4 to 5. Fixes: 176e21ee2ec8 ("SUNRPC: Support for RPC over AF_LOCAL ...")

[PATCH 4.4 175/312] net: moxa: fix an error code

2020-05-08 Thread Greg Kroah-Hartman
From: Dan Carpenter commit 1d3cd1773fddfdc9ffb0c2dec9a954c7a54bc207 upstream. We accidentally return IS_ERR(priv->base) which is 1 instead of PTR_ERR(priv->base) which is the error code. Fixes: 6c821bd9edc9 ('net: Add MOXA ART SoCs ethernet driver') Signed-off-by: Dan Carpenter Acked-by: Arnd

[PATCH 4.4 178/312] power: ipaq-micro-battery: freeing the wrong variable

2020-05-08 Thread Greg Kroah-Hartman
From: Dan Carpenter commit b9223da41794030a5dfd5106c34ed1b98255e2ae upstream. We accidentally free "micro_ac_power" which is an error pointer and it leads to an oops. We intended to free "micro_batt_power". Fixes: a2c1d531854c ('power_supply: ipaq_micro_battery: Check return values in

Re: [PATCH v11 00/11] Support ROHM BD99954 charger IC

2020-05-08 Thread Mark Brown
On Thu, May 07, 2020 at 09:03:06AM +0300, Matti Vaittinen wrote: > Sorry folks for excessive amount of emails. I am resending this once > more (I already resent v10 and v11 has no changes but was just rebased) > because I am afraid the previous version did not reach Mark. If this is > true - I am

[PATCH 4.4 172/312] [media] cx23885: uninitialized variable in cx23885_av_work_handler()

2020-05-08 Thread Greg Kroah-Hartman
From: Dan Carpenter commit 60587bd0680507f48ae3a7360983228fd207de8a upstream. The "handled" variable could be uninitialized if the interrupt_service_routine() call back hasn't been implimented or if it has been implemented but doesn't initialize "handled" to zero at the start. For example,

[PATCH 4.4 182/312] qlcnic: use the correct ring in qlcnic_83xx_process_rcv_ring_diag()

2020-05-08 Thread Greg Kroah-Hartman
From: Dan Carpenter commit 5b4d10f5e0369ed79434593b7cd8e85eebbe473f upstream. There is a static checker warning here "warn: mask and shift to zero" and the code sets "ring" to zero every time. From looking at how QLCNIC_FETCH_RING_ID() is used in qlcnic_83xx_process_rcv_ring() the

[PATCH 4.4 151/312] NFC: nci: memory leak in nci_core_conn_create()

2020-05-08 Thread Greg Kroah-Hartman
From: Dan Carpenter commit c6dc65d885b98898bf287aaf44e020077b41769f upstream. I've moved the check for "number_destination_params" forward a few lines to avoid leaking "cmd". Fixes: caa575a86ec1 ('NFC: nci: fix possible crash in nci_core_conn_create') Acked-by: Christophe Ricard

[PATCH 4.4 148/312] powerpc/book3s: Fix MCE console messages for unrecoverable MCE.

2020-05-08 Thread Greg Kroah-Hartman
From: Mahesh Salgaonkar commit c74dd88e77d3ecbc9e55c78796d82c9aa21cabad upstream. When machine check occurs with MSR(RI=0), it means MC interrupt is unrecoverable and kernel goes down to panic path. But the console message still shows it as recovered. This patch fixes the MCE console messages.

[PATCH 4.4 179/312] i40e: fix an uninitialized variable bug

2020-05-08 Thread Greg Kroah-Hartman
From: Dan Carpenter commit 1c306f7f62a38ee5f05f0ee994dfe82d654cf47c upstream. We removed this initialization but it is required. Let's put it back. Fixes: 895106a577c4 ('i40e: trivial fixes') Signed-off-by: Dan Carpenter Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher Signed-off-by:

[PATCH 4.4 181/312] qlcnic: potential NULL dereference in qlcnic_83xx_get_minidump_template()

2020-05-08 Thread Greg Kroah-Hartman
From: Dan Carpenter commit 5f46feab87bb105d6a217d966b327fdc56696802 upstream. If qlcnic_fw_cmd_get_minidump_temp() fails then "fw_dump->tmpl_hdr" is NULL or possibly freed. It can lead to an oops later. Fixes: d01a6d3c8ae1 ('qlcnic: Add support to enable capability to extend minidump for

[PATCH 4.4 211/312] bpf: fix map not being uncharged during map creation failure

2020-05-08 Thread Greg Kroah-Hartman
From: Daniel Borkmann commit 20b2b24f91f70e7d3f0918c077546cb21bd73a87 upstream. In map_create(), we first find and create the map, then once that suceeded, we charge it to the user's RLIMIT_MEMLOCK, and then fetch a new anon fd through anon_inode_getfd(). The problem is, once the latter fails

[PATCH 4.4 222/312] mlxsw: switchx2: Fix misuse of hard_header_len

2020-05-08 Thread Greg Kroah-Hartman
From: Yotam Gigi commit 251d41c58b765f00d73b1b4230cad256e25f2735 upstream. In order to specify that the mlxsw switchx2 driver needs additional headroom for packets, there have been use of the hard_header_len field of the netdevice struct. This commit changes that to use needed_headroom

[PATCH 4.4 189/312] ipv4: fix checksum annotation in udp4_csum_init

2020-05-08 Thread Greg Kroah-Hartman
From: Hannes Frederic Sowa commit b46d9f625b07f843c706c2c7d0210a90ccdf143b upstream. Reported-by: Cong Wang Cc: Cong Wang Cc: Tom Herbert Fixes: 4068579e1e098fa ("net: Implmement RFC 6936 (zero RX csums for UDP/IPv6") Signed-off-by: Hannes Frederic Sowa Signed-off-by: David S. Miller

[PATCH 4.4 210/312] bpf, trace: check event type in bpf_perf_event_read

2020-05-08 Thread Greg Kroah-Hartman
From: Alexei Starovoitov commit ad572d174787daa59e24b8b5c83028c09cdb5ddb upstream. similar to bpf_perf_event_output() the bpf_perf_event_read() helper needs to check the type of the perf_event before reading the counter. Fixes: a43eec304259 ("bpf: introduce bpf_perf_event_output() helper")

Re: [RFC][PATCH 3/3] x86/entry, ORC: Teach objtool/unwind_orc about stack irq swizzles

2020-05-08 Thread Thomas Gleixner
Thomas Gleixner writes: > Peter Zijlstra writes: >> Are we sure the rat-poison crap is noise for all the other system >> vectors? I suppose it is for most since they'll do indirect calls >> themselves anyway, right? > > 3) Quick > > RESCHEDULE_VECTOR > > POSTED_INTR_VECTOR >

[PATCH 4.4 197/312] netfilter: nf_tables: fix a wrong check to skip the inactive rules

2020-05-08 Thread Greg Kroah-Hartman
From: Liping Zhang commit 8fff1722f705ce5023a0d6d77a31a9d013be2a34 upstream. nft_genmask_cur has already done left-shift operator on the gencursor, so there's no need to do left-shift operator on it again. Fixes: ea4bd995b0f2 ("netfilter: nf_tables: add transaction helper functions") Cc:

[PATCH 4.4 217/312] net/mlx4_en: Process all completions in RX rings after port goes up

2020-05-08 Thread Greg Kroah-Hartman
From: Erez Shitrit commit 8d59de8f7bb3db296331c665779c653b0c8d13ba upstream. Currently there is a race between incoming traffic and initialization flow. HW is able to receive the packets after INIT_PORT is done and unicast steering is configured. Before we set priv->port_up NAPI is not

[PATCH 4.4 200/312] netfilter: nft_dup: do not use sreg_dev if the user doesnt specify it

2020-05-08 Thread Greg Kroah-Hartman
From: Liping Zhang commit b73b8a1ba598236296a46103d81c10d629d9a470 upstream. The NFTA_DUP_SREG_DEV attribute is not a must option, so we should use it in routing lookup only when the user specify it. Fixes: d877f07112f1 ("netfilter: nf_tables: add nft_dup expression") Signed-off-by: Liping

[PATCH 4.4 198/312] netfilter: nft_dynset: fix panic if NFT_SET_HASH is not enabled

2020-05-08 Thread Greg Kroah-Hartman
From: Liping Zhang commit bb6a6e8e091353770074608c1d1bfde0e20b8154 upstream. When CONFIG_NFT_SET_HASH is not enabled and I input the following rule: "nft add rule filter output flow table test {ip daddr counter }", kernel panic happened on my system: BUG: unable to handle kernel NULL pointer

[PATCH 4.4 202/312] clk: st: avoid uninitialized variable use

2020-05-08 Thread Greg Kroah-Hartman
From: Arnd Bergmann commit 2dd52d7f6f9d9d03a82a68040ac3d221dd79af94 upstream. quadfs_pll_fs660c32_round_rate prints a few structure members that are never initialized, and also doesn't print the only one it cares about. We get a gcc warning about the ones that are printed:

[PATCH 4.4 220/312] net/mlx4: Fix uninitialized fields in rule when adding promiscuous mode to device managed flow steering

2020-05-08 Thread Greg Kroah-Hartman
From: Jack Morgenstein commit 44b911e77793d686b481608770d0c55c18055ba0 upstream. In procedure mlx4_flow_steer_promisc_add(), several fields were left uninitialized in the rule structure. Correctly initialize these fields. Fixes: 592e49dda812 ("net/mlx4: Implement promiscuous mode with device

[PATCH 4.4 201/312] udp: restore UDPlite many-cast delivery

2020-05-08 Thread Greg Kroah-Hartman
From: Pablo Neira commit 73e2d5e34b6cdd1080038daf3d6d6d744a9eefe6 upstream. Honor udptable parameter that is passed to __udp*_lib_mcast_deliver(), otherwise udplite broadcast/multicast use the wrong table and it breaks. Fixes: 2dc41cff7545 ("udp: Use hash2 for long hash1 chains in

[PATCH 4.4 199/312] netfilter: nf_tables: destroy the set if fail to add transaction

2020-05-08 Thread Greg Kroah-Hartman
From: Liping Zhang commit c17c3cdff10b9f59ef1244a14604f10949f17117 upstream. When the memory is exhausted, then we will fail to add the NFT_MSG_NEWSET transaction. In such case, we should destroy the set before we free it. Fixes: 958bee14d071 ("netfilter: nf_tables: use new transaction

Re: [PATCH v3 2/3] media: uapi: Add VP9 stateless decoder controls

2020-05-08 Thread Hans Verkuil
On 08/05/2020 14:28, Ezequiel Garcia wrote: > Hi Hans, > > On Fri, 2020-05-08 at 12:27 +0200, Hans Verkuil wrote: >> On 05/05/2020 15:41, Ezequiel Garcia wrote: >>> From: Boris Brezillon >>> >>> Add the VP9 stateless decoder controls plus the documentation that goes >>> with it. >>> >>>

[PATCH 4.4 188/312] flow_dissector: Check for IP fragmentation even if not using IPv4 address

2020-05-08 Thread Greg Kroah-Hartman
From: Alexander Duyck commit 918c023f29ab2dd8c63cfcc6a1239ee15933871a upstream. This patch corrects the logic for the IPv4 parsing so that it is consistent with how we handle IPv6. Specifically if we do not have the flow key indicating we want the addresses we still may need to take a look at

[PATCH 4.4 214/312] net/mlx4_en: Fix the return value of a failure in VLAN VID add/kill

2020-05-08 Thread Greg Kroah-Hartman
From: Kamal Heib commit 93c098af09455ea7bdc6f0f6b08f6ac14fa06cf4 upstream. Modify mlx4_en_vlan_rx_[add/kill]_vid to return error value in case of failure. Fixes: 8e586137e6b6 ('net: make vlan ndo_vlan_rx_[add/kill]_vid return error value') Signed-off-by: Kamal Heib Signed-off-by: Tariq

[PATCH 4.4 218/312] net/mlx4_core: Do not access comm channel if it has not yet been initialized

2020-05-08 Thread Greg Kroah-Hartman
From: Jack Morgenstein commit 81d184199e328fdad5633da139a10337327154e0 upstream. In the Hypervisor, there are several FW commands which are invoked before the comm channel is initialized (in mlx4_multi_func_init). These include MOD_STAT_CONFIG, QUERY_DEV_CAP, INIT_HCA, and others. If any of

[PATCH 4.4 227/312] sched/preempt: Fix preempt_count manipulations

2020-05-08 Thread Greg Kroah-Hartman
From: Peter Zijlstra commit 2e636d5e66c35dfcbaf617aa8fa963f6847478fe upstream. Vikram reported that his ARM64 compiler managed to 'optimize' away the preempt_count manipulations in code like: preempt_enable_no_resched(); put_user(); preempt_disable(); Irrespective of

[PATCH 4.4 238/312] xprtrdma: Fix backchannel allocation of extra rpcrdma_reps

2020-05-08 Thread Greg Kroah-Hartman
From: Chuck Lever commit d698c4a02ee02053bbebe051322ff427a2dad56a upstream. The backchannel code uses rpcrdma_recv_buffer_put to add new reps to the free rep list. This also decrements rb_recv_count, which spoofs the receive overrun logic in rpcrdma_buffer_get_rep. Commit 9b06688bc3b9

[PATCH 4.4 190/312] ipv4: do not abuse GFP_ATOMIC in inet_netconf_notify_devconf()

2020-05-08 Thread Greg Kroah-Hartman
From: Eric Dumazet commit fa17806cde76fb1087532f07e72aa757a30e0500 upstream. inet_forward_change() runs with RTNL held. We are allowed to sleep if required. If we use __in_dev_get_rtnl() instead of __in_dev_get_rcu(), we no longer have to use GFP_ATOMIC allocations in

[PATCH 4.4 224/312] sched/fair: Fix calc_cfs_shares() fixed point arithmetics width confusion

2020-05-08 Thread Greg Kroah-Hartman
From: Peter Zijlstra commit ea1dc6fc6242f991656e35e2ed3d90ec1cd13418 upstream. Commit: fde7d22e01aa ("sched/fair: Fix overly small weight for interactive group entities") did something non-obvious but also did it buggy yet latent. The problem was exposed for real by a later commit in the

[PATCH 4.4 242/312] Revert "cpufreq: Drop rwsem lock around CPUFREQ_GOV_POLICY_EXIT"

2020-05-08 Thread Greg Kroah-Hartman
From: Viresh Kumar commit 68e80dae09033d778b98dc88e5bfe8fdade188e5 upstream. Earlier, when the struct freq-attr was used to represent governor attributes, the standard cpufreq show/store sysfs attribute callbacks were applied to the governor tunable attributes and they always acquire the

[PATCH 4.4 240/312] bonding: fix length of actor system

2020-05-08 Thread Greg Kroah-Hartman
From: Tobias Jungel commit 414dd6fb9a1a1b59983aea7bf0f79f0085ecc5b8 upstream. The attribute IFLA_BOND_AD_ACTOR_SYSTEM is sent to user space having the length of sizeof(bond->params.ad_actor_system) which is 8 byte. This patch aligns the length to ETH_ALEN to have the same MAC address exposed as

Re: [RFC 1/3] usb: dwc3: Resize TX FIFOs to meet EP bursting requirements

2020-05-08 Thread Felipe Balbi
Hi, Wesley Cheng writes: > Some devices have USB compositions which may require multiple endpoints > that support EP bursting. HW defined TX FIFO sizes may not always be > sufficient for these compositions. By utilizing flexible TX FIFO > allocation, this allows for endpoints to request the

[PATCH 4.4 195/312] ipv6: add missing netconf notif when all is updated

2020-05-08 Thread Greg Kroah-Hartman
From: Nicolas Dichtel commit d26c638c16cb54f6fb1507e27df93ede692db572 upstream. The 'default' value was not advertised. Fixes: f3a1bfb11ccb ("rtnl/ipv6: use netconf msg to advertise forwarding status") Signed-off-by: Nicolas Dichtel Signed-off-by: David S. Miller Signed-off-by: Greg

[PATCH 4.4 186/312] be2net: Dont leak iomapped memory on removal.

2020-05-08 Thread Greg Kroah-Hartman
From: Douglas Miller commit a69bf3c5b49ef488970c74e26ba0ec12f08491c2 upstream. The adapter->pcicfg resource is either mapped via pci_iomap() or derived from adapter->db. During be_remove() this resource was ignored and so could remain mapped after remove. Add a flag to track whether

[PATCH 4.4 247/312] dmaengine: edma: Add probe callback to edma_tptc_driver

2020-05-08 Thread Greg Kroah-Hartman
From: Peter Ujfalusi commit 4fa2d09c1ae879c2ee2760ab419a4f97026dd97b upstream. Due to changes in device and platform code drivers w/o probe will fail to load. This means that the devices for eDMA TPTCs are goign to be without driver and omap hwmod code will turn them off after the kernel

[PATCH v3 2/3] block: add a s390-only biodasdinfo method

2020-05-08 Thread Stefan Haberland
From: Christoph Hellwig The IBM partition parser needs to query the DASD driver for details that are very s390 specific. Instead of using ioctl_by_bdev with a fake user space pointer just add a s390-specific method to get the information directly. Signed-off-by: Christoph Hellwig

[PATCH v3 3/3] s390/dasd: remove ioctl_by_bdev calls

2020-05-08 Thread Stefan Haberland
Call getgeo method directly and obtain pointer to dasd_biodasdinfo function and use this instead of ioctl. Suggested-by: Christoph Hellwig Signed-off-by: Stefan Haberland --- block/partitions/ibm.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git

[PATCH v3 1/3] dasd: refactor dasd_ioctl_information

2020-05-08 Thread Stefan Haberland
From: Christoph Hellwig Prepare for in-kernel callers of this functionality. Signed-off-by: Christoph Hellwig Signed-off-by: Stefan Haberland --- drivers/s390/block/dasd_ioctl.c | 38 +++-- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git

Re: [PATCH 00/14] Modularize schedutil

2020-05-08 Thread Quentin Perret
Hey Valentin, On Thursday 07 May 2020 at 22:34:17 (+0100), Valentin Schneider wrote: > I'm curious; why would some Android device not want to roll with schedutil? > > When it comes to dynamic policies (i.e. forget performance / powersave, and > put userspace in a corner), I'd be willing to take

[PATCH 4.4 266/312] net: ethernet: stmmac: dwmac-sti: fix probe error path

2020-05-08 Thread Greg Kroah-Hartman
From: Johan Hovold commit 0a9e22715ee384cf2a714c28f24ce8881b9fd815 upstream. Make sure to disable clocks before returning on late probe errors. Fixes: 8387ee21f972 ("stmmac: dwmac-sti: turn setup callback into a probe function") Signed-off-by: Johan Hovold Signed-off-by: David S. Miller

[PATCH v3 0/3] s390/dasd: remove ioctl_by_bdev from DASD driver

2020-05-08 Thread Stefan Haberland
Hi Christoph, as discussed yesterday I have picked your first patch, adopted the second one and created a new third patch to remove the ioctl_by_bdev calls. I export the symbol for the dasd_biodasdinfo function and obtain the pointer with a kallsyms_lookup_name. The checking if the gendisk is

[PATCH 4.4 248/312] spi: rockchip: modify DMA max burst to 1

2020-05-08 Thread Greg Kroah-Hartman
From: Addy Ke commit 80abf8880cc6e1594c11b7c417f22dde60e25312 upstream. Generic dma controller on Rockchips' platform cannot support DMAFLUSHP instruction which make dma to flush the req of non-aligned or non-multiple of what we need. That will cause an unrecoverable dma bus error. The saftest

[PATCH 4.4 269/312] fq_codel: return non zero qlen in class dumps

2020-05-08 Thread Greg Kroah-Hartman
From: Eric Dumazet commit aafddbf0cffeb790f919436285328c762279b5d4 upstream. We properly scan the flow list to count number of packets, but John passed 0 to gnet_stats_copy_queue() so we report a zero value to user space instead of the result. Fixes: 640158536632 ("net: sched: restrict use of

[PATCH 4.4 250/312] cxgb4/cxgb4vf: Fixes regression in perf when tx vlan offload is disabled

2020-05-08 Thread Greg Kroah-Hartman
From: Hariprasad Shenai commit 8d09e6b8b9c9969ac59496dc21e10b67fe727e7e upstream. The commit 637d3e997351 ("cxgb4: Discard the packet if the length is greater than mtu") introduced a regression in the VLAN interface performance when Tx VLAN offload is disabled. Check if skb is tagged,

Re: [PATCH v3 02/11] pstore/blk: new support logger for block devices

2020-05-08 Thread WeiXiong Liao
hi Kees Cook, On 2020/5/8 PM 2:07, Kees Cook wrote: > On Wed, Mar 25, 2020 at 04:54:57PM +0800, WeiXiong Liao wrote: >> pstore/blk is similar to pstore/ram, but dump log to block device >> rather than persistent ram. >> [...] >> +int psblk_register_blkdev(unsigned int major, psblk_panic_write_op

[PATCH 4.4 256/312] gre: reject GUE and FOU in collect metadata mode

2020-05-08 Thread Greg Kroah-Hartman
From: Jiri Benc commit 946b636f1730c64e05ff7fe8cf7136422fa8ea70 upstream. The collect metadata mode does not support GUE nor FOU. This might be implemented later; until then, we should reject such config. I think this is okay to be changed. It's unlikely anyone has such configuration (as it

[PATCH 4.4 254/312] gre: do not assign header_ops in collect metadata mode

2020-05-08 Thread Greg Kroah-Hartman
From: Jiri Benc commit a64b04d86d14c81f50f68e102f79ef301e3d0a0e upstream. In ipgre mode (i.e. not gretap) with collect metadata flag set, the tunnel is incorrectly assumed to be mGRE in NBMA mode (see commit 6a5f44d7a048c). This is not the case, we're controlling the encapsulation addresses by

[PATCH 4.4 261/312] net: macb: add missing free_netdev() on error in macb_probe()

2020-05-08 Thread Greg Kroah-Hartman
From: Wei Yongjun commit b22ae0b4d9669495158a7fa0fd027bd0fcd8896e upstream. Add the missing free_netdev() before return from function macb_probe() in the platform_get_irq() error handling case. Fixes: c69618b3e4f2 ("net/macb: fix probe sequence to setup clocks earlier") Signed-off-by: Wei

[PATCH 4.4 251/312] net: bcmgenet: fix skb_len in bcmgenet_xmit_single()

2020-05-08 Thread Greg Kroah-Hartman
From: Petri Gynther commit 7dd399130efb5a454daf24075b7563d197114e39 upstream. skb_len needs to be skb_headlen(skb) in bcmgenet_xmit_single(). Fragmented skbs can have only Ethernet + IP + TCP headers (14+20+20=54 bytes) in the linear buffer, followed by the rest in fragments. Bumping skb_len

[PATCH 4.4 262/312] macvtap: segmented packet is consumed

2020-05-08 Thread Greg Kroah-Hartman
From: Eric Dumazet commit be0bd3160165e42783d8215f426e41c07179c08a upstream. If GSO packet is segmented and its segments are properly queued, we call consume_skb() instead of kfree_skb() to be drop monitor friendly. Fixes: 3e4f8b7873709 ("macvtap: Perform GSO on forwarding path.")

[PATCH 4.4 263/312] tipc: fix the error handling in tipc_udp_enable()

2020-05-08 Thread Greg Kroah-Hartman
From: Wei Yongjun commit a5de125dd46c851fc962806135953c1bd0a0f0df upstream. Fix to return a negative error code in enable_mcast() error handling case, and release udp socket when necessary. Fixes: d0f91938bede ("tipc: add ip/udp media type") Signed-off-by: Wei Yongjun Signed-off-by: David S.

[PATCH 4.4 234/312] net: Dont delete routes in different VRFs

2020-05-08 Thread Greg Kroah-Hartman
From: Mark Tomlinson commit 5a56a0b3a45dd0cc5b2f7bec6afd053a474ed9f5 upstream. When deleting an IP address from an interface, there is a clean-up of routes which refer to this local address. However, there was no check to see that the VRF matched. This meant that deletion wasn't confined to the

[PATCH 4.4 252/312] net: bcmgenet: device stats are unsigned long

2020-05-08 Thread Greg Kroah-Hartman
From: Eric Dumazet commit 6517eb59b03965689e6bb16bb2d480096b3ef95d upstream. On 64bit kernels, device stats are 64bit wide, not 32bit. Fixes: 1c1008c793fa4 ("net: bcmgenet: add main driver file") Signed-off-by: Eric Dumazet Cc: Florian Fainelli Signed-off-by: David S. Miller Signed-off-by:

[PATCH 4.4 231/312] power: bq27xxx_battery: Fix bq27541 AveragePower register address

2020-05-08 Thread Greg Kroah-Hartman
From: Liu Xiang commit 265b60497a57da56a4be7d5c72983ae89dc0765e upstream. Currently in bq27541 driver, the average power register address is incorrectly set to 0x76, which would result in an error: bq27xxx-battery 2-0055: error reading average power register 10: -11 According to the bq27541

[PATCH 4.4 265/312] et131x: Fix logical vs bitwise check in et131x_tx_timeout()

2020-05-08 Thread Greg Kroah-Hartman
From: Florian Fainelli commit de702da7a823ab0c4a1e53ed79a2695f0d453855 upstream. We should be using a logical check here instead of a bitwise operation to check if the device is closed already in et131x_tx_timeout(). Reported-by: coverity (CID 146498) Fixes: 38df6492eb511 ("et131x: Add PCIe

[PATCH 4.4 236/312] ipv4: Fix table id reference in fib_sync_down_addr

2020-05-08 Thread Greg Kroah-Hartman
From: David Ahern commit e0a312629fefa943534fc46f7bfbe6de3fdaf463 upstream. Hendrik reported routes in the main table using source address are not removed when the address is removed. The problem is that fib_sync_down_addr does not account for devices in the default VRF which are associated

[PATCH 4.4 270/312] net: ethernet: stmmac: dwmac-generic: fix probe error path

2020-05-08 Thread Greg Kroah-Hartman
From: Johan Hovold commit 939b20022765bc338b0f72cbf1eed60a907398d7 upstream. Make sure to call any exit() callback to undo the effect of init() before returning on late probe errors. Fixes: cf3f047b9af4 ("stmmac: move hw init in the probe (v2)") Signed-off-by: Johan Hovold Signed-off-by:

Re: [PATCH 0/5] iio: accel: Add bma023 support to bma180

2020-05-08 Thread Jonathan Cameron
On Wed, 6 May 2020 20:49:17 -0700 Jonathan Bakker wrote: > Hi Linus, > > On 2020-05-06 5:47 a.m., Linus Walleij wrote: > > On Sun, May 3, 2020 at 7:22 PM Jonathan Bakker wrote: > > > >> This patchset adds support for the bma023 three axis accelerometer > >> to the bma180 IIO driver. The

[PATCH] memory/samsung: reduce unnecessary mutex lock area

2020-05-08 Thread Bernard Zhao
Maybe dmc->df->lock is unnecessary to protect function exynos5_dmc_perf_events_check(dmc). If we have to protect, dmc->lock is more better and more effective. Also, it seems not needed to protect "if (ret) & dev_warn" branch. Signed-off-by: Bernard Zhao ---

[PATCH 4.4 288/312] net: macb: replace macb_writel() call by queue_writel() to update queue ISR

2020-05-08 Thread Greg Kroah-Hartman
From: Cyrille Pitchen commit ba5049945421b8d2f3e2af786a15d13b82316503 upstream. macb_interrupt() should not use macb_writel(bp, ISR, ) but only queue_writel(queue, ISR, ). There is one IRQ and one set of {ISR, IER, IDR, IMR} [1] registers per queue on gem hardware, though only queue0 is

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