Linux 6.1.184
Greg Kroah-Hartman
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 6 PATCHLEVEL = 1 -SUBLEVEL = 183 +SUBLEVEL = 184 EXTRAVERSION = NAME = Curry Ramen
arch/arm64/boot/dts/nvidia/tegra194.dtsi +2 -0
@@ -3166,6 +3166,8 @@ timer { <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, <GIC_PPI 10 + (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 15 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; interrupt-parent = <&gic>; always-on;
arch/arm64/kvm/arm.c +1 -1
@@ -891,7 +891,7 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu)vcpu_load (vcpu); -if (run->immediate_exit) { +if (!vcpu->wants_to_run) { ret = -EINTR ; goto out; }
arch/mips/kvm/mips.c +1 -1
@@ -446,7 +446,7 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu) vcpu->mmio_needed =0 ; } -if (vcpu->run->immediate_exit) +if (!vcpu->wants_to_run) goto out;lose_fpu (1 );
arch/openrisc/include/asm/processor.h +2 -0
@@ -26,6 +26,8 @@ | SPR_SR_DCE | SPR_SR_SM)#define USER_SR (SPR_SR_DME | SPR_SR_IME | SPR_SR_ICE \ | SPR_SR_DCE | SPR_SR_IEE | SPR_SR_TEE) +/* SR bits user space may change via sigreturn, the rest stay kernel owned */ +#define SPR_SR_USER_MASK (SPR_SR_F | SPR_SR_CY | SPR_SR_OV)/* * User space process size. This is hardcoded into a few places,
arch/openrisc/kernel/signal.c +3 -2
@@ -37,6 +37,7 @@ struct rt_sigframe {static int restore_sigcontext (struct pt_regs *regs,struct sigcontext __user *sc) { +unsigned long old_sr = regs->sr;int err =0 ;/* Always make any pending restarted system calls return -EINTR */
@@ -51,8 +52,8 @@ static int restore_sigcontext(struct pt_regs *regs, err |=__copy_from_user (®s->pc, &sc->regs.pc,sizeof (unsigned long )); err |=__copy_from_user (®s->sr, &sc->regs.sr,sizeof (unsigned long )); -/* make sure the SM-bit is cleared so user-mode cannot fool us */ - regs->sr &= ~SPR_SR_SM ; +/* keep the privileged SR bits kernel owned, restore only user flags */ + regs->sr = (old_sr & ~SPR_SR_USER_MASK ) | (regs->sr &SPR_SR_USER_MASK ); regs->orig_gpr11 =-1 ;/* Avoid syscall restart checks */
arch/powerpc/kvm/powerpc.c +1 -1
@@ -1866,7 +1866,7 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu)kvm_sigset_activate (vcpu); -if (run->immediate_exit) +if (!vcpu->wants_to_run) r = -EINTR ;else r =kvmppc_vcpu_run (vcpu);
arch/powerpc/platforms/pseries/lparcfg.c +1 -1
@@ -729,7 +729,7 @@ static ssize_t lparcfg_write(struct file *file, const char __user * buf,if (!firmware_has_feature (FW_FEATURE_SPLPAR ))return -EINVAL ; -if (count >sizeof (kbuf)) +if (count ==0 || count >sizeof (kbuf))return -EINVAL ;if (copy_from_user (kbuf, buf, count))
arch/powerpc/platforms/pseries/pci.c +1 -1
@@ -159,7 +159,7 @@ static int pseries_pci_sriov_enable(struct pci_dev *pdev, u16 num_vfs)/* First integer stores max config */ max_config_vfs =of_read_number (&max_vfs[0 ],1 ); -if (max_config_vfs < num_vfs && num_vfs >MAX_VFS_FOR_MAP_PE ) { +if (max_config_vfs < num_vfs || num_vfs >MAX_VFS_FOR_MAP_PE ) { dev_err(&pdev->dev, "Num VFs %x > %x Configurable VFs\n", num_vfs, (num_vfs > MAX_VFS_FOR_MAP_PE) ?
arch/riscv/include/asm/pgtable-32.h +3 -0
@@ -33,4 +33,7 @@ _PAGE_WRITE | _PAGE_EXEC | \ _PAGE_USER | _PAGE_GLOBAL)) +static const __maybe_unused int pgtable_l4_enabled; +static const __maybe_unused int pgtable_l5_enabled; +#endif /* _ASM_RISCV_PGTABLE_32_H */
arch/riscv/include/asm/pgtable.h +0 -1
@@ -818,7 +818,6 @@ extern uintptr_t _dtb_early_pa;#define dtb_early_pa _dtb_early_pa#endif /* CONFIG_XIP_KERNEL */ extern u64 satp_mode; -extern bool pgtable_l4_enabled;void paging_init (void );void misc_mem_init (void );
arch/riscv/kvm/vcpu.c +1 -1
@@ -1005,7 +1005,7 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu)return ret; } -if (run->immediate_exit) { +if (!vcpu->wants_to_run) {kvm_vcpu_srcu_read_unlock (vcpu);return -EINTR ; }
arch/riscv/mm/init.c +9 -2
@@ -45,10 +45,12 @@ u64 satp_mode __ro_after_init = SATP_MODE_32;#endif EXPORT_SYMBOL (satp_mode); +#ifdef CONFIG_64BIT bool pgtable_l4_enabled =IS_ENABLED (CONFIG_64BIT ) && !IS_ENABLED (CONFIG_XIP_KERNEL );bool pgtable_l5_enabled =IS_ENABLED (CONFIG_64BIT ) && !IS_ENABLED (CONFIG_XIP_KERNEL );EXPORT_SYMBOL (pgtable_l4_enabled);EXPORT_SYMBOL (pgtable_l5_enabled); +#endif phys_addr_t phys_ram_base__ro_after_init ;EXPORT_SYMBOL (phys_ram_base);
@@ -666,8 +668,13 @@ void __init create_pgd_mapping(pgd_t *pgdp,static uintptr_t __init best_map_size (phys_addr_t base,phys_addr_t size) { -/* Upgrade to PMD_SIZE mappings whenever possible */ -if ((base & (PMD_SIZE -1 )) || (size & (PMD_SIZE -1 ))) +/* +* Upgrade to PMD_SIZE mappings whenever possible. Not on 32-bit, +* where PMD_SIZE == PGDIR_SIZE: such a mapping is a PGD leaf entry +* that __set_memory() is unable to split. +*/ +if (!IS_ENABLED (CONFIG_64BIT ) || + (base & (PMD_SIZE -1 )) || (size & (PMD_SIZE -1 )))return PAGE_SIZE ;return PMD_SIZE ;
arch/s390/include/asm/cpu_mcf.h deleted +0 -112
112 lines not on this page · raw message
arch/s390/kernel/Makefile +1 -1
@@ -70,7 +70,7 @@ obj-$(CONFIG_KEXEC_FILE) += kexec_elf.o obj-$(CONFIG_IMA_SECURE_AND_OR_TRUSTED_BOOT) += ima_arch.o -obj-$(CONFIG_PERF_EVENTS) += perf_event.o perf_cpum_cf_common.o +obj-$(CONFIG_PERF_EVENTS) += perf_event.o obj-$(CONFIG_PERF_EVENTS) += perf_cpum_cf.o perf_cpum_sf.o obj-$(CONFIG_PERF_EVENTS) += perf_cpum_cf_events.o perf_regs.o obj-$(CONFIG_PERF_EVENTS) += perf_pai_crypto.o perf_pai_ext.o
arch/s390/kernel/perf_cpum_cf.c +263 -9
357 lines not on this page · raw message
arch/s390/kernel/perf_cpum_cf_common.c deleted +0 -233
233 lines not on this page · raw message
arch/s390/kernel/perf_pai_ext.c +1 -1
@@ -16,8 +16,8 @@#include <linux/init.h> #include <linux/export.h> #include <linux/io.h> +#include <linux/perf_event.h> -#include <asm/cpu_mcf.h> #include <asm/ctl_reg.h> #include <asm/pai.h> #include <asm/debug.h>
arch/s390/kvm/kvm-s390.c +1 -1
@@ -4881,7 +4881,7 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu)if (vcpu->kvm->arch.pv.dumping)return -EINVAL ; -if (kvm_run->immediate_exit) +if (!vcpu->wants_to_run)return -EINTR ; if (kvm_run->kvm_valid_regs & ~KVM_SYNC_S390_VALID_FIELDS ||
arch/s390/kvm/pci.c +62 -24
148 lines not on this page · raw message
arch/s390/kvm/pci.h +2 -0
@@ -22,6 +22,8 @@ struct kvm_zdev {struct kvm *kvm;struct zpci_fib fib;struct list_head entry; +struct user_struct *user_account; +struct mm_struct *mm_account; };struct zpci_gaite {
arch/x86/kernel/cpu/resctrl/rdtgroup.c +7 -5
@@ -2477,10 +2477,6 @@ static void rmdir_all_sub(void)if (rdtgrp == &rdtgroup_default)continue ; -if (rdtgrp->mode ==RDT_MODE_PSEUDO_LOCKSETUP || - rdtgrp->mode ==RDT_MODE_PSEUDO_LOCKED ) -rdtgroup_pseudo_lock_remove (rdtgrp); -/* * Give any CPUs back to the default group. We cannot copy * cpu_online_mask because a CPU might have executed the
@@ -2489,7 +2485,13 @@ static void rmdir_all_sub(void)cpumask_or (&rdtgroup_default.cpu_mask, &rdtgroup_default.cpu_mask, &rdtgrp->cpu_mask); -free_rmid (rdtgrp->mon.rmid); +if (rdtgrp->mode ==RDT_MODE_PSEUDO_LOCKSETUP || + rdtgrp->mode ==RDT_MODE_PSEUDO_LOCKED ) { +rdtgroup_pseudo_lock_remove (rdtgrp); + }else { +/* Pseudo-locked group's RMID is freed during setup. */ +free_rmid (rdtgrp->mon.rmid); + }kernfs_remove (rdtgrp->kn);list_del (&rdtgrp->rdtgroup_list);
arch/x86/kvm/lapic.c +1 -1
@@ -1745,7 +1745,7 @@ static void apic_timer_expired(struct kvm_lapic *apic, bool from_timer_fn)if (apic_lvtt_tscdeadline (apic) || ktimer->hv_timer_in_use) ktimer->expired_tscdeadline = ktimer->tscdeadline; -if (!from_timer_fn && apic->apicv_active) { +if (!from_timer_fn && apic->apicv_active && vcpu->wants_to_run) {WARN_ON (kvm_get_running_vcpu () != vcpu);kvm_apic_inject_pending_timer_irqs (apic);return ;
arch/x86/kvm/svm/sev.c +25 -9
@@ -60,6 +60,8 @@ module_param_named(sev_es, sev_es_enabled, bool, 0444);static u8 sev_enc_bit;static DECLARE_RWSEM (sev_deactivate_lock);static DEFINE_MUTEX (sev_bitmap_lock); +/* Protects kvm_sev_info's enc_context_owner, mirror_vms and mirror_entry. */ +static DEFINE_MUTEX (sev_mirror_lock);unsigned int max_sev_asid;static unsigned int min_sev_asid;static unsigned long sev_me_mask;
@@ -1686,18 +1688,18 @@ static void sev_migrate_from(struct kvm *dst_kvm, struct kvm *src_kvm) dst->asid = src->asid; dst->handle = src->handle; dst->pages_locked = src->pages_locked; - dst->enc_context_owner = src->enc_context_owner; dst->es_active = src->es_active; src->asid =0 ; src->active = false; src->handle =0 ; src->pages_locked =0 ; - src->enc_context_owner =NULL ; src->es_active = false;list_cut_before (&dst->regions_list, &src->regions_list, &src->regions_list); +mutex_lock (&sev_mirror_lock); +/* * If this VM has mirrors, "transfer" each mirror's refcount of the * source to the destination (this KVM). The caller holds a reference
@@ -1714,13 +1716,16 @@ static void sev_migrate_from(struct kvm *dst_kvm, struct kvm *src_kvm)* If this VM is a mirror, remove the old mirror from the owners list * and add the new mirror to the list. */ -if (is_mirroring_enc_context (dst_kvm)) { +if (is_mirroring_enc_context (src_kvm)) {struct kvm_sev_info *owner_sev_info = - &to_kvm_svm (dst->enc_context_owner)->sev_info; + &to_kvm_svm (src->enc_context_owner)->sev_info; + dst->enc_context_owner = src->enc_context_owner; + src->enc_context_owner =NULL ;list_del (&src->mirror_entry);list_add_tail (&dst->mirror_entry, &owner_sev_info->mirror_vms); } +mutex_unlock (&sev_mirror_lock);kvm_for_each_vcpu (i, dst_vcpu, dst_kvm) { dst_svm =to_svm (dst_vcpu);
@@ -2095,12 +2100,15 @@ int sev_vm_copy_enc_context_from(struct kvm *kvm, unsigned int source_fd)* disappear until we're done with it */ source_sev = &to_kvm_svm (source_kvm)->sev_info; -kvm_get_kvm (source_kvm); mirror_sev = &to_kvm_svm (kvm)->sev_info; -list_add_tail (&mirror_sev->mirror_entry, &source_sev->mirror_vms);/* Set enc_context_owner and copy its encryption context over */ +mutex_lock (&sev_mirror_lock); +kvm_get_kvm (source_kvm); +list_add_tail (&mirror_sev->mirror_entry, &source_sev->mirror_vms); mirror_sev->enc_context_owner = source_kvm; +mutex_unlock (&sev_mirror_lock); + mirror_sev->active = true; mirror_sev->asid = source_sev->asid; mirror_sev->fd = source_sev->fd;
@@ -2137,11 +2145,19 @@ void sev_vm_destroy(struct kvm *kvm)/* If this is a mirror_kvm release the enc_context_owner and skip sev cleanup */ if (is_mirroring_enc_context (kvm)) { -struct kvm *owner_kvm = sev->enc_context_owner; +struct kvm *owner_kvm; -mutex_lock (&owner_kvm->lock); +mutex_lock (&sev_mirror_lock); + owner_kvm = sev->enc_context_owner;list_del (&sev->mirror_entry); -mutex_unlock (&owner_kvm->lock); + sev->enc_context_owner =NULL ; + +/* +* The reference to owner_kvm cannot move after sev_mirror_lock is +* released. Release it before kvm_put_kvm() so that owner_kvm is +* never destroyed inside sev_mirror_lock. +*/ +mutex_unlock (&sev_mirror_lock);kvm_put_kvm (owner_kvm);return ; }
arch/x86/kvm/svm/svm.h +1 -0
@@ -89,6 +89,7 @@ struct kvm_sev_info {unsigned long pages_locked;/* Number of pages locked */ struct list_head regions_list;/* List of registered regions */ u64 ap_jump_table;/* SEV-ES AP Jump Table address */ +/* The three fields below are protected by sev_mirror_lock */ struct kvm *enc_context_owner;/* Owner of copied encryption context */ struct list_head mirror_vms;/* List of VMs mirroring */ struct list_head mirror_entry;/* Use as a list entry of mirrors */
arch/x86/kvm/x86.c +2 -2
@@ -11264,7 +11264,7 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu)kvm_vcpu_srcu_read_lock (vcpu);if (unlikely (vcpu->arch.mp_state ==KVM_MP_STATE_UNINITIALIZED )) { -if (kvm_run->immediate_exit) { +if (!vcpu->wants_to_run) { r = -EINTR ; goto out; }
@@ -11337,7 +11337,7 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu)WARN_ON_ONCE (vcpu->mmio_needed); } -if (kvm_run->immediate_exit) { +if (!vcpu->wants_to_run) { r = -EINTR ; goto out; }
block/genhd.c +8 -4
@@ -1195,14 +1195,18 @@ static void disk_release(struct device *dev)/* * To undo the all initialization from blk_mq_init_allocated_queue in * case of a probe failure where add_disk is never called we have to -* call blk_mq_exit_queue here. We can't do this for the more common -* teardown case (yet) as the tagset can be gone by the time the disk -* is released once it was added. +* call blk_mq_exit_queue here, after stopping the timer and work items +* that I/O issued before add_disk may have left pending. We can't do +* this for the more common teardown case (yet) as the tagset can be +* gone by the time the disk is released once it was added. */ if (queue_is_mq (disk->queue) &&test_bit (GD_OWNS_QUEUE , &disk->state) && - !test_bit (GD_ADDED , &disk->state)) + !test_bit (GD_ADDED , &disk->state)) { +blk_sync_queue (disk->queue); +blk_mq_cancel_work_sync (disk->queue);blk_mq_exit_queue (disk->queue); + }blkcg_exit_disk (disk);
crypto/ccm.c +1 -1
@@ -753,7 +753,7 @@ static int crypto_rfc4309_create(struct crypto_template *tmpl, inst->alg.ivsize =8 ; inst->alg.chunksize =crypto_aead_alg_chunksize (alg); - inst->alg.maxauthsize =16 ; + inst->alg.maxauthsize =crypto_aead_alg_maxauthsize (alg); inst->alg.base.cra_ctxsize =sizeof (struct crypto_rfc4309_ctx );
drivers/ata/libata-core.c +18 -0
@@ -2598,6 +2598,24 @@ static void ata_dev_config_cpr(struct ata_device *dev)if (!nr_cpr) goto out; +/* +* The device reports the number of CPR descriptors independently of the +* log size, and that count is also used to emit VPD page B9h into the +* fixed-size rbuf. Reject a count larger than what that buffer can hold +* (ATA_DEV_MAX_CPR) or larger than the log the device actually returned. +*/ +if (nr_cpr >ATA_DEV_MAX_CPR ) { +ata_dev_warn (dev, +"Too many concurrent positioning ranges\n" ); + goto out; + } + +if (buf_len <64 + (size_t )nr_cpr *32 ) { +ata_dev_warn (dev, +"Invalid number of concurrent positioning ranges\n" ); + goto out; + } + cpr_log =kzalloc (struct_size (cpr_log, cpr, nr_cpr),GFP_KERNEL );if (!cpr_log) goto out;
drivers/ata/libata-scsi.c +0 -2
@@ -37,8 +37,6 @@#include "libata.h" #include "libata-transport.h" -#define ATA_SCSI_RBUF_SIZE 576 -static DEFINE_SPINLOCK (ata_scsi_rbuf_lock);static u8 ata_scsi_rbuf[ATA_SCSI_RBUF_SIZE ];
drivers/ata/libata.h +9 -0
@@ -112,6 +112,15 @@ static inline void ata_acpi_bind_dev(struct ata_device *dev) {}#endif /* libata-scsi.c */ +#define ATA_SCSI_RBUF_SIZE 576 + +/* +* Maximum number of concurrent positioning ranges (CPR) supported. The ACS +* specifications allow up to 255, but we limit this to the number of CPR +* descriptors that fit in the rbuf buffer used to emit VPD page B9h. +*/ +#define ATA_DEV_MAX_CPR min(255, ((ATA_SCSI_RBUF_SIZE - 64) / 32)) +extern struct ata_device *ata_scsi_find_dev (struct ata_port *ap,const struct scsi_device *scsidev); extern int ata_scsi_add_hosts(struct ata_host *host,
drivers/bluetooth/btmrvl_main.c +0 -9
@@ -121,13 +121,6 @@ int btmrvl_process_event(struct btmrvl_private *priv, struct sk_buff *skb) ((event->data[2 ] ==MODULE_BROUGHT_UP ) || (event->data[2 ] ==MODULE_ALREADY_UP )) ? "Bring-up succeed" : "Bring-up failed"); - -if (event->length >3 && event->data[3 ]) - priv->btmrvl_dev.dev_type =HCI_AMP ; -else - priv->btmrvl_dev.dev_type =HCI_PRIMARY ; - -BT_DBG ("dev_type: %d" , priv->btmrvl_dev.dev_type); }else if (priv->btmrvl_dev.sendcmdflag && event->data[1 ] ==MODULE_SHUTDOWN_REQ ) { BT_DBG("EVENT:%s", (event->data[2]) ?
@@ -686,8 +679,6 @@ int btmrvl_register_hdev(struct btmrvl_private *priv) hdev->wakeup = btmrvl_wakeup;SET_HCIDEV_DEV (hdev, &card->func->dev); - hdev->dev_type = priv->btmrvl_dev.dev_type; - ret =hci_register_dev (hdev);if (ret <0 ) {BT_ERR ("Can not register HCI device" );
drivers/bluetooth/btrsi.c +0 -1
@@ -134,7 +134,6 @@ static int rsi_hci_attach(void *priv, struct rsi_proto_ops *ops) hdev->bus =HCI_USB ;hci_set_drvdata (hdev, h_adapter); - hdev->dev_type =HCI_PRIMARY ; hdev->open = rsi_hci_open; hdev->close = rsi_hci_close; hdev->flush = rsi_hci_flush;
drivers/bluetooth/btsdio.c +0 -8
@@ -32,9 +32,6 @@ static const struct sdio_device_id btsdio_table[] = {/* Generic Bluetooth Type-B SDIO device */ { SDIO_DEVICE_CLASS(SDIO_CLASS_BT_B) }, -/* Generic Bluetooth AMP controller */ - { SDIO_DEVICE_CLASS(SDIO_CLASS_BT_AMP) }, - { }/* Terminating entry */ };
@@ -319,11 +316,6 @@ static int btsdio_probe(struct sdio_func *func, hdev->bus =HCI_SDIO ;hci_set_drvdata (hdev, data); -if (id->class ==SDIO_CLASS_BT_AMP ) - hdev->dev_type =HCI_AMP ; -else - hdev->dev_type =HCI_PRIMARY ; - data->hdev = hdev;SET_HCIDEV_DEV (hdev, &func->dev);
drivers/bluetooth/btusb.c +0 -5
@@ -3952,11 +3952,6 @@ static int btusb_probe(struct usb_interface *intf, hdev->bus =HCI_USB ;hci_set_drvdata (hdev, data); -if (id->driver_info &BTUSB_AMP ) - hdev->dev_type =HCI_AMP ; -else - hdev->dev_type =HCI_PRIMARY ; - data->hdev = hdev;SET_HCIDEV_DEV (hdev, &intf->dev);
drivers/bluetooth/hci_ldisc.c +0 -6
@@ -700,11 +700,6 @@ static int hci_uart_register_dev(struct hci_uart *hu)if (!test_bit (HCI_UART_RESET_ON_INIT , &hu->hdev_flags))set_bit (HCI_QUIRK_RESET_ON_CLOSE , &hdev->quirks); -if (test_bit (HCI_UART_CREATE_AMP , &hu->hdev_flags)) - hdev->dev_type =HCI_AMP ; -else - hdev->dev_type =HCI_PRIMARY ; -/* Only call open() for the protocol after hdev is fully initialized as * open() (or a timer/workqueue it starts) may attempt to reference it. */
@@ -766,7 +761,6 @@ static int hci_uart_set_flags(struct hci_uart *hu, unsigned long flags) {unsigned long valid_flags =BIT (HCI_UART_RAW_DEVICE ) |BIT (HCI_UART_RESET_ON_INIT ) | -BIT (HCI_UART_CREATE_AMP ) |BIT (HCI_UART_INIT_PENDING ) |BIT (HCI_UART_EXT_CONFIG ) |BIT (HCI_UART_VND_DETECT );
drivers/bluetooth/hci_serdev.c +0 -5
@@ -365,11 +365,6 @@ int hci_uart_register_device(struct hci_uart *hu,if (test_bit (HCI_UART_EXT_CONFIG , &hu->hdev_flags))set_bit (HCI_QUIRK_EXTERNAL_CONFIG , &hdev->quirks); -if (test_bit (HCI_UART_CREATE_AMP , &hu->hdev_flags)) - hdev->dev_type =HCI_AMP ; -else - hdev->dev_type =HCI_PRIMARY ; -if (test_bit (HCI_UART_INIT_PENDING , &hu->hdev_flags))return 0 ;
drivers/bluetooth/hci_uart.h +0 -1
@@ -37,7 +37,6 @@#define HCI_UART_RAW_DEVICE 0#define HCI_UART_RESET_ON_INIT 1 -#define HCI_UART_CREATE_AMP 2#define HCI_UART_INIT_PENDING 3#define HCI_UART_EXT_CONFIG 4#define HCI_UART_VND_DETECT 5
drivers/bluetooth/hci_vhci.c +1 -9
@@ -286,17 +286,10 @@ static int __vhci_create_device(struct vhci_data *data, __u8 opcode) {struct hci_dev *hdev;struct sk_buff *skb; -__u8 dev_type;if (data->hdev)return -EBADFD ; -/* bits 0-1 are dev_type (Primary or AMP) */ - dev_type = opcode &0x03 ; - -if (dev_type !=HCI_PRIMARY && dev_type !=HCI_AMP ) -return -EINVAL ; -/* bits 2-5 are reserved (must be zero) */ if (opcode &0x3c )return -EINVAL ;
@@ -314,7 +307,6 @@ static int __vhci_create_device(struct vhci_data *data, __u8 opcode) data->hdev = hdev; hdev->bus =HCI_VIRTUAL ; - hdev->dev_type = dev_type;hci_set_drvdata (hdev, data); hdev->open = vhci_open_dev;
@@ -533,7 +525,7 @@ static void vhci_open_timeout(struct work_struct *work) struct vhci_data *data = container_of(work, struct vhci_data, open_timeout.work); -vhci_create_device (data, amp ?HCI_AMP :HCI_PRIMARY ); +vhci_create_device (data,0x00 ); }static int vhci_open (struct inode *inode,struct file *file)
drivers/bluetooth/virtio_bt.c +0 -2
@@ -291,7 +291,6 @@ static int virtbt_probe(struct virtio_device *vdev)switch (type) {case VIRTIO_BT_CONFIG_TYPE_PRIMARY : -case VIRTIO_BT_CONFIG_TYPE_AMP :break ;default :return -EINVAL ;
@@ -320,7 +319,6 @@ static int virtbt_probe(struct virtio_device *vdev) vbt->hdev = hdev; hdev->bus =HCI_VIRTIO ; - hdev->dev_type = type;hci_set_drvdata (hdev, vbt); hdev->open = virtbt_open;
drivers/char/ipmi/ipmi_msghandler.c +8 -0
@@ -2331,6 +2331,10 @@ static int i_ipmi_request(struct ipmi_user *user,if (smi_msg ==NULL ) {if (!supplied_recv)ipmi_free_recv_msg (recv_msg); +else if (recv_msg->user) { +atomic_dec (&recv_msg->user->nr_msgs); +kref_put (&recv_msg->user->refcount, free_user); + }return -ENOMEM ; } }
@@ -2373,6 +2377,10 @@ static int i_ipmi_request(struct ipmi_user *user,ipmi_free_smi_msg (smi_msg);if (!supplied_recv)ipmi_free_recv_msg (recv_msg); +else if (recv_msg->user) { +atomic_dec (&recv_msg->user->nr_msgs); +kref_put (&recv_msg->user->refcount, free_user); + } }else {dev_dbg (intf->si_dev,"Send: %*ph\n" , smi_msg->data_size, smi_msg->data);
drivers/crypto/qce/core.c +1 -1
@@ -55,7 +55,7 @@ static int qce_register_algs(struct qce_device *qce) ret = ops->register_algs (qce);if (ret) {for (j = i -1 ; j >=0 ; j--) - ops->unregister_algs (qce); + qce_ops[j]->unregister_algs (qce);return ret; } }
drivers/dma-buf/udmabuf.c +12 -9
@@ -72,14 +72,16 @@ static struct sg_table *get_sg_table(struct device *dev, struct dma_buf *buf,0 , ubuf->pagecount <<PAGE_SHIFT , GFP_KERNEL);if (ret <0 ) - goto err; - ret =dma_map_sgtable (dev, sg, direction,0 ); + goto err_alloc; + + ret =dma_map_sgtable (dev, sg, direction,DMA_ATTR_SKIP_CPU_SYNC );if (ret <0 ) - goto err; + goto err_map;return sg; -err: +err_map:sg_free_table (sg); +err_alloc:kfree (sg);return ERR_PTR (ret); }
@@ -87,7 +89,7 @@ static struct sg_table *get_sg_table(struct device *dev, struct dma_buf *buf,static void put_sg_table (struct device *dev,struct sg_table *sg,enum dma_data_direction direction) { -dma_unmap_sgtable (dev, sg, direction,0 ); +dma_unmap_sgtable (dev, sg, direction,DMA_ATTR_SKIP_CPU_SYNC );sg_free_table (sg);kfree (sg); }
@@ -125,21 +127,22 @@ static int begin_cpu_udmabuf(struct dma_buf *buf, {struct udmabuf *ubuf = buf->priv;struct device *dev = ubuf->device->this_device; -int ret =0 ;if (!ubuf->sg) { ubuf->sg =get_sg_table (dev, buf, direction);if (IS_ERR (ubuf->sg)) { +int ret; + ret =PTR_ERR (ubuf->sg); ubuf->sg =NULL ; +return ret; }else { ubuf->sg_dir = direction; } - }else { -dma_sync_sgtable_for_cpu (dev, ubuf->sg, direction); } -return ret; +dma_sync_sgtable_for_cpu (dev, ubuf->sg, direction); +return 0 ; } static int end_cpu_udmabuf(struct dma_buf *buf,
drivers/fpga/dfl-afu-main.c +3 -0
@@ -720,6 +720,9 @@ afu_ioctl_dma_map(struct dfl_feature_platform_data *pdata, void __user *arg)if (map.argsz < minsz || map.flags)return -EINVAL ; +if (map.length >>PAGE_SHIFT > (u64 )INT_MAX ) +return -EINVAL ; + ret =afu_dma_map_region (pdata, map.user_addr, map.length, &map.iova);if (ret)return ret;
drivers/gpio/gpio-mt7621.c +2 -0
@@ -156,6 +156,8 @@ mediatek_gpio_irq_type(struct irq_data *d, unsigned int type)int pin = d->hwirq;u32 mask =BIT (pin); +guard (spinlock_irqsave)(&rg->lock); +if (type ==IRQ_TYPE_PROBE ) {if ((rg->rising | rg->falling | rg->hlevel | rg->llevel) & mask)
drivers/gpio/gpio-mvebu.c +2 -2
@@ -345,7 +345,7 @@ static int mvebu_gpio_direction_input(struct gpio_chip *chip, unsigned int pin)* Check with the pinctrl driver whether this pin is usable as * an input GPIO */ - ret =pinctrl_gpio_direction_input (chip->base + pin); + ret =pinctrl_gpio_direction_input (chip, pin);if (ret)return ret;
@@ -365,7 +365,7 @@ static int mvebu_gpio_direction_output(struct gpio_chip *chip, unsigned int pin,* Check with the pinctrl driver whether this pin is usable as * an output GPIO */ - ret =pinctrl_gpio_direction_output (chip->base + pin); + ret =pinctrl_gpio_direction_output (chip, pin);if (ret)return ret;
drivers/gpio/gpio-pxa.c +2 -2
@@ -266,7 +266,7 @@ static int pxa_gpio_direction_input(struct gpio_chip *chip, unsigned offset)int ret;if (pxa_gpio_has_pinctrl ()) { - ret =pinctrl_gpio_direction_input (chip->base + offset); + ret =pinctrl_gpio_direction_input (chip, offset);if (ret)return ret; }
@@ -295,7 +295,7 @@ static int pxa_gpio_direction_output(struct gpio_chip *chip,writel_relaxed (mask, base + (value ?GPSR_OFFSET :GPCR_OFFSET ));if (pxa_gpio_has_pinctrl ()) { - ret =pinctrl_gpio_direction_output (chip->base + offset); + ret =pinctrl_gpio_direction_output (chip, offset);if (ret)return ret; }
drivers/gpio/gpio-tegra.c +2 -16
@@ -174,18 +174,11 @@ static int tegra_gpio_direction_input(struct gpio_chip *chip, unsigned int offset) {struct tegra_gpio_info *tgi =gpiochip_get_data (chip); -int ret;tegra_gpio_mask_write (tgi,GPIO_MSK_OE (tgi, offset), offset,0 );tegra_gpio_enable (tgi, offset); - ret =pinctrl_gpio_direction_input (chip->base + offset); -if (ret <0 ) -dev_err (tgi->dev, -"Failed to set pinctrl input direction of GPIO %d: %d" , - chip->base + offset, ret); - -return ret; +return 0 ; } static int tegra_gpio_direction_output(struct gpio_chip *chip,
@@ -193,19 +186,12 @@ static int tegra_gpio_direction_output(struct gpio_chip *chip, int value) {struct tegra_gpio_info *tgi =gpiochip_get_data (chip); -int ret;tegra_gpio_set (chip, offset, value);tegra_gpio_mask_write (tgi,GPIO_MSK_OE (tgi, offset), offset,1 );tegra_gpio_enable (tgi, offset); - ret =pinctrl_gpio_direction_output (chip->base + offset); -if (ret <0 ) -dev_err (tgi->dev, -"Failed to set pinctrl output direction of GPIO %d: %d" , - chip->base + offset, ret); - -return ret; +return 0 ; } static int tegra_gpio_get_direction(struct gpio_chip *chip,
drivers/gpio/gpio-vf610.c +2 -2
@@ -117,7 +117,7 @@ static int vf610_gpio_direction_input(struct gpio_chip *chip, unsigned gpio)vf610_gpio_writel (val, port->gpio_base +GPIO_PDDR ); } -return pinctrl_gpio_direction_input (chip->base + gpio); +return pinctrl_gpio_direction_input (chip, gpio); } static int vf610_gpio_direction_output(struct gpio_chip *chip, unsigned gpio,
@@ -135,7 +135,7 @@ static int vf610_gpio_direction_output(struct gpio_chip *chip, unsigned gpio,vf610_gpio_writel (val, port->gpio_base +GPIO_PDDR ); } -return pinctrl_gpio_direction_output (chip->base + gpio); +return pinctrl_gpio_direction_output (chip, gpio); }static void vf610_gpio_irq_handler (struct irq_desc *desc)
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +16 -14
@@ -1153,19 +1153,6 @@ static int amdgpu_cs_vm_handling(struct amdgpu_cs_parser *p) job->vm_pd_addr =amdgpu_gmc_pd_addr (vm->root.bo); } -if (amdgpu_vm_debug) { -/* Invalidate all BOs to test for userspace bugs */ -amdgpu_bo_list_for_each_entry (e, p->bo_list) { -struct amdgpu_bo *bo =ttm_to_amdgpu_bo (e->tv.bo); - -/* ignore duplicates */ -if (!bo) -continue ; - -amdgpu_vm_bo_invalidate (adev, bo, false); - } - } -return 0 ; }
@@ -1325,6 +1312,8 @@ static int amdgpu_cs_submit(struct amdgpu_cs_parser *p,/* Cleanup the parser structure */ static void amdgpu_cs_parser_fini (struct amdgpu_cs_parser *parser) { +struct amdgpu_device *adev = parser->adev; +struct amdgpu_bo_list_entry *e;unsigned i;for (i =0 ; i < parser->num_post_deps; i++) {
@@ -1337,8 +1326,21 @@ static void amdgpu_cs_parser_fini(struct amdgpu_cs_parser *parser)if (parser->ctx)amdgpu_ctx_put (parser->ctx); -if (parser->bo_list) +if (parser->bo_list) { +if (amdgpu_vm_debug) { +/* Invalidate all BOs to test for userspace bugs */ +amdgpu_bo_list_for_each_entry (e, parser->bo_list) { +struct amdgpu_bo *bo =ttm_to_amdgpu_bo (e->tv.bo); + +/* ignore duplicates */ +if (!bo) +continue ; + +amdgpu_vm_bo_invalidate (adev, bo, false); + } + }amdgpu_bo_list_put (parser->bo_list); + }for (i =0 ; i < parser->nchunks; i++)kvfree (parser->chunks[i].kdata);
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +21 -0
@@ -273,6 +273,25 @@ static const struct drm_gem_object_funcs amdgpu_gem_object_funcs = { .vm_ops = &amdgpu_gem_vm_ops, }; +static bool amdgpu_gem_are_domains_valid (u32 domains) +{ +u32 normal =AMDGPU_GEM_DOMAIN_CPU | +AMDGPU_GEM_DOMAIN_GTT | +AMDGPU_GEM_DOMAIN_VRAM ; +/* Treat all non CPU/GTT/VRAM domains as special domains. */ +u32 special =AMDGPU_GEM_DOMAIN_MASK & ~normal; +u32 normal_mask = domains & normal; +u32 special_mask = domains & special; + +if (!special_mask) +return true; + +if (normal_mask) +return false; + +return !(special_mask & (special_mask -1 )); +} +/* * GEM ioctls. */
@@ -304,6 +323,8 @@ int amdgpu_gem_create_ioctl(struct drm_device *dev, void *data,/* reject invalid gem domains */ if (args->in.domains & ~AMDGPU_GEM_DOMAIN_MASK )return -EINVAL ; +if (!amdgpu_gem_are_domains_valid (args->in.domains)) +return -EINVAL ;if (!amdgpu_is_tmz (adev) && (flags &AMDGPU_GEM_CREATE_ENCRYPTED )) {DRM_NOTE_ONCE ("Cannot allocate secure buffer since TMZ is disabled\n" );
drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c +28 -2
@@ -219,7 +219,20 @@ static bool amdgpu_gtt_mgr_intersects(struct ttm_resource_manager *man, const struct ttm_place *place, size_t size) { -return !place->lpfn ||amdgpu_gtt_mgr_has_gart_addr (res); +const struct drm_mm_node *const node = &to_ttm_range_mgr_node (res)->mm_nodes[0 ]; +const u32 num_pages =PFN_UP (size); + +if (!place->lpfn) +return true; + +if (!amdgpu_gtt_mgr_has_gart_addr (res)) +return false; + +if (place->fpfn >= (node->start + num_pages) || + (place->lpfn && place->lpfn <= node->start)) +return false; + +return true; }/**
@@ -237,7 +250,20 @@ static bool amdgpu_gtt_mgr_compatible(struct ttm_resource_manager *man, const struct ttm_place *place, size_t size) { -return !place->lpfn ||amdgpu_gtt_mgr_has_gart_addr (res); +const struct drm_mm_node *const node = &to_ttm_range_mgr_node (res)->mm_nodes[0 ]; +const u32 num_pages =PFN_UP (size); + +if (!place->lpfn) +return true; + +if (!amdgpu_gtt_mgr_has_gart_addr (res)) +return false; + +if (node->start < place->fpfn || + (place->lpfn && (node->start + num_pages) > place->lpfn)) +return false; + +return true; }/**
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c +7 -4
@@ -630,8 +630,8 @@ static int amdgpu_uvd_cs_msg_decode(struct amdgpu_device *adev, uint32_t *msg,unsigned image_size, tmp, min_dpb_size, num_dpb_buffer;unsigned min_ctx_size = ~0 ; -/* Reject invalid dimensions to prevent division by zero */ -if (width <16 || height <16 ) { +/* Reject invalid dimensions */ +if (width <16 || height <16 || width >4096 || height >4096 ) {dev_WARN_ONCE (adev->dev,1 ,"Invalid UVD decoding dimensions (%dx%d)!\n" , width, height);
@@ -778,6 +778,9 @@ static int amdgpu_uvd_cs_msg_decode(struct amdgpu_device *adev, uint32_t *msg, image_size =ALIGN (image_size,256 ); num_dpb_buffer = (le32_to_cpu (msg[59 ]) &0xff ) +2 ; +if (num_dpb_buffer >17 ) +return -EINVAL ; + min_dpb_size = image_size * num_dpb_buffer; min_ctx_size = ((width +255 ) /16 ) * ((height +255 ) /16 ) *16 * num_dpb_buffer +52 *1024 ;
@@ -788,7 +791,7 @@ static int amdgpu_uvd_cs_msg_decode(struct amdgpu_device *adev, uint32_t *msg,return -EINVAL ; } -if (width > pitch) { +if (width > pitch || pitch >4096 ) {DRM_ERROR ("Invalid UVD decoding target pitch!\n" );return -EINVAL ; }
@@ -800,7 +803,7 @@ static int amdgpu_uvd_cs_msg_decode(struct amdgpu_device *adev, uint32_t *msg, } buf_sizes[0x1 ] = dpb_size; - buf_sizes[0x2 ] = image_size; + buf_sizes[0x2 ] = (pitch * height) *3 /2 ; buf_sizes[0x4 ] = min_ctx_size;/* store image width to adjust nb memory pstate */ adev->uvd.decode_image_width = width;
drivers/gpu/drm/amd/amdgpu/vce_v3_0.c +22 -4
@@ -873,6 +873,23 @@ static void vce_v3_0_ring_emit_ib(struct amdgpu_ring *ring,amdgpu_ring_write (ring, ib->length_dw); } +static void vce_v3_0_ring_emit_fence (struct amdgpu_ring *ring,u64 addr, +u64 seq,unsigned flags) +{ +WARN_ON (flags &AMDGPU_FENCE_FLAG_64BIT ); + +amdgpu_ring_write (ring,VCE_CMD_FENCE ); +amdgpu_ring_write (ring, addr); +amdgpu_ring_write (ring,upper_32_bits (addr)); +amdgpu_ring_write (ring, seq); +amdgpu_ring_write (ring,VCE_CMD_TRAP ); +} + +static void vce_v3_0_ring_insert_end (struct amdgpu_ring *ring) +{ +amdgpu_ring_write (ring,VCE_CMD_END ); +} +static void vce_v3_0_emit_vm_flush (struct amdgpu_ring *ring,unsigned int vmid,uint64_t pd_addr) {
@@ -882,7 +899,6 @@ static void vce_v3_0_emit_vm_flush(struct amdgpu_ring *ring,amdgpu_ring_write (ring,VCE_CMD_FLUSH_TLB );amdgpu_ring_write (ring, vmid); -amdgpu_ring_write (ring,VCE_CMD_END ); }static void vce_v3_0_emit_pipeline_sync (struct amdgpu_ring *ring)
@@ -952,17 +968,19 @@ static const struct amdgpu_ring_funcs vce_v3_0_ring_vm_funcs = { .set_wptr = vce_v3_0_ring_set_wptr, .parse_cs = amdgpu_vce_ring_parse_cs_vm, .emit_frame_size = -6 +/* vce_v3_0_emit_vm_flush */ +5 +/* vce_v3_0_emit_vm_flush */ 4 +/* vce_v3_0_emit_pipeline_sync */ - 6 + 6, /* amdgpu_vce_ring_emit_fence x2 vm fence */ +5 +5 +/* vce_v3_0_ring_emit_fence x2 vm fence */ + 1, /* vce_v3_0_ring_insert_end */ .emit_ib_size = 5, /* vce_v3_0_ring_emit_ib */ .emit_ib = vce_v3_0_ring_emit_ib, .emit_vm_flush = vce_v3_0_emit_vm_flush, .emit_pipeline_sync = vce_v3_0_emit_pipeline_sync, - .emit_fence = amdgpu_vce_ring_emit_fence, + .emit_fence = vce_v3_0_ring_emit_fence, .test_ring = amdgpu_vce_ring_test_ring, .test_ib = amdgpu_vce_ring_test_ib, .insert_nop = amdgpu_ring_insert_nop, + .insert_end = vce_v3_0_ring_insert_end, .pad_ib = amdgpu_ring_generic_pad_ib, .begin_use = amdgpu_vce_ring_begin_use, .end_use = amdgpu_vce_ring_end_use,
drivers/gpu/drm/amd/pm/amdgpu_dpm.c +22 -5
@@ -950,17 +950,28 @@ int amdgpu_dpm_dispatch_task(struct amdgpu_device *adev,return ret; } -int amdgpu_dpm_get_pp_table (struct amdgpu_device *adev,char **table) +int amdgpu_dpm_get_pp_table (struct amdgpu_device *adev,char *table, +size_t size) {const struct amd_pm_funcs *pp_funcs = adev->powerplay.pp_funcs; +char *pptable =NULL ;int ret =0 ; +if ((!table && size) || (table && !size)) +return -EINVAL ; +if (!pp_funcs->get_pp_table)return 0 ;mutex_lock (&adev->pm.mutex); ret = pp_funcs->get_pp_table (adev->powerplay.pp_handle, - table); + &pptable); +if (ret >0 && !pptable) { + ret = -EINVAL ; + }else if (ret >0 && table) { + ret =min_t (size_t, ret, size); +memcpy (table, pptable, ret); + }mutex_unlock (&adev->pm.mutex);return ret;
@@ -1209,17 +1220,23 @@ int amdgpu_dpm_set_power_profile_mode(struct amdgpu_device *adev,return ret; } -int amdgpu_dpm_get_gpu_metrics (struct amdgpu_device *adev,void **table) +ssize_t amdgpu_dpm_get_gpu_metrics (struct amdgpu_device *adev,void *buf, +size_t size) {const struct amd_pm_funcs *pp_funcs = adev->powerplay.pp_funcs; -int ret =0 ; +void *table; +ssize_t ret;if (!pp_funcs->get_gpu_metrics)return 0 ;mutex_lock (&adev->pm.mutex); ret = pp_funcs->get_gpu_metrics (adev->powerplay.pp_handle, - table); + &table); +if (ret >0 ) { + ret =min_t (ssize_t, ret, size); +memcpy (buf, table, ret); + }mutex_unlock (&adev->pm.mutex);return ret;
drivers/gpu/drm/amd/pm/amdgpu_pm.c +2 -14
@@ -532,7 +532,6 @@ static ssize_t amdgpu_get_pp_table(struct device *dev, {struct drm_device *ddev =dev_get_drvdata (dev);struct amdgpu_device *adev =drm_to_adev (ddev); -char *table =NULL ;int size, ret;if (amdgpu_in_reset (adev))
@@ -546,7 +545,7 @@ static ssize_t amdgpu_get_pp_table(struct device *dev,return ret; } - size =amdgpu_dpm_get_pp_table (adev, &table); + size =amdgpu_dpm_get_pp_table (adev, buf,PAGE_SIZE -1 );pm_runtime_mark_last_busy (ddev->dev);pm_runtime_put_autosuspend (ddev->dev);
@@ -554,11 +553,6 @@ static ssize_t amdgpu_get_pp_table(struct device *dev,if (size <=0 )return size; -if (size >=PAGE_SIZE ) - size =PAGE_SIZE -1 ; - -memcpy (buf, table, size); -return size; }
@@ -1705,7 +1699,6 @@ static ssize_t amdgpu_get_gpu_metrics(struct device *dev, {struct drm_device *ddev =dev_get_drvdata (dev);struct amdgpu_device *adev =drm_to_adev (ddev); -void *gpu_metrics;ssize_t size =0 ;int ret;
@@ -1720,15 +1713,10 @@ static ssize_t amdgpu_get_gpu_metrics(struct device *dev,return ret; } - size =amdgpu_dpm_get_gpu_metrics (adev, &gpu_metrics); + size =amdgpu_dpm_get_gpu_metrics (adev, buf,PAGE_SIZE -1 );if (size <=0 ) goto out; -if (size >=PAGE_SIZE ) - size =PAGE_SIZE -1 ; - -memcpy (buf, gpu_metrics, size); - out:pm_runtime_mark_last_busy (ddev->dev);pm_runtime_put_autosuspend (ddev->dev);
drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h +4 -2
@@ -459,7 +459,8 @@ int amdgpu_dpm_get_pp_num_states(struct amdgpu_device *adev,int amdgpu_dpm_dispatch_task (struct amdgpu_device *adev,enum amd_pp_task task_id,enum amd_pm_state_type *user_state); -int amdgpu_dpm_get_pp_table (struct amdgpu_device *adev,char **table); +int amdgpu_dpm_get_pp_table (struct amdgpu_device *adev,char *table, +size_t size); int amdgpu_dpm_set_fine_grain_clk_vol(struct amdgpu_device *adev, uint32_t type, long *input,
@@ -489,7 +490,8 @@ int amdgpu_dpm_get_power_profile_mode(struct amdgpu_device *adev, char *buf);int amdgpu_dpm_set_power_profile_mode (struct amdgpu_device *adev,long *input,uint32_t size); -int amdgpu_dpm_get_gpu_metrics (struct amdgpu_device *adev,void **table); +ssize_t amdgpu_dpm_get_gpu_metrics (struct amdgpu_device *adev,void *buf, +size_t size);int amdgpu_dpm_get_fan_control_mode (struct amdgpu_device *adev,uint32_t *fan_mode); int amdgpu_dpm_set_fan_speed_pwm(struct amdgpu_device *adev,
drivers/gpu/drm/bridge/cdns-dsi.c +6 -5
@@ -1189,7 +1189,7 @@ static const struct mipi_dsi_host_ops cdns_dsi_ops = { .transfer = cdns_dsi_transfer, }; -static int __maybe_unused cdns_dsi_resume (struct device *dev) +static int cdns_dsi_resume (struct device *dev) {struct cdns_dsi *dsi =dev_get_drvdata (dev);
@@ -1200,7 +1200,7 @@ static int __maybe_unused cdns_dsi_resume(struct device *dev)return 0 ; } -static int __maybe_unused cdns_dsi_suspend (struct device *dev) +static int cdns_dsi_suspend (struct device *dev) {struct cdns_dsi *dsi =dev_get_drvdata (dev);
@@ -1210,8 +1210,9 @@ static int __maybe_unused cdns_dsi_suspend(struct device *dev)return 0 ; } -static UNIVERSAL_DEV_PM_OPS(cdns_dsi_pm_ops, cdns_dsi_suspend, cdns_dsi_resume, - NULL); +static const struct dev_pm_ops cdns_dsi_pm_ops = { +RUNTIME_PM_OPS (cdns_dsi_suspend, cdns_dsi_resume,NULL ) +};static int cdns_dsi_drm_probe (struct platform_device *pdev) {
@@ -1338,7 +1339,7 @@ static struct platform_driver cdns_dsi_platform_driver = { .driver = { .name = "cdns-dsi", .of_match_table = cdns_dsi_of_match, - .pm = &cdns_dsi_pm_ops, + .pm = pm_ptr(&cdns_dsi_pm_ops), }, };module_platform_driver (cdns_dsi_platform_driver);
drivers/gpu/drm/drm_connector.c +6 -6
@@ -2902,7 +2902,7 @@ EXPORT_SYMBOL(drm_mode_put_tile_group);/** * drm_mode_get_tile_group - get a reference to an existing tile group * @dev: DRM device -* @topology: 8-bytes unique per monitor. +* @topology_id: 9-byte unique ID per monitor. * * Use the unique bytes to get a reference to an existing tile group. *
@@ -2910,14 +2910,14 @@ EXPORT_SYMBOL(drm_mode_put_tile_group);* tile group or NULL if not found. */ struct drm_tile_group *drm_mode_get_tile_group (struct drm_device *dev, -const char topology[8 ]) +const char topology_id[9 ]) {struct drm_tile_group *tg;int id;mutex_lock (&dev->mode_config.idr_mutex);idr_for_each_entry (&dev->mode_config.tile_idr, tg, id) { -if (!memcmp (tg->group_data, topology,8 )) { +if (!memcmp (tg->group_data, topology_id,sizeof (tg->group_data))) {if (!kref_get_unless_zero (&tg->refcount)) tg =NULL ;mutex_unlock (&dev->mode_config.idr_mutex);
@@ -2932,7 +2932,7 @@ EXPORT_SYMBOL(drm_mode_get_tile_group);/** * drm_mode_create_tile_group - create a tile group from a displayid description * @dev: DRM device -* @topology: 8-bytes unique per monitor. +* @topology_id: 9-byte unique ID per monitor. * * Create a tile group for the unique monitor, and get a unique * identifier for the tile group.
@@ -2941,7 +2941,7 @@ EXPORT_SYMBOL(drm_mode_get_tile_group);* new tile group or NULL. */ struct drm_tile_group *drm_mode_create_tile_group (struct drm_device *dev, -const char topology[8 ]) +const char topology_id[9 ]) {struct drm_tile_group *tg;int ret;
@@ -2951,7 +2951,7 @@ struct drm_tile_group *drm_mode_create_tile_group(struct drm_device *dev,return NULL ;kref_init (&tg->refcount); -memcpy (tg->group_data, topology,8 ); +memcpy (tg->group_data, topology_id,sizeof (tg->group_data)); tg->dev = dev;mutex_lock (&dev->mode_config.idr_mutex);
drivers/gpu/drm/i915/display/intel_display_core.h +3 -0
@@ -244,6 +244,9 @@ struct intel_wm { };struct intel_display { +/* drm device backpointer */ +struct drm_device *drm; +/* Display functions */ struct {/* Top level crtc-ish functions */
drivers/gpu/drm/i915/display/intel_hdcp.c +13 -9
@@ -98,6 +98,9 @@ intel_hdcp_required_content_stream(struct intel_digital_port *dig_port)if (!enforce_type0 && !dig_port->hdcp_mst_type1_capable) enforce_type0 = true; +if (drm_WARN_ON (&i915->drm, data->k >=INTEL_NUM_PIPES (i915))) +return -EINVAL ; + data->streams[data->k].stream_id =intel_conn_to_vcpi (connector); data->k++;
@@ -107,7 +110,7 @@ intel_hdcp_required_content_stream(struct intel_digital_port *dig_port) }drm_connector_list_iter_end (&conn_iter); -if (drm_WARN_ON (&i915->drm, data->k >INTEL_NUM_PIPES (i915) || data->k ==0 )) +if (drm_WARN_ON (&i915->drm, !data->k))return -EINVAL ;/*
@@ -1634,8 +1637,8 @@ int _hdcp2_propagate_stream_management_info(struct intel_connector *connector)static int hdcp2_authenticate_repeater_topology (struct intel_connector *connector) { +struct intel_display *display = &to_i915 (connector->base.dev)->display;struct intel_digital_port *dig_port =intel_attached_dig_port (connector); -struct drm_i915_private *dev_priv =to_i915 (connector->base.dev);struct intel_hdcp *hdcp = &connector->hdcp;union {struct hdcp2_rep_send_receiverid_list recvid_list;
@@ -1655,7 +1658,7 @@ int hdcp2_authenticate_repeater_topology(struct intel_connector *connector)if (HDCP_2_2_MAX_CASCADE_EXCEEDED (rx_info[1 ]) ||HDCP_2_2_MAX_DEVS_EXCEEDED (rx_info[1 ])) { -drm_dbg_kms (&dev_priv->drm,"Topology Max Size Exceeded\n" ); +drm_dbg_kms (display->drm,"Topology Max Size Exceeded\n" );return -EINVAL ; }
@@ -1672,23 +1675,24 @@ int hdcp2_authenticate_repeater_topology(struct intel_connector *connector)drm_hdcp_be24_to_cpu ((const u8 *)msgs.recvid_list.seq_num_v);if (!hdcp->hdcp2_encrypted && seq_num_v) { -drm_dbg_kms (&dev_priv->drm, +drm_dbg_kms (display->drm,"Non zero Seq_num_v at first RecvId_List msg\n" );return -EINVAL ; } -if (seq_num_v < hdcp->seq_num_v) { -/* Roll over of the seq_num_v from repeater. Reauthenticate. */ -drm_dbg_kms (&dev_priv->drm,"Seq_num_v roll over.\n" ); +if (hdcp->hdcp2_encrypted && seq_num_v <= hdcp->seq_num_v) { +/* Reauthenticate on Seq_num_v repeat or rollover */ +drm_dbg_kms (display->drm,"Seq_num_v %s\n" , + seq_num_v == hdcp->seq_num_v ?"repeat" :"rollover" );return -EINVAL ; } device_cnt = (HDCP_2_2_DEV_COUNT_HI (rx_info[0 ]) <<4 |HDCP_2_2_DEV_COUNT_LO (rx_info[1 ])); -if (drm_hdcp_check_ksvs_revoked (&dev_priv->drm, +if (drm_hdcp_check_ksvs_revoked (display->drm, msgs.recvid_list.receiver_ids, device_cnt) >0 ) { -drm_err (&dev_priv->drm,"Revoked receiver ID(s) is in list\n" ); +drm_err (display->drm,"Revoked receiver ID(s) is in list\n" );return -EPERM ; }
drivers/gpu/drm/i915/display/intel_vrr.c +8 -2
@@ -15,6 +15,9 @@ bool intel_vrr_is_capable(struct intel_connector *connector)struct drm_i915_private *i915 =to_i915 (connector->base.dev);struct intel_dp *intel_dp; +if (!HAS_VRR (i915)) +return false; +/* * DP Sink is capable of VRR video timings if * Ignore MSA bit is set in DPCD.
@@ -37,8 +40,11 @@ bool intel_vrr_is_capable(struct intel_connector *connector)return false; } -return HAS_VRR (i915) && - info->monitor_range.max_vfreq - info->monitor_range.min_vfreq >10 ; +if (!info->monitor_range.min_vfreq || !info->monitor_range.max_vfreq || + info->monitor_range.min_vfreq > info->monitor_range.max_vfreq) +return false; + +return info->monitor_range.max_vfreq - info->monitor_range.min_vfreq >10 ; }void
drivers/gpu/drm/i915/i915_driver.c +3 -0
@@ -844,6 +844,9 @@ i915_driver_create(struct pci_dev *pdev, const struct pci_device_id *ent)pci_set_drvdata (pdev, i915); +/* Add drm device backpointer as early as possible. */ + i915->display.drm = &i915->drm; +/* Device parameters start as a copy of module parameters. */ i915_params_copy (&i915->params, &i915_modparams);
drivers/gpu/drm/radeon/radeon_kms.c +1 -0
@@ -72,6 +72,7 @@ void radeon_driver_unload_kms(struct drm_device *dev)if (radeon_is_px (dev)) {pm_runtime_get_sync (dev->dev);pm_runtime_forbid (dev->dev); +pm_runtime_dont_use_autosuspend (dev->dev); }radeon_acpi_fini (rdev);
drivers/gpu/drm/tegra/fb.c +2 -6
@@ -222,7 +222,6 @@ static int tegra_fbdev_probe(struct drm_fb_helper *helper,struct drm_mode_fb_cmd2 cmd = {0 };unsigned int bytes_per_pixel;struct drm_framebuffer *fb; -unsigned long offset;struct fb_info *info;struct tegra_bo *bo;size_t size;
@@ -268,9 +267,6 @@ static int tegra_fbdev_probe(struct drm_fb_helper *helper,drm_fb_helper_fill_info (info, helper, sizes); - offset = info->var.xoffset * bytes_per_pixel + - info->var.yoffset * fb->pitches[0 ]; -if (bo->pages) { bo->vaddr =vmap (bo->pages, bo->num_pages,VM_MAP ,pgprot_writecombine (PAGE_KERNEL ));
@@ -282,9 +278,9 @@ static int tegra_fbdev_probe(struct drm_fb_helper *helper, } drm->mode_config.fb_base = (resource_size_t )bo->iova; - info->screen_base = (void __iomem *)bo->vaddr + offset; + info->screen_base = (void __iomem *)bo->vaddr; info->screen_size = size; - info->fix.smem_start = (unsigned long )(bo->iova + offset); + info->fix.smem_start = (unsigned long )(bo->iova); info->fix.smem_len = size;return 0 ;
drivers/i2c/busses/i2c-bcm-iproc.c +10 -1
@@ -811,7 +811,16 @@ static int bcm_iproc_i2c_xfer_wait(struct bcm_iproc_i2c_dev *iproc_i2c, }if (!time_left && !iproc_i2c->xfer_is_done) { -dev_err (iproc_i2c->device,"transaction timed out\n" ); +/* +* The controller may fail to clear START_BUSY after a timeout, +* reset the controller to recover in that case. +*/ +if (!!(iproc_i2c_rd_reg (iproc_i2c,M_CMD_OFFSET ) & +BIT (M_CMD_START_BUSY_SHIFT ))) { +bcm_iproc_i2c_enable_disable (iproc_i2c, false); +bcm_iproc_i2c_init (iproc_i2c); +bcm_iproc_i2c_enable_disable (iproc_i2c, true); + }/* flush both TX/RX FIFOs */ val =BIT (M_FIFO_RX_FLUSH_SHIFT ) |BIT (M_FIFO_TX_FLUSH_SHIFT );
drivers/i2c/busses/i2c-davinci.c +3 -1
@@ -872,13 +872,15 @@ static int davinci_i2c_probe(struct platform_device *pdev) adap->nr = pdev->id; r =i2c_add_numbered_adapter (adap);if (r) - goto err_unuse_clocks; + goto err_cpufreq;pm_runtime_mark_last_busy (dev->dev);pm_runtime_put_autosuspend (dev->dev);return 0 ; +err_cpufreq: +i2c_davinci_cpufreq_deregister (dev); err_unuse_clocks:pm_runtime_dont_use_autosuspend (dev->dev);pm_runtime_put_sync (dev->dev);
drivers/i2c/busses/i2c-imx.c +86 -40
184 lines not on this page · raw message
drivers/infiniband/sw/siw/siw_qp_tx.c +11 -6
@@ -313,7 +313,7 @@ static int siw_tx_ctrl(struct siw_iwarp_tx *c_tx, struct socket *s, }/* -* 0copy TCP transmit interface: Use do_tcp_sendpages. +* 0copy TCP transmit interface: Use MSG_SPLICE_PAGES. * * Using sendpage to push page by page appears to be less efficient * than using sendmsg, even if data are copied.
@@ -324,27 +324,32 @@ static int siw_tx_ctrl(struct siw_iwarp_tx *c_tx, struct socket *s,static int siw_tcp_sendpages (struct socket *s,struct page **page,int offset,size_t size) { +struct bio_vec bvec; +struct msghdr msg = { + .msg_flags = (MSG_MORE |MSG_DONTWAIT |MSG_SPLICE_PAGES ), + };struct sock *sk = s->sk; -int i =0 , rv =0 , sent =0 , - flags =MSG_MORE |MSG_DONTWAIT |MSG_SENDPAGE_NOTLAST ; +int i =0 , rv =0 , sent =0 ;while (size) {size_t bytes =min_t (size_t,PAGE_SIZE - offset, size);if (size + offset <=PAGE_SIZE ) - flags =MSG_MORE |MSG_DONTWAIT ; + msg.msg_flags &= ~MSG_MORE ;tcp_rate_check_app_limited (sk); +bvec_set_page (&bvec, page[i], bytes, offset); +iov_iter_bvec (&msg.msg_iter,ITER_SOURCE , &bvec,1 , bytes); + try_page_again:lock_sock (sk); - rv =do_tcp_sendpages (sk, page[i], offset, bytes, flags); + rv =tcp_sendmsg_locked (sk, &msg, bytes);release_sock (sk);if (rv >0 ) { size -= rv; sent += rv;if (rv != bytes) { - offset += rv; bytes -= rv; goto try_page_again; }
drivers/input/joystick/iforce/iforce-packets.c +10 -1
@@ -161,6 +161,9 @@ void iforce_process_packet(struct iforce *iforce,switch (packet_id) {case 0x01 :/* joystick position data */ +if (len <7 ) +break ; +input_report_abs (dev,ABS_X , (__s16 )get_unaligned_le16 (data)); input_report_abs(dev, ABS_Y,
@@ -176,6 +179,9 @@ void iforce_process_packet(struct iforce *iforce,break ;case 0x03 :/* wheel position data */ +if (len <7 ) +break ; +input_report_abs (dev,ABS_WHEEL , (__s16 )get_unaligned_le16 (data));input_report_abs (dev,ABS_GAS ,255 - data[2 ]);
@@ -187,6 +193,9 @@ void iforce_process_packet(struct iforce *iforce,break ;case 0x02 :/* status report */ +if (len <2 ) +break ; +input_report_key (dev,BTN_DEAD , data[0 ] &0x02 );input_sync (dev);
@@ -206,7 +215,7 @@ void iforce_process_packet(struct iforce *iforce, } } -for (j =3 ; j < len; j +=2 ) +for (j =3 ; j +sizeof (u16) <= len; j +=sizeof (u16))mark_core_as_ready (iforce,get_unaligned_le16 (data + j));break ;
drivers/input/joystick/iforce/iforce-usb.c +3 -0
@@ -159,6 +159,9 @@ static void iforce_usb_irq(struct urb *urb) goto exit; } +if (!urb->actual_length) + goto exit; +iforce_process_packet (iforce, iforce_usb->data_in[0 ], iforce_usb->data_in +1 , urb->actual_length -1 );
drivers/input/joystick/psxpad-spi.c +1 -0
@@ -366,6 +366,7 @@ static int psxpad_spi_probe(struct spi_device *spi)return err; } +spi_set_drvdata (spi, pad);pm_runtime_enable (&spi->dev);return 0 ;
drivers/input/keyboard/atkbd.c +8 -0
@@ -1939,6 +1939,14 @@ static const struct dmi_system_id atkbd_dmi_quirk_table[] __initconst = { }, .callback = atkbd_deactivate_fixup, }, + { + /* Xiaomi Book Pro 14 (TM2424) */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "XIAOMI"), + DMI_MATCH(DMI_PRODUCT_NAME, "Xiaomi Book Pro 14"), + }, + .callback = atkbd_deactivate_fixup, + }, { } };
drivers/input/misc/ims-pcu.c +2 -3
@@ -964,9 +964,10 @@ static int ims_pcu_handle_firmware_update(struct ims_pcu *pcu,return retval; } -static void ims_pcu_process_async_firmware (const struct firmware *fw, +static void ims_pcu_process_async_firmware (const struct firmware *_fw,void *context) { + const struct firmware *fw __free(firmware) = _fw;struct ims_pcu *pcu = context;int error;
@@ -987,8 +988,6 @@ static void ims_pcu_process_async_firmware(const struct firmware *fw,ims_pcu_handle_firmware_update (pcu, fw);mutex_unlock (&pcu->cmd_mutex); -release_firmware (fw); - out:complete (&pcu->async_firmware_done); }
drivers/input/mouse/focaltech.c +1 -1
@@ -197,7 +197,7 @@ static void focaltech_process_rel_packet(struct psmouse *psmouse, {struct focaltech_data *priv = psmouse->private;struct focaltech_hw_state *state = &priv->state; -int finger1, finger2; +unsigned int finger1, finger2; state->pressed = packet[0 ] >>7 ; finger1 = ((packet[0 ] >>4 ) &0x7 ) -1 ;
drivers/input/rmi4/rmi_f54.c +32 -11
104 lines not on this page · raw message
drivers/input/rmi4/rmi_f55.c +2 -2
@@ -54,10 +54,10 @@ static int rmi_f55_detect(struct rmi_function *fn) f55->num_tx_electrodes = f55->qry[F55_NUM_TX_OFFSET ]; f55->cfg_num_rx_electrodes = f55->num_rx_electrodes; - f55->cfg_num_tx_electrodes = f55->num_rx_electrodes; + f55->cfg_num_tx_electrodes = f55->num_tx_electrodes; drv_data->num_rx_electrodes = f55->cfg_num_rx_electrodes; - drv_data->num_tx_electrodes = f55->cfg_num_rx_electrodes; + drv_data->num_tx_electrodes = f55->cfg_num_tx_electrodes;if (f55->qry[F55_PHYS_CHAR_OFFSET ] &F55_CAP_SENSOR_ASSIGN ) {int i, total;
drivers/input/touchscreen/mms114.c +17 -4
@@ -196,7 +196,9 @@ static irqreturn_t mms114_interrupt(int irq, void *dev_id)struct mms114_data *data = dev_id;struct input_dev *input_dev = data->input_dev;struct mms114_touch touch[MMS114_MAX_TOUCH ]; +struct mms114_touch *t;int packet_size; +int event_size;int touch_size;int index;int error;
@@ -212,19 +214,30 @@ static irqreturn_t mms114_interrupt(int irq, void *dev_id)if (packet_size <=0 ) goto out; +if (packet_size >sizeof (touch)) { +dev_err (&data->client->dev,"Invalid packet size %d (max %zu)\n" , + packet_size,sizeof (touch)); + goto out; + } +/* MMS136 has slightly different event size */ if (data->type ==TYPE_MMS134S || data->type ==TYPE_MMS136 ) - touch_size = packet_size /MMS136_EVENT_SIZE ; + event_size =MMS136_EVENT_SIZE ;else - touch_size = packet_size /MMS114_EVENT_SIZE ; + event_size =MMS114_EVENT_SIZE ; + + touch_size = packet_size / event_size; error =__mms114_read_reg (data,MMS114_INFORMATION , packet_size, (u8 *)touch);if (error <0 ) goto out; -for (index =0 ; index < touch_size; index++) -mms114_process_mt (data, touch + index); +for (index =0 ; index < touch_size; index++) { + t = (struct mms114_touch *)((u8 *)touch + index * event_size); + +mms114_process_mt (data, t); + }input_mt_report_pointer_emulation (data->input_dev, true);input_sync (data->input_dev);
drivers/input/touchscreen/sur40.c +13 -10
@@ -725,21 +725,13 @@ static int sur40_probe(struct usb_interface *interface, goto err_free_input; } -/* register the polled input device */ - error =input_register_device (input); -if (error) { -dev_err (&interface->dev, -"Unable to register polled input device." ); - goto err_free_buffer; - } -/* register the video master device */ snprintf (sur40->v4l2.name,sizeof (sur40->v4l2.name),"%s" ,DRIVER_LONG ); error =v4l2_device_register (sur40->dev, &sur40->v4l2);if (error) {dev_err (&interface->dev,"Unable to register video master device." ); - goto err_unreg_v4l2; + goto err_free_buffer; }/* initialize the lock and subdevice */
@@ -795,6 +787,14 @@ static int sur40_probe(struct usb_interface *interface,if (error) {dev_err (&interface->dev,"Unable to register video subdevice." ); + goto err_free_ctrl; + } + +/* register the polled input device */ + error =input_register_device (input); +if (error) { +dev_err (&interface->dev, +"Unable to register polled input device." ); goto err_unreg_video; }
@@ -806,6 +806,8 @@ static int sur40_probe(struct usb_interface *interface, err_unreg_video:video_unregister_device (&sur40->vdev); +err_free_ctrl: +v4l2_ctrl_handler_free (&sur40->hdl); err_unreg_v4l2:v4l2_device_unregister (&sur40->v4l2); err_free_buffer:
@@ -823,11 +825,12 @@ static void sur40_disconnect(struct usb_interface *interface) {struct sur40_state *sur40 =usb_get_intfdata (interface); +input_unregister_device (sur40->input); +v4l2_ctrl_handler_free (&sur40->hdl);video_unregister_device (&sur40->vdev);v4l2_device_unregister (&sur40->v4l2); -input_unregister_device (sur40->input);kfree (sur40->bulk_in_buffer);kfree (sur40);
drivers/iommu/amd/iommu.c +2 -1
@@ -1395,7 +1395,8 @@ static void __domain_flush_pages(struct protection_domain *domain,static void domain_flush_pages (struct protection_domain *domain,u64 address,size_t size,int pde) { -if (likely (!amd_iommu_np_cache)) { +if (likely (!amd_iommu_np_cache) || + size >= (1ULL <<52 )) {__domain_flush_pages (domain, address, size, pde);return ; }
drivers/md/dm-bufio.c +9 -0
@@ -623,6 +623,7 @@ static void bio_complete(struct bio *bio) {struct dm_buffer *b = bio->bi_private;blk_status_t status = bio->bi_status; +bio_uninit (bio);kfree (bio); b->end_io (b, status);
@@ -655,6 +656,7 @@ static void use_bio(struct dm_buffer *b, enum req_op op, sector_t sector, do { unsigned int this_step = min((unsigned int)(PAGE_SIZE - offset_in_page(ptr)), len); + if (!bio_add_page(bio, virt_to_page(ptr), this_step, offset_in_page(ptr))) { bio_put(bio);
@@ -777,6 +779,7 @@ static void __write_dirty_buffer(struct dm_buffer *b,static void __flush_write_list (struct list_head *write_list) {struct blk_plug plug; +blk_start_plug (&plug);while (!list_empty (write_list)) { struct dm_buffer *b =
@@ -1172,6 +1175,7 @@ void dm_bufio_prefetch(struct dm_bufio_client *c,for (; n_blocks--; block++) {int need_submit;struct dm_buffer *b; + b =__bufio_new (c, block,NF_PREFETCH , &need_submit, &write_list);if (unlikely (!list_empty (&write_list))) {
@@ -1458,6 +1462,7 @@ void dm_bufio_release_move(struct dm_buffer *b, sector_t new_block)__link_buffer (b, new_block,LIST_DIRTY ); }else {sector_t old_block; +wait_on_bit_lock_io (&b->state,B_WRITING ,TASK_UNINTERRUPTIBLE );/*
@@ -1548,6 +1553,7 @@ EXPORT_SYMBOL_GPL(dm_bufio_get_block_size);sector_t dm_bufio_get_device_size (struct dm_bufio_client *c) {sector_t s =bdev_nr_sectors (c->bdev); +if (s >= c->start) s -= c->start;else
@@ -1663,10 +1669,12 @@ static bool __try_evict_buffer(struct dm_buffer *b, gfp_t gfp)static unsigned long get_retain_buffers (struct dm_bufio_client *c) {unsigned long retain_bytes =READ_ONCE (dm_bufio_retain_bytes); +if (likely (c->sectors_per_block_bits >=0 )) retain_bytes >>= c->sectors_per_block_bits +SECTOR_SHIFT ;else retain_bytes /= c->block_size; +return retain_bytes; }
@@ -1802,6 +1810,7 @@ struct dm_bufio_client *dm_bufio_client_create(struct block_device *bdev, unsignif (block_size <=KMALLOC_MAX_SIZE && (block_size <PAGE_SIZE || !is_power_of_2 (block_size))) {unsigned int align =min (1U <<__ffs (block_size), (unsigned int )PAGE_SIZE ); +snprintf (slab_name,sizeof slab_name,"dm_bufio_cache-%u" , block_size); c->slab_cache =kmem_cache_create (slab_name, block_size, align,SLAB_RECLAIM_ACCOUNT ,NULL );
drivers/md/dm-cache-metadata.c +6 -0
@@ -533,6 +533,7 @@ static int __create_persistent_data_objects(struct dm_cache_metadata *cmd, bool may_format_device) {int r; + cmd->bm =dm_block_manager_create (cmd->bdev,DM_CACHE_METADATA_BLOCK_SIZE <<SECTOR_SHIFT ,CACHE_MAX_CONCURRENT_LOCKS );if (IS_ERR (cmd->bm)) {
@@ -566,6 +567,7 @@ static void update_flags(struct cache_disk_superblock *disk_super, flags_mutator mutator) {uint32_t sb_flags =mutator (le32_to_cpu (disk_super->flags)); + disk_super->flags =cpu_to_le32 (sb_flags); }
@@ -730,6 +732,7 @@ static int __commit_transaction(struct dm_cache_metadata *cmd,static __le64 pack_value (dm_oblock_t block,unsigned int flags) {uint64_t value =from_oblock (block); + value <<=16 ; value = value | (flags &FLAGS_MASK );return cpu_to_le64 (value);
@@ -739,6 +742,7 @@ static void unpack_value(__le64 value_le, dm_oblock_t *block, unsigned int *flag {uint64_t value =le64_to_cpu (value_le);uint64_t b = value >>16 ; + *block =to_oblock (b); *flags = value &FLAGS_MASK ; }
@@ -1258,6 +1262,7 @@ static int __insert(struct dm_cache_metadata *cmd, {int r;__le64 value =pack_value (oblock,M_VALID ); +__dm_bless_for_disk (&value); r = dm_array_set_value(&cmd->info, cmd->root, from_cblock(cblock),
@@ -1584,6 +1589,7 @@ static int __set_dirty_bits_v1(struct dm_cache_metadata *cmd, unsigned int nr_bi {int r;unsigned int i; +for (i =0 ; i < nr_bits; i++) { r =__dirty (cmd,to_cblock (i),test_bit (i, bits));if (r)
drivers/md/dm-cache-policy-internal.h +3 -0
@@ -88,6 +88,7 @@ static inline int policy_emit_config_values(struct dm_cache_policy *p, char *res unsigned int maxlen, ssize_t *sz_ptr) { ssize_t sz = *sz_ptr; +if (p->emit_config_values)return p->emit_config_values (p, result, maxlen, sz_ptr);
@@ -120,12 +121,14 @@ static inline size_t bitset_size_in_bytes(unsigned int nr_entries)static inline unsigned long *alloc_bitset (unsigned int nr_entries) {size_t s =bitset_size_in_bytes (nr_entries); +return vzalloc (s); }static inline void clear_bitset (void *bitset,unsigned int nr_entries) {size_t s =bitset_size_in_bytes (nr_entries); +memset (bitset,0 , s); }
drivers/md/dm-cache-policy-smq.c +2 -0
@@ -623,6 +623,7 @@ static void __h_insert(struct smq_hash_table *ht, unsigned int bucket, struct enstatic void h_insert (struct smq_hash_table *ht,struct entry *e) {unsigned int h =hash_64 (from_oblock (e->oblock), ht->hash_bits); +__h_insert (ht, h, e); }
@@ -1646,6 +1647,7 @@ static void smq_tick(struct dm_cache_policy *p, bool can_block)static void smq_allow_migrations (struct dm_cache_policy *p,bool allow) {struct smq_policy *mq =to_smq_policy (p); + mq->migrations_allowed = allow; }
drivers/md/dm-cache-target.c +11 -1
@@ -537,6 +537,7 @@ static unsigned int lock_level(struct bio *bio)static struct per_bio_data *get_per_bio_data (struct bio *bio) {struct per_bio_data *pb =dm_per_bio_data (bio,sizeof (struct per_bio_data )); +BUG_ON (!pb);return pb; }
@@ -693,6 +694,7 @@ static void clear_discard(struct cache *cache, dm_dblock_t b)static bool is_discarded (struct cache *cache,dm_dblock_t b) {int r; +spin_lock_irq (&cache->lock); r =test_bit (from_dblock (b), cache->discard_bitset);spin_unlock_irq (&cache->lock);
@@ -703,6 +705,7 @@ static bool is_discarded(struct cache *cache, dm_dblock_t b)static bool is_discarded_oblock (struct cache *cache,dm_oblock_t b) {int r; +spin_lock_irq (&cache->lock); r =test_bit (from_dblock (oblock_to_dblock (cache, b)), cache->discard_bitset);
@@ -815,6 +818,7 @@ static void accounted_request(struct cache *cache, struct bio *bio)static void issue_op (struct bio *bio,void *context) {struct cache *cache = context; +accounted_request (cache, bio); }
@@ -1072,6 +1076,7 @@ static void quiesce(struct dm_cache_migration *mg,static struct dm_cache_migration *ws_to_mg (struct work_struct *ws) { struct continuation *k = container_of(ws, struct continuation, ws); + return container_of(k, struct dm_cache_migration, k); }
@@ -1223,6 +1228,7 @@ static void mg_complete(struct dm_cache_migration *mg, bool success)static void mg_success (struct work_struct *ws) {struct dm_cache_migration *mg =ws_to_mg (ws); +mg_complete (mg, mg->k.input ==0 ); }
@@ -1361,6 +1367,7 @@ static void mg_copy(struct work_struct *ws)* Fallback to a real full copy after doing some tidying up. */ bool rb =bio_detain_shared (mg->cache, mg->op->oblock, mg->overwrite_bio); +BUG_ON (rb);/* An exclussive lock must _not_ be held for this block */ mg->overwrite_bio =NULL ;inc_io_migrations (mg->cache);
@@ -1469,12 +1476,15 @@ static void invalidate_complete(struct dm_cache_migration *mg, bool success)static void invalidate_completed (struct work_struct *ws) {struct dm_cache_migration *mg =ws_to_mg (ws); +invalidate_complete (mg, !mg->k.input); }static int invalidate_cblock (struct cache *cache,dm_cblock_t cblock) { -int r =policy_invalidate_mapping (cache->policy, cblock); +int r; + + r =policy_invalidate_mapping (cache->policy, cblock);if (!r) { r =dm_cache_remove_mapping (cache->cmd, cblock);if (r) {
drivers/md/dm-crypt.c +11 -9
@@ -990,20 +990,20 @@ static int crypt_iv_elephant(struct crypt_config *cc, struct dm_crypt_request *d }if (bio_data_dir (dmreq->ctx->bio_in) !=WRITE ) { -diffuser_disk_to_cpu ((u32 *)data_offset, cc->sector_size /sizeof (u32)); -diffuser_b_decrypt ((u32 *)data_offset, cc->sector_size /sizeof (u32)); -diffuser_a_decrypt ((u32 *)data_offset, cc->sector_size /sizeof (u32)); -diffuser_cpu_to_disk ((__le32 *)data_offset, cc->sector_size /sizeof (u32)); +diffuser_disk_to_cpu ((u32 *)data_offset, cc->sector_size /sizeof (u32)); +diffuser_b_decrypt ((u32 *)data_offset, cc->sector_size /sizeof (u32)); +diffuser_a_decrypt ((u32 *)data_offset, cc->sector_size /sizeof (u32)); +diffuser_cpu_to_disk ((__le32 *)data_offset, cc->sector_size /sizeof (u32)); }for (i =0 ; i < (cc->sector_size /32 ); i++)crypto_xor (data_offset + i *32 , ks,32 );if (bio_data_dir (dmreq->ctx->bio_in) ==WRITE ) { -diffuser_disk_to_cpu ((u32 *)data_offset, cc->sector_size /sizeof (u32)); -diffuser_a_encrypt ((u32 *)data_offset, cc->sector_size /sizeof (u32)); -diffuser_b_encrypt ((u32 *)data_offset, cc->sector_size /sizeof (u32)); -diffuser_cpu_to_disk ((__le32 *)data_offset, cc->sector_size /sizeof (u32)); +diffuser_disk_to_cpu ((u32 *)data_offset, cc->sector_size /sizeof (u32)); +diffuser_a_encrypt ((u32 *)data_offset, cc->sector_size /sizeof (u32)); +diffuser_b_encrypt ((u32 *)data_offset, cc->sector_size /sizeof (u32)); +diffuser_cpu_to_disk ((__le32 *)data_offset, cc->sector_size /sizeof (u32)); }kunmap_atomic (data);
@@ -1260,6 +1260,7 @@ static __le64 *org_sector_of_dmreq(struct crypt_config *cc, struct dm_crypt_request *dmreq) {u8 *ptr =iv_of_dmreq (cc, dmreq) + cc->iv_size + cc->iv_size; +return (__le64 *) ptr; }
@@ -1268,7 +1269,8 @@ static unsigned int *org_tag_of_dmreq(struct crypt_config *cc, {u8 *ptr =iv_of_dmreq (cc, dmreq) + cc->iv_size + cc->iv_size +sizeof (uint64_t ); -return (unsigned int *)ptr; + +return (unsigned int *)ptr; } static void *tag_from_dmreq(struct crypt_config *cc,
drivers/md/dm-era-target.c +8 -2
@@ -110,13 +110,14 @@ static int writeset_marked_on_disk(struct dm_disk_bitset *info, struct writeset_metadata *m, dm_block_t block, bool *result) { + int r;dm_block_t old = m->root;/* * The bitset was flushed when it was archived, so we know there'll * be no change to the root. */ -int r =dm_bitset_test_bit (info, m->root, block, &m->root, result); + r =dm_bitset_test_bit (info, m->root, block, &m->root, result);if (r) {DMERR ("%s: dm_bitset_test_bit failed" , __func__);return r;
@@ -204,6 +205,7 @@ static void sb_prepare_for_write(struct dm_block_validator *v,static int check_metadata_version (struct superblock_disk *disk) {uint32_t metadata_version =le32_to_cpu (disk->version); +if (metadata_version <MIN_ERA_VERSION || metadata_version >MAX_ERA_VERSION ) {DMERR ("Era metadata version %u found, but only versions between %u and %u supported." , metadata_version,MIN_ERA_VERSION ,MAX_ERA_VERSION );
@@ -401,6 +403,7 @@ static int ws_eq(void *context, const void *value1, const void *value2)static void setup_writeset_tree_info (struct era_metadata *md) {struct dm_btree_value_type *vt = &md->writeset_tree_info.value_type; + md->writeset_tree_info.tm = md->tm; md->writeset_tree_info.levels =1 ; vt->context = md;
@@ -411,9 +414,9 @@ static void setup_writeset_tree_info(struct era_metadata *md) }static void setup_era_array_info (struct era_metadata *md) - {struct dm_btree_value_type vt; + vt.context =NULL ; vt.size =sizeof (__le32); vt.inc =NULL ;
@@ -1378,6 +1381,7 @@ static int perform_rpc(struct era *era, struct rpc *rpc)static int in_worker0 (struct era *era,int (*fn)(struct era_metadata *)) {struct rpc rpc; + rpc.fn0 = fn; rpc.fn1 =NULL ;
@@ -1388,6 +1392,7 @@ static int in_worker1(struct era *era, int (*fn)(struct era_metadata *, void *), void *arg) { struct rpc rpc; + rpc.fn0 =NULL ; rpc.fn1 = fn; rpc.arg = arg;
@@ -1698,6 +1703,7 @@ static int era_iterate_devices(struct dm_target *ti, iterate_devices_callout_fn fn, void *data) { struct era *era = ti->private; +return fn (ti, era->origin_dev,0 ,get_dev_size (era->origin_dev), data); }
drivers/md/dm-flakey.c +2 -2
@@ -326,6 +326,7 @@ static int flakey_map(struct dm_target *ti, struct bio *bio)struct flakey_c *fc = ti->private;unsigned int elapsed;
Lines of this file are not shown. View the raw message.
drivers/md/dm-integrity.c +118 -64
182 lines not on this page · raw message
drivers/md/dm-writecache.c +38 -16
54 lines not on this page · raw message
drivers/md/persistent-data/dm-block-manager.c +5 -2
Lines of this file are not shown. View the raw message.
drivers/md/persistent-data/dm-btree-internal.h +1 -0
Lines of this file are not shown. View the raw message.
drivers/md/persistent-data/dm-btree-remove.c +5 -0
Lines of this file are not shown. View the raw message.
drivers/md/persistent-data/dm-btree-spine.c +2 -4
Lines of this file are not shown. View the raw message.
drivers/md/persistent-data/dm-space-map-common.c +6 -0
Lines of this file are not shown. View the raw message.
drivers/md/persistent-data/dm-space-map-disk.c +6 -6
Lines of this file are not shown. View the raw message.
drivers/md/persistent-data/dm-space-map-metadata.c +3 -0
Lines of this file are not shown. View the raw message.
drivers/md/persistent-data/dm-transaction-manager.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/media/i2c/imx219.c +18 -29
47 lines not on this page · raw message
drivers/net/can/rcar/rcar_canfd.c +110 -67
177 lines not on this page · raw message
drivers/net/ethernet/cadence/macb_main.c +20 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ice/ice_ethtool.c +5 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ice/ice_vf_lib.c +27 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ice/ice_vf_lib_private.h +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ice/ice_virtchnl.c +21 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/igc/igc_main.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/af/rvu.c +7 -7
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/af/rvu.h +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/af/rvu_cn10k.c +9 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c +6 -8
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c +8 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlxsw/spectrum.c +91 -1
92 lines not on this page · raw message
drivers/net/ethernet/microsoft/mana/mana_en.c +13 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/ti/am65-cpsw-nuss.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/veth.c +45 -33
78 lines not on this page · raw message
drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c +15 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h +6 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c +42 -3
45 lines not on this page · raw message
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c +6 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c +7 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.h +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c +3 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/marvell/libertas_tf/main.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/pinctrl/cirrus/pinctrl-lochnagar.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/pinctrl/intel/pinctrl-cherryview.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/pinctrl/intel/pinctrl-lynxpoint.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/pinctrl/mediatek/pinctrl-moore.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/pinctrl/mediatek/pinctrl-mtk-common.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/pinctrl/mediatek/pinctrl-paris.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/usb/gadget/function/f_tcm.c +164 -28
192 lines not on this page · raw message
drivers/usb/typec/ucsi/ucsi.c +64 -31
95 lines not on this page · raw message
drivers/vdpa/vdpa_user/iova_domain.c +105 -58
163 lines not on this page · raw message
drivers/video/fbdev/core/bitblit.c +62 -62
124 lines not on this page · raw message
drivers/video/fbdev/core/fbcon.c +205 -215
420 lines not on this page · raw message
drivers/video/fbdev/core/fbcon_ccw.c +74 -74
148 lines not on this page · raw message
drivers/video/fbdev/core/fbcon_cw.c +74 -74
148 lines not on this page · raw message
drivers/video/fbdev/core/fbcon_rotate.c +22 -22
44 lines not on this page · raw message
drivers/video/fbdev/core/fbcon_rotate.h +3 -3
Lines of this file are not shown. View the raw message.
drivers/video/fbdev/core/fbcon_ud.c +82 -82
164 lines not on this page · raw message
fs/ceph/caps.c +43 -27
70 lines not on this page · raw message
fs/ceph/mds_client.c +33 -18
51 lines not on this page · raw message
fs/erofs/fscache.c +20 -24
44 lines not on this page · raw message
fs/erofs/internal.h +32 -55
87 lines not on this page · raw message
fs/namei.c +43 -0
43 lines not on this page · raw message
fs/ntfs3/index.c +34 -10
44 lines not on this page · raw message
fs/smb/server/smb2pdu.c +37 -41
78 lines not on this page · raw message
fs/smb/server/smb_common.c +33 -10
43 lines not on this page · raw message
include/linux/overflow.h +68 -0
68 lines not on this page · raw message
include/net/bluetooth/hci.h +0 -114
114 lines not on this page · raw message
include/net/bluetooth/hci_core.h +3 -45
48 lines not on this page · raw message
include/uapi/linux/netfilter/nf_tables.h +7 -3
Lines of this file are not shown. View the raw message.
kernel/audit_watch.c +27 -15
42 lines not on this page · raw message
kernel/taskstats.c +35 -32
67 lines not on this page · raw message
lib/bootconfig.c +65 -0
65 lines not on this page · raw message
mm/huge_memory.c +29 -14
43 lines not on this page · raw message
mm/migrate_device.c +23 -19
42 lines not on this page · raw message
mm/mm_init.c +150 -0
150 lines not on this page · raw message
mm/page_alloc.c +16 -144
160 lines not on this page · raw message
mm/vmalloc.c +63 -6
69 lines not on this page · raw message
net/bluetooth/hci_core.c +22 -123
145 lines not on this page · raw message
net/bluetooth/hci_event.c +2 -148
150 lines not on this page · raw message
net/bluetooth/hci_sync.c +178 -187
365 lines not on this page · raw message
net/bluetooth/mgmt.c +197 -170
367 lines not on this page · raw message
net/bluetooth/mgmt_util.c +26 -21
47 lines not on this page · raw message
net/bridge/netfilter/nft_reject_bridge.c +1 -2
Lines of this file are not shown. View the raw message.
net/core/pktgen.c +24 -19
43 lines not on this page · raw message
net/mptcp/pm_userspace.c +43 -44
87 lines not on this page · raw message
net/netfilter/ipset/ip_set_bitmap_gen.h +1 -1
Lines of this file are not shown. View the raw message.
net/netfilter/nf_conntrack_proto_sctp.c +19 -29
48 lines not on this page · raw message
net/netfilter/nf_conntrack_proto_tcp.c +88 -44
132 lines not on this page · raw message
net/netfilter/nft_objref.c +40 -1
41 lines not on this page · raw message
net/netfilter/nft_set_pipapo.c +155 -98
253 lines not on this page · raw message
net/sched/act_ct.c +31 -10
41 lines not on this page · raw message
net/xfrm/espintcp.c +14 -28
42 lines not on this page · raw message
security/security.c +46 -1
47 lines not on this page · raw message
security/selinux/hooks.c +45 -50
95 lines not on this page · raw message
security/smack/smack_lsm.c +33 -37
70 lines not on this page · raw message
sound/pci/hda/patch_hdmi.c +42 -6
48 lines not on this page · raw message
sound/soc/mediatek/mt8183/mt8183-afe-pcm.c +8 -4
Lines of this file are not shown. View the raw message.
sound/soc/mediatek/mt8192/mt8192-afe-pcm.c +44 -74
118 lines not on this page · raw message
tools/testing/selftests/net/mptcp/mptcp_join.sh +2 -2
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.
Greg Kroah-Hartman
maintainerI'm announcing the release of the 6.1.184 kernel.
All users of the 6.1 kernel series must upgrade.
The updated 6.1.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.1.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 | 2 arch/arm64/boot/dts/nvidia/tegra194.dtsi | 2 arch/arm64/kvm/arm.c | 2 arch/mips/kvm/mips.c | 2 arch/openrisc/include/asm/processor.h | 2 arch/openrisc/kernel/signal.c | 5 arch/powerpc/kvm/powerpc.c | 2 arch/powerpc/platforms/pseries/lparcfg.c | 2 arch/powerpc/platforms/pseries/pci.c | 2 arch/riscv/include/asm/pgtable-32.h | 3 arch/riscv/include/asm/pgtable.h | 1 arch/riscv/kvm/vcpu.c | 2 arch/riscv/mm/init.c | 11 arch/s390/include/asm/cpu_mcf.h | 112 --- arch/s390/kernel/Makefile | 2 arch/s390/kernel/perf_cpum_cf.c | 272 ++++++++- arch/s390/kernel/perf_cpum_cf_common.c | 233 ------- arch/s390/kernel/perf_pai_ext.c | 2 arch/s390/kvm/kvm-s390.c | 2 arch/s390/kvm/pci.c | 86 ++ arch/s390/kvm/pci.h | 2 arch/x86/kernel/cpu/resctrl/rdtgroup.c | 12 arch/x86/kvm/lapic.c | 2 arch/x86/kvm/svm/sev.c | 34 - arch/x86/kvm/svm/svm.h | 1 arch/x86/kvm/x86.c | 4 block/genhd.c | 12 crypto/ccm.c | 2 drivers/ata/libata-core.c | 18 drivers/ata/libata-scsi.c | 2 drivers/ata/libata.h | 9 drivers/bluetooth/btmrvl_main.c | 9 drivers/bluetooth/btrsi.c | 1 drivers/bluetooth/btsdio.c | 8 drivers/bluetooth/btusb.c | 5 drivers/bluetooth/hci_ldisc.c | 6 drivers/bluetooth/hci_serdev.c | 5 drivers/bluetooth/hci_uart.h | 1 drivers/bluetooth/hci_vhci.c | 10 drivers/bluetooth/virtio_bt.c | 2 drivers/char/ipmi/ipmi_msghandler.c | 8 drivers/crypto/qce/core.c | 2 drivers/dma-buf/udmabuf.c | 21 drivers/fpga/dfl-afu-main.c | 3 drivers/gpio/gpio-mt7621.c | 2 drivers/gpio/gpio-mvebu.c | 4 drivers/gpio/gpio-pxa.c | 4 drivers/gpio/gpio-tegra.c | 18 drivers/gpio/gpio-vf610.c | 4 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 30 - drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 21 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | 30 - drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 11 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c | 26 drivers/gpu/drm/amd/pm/amdgpu_dpm.c | 27 drivers/gpu/drm/amd/pm/amdgpu_pm.c | 16 drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h | 6 drivers/gpu/drm/bridge/cdns-dsi.c | 11 drivers/gpu/drm/drm_connector.c | 12 drivers/gpu/drm/i915/display/intel_display_core.h | 3 drivers/gpu/drm/i915/display/intel_hdcp.c | 22 drivers/gpu/drm/i915/display/intel_vrr.c | 10 drivers/gpu/drm/i915/i915_driver.c | 3 drivers/gpu/drm/radeon/radeon_kms.c | 1 drivers/gpu/drm/tegra/fb.c | 8 drivers/i2c/busses/i2c-bcm-iproc.c | 11 drivers/i2c/busses/i2c-davinci.c | 4 drivers/i2c/busses/i2c-imx.c | 126 ++-- drivers/infiniband/sw/siw/siw_qp_tx.c | 17 drivers/input/joystick/iforce/iforce-packets.c | 11 drivers/input/joystick/iforce/iforce-usb.c | 3 drivers/input/joystick/psxpad-spi.c | 1 drivers/input/keyboard/atkbd.c | 8 drivers/input/misc/ims-pcu.c | 5 drivers/input/mouse/focaltech.c | 2 drivers/input/rmi4/rmi_f54.c | 43 + drivers/input/rmi4/rmi_f55.c | 4 drivers/input/touchscreen/mms114.c | 21 drivers/input/touchscreen/sur40.c | 23 drivers/iommu/amd/iommu.c | 3 drivers/md/dm-bufio.c | 9 drivers/md/dm-cache-metadata.c | 6 drivers/md/dm-cache-policy-internal.h | 3 drivers/md/dm-cache-policy-smq.c | 2 drivers/md/dm-cache-target.c | 12 drivers/md/dm-crypt.c | 20 drivers/md/dm-era-target.c | 10 drivers/md/dm-flakey.c | 4 drivers/md/dm-integrity.c | 182 +++--- drivers/md/dm-io.c | 27 drivers/md/dm-ioctl.c | 18 drivers/md/dm-kcopyd.c | 2 drivers/md/dm-log.c | 6 drivers/md/dm-mpath.c | 3 drivers/md/dm-rq.c | 2 drivers/md/dm-snap-persistent.c | 23 drivers/md/dm-snap.c | 10 drivers/md/dm-stats.c | 22 drivers/md/dm-stripe.c | 10 drivers/md/dm-sysfs.c | 1 drivers/md/dm-table.c | 3 drivers/md/dm-thin-metadata.c | 5 drivers/md/dm-thin.c | 5 drivers/md/dm-verity-target.c | 24 drivers/md/dm-verity.h | 2 drivers/md/dm-writecache.c | 54 + drivers/md/persistent-data/dm-array.c | 4 drivers/md/persistent-data/dm-bitset.c | 1 drivers/md/persistent-data/dm-block-manager.c | 7 drivers/md/persistent-data/dm-btree-internal.h | 1 drivers/md/persistent-data/dm-btree-remove.c | 5 drivers/md/persistent-data/dm-btree-spine.c | 6 drivers/md/persistent-data/dm-btree.c | 10 drivers/md/persistent-data/dm-space-map-common.c | 6 drivers/md/persistent-data/dm-space-map-disk.c | 12 drivers/md/persistent-data/dm-space-map-metadata.c | 3 drivers/md/persistent-data/dm-transaction-manager.c | 1 drivers/media/i2c/imx219.c | 47 - drivers/misc/mei/bus.c | 16 drivers/mmc/host/omap_hsmmc.c | 2 drivers/mmc/host/sdhci.c | 16 drivers/mmc/host/sdhci.h | 2 drivers/mmc/host/vub300.c | 36 - drivers/mtd/maps/vmu-flash.c | 8 drivers/net/bonding/bond_main.c | 2 drivers/net/can/rcar/rcar_canfd.c | 177 +++-- drivers/net/can/usb/gs_usb.c | 4 drivers/net/ethernet/cadence/macb_main.c | 22 drivers/net/ethernet/intel/ice/ice_ethtool.c | 10 drivers/net/ethernet/intel/ice/ice_vf_lib.c | 27 drivers/net/ethernet/intel/ice/ice_vf_lib_private.h | 1 drivers/net/ethernet/intel/ice/ice_virtchnl.c | 21 drivers/net/ethernet/intel/igc/igc_main.c | 1 drivers/net/ethernet/marvell/octeontx2/af/rvu.c | 14 drivers/net/ethernet/marvell/octeontx2/af/rvu.h | 1 drivers/net/ethernet/marvell/octeontx2/af/rvu_cn10k.c | 9 drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c | 14 drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c | 13 drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 92 +++ drivers/net/ethernet/microsoft/mana/mana_en.c | 13 drivers/net/ethernet/ti/am65-cpsw-nuss.c | 2 drivers/net/ipa/ipa_smp2p.c | 30 - drivers/net/ipvlan/ipvlan_main.c | 4 drivers/net/macvlan.c | 4 drivers/net/thunderbolt.c | 8 drivers/net/veth.c | 78 +- drivers/net/wireless/ath/ath6kl/txrx.c | 2 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c | 16 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h | 6 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c | 45 + drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c | 6 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 8 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.h | 1 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c | 3 drivers/net/wireless/marvell/libertas_tf/main.c | 2 drivers/pinctrl/cirrus/pinctrl-lochnagar.c | 2 drivers/pinctrl/core.c | 15 drivers/pinctrl/intel/pinctrl-cherryview.c | 4 drivers/pinctrl/intel/pinctrl-intel.c | 4 drivers/pinctrl/intel/pinctrl-lynxpoint.c | 4 drivers/pinctrl/mediatek/pinctrl-moore.c | 4 drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 4 drivers/pinctrl/mediatek/pinctrl-paris.c | 4 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c | 4 drivers/pinctrl/pinctrl-as3722.c | 4 drivers/pinctrl/pinctrl-axp209.c | 2 drivers/pinctrl/pinctrl-ingenic.c | 11 drivers/pinctrl/pinctrl-ocelot.c | 4 drivers/pinctrl/pinctrl-rk805.c | 4 drivers/pinctrl/pinctrl-st.c | 4 drivers/pinctrl/renesas/gpio.c | 4 drivers/pinctrl/stm32/pinctrl-stm32.c | 4 drivers/pinctrl/vt8500/pinctrl-wmt.c | 4 drivers/remoteproc/qcom_common.c | 31 - drivers/remoteproc/qcom_common.h | 5 drivers/remoteproc/qcom_q6v5_pas.c | 20 drivers/s390/cio/vfio_ccw_async.c | 16 drivers/s390/cio/vfio_ccw_chp.c | 15 drivers/s390/cio/vfio_ccw_cp.c | 17 drivers/s390/cio/vfio_ccw_ops.c | 7 drivers/s390/net/qeth_core_main.c | 3 drivers/s390/net/qeth_l3_main.c | 5 drivers/soc/imx/imx8m-blk-ctrl.c | 27 drivers/thunderbolt/xdomain.c | 40 + drivers/tty/serial/max310x.c | 20 drivers/usb/gadget/function/f_tcm.c | 192 +++++- drivers/usb/gadget/function/tcm.h | 13 drivers/usb/musb/omap2430.c | 25 drivers/usb/typec/ucsi/ucsi.c | 95 ++- drivers/usb/typec/ucsi/ucsi.h | 1 drivers/vdpa/vdpa_user/iova_domain.c | 163 +++-- drivers/vdpa/vdpa_user/iova_domain.h | 13 drivers/vdpa/vdpa_user/vduse_dev.c | 16 drivers/video/fbdev/core/bitblit.c | 124 ++-- drivers/video/fbdev/core/fbcon.c | 420 ++++++-------- drivers/video/fbdev/core/fbcon.h | 6 drivers/video/fbdev/core/fbcon_ccw.c | 148 ++-- drivers/video/fbdev/core/fbcon_cw.c | 148 ++-- drivers/video/fbdev/core/fbcon_rotate.c | 44 - drivers/video/fbdev/core/fbcon_rotate.h | 6 drivers/video/fbdev/core/fbcon_ud.c | 164 ++--- drivers/video/fbdev/core/softcursor.c | 18 drivers/video/fbdev/core/tileblit.c | 28 fs/9p/vfs_inode.c | 9 fs/binfmt_elf.c | 4 fs/binfmt_elf_fdpic.c | 4 fs/binfmt_misc.c | 14 fs/ceph/addr.c | 20 fs/ceph/cache.c | 2 fs/ceph/caps.c | 70 +- fs/ceph/debugfs.c | 4 fs/ceph/dir.c | 24 fs/ceph/export.c | 10 fs/ceph/file.c | 35 - fs/ceph/inode.c | 14 fs/ceph/ioctl.c | 8 fs/ceph/mds_client.c | 51 + fs/ceph/mds_client.h | 5 fs/ceph/mdsmap.c | 5 fs/ceph/snap.c | 18 fs/ceph/super.c | 22 fs/ceph/super.h | 13 fs/ceph/xattr.c | 12 fs/crypto/policy.c | 2 fs/erofs/Kconfig | 15 fs/erofs/decompressor_lzma.c | 3 fs/erofs/fscache.c | 44 - fs/erofs/internal.h | 87 +- fs/exec.c | 6 fs/f2fs/data.c | 2 fs/namei.c | 43 + fs/ntfs3/index.c | 44 + fs/overlayfs/copy_up.c | 12 fs/smb/server/auth.c | 4 fs/smb/server/connection.c | 23 fs/smb/server/connection.h | 5 fs/smb/server/oplock.c | 8 fs/smb/server/smb2pdu.c | 78 +- fs/smb/server/smb2pdu.h | 9 fs/smb/server/smb_common.c | 43 + fs/smb/server/smb_common.h | 15 fs/smb/server/smbacl.c | 27 fs/super.c | 19 fs/xfs/libxfs/xfs_sb.c | 4 fs/xfs/xfs_dquot.c | 3 fs/xfs/xfs_dquot_item_recover.c | 2 include/drm/drm_connector.h | 6 include/drm/drm_displayid.h | 2 include/linux/audit.h | 6 include/linux/audit_arch.h | 12 include/linux/bootconfig.h | 3 include/linux/bpf_lsm.h | 4 include/linux/ceph/ceph_debug.h | 38 + include/linux/ceph/mdsmap.h | 5 include/linux/firmware.h | 3 include/linux/fs.h | 33 + include/linux/kvm_host.h | 1 include/linux/lsm_hooks.h | 1 include/linux/mm.h | 12 include/linux/mmc/sdio_ids.h | 2 include/linux/namei.h | 1 include/linux/overflow.h | 68 ++ include/linux/pinctrl/consumer.h | 13 include/linux/sched/user.h | 2 include/linux/thunderbolt.h | 3 include/linux/vfio_pci_core.h | 13 include/net/bluetooth/hci.h | 114 --- include/net/bluetooth/hci_core.h | 48 - include/net/bluetooth/hci_sync.h | 4 include/net/gro.h | 1 include/net/ip_vs.h | 7 include/net/netfilter/nf_tables.h | 11 include/net/netfilter/nft_fib.h | 4 include/net/netfilter/nft_meta.h | 3 include/net/netfilter/nft_reject.h | 3 include/uapi/linux/ip_vs.h | 6 include/uapi/linux/netfilter/nf_tables.h | 10 include/uapi/linux/virtio_bt.h | 1 init/main.c | 39 - kernel/audit.c | 2 kernel/audit.h | 32 - kernel/audit_fsnotify.c | 39 - kernel/audit_tree.c | 2 kernel/audit_watch.c | 42 - kernel/auditfilter.c | 17 kernel/auditsc.c | 6 kernel/bpf/bpf_inode_storage.c | 9 kernel/fork.c | 20 kernel/locking/spinlock_rt.c | 27 kernel/taskstats.c | 67 +- kernel/trace/ftrace.c | 6 kernel/trace/ring_buffer.c | 23 kernel/trace/trace_osnoise.c | 4 kernel/trace/trace_probe.c | 2 kernel/user.c | 1 lib/bootconfig.c | 65 ++ lib/compat_audit.c | 12 mm/huge_memory.c | 43 - mm/internal.h | 4 mm/madvise.c | 3 mm/migrate_device.c | 42 - mm/mincore.c | 3 mm/mm_init.c | 150 +++++ mm/page_alloc.c | 160 ----- mm/pagewalk.c | 10 mm/sparse-vmemmap.c | 3 mm/vmalloc.c | 69 ++ net/bluetooth/hci_conn.c | 24 net/bluetooth/hci_core.c | 145 ---- net/bluetooth/hci_event.c | 150 ----- net/bluetooth/hci_sock.c | 11 net/bluetooth/hci_sync.c | 365 +++++------- net/bluetooth/l2cap_core.c | 21 net/bluetooth/mgmt.c | 367 ++++++------ net/bluetooth/mgmt_util.c | 47 - net/bluetooth/mgmt_util.h | 8 net/bridge/netfilter/nft_reject_bridge.c | 3 net/ceph/cls_lock_client.c | 21 net/ceph/decode.c | 18 net/ceph/osdmap.c | 9 net/core/gro.c | 31 + net/core/pktgen.c | 43 - net/ipv4/netfilter/nft_dup_ipv4.c | 4 net/ipv4/tcp_bpf.c | 21 net/ipv4/udp_offload.c | 29 net/ipv6/ip6_tunnel.c | 3 net/ipv6/netfilter/nft_dup_ipv6.c | 4 net/mptcp/options.c | 8 net/mptcp/pm.c | 9 net/mptcp/pm_netlink.c | 29 net/mptcp/pm_userspace.c | 87 +- net/mptcp/protocol.h | 6 net/netfilter/ipset/ip_set_bitmap_gen.h | 2 net/netfilter/ipset/ip_set_core.c | 19 net/netfilter/ipset/ip_set_list_set.c | 10 net/netfilter/ipvs/ip_vs_conn.c | 4 net/netfilter/ipvs/ip_vs_core.c | 6 net/netfilter/ipvs/ip_vs_ctl.c | 4 net/netfilter/ipvs/ip_vs_dh.c | 4 net/netfilter/ipvs/ip_vs_lblc.c | 2 net/netfilter/ipvs/ip_vs_lblcr.c | 8 net/netfilter/nf_conntrack_proto.c | 6 net/netfilter/nf_conntrack_proto_sctp.c | 48 - net/netfilter/nf_conntrack_proto_tcp.c | 132 ++-- net/netfilter/nf_conntrack_sip.c | 10 net/netfilter/nf_flow_table_core.c | 7 net/netfilter/nf_tables_api.c | 6 net/netfilter/nf_tables_offload.c | 2 net/netfilter/nft_bitwise.c | 38 - net/netfilter/nft_byteorder.c | 2 net/netfilter/nft_cmp.c | 6 net/netfilter/nft_compat.c | 6 net/netfilter/nft_ct.c | 2 net/netfilter/nft_dup_netdev.c | 2 net/netfilter/nft_dynset.c | 4 net/netfilter/nft_exthdr.c | 2 net/netfilter/nft_fib.c | 3 net/netfilter/nft_flow_offload.c | 3 net/netfilter/nft_fwd_netdev.c | 9 net/netfilter/nft_hash.c | 2 net/netfilter/nft_immediate.c | 3 net/netfilter/nft_lookup.c | 5 net/netfilter/nft_masq.c | 7 net/netfilter/nft_meta.c | 8 net/netfilter/nft_nat.c | 11 net/netfilter/nft_objref.c | 41 + net/netfilter/nft_osf.c | 3 net/netfilter/nft_payload.c | 2 net/netfilter/nft_queue.c | 5 net/netfilter/nft_range.c | 2 net/netfilter/nft_redir.c | 7 net/netfilter/nft_reject.c | 3 net/netfilter/nft_reject_inet.c | 3 net/netfilter/nft_reject_netdev.c | 3 net/netfilter/nft_rt.c | 3 net/netfilter/nft_set_pipapo.c | 253 +++++--- net/netfilter/nft_set_pipapo.h | 8 net/netfilter/nft_socket.c | 3 net/netfilter/nft_synproxy.c | 3 net/netfilter/nft_tproxy.c | 7 net/netfilter/nft_xfrm.c | 3 net/openvswitch/conntrack.c | 39 - net/packet/af_packet.c | 7 net/rxrpc/call_accept.c | 27 net/sched/act_ct.c | 41 + net/sched/cls_u32.c | 3 net/sched/sch_api.c | 24 net/sched/sch_cake.c | 2 net/sched/sch_taprio.c | 12 net/sctp/protocol.c | 20 net/sctp/sysctl.c | 9 net/smc/smc_tx.c | 6 net/tipc/socket.c | 6 net/tls/tls_device.c | 4 net/tls/tls_sw.c | 5 net/x25/af_x25.c | 4 net/x25/x25_timer.c | 25 net/xfrm/espintcp.c | 42 - security/apparmor/include/net.h | 6 security/apparmor/lsm.c | 38 - security/apparmor/net.c | 2 security/bpf/hooks.c | 3 security/security.c | 47 + security/selinux/hooks.c | 95 +-- security/selinux/include/objsec.h | 5 security/selinux/netlabel.c | 23 security/selinux/ss/policydb.c | 31 + security/selinux/ss/services.c | 4 security/smack/smack.h | 5 security/smack/smack_lsm.c | 70 +- security/smack/smack_netfilter.c | 4 sound/hda/hdac_regmap.c | 4 sound/pci/hda/patch_conexant.c | 3 sound/pci/hda/patch_hdmi.c | 48 + sound/soc/codecs/cs35l41-lib.c | 2 sound/soc/codecs/cs4265.c | 4 sound/soc/codecs/lpass-wsa-macro.c | 8 sound/soc/fsl/fsl_sai.c | 29 sound/soc/mediatek/mt8183/mt8183-afe-pcm.c | 12 sound/soc/mediatek/mt8192/mt8192-afe-pcm.c | 118 +-- sound/soc/sof/ipc3-control.c | 34 - sound/soc/xilinx/xlnx_formatter_pcm.c | 10 tools/testing/selftests/net/mptcp/mptcp_join.sh | 4 virt/kvm/kvm_main.c | 3 424 files changed, 5759 insertions(+), 4185 deletions(-)
Aldo Ariel Panzardo (1):
net/sched: serialize qdisc_rtab_list against concurrent get/put
Alex Williamson (1):
vfio/pci: Fix racy bitfields and tighten struct layout
Alexander Usyskin (1):
mei: bus: access mei_device under device_lock on cleanup
Alexandre Ghiti (1):
riscv: Don't use PGD entries for the linear mapping
Alexey Velichayshiy (1):
netfilter: nf_tables_offload: suppress WARN_ON_ONCE for ENOMEM in abort path
Ali Ahmet Memis (1):
openrisc: signal: do not restore privileged SR bits on sigreturn
Amir Goldstein (2):
fsnotify: opt-in for permission events at file open time
fs: don't block write during exec on pre-content watched files
Andrei Kuchynski (2):
usb: typec: ucsi: Fix race condition and ordering in port unregistration
usb: typec: ucsi: Correct teardown ordering in ucsi_init() error path
Andy Shevchenko (1):
libceph: Amend checking to fix make W=1 build breakage
Aneesh Kumar K.V (1):
mm/vmemmap/devdax: fix kernel crash when probing devdax devices
AngeloGioacchino Del Regno (3):
ASoC: mediatek: mt8192-afe-pcm: Convert to devm_pm_runtime_enable()
ASoC: mediatek: mt8192-afe-pcm: Simplify with dev_err_probe()
ASoC: mediatek: Use common mtk_afe_pcm_platform with common probe cb
Bartosz Golaszewski (1):
treewide: rename pinctrl_gpio_direction_input_new()
Baul Lee (1):
net/x25: fix use-after-free of the socket by its timers
Biju Das (1):
can: rcar_canfd: Use devm_clk_get_optional() for RAM clk
Breno Leitao (3):
9p: skip nlink update in cacheless mode to fix WARN_ON
bootconfig: move xbc_snprint_cmdline() to lib/bootconfig.c
bootconfig: fix NULL-pointer arithmetic in xbc_snprint_cmdline()
Bryam Vargas (7):
selinux: require every boolean value to be defined
selinux: reject a class permission count below its inherited common
selinux: do not cancel a policy conversion that never started
Input: synaptics-rmi4 - bound the F54 report size to the allocated buffer
Input: mms114 - reject an oversized device packet size
net/sched: sch_taprio: Replace direct dequeue call with peek and qdisc_dequeue_peeked
ata: libata-core: Reject an invalid concurrent positioning ranges count
Candice Li (1):
drm/amdgpu: validate GEM_CREATE domain combinations
Casey Schaufler (1):
lsm: infrastructure management of the sock security
Cen Zhang (1):
usb: gadget: f_tcm: synchronize delayed set_alt with teardown
Chancel Liu (1):
ASoC: fsl_sai: Fix spurious BCLK on resume by clearing BYP
Chao Shi (1):
block: stop the timeout timer when releasing a never added disk
Chao Yu (1):
f2fs: fix UAF issue in f2fs_merge_page_bio()
ChenXiaoSong (3):
smb/server: rename include guard in smb_common.h smb/server: fix minimum SMB1 PDU size smb/server: fix minimum SMB2 PDU size
Chengfeng Ye (2):
Bluetooth: hci_sync: Fix advertising data UAFs
net: pktgen: fix proc entry use-after-free
Christian Brauner (3):
super: fix emergency thaw deadlock on frozen block devices
binfmt_misc: restore write access when removing an entry
binfmt_misc: use exe_file_deny_write_access() for the interpreter clone
Christoph Hellwig (1):
xfs: check v5 superblock features early
Christophe JAILLET (1):
Bluetooth: Remove usage of the deprecated ida_simple_xx() API
Chuck Lever (1):
net/tls: Fail tls_sw_splice_read() after a failed async decrypt
Crystal Wood (1):
tracing/osnoise: Call synchronize_rcu() when unregistering
Cássio Gabriel (2):
ASoC: mediatek: mt8183: Check runtime resume during probe
ASoC: mediatek: mt8192: Check runtime resume during probe
Daniel Hodges (1):
wifi: ath6kl: fix use-after-free in aggr_reset_state()
David Carlier (1):
igc: remove napi_synchronize() in igc_down()
David Hildenbrand (1):
mm/migrate_device: page_remove_rmap() -> folio_remove_rmap_pte()
David Howells (4):
tcp_bpf: Inline do_tcp_sendpages as it's now a wrapper around tcp_sendmsg
espintcp: Inline do_tcp_sendpages()
siw: Inline do_tcp_sendpages()
tcp_bpf, smc, tls, espintcp, siw: Reduce MSG_SENDPAGE_NOTLAST usage
David Matlack (1):
KVM: Introduce vcpu->wants_to_run
David Plowman (1):
media: i2c: imx219: Correct the minimum vblanking value
David Rosca (4):
drm/amdgpu: Reject UVD message with invalid number of h265 refs drm/amdgpu: Reject UVD message with dimensions above 4096 drm/amdgpu: Implement insert_end for VCE 3 drm/amdgpu: Fix UVD decode image min size calculation
Dawei Feng (2):
octeontx2-pf: fix SQB pointer leak on init failure
ice: fix memory leak in ice_lbtest_prepare_rings()
Dawid Osuchowski (1):
ice: fix VF interrupts cleanup
Dawid Wróbel (1):
ASoC: codecs: lpass-wsa-macro: Fix enum kcontrol accesses
Dexuan Cui (1):
net: mana: Validate the packet length reported by the NIC
Diogo Ivo (1):
usb: typec: ucsi: Only enable supported notifications
Dmitry Torokhov (9):
Input: synaptics-rmi4 - fix F55 transmitter electrode count typo
Input: synaptics-rmi4 - zero report size on F54 work error
Input: synaptics-rmi4 - block s_input when F54 queue is busy
Input: synaptics-rmi4 - propagate F54 worker errors to V4L2 queue
Input: sur40 - fix input device registration ordering
Input: sur40 - fix V4L error path cleanup
Input: mms114 - fix touch indexing for MMS134S and MMS136
firmware_loader: introduce __free() cleanup hanler
Input: ims-pcu - fix firmware leak in async update
Dr. David Alan Gilbert (1):
Bluetooth: MGMT: Remove unused mgmt_pending_find_data
Edward Adam Davis (1):
Bluetooth: hci_sock: Prevent race in socket write iter and sock bind
Eric Dumazet (3):
ipvlan: inherit needed_headroom and needed_tailroom from phy_dev
macvlan: inherit needed_headroom and needed_tailroom from lowerdev
af_packet: Don't send zero-byte data in tpacket_snd().
Eric Farman (2):
s390/vfio_ccw: Ensure index for read/write regions are within range s390/vfio_ccw: Fix out of bounds check on CCW array
Eugenio Pérez (2):
vduse: remove unused vaddr parameter of vduse_domain_free_coherent
vduse: take out allocations from vduse_dev_alloc_coherent
Fan Wu (1):
wifi: brcmfmac: drain bus_reset work on device removal
Farhan Ali (3):
KVM: s390: pci: Fix memory accounting for pinned/unpinned pages
KVM: s390: pci: Fix missing error codes and memory unaccounting
KVM: s390: pci: Fix resource leak on IRQ registration failure
Felix Fietkau (1):
net: move skb_gro_receive_list from udp to core
Fernando Fernandez Mancera (1):
netfilter: nft_objref: validate objref and objrefmap expressions
Ferry Meng (1):
ksmbd: fix SID memory leak in set_posix_acl_entries_dacl() on overflow
Florian Fuchs (1):
mtd: maps: vmu-flash: fix fault in unaligned fixup
Florian Westphal (14):
netfilter: nft_set_pipapo: use GFP_KERNEL for insertions
netfilter: nft_set_pipapo: move prove_locking helper around
netfilter: nft_set_pipapo: make pipapo_clone helper return NULL
netfilter: nft_set_pipapo: prepare walk function for on-demand clone
netfilter: nft_set_pipapo: merge deactivate helper into caller
netfilter: nft_set_pipapo: prepare pipapo_get helper for on-demand clone
netfilter: nft_set_pipapo: move cloning of match info to insert/removal path
netfilter: nft_set_pipapo: don't leak bad clone into future transaction
netfilter: nf_conntrack_sip: remove net variable shadowing
netfilter: nf_tables: pass context structure to nft_parse_register_load
netfilter: nf_tables: drop unused 3rd argument from validate callback ops
netfilter: conntrack: sctp: use nf log infrastructure for invalid packets
netfilter: ipset: fix list type element drift bug
netfilter: ipset: let destroy callbacks adjust ext mem size
Gang Yan (1):
selftests: mptcp: join: mark tests with data corruption as failed
Gao Xiang (2):
erofs: tidy up internal.h
erofs: fix EROFS_FS_ZIP_LZMA_DEFAULT_MAX_STREAMS on some UP platforms
Geert Uytterhoeven (2):
can: rcar_canfd: Invert reset assert order
can: rcar_canfd: Extract rcar_canfd_global_{,de}init()
Geliang Tang (4):
mptcp: pm: avoid code duplication to lookup endp
mptcp: add mptcp_userspace_pm_lookup_addr helper
mptcp: pm: use addr entry for get_local_id
mptcp: pm: userspace: fix use-after-free in get_local_id
George Wilson (2):
powerpc/pseries: pci - logic bug powerpc/pseries: lparcfg - fix kbuf[] underflow
Gokul Sivakumar (1):
wifi: brcmfmac: fix 43752 SDIO FWVID incorrectly labelled as Cypress (CYW)
Greg Kroah-Hartman (1):
Linux 6.1.184
Gregory Price (1):
mm/vmstat: fold stranded per-cpu node stats when a node comes online
Guangshuo Li (3):
drm/radeon: fix autosuspend cleanup during teardown
mmc: vub300: fix use-after-free on probe failure
usb: musb: omap2430: Do not put borrowed of_node in probe
Gustavo A. R. Silva (1):
Bluetooth: hci_conn, hci_sync: Use __counted_by() to avoid -Wfamnae warnings
Haibo Chen (1):
mmc: sdhci: make tuning_err a signed int
Haofeng Li (1):
ksmbd: validate num_subauth when copying ACE in set_ntacl_dacl
Haoxiang Li (2):
i2c: davinci: Unregister cpufreq notifier on probe failure
net: ipa: fix SMEM state handle leaks in SMP2P init
Heinz Mauelshagen (4):
dm: fix trailing statements
dm crypt: correct 'foo*' to 'foo *'
dm: add missing empty lines
dm: remove unnecessary braces from single statement blocks
Herbert Xu (1):
crypto: ccm - Set rfc4309 maxauthsize from child
Hidayath Khan (1):
s390/qeth: validate user buffer length in SNMP and ARP query ioctls
Hugo Villeneuve (1):
serial: max310x: replace bare use of 'unsigned' with 'unsigned int' (checkpatch)
Hyunjung Ko (1):
net/sched: act_ct: fix sk_buff leak when the header checks reject a packet
Jai Luthra (1):
media: i2c: imx219: Rename VTS to FRM_LENGTH
Jani Nikula (4):
drm/displayid: fix Tiled Display Topology ID size drm/i915/vrr: require valid min/max vfreq for VRR drm/i915/hdcp: require monotonically increasing seq_num_v drm/i915/hdcp: check streams[] bounds before overflow
Jann Horn (1):
bpf,fork: wipe ->bpf_storage before bailouts that access it
Jason Gunthorpe (2):
kernel/user: Allow user_struct::locked_vm to be usable for iommufd
udmabuf: Do not create malformed scatterlists
Jason Wang (1):
VDUSE: avoid leaking information to userspace
Jeff Layton (1):
audit: widen ino fields to u64
Jeremy Sowden (1):
netfilter: bitwise: rename some boolean operation functions
Jiacheng Yu (1):
fbcon: Use correct type for vc_resize() return value
Jingbo Xu (1):
erofs: maintain cookies of share domain in self-contained list
Johan Hovold (3):
mmc: vub300: fix use-after-free on disconnect
mmc: vub300: rename probe error labels
usb: musb: omap2430: clean up probe error handling
Jon Hunter (1):
arm64: tegra: Add EL2 virtual timer interrupt for Tegra194
Jonas Gorski (1):
i2c: iproc: reset bus after timeout if START_BUSY is stuck
Josh Poimboeuf (1):
ftrace: Fix off-by-one fentry site disable in ftrace_free_mem()
Junrui Luo (1):
octeontx2-af: cn10k: restrict VF LMTLINE sharing to its own PF
Jérémy Jean (1):
netfilter: flowtable: publish GC-visible tuple last
Kai Vehmanen (1):
ALSA: hda: codecs: hdmi: disable keep-alive before audio format change
Kees Cook (1):
overflow: Change DEFINE_FLEX to take __counted_by member
Kefeng Wang (1):
mm: migrate_device: fix pte_pfn/pte_dirty called on non-present PTE
Kefu Chai (1):
libceph: tolerate addrvecs with multiple entries of the same type
Konstantin Komarov (1):
fs/ntfs3: Undo critial modificatins to keep directory consistency
Laurent Pinchart (1):
media: i2c: imx219: Drop IMX219_VTS_* macros
Li Daming (1):
rxrpc: serialize kernel accept preallocation with socket teardown
Li Xiasong (1):
tipc: restrict socket queue dumps in enqueue tracepoints
LiangCheng Wang (1):
wifi: brcmfmac: set F2 blocksize to 256 for BCM43752
Linmao Li (1):
Input: psxpad-spi - set driver data before use
Long Li (2):
xfs: fix ilock leak on error in xfs_dq_get_next_id
xfs: don't swallow dquot recovery verification errors
Lorenzo Stoakes (ARM) (2):
mm/vmalloc: acquire init_mm lock on huge vmap to avoid ptdump UAF mm/huge_memory: fix huge_zero_pfn race
Luiz Augusto von Dentz (6):
Bluetooth: HCI: Remove HCI_AMP support
Bluetooth: hci_sync: Introduce hci_cmd_sync_run/hci_cmd_sync_run_once
Bluetooth: MGMT: Fix not generating command complete for MGMT_OP_DISCONNECT
Bluetooth: MGMT: Protect mgmt_pending list with its own lock
Bluetooth: hci_core: Fix not handling hdev->le_num_of_adv_sets=1
Bluetooth: hci_sync: Fix not using correct handle
Maoyi Xie (3):
net: thunderbolt: Fix frags[] overflow by bounding frame_count
wifi: libertas_tf: fix use-after-free in lbtf_free_adapter()
net: ip6_tunnel: require CAP_NET_ADMIN in the device netns for changelink
Marc Kleine-Budde (1):
can: gs_usb: gs_usb_receive_bulk_callback(): resubmit URB on skb allocation failure
Matt Bobrowski (1):
bpf: Reject BPF_MAP_TYPE_INODE_STORAGE creation if BPF LSM is uninitialized
Matt Fleming (1):
veth: convert frag_list skbs before running XDP
Matthew Rosato (1):
KVM: s390: pci: Fix aisb calculation
Matthieu Baerts (NGI0) (1):
mptcp: options: reset DSS fields in case of unexpected size
Max Kellermann (2):
ceph: avoid fs reclaim while using current->journal_info
ceph: fix hanging __ceph_get_caps() with stale mds_wanted
Michael Bommarito (3):
ntfs3: validate split-point offset in indx_insert_into_buffer
thunderbolt: Prevent XDomain delayed work use-after-free on disconnect
erofs: cap LZMA stream pool size
Mike Rapoport (IBM) (1):
mm: move most of core MM initialization to mm/mm_init.c
Mikhail Gavrilov (1):
dma-buf/udmabuf: skip redundant cpu sync to fix cacheline EEXIST warning
Mikulas Patocka (3):
dm-verity: avoid double increment of &use_bh_wq_enabled
dm-integrity: don't increment hash_offset twice
dm-verity: make error counter atomic
Muchun Song (1):
mm/mm_init: fix uninitialized struct pages for ZONE_DEVICE
Mukesh Ojha (2):
remoteproc: qcom: replace kstrdup with kstrndup
remoteproc: qcom: fix sparse warnings
Myeonghun Pak (1):
mmc: sdhci: unmap the bounce buffer before device release
Namjae Jeon (4):
ksmbd: rename smb2_get_msg to smb_get_msg
ksmbd: validate minimum PDU size for transform requests
ksmbd: conn lock to serialize smb2 negotiate
ksmbd: reject repeated SMB2 NEGOTIATE requests
NeilBrown (1):
VFS/audit: introduce kern_path_parent() for audit
Oleg Nesterov (1):
taskstats: fill_stats_for_tgid: use for_each_thread()
Pablo Neira Ayuso (1):
netfilter: nf_conntrack_sip: validate skb_dst() before accessing it
Palmer Dabbelt (1):
RISC-V: Provide pgtable_l5_enabled on rv32
Paolo Bonzini (1):
KVM: SVM: Serialize accesses to the owner and mirror list with separate lock
Pauli Virtanen (2):
Bluetooth: hci_sync: call destroy in hci_cmd_sync_run if immediate
Bluetooth: mgmt: fix locking in unpair_device/disconnect_sync
Pavitra Jha (2):
libceph: fix multiple unsafe decodes in decode_locker()
libceph: fix two unsafe bare decodes in decode_lockers()
Pedro Falcato (2):
mm: do file ownership checks with the proper mount idmap RDMA/siw: Fix the sendmsg byte count in siw_tcp_sendpages
Peng Fan (1):
pmdomain: imx: Fix i.MX8MP power notifier
Pengpeng Hou (1):
Input: iforce - validate input packet lengths
Peter Seiderer (1):
net: pktgen: fix code style (WARNING: Block comments)
Peter Ujfalusi (3):
ASoC: cs4265: sort the register default table
ASoC: cs35l41: sort the register default table
ASoC: SOF: ipc3-control: Fix heap overflow in bytes_ext put/get
Petr Machata (1):
mlxsw: spectrum: On port enslavement to a LAG, join upper's bridges
Pierre-Eric Pelloux-Prayer (1):
drm/amdgpu: move debug_vm handling to amdgpu_cs_parser_fini
Raphael Zimmer (1):
libceph: Avoid using invalid osd indices from primary_temp
Rasmus Villemoes (1):
bootconfig: do not put quotes on cmdline items unless necessary
Reinette Chatre (1):
fs/resctrl: Fix double-add of pseudo-locked region's RMID to free list
Ricardo Robaina (2):
audit: use 'unsigned int' instead of 'unsigned'
audit: fix recursive locking deadlock in audit_dupe_exe()
Richard Davies (1):
Input: focaltech - fix array out-of-bounds in focaltech_process_rel_packet
Robert Mader (1):
udmabuf: Ensure to perform cache synchronisation in begin_cpu_udmabuf()
Rosen Penev (1):
ASoC: xilinx: formatter_pcm: pass aud_drv_data to irq handlers
Runyu Xiao (3):
octeontx2-pf: clear stale mailbox IRQ state before request_irq()
octeontx2-vf: clear stale mailbox IRQ state before request_irq()
gpio: tegra: do not call pinctrl for GPIO direction
Sabrina Dubroca (1):
espintcp: use sk_msg_free_partial to fix partial send
Sakari Ailus (1):
media: imx219: Fix maximum frame length in lines
Sebastian Alba Vives (1):
fpga: dfl-afu: validate DMA mapping length in afu_dma_map_region()
Sergey Senozhatsky (1):
usb: typec: ucsi: split connector lock classes
Sergio Paracuellos (1):
gpio: mt7621: avoid corruption of shared interrupt trigger state
Sheng Zhao (1):
vduse: Use fixed 4KB bounce pages for non-4KB page size
Shiming Cheng (1):
net: gro: fix double aggregation of flush-marked skbs
Siddharth Vadapalli (1):
net: ethernet: ti: am65-cpsw-nuss: Fix port_id extraction from SRC TAG
Souvik Banerjee (1):
ovl: use linked upper dentry in copy-up tmpfile
Stanislav Fomichev (1):
veth: Introduce veth_xdp_buff wrapper for xdp_buff
Stefan Eichenberger (1):
i2c: imx: separate atomic, dma and non-dma use case
Steven Rostedt (1):
ring-buffer: Remove jump to out label in ring_buffer_swap_cpu()
Subbaraya Sundeep (1):
octeontx2: Annotate mmio regions as __iomem
Sumanth Korikkar (1):
s390/perf_cpum_cf: Add missing array_index_nospec() to __hw_perf_event_init()
Sun Jian (1):
veth: fix skb length accounting after XDP frag adjustment
Suraj Kandpal (1):
drm/i915/hdcp: Move to using intel_display in intel_hdcp
Tang Bin (1):
ASoC: mediatek: mt8192-afe-pcm: Simplify probe() with local dev variable
Tapio Reijonen (1):
serial: max310x: implement gpio_chip::get_direction()
Tengda Wu (1):
ring-buffer: Use current_context for safe per-CPU buffer swap
Thomas Gleixner (1):
locking/rt: Fix the incorrect RCU protection in rt_spin_unlock()
Thomas Richter (4):
s390/cpum_cf: move cpum_cf_ctrset_size()
s390/cpum_cf: move stccm_avail()
s390/cpum_cf: remove in-kernel counting facility interface s390/cpum_cf: merge source files for CPU Measurement counter facility
Thomas Zimmermann (2):
fbcon: Rename struct fbcon_ops to struct fbcon_par drm/tegra: fbdev: Remove offset into framebuffer memory
Thorsten Blum (1):
crypto: qce - fix error path in devm_qce_register_algs
Théo Lebrun (1):
net: macb: drop in-flight Tx SKBs on close
Timur Kristóf (1):
drm/amdgpu: Respect placement requirements in amdgpu_gtt_mgr functions
Tristan Madani (1):
selinux: avoid sk_socket dereference in selinux_sctp_bind_connect()
Tu Nguyen (1):
can: rcar_canfd: change the initializing flow for clocks and resets
Uladzislau Rezki (Sony) (1):
tracing: Rename kvfree_rcu() to kvfree_rcu_mightsleep()
Venkatesh Srinivas (1):
KVM: x86: Only reset TSC Deadline Timer in apic_timer_expired on KVM_RUN
Ville Syrjälä (1):
drm/i915/vrr: Check HAS_VRR() first in intel_vrr_is_capable()
Vincent Jardin (1):
i2c: imx: fix locked bus on SMBus block-read of 0 (atomic)
Vitor Soares (1):
drm/bridge: cdns-dsi: Replace deprecated UNIVERSAL_DEV_PM_OPS()
Vladimir Oltean (1):
net/sched: taprio: avoid calling child->ops->dequeue(child) twice
Wasim Nazir (1):
remoteproc: qcom: Fix leak when custom dump_segments addition fails
Wei Fang (1):
net: packet: fix wrong transport_header when sending VLAN-tagged frame
Weinan Liu (1):
iommu/amd: Don't split flush for amd_iommu_domain_flush_all()
Wentao Guan (1):
ksmbd: restore DACL size on check_add_overflow() to avoid malformed ACL
Wentao Liang (2):
mlxsw: fix refcount leak in mlxsw_sp_port_lag_join()
ipmi: fix refcount leak in i_ipmi_request()
Wolfram Sang (1):
i2c: bcm-iproc: remove printout on handled timeouts
Xiang Mei (2):
net: bonding: fix use-after-free in bond_xmit_broadcast()
libceph: bound pg_{temp,upmap,upmap_items} length to CEPH_PG_MAX_SIZE
Xiang Mei (Microsoft) (1):
netfilter: ipset: fix refcount race between list:set GC and swap
Xin Long (3):
openvswitch: use skb_ip_totlen in conntrack
net: sched: use skb_ip_totlen and iph_totlen
openvswitch: move key and ovs_cb update out of handle_fragments
Xiubo Li (3):
libceph: add doutc and *_client debug macros support
ceph: pass the mdsc to several helpers
ceph: rename _to_client() to _to_fs_client()
Xu Rao (1):
ALSA: hda: Fix cached processing coefficient verbs
Yang Wang (2):
drm/amd/pm: fix torn gpu metrics reads
drm/amd/pm: fix pptable use-after-free
Yiming Zhu (1):
ceph: fix MDS random selection readiness predicate
Yiyang Chen (1):
taskstats: retain dead thread stats in TGID queries
Yizhou Zhao (1):
ipvs: separate destination availability state
Yogesh Lal (1):
remoteproc: qcom: pas: Adjust the phys addr wrt the mem region
Yue Haibing (1):
netfilter: nf_tables: Remove unused nft_reduce_is_readonly()
Zhan Xusheng (2):
fscrypt: use the mount idmap for the owner check in fscrypt_ioctl_set_policy()
mmc: omap_hsmmc: fix busy_timeout overflow in ns conversion on 32-bit
Zhang Changzhong (1):
net/sched: cls_u32: skip hash tables in u32_bind_class()
Zhang Heng (1):
ALSA: hda: conexant: Remove mic bias threshold override
Zhefu Zhang (1):
Input: atkbd - skip deactivate for Xiaomi Book Pro 14's internal keyboard
Zhiling Zou (1):
sctp: avoid auth_enable sysctl UAF during netns teardown
Zihan Xi (4):
net/sched: act_ct: preserve tc_skb_cb across defragmentation
Bluetooth: mgmt: fix UAF in pair command cancellation
netfilter: nf_conntrack: defer invalid log until after unlock
Bluetooth: mgmt: fix pending command UAF in EIR updates