Re: [PATCH] percpu: fix clang modpost warning in pcpu_build_alloc_info()

2021-01-25 Thread Nick Desaulniers
On Mon, Jan 25, 2021 at 3:07 AM Arnd Bergmann wrote: > > On Tue, Jan 5, 2021 at 1:55 AM Dennis Zhou wrote: > > > > On Mon, Jan 04, 2021 at 04:46:51PM -0700, Nathan Chancellor wrote: > > > On Thu, Dec 31, 2020 at 09:28:52PM +, Dennis Zhou wrote: > > > > > > > > Hi Nathan, > > > > > > > > Hi De

[PATCH v3 RFC net-next 07/19] net: mvpp2: increase BM pool size to 2048 buffers

2021-01-25 Thread stefanc
From: Stefan Chulski BM pool size increased to support Firmware Flow Control. Minimum depletion thresholds to support FC is 1024 buffers. BM pool size increased to 2048 to have some 1024 buffers space between depletion thresholds and BM pool size. Jumbo frames require a 9888B buffer, so memory r

[PATCH v3 RFC net-next 06/19] net: mvpp2: always compare hw-version vs MVPP21

2021-01-25 Thread stefanc
From: Stefan Chulski Currently we have PP2v1 and PP2v2 hw-versions, with some different handlers depending upon condition hw_version = MVPP21/MVPP22. In a future there will be also PP2v3. Let's use now the generic "if equal/notEqual MVPP21" for all cases instead of "if MVPP22". This patch does n

Re: [PATCH] mm/filemap: Adding missing mem_cgroup_uncharge() to __add_to_page_cache_locked()

2021-01-25 Thread Michal Hocko
On Mon 25-01-21 13:23:58, Waiman Long wrote: > On 1/25/21 1:14 PM, Michal Hocko wrote: [...] > > With the proposed simplification by Willy > > Acked-by: Michal Hocko > > Thank for the ack. However, I am a bit confused about what you mean by > simplification. There is another linux-next patch that

Re: [PATCH] mm/filemap: Adding missing mem_cgroup_uncharge() to __add_to_page_cache_locked()

2021-01-25 Thread Matthew Wilcox
On Mon, Jan 25, 2021 at 01:23:58PM -0500, Waiman Long wrote: > On 1/25/21 1:14 PM, Michal Hocko wrote: > > On Mon 25-01-21 17:41:19, Michal Hocko wrote: > > > On Mon 25-01-21 16:25:06, Matthew Wilcox wrote: > > > > On Mon, Jan 25, 2021 at 05:03:28PM +0100, Michal Hocko wrote: > > > > > On Mon 25-01

Re: [PATCH 2/3] dt-bindings: iio: Add cros ec proximity yaml doc

2021-01-25 Thread Stephen Boyd
Quoting Gwendal Grignou (2021-01-24 12:42:56) > On Sun, Jan 24, 2021 at 9:28 AM Jonathan Cameron wrote: > > On Fri, 22 Jan 2021 14:54:42 -0800 > > Stephen Boyd wrote: > > > + > > > +properties: > > > + compatible: > > > +const: google,cros-ec-proximity > Given we have proximity detection in

Re: [PATCH] Bluetooth: btusb: Add a Kconfig option to disable USB wakeup by default

2021-01-25 Thread Marcel Holtmann
Hi Max, > For the original commit of 9e45524a011107a73bc2cdde8370c61e82e93a4d, > wakeup is always disabled for Realtek Bluetooth devices. > However, there's the capability for Realtek Bluetooth devices to > apply USB wakeup. Otherwise, there's the better power consumption > without USB wakeup duri

Re: [PATCH] swiotlb: Validate bounce size in the sync/unmap path

2021-01-25 Thread Martin Radev
On Mon, Jan 18, 2021 at 10:14:28AM -0500, Konrad Rzeszutek Wilk wrote: > On Mon, Jan 18, 2021 at 12:44:58PM +0100, Martin Radev wrote: > > On Wed, Jan 13, 2021 at 12:30:17PM +0100, Christoph Hellwig wrote: > > > On Tue, Jan 12, 2021 at 04:07:29PM +0100, Martin Radev wrote: > > > > The size of the b

Re: [PATCH] KVM: x86/mmu: consider the hva in mmu_notifer retry

2021-01-25 Thread Sean Christopherson
+Cc the other architectures, I'm guessing this would be a helpful optimization for all archs. Quite a few comments, but they're all little more than nits. Nice! On Mon, Jan 25, 2021, David Stevens wrote: > From: David Stevens > > Use the range passed to mmu_notifer's invalidate_range_start to

Re: linux-next: Fixes tag needs some work in the block tree

2021-01-25 Thread Paolo Valente
> Il giorno 25 gen 2021, alle ore 10:40, Stephen Rothwell > ha scritto: > > Hi all, > > In commit > > d4fc3640ff36 ("block, bfq: set next_rq to waker_bfqq->next_rq in waker > injection") > > Fixes tag > > Fixes: c5089591c3ba ("block, bfq: detect wakers and unconditionally inject > the

[PATCH] x86_64: Update the NMI handler nesting logic comment

2021-01-25 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The NMI handler on x86 needs to deal with nested NMIs becaues if an NMI takes an exception (page fault or breakpoint), the exception handle triggers a iretq which unlatches NMIs in the hardware allowing for another NMI to take place. The current code does a bit of

Re: [PATCH v5 12/21] arm64: cpufeature: Add an early command-line cpufeature override facility

2021-01-25 Thread Catalin Marinas
On Mon, Jan 25, 2021 at 10:50:10AM +, Marc Zyngier wrote: > In order to be able to override CPU features at boot time, > let's add a command line parser that matches options of the > form "cpureg.feature=value", and store the corresponding > value into the override val/mask pair. > > No featur

Re: [PATCH v5 14/21] arm64: Honor VHE being disabled from the command-line

2021-01-25 Thread Catalin Marinas
On Mon, Jan 25, 2021 at 10:50:12AM +, Marc Zyngier wrote: > Finally we can check whether VHE is disabled on the command line, > and not enable it if that's the user's wish. > > Signed-off-by: Marc Zyngier > Acked-by: David Brazdil Acked-by: Catalin Marinas

Re: [PATCH v3] tracing: precise log info for kretprobe addr err

2021-01-25 Thread Steven Rostedt
On Mon, 25 Jan 2021 19:19:27 +0100 Oleg Nesterov wrote: > On 01/26, Jianlin Lv wrote: > > > > When trying to create kretprobe with the wrong function symbol in tracefs; > > The error is triggered in the register_trace_kprobe() and recorded as > > FAIL_REG_PROBE issue, > > > > Example: > > $ cd

Re: UBSAN: shift-out-of-bounds in exfat_fill_super

2021-01-25 Thread Matthew Wilcox
On Mon, Jan 25, 2021 at 09:33:14AM -0800, syzbot wrote: > UBSAN: shift-out-of-bounds in fs/exfat/super.c:471:28 > shift exponent 4294967294 is too large for 32-bit type 'int' This is an integer underflow: sbi->dentries_per_clu = 1 << (sbi->cluster_size_bits - DENTRY_SIZE_B

[PATCH 4.19 13/58] scsi: ufs: Correct the LUN used in eh_device_reset_handler() callback

2021-01-25 Thread Greg Kroah-Hartman
From: Can Guo [ Upstream commit 35fc4cd34426c242ab015ef280853b7bff101f48 ] Users can initiate resets to specific SCSI device/target/host through IOCTL. When this happens, the SCSI cmd passed to eh_device/target/host _reset_handler() callbacks is initialized with a request whose tag is -1. In thi

[PATCH 4.19 14/58] scsi: qedi: Correct max length of CHAP secret

2021-01-25 Thread Greg Kroah-Hartman
From: Nilesh Javali [ Upstream commit d50c7986fbf0e2167279e110a2ed5bd8e811c660 ] The CHAP secret displayed garbage characters causing iSCSI login authentication failure. Correct the CHAP password max length. Link: https://lore.kernel.org/r/20201217105144.8055-1-njav...@marvell.com Reviewed-by:

Re: [PATCH v3 0/2] arm64: dts: meson: add support for Beelink GS-King-X

2021-01-25 Thread Kevin Hilman
On Tue, 19 Jan 2021 14:57:32 +, Christian Hewitt wrote: > This series adds bindings and device-tree for the Beelink (AZW) GS-King-X, > which like GT-King and GT-King Pro is based on the W400 reference design. > > Changes since v2: > - shorten audio card name to GSKING-X > - add Neil's tested-b

[PATCH 4.19 35/58] serial: mvebu-uart: fix tx lost characters at power off

2021-01-25 Thread Greg Kroah-Hartman
From: Pali Rohár commit 54ca955b5a4024e2ce0f206b03adb7109bc4da26 upstream. Commit c685af1108d7 ("serial: mvebu-uart: fix tx lost characters") fixed tx lost characters at low baud rates but started causing tx lost characters when kernel is going to power off or reboot. TX_EMP tells us when trans

[PATCH 4.19 50/58] kasan: fix incorrect arguments passing in kasan_add_zero_shadow

2021-01-25 Thread Greg Kroah-Hartman
From: Lecopzer Chen commit 5dabd1712cd056814f9ab15f1d68157ceb04e741 upstream. kasan_remove_zero_shadow() shall use original virtual address, start and size, instead of shadow address. Link: https://lkml.kernel.org/r/20210103063847.5963-1-lecop...@gmail.com Fixes: 0207df4fa1a86 ("kernel/memremap

[PATCH 4.19 51/58] udp: mask TOS bits in udp_v4_early_demux()

2021-01-25 Thread Greg Kroah-Hartman
From: Guillaume Nault commit 8d2b51b008c25240914984208b2ced57d1dd25a5 upstream. udp_v4_early_demux() is the only function that calls ip_mc_validate_source() with a TOS that hasn't been masked with IPTOS_RT_MASK. This results in different behaviours for incoming multicast UDPv4 packets, dependin

[PATCH 4.19 53/58] net_sched: avoid shift-out-of-bounds in tcindex_set_parms()

2021-01-25 Thread Greg Kroah-Hartman
From: Eric Dumazet commit bcd0cf19ef8258ac31b9a20248b05c15a1f4b4b0 upstream. tc_index being 16bit wide, we need to check that TCA_TCINDEX_SHIFT attribute is not silly. UBSAN: shift-out-of-bounds in net/sched/cls_tcindex.c:260:29 shift exponent 255 is too large for 32-bit type 'int' CPU: 0 PID:

[PATCH 5.4 17/86] drm/i915/gt: Prevent use of engine->wa_ctx after error

2021-01-25 Thread Greg Kroah-Hartman
From: Chris Wilson commit 488751a0ef9b5ce572c47301ce62d54fc6b5a74d upstream. On error we unpin and free the wa_ctx.vma, but do not clear any of the derived flags. During lrc_init, we look at the flags and attempt to dereference the wa_ctx.vma if they are set. To protect the error path where we t

[PATCH 5.4 22/86] scsi: qedi: Correct max length of CHAP secret

2021-01-25 Thread Greg Kroah-Hartman
From: Nilesh Javali [ Upstream commit d50c7986fbf0e2167279e110a2ed5bd8e811c660 ] The CHAP secret displayed garbage characters causing iSCSI login authentication failure. Correct the CHAP password max length. Link: https://lore.kernel.org/r/20201217105144.8055-1-njav...@marvell.com Reviewed-by:

[PATCH 5.4 21/86] scsi: ufs: Correct the LUN used in eh_device_reset_handler() callback

2021-01-25 Thread Greg Kroah-Hartman
From: Can Guo [ Upstream commit 35fc4cd34426c242ab015ef280853b7bff101f48 ] Users can initiate resets to specific SCSI device/target/host through IOCTL. When this happens, the SCSI cmd passed to eh_device/target/host _reset_handler() callbacks is initialized with a request whose tag is -1. In thi

[PATCH 5.4 25/86] riscv: Fix sifive serial driver

2021-01-25 Thread Greg Kroah-Hartman
From: Damien Le Moal [ Upstream commit 1f1496a923b6ba16679074fe77100e1b53cdb880 ] Setup the port uartclk in sifive_serial_probe() so that the base baud rate is correctly printed during device probe instead of always showing "0". I.e. the probe message is changed from 3800.serial: ttySIF0 a

[PATCH 5.4 24/86] riscv: Fix kernel time_init()

2021-01-25 Thread Greg Kroah-Hartman
From: Damien Le Moal [ Upstream commit 11f4c2e940e2f317c9d8fb5a79702f2a4a02ff98 ] If of_clk_init() is not called in time_init(), clock providers defined in the system device tree are not initialized, resulting in failures for other devices to initialize due to missing clocks. Similarly to other

[PATCH 5.4 07/86] btrfs: dont get an EINTR during drop_snapshot for reloc

2021-01-25 Thread Greg Kroah-Hartman
From: Josef Bacik commit 18d3bff411c8d46d40537483bdc0b61b33ce0371 upstream. This was partially fixed by f3e3d9cc3525 ("btrfs: avoid possible signal interruption of btrfs_drop_snapshot() on relocation tree"), however it missed a spot when we restart a trans handle because we need to end the trans

[PATCH 5.4 28/86] clk: tegra30: Add hda clock default rates to clock driver

2021-01-25 Thread Greg Kroah-Hartman
From: Peter Geis [ Upstream commit f4eccc7fea203cfb35205891eced1ab51836f362 ] Current implementation defaults the hda clocks to clk_m. This causes hda to run too slow to operate correctly. Fix this by defaulting to pll_p and setting the frequency to the correct rate. This matches upstream t124

[PATCH 5.4 29/86] arm64: make atomic helpers __always_inline

2021-01-25 Thread Greg Kroah-Hartman
From: Arnd Bergmann [ Upstream commit c35a824c31834d947fb99b0c608c1b9f922b4ba0 ] With UBSAN enabled and building with clang, there are occasionally warnings like WARNING: modpost: vmlinux.o(.text+0xc533ec): Section mismatch in reference from the function arch_atomic64_or() to the variable .ini

[PATCH 5.4 09/86] btrfs: dont clear ret in btrfs_start_dirty_block_groups

2021-01-25 Thread Greg Kroah-Hartman
From: Josef Bacik commit 34d1eb0e599875064955a74712f08ff14c8e3d5f upstream. If we fail to update a block group item in the loop we'll break, however we'll do btrfs_run_delayed_refs and lose our error value in ret, and thus not clean up properly. Fix this by only running the delayed refs if ther

[PATCH 5.4 31/86] x86/xen: Add xen_no_vector_callback option to test PCI INTX delivery

2021-01-25 Thread Greg Kroah-Hartman
From: David Woodhouse [ Upstream commit b36b0fe96af13460278bf9b173beced1bd15f85d ] It's useful to be able to test non-vector event channel delivery, to make sure Linux will work properly on older Xen which doesn't have it. It's also useful for those working on Xen and Xen-compatible hypervisors

[PATCH 5.4 38/86] drm/nouveau/privring: ack interrupts the same way as RM

2021-01-25 Thread Greg Kroah-Hartman
From: Ben Skeggs [ Upstream commit e05e06cd34f5311f677294a08b609acfbc315236 ] Whatever it is that we were doing before doesn't work on Ampere. Signed-off-by: Ben Skeggs Signed-off-by: Sasha Levin --- drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gf100.c | 10 +++--- drivers/gpu/drm/nouveau/nv

[PATCH 5.4 11/86] mmc: core: dont initialize block size from ext_csd if not present

2021-01-25 Thread Greg Kroah-Hartman
From: Peter Collingbourne commit b503087445ce7e45fabdee87ca9e460d5b5b5168 upstream. If extended CSD was not available, the eMMC driver would incorrectly set the block size to 0, as the data_sector_size field of ext_csd was never initialized. This issue was exposed by commit 817046ecddbc ("block:

[PATCH 5.4 10/86] btrfs: send: fix invalid clone operations when cloning from the same file and root

2021-01-25 Thread Greg Kroah-Hartman
From: Filipe Manana commit 518837e65068c385dddc0a87b3e577c8be7c13b1 upstream. When an incremental send finds an extent that is shared, it checks which file extent items in the range refer to that extent, and for those it emits clone operations, while for others it emits regular write operations

[PATCH 5.4 55/86] x86/mmx: Use KFPU_387 for MMX string operations

2021-01-25 Thread Greg Kroah-Hartman
From: Andy Lutomirski commit 67de8dca50c027ca0fa3b62a488ee5035036a0da upstream. The default kernel_fpu_begin() doesn't work on systems that support XMM but haven't yet enabled CR4.OSFXSR. This causes crashes when _mmx_memcpy() is called too early because LDMXCSR generates #UD when the aforement

[PATCH 5.4 37/86] drm/nouveau/bios: fix issue shadowing expansion ROMs

2021-01-25 Thread Greg Kroah-Hartman
From: Ben Skeggs [ Upstream commit 402a89660e9dc880710b12773076a336c9dab3d7 ] This issue has generally been covered up by the presence of additional expansion ROMs after the ones we're interested in, with header fetches of subsequent images loading enough of the ROM to hide the issue. Noticed o

[PATCH 5.4 68/86] x86/cpu/amd: Set __max_die_per_package on AMD

2021-01-25 Thread Greg Kroah-Hartman
From: Yazen Ghannam commit 76e2fc63ca40977af893b724b00cc2f8e9ce47a4 upstream. Set the maximum DIE per package variable on AMD using the NodesPerProcessor topology value. This will be used by RAPL, among others, to determine the maximum number of DIEs on the system in order to do per-DIE manipula

[PATCH 5.4 43/86] pinctrl: aspeed: g6: Fix PWMG0 pinctrl setting

2021-01-25 Thread Greg Kroah-Hartman
From: Billy Tsai [ Upstream commit 92ff62a7bcc17d47c0ce8dddfb7a6e1a2e55ebf4 ] The SCU offset for signal PWM8 in group PWM8G0 is wrong, fix it from SCU414 to SCU4B4. Signed-off-by: Billy Tsai Fixes: 2eda1cdec49f ("pinctrl: aspeed: Add AST2600 pinmux support") Reviewed-by: Joel Stanley Reviewed

[PATCH 5.4 48/86] selftests: net: fib_tests: remove duplicate log test

2021-01-25 Thread Greg Kroah-Hartman
From: Hangbin Liu [ Upstream commit fd23d2dc180fccfad4b27a8e52ba1bc415d18509 ] The previous test added an address with a specified metric and check if correspond route was created. I somehow added two logs for the same test. Remove the duplicated one. Reported-by: Antoine Tenart Fixes: 0d29169

[PATCH 5.4 80/86] net_sched: reject silly cell_log in qdisc_get_rtab()

2021-01-25 Thread Greg Kroah-Hartman
From: Eric Dumazet commit e4bedf48aaa5552bc1f49703abd17606e7e6e82a upstream. iproute2 probably never goes beyond 8 for the cell exponent, but stick to the max shift exponent for signed 32bit. UBSAN reported: UBSAN: shift-out-of-bounds in net/sched/sch_api.c:389:22 shift exponent 130 is too larg

[PATCH 5.10 015/199] btrfs: do not double free backref nodes on error

2021-01-25 Thread Greg Kroah-Hartman
From: Josef Bacik commit 49ecc679ab48b40ca799bf94b327d5284eac9e46 upstream. Zygo reported the following KASAN splat: BUG: KASAN: use-after-free in btrfs_backref_cleanup_node+0x18a/0x420 Read of size 8 at addr 888112402950 by task btrfs/28836 CPU: 0 PID: 28836 Comm: btrfs Tainted: G

[PATCH 5.10 008/199] ALSA: seq: oss: Fix missing error check in snd_seq_oss_synth_make_info()

2021-01-25 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 217bfbb8b0bfa24619b11ab75c135fec99b99b20 upstream. snd_seq_oss_synth_make_info() didn't check the error code from snd_seq_oss_midi_make_info(), and this leads to the call of strlcpy() with the uninitialized string as the source, which may lead to the access over the lim

[PATCH 5.10 035/199] ASoC: rt711: mutex between calibration and power state changes

2021-01-25 Thread Greg Kroah-Hartman
From: Shuming Fan [ Upstream commit 6108f990c0887d3e8f1db2d13c7012e40a061f28 ] To avoid calibration time-out, this patch adds the mutex between calibration and power state changes Signed-off-by: Shuming Fan Link: https://lore.kernel.org/r/20201217085651.24580-1-shumi...@realtek.com Signed-off

[PATCH 5.10 020/199] pinctrl: ingenic: Fix JZ4760 support

2021-01-25 Thread Greg Kroah-Hartman
From: Paul Cercueil commit 9a85c09a3f507b925d75cb0c7c8f364467038052 upstream. - JZ4760 and JZ4760B have a similar register layout as the JZ4740, and don't use the new register layout, which was introduced with the JZ4770 SoC and not the JZ4760 or JZ4760B SoCs. - The JZ4740 code path only ex

[PATCH 5.10 006/199] platform/x86: i2c-multi-instantiate: Dont create platform device for INT3515 ACPI nodes

2021-01-25 Thread Greg Kroah-Hartman
From: Heikki Krogerus commit 9bba96275576da0cf78ede62aeb2fc975ed8a32d upstream. There are several reports about the tps6598x causing interrupt flood on boards with the INT3515 ACPI node, which then causes instability. There appears to be several problems with the interrupt. One problem is that t

[PATCH 5.10 041/199] scsi: ufs: Relax the condition of UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL

2021-01-25 Thread Greg Kroah-Hartman
From: Stanley Chu [ Upstream commit 21acf4601cc63cf564c6fc1a74d81b191313c929 ] UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL is intended to skip enabling fWriteBoosterBufferFlushEn while WriteBooster is initializing. Therefore it is better to apply the checking during WriteBooster initialization only.

[PATCH 5.10 033/199] drm/i915: Check for rq->hwsp validity after acquiring RCU lock

2021-01-25 Thread Greg Kroah-Hartman
From: Chris Wilson commit 45db630e5f7ec83817c57c8ae387fe219bd42adf upstream. Since we allow removing the timeline map at runtime, there is a risk that rq->hwsp points into a stale page. To control that risk, we hold the RCU read lock while reading *rq->hwsp, but we missed a couple of important b

[PATCH 5.10 036/199] SUNRPC: Handle TCP socket sends with kernel_sendpage() again

2021-01-25 Thread Greg Kroah-Hartman
From: Chuck Lever [ Upstream commit 4a85a6a3320b4a622315d2e0ea91a1d2b013bce4 ] Daire Byrne reports a ~50% aggregrate throughput regression on his Linux NFS server after commit da1661b93bf4 ("SUNRPC: Teach server to use xprt_sock_sendmsg for socket sends"), which replaced kernel_send_page() calls

[PATCH 5.10 039/199] dm integrity: select CRYPTO_SKCIPHER

2021-01-25 Thread Greg Kroah-Hartman
From: Anthony Iliopoulos [ Upstream commit f7b347acb5f6c29d9229bb64893d8b6a2c7949fb ] The integrity target relies on skcipher for encryption/decryption, but certain kernel configurations may not enable CRYPTO_SKCIPHER, leading to compilation errors due to unresolved symbols. Explicitly select CR

[PATCH 5.10 049/199] HID: logitech-dj: add the G602 receiver

2021-01-25 Thread Greg Kroah-Hartman
From: Filipe Laíns [ Upstream commit e400071a805d6229223a98899e9da8c6233704a1 ] Tested. The device gets correctly exported to userspace and I can see mouse and keyboard events. Signed-off-by: Filipe Laíns Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- drivers/hid/hid-logitech-dj.

[PATCH 5.10 043/199] scsi: qedi: Correct max length of CHAP secret

2021-01-25 Thread Greg Kroah-Hartman
From: Nilesh Javali [ Upstream commit d50c7986fbf0e2167279e110a2ed5bd8e811c660 ] The CHAP secret displayed garbage characters causing iSCSI login authentication failure. Correct the CHAP password max length. Link: https://lore.kernel.org/r/20201217105144.8055-1-njav...@marvell.com Reviewed-by:

[PATCH 5.10 044/199] scsi: scsi_debug: Fix memleak in scsi_debug_init()

2021-01-25 Thread Greg Kroah-Hartman
From: Dinghao Liu [ Upstream commit 3b01d7ea4dae907d34fa0eeb3f17bacd714c6d0c ] When sdeb_zbc_model does not match BLK_ZONED_NONE, BLK_ZONED_HA or BLK_ZONED_HM, we should free sdebug_q_arr to prevent memleak. Also there is no need to execute sdebug_erase_store() on failure of sdeb_zbc_model_str()

[PATCH 5.10 054/199] arm64: make atomic helpers __always_inline

2021-01-25 Thread Greg Kroah-Hartman
From: Arnd Bergmann [ Upstream commit c35a824c31834d947fb99b0c608c1b9f922b4ba0 ] With UBSAN enabled and building with clang, there are occasionally warnings like WARNING: modpost: vmlinux.o(.text+0xc533ec): Section mismatch in reference from the function arch_atomic64_or() to the variable .ini

[PATCH 5.10 065/199] drm/nouveau/bios: fix issue shadowing expansion ROMs

2021-01-25 Thread Greg Kroah-Hartman
From: Ben Skeggs [ Upstream commit 402a89660e9dc880710b12773076a336c9dab3d7 ] This issue has generally been covered up by the presence of additional expansion ROMs after the ones we're interested in, with header fetches of subsequent images loading enough of the ROM to hide the issue. Noticed o

[PATCH 5.10 056/199] x86/xen: Add xen_no_vector_callback option to test PCI INTX delivery

2021-01-25 Thread Greg Kroah-Hartman
From: David Woodhouse [ Upstream commit b36b0fe96af13460278bf9b173beced1bd15f85d ] It's useful to be able to test non-vector event channel delivery, to make sure Linux will work properly on older Xen which doesn't have it. It's also useful for those working on Xen and Xen-compatible hypervisors

[PATCH 5.10 060/199] riscv: defconfig: enable gpio support for HiFive Unleashed

2021-01-25 Thread Greg Kroah-Hartman
From: Sagar Shrikant Kadam [ Upstream commit 0983834a83931606a647c275e5d4165ce4e7b49f ] Ethernet phy VSC8541-01 on HiFive Unleashed has its reset line connected to a gpio, so enable GPIO driver's required to reset the phy. Signed-off-by: Sagar Shrikant Kadam Signed-off-by: Palmer Dabbelt Sign

[PATCH 5.10 061/199] drm/amdgpu/psp: fix psp gfx ctrl cmds

2021-01-25 Thread Greg Kroah-Hartman
From: Victor Zhao [ Upstream commit f14a5c34d143f6627f0be70c0de1d962f3a6ff1c ] psp GFX_CTRL_CMD_ID_CONSUME_CMD different for windows and linux, according to psp, linux cmds are not correct. v2: only correct GFX_CTRL_CMD_ID_CONSUME_CMD. Signed-off-by: Victor Zhao Reviewed-by: Emily.Deng Signe

[PATCH 5.10 110/199] i2c: sprd: depend on COMMON_CLK to fix compile tests

2021-01-25 Thread Greg Kroah-Hartman
From: Krzysztof Kozlowski [ Upstream commit 9ecd1d2b302b600351fac50779f43fcb680c1a16 ] The I2C_SPRD uses Common Clock Framework thus it cannot be built on platforms without it (e.g. compile test on MIPS with LANTIQ): /usr/bin/mips-linux-gnu-ld: drivers/i2c/busses/i2c-sprd.o: in function `s

[PATCH 5.10 113/199] drivers: iio: temperature: Add delay after the addressed reset command in mlx90632.c

2021-01-25 Thread Greg Kroah-Hartman
From: Slaveyko Slaveykov commit cf5b1385d748b2f91b0c05bb301fcaf9bdbad385 upstream. After an I2C reset command, the mlx90632 needs some time before responding to other I2C commands. Without that delay, there is a chance that the I2C command(s) after the reset will not be accepted. Signed-off-by:

[PATCH 5.10 112/199] iio: ad5504: Fix setting power-down state

2021-01-25 Thread Greg Kroah-Hartman
From: Lars-Peter Clausen commit efd597b2839a9895e8a98fcb0b76d2f545802cd4 upstream. The power-down mask of the ad5504 is actually a power-up mask. Meaning if a bit is set the corresponding channel is powered up and if it is not set the channel is powered down. The driver currently has this the w

[PATCH 5.10 091/199] bpf: Reject too big ctx_size_in for raw_tp test run

2021-01-25 Thread Greg Kroah-Hartman
From: Song Liu [ Upstream commit 7ac6ad051150592557520b45773201b987ecfce3 ] syzbot reported a WARNING for allocating too big memory: WARNING: CPU: 1 PID: 8484 at mm/page_alloc.c:4976 __alloc_pages_nodemask+0x5f8/0x730 mm/page_alloc.c:5011 Modules linked in: CPU: 1 PID: 8484 Comm: syz-executor8

[PATCH 5.10 094/199] RDMA/cma: Fix error flow in default_roce_mode_store

2021-01-25 Thread Greg Kroah-Hartman
From: Neta Ostrovsky [ Upstream commit 7c7b3e5d9aeed31d35c5dab0bf9c0fd4c8923206 ] In default_roce_mode_store(), we took a reference to cma_dev, but didn't return it with cma_dev_put in the error flow. Fixes: 1c15b4f2a42f ("RDMA/core: Modify enum ib_gid_type and enum rdma_network_type") Link: h

[PATCH 5.10 119/199] x86/mmx: Use KFPU_387 for MMX string operations

2021-01-25 Thread Greg Kroah-Hartman
From: Andy Lutomirski commit 67de8dca50c027ca0fa3b62a488ee5035036a0da upstream. The default kernel_fpu_begin() doesn't work on systems that support XMM but haven't yet enabled CR4.OSFXSR. This causes crashes when _mmx_memcpy() is called too early because LDMXCSR generates #UD when the aforement

[PATCH 5.10 118/199] irqchip/mips-cpu: Set IPI domain parent chip

2021-01-25 Thread Greg Kroah-Hartman
From: Mathias Kresin commit 599b3063adf4bf041a87a69244ee36aded0d878f upstream. Since commit 55567976629e ("genirq/irqdomain: Allow partial trimming of irq_data hierarchy") the irq_data chain is valided. The irq_domain_trim_hierarchy() function doesn't consider the irq + ipi domain hierarchy as

[PATCH 5.10 133/199] USB: ehci: fix an interrupt calltrace error

2021-01-25 Thread Greg Kroah-Hartman
From: Longfang Liu commit 643a4df7fe3f6831d14536fd692be85f92670a52 upstream. The system that use Synopsys USB host controllers goes to suspend when using USB audio player. This causes the USB host controller continuous send interrupt signal to system, When the number of interrupts exceeds 10

[PATCH 5.10 138/199] usb: cdns3: imx: fix writing read-only memory issue

2021-01-25 Thread Greg Kroah-Hartman
From: Peter Chen commit 92cbdb923c17544684c2dd3be9f8636617898a44 upstream. The memory for struct clk_bulk_data should not be static which will be written during the clk_bulk_get. It fixed below oops when loading cdns3-imx as module. [ 17.272605] Unable to handle kernel write to read-only memo

[PATCH 5.10 124/199] mm: memcg: fix memcg file_dirty numa stat

2021-01-25 Thread Greg Kroah-Hartman
From: Shakeel Butt commit 8a8792f600abacd7e1b9bb667759dca1c153f64c upstream. 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

[PATCH 5.10 151/199] tools: gpio: fix %llu warning in gpio-event-mon.c

2021-01-25 Thread Greg Kroah-Hartman
From: Kent Gibson commit 2fe7c2f99440d52613e1cf845c96e8e463c28111 upstream. Some platforms, such as mips64, don't map __u64 to long long unsigned int so using %llu produces a warning: gpio-event-mon.c:110:37: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argumen

[PATCH 5.10 128/199] io_uring: fix short read retries for non-reg files

2021-01-25 Thread Greg Kroah-Hartman
From: Pavel Begunkov commit 9a173346bd9e16ab19c7addb8862d95a5cea9feb upstream. Sockets and other non-regular files may actually expect short reads to happen, don't retry reads for them. Because non-reg files don't set FMODE_BUF_RASYNC and so it won't do second/retry do_read, we can filter out th

[PATCH 5.10 155/199] sh: Remove unused HAVE_COPY_THREAD_TLS macro

2021-01-25 Thread Greg Kroah-Hartman
From: Jinyang He commit 19170492735be935747b0545b7eed8bb40cc1209 upstream. Fixes: e1cc9d8d596e ("sh: switch to copy_thread_tls()") Signed-off-by: Jinyang He Signed-off-by: Rich Felker Signed-off-by: Greg Kroah-Hartman --- arch/sh/Kconfig |1 - 1 file changed, 1 deletion(-) --- a/arch/

[PATCH 5.10 121/199] proc_sysctl: fix oops caused by incorrect command parameters

2021-01-25 Thread Greg Kroah-Hartman
From: Xiaoming Ni commit 697edcb0e4eadc41645fe88c991fe6a206b1a08d upstream. The process_sysctl_arg() does not check whether val is empty before invoking strlen(val). If the command line parameter () is incorrectly configured and val is empty, oops is triggered. For example: "hung_task_panic=

[PATCH 5.10 153/199] drm/i915/hdcp: Update CP property in update_pipe

2021-01-25 Thread Greg Kroah-Hartman
From: Anshuman Gupta commit b3c95d0bdb0855b1f28370629e9eebec6bceac17 upstream. When crtc state need_modeset is true it is not necessary it is going to be a real modeset, it can turns to be a fastset instead of modeset. This turns content protection property to be DESIRED and hdcp update_pipe lef

[PATCH 5.10 165/199] lightnvm: fix memory leak when submit fails

2021-01-25 Thread Greg Kroah-Hartman
From: Pan Bian commit 97784481757fba7570121a70dd37ca74a29f50a8 upstream. The allocated page is not released if error occurs in nvm_submit_io_sync_raw(). __free_page() is moved ealier to avoid possible memory leak issue. Fixes: aff3fb18f957 ("lightnvm: move bad block and chunk state logic to cor

[PATCH 5.10 172/199] ipv6: create multicast route with RTPROT_KERNEL

2021-01-25 Thread Greg Kroah-Hartman
From: Matteo Croce commit a826b04303a40d52439aa141035fca5654ccaccd upstream. The ff00::/8 multicast route is created without specifying the fc_protocol field, so the default RTPROT_BOOT value is used: $ ip -6 -d route unicast ::1 dev lo proto kernel scope global metric 256 pref medium uni

[PATCH 5.10 156/199] locking/lockdep: Cure noinstr fail

2021-01-25 Thread Greg Kroah-Hartman
From: Peter Zijlstra commit 0afda3a888dccf12557b41ef42eee942327d122b upstream. When the compiler doesn't feel like inlining, it causes a noinstr fail: vmlinux.o: warning: objtool: lock_is_held_type()+0xb: call to lockdep_enabled() leaves .noinstr.text section Fixes: 4d004099a668 ("lockdep:

[PATCH 5.10 186/199] pinctrl: qcom: Dont clear pending interrupts when enabling

2021-01-25 Thread Greg Kroah-Hartman
From: Douglas Anderson commit cf9d052aa6005f1e8dfaf491d83bf37f368af69e upstream. In Linux, if a driver does disable_irq() and later does enable_irq() on its interrupt, I believe it's expecting these properties: * If an interrupt was pending when the driver disabled then it will still be pendin

[PATCH 5.10 179/199] tcp: do not mess with cloned skbs in tcp_add_backlog()

2021-01-25 Thread Greg Kroah-Hartman
From: Eric Dumazet commit b160c28548bc0a87cbd16d5af6d3edcfd70b8c9a upstream. Heiner Kallweit reported that some skbs were sent with the following invalid GSO properties : - gso_size > 0 - gso_type == 0 This was triggerring a WARN_ON_ONCE() in rtl8169_tso_csum_v2. Juerg Haefliger was able to re

[PATCH 5.10 180/199] tcp: fix TCP_USER_TIMEOUT with zero window

2021-01-25 Thread Greg Kroah-Hartman
From: Enke Chen commit 9d9b1ee0b2d1c9e02b2338c4a4b0a062d2d3edac upstream. The TCP session does not terminate with TCP_USER_TIMEOUT when data remain untransmitted due to zero window. The number of unanswered zero-window probes (tcp_probes_out) is reset to zero with incoming acks irrespective of

[PATCH 5.10 163/199] nvme-pci: fix error unwind in nvme_map_data

2021-01-25 Thread Greg Kroah-Hartman
From: Christoph Hellwig commit fa0732168fa1369dd089e5b06d6158a68229f7b7 upstream. Properly unwind step by step using refactored helpers from nvme_unmap_data to avoid a potential double dma_unmap on a mapping failure. Fixes: 7fe07d14f71f ("nvme-pci: merge nvme_free_iod into nvme_unmap_data") Rep

[PATCH 5.10 188/199] tty: implement write_iter

2021-01-25 Thread Greg Kroah-Hartman
From: Linus Torvalds commit 9bb48c82aced07698a2d08ee0f1475a6c4f6b266 upstream. This makes the tty layer use the .write_iter() function instead of the traditional .write() functionality. That allows writev(), but more importantly also makes it possible to enable .splice_write() for ttys, reinsta

[PATCH 5.10 185/199] pinctrl: qcom: Properly clear "intr_ack_high" interrupts when unmasking

2021-01-25 Thread Greg Kroah-Hartman
From: Douglas Anderson commit a95881d6aa2c000e3649f27a1a7329cf356e6bb3 upstream. In commit 4b7618fdc7e6 ("pinctrl: qcom: Add irq_enable callback for msm gpio") we tried to Ack interrupts during unmask. However, that patch forgot to check "intr_ack_high" so, presumably, it only worked for a cert

[PATCH 5.10 158/199] octeontx2-af: Fix missing check bugs in rvu_cgx.c

2021-01-25 Thread Greg Kroah-Hartman
From: Yingjie Wang commit b7ba6cfabc42fc846eb96e33f1edcd3ea6290a27 upstream. In rvu_mbox_handler_cgx_mac_addr_get() and rvu_mbox_handler_cgx_mac_addr_set(), the msg is expected only from PFs that are mapped to CGX LMACs. It should be checked before mapping, so we add the is_cgx_config_permitted(

[PATCH 5.10 161/199] sh_eth: Fix power down vs. is_opened flag ordering

2021-01-25 Thread Greg Kroah-Hartman
From: Geert Uytterhoeven commit f6a2e94b3f9d89cb40771ff746b16b5687650cbb upstream. sh_eth_close() does a synchronous power down of the device before marking it closed. Revert the order, to make sure the device is never marked opened while suspended. While at it, use pm_runtime_put() instead of

[PATCH 5.10 194/199] drm/i915/hdcp: Get conn while content_type changed

2021-01-25 Thread Greg Kroah-Hartman
From: Anshuman Gupta commit 8662e1119a7d1baa1b2001689b2923e9050754bd upstream. Get DRM connector reference count while scheduling a prop work to avoid any possible destroy of DRM connector when it is in DRM_CONNECTOR_REGISTERED state. Fixes: a6597faa2d59 ("drm/i915: Protect workers against disa

[PATCH 5.10 154/199] sh: dma: fix kconfig dependency for G2_DMA

2021-01-25 Thread Greg Kroah-Hartman
From: Necip Fazil Yildiran commit f477a538c14d07f8c45e554c8c5208d588514e98 upstream. When G2_DMA is enabled and SH_DMA is disabled, it results in the following Kbuild warning: WARNING: unmet direct dependencies detected for SH_DMA_API Depends on [n]: SH_DMA [=n] Selected by [y]: - G2_DMA

[PATCH 5.10 193/199] ASoC: SOF: Intel: hda: Avoid checking jack on system suspend

2021-01-25 Thread Greg Kroah-Hartman
From: Kai-Heng Feng commit ef4d764c99f792b725d4754a3628830f094f5c58 upstream. System takes a very long time to suspend after commit 215a22ed31a1 ("ALSA: hda: Refactor codec PM to use direct-complete optimization"): [ 90.065964] PM: suspend entry (s2idle) [ 90.067337] Filesystems sync: 0.001

[PATCH 5.10 192/199] tcp: Fix potential use-after-free due to double kfree()

2021-01-25 Thread Greg Kroah-Hartman
From: Kuniyuki Iwashima commit c89dffc70b340780e5b933832d8c3e045ef3791e upstream. Receiving ACK with a valid SYN cookie, cookie_v4_check() allocates struct request_sock and then can allocate inet_rsk(req)->ireq_opt. After that, tcp_v4_syn_recv_sock() allocates struct sock and copies ireq_opt to

[PATCH 5.10 187/199] x86/sev: Fix nonistr violation

2021-01-25 Thread Greg Kroah-Hartman
From: Peter Zijlstra commit a1d5c98aac33a5a0004ecf88905dcc261c52f988 upstream. When the compiler fails to inline, it violates nonisntr: vmlinux.o: warning: objtool: __sev_es_nmi_complete()+0xc7: call to sev_es_wr_ghcb_msr() leaves .noinstr.text section Fixes: 4ca68e023b11 ("x86/sev-es: Hand

[PATCH 5.10 196/199] kernfs: implement ->read_iter

2021-01-25 Thread Greg Kroah-Hartman
From: Christoph Hellwig commit 4eaad21a6ac9865df7f31983232ed5928450458d upstream. Switch kernfs to implement the read_iter method instead of plain old read to prepare to supporting splice and sendfile again. Signed-off-by: Christoph Hellwig Link: https://lore.kernel.org/r/20210120204631.274206

[PATCH 5.10 191/199] x86/sev-es: Handle string port IO to kernel memory properly

2021-01-25 Thread Greg Kroah-Hartman
From: Hyunwook (Wooky) Baek commit 7024f60d655272bd2ca1d3a4c9e0a63319b1eea1 upstream. Don't assume dest/source buffers are userspace addresses when manually copying data for string I/O or MOVS MMIO, as {get,put}_user() will fail if handed a kernel address and ultimately lead to a kernel panic.

[PATCH 5.10 189/199] tty: fix up hung_up_tty_write() conversion

2021-01-25 Thread Greg Kroah-Hartman
From: Linus Torvalds commit 17749851eb9ca2298e7c3b81aae4228961b36f28 upstream. In commit "tty: implement write_iter", I left the write_iter conversion of the hung up tty case alone, because I incorrectly thought it didn't matter. Jiri showed me the errors of my ways, and pointed out the problem

Re: [PATCH] PCI: dwc: layerscape: convert to builtin_platform_driver()

2021-01-25 Thread Saravana Kannan
On Mon, Jan 25, 2021 at 8:50 AM Lorenzo Pieralisi wrote: > > On Wed, Jan 20, 2021 at 08:28:36PM +0100, Michael Walle wrote: > > [RESEND, fat-fingered the buttons of my mail client and converted > > all CCs to BCCs :(] > > > > Am 2021-01-20 20:02, schrieb Saravana Kannan: > > > On Wed, Jan 20, 2021

[PATCH 5.10 190/199] net: systemport: free dev before on error path

2021-01-25 Thread Greg Kroah-Hartman
From: Pan Bian commit 0c630a66bf10991b0ef13d27c93d7545e692ef5b upstream. On the error path, it should goto the error handling label to free allocated memory rather than directly return. Fixes: 31bc72d97656 ("net: systemport: fetch and use clock resources") Signed-off-by: Pan Bian Acked-by: Flo

Re: [PATCH v3 4/4] drm/ingenic: Fix non-OSD mode

2021-01-25 Thread H. Nikolaus Schaller
Hi Paul, > Am 24.01.2021 um 10:47 schrieb H. Nikolaus Schaller : > > Hi Paul, > >> Am 24.01.2021 um 10:43 schrieb Paul Cercueil : >> >> Hi Nikolaus, >> >> Le dim. 24 janv. 2021 à 10:30, H. Nikolaus Schaller a >> écrit : >>> Hi Paul, >>> we observed the same issue on the jz4730 (which is almo

[PATCH] n_tty: fix redirected_tty_write checks after write_iter conversion

2021-01-25 Thread Sami Tolvanen
Commit 9bb48c82aced ("tty: implement write_iter") converted the tty layer to use write_iter. Fix the redirected_tty_write declaration also in n_tty and change the comparisons to use write_iter instead of write. Signed-off-by: Sami Tolvanen --- drivers/tty/n_tty.c | 7 +++ 1 file changed, 3 i

[PATCH v10 16/18] arm64: kexec: configure trans_pgd page table for kexec

2021-01-25 Thread Pavel Tatashin
Configure a page table located in kexec-safe memory that has the following mappings: 1. identity mapping for text of relocation function with executable permission. 2. va mappings for all source ranges 3. va mappings for all destination ranges. Signed-off-by: Pavel Tatashin --- arch/arm64/in

[PATCH v10 07/18] arm64: mm: Always update TCR_EL1 from __cpu_set_tcr_t0sz()

2021-01-25 Thread Pavel Tatashin
From: James Morse Because only the idmap sets a non-standard T0SZ, __cpu_set_tcr_t0sz() can check for platforms that need to do this using __cpu_uses_extended_idmap() before doing its work. The idmap is only built with enough levels, (and T0SZ bits) to map its single page. To allow hibernate, a

Re: [PATCH 2/2] arm64: dts: imx8mn-beacon-som: Enable QSPI on SOM

2021-01-25 Thread Krzysztof Kozlowski
On Tue, Jan 19, 2021 at 07:42:58AM -0600, Adam Ford wrote: > There is a QSPI chip connected to the FlexSPI bus. Enable it. > > Signed-off-by: Adam Ford > > diff --git a/arch/arm64/boot/dts/freescale/imx8mn-beacon-som.dtsi > b/arch/arm64/boot/dts/freescale/imx8mn-beacon-som.dtsi > index 2120e64

[PATCH v10 17/18] arm64: kexec: enable MMU during kexec relocation

2021-01-25 Thread Pavel Tatashin
Now, that we have transitional page tables configured, temporarily enable MMU to allow faster relocation of segments to final destination. The performance data: for a moderate size kernel + initramfs: 25M the relocation was taking 0.382s, with enabled MMU it now takes 0.019s only or x20 improvemen

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