Linux 6.12.86
Greg Kroah-Hartman
maintainerI'm announcing the release of the 6.12.86 kernel.
All users of the 6.12 kernel series must upgrade.
The updated 6.12.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.12.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 3 arch/arm64/boot/dts/marvell/armada-3720-uDPU.dtsi | 5 arch/arm64/boot/dts/ti/k3-am62-verdin.dtsi | 20 - arch/arm64/crypto/aes-modes.S | 4 arch/arm64/mm/mmu.c | 36 +- arch/loongarch/kernel/cpu-probe.c | 7 arch/loongarch/kernel/syscall.c | 3 arch/parisc/kernel/syscalls/syscall.tbl | 2 arch/um/drivers/cow_user.c | 8 arch/x86/kvm/hyperv.h | 8 arch/x86/kvm/svm/hyperv.h | 9 arch/x86/kvm/svm/nested.c | 55 ++-- arch/x86/kvm/svm/svm.c | 32 ++ arch/x86/kvm/svm/svm.h | 1 arch/x86/kvm/x86.c | 62 ++-- arch/x86/mm/pti.c | 5 block/bio-integrity.c | 2 block/bio.c | 14 - block/blk-zoned.c | 12 block/blk.h | 19 + certs/extract-cert.c | 6 crypto/authencesn.c | 5 crypto/pcrypt.c | 7 drivers/base/core.c | 39 ++ drivers/base/dd.c | 20 + drivers/block/rbd.c | 6 drivers/block/zram/zram_drv.c | 3 drivers/bus/imx-weim.c | 2 drivers/bus/mhi/host/pci_generic.c | 2 drivers/char/tpm/tpm-chip.c | 2 drivers/char/tpm/tpm2-cmd.c | 6 drivers/char/tpm/tpm_tis_core.c | 11 drivers/crypto/atmel-aes.c | 2 drivers/crypto/atmel-ecc.c | 1 drivers/crypto/atmel-i2c.c | 4 drivers/crypto/atmel-sha204a.c | 37 +- drivers/crypto/atmel-tdes.c | 8 drivers/crypto/ccree/cc_hash.c | 1 drivers/crypto/hisilicon/sec/sec_algs.c | 2 drivers/crypto/nx/nx-842.h | 4 drivers/crypto/talitos.c | 254 ++++++++++++------- drivers/firmware/google/framebuffer-coreboot.c | 12 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c | 43 +-- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 3 drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c | 52 +++ drivers/gpu/drm/nouveau/nouveau_drm.c | 2 drivers/gpu/drm/nouveau/nouveau_gem.c | 2 drivers/gpu/drm/tiny/arcpgu.c | 3 drivers/greybus/gb-beagleplay.c | 112 +++++++- drivers/hid/hid-apple.c | 2 drivers/hwmon/powerz.c | 11 drivers/hwmon/pt5161l.c | 4 drivers/i2c/i2c-core-of.c | 2 drivers/iio/adc/ad7768-1.c | 9 drivers/iio/adc/ti-ads7950.c | 11 drivers/iio/frequency/admv1013.c | 90 +++--- drivers/infiniband/core/addr.c | 3 drivers/infiniband/hw/mana/qp.c | 15 + drivers/infiniband/sw/rxe/rxe_recv.c | 3 drivers/leds/rgb/leds-qcom-lpg.c | 7 drivers/md/dm-raid1.c | 6 drivers/md/raid10.c | 4 drivers/md/raid5-cache.c | 48 ++- drivers/md/raid5.c | 8 drivers/media/i2c/imx219.c | 3 drivers/media/platform/amphion/vpu_v4l2.c | 9 drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c | 1 drivers/media/rc/igorplugusb.c | 16 - drivers/media/rc/ttusbir.c | 13 drivers/mfd/mfd-core.c | 12 drivers/mfd/stpmic1.c | 20 + drivers/misc/ibmasm/ibmasmfs.c | 7 drivers/misc/ibmasm/lowlevel.c | 12 drivers/misc/ibmasm/remote.c | 5 drivers/mmc/core/block.c | 12 drivers/mmc/core/queue.h | 3 drivers/mmc/host/sdhci-of-dwcmshc.c | 19 + drivers/mtd/devices/docg3.c | 3 drivers/mtd/spi-nor/sst.c | 13 drivers/net/bonding/bond_main.c | 12 drivers/net/can/usb/ucan.c | 2 drivers/net/ethernet/micrel/ks8851.h | 6 drivers/net/ethernet/micrel/ks8851_common.c | 69 ++--- drivers/net/ethernet/micrel/ks8851_par.c | 15 - drivers/net/ethernet/micrel/ks8851_spi.c | 11 drivers/net/ethernet/microsoft/mana/mana_en.c | 11 drivers/net/ethernet/wangxun/txgbe/txgbe_main.c | 3 drivers/net/netconsole.c | 2 drivers/net/phy/mdio_bus.c | 4 drivers/net/wireless/marvell/mwifiex/init.c | 2 drivers/net/wireless/mediatek/mt76/mt792x_regs.h | 4 drivers/net/wireless/mediatek/mt76/mt792x_usb.c | 51 +++ drivers/net/wireless/realtek/rtl8xxxu/core.c | 28 -- drivers/net/wireless/realtek/rtw88/pci.c | 3 drivers/nvme/host/core.c | 2 drivers/nvme/host/pci.c | 2 drivers/of/base.c | 2 drivers/of/dynamic.c | 2 drivers/of/platform.c | 2 drivers/of/unittest.c | 4 drivers/pci/endpoint/functions/pci-epf-mhi.c | 4 drivers/pci/endpoint/functions/pci-epf-ntb.c | 56 ---- drivers/power/supply/axp288_charger.c | 19 - drivers/pwm/pwm-imx-tpm.c | 9 drivers/remoteproc/xlnx_r5_remoteproc.c | 20 - drivers/rtc/rtc-ntxec.c | 2 drivers/scsi/sd.c | 1 drivers/spi/spi-ch341.c | 36 +- drivers/spi/spi-imx.c | 4 drivers/spi/spi.c | 63 ++-- drivers/thermal/thermal_core.c | 7 drivers/usb/chipidea/core.c | 45 +-- drivers/usb/chipidea/otg.c | 7 drivers/usb/host/xhci.c | 1 drivers/vfio/cdx/intr.c | 13 drivers/vfio/cdx/main.c | 19 + drivers/vfio/cdx/private.h | 3 fs/ceph/dir.c | 6 fs/erofs/dir.c | 28 +- fs/ext2/inode.c | 14 - fs/ext4/xattr.c | 6 fs/f2fs/data.c | 4 fs/f2fs/f2fs.h | 2 fs/f2fs/segment.c | 6 fs/f2fs/super.c | 11 fs/jbd2/revoke.c | 8 fs/notify/inotify/inotify_user.c | 1 fs/ntfs3/run.c | 18 + fs/ocfs2/aops.c | 74 +++-- fs/smb/client/cifsacl.c | 116 ++++++-- fs/smb/server/connection.c | 28 -- fs/smb/server/connection.h | 6 fs/smb/server/smb2pdu.c | 4 fs/smb/server/transport_rdma.c | 5 fs/smb/server/transport_tcp.c | 25 + fs/userfaultfd.c | 2 fs/xfs/xfs_buf.c | 1 include/linux/device.h | 45 +++ include/linux/fwnode.h | 44 ++- include/linux/hugetlb_inline.h | 4 include/linux/padata.h | 4 include/linux/randomize_kstack.h | 26 + include/linux/sched.h | 4 include/linux/tpm_eventlog.h | 9 include/linux/usb.h | 3 include/net/mana/mana.h | 1 include/net/mctp.h | 3 include/trace/events/rxrpc.h | 6 init/main.c | 1 io_uring/poll.c | 15 - io_uring/timeout.c | 4 kernel/fork.c | 2 kernel/locking/rtmutex.c | 13 kernel/padata.c | 136 ++-------- kernel/sched/core.c | 2 kernel/sched/rt.c | 2 kernel/sched/sched.h | 2 kernel/taskstats.c | 1 lib/test_hmm.c | 86 +++--- lib/ts_kmp.c | 18 + mm/damon/core.c | 3 mm/internal.h | 10 mm/memory_hotplug.c | 10 mm/migrate.c | 152 ++++++----- mm/mlock.c | 10 mm/mmap.c | 4 mm/zsmalloc.c | 1 net/bluetooth/hci_event.c | 18 + net/bridge/br_arp_nd_proxy.c | 8 net/bridge/br_fdb.c | 28 +- net/caif/cfsrvl.c | 14 - net/ceph/auth.c | 2 net/ipv4/icmp.c | 5 net/ipv4/inet_connection_sock.c | 3 net/ipv6/exthdrs.c | 9 net/ipv6/rpl_iptunnel.c | 9 net/ipv6/seg6_iptunnel.c | 12 net/mctp/route.c | 8 net/netfilter/nft_bitwise.c | 3 net/qrtr/ns.c | 86 +++++- net/rds/rdma.c | 4 net/rxrpc/ar-internal.h | 1 net/rxrpc/call_event.c | 25 + net/rxrpc/conn_event.c | 14 - net/rxrpc/io_thread.c | 24 - net/rxrpc/rxkad.c | 112 +++----- net/rxrpc/skbuff.c | 9 net/smc/smc_clc.c | 4 net/strparser/strparser.c | 8 rust/kernel/init/macros.rs | 7 scripts/check-uapi.sh | 7 security/apparmor/lsm.c | 16 - sound/aoa/codecs/onyx.c | 104 ++----- sound/aoa/codecs/tas.c | 113 ++------ sound/aoa/core/gpio-feature.c | 20 - sound/aoa/core/gpio-pmf.c | 26 - sound/aoa/soundbus/i2sbus/core.c | 12 sound/aoa/soundbus/i2sbus/pcm.c | 143 +++++----- sound/core/control.c | 4 sound/core/misc.c | 13 sound/core/seq/oss/seq_oss_rw.c | 6 sound/drivers/pcmtest.c | 19 + sound/pci/ctxfi/ctatc.c | 3 sound/usb/6fire/control.c | 10 sound/usb/caiaq/control.c | 52 ++- sound/usb/caiaq/device.c | 35 +- sound/usb/caiaq/input.c | 2 sound/usb/endpoint.c | 6 sound/usb/format.c | 2 sound/usb/mixer.c | 7 sound/usb/mixer_quirks.c | 12 tools/accounting/getdelays.c | 41 ++- tools/accounting/procacct.c | 40 ++ tools/perf/arch/loongarch/annotate/instructions.c | 1 tools/perf/util/disasm.c | 1 tools/testing/ktest/ktest.pl | 2 tools/testing/selftests/landlock/net_test.c | 2 tools/testing/selftests/mqueue/setting | 1 tools/testing/selftests/mqueue/settings | 1 219 files changed, 2463 insertions(+), 1512 deletions(-)
Aditya Garg (1):
HID: apple: ensure the keyboard backlight is off if suspending
Alex Williamson (1):
vfio/cdx: Serialize VFIO_DEVICE_SET_IRQS with a per-device mutex
Alistair Popple (1):
lib: test_hmm: evict device pages on file close to avoid use-after-free
Andrea Mayer (2):
seg6: fix seg6 lwtunnel output redirect for L2 reduced encap mode
net: ipv6: fix NOREF dst use in seg6 and rpl lwtunnels
Anshuman Khandual (1):
arm64/mm: Enable batched TLB flush in unmap_hotplug_range()
Anthony Yznaga (1):
mm: prevent droppable mappings from being locked
Antoniu Miclaus (2):
iio: frequency: admv1013: add dev variable
iio: frequency: admv1013: fix NULL pointer dereference on str
Ao Zhou (1):
net: rds: fix MR cleanup on copy error
Arjan van de Ven (1):
drm/amdgpu: fix zero-size GDS range init on RDNA4
Arnd Bergmann (2):
tpm: avoid -Wunused-but-set-variable
check-uapi: link into shared objects
Ben Levinsky (1):
remoteproc: xlnx: Only access buffer information if IPI is buffered
Bin Liu (1):
mmc: block: use single block write in retry
Breno Leitao (1):
netconsole: avoid out-of-bounds access on empty string in trim_newline()
Brian Mak (1):
mfd: core: Preserve OF node when ACPI handle is present
Cengiz Can (1):
apparmor: use target task's context in apparmor_getprocattr()
Chao Yu (1):
f2fs: fix to do sanity check on dcc->discard_cmd_cnt conditionally
Chen Ni (1):
media: i2c: imx219: Check return value of devm_gpiod_get_optional() in imx219_probe()
Chen Zhao (1):
IB/core: Fix zero dmac race in neighbor resolution
Chia-Ming Chang (2):
md/raid5: fix soft lockup in retry_aligned_read()
inotify: fix watch count leak when fsnotify_add_inode_mark_locked() fails
Cássio Gabriel (9):
ALSA: usb-audio: stop parsing UAC2 rates at MAX_NR_RATES
ALSA: usb-audio: Avoid false E-MU sample-rate notifications
ALSA: usb-audio: Fix Audio Advantage Micro II SPDIF switch
ALSA: aoa: i2sbus: fix OF node lifetime handling
ALSA: seq_oss: return full count for successful SEQ_FULLSIZE writes
ALSA: caiaq: Fix control_put() result and cache rollback
ALSA: 6fire: Fix input volume change detection
ALSA: pcmtest: Fix resource leaks in module init error paths
ALSA: aoa: i2sbus: clear stale prepared state
DaeMyung Kang (1):
ksmbd: reset rcount per connection in ksmbd_conn_wait_idle_sess_id()
Damien Le Moal (1):
block: fix zone write plugs refcount handling in disk_zone_wplug_schedule_bio_work()
Daniel Hodges (2):
PCI: epf-mhi: Return 0, not remaining timeout, when eDMA ops complete
wifi: mwifiex: fix use-after-free in mwifiex_adapter_cleanup()
Dave Hansen (1):
x86/cpu: Disable FRED when PTI is forced on
David (Ming Qiang) Wu (1):
amdgpu/jpeg: fix deepsleep register for jpeg 5_0_0 and 5_0_2
David Carlier (1):
drm/nouveau: fix nvkm_device leak on aperture removal failure
David Hildenbrand (2):
mm/migrate: factor out movable_ops page handling into migrate_movable_ops_page() mm/migrate: move movable_ops page handling out of move_to_new_folio()
David Howells (5):
rxrpc: Fix memory leaks in rxkad_verify_response()
rxrpc: Fix rxkad crypto unalignment handling
rxrpc: Fix re-decryption of RESPONSE packets
rxrpc: Fix potential UAF after skb_unshare() failure
rxrpc: Fix rxrpc_input_call_event() to only unshare DATA packets
David Lechner (1):
iio: adc: ti-ads7950: use iio_push_to_buffers_with_ts_unaligned()
Dawei Feng (1):
rbd: fix null-ptr-deref when device_add_disk() fails
Deepanshu Kartikey (2):
ext4: fix bounds check in check_xattrs() to prevent out-of-bounds access
ALSA: caiaq: fix usb_dev refcount leak on probe failure
Denis M. Karpov (1):
userfaultfd: allow registration of ranges below mmap_min_addr
Douglas Anderson (3):
driver core: Don't let a device probe until it's ready device property: Make modifications of fwnode "flags" thread safe driver core: Add kernel-doc for DEV_FLAG_COUNT enum value
Eric Biggers (1):
crypto: arm64/aes - Fix 32-bit aes_mac_update() arg treated as 64-bit
Fan Wu (1):
media: mtk-jpeg: fix use-after-free in release path due to uncancelled work
Fedor Pchelkin (1):
wifi: rtw88: check for PCI upstream bridge existence
Francesco Dolcini (1):
arm64: dts: ti: am62-verdin: Enable pullup for eMMC data pins
Gao Xiang (1):
erofs: fix the out-of-bounds nameoff handling for trailing dirents
Greg Kroah-Hartman (5):
LoongArch: Add spectre boundry for syscall dispatch table drm/nouveau: fix u32 overflow in pushbuf reloc bounds check
leds: qcom-lpg: Check for array overflow when selecting the high resolution
ipv6: rpl: reserve mac_len headroom when recompressed SRH grows Linux 6.12.86
Guangshuo Li (1):
ALSA: pcmtest: fix reference leak on failed device registration
Gunnar Kudrjavets (2):
tpm: Fix auth session leak in tpm2_get_random() error path
tpm: Use kfree_sensitive() to free auth session in tpm_dev_release()
Gustavo A. R. Silva (1):
crypto: nx - Fix packed layout in struct nx842_crypto_header
Haoxiang Li (2):
xfs: fix a resource leak in xfs_alloc_buftarg()
crypto: ccree - fix a memory leak in cc_mac_digest()
Harin Lee (1):
ALSA: ctxfi: Add fallback to default RSR for S/PDIF
Helge Deller (1):
parisc: _llseek syscall is only available for 32-bit userspace
Heming Zhao (1):
ocfs2: split transactions in dio completion to avoid credit exhaustion
Herbert Xu (3):
padata: Fix pd UAF once and for all
padata: Remove comment for reorder_work
crypto: pcrypt - Fix handling of MAY_BACKLOG requests
Huacai Chen (1):
LoongArch: Show CPU vulnerabilites correctly
Jacqueline Wong (2):
tpm: tpm_tis: add error logging for data transfer
tpm: tpm_tis: stop transmit if retries are exhausted
James Kim (1):
mtd: docg3: fix use-after-free in docg3_release()
Jens Axboe (2):
io_uring/poll: ensure EPOLL_ONESHOT is propagated for EPOLL_URING_WAKE io_uring/poll: fix multishot recv missing EOF on wakeup race
Jesse.Zhang (1):
drm/amdgpu: Limit BO list entry count to prevent resource exhaustion
Jiawen Wu (1):
net: txgbe: fix firmware version check
Jinjiang Tu (1):
mm/memory_hotplug: fix hwpoisoned large folio handling in do_migrate_range()
Johan Hovold (5):
spi: imx: fix use-after-free on unbind
spi: ch341: fix memory leaks on probe failures
rtc: ntxec: fix OF node reference imbalance
can: ucan: fix devres lifetime
spi: fix resource leaks on device setup failure
Jonathan Santos (1):
iio: adc: ad7768-1: fix one-shot mode data acquisition
Joseph Salisbury (1):
sched: Use u64 for bandwidth ratio calculations
Josh Hunt (1):
md/raid10: fix deadlock with check operation and nowait requests
Josh Law (1):
lib/ts_kmp: fix integer overflow in pattern length calculation
Junrui Luo (2):
md/raid5: validate payload size before accessing journal metadata dm mirror: fix integer overflow in create_dirty_log()
Kai Ma (1):
netfilter: reject zero shift in nft_bitwise
Keenan Dong (1):
rtmutex: Use waiter::task instead of current in remove_waiter()
Kevin Cheng (2):
KVM: SVM: Inject #UD for INVLPGA if EFER.SVME=0
KVM: nSVM: Raise #UD if unhandled VMMCALL isn't intercepted by L1
Koichiro Den (1):
PCI: endpoint: pci-epf-ntb: Remove duplicate resource teardown
Krzysztof Kozlowski (1):
power: supply: axp288_charger: Do not cancel work before initializing it
Long Li (1):
RDMA/mana_ib: Disable RX steering on RSS QP destroy
Longxuan Yu (1):
io_uring/poll: fix signed comparison in io_poll_get_ownership()
Luca Ceresoli (1):
drm/arcpgu: fix device node leak
Luxiao Xu (1):
net: strparser: fix skb_head leak in strp_abort_strp()
Manivannan Sadhasivam (5):
net: qrtr: ns: Fix use-after-free in driver remove()
net: qrtr: ns: Free the node during ctrl_cmd_bye()
net: qrtr: ns: Limit the maximum server registration per node
net: qrtr: ns: Limit the maximum number of lookups
net: qrtr: ns: Limit the total number of nodes
Marek Vasut (3):
mfd: stpmic1: Attempt system shutdown twice in case PMIC is confused
net: ks8851: Reinstate disabling of BHs around IRQ handler
net: ks8851: Avoid excess softirq scheduling
Max Kellermann (1):
ceph: only d_add() negative dentries when they are unhashed
Michael Bommarito (2):
um: drivers: call kernel_strrchr() explicitly in cow_user.c
smb: client: validate the whole DACL before rewriting it in cifsacl
Michal Pecio (1):
usb: xhci: Make usb_host_endpoint.hcpriv survive endpoint_disable()
Mickaël Salaün (1):
selftests/landlock: Fix format warning for __u64 in net_test
Miguel Ojeda (2):
kbuild: rust: allow clippy::uninlined_format_args
rust: init: fix clippy::undocumented_unsafe_blocks warnings
Ming Qian (1):
media: amphion: Fix race between m2m job_abort and device_run
Naman Jain (1):
block: relax pgmap check in bio_add_page for compatible zone device pages
Namjae Jeon (2):
ksmbd: use msleep instaed of schedule_timeout_interruptible()
ksmbd: replace connection list with hash table
Nathan Chancellor (1):
extract-cert: Wrap key_pass with '#ifdef USE_PKCS11_ENGINE'
Oliver Neukum (2):
media: rc: ttusbir: respect DMA coherency rules
media: rc: igorplugusb: heed coherency rules
Paul Louvel (2):
crypto: talitos - fix SEC1 32k ahash request limitation
crypto: talitos - rename first/last to first_desc/last_desc
Pavel Begunkov (1):
io_uring/timeout: check unused sqe fields
Pengpeng Hou (1):
greybus: gb-beagleplay: bound bootloader receive buffering
Prasanna Kumar T S M (1):
vfio/cdx: Fix NULL pointer dereference in interrupt trigger path
Qiang Yu (1):
bus: mhi: host: pci_generic: Switch to async power up to avoid boot delays
Rafael J. Wysocki (1):
thermal: core: Fix thermal zone governor cleanup issues
Raphael Zimmer (1):
libceph: Prevent potential null-ptr-deref in ceph_handle_auth_reply()
Robert Beckett (2):
nvme-pci: add NVME_QUIRK_DISABLE_WRITE_ZEROES for Kingston OM3SGP4
nvme: respect NVME_QUIRK_DISABLE_WRITE_ZEROES when wzsl is set
Robert Marko (1):
arm64: dts: marvell: uDPU: add ethernet aliases
Rong Bao (1):
perf annotate: Use jump__delete when freeing LoongArch jumps
Rong Zhang (1):
Revert "ALSA: usb: Increase volume range that triggers a warning"
Ruide Cao (1):
ipv4: icmp: validate reply type before using icmp_pointers
Ruijie Li (1):
net/smc: avoid early lgr access in smc_clc_wait_msg
Ryan Roberts (1):
randomize_kstack: Maintain kstack_offset per task
Sanjaikumar V S (1):
mtd: spi-nor: sst: Fix write enable before AAI sequence
Sanman Pradhan (2):
hwmon: (powerz) Fix missing usb_kill_urb() on signal interrupt
hwmon: (pt5161l) Fix bugs in pt5161l_read_block_data()
Sean Christopherson (3):
KVM: x86: Defer non-architectural deliver of exception payload to userspace read
KVM: SVM: Explicitly mark vmcb01 dirty after modifying VMCB intercepts
KVM: nSVM: Always intercept VMMCALL when L2 is active
Sean Wang (2):
wifi: mt76: mt792x: describe USB WFSYS reset with a descriptor
wifi: mt76: mt792x: fix mt7925u USB WFSYS reset handling
SeongJae Park (1):
mm/damon/core: use time_in_range_open() for damos quota window start
Sergey Senozhatsky (1):
zram: do not forget to endio for partial discard requests
Shawn Lin (1):
mmc: sdhci-of-dwcmshc: Disable clock before DLL configuration
Shigeru Yoshida (1):
mm/zsmalloc: copy KMSAN metadata in zs_page_migrate()
Shuvam Pandey (1):
Bluetooth: hci_event: fix potential UAF in SSP passkey handlers
Simon Liebold (1):
selftests/mqueue: Fix incorrectly named file
Sohei Koyama (1):
ext4: fix missing brelse() in ext4_xattr_inode_dec_ref_all()
Steven Rostedt (1):
ktest: Fix the month in the name of the failure directory
Takashi Iwai (6):
ALSA: usb-audio: Evaluate packsize caps at the right place
ALSA: core: Fix potential data race at fasync handling
ALSA: caiaq: Handle probe errors properly
ALSA: aoa: Use guard() for mutex locks
ALSA: caiaq: Fix potentially leftover ep1_in_urb at error path
ALSA: caiaq: Don't abort when no input device is available
Thomas Fourier (1):
crypto: hisilicon - Fix dma_unmap_single() direction
Thomas Zimmermann (2):
firmware: google: framebuffer: Do not mark framebuffer as busy
firmware: google: framebuffer: Do not unregister platform device
Thorsten Blum (8):
crypto: atmel-sha204a - Fix OTP sysfs read and error handling
crypto: atmel-aes - Fix 3-page memory leak in atmel_aes_buff_cleanup
crypto: atmel-ecc - Release client on allocation failure
crypto: atmel-tdes - fix DMA sync direction
crypto: atmel-sha204a - Fix error codes in OTP reads
crypto: atmel-sha204a - Fix potential UAF and memory leak in remove path
crypto: atmel-sha204a - Fix uninitialized data access on OTP read error
ALSA: aoa: Skip devices with no codecs in i2sbus_resume()
Tobias Gaertner (2):
ntfs3: add buffer boundary checks to run_unpack()
ntfs3: fix integer overflow in run_unpack() volume boundary check
Tvrtko Ursulin (1):
drm/amdgpu: Use vmemdup_array_user in amdgpu_bo_create_list_entry_array
Tyllis Xu (3):
misc: ibmasm: fix OOB MMIO read in ibmasm_handle_mouse_interrupt()
ibmasm: fix OOB reads in command_file_write due to missing size checks
ibmasm: fix heap over-read in ibmasm_send_i2o_message()
Usama Arif (1):
mm: migrate: requeue destination folio on deferred split queue
Vasiliy Kovalev (1):
ext2: reject inodes with zero i_nlink and valid mode in ext2_iget()
Viorel Suman (OSS) (1):
pwm: imx-tpm: Count the number of enabled channels in probe
Weigang He (1):
greybus: gb-beagleplay: fix sleep in atomic context in hdlc_tx_frames()
Wentao Liang (2):
of: unittest: fix use-after-free in of_unittest_changeset()
of: unittest: fix use-after-free in testdrv_probe()
Xiang Mei (1):
net: bonding: fix use-after-free in bond_xmit_broadcast()
Xu Yang (2):
usb: chipidea: otg: not wait vbus drop if use role_switch
usb: chipidea: core: allow ci_irq_handler() handle both ID and VBUS change
Yang Xiuwei (1):
scsi: sd: fix missing put_disk() when device_add(&disk_dev) fails
Yi Cong (1):
wifi: rtl8xxxu: fix potential use of uninitialized value
Yiyang Chen (2):
tools/accounting: handle truncated taskstats netlink messages
taskstats: set version in TGID exit notifications
Yongpeng Yang (1):
f2fs: fix UAF caused by decrementing sbi->nr_pages[] in f2fs_write_end_io()
Yosry Ahmed (11):
KVM: nSVM: Mark all of vmcb02 dirty when restoring nested state
KVM: nSVM: Sync NextRIP to cached vmcb12 after VMRUN of L2
KVM: nSVM: Sync interrupt shadow to cached vmcb12 after VMRUN of L2
KVM: nSVM: Ensure AVIC is inhibited when restoring a vCPU to guest mode
KVM: nSVM: Use vcpu->arch.cr2 when updating vmcb12 on nested #VMEXIT
KVM: nSVM: Always inject a #GP if mapping VMCB12 fails on nested VMRUN
KVM: nSVM: Clear GIF on nested #VMEXIT(INVALID)
KVM: nSVM: Clear EVENTINJ fields in vmcb12 on nested #VMEXIT
KVM: nSVM: Clear tracking of L1->L2 NMI and soft IRQ on nested #VMEXIT
KVM: nSVM: Add missing consistency check for EFER, CR0, CR4, and CS
KVM: nSVM: Add missing consistency check for nCR3 validity
Yuan Zhaoming (1):
net: mctp: fix don't require received header reserved bits to be zero
Yucheng Lu (1):
crypto: authencesn - reject short ahash digests during instance creation
Zhang Yi (1):
jbd2: fix deadlock in jbd2_journal_cancel_revoke()
Zhengchuan Liang (2):
net: caif: clear client service pointer on teardown
net: bridge: use a stable FDB dst snapshot in RCU readers
Zhenzhong Wu (1):
tcp: call sk_data_ready() after listener migration
Ziqing Chen (1):
ALSA: control: Validate buf_len before strnlen() in snd_ctl_elem_init_enum_names()
hkbinbin (1):
RDMA/rxe: Validate pad and ICRC before payload_size() in rxe_rcv
Greg Kroah-Hartman
maintainerMakefile +2 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 6 PATCHLEVEL = 12 -SUBLEVEL = 85 +SUBLEVEL = 86 EXTRAVERSION = NAME = Baby Opossum Posse
@@ -459,6 +459,7 @@ export rust_common_flags := --edition=2021 \ -Aclippy::needless_lifetimes \ -Wclippy::no_mangle_with_rust_abi \ -Wclippy::undocumented_unsafe_blocks \ + -Aclippy::uninlined_format_args \ -Wclippy::unnecessary_safety_comment \ -Wclippy::unnecessary_safety_doc \ -Wrustdoc::missing_crate_level_docs \
arch/arm64/boot/dts/marvell/armada-3720-uDPU.dtsi +5 -0
@@ -15,6 +15,11 @@ #include "armada-372x.dtsi" / { + aliases { + ethernet0 = ð0; + ethernet1 = ð1; + }; + chosen { stdout-path = "serial0:115200n8"; };
arch/arm64/boot/dts/ti/k3-am62-verdin.dtsi +10 -10
@@ -566,16 +566,16 @@ AM62X_IOPAD(0x15c, PIN_INPUT, 0) /* (AB22) MDIO0_MDIO */ /* ETH_1_MDIO, SODIMM /* On-module eMMC */ pinctrl_sdhci0: main-mmc0-default-pins { pinctrl-single,pins = < - AM62X_IOPAD(0x220, PIN_INPUT, 0) /* (Y3) MMC0_CMD */ - AM62X_IOPAD(0x218, PIN_INPUT, 0) /* (AB1) MMC0_CLK */ - AM62X_IOPAD(0x214, PIN_INPUT, 0) /* (AA2) MMC0_DAT0 */ - AM62X_IOPAD(0x210, PIN_INPUT, 0) /* (AA1) MMC0_DAT1 */ - AM62X_IOPAD(0x20c, PIN_INPUT, 0) /* (AA3) MMC0_DAT2 */ - AM62X_IOPAD(0x208, PIN_INPUT, 0) /* (Y4) MMC0_DAT3 */ - AM62X_IOPAD(0x204, PIN_INPUT, 0) /* (AB2) MMC0_DAT4 */ - AM62X_IOPAD(0x200, PIN_INPUT, 0) /* (AC1) MMC0_DAT5 */ - AM62X_IOPAD(0x1fc, PIN_INPUT, 0) /* (AD2) MMC0_DAT6 */ - AM62X_IOPAD(0x1f8, PIN_INPUT, 0) /* (AC2) MMC0_DAT7 */ + AM62X_IOPAD(0x220, PIN_INPUT, 0) /* (Y3) MMC0_CMD */ + AM62X_IOPAD(0x218, PIN_INPUT, 0) /* (AB1) MMC0_CLK */ + AM62X_IOPAD(0x214, PIN_INPUT, 0) /* (AA2) MMC0_DAT0 */ + AM62X_IOPAD(0x210, PIN_INPUT_PULLUP, 0) /* (AA1) MMC0_DAT1 */ + AM62X_IOPAD(0x20c, PIN_INPUT_PULLUP, 0) /* (AA3) MMC0_DAT2 */ + AM62X_IOPAD(0x208, PIN_INPUT_PULLUP, 0) /* (Y4) MMC0_DAT3 */ + AM62X_IOPAD(0x204, PIN_INPUT_PULLUP, 0) /* (AB2) MMC0_DAT4 */ + AM62X_IOPAD(0x200, PIN_INPUT_PULLUP, 0) /* (AC1) MMC0_DAT5 */ + AM62X_IOPAD(0x1fc, PIN_INPUT_PULLUP, 0) /* (AD2) MMC0_DAT6 */ + AM62X_IOPAD(0x1f8, PIN_INPUT_PULLUP, 0) /* (AC2) MMC0_DAT7 */ >; };
arch/arm64/crypto/aes-modes.S +2 -2
@@ -838,7 +838,7 @@ AES_FUNC_START(aes_mac_update) encrypt_block v0, w2, x1, x7, w8 eor v0.16b, v0.16b, v4.16b cmp w3, wzr - csinv x5, x6, xzr, eq + csinv w5, w6, wzr, eq cbz w5, .Lmacout encrypt_block v0, w2, x1, x7, w8 st1 {v0.16b}, [x4] /* return dg */
@@ -852,7 +852,7 @@ AES_FUNC_START(aes_mac_update) eor v0.16b, v0.16b, v1.16b /* ..and xor with dg */ subs w3, w3, #1 - csinv x5, x6, xzr, eq + csinv w5, w6, wzr, eq cbz w5, .Lmacout .Lmacenc:
arch/arm64/mm/mmu.c +20 -16
@@ -869,10 +869,14 @@ static void unmap_hotplug_pte_range(pmd_t *pmdp, unsigned long addr,WARN_ON (!pte_present (pte));__pte_clear (&init_mm, addr, ptep); -flush_tlb_kernel_range (addr, addr +PAGE_SIZE ); -if (free_mapped) +if (free_mapped) { +/* CONT blocks are not supported in the vmemmap */ +WARN_ON (pte_cont (pte)); +flush_tlb_kernel_range (addr, addr +PAGE_SIZE );free_hotplug_page_range (pte_page (pte),PAGE_SIZE , altmap); + } +/* unmap_hotplug_range() flushes TLB for !free_mapped */ }while (addr +=PAGE_SIZE , addr < end); }
@@ -893,15 +897,14 @@ static void unmap_hotplug_pmd_range(pud_t *pudp, unsigned long addr,WARN_ON (!pmd_present (pmd));if (pmd_sect (pmd)) {pmd_clear (pmdp); - -/* -* One TLBI should be sufficient here as the PMD_SIZE -* range is mapped with a single block entry. -*/ -flush_tlb_kernel_range (addr, addr +PAGE_SIZE ); -if (free_mapped) +if (free_mapped) { +/* CONT blocks are not supported in the vmemmap */ +WARN_ON (pmd_cont (pmd)); +flush_tlb_kernel_range (addr, addr +PMD_SIZE );free_hotplug_page_range (pmd_page (pmd),PMD_SIZE , altmap); + } +/* unmap_hotplug_range() flushes TLB for !free_mapped */ continue ; }WARN_ON (!pmd_table (pmd));
@@ -926,15 +929,12 @@ static void unmap_hotplug_pud_range(p4d_t *p4dp, unsigned long addr,WARN_ON (!pud_present (pud));if (pud_sect (pud)) {pud_clear (pudp); - -/* -* One TLBI should be sufficient here as the PUD_SIZE -* range is mapped with a single block entry. -*/ -flush_tlb_kernel_range (addr, addr +PAGE_SIZE ); -if (free_mapped) +if (free_mapped) { +flush_tlb_kernel_range (addr, addr +PUD_SIZE );free_hotplug_page_range (pud_page (pud),PUD_SIZE , altmap); + } +/* unmap_hotplug_range() flushes TLB for !free_mapped */ continue ; }WARN_ON (!pud_table (pud));
@@ -964,6 +964,7 @@ static void unmap_hotplug_p4d_range(pgd_t *pgdp, unsigned long addr,static void unmap_hotplug_range (unsigned long addr,unsigned long end,bool free_mapped,struct vmem_altmap *altmap) { +unsigned long start = addr;unsigned long next;pgd_t *pgdp, pgd;
@@ -985,6 +986,9 @@ static void unmap_hotplug_range(unsigned long addr, unsigned long end,WARN_ON (!pgd_present (pgd));unmap_hotplug_p4d_range (pgdp, addr, next, free_mapped, altmap); }while (addr = next, addr < end); + +if (!free_mapped) +flush_tlb_kernel_range (start, end); } static void free_empty_pte_table(pmd_t *pmdp, unsigned long addr,
arch/loongarch/kernel/cpu-probe.c +7 -0
@@ -7,6 +7,7 @@#include <linux/init.h> #include <linux/kernel.h> #include <linux/ptrace.h> +#include <linux/cpu.h> #include <linux/smp.h> #include <linux/stddef.h> #include <linux/export.h>
@@ -352,3 +353,9 @@ void cpu_probe(void)cpu_report (); } + +ssize_t cpu_show_spectre_v1 (struct device *dev, +struct device_attribute *attr,char *buf) +{ +return sysfs_emit (buf,"Mitigation: __user pointer sanitization\n" ); +}
arch/loongarch/kernel/syscall.c +2 -1
@@ -9,6 +9,7 @@#include <linux/entry-common.h> #include <linux/errno.h> #include <linux/linkage.h> +#include <linux/nospec.h> #include <linux/objtool.h> #include <linux/randomize_kstack.h> #include <linux/syscalls.h>
@@ -61,7 +62,7 @@ void noinstr __no_stack_protector do_syscall(struct pt_regs *regs)add_random_kstack_offset ();if (nr < NR_syscalls) { - syscall_fn = sys_call_table[nr]; + syscall_fn = sys_call_table[array_index_nospec (nr, NR_syscalls)]; regs->regs[4 ] =syscall_fn (regs->orig_a0, regs->regs[5 ], regs->regs[6 ], regs->regs[7 ], regs->regs[8 ], regs->regs[9 ]); }
arch/parisc/kernel/syscalls/syscall.tbl +1 -1
@@ -154,7 +154,7 @@ # 137 was afs_syscall 138 common setfsuid sys_setfsuid 139 common setfsgid sys_setfsgid -140 common _llseek sys_llseek +140 32 _llseek sys_llseek 141 common getdents sys_getdents compat_sys_getdents 142 common _newselect sys_select compat_sys_select 143 common flock sys_flock
arch/um/drivers/cow_user.c +7 -1
@@ -15,6 +15,12 @@#include "cow.h" #include "cow_sys.h" +/* +* arch/um/Makefile remaps strrchr to kernel_strrchr; call the kernel +* name directly to avoid glibc >= 2.43's C23 strrchr macro. +*/ +char *kernel_strrchr (const char *,int ); +#define PATH_LEN_V1 256/* unsigned time_t works until year 2106 */
@@ -153,7 +159,7 @@ static int absolutize(char *to, int size, char *from) errno);return -1 ; } - slash =strrchr (from,'/' ); + slash =kernel_strrchr (from,'/' );if (slash !=NULL ) { *slash ='\0' ;if (chdir (from)) {
arch/x86/kvm/hyperv.h +0 -8
@@ -304,14 +304,6 @@ static inline bool kvm_hv_has_stimer_pending(struct kvm_vcpu *vcpu) {return false; } -static inline bool kvm_hv_is_tlb_flush_hcall (struct kvm_vcpu *vcpu) -{ -return false; -} -static inline bool guest_hv_cpuid_has_l2_tlb_flush (struct kvm_vcpu *vcpu) -{ -return false; -}static inline int kvm_hv_verify_vp_assist (struct kvm_vcpu *vcpu) {return 0 ;
arch/x86/kvm/svm/hyperv.h +8 -1
@@ -41,10 +41,17 @@ static inline bool nested_svm_l2_tlb_flush_enabled(struct kvm_vcpu *vcpu) return hv_vcpu->vp_assist_page.nested_control.features.directhypercall; } +static inline bool nested_svm_is_l2_tlb_flush_hcall (struct kvm_vcpu *vcpu) +{ +return guest_hv_cpuid_has_l2_tlb_flush (vcpu) && +nested_svm_l2_tlb_flush_enabled (vcpu) && +kvm_hv_is_tlb_flush_hcall (vcpu); +} +void svm_hv_inject_synthetic_vmexit_post_tlb_flush (struct kvm_vcpu *vcpu);#else /* CONFIG_KVM_HYPERV */ static inline void nested_svm_hv_update_vm_vp_ids (struct kvm_vcpu *vcpu) {} -static inline bool nested_svm_l2_tlb_flush_enabled (struct kvm_vcpu *vcpu) +static inline bool nested_svm_is_l2_tlb_flush_hcall (struct kvm_vcpu *vcpu) {return false; }
arch/x86/kvm/svm/nested.c +35 -20
152 lines not on this page · raw message
arch/x86/kvm/svm/svm.c +31 -1
@@ -49,6 +49,7 @@#include "svm.h" #include "svm_ops.h" +#include "hyperv.h" #include "kvm_onhyperv.h" #include "svm_onhyperv.h"
@@ -2555,6 +2556,9 @@ static int invlpga_interception(struct kvm_vcpu *vcpu)gva_t gva =kvm_rax_read (vcpu);u32 asid =kvm_rcx_read (vcpu); +if (nested_svm_check_permissions (vcpu)) +return 1 ; +/* FIXME: Handle an address size prefix. */ if (!is_long_mode (vcpu)) gva = (u32 )gva;
@@ -3374,6 +3378,22 @@ static int invpcid_interception(struct kvm_vcpu *vcpu)return kvm_handle_invpcid (vcpu, type, gva); } +static int vmmcall_interception (struct kvm_vcpu *vcpu) +{ +/* +* Inject a #UD if L2 is active and the VMMCALL isn't a Hyper-V TLB +* hypercall, as VMMCALL #UDs if it's not intercepted, and this path is +* reachable if and only if L1 doesn't want to intercept VMMCALL or has +* enabled L0 (KVM) handling of Hyper-V L2 TLB flush hypercalls. +*/ +if (is_guest_mode (vcpu) && !nested_svm_is_l2_tlb_flush_hcall (vcpu)) { +kvm_queue_exception (vcpu,UD_VECTOR ); +return 1 ; + } + +return kvm_emulate_hypercall (vcpu); +} +static int (*const svm_exit_handlers[])(struct kvm_vcpu *vcpu) = { [SVM_EXIT_READ_CR0 ] = cr_interception, [SVM_EXIT_READ_CR3 ] = cr_interception,
@@ -3424,7 +3444,7 @@ static int (*const svm_exit_handlers[])(struct kvm_vcpu *vcpu) = { [SVM_EXIT_TASK_SWITCH] = task_switch_interception, [SVM_EXIT_SHUTDOWN] = shutdown_interception, [SVM_EXIT_VMRUN] = vmrun_interception, - [SVM_EXIT_VMMCALL] = kvm_emulate_hypercall, + [SVM_EXIT_VMMCALL] = vmmcall_interception, [SVM_EXIT_VMLOAD] = vmload_interception, [SVM_EXIT_VMSAVE] = vmsave_interception, [SVM_EXIT_STGI] = stgi_interception,
@@ -4445,6 +4465,16 @@ static __no_kcsan fastpath_t svm_vcpu_run(struct kvm_vcpu *vcpu, u64 run_flags)svm_complete_interrupts (vcpu); +/* +* Update the cache after completing interrupts to get an accurate +* NextRIP, e.g. when re-injecting a soft interrupt. +* +* FIXME: Rework svm_get_nested_state() to not pull data from the +* cache (except for maybe int_ctl). +*/ +if (is_guest_mode (vcpu)) + svm->nested.ctl.next_rip = svm->vmcb->control.next_rip; +return svm_exit_handlers_fastpath (vcpu); }
arch/x86/kvm/svm/svm.h +1 -0
@@ -136,6 +136,7 @@ struct kvm_vmcb_info { };struct vmcb_save_area_cached { +struct vmcb_seg cs;u64 efer;u64 cr4;u64 cr3;
arch/x86/kvm/x86.c +39 -23
99 lines not on this page · raw message
arch/x86/mm/pti.c +5 -0
@@ -412,6 +412,11 @@ pti_clone_pgtable(unsigned long start, unsigned long end,BUG (); } } + +if (cpu_feature_enabled (X86_FEATURE_FRED )) { +pr_debug ("PTI enabled, disabling FRED\n" ); +setup_clear_cpu_cap (X86_FEATURE_FRED ); + } }#ifdef CONFIG_X86_64
block/bio-integrity.c +2 -0
@@ -167,6 +167,8 @@ int bio_integrity_add_page(struct bio *bio, struct page *page,struct bio_vec *bv = &bip->bip_vec[bip->bip_vcnt -1 ];bool same_page = false; +if (!zone_device_pages_compatible (bv->bv_page, page)) +return 0 ;if (bvec_try_merge_hw_page (q, bv, page, len, offset, &same_page)) { bip->bip_iter.bi_size += len;
block/bio.c +9 -5
@@ -1155,11 +1155,15 @@ int bio_add_page(struct bio *bio, struct page *page,if (bio->bi_iter.bi_size >UINT_MAX - len)return 0 ; -if (bio->bi_vcnt >0 && -bvec_try_merge_page (&bio->bi_io_vec[bio->bi_vcnt -1 ], - page, len, offset, &same_page)) { - bio->bi_iter.bi_size += len; -return len; +if (bio->bi_vcnt >0 ) { +struct bio_vec *bv = &bio->bi_io_vec[bio->bi_vcnt -1 ]; + +if (!zone_device_pages_compatible (bv->bv_page, page)) +return 0 ; +if (bvec_try_merge_page (bv, page, len, offset, &same_page)) { + bio->bi_iter.bi_size += len; +return len; + } }if (bio->bi_vcnt >= bio->bi_max_vecs)
block/blk-zoned.c +8 -4
@@ -811,13 +811,17 @@ static void disk_zone_wplug_schedule_bio_work(struct gendisk *disk, struct blk_zone_wplug *zwplug) {/* -* Take a reference on the zone write plug and schedule the submission -* of the next plugged BIO. blk_zone_wplug_bio_work() will release the -* reference we take here. +* Schedule the submission of the next plugged BIO. Taking a reference +* to the zone write plug is required as the bio_work belongs to the +* plug, and thus we must ensure that the write plug does not go away +* while the work is being scheduled but has not run yet. +* blk_zone_wplug_bio_work() will release the reference we take here, +* and we also drop this reference if the work is already scheduled. */ WARN_ON_ONCE (!(zwplug->flags &BLK_ZONE_WPLUG_PLUGGED ));refcount_inc (&zwplug->ref); -queue_work (disk->zone_wplugs_wq, &zwplug->bio_work); +if (!queue_work (disk->zone_wplugs_wq, &zwplug->bio_work)) +disk_put_zone_wplug (zwplug); } static inline void disk_zone_wplug_add_bio(struct gendisk *disk,
block/blk.h +19 -0
@@ -124,6 +124,25 @@ static inline bool biovec_phys_mergeable(struct request_queue *q,return true; } +/* +* Check if two pages from potentially different zone device pgmaps can +* coexist as separate bvec entries in the same bio. +* +* The block DMA iterator (blk_dma_map_iter_start) caches the P2PDMA mapping +* state from the first segment and applies it to all subsequent segments, so +* P2PDMA pages from different pgmaps must not be mixed in the same bio. +* +* Other zone device types (FS_DAX, GENERIC) use the same dma_map_phys() path +* as normal RAM. PRIVATE and COHERENT pages never appear in bios. +*/ +static inline bool zone_device_pages_compatible (const struct page *a, +const struct page *b) +{ +if (is_pci_p2pdma_page (a) ||is_pci_p2pdma_page (b)) +return zone_device_pages_have_same_pgmap (a, b); +return true; +} +static inline bool __bvec_gap_to_prev (const struct queue_limits *lim,struct bio_vec *bprv,unsigned int offset) {
certs/extract-cert.c +5 -1
@@ -43,7 +43,9 @@ void format(void)exit (2 ); } +#ifdef USE_PKCS11_ENGINE static const char *key_pass; +#endif static BIO *wb;static char *cert_dst;static bool verbose;
@@ -135,7 +137,9 @@ int main(int argc, char **argv)if (verbose_env &&strchr (verbose_env,'1' )) verbose = true; - key_pass =getenv ("KBUILD_SIGN_PIN" ); +#ifdef USE_PKCS11_ENGINE + key_pass =getenv ("KBUILD_SIGN_PIN" ); +#endif if (argc !=3 )format ();
crypto/authencesn.c +5 -0
@@ -390,6 +390,11 @@ static int crypto_authenc_esn_create(struct crypto_template *tmpl, auth =crypto_spawn_ahash_alg (&ctx->auth); auth_base = &auth->base; +if (auth->digestsize >0 && auth->digestsize <4 ) { + err = -EINVAL ; + goto err_free_inst; + } + err =crypto_grab_skcipher (&ctx->enc,aead_crypto_instance (inst),crypto_attr_alg_name (tb[2 ]),0 , mask);if (err)
crypto/pcrypt.c +5 -2
@@ -69,6 +69,9 @@ static void pcrypt_aead_done(void *data, int err)struct pcrypt_request *preq =aead_request_ctx (req);struct padata_priv *padata =pcrypt_request_padata (preq); +if (err == -EINPROGRESS ) +return ; + padata->info = err;padata_do_serial (padata);
@@ -82,7 +85,7 @@ static void pcrypt_aead_enc(struct padata_priv *padata) ret =crypto_aead_encrypt (req); -if (ret == -EINPROGRESS ) +if (ret == -EINPROGRESS || ret == -EBUSY )return ; padata->info = ret;
@@ -133,7 +136,7 @@ static void pcrypt_aead_dec(struct padata_priv *padata) ret =crypto_aead_decrypt (req); -if (ret == -EINPROGRESS ) +if (ret == -EINPROGRESS || ret == -EBUSY )return ; padata->info = ret;
drivers/base/core.c +27 -12
@@ -182,7 +182,7 @@ void fw_devlink_purge_absent_suppliers(struct fwnode_handle *fwnode)if (fwnode->dev)return ; - fwnode->flags |=FWNODE_FLAG_NOT_DEVICE ; +fwnode_set_flag (fwnode,FWNODE_FLAG_NOT_DEVICE );fwnode_links_purge_consumers (fwnode);fwnode_for_each_available_child_node (fwnode, child)
@@ -228,7 +228,7 @@ static void __fw_devlink_pickup_dangling_consumers(struct fwnode_handle *fwnode,if (fwnode->dev && fwnode->dev->bus)return ; - fwnode->flags |=FWNODE_FLAG_NOT_DEVICE ; +fwnode_set_flag (fwnode,FWNODE_FLAG_NOT_DEVICE );__fwnode_links_move_consumers (fwnode, new_sup);fwnode_for_each_available_child_node (fwnode, child)
@@ -1013,7 +1013,7 @@ static void device_links_missing_supplier(struct device *dev)static bool dev_is_best_effort (struct device *dev) {return (fw_devlink_best_effort && dev->can_match) || - (dev->fwnode && (dev->fwnode->flags &FWNODE_FLAG_BEST_EFFORT )); + (dev->fwnode &&fwnode_test_flag (dev->fwnode,FWNODE_FLAG_BEST_EFFORT )); } static struct fwnode_handle *fwnode_links_check_suppliers(
@@ -1724,11 +1724,11 @@ bool fw_devlink_is_strict(void)static void fw_devlink_parse_fwnode (struct fwnode_handle *fwnode) { -if (fwnode->flags &FWNODE_FLAG_LINKS_ADDED ) +if (fwnode_test_flag (fwnode,FWNODE_FLAG_LINKS_ADDED ))return ;fwnode_call_int_op (fwnode, add_links); - fwnode->flags |=FWNODE_FLAG_LINKS_ADDED ; +fwnode_set_flag (fwnode,FWNODE_FLAG_LINKS_ADDED ); }static void fw_devlink_parse_fwtree (struct fwnode_handle *fwnode)
@@ -1888,7 +1888,7 @@ static bool fwnode_init_without_drv(struct fwnode_handle *fwnode)struct device *dev;bool ret; -if (!(fwnode->flags &FWNODE_FLAG_INITIALIZED )) +if (!fwnode_test_flag (fwnode,FWNODE_FLAG_INITIALIZED ))return false; dev =get_dev_from_fwnode (fwnode);
@@ -2004,10 +2004,10 @@ static bool __fw_devlink_relax_cycles(struct fwnode_handle *con_handle,* We aren't trying to find all cycles. Just a cycle between con and * sup_handle. */ -if (sup_handle->flags &FWNODE_FLAG_VISITED ) +if (fwnode_test_flag (sup_handle,FWNODE_FLAG_VISITED ))return false; - sup_handle->flags |=FWNODE_FLAG_VISITED ; +fwnode_set_flag (sup_handle,FWNODE_FLAG_VISITED );/* Termination condition. */ if (sup_handle == con_handle) {
@@ -2077,7 +2077,7 @@ static bool __fw_devlink_relax_cycles(struct fwnode_handle *con_handle, } out: - sup_handle->flags &= ~FWNODE_FLAG_VISITED ; +fwnode_clear_flag (sup_handle,FWNODE_FLAG_VISITED );put_device (sup_dev);put_device (con_dev);put_device (par_dev);
@@ -2130,7 +2130,7 @@ static int fw_devlink_create_devlink(struct device *con,* When such a flag is set, we can't create device links where P is the * supplier of C as that would delay the probe of C. */ -if (sup_handle->flags &FWNODE_FLAG_NEEDS_CHILD_BOUND_ON_ADD && +if (fwnode_test_flag (sup_handle,FWNODE_FLAG_NEEDS_CHILD_BOUND_ON_ADD ) &&fwnode_is_ancestor_of (sup_handle, con->fwnode))return -EINVAL ;
@@ -2153,7 +2153,7 @@ static int fw_devlink_create_devlink(struct device *con,else flags =FW_DEVLINK_FLAGS_PERMISSIVE ; -if (sup_handle->flags &FWNODE_FLAG_NOT_DEVICE ) +if (fwnode_test_flag (sup_handle,FWNODE_FLAG_NOT_DEVICE )) sup_dev =fwnode_get_next_parent_dev (sup_handle);else sup_dev =get_dev_from_fwnode (sup_handle);
@@ -2165,7 +2165,7 @@ static int fw_devlink_create_devlink(struct device *con,* supplier device indefinitely. */ if (sup_dev->links.status ==DL_DEV_NO_DRIVER && - sup_handle->flags &FWNODE_FLAG_INITIALIZED ) { +fwnode_test_flag (sup_handle,FWNODE_FLAG_INITIALIZED )) {dev_dbg (con,"Not linking %pfwf - dev might never probe\n" , sup_handle);
@@ -3691,6 +3691,21 @@ int device_add(struct device *dev)fw_devlink_link_device (dev); } +/* +* The moment the device was linked into the bus's "klist_devices" in +* bus_add_device() then it's possible that probe could have been +* attempted in a different thread via userspace loading a driver +* matching the device. "ready_to_probe" being unset would have +* blocked those attempts. Now that all of the above initialization has +* happened, unblock probe. If probe happens through another thread +* after this point but before bus_probe_device() runs then it's fine. +* bus_probe_device() -> device_initial_probe() -> __device_attach() +* will notice (under device_lock) that the device is already bound. +*/ +device_lock (dev); +dev_set_ready_to_probe (dev); +device_unlock (dev); +bus_probe_device (dev);/*
drivers/base/dd.c +20 -0
@@ -844,6 +844,26 @@ static int __driver_probe_device(const struct device_driver *drv, struct deviceif (dev->driver)return -EBUSY ; +/* +* In device_add(), the "struct device" gets linked into the subsystem's +* list of devices and broadcast to userspace (via uevent) before we're +* quite ready to probe. Those open pathways to driver probe before +* we've finished enough of device_add() to reliably support probe. +* Detect this and tell other pathways to try again later. device_add() +* itself will also try to probe immediately after setting +* "ready_to_probe". +*/ +if (!dev_ready_to_probe (dev)) +return dev_err_probe (dev, -EPROBE_DEFER ,"Device not ready to probe\n" ); + +/* +* Set can_match = true after calling dev_ready_to_probe(), so +* driver_deferred_probe_add() won't actually add the device to the +* deferred probe list when dev_ready_to_probe() returns false. +* +* When dev_ready_to_probe() returns false, it means that device_add() +* will do another probe() attempt for us. +*/ dev->can_match = true;dev_dbg (dev,"bus: '%s': %s: matched device with driver %s\n" , drv->bus->name, __func__, drv->name);
drivers/block/rbd.c +3 -3
@@ -7166,7 +7166,7 @@ static ssize_t do_rbd_add(const char *buf, size_t count) rc =device_add_disk (&rbd_dev->dev, rbd_dev->disk,NULL );if (rc) - goto err_out_cleanup_disk; + goto err_out_device;spin_lock (&rbd_dev_list_lock);list_add_tail (&rbd_dev->node, &rbd_dev_list);
@@ -7180,8 +7180,8 @@ static ssize_t do_rbd_add(const char *buf, size_t count)module_put (THIS_MODULE );return rc; -err_out_cleanup_disk: -rbd_free_disk (rbd_dev); +err_out_device: +device_del (&rbd_dev->dev); err_out_image_lock:rbd_dev_image_unlock (rbd_dev);rbd_dev_device_release (rbd_dev);
drivers/block/zram/zram_drv.c +2 -1
@@ -2017,7 +2017,7 @@ static void zram_bio_discard(struct zram *zram, struct bio *bio)*/ if (offset) {if (n <= (PAGE_SIZE - offset)) -return ; + goto end_bio; n -= (PAGE_SIZE - offset); index++;
@@ -2032,6 +2032,7 @@ static void zram_bio_discard(struct zram *zram, struct bio *bio) n -=PAGE_SIZE ; } +end_bio:bio_endio (bio); }
drivers/bus/imx-weim.c +1 -1
@@ -332,7 +332,7 @@ static int of_weim_notify(struct notifier_block *nb, unsigned long action,* fw_devlink doesn't skip adding consumers to this * device. */ - rd->dn->fwnode.flags &= ~FWNODE_FLAG_NOT_DEVICE ; +fwnode_clear_flag (&rd->dn->fwnode,FWNODE_FLAG_NOT_DEVICE );if (!of_platform_device_create (rd->dn,NULL , &pdev->dev)) { dev_err(&pdev->dev, "Failed to create child device '%pOF'\n",
drivers/bus/mhi/host/pci_generic.c +1 -1
@@ -1235,7 +1235,7 @@ static int mhi_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) goto err_unregister; } - err =mhi_sync_power_up (mhi_cntrl); + err =mhi_async_power_up (mhi_cntrl);if (err) {dev_err (&pdev->dev,"failed to power up MHI controller\n" ); goto err_unprepare;
drivers/char/tpm/tpm-chip.c +1 -1
@@ -283,7 +283,7 @@ static void tpm_dev_release(struct device *dev)kfree (chip->work_space.context_buf);kfree (chip->work_space.session_buf);#ifdef CONFIG_TCG_TPM2_HMAC -kfree (chip->auth); +kfree_sensitive (chip->auth);#endif kfree (chip); }
drivers/char/tpm/tpm2-cmd.c +2 -4
@@ -338,10 +338,8 @@ int tpm2_get_random(struct tpm_chip *chip, u8 *dest, size_t max) NULL, 0);tpm_buf_append_u16 (&buf, num_bytes); err =tpm_buf_fill_hmac_session (chip, &buf); -if (err) { -tpm_buf_destroy (&buf); -return err; - } +if (err) + goto out; err = tpm_transmit_cmd(chip, &buf, offsetof(struct tpm2_get_random_out,
drivers/char/tpm/tpm_tis_core.c +10 -1
@@ -472,6 +472,8 @@ static int tpm_tis_send_data(struct tpm_chip *chip, const u8 *buf, size_t len) status =tpm_tis_status (chip);if (!itpm && (status &TPM_STS_DATA_EXPECT ) ==0 ) { rc = -EIO ; +dev_err (&chip->dev,"TPM_STS_DATA_EXPECT should be set. sts = 0x%08x\n" , + status); goto out_err; } }
@@ -492,6 +494,8 @@ static int tpm_tis_send_data(struct tpm_chip *chip, const u8 *buf, size_t len) status =tpm_tis_status (chip);if (!itpm && (status &TPM_STS_DATA_EXPECT ) !=0 ) { rc = -EIO ; +dev_err (&chip->dev,"TPM_STS_DATA_EXPECT should be unset. sts = 0x%08x\n" , + status); goto out_err; }
@@ -553,11 +557,16 @@ static int tpm_tis_send_main(struct tpm_chip *chip, const u8 *buf, size_t len)break ; else if (rc != -EAGAIN && rc != -EIO)/* Data transfer failed, not recoverable */ -return rc; + goto out_err;usleep_range (priv->timeout_min, priv->timeout_max); } +if (rc == -EAGAIN || rc == -EIO ) { +dev_err (&chip->dev,"Exhausted %d tpm_tis_send_data retries\n" ,TPM_RETRY ); + goto out_err; + } +/* go and do it */ rc =tpm_tis_write8 (priv,TPM_STS (priv->locality),TPM_STS_GO );if (rc <0 )
drivers/crypto/atmel-aes.c +1 -1
@@ -2130,7 +2130,7 @@ static int atmel_aes_buff_init(struct atmel_aes_dev *dd)static void atmel_aes_buff_cleanup (struct atmel_aes_dev *dd) { -free_page ((unsigned long )dd->buf); +free_pages ((unsigned long )dd->buf,ATMEL_AES_BUFFER_ORDER ); }static int atmel_aes_dma_init (struct atmel_aes_dev *dd)
drivers/crypto/atmel-ecc.c +1 -0
@@ -261,6 +261,7 @@ static int atmel_ecdh_init_tfm(struct crypto_kpp *tfm)if (IS_ERR (fallback)) {dev_err (&ctx->client->dev,"Failed to allocate transformation for '%s': %ld\n" , alg,PTR_ERR (fallback)); +atmel_ecc_i2c_client_free (ctx->client);return PTR_ERR (fallback); }
drivers/crypto/atmel-i2c.c +2 -2
@@ -72,8 +72,8 @@ EXPORT_SYMBOL(atmel_i2c_init_read_config_cmd);int atmel_i2c_init_read_otp_cmd (struct atmel_i2c_cmd *cmd,u16 addr) { -if (addr <0 || addr >OTP_ZONE_SIZE ) -return -1 ; +if (addr >=OTP_ZONE_SIZE /4 ) +return -EINVAL ; cmd->word_addr =COMMAND ; cmd->opcode =OPCODE_READ ;
drivers/crypto/atmel-sha204a.c +21 -16
@@ -15,6 +15,7 @@#include <linux/module.h> #include <linux/scatterlist.h> #include <linux/slab.h> +#include <linux/sysfs.h> #include <linux/workqueue.h> #include "atmel-i2c.h"
@@ -95,19 +96,24 @@ static int atmel_sha204a_rng_read(struct hwrng *rng, void *data, size_t max,static int atmel_sha204a_otp_read (struct i2c_client *client,u16 addr,u8 *otp) {struct atmel_i2c_cmd cmd; -int ret =-1 ; +int ret; -if (atmel_i2c_init_read_otp_cmd (&cmd, addr) <0 ) { + ret =atmel_i2c_init_read_otp_cmd (&cmd, addr); +if (ret <0 ) {dev_err (&client->dev,"failed, invalid otp address %04X\n" , addr);return ret; } ret =atmel_i2c_send_receive (client, &cmd); +if (ret <0 ) { +dev_err (&client->dev,"failed to read otp at %04X\n" , addr); +return ret; + }if (cmd.data[0 ] ==0xff ) {dev_err (&client->dev,"failed, device not ready\n" ); -return -EINVAL ; +return -EIO ; }memcpy (otp, cmd.data+1 ,4 );
@@ -120,21 +126,22 @@ static ssize_t otp_show(struct device *dev, {u16 addr;u8 otp[OTP_ZONE_SIZE ]; -char *str = buf;struct i2c_client *client =to_i2c_client (dev); -int i; +ssize_t len =0 ; +int i, ret; -for (addr =0 ; addr <OTP_ZONE_SIZE /4 ; addr++) { -if (atmel_sha204a_otp_read (client, addr, otp + addr *4 ) <0 ) { +for (addr =0 ; addr <OTP_ZONE_SIZE /4 ; addr++) { + ret =atmel_sha204a_otp_read (client, addr, otp + addr *4 ); +if (ret <0 ) {dev_err (dev,"failed to read otp zone\n" ); -break ; +return ret; } } -for (i =0 ; i < addr*2 ; i++) - str +=sprintf (str,"%02X" , otp[i]); - str +=sprintf (str,"\n" ); -return str - buf; +for (i =0 ; i <OTP_ZONE_SIZE ; i++) + len +=sysfs_emit_at (buf, len,"%02X" , otp[i]); + len +=sysfs_emit_at (buf, len,"\n" ); +return len; }static DEVICE_ATTR_RO (otp);
@@ -191,10 +198,8 @@ static void atmel_sha204a_remove(struct i2c_client *client) {struct atmel_i2c_client_priv *i2c_priv =i2c_get_clientdata (client); -if (atomic_read (&i2c_priv->tfm_count)) { -dev_emerg (&client->dev,"Device is busy, will remove it anyhow\n" ); -return ; - } +devm_hwrng_unregister (&client->dev, &i2c_priv->hwrng); +atmel_i2c_flush_queue ();sysfs_remove_group (&client->dev.kobj, &atmel_sha204a_groups);
drivers/crypto/atmel-tdes.c +4 -4
@@ -294,8 +294,8 @@ static int atmel_tdes_crypt_pdc_stop(struct atmel_tdes_dev *dd)dma_unmap_sg (dd->dev, dd->out_sg,1 ,DMA_FROM_DEVICE );dma_unmap_sg (dd->dev, dd->in_sg,1 ,DMA_TO_DEVICE ); }else { -dma_sync_single_for_device (dd->dev, dd->dma_addr_out, - dd->dma_size,DMA_FROM_DEVICE ); +dma_sync_single_for_cpu (dd->dev, dd->dma_addr_out, + dd->dma_size,DMA_FROM_DEVICE );/* copy data */ count = atmel_tdes_sg_copy(&dd->out_sg, &dd->out_offset,
@@ -619,8 +619,8 @@ static int atmel_tdes_crypt_dma_stop(struct atmel_tdes_dev *dd)dma_unmap_sg (dd->dev, dd->out_sg,1 ,DMA_FROM_DEVICE );dma_unmap_sg (dd->dev, dd->in_sg,1 ,DMA_TO_DEVICE ); }else { -dma_sync_single_for_device (dd->dev, dd->dma_addr_out, - dd->dma_size,DMA_FROM_DEVICE ); +dma_sync_single_for_cpu (dd->dev, dd->dma_addr_out, + dd->dma_size,DMA_FROM_DEVICE );/* copy data */ count = atmel_tdes_sg_copy(&dd->out_sg, &dd->out_offset,
drivers/crypto/ccree/cc_hash.c +1 -0
@@ -1448,6 +1448,7 @@ static int cc_mac_digest(struct ahash_request *req)if (cc_map_hash_request_final (ctx->drvdata, state, req->src, req->nbytes,1 , flags)) {dev_err (dev,"map_ahash_request_final() failed\n" ); +cc_unmap_result (dev, state, digestsize, req->result);cc_unmap_req (dev, state, ctx);return -ENOMEM ; }
drivers/crypto/hisilicon/sec/sec_algs.c +1 -1
@@ -844,7 +844,7 @@ static int sec_alg_skcipher_crypto(struct skcipher_request *skreq,if (crypto_skcipher_ivsize (atfm))dma_unmap_single (info->dev, sec_req->dma_iv,crypto_skcipher_ivsize (atfm), -DMA_BIDIRECTIONAL ); +DMA_TO_DEVICE ); err_unmap_out_sg:if (split) sec_unmap_sg_on_err(skreq->dst, steps, splits_out,
drivers/crypto/nx/nx-842.h +2 -2
@@ -158,7 +158,7 @@ struct nx842_crypto_header_group {struct nx842_crypto_header {/* New members MUST be added within the struct_group() macro below. */ - struct_group_tagged(nx842_crypto_header_hdr, hdr, + __struct_group(nx842_crypto_header_hdr, hdr, __packed, __be16 magic; /* NX842_CRYPTO_MAGIC */__be16 ignore;/* decompressed end bytes to ignore */ u8 groups;/* total groups in this header */
@@ -166,7 +166,7 @@ struct nx842_crypto_header {struct nx842_crypto_header_group group[]; } __packed;static_assert (offsetof(struct nx842_crypto_header , group) ==sizeof (struct nx842_crypto_header_hdr ), -"struct member likely outside of struct_group_tagged()" ); +"struct member likely outside of __struct_group()" );#define NX842_CRYPTO_GROUP_MAX (0x20)
drivers/crypto/talitos.c +166 -88
421 lines not on this page · raw message
drivers/firmware/google/framebuffer-coreboot.c +1 -11
@@ -53,7 +53,7 @@ static int framebuffer_probe(struct coreboot_device *dev)return -ENODEV ;memset (&res,0 ,sizeof (res)); - res.flags =IORESOURCE_MEM |IORESOURCE_BUSY ; + res.flags =IORESOURCE_MEM ; res.name ="Coreboot Framebuffer" ; res.start = fb->physical_address; length =PAGE_ALIGN (fb->y_resolution * fb->bytes_per_line);
@@ -67,19 +67,10 @@ static int framebuffer_probe(struct coreboot_device *dev) sizeof(pdata));if (IS_ERR (pdev))pr_warn ("coreboot: could not register framebuffer\n" ); -else -dev_set_drvdata (&dev->dev, pdev);return PTR_ERR_OR_ZERO (pdev); } -static void framebuffer_remove (struct coreboot_device *dev) -{ -struct platform_device *pdev =dev_get_drvdata (&dev->dev); - -platform_device_unregister (pdev); -} -static const struct coreboot_device_id framebuffer_ids[] = { { .tag =CB_TAG_FRAMEBUFFER }, {/* sentinel */ }
@@ -88,7 +79,6 @@ MODULE_DEVICE_TABLE(coreboot, framebuffer_ids);static struct coreboot_driver framebuffer_driver = { .probe = framebuffer_probe, - .remove = framebuffer_remove, .drv = { .name ="framebuffer" , },
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c +20 -23
69 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +3 -0
@@ -75,6 +75,9 @@ static int amdgpu_ttm_init_on_chip(struct amdgpu_device *adev, unsigned int type, uint64_t size_in_page) { +if (!size_in_page) +return 0 ; +return ttm_range_man_init (&adev->mman.bdev, type, false, size_in_page); }
drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c +46 -6
76 lines not on this page · raw message
drivers/gpu/drm/nouveau/nouveau_drm.c +1 -1
@@ -853,7 +853,7 @@ static int nouveau_drm_probe(struct pci_dev *pdev,/* Remove conflicting drivers (vesafb, efifb etc). */ ret =drm_aperture_remove_conflicting_pci_framebuffers (pdev, &driver_pci);if (ret) -return ret; + goto fail_nvkm;pci_set_master (pdev);
drivers/gpu/drm/nouveau/nouveau_gem.c +1 -1
@@ -686,7 +686,7 @@ nouveau_gem_pushbuf_reloc_apply(struct nouveau_cli *cli, } nvbo = (void *)(unsigned long )bo[r->reloc_bo_index].user_priv; -if (unlikely (r->reloc_bo_offset +4 > +if (unlikely ((u64 )r->reloc_bo_offset +4 > nvbo->bo.base.size)) {NV_PRINTK (err, cli,"reloc outside of bo\n" ); ret = -EINVAL ;
drivers/gpu/drm/tiny/arcpgu.c +2 -1
@@ -248,7 +248,8 @@ DEFINE_DRM_GEM_DMA_FOPS(arcpgu_drm_ops);static int arcpgu_load (struct arcpgu_drm_private *arcpgu) {struct platform_device *pdev =to_platform_device (arcpgu->drm.dev); -struct device_node *encoder_node =NULL , *endpoint_node =NULL ; + struct device_node *encoder_node __free(device_node) = NULL; +struct device_node *endpoint_node =NULL ;struct drm_connector *connector =NULL ;struct drm_device *drm = &arcpgu->drm;struct resource *res;
drivers/greybus/gb-beagleplay.c +96 -16
145 lines not on this page · raw message
drivers/hid/hid-apple.c +2 -0
@@ -832,6 +832,7 @@ static int apple_backlight_init(struct hid_device *hdev) asc->backlight->cdev.name ="apple::kbd_backlight" ; asc->backlight->cdev.max_brightness = rep->backlight_on_max; asc->backlight->cdev.brightness_set_blocking = apple_backlight_led_set; + asc->backlight->cdev.flags =LED_CORE_SUSPENDRESUME ; ret =apple_backlight_set (hdev,0 ,0 );if (ret <0 ) {
@@ -900,6 +901,7 @@ static int apple_magic_backlight_init(struct hid_device *hdev) backlight->cdev.name =":white:" LED_FUNCTION_KBD_BACKLIGHT ; backlight->cdev.max_brightness = backlight->brightness->field[0 ]->logical_maximum; backlight->cdev.brightness_set_blocking = apple_magic_backlight_led_set; + backlight->cdev.flags =LED_CORE_SUSPENDRESUME ;apple_magic_backlight_set (backlight,0 ,0 );
drivers/hwmon/powerz.c +9 -2
@@ -112,6 +112,7 @@ static void powerz_usb_cmd_complete(struct urb *urb)static int powerz_read_data (struct usb_device *udev,struct powerz_priv *priv) { +long rc;int ret;if (!priv->urb)
@@ -133,8 +134,14 @@ static int powerz_read_data(struct usb_device *udev, struct powerz_priv *priv)if (ret)return ret; -if (!wait_for_completion_interruptible_timeout - (&priv->completion,msecs_to_jiffies (5 ))) { + rc =wait_for_completion_interruptible_timeout (&priv->completion, +msecs_to_jiffies (5 )); +if (rc <0 ) { +usb_kill_urb (priv->urb); +return rc; + } + +if (rc ==0 ) {usb_kill_urb (priv->urb);return -EIO ; }
drivers/hwmon/pt5161l.c +2 -2
@@ -124,7 +124,7 @@ static int pt5161l_read_block_data(struct pt5161l_data *data, u32 address,int ret, tries;u8 remain_len = len;u8 curr_len; -u8 wbuf[16 ], rbuf[24 ]; +u8 wbuf[16 ], rbuf[I2C_SMBUS_BLOCK_MAX ];u8 cmd =0x08 ;/* [7]:pec_en, [4:2]:func, [1]:start, [0]:end */ u8 config =0x00 ;/* [6]:cfg_type, [4:1]:burst_len, [0]:address bit16 */
@@ -154,7 +154,7 @@ static int pt5161l_read_block_data(struct pt5161l_data *data, u32 address,break ; }if (tries >=3 ) -return ret; +return ret <0 ? ret : -EIO ;memcpy (val, rbuf, curr_len); val += curr_len;
drivers/i2c/i2c-core-of.c +1 -1
@@ -182,7 +182,7 @@ static int of_i2c_notify(struct notifier_block *nb, unsigned long action,* Clear the flag before adding the device so that fw_devlink * doesn't skip adding consumers to this device. */ - rd->dn->fwnode.flags &= ~FWNODE_FLAG_NOT_DEVICE ; +fwnode_clear_flag (&rd->dn->fwnode,FWNODE_FLAG_NOT_DEVICE ); client =of_i2c_register_device (adap, rd->dn);if (IS_ERR (client)) { dev_err(&adap->dev, "failed to create client for '%pOF'\n",
drivers/iio/adc/ad7768-1.c +7 -2
@@ -241,12 +241,17 @@ static int ad7768_scan_direct(struct iio_dev *indio_dev)struct ad7768_state *st =iio_priv (indio_dev);int readval, ret; -reinit_completion (&st->completion); - ret =ad7768_set_mode (st,AD7768_ONE_SHOT );if (ret <0 )return ret; +reinit_completion (&st->completion); + +/* One-shot mode requires a SYNC pulse to generate a new sample */ + ret =ad7768_send_sync_pulse (st); +if (ret) +return ret; + ret =wait_for_completion_timeout (&st->completion,msecs_to_jiffies (1000 ));if (!ret)
drivers/iio/adc/ti-ads7950.c +5 -6
@@ -47,8 +47,6 @@#define TI_ADS7950_MAX_CHAN 16#define TI_ADS7950_NUM_GPIOS 4 -#define TI_ADS7950_TIMESTAMP_SIZE (sizeof(int64_t) / sizeof(__be16)) -/* val = value, dec = left shift, bits = number of bits of the mask */ #define TI_ADS7950_EXTRACT (val, dec, bits) \ (((val) >> (dec)) & ((1 << (bits)) - 1))
@@ -105,8 +103,7 @@ struct ti_ads7950_state {* DMA (thus cache coherency maintenance) may require the * transfer buffers to live in their own cache lines. */ -u16 rx_buf[TI_ADS7950_MAX_CHAN +2 +TI_ADS7950_TIMESTAMP_SIZE ] -__aligned(IIO_DMA_MINALIGN) ; +u16 rx_buf[TI_ADS7950_MAX_CHAN +2 ]__aligned(IIO_DMA_MINALIGN) ;u16 tx_buf[TI_ADS7950_MAX_CHAN +2 ];u16 single_tx;u16 single_rx;
@@ -313,8 +310,10 @@ static irqreturn_t ti_ads7950_trigger_handler(int irq, void *p)if (ret <0 ) goto out; -iio_push_to_buffers_with_timestamp (indio_dev, &st->rx_buf[2 ], -iio_get_time_ns (indio_dev)); +iio_push_to_buffers_with_ts_unaligned (indio_dev, &st->rx_buf[2 ], +sizeof (*st->rx_buf) * +TI_ADS7950_MAX_CHAN , +iio_get_time_ns (indio_dev)); out:mutex_unlock (&st->slock);
drivers/iio/frequency/admv1013.c +50 -40
152 lines not on this page · raw message
drivers/infiniband/core/addr.c +3 -0
@@ -321,11 +321,14 @@ static int dst_fetch_ha(const struct dst_entry *dst,if (!n)return -ENODATA ; +read_lock_bh (&n->lock);if (!(n->nud_state &NUD_VALID )) { +read_unlock_bh (&n->lock);neigh_event_send (n,NULL ); ret = -ENODATA ; }else {neigh_ha_snapshot (dev_addr->dst_dev_addr, n, dst->dev); +read_unlock_bh (&n->lock); }neigh_release (n);
drivers/infiniband/hw/mana/qp.c +15 -0
@@ -601,6 +601,21 @@ static int mana_ib_destroy_qp_rss(struct mana_ib_qp *qp, ndev =mana_ib_get_netdev (qp->ibqp.device, qp->port); mpc =netdev_priv (ndev); +/* Disable vPort RX steering before destroying RX WQ objects. +* Otherwise firmware still routes traffic to the destroyed queues, +* which can cause bogus completions on reused CQ IDs when the +* ethernet driver later creates new queues on mana_open(). +* +* Unlike the ethernet teardown path, mana_fence_rqs() cannot be +* used here because the fence completion CQE is delivered on the +* CQ which is polled by userspace (e.g. DPDK), so there is no way +* for the kernel to wait for fence completion. +* +* This is best effort — if it fails there is not much we can do, +* and mana_cfg_vport_steering() already logs the error. +*/ +mana_disable_vport_rx (mpc); +for (i =0 ; i < (1 << ind_tbl->log_ind_tbl_size); i++) { ibwq = ind_tbl->ind_tbl[i]; wq = container_of(ibwq, struct mana_ib_wq, ibwq);
drivers/infiniband/sw/rxe/rxe_recv.c +2 -1
@@ -330,7 +330,8 @@ void rxe_rcv(struct sk_buff *skb) pkt->qp =NULL ; pkt->mask |= rxe_opcode[pkt->opcode].mask; -if (unlikely (skb->len <header_size (pkt))) +if (unlikely (pkt->paylen <header_size (pkt) +bth_pad (pkt) + +RXE_ICRC_SIZE )) goto drop; err =hdr_check (pkt);
drivers/leds/rgb/leds-qcom-lpg.c +6 -1
@@ -1272,7 +1272,12 @@ static int lpg_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm,return ret;if (chan->subtype ==LPG_SUBTYPE_HI_RES_PWM ) { - refclk = lpg_clk_rates_hi_res[FIELD_GET (PWM_CLK_SELECT_HI_RES_MASK , val)]; +unsigned int clk_idx =FIELD_GET (PWM_CLK_SELECT_HI_RES_MASK , val); + +if (clk_idx >=ARRAY_SIZE (lpg_clk_rates_hi_res)) +return -EINVAL ; + + refclk = lpg_clk_rates_hi_res[clk_idx]; resolution = lpg_pwm_resolution_hi_res[FIELD_GET (PWM_SIZE_HI_RES_MASK , val)]; }else { refclk = lpg_clk_rates[FIELD_GET (PWM_CLK_SELECT_MASK , val)];
drivers/md/dm-raid1.c +3 -3
@@ -993,13 +993,13 @@ static struct dm_dirty_log *create_dirty_log(struct dm_target *ti,return NULL ; } - *args_used =2 + param_count; - -if (argc < *args_used) { +if (param_count > argc -2 ) { ti->error ="Insufficient mirror log arguments" ;return NULL ; } + *args_used =2 + param_count; + dl =dm_dirty_log_create (argv[0 ], ti, mirror_flush, param_count, argv +2 );if (!dl) {
drivers/md/raid10.c +2 -2
@@ -1182,7 +1182,7 @@ static void raid10_read_request(struct mddev *mddev, struct bio *bio, }if (!regular_request_wait (mddev, conf, bio, r10_bio->sectors)) { -raid_end_bio_io (r10_bio); +free_r10bio (r10_bio);return ; }
@@ -1381,7 +1381,7 @@ static void raid10_write_request(struct mddev *mddev, struct bio *bio, sectors = r10_bio->sectors;if (!regular_request_wait (mddev, conf, bio, sectors)) { -raid_end_bio_io (r10_bio); +free_r10bio (r10_bio);return ; }
drivers/md/raid5-cache.c +33 -15
103 lines not on this page · raw message
drivers/md/raid5.c +7 -1
@@ -6625,7 +6625,13 @@ static int retry_aligned_read(struct r5conf *conf, struct bio *raid_bio, }if (!add_stripe_bio (sh, raid_bio, dd_idx,0 ,0 )) { -raid5_release_stripe (sh); +int hash; + +spin_lock_irq (&conf->device_lock); + hash = sh->hash_lock_index; +__release_stripe (conf, sh, + &conf->temp_inactive_list[hash]); +spin_unlock_irq (&conf->device_lock); conf->retry_read_aligned = raid_bio; conf->retry_read_offset = scnt;return handled;
drivers/media/i2c/imx219.c +3 -0
@@ -1176,6 +1176,9 @@ static int imx219_probe(struct i2c_client *client)/* Request optional enable pin */ imx219->reset_gpio =devm_gpiod_get_optional (dev,"reset" ,GPIOD_OUT_HIGH ); +if (IS_ERR (imx219->reset_gpio)) +return dev_err_probe (dev,PTR_ERR (imx219->reset_gpio), +"failed to get reset gpio\n" );/* * The sensor must be powered for imx219_identify_module()
drivers/media/platform/amphion/vpu_v4l2.c +3 -6
@@ -448,17 +448,14 @@ static void vpu_m2m_device_run(void *priv) { } -static void vpu_m2m_job_abort (void *priv) +static int vpu_m2m_job_ready (void *priv) { -struct vpu_inst *inst = priv; -struct v4l2_m2m_ctx *m2m_ctx = inst->fh.m2m_ctx; - -v4l2_m2m_job_finish (m2m_ctx->m2m_dev, m2m_ctx); +return 0 ; }static const struct v4l2_m2m_ops vpu_m2m_ops = { .device_run = vpu_m2m_device_run, - .job_abort = vpu_m2m_job_abort + .job_ready = vpu_m2m_job_ready, }; static int vpu_vb2_queue_setup(struct vb2_queue *vq,
drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c +1 -0
@@ -1213,6 +1213,7 @@ static int mtk_jpeg_release(struct file *file)struct mtk_jpeg_dev *jpeg =video_drvdata (file);struct mtk_jpeg_ctx *ctx =mtk_jpeg_fh_to_ctx (file->private_data); +cancel_work_sync (&ctx->jpeg_work);mutex_lock (&jpeg->lock);v4l2_m2m_ctx_release (ctx->fh.m2m_ctx);v4l2_ctrl_handler_free (&ctx->ctrl_hdl);
drivers/media/rc/igorplugusb.c +11 -5
@@ -34,7 +34,7 @@ struct igorplugusb {struct device *dev;struct urb *urb; -struct usb_ctrlrequest request; +struct usb_ctrlrequest *request;struct timer_list timer;
@@ -122,7 +122,7 @@ static void igorplugusb_cmd(struct igorplugusb *ir, int cmd) {int ret; - ir->request.bRequest = cmd; + ir->request->bRequest = cmd; ir->urb->transfer_flags =0 ; ret =usb_submit_urb (ir->urb,GFP_ATOMIC );if (ret && ret != -EPERM )
@@ -164,13 +164,17 @@ static int igorplugusb_probe(struct usb_interface *intf,if (!ir)return -ENOMEM ; + ir->request =kzalloc (sizeof (*ir->request),GFP_KERNEL ); +if (!ir->request) + goto fail; + ir->dev = &intf->dev;timer_setup (&ir->timer, igorplugusb_timer,0 ); - ir->request.bRequest =GET_INFRACODE ; - ir->request.bRequestType =USB_TYPE_VENDOR |USB_DIR_IN ; - ir->request.wLength =cpu_to_le16 (MAX_PACKET ); + ir->request->bRequest =GET_INFRACODE ; + ir->request->bRequestType =USB_TYPE_VENDOR |USB_DIR_IN ; + ir->request->wLength =cpu_to_le16 (MAX_PACKET ); ir->urb =usb_alloc_urb (0 ,GFP_KERNEL );if (!ir->urb)
@@ -228,6 +232,7 @@ static int igorplugusb_probe(struct usb_interface *intf,usb_free_urb (ir->urb);rc_free_device (ir->rc);kfree (ir->buf_in); +kfree (ir->request);return ret; }
@@ -243,6 +248,7 @@ static void igorplugusb_disconnect(struct usb_interface *intf)usb_unpoison_urb (ir->urb);usb_free_urb (ir->urb);kfree (ir->buf_in); +kfree (ir->request); }static const struct usb_device_id igorplugusb_table[] = {
drivers/media/rc/ttusbir.c +9 -4
@@ -32,7 +32,7 @@ struct ttusbir {struct led_classdev led;struct urb *bulk_urb; -uint8_t bulk_buffer[5 ]; +u8 *bulk_buffer;int bulk_out_endp, iso_in_endp;bool led_on, is_led_on;atomic_t led_complete;
@@ -186,13 +186,16 @@ static int ttusbir_probe(struct usb_interface *intf,struct rc_dev *rc;int i, j, ret;int altsetting =-1 ; +u8 *buffer; tt =kzalloc (sizeof (*tt),GFP_KERNEL ); + buffer =kzalloc (5 ,GFP_KERNEL ); rc =rc_allocate_device (RC_DRIVER_IR_RAW ); -if (!tt || !rc) { +if (!tt || !rc || buffer) { ret = -ENOMEM ; goto out; } + tt->bulk_buffer = buffer;/* find the correct alt setting */ for (i =0 ; i < intf->num_altsetting && altsetting ==-1 ; i++) {
@@ -281,8 +284,8 @@ static int ttusbir_probe(struct usb_interface *intf, tt->bulk_buffer[3 ] =0x01 ;usb_fill_bulk_urb (tt->bulk_urb, tt->udev,usb_sndbulkpipe (tt->udev, - tt->bulk_out_endp), tt->bulk_buffer,sizeof (tt->bulk_buffer), - ttusbir_bulk_complete, tt); + tt->bulk_out_endp), tt->bulk_buffer,5 , + ttusbir_bulk_complete, tt); tt->led.name ="ttusbir:green:power" ; tt->led.default_trigger ="rc-feedback" ;
@@ -351,6 +354,7 @@ static int ttusbir_probe(struct usb_interface *intf,kfree (tt); }rc_free_device (rc); +kfree (buffer);return ret; }
@@ -373,6 +377,7 @@ static void ttusbir_disconnect(struct usb_interface *intf) }usb_kill_urb (tt->bulk_urb);usb_free_urb (tt->bulk_urb); +kfree (tt->bulk_buffer);usb_set_intfdata (intf,NULL );kfree (tt); }
drivers/mfd/mfd-core.c +11 -1
@@ -88,7 +88,17 @@ static void mfd_acpi_add_device(const struct mfd_cell *cell, } } -device_set_node (&pdev->dev,acpi_fwnode_handle (adev ?: parent)); +/* +* NOTE: The fwnode design doesn't allow proper stacking/sharing. This +* should eventually turn into a device fwnode API call that will allow +* prepending to a list of fwnodes (with ACPI taking precedence). +* +* set_primary_fwnode() is used here, instead of device_set_node(), as +* device_set_node() will overwrite the existing fwnode, which may be an +* OF node that was populated earlier. To support a use case where ACPI +* and OF is used in conjunction, we call set_primary_fwnode() instead. +*/ +set_primary_fwnode (&pdev->dev,acpi_fwnode_handle (adev ?: parent)); }#else static inline void mfd_acpi_add_device(const struct mfd_cell *cell,
drivers/mfd/stpmic1.c +18 -2
@@ -16,6 +16,8 @@#include <dt-bindings/mfd/st,stpmic1.h> +#define STPMIC1_MAX_RETRIES 2 +#define STPMIC1_MAIN_IRQ 0static const struct regmap_range stpmic1_readable_ranges[] = {
@@ -121,9 +123,23 @@ static const struct regmap_irq_chip stpmic1_regmap_irq_chip = {static int stpmic1_power_off (struct sys_off_data *data) {struct stpmic1 *ddata = data->cb_data; +int ret; + +/* +* Attempt to shut down again, in case the first attempt failed. +* The STPMIC1 might get confused and the first regmap_update_bits() +* returns with -ETIMEDOUT / -110 . If that or similar transient +* failure occurs, try to shut down again. If the second attempt +* fails, there is some bigger problem, report it to user. +*/ +for (int retries =0 ; retries <STPMIC1_MAX_RETRIES ; retries++) { + ret =regmap_update_bits (ddata->regmap,MAIN_CR ,SOFTWARE_SWITCH_OFF , +SOFTWARE_SWITCH_OFF ); +if (!ret) +return NOTIFY_DONE ; + } -regmap_update_bits (ddata->regmap,MAIN_CR , -SOFTWARE_SWITCH_OFF ,SOFTWARE_SWITCH_OFF ); +dev_err (ddata->dev,"Failed to access PMIC I2C bus (%d)\n" , ret);return NOTIFY_DONE ; }
drivers/misc/ibmasm/ibmasmfs.c +7 -0
@@ -303,6 +303,8 @@ static ssize_t command_file_write(struct file *file, const char __user *ubuff, sreturn -EINVAL ;if (count ==0 || count >IBMASM_CMD_MAX_BUFFER_SIZE )return 0 ; +if (count <sizeof (struct dot_command_header )) +return -EINVAL ;if (*offset !=0 )return 0 ;
@@ -319,6 +321,11 @@ static ssize_t command_file_write(struct file *file, const char __user *ubuff, sreturn -EFAULT ; } +if (count <get_dot_command_size (cmd->buffer)) { +command_put (cmd); +return -EINVAL ; + } +spin_lock_irqsave (&command_data->sp->lock, flags);if (command_data->command) {spin_unlock_irqrestore (&command_data->sp->lock, flags);
drivers/misc/ibmasm/lowlevel.c +8 -4
@@ -19,17 +19,21 @@ static struct i2o_header header = I2O_HEADER_TEMPLATE;int ibmasm_send_i2o_message (struct service_processor *sp) {u32 mfa; -unsigned int command_size; +size_t command_size;struct i2o_message *message;struct command *command = sp->current_command; + command_size =get_dot_command_size (command->buffer); +if (command_size > command->buffer_size) +return 1 ; +if (command_size >I2O_COMMAND_SIZE ) + command_size =I2O_COMMAND_SIZE ; + mfa =get_mfa_inbound (sp->base_address);if (!mfa)return 1 ; - command_size =get_dot_command_size (command->buffer); - header.message_size =outgoing_message_size (command_size); - + header.message_size =outgoing_message_size ((unsigned int )command_size); message =get_i2o_message (sp->base_address, mfa);memcpy_toio (&message->header, &header,sizeof (struct i2o_header ));
drivers/misc/ibmasm/remote.c +5 -0
@@ -177,6 +177,11 @@ void ibmasm_handle_mouse_interrupt(struct service_processor *sp) writer =get_queue_writer (sp);while (reader != writer) { +if (reader >=REMOTE_QUEUE_SIZE || writer >=REMOTE_QUEUE_SIZE ) { +set_queue_reader (sp,0 ); +break ; + } +memcpy_fromio (&input,get_queue_entry (sp, reader),sizeof (struct remote_input ));
drivers/mmc/core/block.c +10 -2
@@ -1440,6 +1440,9 @@ static void mmc_blk_data_prep(struct mmc_queue *mq, struct mmc_queue_req *mqrq,rq_data_dir (req) ==WRITE && (md->flags &MMC_BLK_REL_WR ); +if (mqrq->flags &MQRQ_XFER_SINGLE_BLOCK ) + recovery_mode =1 ; +memset (brq,0 ,sizeof (struct mmc_blk_request ));mmc_crypto_prepare_req (mqrq);
@@ -1579,10 +1582,13 @@ static void mmc_blk_cqe_complete_rq(struct mmc_queue *mq, struct request *req) err =0 ;if (err) { -if (mqrq->retries++ <MMC_CQE_RETRIES ) +if (mqrq->retries++ <MMC_CQE_RETRIES ) { +if (rq_data_dir (req) ==WRITE ) + mqrq->flags |=MQRQ_XFER_SINGLE_BLOCK ;blk_mq_requeue_request (req, true); -else + }else {blk_mq_end_request (req,BLK_STS_IOERR ); + } }else if (mrq->data) {if (blk_update_request (req,BLK_STS_OK , mrq->data->bytes_xfered))blk_mq_requeue_request (req, true);
@@ -2120,6 +2126,8 @@ static void mmc_blk_mq_complete_rq(struct mmc_queue *mq, struct request *req) }else if (!blk_rq_bytes (req)) {__blk_mq_end_request (req,BLK_STS_IOERR ); }else if (mqrq->retries++ <MMC_MAX_RETRIES ) { +if (rq_data_dir (req) ==WRITE ) + mqrq->flags |=MQRQ_XFER_SINGLE_BLOCK ;blk_mq_requeue_request (req, true); }else {if (mmc_card_removed (mq->card))
drivers/mmc/core/queue.h +3 -0
@@ -61,6 +61,8 @@ enum mmc_drv_op { MMC_DRV_OP_GET_EXT_CSD, }; +#define MQRQ_XFER_SINGLE_BLOCK BIT(0) +struct mmc_queue_req {struct mmc_blk_request brq;struct scatterlist *sg;
@@ -69,6 +71,7 @@ struct mmc_queue_req {void *drv_op_data;unsigned int ioc_count;int retries; +u32 flags; };struct mmc_queue {
drivers/mmc/host/sdhci-of-dwcmshc.c +16 -3
@@ -649,12 +649,15 @@ static void dwcmshc_rk3568_set_clock(struct sdhci_host *host, unsigned int clock extra &= ~BIT (0 );sdhci_writel (host, extra, reg); +/* Disable clock while config DLL */ +sdhci_writew (host,0 ,SDHCI_CLOCK_CONTROL ); +if (clock <=52000000 ) {if (host->mmc->ios.timing ==MMC_TIMING_MMC_HS200 || host->mmc->ios.timing ==MMC_TIMING_MMC_HS400 ) {dev_err (mmc_dev (host->mmc),"Can't reduce the clock below 52MHz in HS200/HS400 mode" ); -return ; + goto enable_clk; }/*
@@ -674,7 +677,7 @@ static void dwcmshc_rk3568_set_clock(struct sdhci_host *host, unsigned int clockDLL_STRBIN_DELAY_NUM_SEL |DLL_STRBIN_DELAY_NUM_DEFAULT <<DLL_STRBIN_DELAY_NUM_OFFSET ;sdhci_writel (host, extra,DWCMSHC_EMMC_DLL_STRBIN ); -return ; + goto enable_clk; }/* Reset DLL */
@@ -701,7 +704,7 @@ static void dwcmshc_rk3568_set_clock(struct sdhci_host *host, unsigned int clock 500 * USEC_PER_MSEC);if (err) {dev_err (mmc_dev (host->mmc),"DLL lock timeout!\n" ); -return ; + goto enable_clk; } extra = 0x1 << 16 | /* tune clock stop en */
@@ -734,6 +737,16 @@ static void dwcmshc_rk3568_set_clock(struct sdhci_host *host, unsigned int clockDLL_STRBIN_TAPNUM_DEFAULT |DLL_STRBIN_TAPNUM_FROM_SW ;sdhci_writel (host, extra,DWCMSHC_EMMC_DLL_STRBIN ); + +enable_clk: +/* +* The sdclk frequency select bits in SDHCI_CLOCK_CONTROL are not functional +* on Rockchip's SDHCI implementation. Instead, the clock frequency is fully +* controlled via external clk provider by calling clk_set_rate(). Consequently, +* passing 0 to sdhci_enable_clk() only re-enables the already-configured clock, +* which matches the hardware's actual behavior. +*/ +sdhci_enable_clk (host,0 ); }static void rk35xx_sdhci_reset (struct sdhci_host *host,u8 mask)
drivers/mtd/devices/docg3.c +1 -2
@@ -2049,7 +2049,6 @@ static int __init docg3_probe(struct platform_device *pdev)static void docg3_release (struct platform_device *pdev) {struct docg3_cascade *cascade =platform_get_drvdata (pdev); -struct docg3 *docg3 = cascade->floors[0 ]->priv;int floor;doc_unregister_sysfs (pdev, cascade);
@@ -2057,7 +2056,7 @@ static void docg3_release(struct platform_device *pdev)if (cascade->floors[floor])doc_release_device (cascade->floors[floor]); -bch_free (docg3->cascade->bch); +bch_free (cascade->bch); }#ifdef CONFIG_OF
drivers/mtd/spi-nor/sst.c +13 -0
@@ -203,6 +203,8 @@ static int sst_nor_write(struct mtd_info *mtd, loff_t to, size_t len,/* Start write from odd address. */ if (to %2 ) { +bool needs_write_enable = (len >1 ); +/* write one byte. */ ret =sst_nor_write_data (nor, to,1 , buf);if (ret <0 )
@@ -210,6 +212,17 @@ static int sst_nor_write(struct mtd_info *mtd, loff_t to, size_t len, to++; actual++; + +/* +* Byte program clears the write enable latch. If more +* data needs to be written using the AAI sequence, +* re-enable writes. +*/ +if (needs_write_enable) { + ret =spi_nor_write_enable (nor); +if (ret) + goto out; + } }/* Write out most of the data here. */
drivers/net/bonding/bond_main.c +8 -4
@@ -5322,18 +5322,22 @@ static netdev_tx_t bond_xmit_broadcast(struct sk_buff *skb, struct net_device *bond_dev) {struct bonding *bond =netdev_priv (bond_dev); -struct slave *slave =NULL ; -struct list_head *iter; +struct bond_up_slave *slaves;bool xmit_suc = false;bool skb_used = false; +int slaves_count, i; -bond_for_each_slave_rcu (bond, slave, iter) { + slaves =rcu_dereference (bond->all_slaves); + + slaves_count = slaves ?READ_ONCE (slaves->count) :0 ; +for (i =0 ; i < slaves_count; i++) { +struct slave *slave = slaves->arr[i];struct sk_buff *skb2;if (!(bond_slave_is_up (slave) && slave->link ==BOND_LINK_UP ))continue ; -if (bond_is_last_slave (bond, slave)) { +if (i +1 == slaves_count) { skb2 = skb; skb_used = true; }else {
drivers/net/can/usb/ucan.c +1 -1
@@ -1399,7 +1399,7 @@ static int ucan_probe(struct usb_interface *intf,*/ /* Prepare Memory for control transfers */ - ctl_msg_buffer =devm_kzalloc (&udev->dev, + ctl_msg_buffer =devm_kzalloc (&intf->dev,sizeof (union ucan_ctl_payload ),GFP_KERNEL );if (!ctl_msg_buffer) {
drivers/net/ethernet/micrel/ks8851.h +2 -4
@@ -408,10 +408,8 @@ struct ks8851_net {struct gpio_desc *gpio;struct mii_bus *mii_bus; -void (*lock)(struct ks8851_net *ks, -unsigned long *flags); -void (*unlock)(struct ks8851_net *ks, -unsigned long *flags); +void (*lock)(struct ks8851_net *ks); +void (*unlock)(struct ks8851_net *ks);unsigned int (*rdreg16)(struct ks8851_net *ks,unsigned int reg); void (*wrreg16)(struct ks8851_net *ks,
drivers/net/ethernet/micrel/ks8851_common.c +30 -39
250 lines not on this page · raw message
drivers/net/ethernet/micrel/ks8851_par.c +6 -9
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/micrel/ks8851_spi.c +4 -7
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/microsoft/mana/mana_en.c +10 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/wangxun/txgbe/txgbe_main.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/marvell/mwifiex/init.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/mediatek/mt76/mt792x_regs.h +4 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/mediatek/mt76/mt792x_usb.c +43 -8
51 lines not on this page · raw message
drivers/net/wireless/realtek/rtl8xxxu/core.c +8 -20
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtw88/pci.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/pci/endpoint/functions/pci-epf-mhi.c +4 -0
Lines of this file are not shown. View the raw message.
drivers/pci/endpoint/functions/pci-epf-ntb.c +2 -54
56 lines not on this page · raw message
drivers/remoteproc/xlnx_r5_remoteproc.c +11 -9
Lines of this file are not shown. View the raw message.
drivers/spi/spi.c +38 -25
63 lines not on this page · raw message
drivers/usb/chipidea/core.c +23 -22
45 lines not on this page · raw message
fs/ocfs2/aops.c +45 -29
74 lines not on this page · raw message
fs/smb/client/cifsacl.c +85 -31
116 lines not on this page · raw message
include/linux/device.h +45 -0
45 lines not on this page · raw message
include/linux/fwnode.h +33 -11
44 lines not on this page · raw message
kernel/padata.c +37 -99
136 lines not on this page · raw message
lib/test_hmm.c +49 -37
86 lines not on this page · raw message
mm/migrate.c +88 -64
152 lines not on this page · raw message
net/qrtr/ns.c +76 -10
86 lines not on this page · raw message
net/rxrpc/rxkad.c +49 -63
112 lines not on this page · raw message
sound/aoa/codecs/onyx.c +32 -72
104 lines not on this page · raw message
sound/aoa/codecs/tas.c +39 -74
113 lines not on this page · raw message
sound/aoa/soundbus/i2sbus/pcm.c +72 -71
143 lines not on this page · raw message
sound/usb/caiaq/control.c +36 -16
52 lines not on this page · raw message
tools/accounting/getdelays.c +37 -4
41 lines not on this page · raw message
tools/perf/arch/loongarch/annotate/instructions.c +1 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/landlock/net_test.c +1 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/mqueue/setting deleted +0 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/mqueue/settings new file +1 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.