This is the start of the stable review cycle for the 5.4.93 release.
There are 88 patches in this series, all will be posted as a response
to this one. If anyone has any issues with these being applied, please
let me know.
Responses should be made by Thu, 28 Jan 2021 09:42:44 +0000.
Anything received after that time might be too late.
The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.93-rc2…
or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.4.y
and the diffstat can be found below.
thanks,
greg k-h
-------------
Pseudo-Shortlog of commits:
Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
Linux 5.4.93-rc2
Enke Chen <enchen(a)paloaltonetworks.com>
tcp: fix TCP_USER_TIMEOUT with zero window
Eric Dumazet <edumazet(a)google.com>
tcp: do not mess with cloned skbs in tcp_add_backlog()
Dan Carpenter <dan.carpenter(a)oracle.com>
net: dsa: b53: fix an off by one in checking "vlan->vid"
Tariq Toukan <tariqt(a)nvidia.com>
net: Disable NETIF_F_HW_TLS_RX when RXCSUM is disabled
Vladimir Oltean <vladimir.oltean(a)nxp.com>
net: mscc: ocelot: allow offloading of bridge on top of LAG
Matteo Croce <mcroce(a)microsoft.com>
ipv6: set multicast flag on the multicast route
Eric Dumazet <edumazet(a)google.com>
net_sched: reject silly cell_log in qdisc_get_rtab()
Eric Dumazet <edumazet(a)google.com>
net_sched: avoid shift-out-of-bounds in tcindex_set_parms()
Matteo Croce <mcroce(a)microsoft.com>
ipv6: create multicast route with RTPROT_KERNEL
Guillaume Nault <gnault(a)redhat.com>
udp: mask TOS bits in udp_v4_early_demux()
Lecopzer Chen <lecopzer(a)gmail.com>
kasan: fix incorrect arguments passing in kasan_add_zero_shadow
Lecopzer Chen <lecopzer(a)gmail.com>
kasan: fix unaligned address is unhandled in kasan_remove_zero_shadow
Alexander Lobakin <alobakin(a)pm.me>
skbuff: back tiny skbs with kmalloc() in __netdev_alloc_skb() too
Pan Bian <bianpan2016(a)163.com>
lightnvm: fix memory leak when submit fails
Geert Uytterhoeven <geert+renesas(a)glider.be>
sh_eth: Fix power down vs. is_opened flag ordering
Rasmus Villemoes <rasmus.villemoes(a)prevas.dk>
net: dsa: mv88e6xxx: also read STU state in mv88e6250_g1_vtu_getnext
Necip Fazil Yildiran <fazilyildiran(a)gmail.com>
sh: dma: fix kconfig dependency for G2_DMA
Guillaume Nault <gnault(a)redhat.com>
netfilter: rpfilter: mask ecn bits before fib lookup
Yazen Ghannam <Yazen.Ghannam(a)amd.com>
x86/cpu/amd: Set __max_die_per_package on AMD
Paul Cercueil <paul(a)crapouillou.net>
pinctrl: ingenic: Fix JZ4760 support
Rafael J. Wysocki <rafael.j.wysocki(a)intel.com>
driver core: Extend device_is_dependent()
JC Kuo <jckuo(a)nvidia.com>
xhci: tegra: Delay for disabling LFPS detector
Mathias Nyman <mathias.nyman(a)linux.intel.com>
xhci: make sure TRB is fully written before giving it to the controller
Patrik Jakobsson <patrik.r.jakobsson(a)gmail.com>
usb: bdc: Make bdc pci driver depend on BROKEN
Thinh Nguyen <Thinh.Nguyen(a)synopsys.com>
usb: udc: core: Use lock when write to soft_connect
Ryan Chen <ryan_chen(a)aspeedtech.com>
usb: gadget: aspeed: fix stop dma register setting.
Longfang Liu <liulongfang(a)huawei.com>
USB: ehci: fix an interrupt calltrace error
Eugene Korenevsky <ekorenevsky(a)astralinux.ru>
ehci: fix EHCI host controller initialization sequence
Pali Rohár <pali(a)kernel.org>
serial: mvebu-uart: fix tx lost characters at power off
Wang Hui <john.wanghui(a)huawei.com>
stm class: Fix module init return on allocation failure
Alexander Shishkin <alexander.shishkin(a)linux.intel.com>
intel_th: pci: Add Alder Lake-P support
Andy Lutomirski <luto(a)kernel.org>
x86/mmx: Use KFPU_387 for MMX string operations
Borislav Petkov <bp(a)suse.de>
x86/topology: Make __max_die_per_package available unconditionally
Andy Lutomirski <luto(a)kernel.org>
x86/fpu: Add kernel_fpu_begin_mask() to selectively initialize state
Mathias Kresin <dev(a)kresin.me>
irqchip/mips-cpu: Set IPI domain parent chip
Ronnie Sahlberg <lsahlber(a)redhat.com>
cifs: do not fail __smb_send_rqst if non-fatal signals are pending
Lars-Peter Clausen <lars(a)metafoo.de>
iio: ad5504: Fix setting power-down state
Vincent Mailhol <mailhol.vincent(a)wanadoo.fr>
can: peak_usb: fix use after free bugs
Vincent Mailhol <mailhol.vincent(a)wanadoo.fr>
can: vxcan: vxcan_xmit: fix use after free bug
Vincent Mailhol <mailhol.vincent(a)wanadoo.fr>
can: dev: can_restart: fix use after free bug
Hangbin Liu <liuhangbin(a)gmail.com>
selftests: net: fib_tests: remove duplicate log test
Hans de Goede <hdegoede(a)redhat.com>
platform/x86: intel-vbtn: Drop HP Stream x360 Convertible PC 11 from allow-list
Wolfram Sang <wsa+renesas(a)sang-engineering.com>
i2c: octeon: check correct size of maximum RECV_LEN packet
Ariel Marcovitch <arielmarcovitch(a)gmail.com>
powerpc: Fix alignment bug within the init sections
Arnd Bergmann <arnd(a)arndb.de>
scsi: megaraid_sas: Fix MEGASAS_IOC_FIRMWARE regression
Billy Tsai <billy_tsai(a)aspeedtech.com>
pinctrl: aspeed: g6: Fix PWMG0 pinctrl setting
Youling Tang <tangyouling(a)loongson.cn>
powerpc: Use the common INIT_DATA_SECTION macro in vmlinux.lds.S
Ben Skeggs <bskeggs(a)redhat.com>
drm/nouveau/kms/nv50-: fix case where notifier buffer is at offset 0
Ben Skeggs <bskeggs(a)redhat.com>
drm/nouveau/mmu: fix vram heap sizing
Ben Skeggs <bskeggs(a)redhat.com>
drm/nouveau/i2c/gm200: increase width of aux semaphore owner fields
Ben Skeggs <bskeggs(a)redhat.com>
drm/nouveau/privring: ack interrupts the same way as RM
Ben Skeggs <bskeggs(a)redhat.com>
drm/nouveau/bios: fix issue shadowing expansion ROMs
Wayne Lin <Wayne.Lin(a)amd.com>
drm/amd/display: Fix to be able to stop crc calculation
Victor Zhao <Victor.Zhao(a)amd.com>
drm/amdgpu/psp: fix psp gfx ctrl cmds
Sagar Shrikant Kadam <sagar.kadam(a)sifive.com>
riscv: defconfig: enable gpio support for HiFive Unleashed
Sagar Shrikant Kadam <sagar.kadam(a)sifive.com>
dts: phy: add GPIO number and active state used for phy reset
Sagar Shrikant Kadam <sagar.kadam(a)sifive.com>
dts: phy: fix missing mdio device and probe failure of vsc8541-01 device
David Woodhouse <dwmw(a)amazon.co.uk>
x86/xen: Add xen_no_vector_callback option to test PCI INTX delivery
David Woodhouse <dwmw(a)amazon.co.uk>
xen: Fix event channel callback via INTX/GSI
Arnd Bergmann <arnd(a)arndb.de>
arm64: make atomic helpers __always_inline
Peter Geis <pgwipeout(a)gmail.com>
clk: tegra30: Add hda clock default rates to clock driver
Seth Miller <miller.seth(a)gmail.com>
HID: Ignore battery for Elan touchscreen on ASUS UX550
Filipe Laíns <lains(a)archlinux.org>
HID: logitech-dj: add the G602 receiver
Damien Le Moal <damien.lemoal(a)wdc.com>
riscv: Fix sifive serial driver
Damien Le Moal <damien.lemoal(a)wdc.com>
riscv: Fix kernel time_init()
Ewan D. Milne <emilne(a)redhat.com>
scsi: sd: Suppress spurious errors when WRITE SAME is being disabled
Nilesh Javali <njavali(a)marvell.com>
scsi: qedi: Correct max length of CHAP secret
Can Guo <cang(a)codeaurora.org>
scsi: ufs: Correct the LUN used in eh_device_reset_handler() callback
Anthony Iliopoulos <ailiop(a)suse.com>
dm integrity: select CRYPTO_SKCIPHER
Kai-Heng Feng <kai.heng.feng(a)canonical.com>
HID: multitouch: Enable multi-input for Synaptics pointstick/touchpad device
Cezary Rojewski <cezary.rojewski(a)intel.com>
ASoC: Intel: haswell: Add missing pm_ops
Chris Wilson <chris(a)chris-wilson.co.uk>
drm/i915/gt: Prevent use of engine->wa_ctx after error
Daniel Vetter <daniel.vetter(a)ffwll.ch>
drm/syncobj: Fix use-after-free
Pan Bian <bianpan2016(a)163.com>
drm/atomic: put state on error path
Mikulas Patocka <mpatocka(a)redhat.com>
dm integrity: fix a crash if "recalculate" used without "internal_hash"
Hannes Reinecke <hare(a)suse.de>
dm: avoid filesystem lookup in dm_get_dev_t()
Alex Leibovich <alexl(a)marvell.com>
mmc: sdhci-xenon: fix 1.8v regulator stabilization
Peter Collingbourne <pcc(a)google.com>
mmc: core: don't initialize block size from ext_csd if not present
Filipe Manana <fdmanana(a)suse.com>
btrfs: send: fix invalid clone operations when cloning from the same file and root
Josef Bacik <josef(a)toxicpanda.com>
btrfs: don't clear ret in btrfs_start_dirty_block_groups
Josef Bacik <josef(a)toxicpanda.com>
btrfs: fix lockdep splat in btrfs_recover_relocation
Josef Bacik <josef(a)toxicpanda.com>
btrfs: don't get an EINTR during drop_snapshot for reloc
Hans de Goede <hdegoede(a)redhat.com>
ACPI: scan: Make acpi_bus_get_device() clear return pointer on error
Takashi Iwai <tiwai(a)suse.de>
ALSA: hda/via: Add minimum mute flag
Takashi Iwai <tiwai(a)suse.de>
ALSA: seq: oss: Fix missing error check in snd_seq_oss_synth_make_info()
Jiaxun Yang <jiaxun.yang(a)flygoat.com>
platform/x86: ideapad-laptop: Disable touchpad_switch for ELAN0634
Heikki Krogerus <heikki.krogerus(a)linux.intel.com>
platform/x86: i2c-multi-instantiate: Don't create platform device for INT3515 ACPI nodes
Mikko Perttunen <mperttunen(a)nvidia.com>
i2c: bpmp-tegra: Ignore unknown I2C_M flags
-------------
Diffstat:
Documentation/admin-guide/kernel-parameters.txt | 4 ++
Makefile | 4 +-
arch/arm/xen/enlighten.c | 2 +-
arch/arm64/include/asm/atomic.h | 10 +--
arch/powerpc/kernel/vmlinux.lds.S | 25 +++----
.../riscv/boot/dts/sifive/hifive-unleashed-a00.dts | 2 +
arch/riscv/configs/defconfig | 2 +
arch/riscv/kernel/time.c | 3 +
arch/sh/drivers/dma/Kconfig | 3 +-
arch/x86/include/asm/fpu/api.h | 15 +++-
arch/x86/include/asm/topology.h | 4 +-
arch/x86/kernel/cpu/amd.c | 4 +-
arch/x86/kernel/cpu/topology.c | 2 +-
arch/x86/kernel/fpu/core.c | 9 +--
arch/x86/lib/mmx_32.c | 20 ++++--
arch/x86/xen/enlighten_hvm.c | 11 ++-
drivers/acpi/scan.c | 2 +
drivers/base/core.c | 17 ++++-
drivers/clk/tegra/clk-tegra30.c | 2 +
drivers/gpu/drm/amd/amdgpu/psp_gfx_if.h | 2 +-
.../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c | 2 +-
drivers/gpu/drm/drm_atomic_helper.c | 2 +-
drivers/gpu/drm/drm_syncobj.c | 8 ++-
drivers/gpu/drm/i915/gt/intel_lrc.c | 3 +
drivers/gpu/drm/nouveau/dispnv50/disp.c | 4 +-
drivers/gpu/drm/nouveau/dispnv50/disp.h | 2 +-
drivers/gpu/drm/nouveau/dispnv50/wimmc37b.c | 2 +-
drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c | 2 +-
drivers/gpu/drm/nouveau/nvkm/subdev/i2c/auxgm200.c | 8 +--
drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gf100.c | 10 ++-
drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gk104.c | 10 ++-
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/base.c | 6 +-
drivers/hid/hid-ids.h | 1 +
drivers/hid/hid-input.c | 2 +
drivers/hid/hid-logitech-dj.c | 4 ++
drivers/hid/hid-multitouch.c | 4 ++
drivers/hwtracing/intel_th/pci.c | 5 ++
drivers/hwtracing/stm/heartbeat.c | 6 +-
drivers/i2c/busses/i2c-octeon-core.c | 2 +-
drivers/i2c/busses/i2c-tegra-bpmp.c | 2 +-
drivers/iio/dac/ad5504.c | 4 +-
drivers/irqchip/irq-mips-cpu.c | 7 ++
drivers/lightnvm/core.c | 3 +-
drivers/md/Kconfig | 1 +
drivers/md/dm-integrity.c | 6 ++
drivers/md/dm-table.c | 15 +++-
drivers/mmc/core/queue.c | 4 +-
drivers/mmc/host/sdhci-xenon.c | 7 +-
drivers/net/can/dev.c | 4 +-
drivers/net/can/usb/peak_usb/pcan_usb_fd.c | 8 +--
drivers/net/can/vxcan.c | 6 +-
drivers/net/dsa/b53/b53_common.c | 2 +-
drivers/net/dsa/mv88e6xxx/global1_vtu.c | 4 ++
drivers/net/ethernet/mscc/ocelot.c | 4 +-
drivers/net/ethernet/renesas/sh_eth.c | 4 +-
drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c | 2 +-
drivers/pinctrl/pinctrl-ingenic.c | 24 +++----
drivers/platform/x86/i2c-multi-instantiate.c | 31 ++++++---
drivers/platform/x86/ideapad-laptop.c | 15 +++-
drivers/platform/x86/intel-vbtn.c | 6 --
drivers/scsi/megaraid/megaraid_sas_base.c | 6 +-
drivers/scsi/qedi/qedi_main.c | 4 +-
drivers/scsi/sd.c | 4 +-
drivers/scsi/ufs/ufshcd.c | 11 ++-
drivers/tty/serial/mvebu-uart.c | 10 ++-
drivers/tty/serial/sifive.c | 1 +
drivers/usb/gadget/udc/aspeed-vhub/epn.c | 5 +-
drivers/usb/gadget/udc/bdc/Kconfig | 2 +-
drivers/usb/gadget/udc/core.c | 13 +++-
drivers/usb/host/ehci-hcd.c | 12 ++++
drivers/usb/host/ehci-hub.c | 3 +
drivers/usb/host/xhci-ring.c | 2 +
drivers/usb/host/xhci-tegra.c | 7 ++
drivers/xen/events/events_base.c | 10 ---
drivers/xen/platform-pci.c | 1 -
drivers/xen/xenbus/xenbus.h | 1 +
drivers/xen/xenbus/xenbus_comms.c | 8 ---
drivers/xen/xenbus/xenbus_probe.c | 81 ++++++++++++++++++----
fs/btrfs/block-group.c | 3 +-
fs/btrfs/extent-tree.c | 10 ++-
fs/btrfs/send.c | 15 ++++
fs/btrfs/volumes.c | 2 +
fs/cifs/transport.c | 4 +-
include/asm-generic/bitops/atomic.h | 6 +-
include/net/inet_connection_sock.h | 3 +
include/xen/xenbus.h | 2 +-
mm/kasan/init.c | 23 +++---
net/core/dev.c | 5 ++
net/core/skbuff.c | 6 +-
net/ipv4/inet_connection_sock.c | 1 +
net/ipv4/netfilter/ipt_rpfilter.c | 2 +-
net/ipv4/tcp.c | 1 +
net/ipv4/tcp_input.c | 1 +
net/ipv4/tcp_ipv4.c | 25 +++----
net/ipv4/tcp_output.c | 1 +
net/ipv4/tcp_timer.c | 14 ++--
net/ipv4/udp.c | 3 +-
net/ipv6/addrconf.c | 3 +-
net/sched/cls_tcindex.c | 8 ++-
net/sched/sch_api.c | 3 +-
sound/core/seq/oss/seq_oss_synth.c | 3 +-
sound/pci/hda/patch_via.c | 1 +
sound/soc/intel/boards/haswell.c | 1 +
tools/testing/selftests/net/fib_tests.sh | 1 -
104 files changed, 490 insertions(+), 223 deletions(-)
The recent commit to fix a memory leak introduced an inadvertant NULL
pointer dereference. The `wacom_wac->pen_fifo` variable was never
intialized, resuling in a crash whenever functions tried to use it.
Since the FIFO is only used by AES pens (to buffer events from pen
proximity until the hardware reports the pen serial number) this would
have been easily overlooked without testing an AES device.
This patch converts `wacom_wac->pen_fifo` over to a pointer (since the
call to `devres_alloc` allocates memory for us) and ensures that we assign
it to point to the allocated and initalized `pen_fifo` before the function
returns.
Link: https://github.com/linuxwacom/input-wacom/issues/230
Fixes: 37309f47e2f5 ("HID: wacom: Fix memory leakage caused by kfifo_alloc")
CC: stable(a)vger.kernel.org # v4.19+
Signed-off-by: Jason Gerecke <jason.gerecke(a)wacom.com>
Tested-by: Ping Cheng <ping.cheng(a)wacom.com>
---
drivers/hid/wacom_sys.c | 7 ++++---
drivers/hid/wacom_wac.h | 2 +-
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/hid/wacom_sys.c b/drivers/hid/wacom_sys.c
index e8acd235db2a..aa9e48876ced 100644
--- a/drivers/hid/wacom_sys.c
+++ b/drivers/hid/wacom_sys.c
@@ -147,9 +147,9 @@ static int wacom_wac_pen_serial_enforce(struct hid_device *hdev,
}
if (flush)
- wacom_wac_queue_flush(hdev, &wacom_wac->pen_fifo);
+ wacom_wac_queue_flush(hdev, wacom_wac->pen_fifo);
else if (insert)
- wacom_wac_queue_insert(hdev, &wacom_wac->pen_fifo,
+ wacom_wac_queue_insert(hdev, wacom_wac->pen_fifo,
raw_data, report_size);
return insert && !flush;
@@ -1280,7 +1280,7 @@ static void wacom_devm_kfifo_release(struct device *dev, void *res)
static int wacom_devm_kfifo_alloc(struct wacom *wacom)
{
struct wacom_wac *wacom_wac = &wacom->wacom_wac;
- struct kfifo_rec_ptr_2 *pen_fifo = &wacom_wac->pen_fifo;
+ struct kfifo_rec_ptr_2 *pen_fifo;
int error;
pen_fifo = devres_alloc(wacom_devm_kfifo_release,
@@ -1297,6 +1297,7 @@ static int wacom_devm_kfifo_alloc(struct wacom *wacom)
}
devres_add(&wacom->hdev->dev, pen_fifo);
+ wacom_wac->pen_fifo = pen_fifo;
return 0;
}
diff --git a/drivers/hid/wacom_wac.h b/drivers/hid/wacom_wac.h
index da612b6e9c77..195910dd2154 100644
--- a/drivers/hid/wacom_wac.h
+++ b/drivers/hid/wacom_wac.h
@@ -342,7 +342,7 @@ struct wacom_wac {
struct input_dev *pen_input;
struct input_dev *touch_input;
struct input_dev *pad_input;
- struct kfifo_rec_ptr_2 pen_fifo;
+ struct kfifo_rec_ptr_2 *pen_fifo;
int pid;
int num_contacts_left;
u8 bt_features;
--
2.30.0
This is the start of the stable review cycle for the 5.4.93 release.
There are 86 patches in this series, all will be posted as a response
to this one. If anyone has any issues with these being applied, please
let me know.
Responses should be made by Wed, 27 Jan 2021 18:31:44 +0000.
Anything received after that time might be too late.
The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.93-rc1…
or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.4.y
and the diffstat can be found below.
thanks,
greg k-h
-------------
Pseudo-Shortlog of commits:
Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
Linux 5.4.93-rc1
Enke Chen <enchen(a)paloaltonetworks.com>
tcp: fix TCP_USER_TIMEOUT with zero window
Eric Dumazet <edumazet(a)google.com>
tcp: do not mess with cloned skbs in tcp_add_backlog()
Dan Carpenter <dan.carpenter(a)oracle.com>
net: dsa: b53: fix an off by one in checking "vlan->vid"
Tariq Toukan <tariqt(a)nvidia.com>
net: Disable NETIF_F_HW_TLS_RX when RXCSUM is disabled
Vladimir Oltean <vladimir.oltean(a)nxp.com>
net: mscc: ocelot: allow offloading of bridge on top of LAG
Matteo Croce <mcroce(a)microsoft.com>
ipv6: set multicast flag on the multicast route
Eric Dumazet <edumazet(a)google.com>
net_sched: reject silly cell_log in qdisc_get_rtab()
Eric Dumazet <edumazet(a)google.com>
net_sched: avoid shift-out-of-bounds in tcindex_set_parms()
Matteo Croce <mcroce(a)microsoft.com>
ipv6: create multicast route with RTPROT_KERNEL
Guillaume Nault <gnault(a)redhat.com>
udp: mask TOS bits in udp_v4_early_demux()
Lecopzer Chen <lecopzer(a)gmail.com>
kasan: fix incorrect arguments passing in kasan_add_zero_shadow
Lecopzer Chen <lecopzer(a)gmail.com>
kasan: fix unaligned address is unhandled in kasan_remove_zero_shadow
Alexander Lobakin <alobakin(a)pm.me>
skbuff: back tiny skbs with kmalloc() in __netdev_alloc_skb() too
Pan Bian <bianpan2016(a)163.com>
lightnvm: fix memory leak when submit fails
Geert Uytterhoeven <geert+renesas(a)glider.be>
sh_eth: Fix power down vs. is_opened flag ordering
Rasmus Villemoes <rasmus.villemoes(a)prevas.dk>
net: dsa: mv88e6xxx: also read STU state in mv88e6250_g1_vtu_getnext
Necip Fazil Yildiran <fazilyildiran(a)gmail.com>
sh: dma: fix kconfig dependency for G2_DMA
Guillaume Nault <gnault(a)redhat.com>
netfilter: rpfilter: mask ecn bits before fib lookup
Yazen Ghannam <Yazen.Ghannam(a)amd.com>
x86/cpu/amd: Set __max_die_per_package on AMD
Paul Cercueil <paul(a)crapouillou.net>
pinctrl: ingenic: Fix JZ4760 support
Rafael J. Wysocki <rafael.j.wysocki(a)intel.com>
driver core: Extend device_is_dependent()
JC Kuo <jckuo(a)nvidia.com>
xhci: tegra: Delay for disabling LFPS detector
Mathias Nyman <mathias.nyman(a)linux.intel.com>
xhci: make sure TRB is fully written before giving it to the controller
Patrik Jakobsson <patrik.r.jakobsson(a)gmail.com>
usb: bdc: Make bdc pci driver depend on BROKEN
Thinh Nguyen <Thinh.Nguyen(a)synopsys.com>
usb: udc: core: Use lock when write to soft_connect
Ryan Chen <ryan_chen(a)aspeedtech.com>
usb: gadget: aspeed: fix stop dma register setting.
Longfang Liu <liulongfang(a)huawei.com>
USB: ehci: fix an interrupt calltrace error
Eugene Korenevsky <ekorenevsky(a)astralinux.ru>
ehci: fix EHCI host controller initialization sequence
Pali Rohár <pali(a)kernel.org>
serial: mvebu-uart: fix tx lost characters at power off
Wang Hui <john.wanghui(a)huawei.com>
stm class: Fix module init return on allocation failure
Alexander Shishkin <alexander.shishkin(a)linux.intel.com>
intel_th: pci: Add Alder Lake-P support
Andy Lutomirski <luto(a)kernel.org>
x86/mmx: Use KFPU_387 for MMX string operations
Mathias Kresin <dev(a)kresin.me>
irqchip/mips-cpu: Set IPI domain parent chip
Ronnie Sahlberg <lsahlber(a)redhat.com>
cifs: do not fail __smb_send_rqst if non-fatal signals are pending
Lars-Peter Clausen <lars(a)metafoo.de>
iio: ad5504: Fix setting power-down state
Vincent Mailhol <mailhol.vincent(a)wanadoo.fr>
can: peak_usb: fix use after free bugs
Vincent Mailhol <mailhol.vincent(a)wanadoo.fr>
can: vxcan: vxcan_xmit: fix use after free bug
Vincent Mailhol <mailhol.vincent(a)wanadoo.fr>
can: dev: can_restart: fix use after free bug
Hangbin Liu <liuhangbin(a)gmail.com>
selftests: net: fib_tests: remove duplicate log test
Hans de Goede <hdegoede(a)redhat.com>
platform/x86: intel-vbtn: Drop HP Stream x360 Convertible PC 11 from allow-list
Wolfram Sang <wsa+renesas(a)sang-engineering.com>
i2c: octeon: check correct size of maximum RECV_LEN packet
Ariel Marcovitch <arielmarcovitch(a)gmail.com>
powerpc: Fix alignment bug within the init sections
Arnd Bergmann <arnd(a)arndb.de>
scsi: megaraid_sas: Fix MEGASAS_IOC_FIRMWARE regression
Billy Tsai <billy_tsai(a)aspeedtech.com>
pinctrl: aspeed: g6: Fix PWMG0 pinctrl setting
Youling Tang <tangyouling(a)loongson.cn>
powerpc: Use the common INIT_DATA_SECTION macro in vmlinux.lds.S
Ben Skeggs <bskeggs(a)redhat.com>
drm/nouveau/kms/nv50-: fix case where notifier buffer is at offset 0
Ben Skeggs <bskeggs(a)redhat.com>
drm/nouveau/mmu: fix vram heap sizing
Ben Skeggs <bskeggs(a)redhat.com>
drm/nouveau/i2c/gm200: increase width of aux semaphore owner fields
Ben Skeggs <bskeggs(a)redhat.com>
drm/nouveau/privring: ack interrupts the same way as RM
Ben Skeggs <bskeggs(a)redhat.com>
drm/nouveau/bios: fix issue shadowing expansion ROMs
Wayne Lin <Wayne.Lin(a)amd.com>
drm/amd/display: Fix to be able to stop crc calculation
Victor Zhao <Victor.Zhao(a)amd.com>
drm/amdgpu/psp: fix psp gfx ctrl cmds
Sagar Shrikant Kadam <sagar.kadam(a)sifive.com>
riscv: defconfig: enable gpio support for HiFive Unleashed
Sagar Shrikant Kadam <sagar.kadam(a)sifive.com>
dts: phy: add GPIO number and active state used for phy reset
Sagar Shrikant Kadam <sagar.kadam(a)sifive.com>
dts: phy: fix missing mdio device and probe failure of vsc8541-01 device
David Woodhouse <dwmw(a)amazon.co.uk>
x86/xen: Add xen_no_vector_callback option to test PCI INTX delivery
David Woodhouse <dwmw(a)amazon.co.uk>
xen: Fix event channel callback via INTX/GSI
Arnd Bergmann <arnd(a)arndb.de>
arm64: make atomic helpers __always_inline
Peter Geis <pgwipeout(a)gmail.com>
clk: tegra30: Add hda clock default rates to clock driver
Seth Miller <miller.seth(a)gmail.com>
HID: Ignore battery for Elan touchscreen on ASUS UX550
Filipe Laíns <lains(a)archlinux.org>
HID: logitech-dj: add the G602 receiver
Damien Le Moal <damien.lemoal(a)wdc.com>
riscv: Fix sifive serial driver
Damien Le Moal <damien.lemoal(a)wdc.com>
riscv: Fix kernel time_init()
Ewan D. Milne <emilne(a)redhat.com>
scsi: sd: Suppress spurious errors when WRITE SAME is being disabled
Nilesh Javali <njavali(a)marvell.com>
scsi: qedi: Correct max length of CHAP secret
Can Guo <cang(a)codeaurora.org>
scsi: ufs: Correct the LUN used in eh_device_reset_handler() callback
Anthony Iliopoulos <ailiop(a)suse.com>
dm integrity: select CRYPTO_SKCIPHER
Kai-Heng Feng <kai.heng.feng(a)canonical.com>
HID: multitouch: Enable multi-input for Synaptics pointstick/touchpad device
Cezary Rojewski <cezary.rojewski(a)intel.com>
ASoC: Intel: haswell: Add missing pm_ops
Chris Wilson <chris(a)chris-wilson.co.uk>
drm/i915/gt: Prevent use of engine->wa_ctx after error
Daniel Vetter <daniel.vetter(a)ffwll.ch>
drm/syncobj: Fix use-after-free
Pan Bian <bianpan2016(a)163.com>
drm/atomic: put state on error path
Mikulas Patocka <mpatocka(a)redhat.com>
dm integrity: fix a crash if "recalculate" used without "internal_hash"
Hannes Reinecke <hare(a)suse.de>
dm: avoid filesystem lookup in dm_get_dev_t()
Alex Leibovich <alexl(a)marvell.com>
mmc: sdhci-xenon: fix 1.8v regulator stabilization
Peter Collingbourne <pcc(a)google.com>
mmc: core: don't initialize block size from ext_csd if not present
Filipe Manana <fdmanana(a)suse.com>
btrfs: send: fix invalid clone operations when cloning from the same file and root
Josef Bacik <josef(a)toxicpanda.com>
btrfs: don't clear ret in btrfs_start_dirty_block_groups
Josef Bacik <josef(a)toxicpanda.com>
btrfs: fix lockdep splat in btrfs_recover_relocation
Josef Bacik <josef(a)toxicpanda.com>
btrfs: don't get an EINTR during drop_snapshot for reloc
Hans de Goede <hdegoede(a)redhat.com>
ACPI: scan: Make acpi_bus_get_device() clear return pointer on error
Takashi Iwai <tiwai(a)suse.de>
ALSA: hda/via: Add minimum mute flag
Takashi Iwai <tiwai(a)suse.de>
ALSA: seq: oss: Fix missing error check in snd_seq_oss_synth_make_info()
Jiaxun Yang <jiaxun.yang(a)flygoat.com>
platform/x86: ideapad-laptop: Disable touchpad_switch for ELAN0634
Heikki Krogerus <heikki.krogerus(a)linux.intel.com>
platform/x86: i2c-multi-instantiate: Don't create platform device for INT3515 ACPI nodes
Mikko Perttunen <mperttunen(a)nvidia.com>
i2c: bpmp-tegra: Ignore unknown I2C_M flags
-------------
Diffstat:
Documentation/admin-guide/kernel-parameters.txt | 4 ++
Makefile | 4 +-
arch/arm/xen/enlighten.c | 2 +-
arch/arm64/include/asm/atomic.h | 10 +--
arch/powerpc/kernel/vmlinux.lds.S | 25 +++----
.../riscv/boot/dts/sifive/hifive-unleashed-a00.dts | 2 +
arch/riscv/configs/defconfig | 2 +
arch/riscv/kernel/time.c | 3 +
arch/sh/drivers/dma/Kconfig | 3 +-
arch/x86/kernel/cpu/amd.c | 4 +-
arch/x86/lib/mmx_32.c | 20 ++++--
arch/x86/xen/enlighten_hvm.c | 11 ++-
drivers/acpi/scan.c | 2 +
drivers/base/core.c | 17 ++++-
drivers/clk/tegra/clk-tegra30.c | 2 +
drivers/gpu/drm/amd/amdgpu/psp_gfx_if.h | 2 +-
.../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c | 2 +-
drivers/gpu/drm/drm_atomic_helper.c | 2 +-
drivers/gpu/drm/drm_syncobj.c | 8 ++-
drivers/gpu/drm/i915/gt/intel_lrc.c | 3 +
drivers/gpu/drm/nouveau/dispnv50/disp.c | 4 +-
drivers/gpu/drm/nouveau/dispnv50/disp.h | 2 +-
drivers/gpu/drm/nouveau/dispnv50/wimmc37b.c | 2 +-
drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c | 2 +-
drivers/gpu/drm/nouveau/nvkm/subdev/i2c/auxgm200.c | 8 +--
drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gf100.c | 10 ++-
drivers/gpu/drm/nouveau/nvkm/subdev/ibus/gk104.c | 10 ++-
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/base.c | 6 +-
drivers/hid/hid-ids.h | 1 +
drivers/hid/hid-input.c | 2 +
drivers/hid/hid-logitech-dj.c | 4 ++
drivers/hid/hid-multitouch.c | 4 ++
drivers/hwtracing/intel_th/pci.c | 5 ++
drivers/hwtracing/stm/heartbeat.c | 6 +-
drivers/i2c/busses/i2c-octeon-core.c | 2 +-
drivers/i2c/busses/i2c-tegra-bpmp.c | 2 +-
drivers/iio/dac/ad5504.c | 4 +-
drivers/irqchip/irq-mips-cpu.c | 7 ++
drivers/lightnvm/core.c | 3 +-
drivers/md/Kconfig | 1 +
drivers/md/dm-integrity.c | 6 ++
drivers/md/dm-table.c | 15 +++-
drivers/mmc/core/queue.c | 4 +-
drivers/mmc/host/sdhci-xenon.c | 7 +-
drivers/net/can/dev.c | 4 +-
drivers/net/can/usb/peak_usb/pcan_usb_fd.c | 8 +--
drivers/net/can/vxcan.c | 6 +-
drivers/net/dsa/b53/b53_common.c | 2 +-
drivers/net/dsa/mv88e6xxx/global1_vtu.c | 4 ++
drivers/net/ethernet/mscc/ocelot.c | 4 +-
drivers/net/ethernet/renesas/sh_eth.c | 4 +-
drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c | 2 +-
drivers/pinctrl/pinctrl-ingenic.c | 24 +++----
drivers/platform/x86/i2c-multi-instantiate.c | 31 ++++++---
drivers/platform/x86/ideapad-laptop.c | 15 +++-
drivers/platform/x86/intel-vbtn.c | 6 --
drivers/scsi/megaraid/megaraid_sas_base.c | 6 +-
drivers/scsi/qedi/qedi_main.c | 4 +-
drivers/scsi/sd.c | 4 +-
drivers/scsi/ufs/ufshcd.c | 11 ++-
drivers/tty/serial/mvebu-uart.c | 10 ++-
drivers/tty/serial/sifive.c | 1 +
drivers/usb/gadget/udc/aspeed-vhub/epn.c | 5 +-
drivers/usb/gadget/udc/bdc/Kconfig | 2 +-
drivers/usb/gadget/udc/core.c | 13 +++-
drivers/usb/host/ehci-hcd.c | 12 ++++
drivers/usb/host/ehci-hub.c | 3 +
drivers/usb/host/xhci-ring.c | 2 +
drivers/usb/host/xhci-tegra.c | 7 ++
drivers/xen/events/events_base.c | 10 ---
drivers/xen/platform-pci.c | 1 -
drivers/xen/xenbus/xenbus.h | 1 +
drivers/xen/xenbus/xenbus_comms.c | 8 ---
drivers/xen/xenbus/xenbus_probe.c | 81 ++++++++++++++++++----
fs/btrfs/block-group.c | 3 +-
fs/btrfs/extent-tree.c | 10 ++-
fs/btrfs/send.c | 15 ++++
fs/btrfs/volumes.c | 2 +
fs/cifs/transport.c | 4 +-
include/asm-generic/bitops/atomic.h | 6 +-
include/net/inet_connection_sock.h | 3 +
include/xen/xenbus.h | 2 +-
mm/kasan/init.c | 23 +++---
net/core/dev.c | 5 ++
net/core/skbuff.c | 6 +-
net/ipv4/inet_connection_sock.c | 1 +
net/ipv4/netfilter/ipt_rpfilter.c | 2 +-
net/ipv4/tcp.c | 1 +
net/ipv4/tcp_input.c | 1 +
net/ipv4/tcp_ipv4.c | 25 +++----
net/ipv4/tcp_output.c | 1 +
net/ipv4/tcp_timer.c | 14 ++--
net/ipv4/udp.c | 3 +-
net/ipv6/addrconf.c | 3 +-
net/sched/cls_tcindex.c | 8 ++-
net/sched/sch_api.c | 3 +-
sound/core/seq/oss/seq_oss_synth.c | 3 +-
sound/pci/hda/patch_via.c | 1 +
sound/soc/intel/boards/haswell.c | 1 +
tools/testing/selftests/net/fib_tests.sh | 1 -
100 files changed, 469 insertions(+), 214 deletions(-)
The VM_BUG_ON_PAGE avoids the generation of any code, even if that
expression has side-effects when !CONFIG_DEBUG_VM.
Fixes: e5dfacebe4a4 ("mm/hugetlb.c: just use put_page_testzero() instead of page_count()")
Signed-off-by: Muchun Song <songmuchun(a)bytedance.com>
Cc: <stable(a)vger.kernel.org>
---
mm/hugetlb.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index a6bad1f686c5..082ed643020b 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -2047,13 +2047,16 @@ static int gather_surplus_pages(struct hstate *h, long delta)
/* Free the needed pages to the hugetlb pool */
list_for_each_entry_safe(page, tmp, &surplus_list, lru) {
+ int zeroed;
+
if ((--needed) < 0)
break;
/*
* This page is now managed by the hugetlb allocator and has
* no users -- drop the buddy allocator's reference.
*/
- VM_BUG_ON_PAGE(!put_page_testzero(page), page);
+ zeroed = put_page_testzero(page);
+ VM_BUG_ON_PAGE(!zeroed, page);
enqueue_huge_page(h, page);
}
free:
--
2.11.0