Linux 5.15.135
Greg Kroah-Hartman
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 15 -SUBLEVEL = 134 +SUBLEVEL = 135 EXTRAVERSION = NAME = Trick or Treat
arch/arm64/include/asm/cpufeature.h +5 -1
@@ -839,7 +839,11 @@ static inline bool cpu_has_hw_af(void)if (!IS_ENABLED (CONFIG_ARM64_HW_AFDBM ))return false; - mmfr1 =read_cpuid (ID_AA64MMFR1_EL1 ); +/* +* Use cached version to avoid emulated msr operation on KVM +* guests. +*/ + mmfr1 =read_sanitised_ftr_reg (SYS_ID_AA64MMFR1_EL1 );return cpuid_feature_extract_unsigned_field (mmfr1,ID_AA64MMFR1_HADBS_SHIFT ); }
arch/arm64/include/asm/cputype.h +2 -0
@@ -79,6 +79,7 @@#define ARM_CPU_PART_CORTEX_A78AE 0xD42#define ARM_CPU_PART_CORTEX_X1 0xD44#define ARM_CPU_PART_CORTEX_A510 0xD46 +#define ARM_CPU_PART_CORTEX_A520 0xD80#define ARM_CPU_PART_CORTEX_A710 0xD47#define ARM_CPU_PART_CORTEX_X2 0xD48#define ARM_CPU_PART_NEOVERSE_N2 0xD49
@@ -130,6 +131,7 @@#define MIDR_CORTEX_A78AE MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A78AE)#define MIDR_CORTEX_X1 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_X1)#define MIDR_CORTEX_A510 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A510) +#define MIDR_CORTEX_A520 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A520)#define MIDR_CORTEX_A710 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A710)#define MIDR_CORTEX_X2 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_X2)#define MIDR_NEOVERSE_N2 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_NEOVERSE_N2)
arch/parisc/include/asm/ldcw.h +20 -16
@@ -2,14 +2,28 @@#ifndef __PARISC_LDCW_H#define __PARISC_LDCW_H -#ifndef CONFIG_PA20 /* Because kmalloc only guarantees 8-byte alignment for kmalloc'd data, and GCC only guarantees 8-byte alignment for stack locals, we can't be assured of 16-byte alignment for atomic lock data even if we specify "__attribute ((aligned(16)))" in the type declaration. So, we use a struct containing an array of four ints for the atomic lock type and dynamically select the 16-byte aligned int from the array -for the semaphore. */ +for the semaphore. */ + +/* From: "Jim Hull" <jim.hull of hp.com> +I've attached a summary of the change, but basically, for PA 2.0, as +long as the ",CO" (coherent operation) completer is implemented, then the +16-byte alignment requirement for ldcw and ldcd is relaxed, and instead +they only require "natural" alignment (4-byte for ldcw, 8-byte for +ldcd). + +Although the cache control hint is accepted by all PA 2.0 processors, +it is only implemented on PA8800/PA8900 CPUs. Prior PA8X00 CPUs still +require 16-byte alignment. If the address is unaligned, the operation +of the instruction is undefined. The ldcw instruction does not generate +unaligned data reference traps so misaligned accesses are not detected. +This hid the problem for years. So, restore the 16-byte alignment dropped +by Kyle McMartin in "Remove __ldcw_align for PA-RISC 2.0 processors". */ #define __PA_LDCW_ALIGNMENT 16#define __PA_LDCW_ALIGN_ORDER 4
@@ -19,22 +33,12 @@ & ~(__PA_LDCW_ALIGNMENT -1 ); \ (volatile unsigned int *) __ret; \ }) -#define __LDCW "ldcw" -#else /*CONFIG_PA20*/ -/* From: "Jim Hull" <jim.hull of hp.com> -I've attached a summary of the change, but basically, for PA 2.0, as -long as the ",CO" (coherent operation) completer is specified, then the -16-byte alignment requirement for ldcw and ldcd is relaxed, and instead -they only require "natural" alignment (4-byte for ldcw, 8-byte for -ldcd). */ - -#define __PA_LDCW_ALIGNMENT 4 -#define __PA_LDCW_ALIGN_ORDER 2 -#define __ldcw_align (a) (&(a)->slock) +#ifdef CONFIG_PA20 #define __LDCW "ldcw,co" - -#endif /*!CONFIG_PA20*/ +#else +#define __LDCW "ldcw" +#endif /* LDCW, the only atomic read-write operation PA-RISC has. *sigh*. We don't explicitly expose that "*a" may be written as reload
arch/parisc/include/asm/spinlock_types.h +0 -5
@@ -3,13 +3,8 @@#define __ASM_SPINLOCK_TYPES_Htypedef struct { -#ifdef CONFIG_PA20 -volatile unsigned int slock; -# define __ARCH_SPIN_LOCK_UNLOCKED { 1 } -#else volatile unsigned int lock[4 ];# define __ARCH_SPIN_LOCK_UNLOCKED { { 1, 1, 1, 1 } } -#endif }arch_spinlock_t ;
block/blk-core.c +0 -2
@@ -405,8 +405,6 @@ void blk_cleanup_queue(struct request_queue *q)blk_mq_sched_free_requests (q);mutex_unlock (&q->sysfs_lock); -percpu_ref_exit (&q->q_usage_counter); -/* @q is and will stay empty, shutdown and put */ blk_put_queue (q); }
block/blk-sysfs.c +2 -0
@@ -748,6 +748,8 @@ static void blk_free_queue_rcu(struct rcu_head *rcu_head) { struct request_queue *q = container_of(rcu_head, struct request_queue, rcu_head); + +percpu_ref_exit (&q->q_usage_counter);kmem_cache_free (blk_requestq_cachep, q); }
drivers/base/regmap/regcache-rbtree.c +2 -1
@@ -453,7 +453,8 @@ static int regcache_rbtree_write(struct regmap *map, unsigned int reg,if (!rbnode)return -ENOMEM ;regcache_rbtree_set_register (map, rbnode, - reg - rbnode->base_reg, value); + (reg - rbnode->base_reg) / map->reg_stride, + value);regcache_rbtree_insert (map, &rbtree_ctx->root, rbnode); rbtree_ctx->cached_rbnode = rbnode; }
drivers/block/rbd.c +225 -187
654 lines not on this page · raw message
drivers/clk/imx/clk-pll14xx.c +2 -0
@@ -60,6 +60,8 @@ static const struct imx_pll14xx_rate_table imx_pll1443x_tbl[] = {PLL_1443X_RATE (650000000U ,325 ,3 ,2 ,0 ),PLL_1443X_RATE (594000000U ,198 ,2 ,2 ,0 ),PLL_1443X_RATE (519750000U ,173 ,2 ,2 ,16384 ), +PLL_1443X_RATE (393216000U ,262 ,2 ,3 ,9437 ), + PLL_1443X_RATE(361267200U, 361, 3, 3, 17511), }; struct imx_pll14xx_clk imx_1443x_pll = {
drivers/gpio/gpio-aspeed.c +1 -1
@@ -963,7 +963,7 @@ static int aspeed_gpio_set_config(struct gpio_chip *chip, unsigned int offset,else if (param ==PIN_CONFIG_BIAS_DISABLE || param ==PIN_CONFIG_BIAS_PULL_DOWN || param ==PIN_CONFIG_DRIVE_STRENGTH ) -return pinctrl_gpio_set_config (offset, config); +return pinctrl_gpio_set_config (chip->base + offset, config);else if (param ==PIN_CONFIG_DRIVE_OPEN_DRAIN || param ==PIN_CONFIG_DRIVE_OPEN_SOURCE )/* Return -ENOTSUPP to trigger emulation, as per datasheet */
drivers/gpio/gpio-pxa.c +1 -0
@@ -243,6 +243,7 @@ static bool pxa_gpio_has_pinctrl(void)switch (gpio_type) {case PXA3XX_GPIO :case MMP2_GPIO : +case MMP_GPIO :return false;default :
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -1
@@ -2225,7 +2225,7 @@ static int amdgpu_device_ip_early_init(struct amdgpu_device *adev) adev->flags |=AMD_IS_PX ;if (!(adev->flags &AMD_IS_APU )) { - parent =pci_upstream_bridge (adev->pdev); + parent =pcie_find_root_port (adev->pdev); adev->has_pr3 = parent ?pci_pr3_present (parent) : false; }
drivers/hid/hid-sony.c +2 -0
@@ -3074,6 +3074,8 @@ static int sony_probe(struct hid_device *hdev, const struct hid_device_id *id)return ret; err: +usb_free_urb (sc->ghl_urb); +hid_hw_stop (hdev);return ret; }
drivers/hid/intel-ish-hid/ipc/pci-ish.c +8 -0
@@ -129,6 +129,14 @@ static int enable_gpe(struct device *dev) } wakeup = &adev->wakeup; +/* +* Call acpi_disable_gpe(), so that reference count +* gpe_event_info->runtime_count doesn't overflow. +* When gpe_event_info->runtime_count = 0, the call +* to acpi_disable_gpe() simply return. +*/ +acpi_disable_gpe (wakeup->gpe_device, wakeup->gpe_number); + acpi_sts =acpi_enable_gpe (wakeup->gpe_device, wakeup->gpe_number);if (ACPI_FAILURE (acpi_sts)) {dev_err (dev,"enable ose_gpe failed\n" );
drivers/infiniband/core/cma.c +1 -1
@@ -4751,7 +4751,7 @@ static int cma_iboe_join_multicast(struct rdma_id_private *id_priv,int err =0 ;struct sockaddr *addr = (struct sockaddr *)&mc->addr;struct net_device *ndev =NULL ; -struct ib_sa_multicast ib; +struct ib_sa_multicast ib = {};enum ib_gid_type gid_type;bool send_only;
drivers/infiniband/core/cma_configfs.c +1 -1
@@ -218,7 +218,7 @@ static int make_cma_ports(struct cma_dev_group *cma_dev_group,return -ENOMEM ;for (i =0 ; i < ports_num; i++) { -char port_str[10 ]; +char port_str[11 ]; ports[i].port_num = i +1 ;snprintf (port_str,sizeof (port_str),"%u" , i +1 );
drivers/infiniband/core/nldev.c +1 -0
@@ -2316,6 +2316,7 @@ static const struct rdma_nl_cbs nldev_cb_table[RDMA_NLDEV_NUM_OPS] = { }, [RDMA_NLDEV_CMD_SYS_SET] = { .doit = nldev_set_sys_set_doit, + .flags = RDMA_NL_ADMIN_PERM, }, [RDMA_NLDEV_CMD_STAT_SET] = { .doit = nldev_stat_set_doit,
drivers/infiniband/core/uverbs_main.c +1 -1
@@ -535,7 +535,7 @@ static ssize_t verify_hdr(struct ib_uverbs_cmd_hdr *hdr,if (hdr->in_words *4 != count)return -EINVAL ; -if (count < method_elm->req_size +sizeof (hdr)) { +if (count < method_elm->req_size +sizeof (*hdr)) {/* * rdma-core v18 and v19 have a bug where they send DESTROY_CQ * with a 16 byte write instead of 24. Old kernels didn't
drivers/infiniband/hw/mlx4/sysfs.c +1 -1
@@ -223,7 +223,7 @@ void del_sysfs_port_mcg_attr(struct mlx4_ib_dev *device, int port_num,static int add_port_entries (struct mlx4_ib_dev *device,int port_num) {int i; -char buff[11 ]; +char buff[12 ];struct mlx4_ib_iov_port *port =NULL ;int ret =0 ;struct ib_port_attr attr;
drivers/infiniband/hw/mlx5/main.c +1 -1
@@ -2095,7 +2095,7 @@ static inline char *mmap_cmd2str(enum mlx5_ib_mmap_cmd cmd)case MLX5_IB_MMAP_DEVICE_MEM :return "Device Memory" ;default : -return NULL ; +return "Unknown" ; } }
drivers/infiniband/sw/siw/siw_cm.c +12 -4
@@ -973,6 +973,7 @@ static void siw_accept_newconn(struct siw_cep *cep)siw_cep_put (cep); new_cep->listen_cep =NULL ;if (rv) { +siw_cancel_mpatimer (new_cep);siw_cep_set_free (new_cep); goto error; }
@@ -1097,9 +1098,12 @@ static void siw_cm_work_handler(struct work_struct *w)/* * Socket close before MPA request received. */ -siw_dbg_cep (cep,"no mpareq: drop listener\n" ); -siw_cep_put (cep->listen_cep); - cep->listen_cep =NULL ; +if (cep->listen_cep) { +siw_dbg_cep (cep, +"no mpareq: drop listener\n" ); +siw_cep_put (cep->listen_cep); + cep->listen_cep =NULL ; + } } } release_cep =1 ;
@@ -1222,7 +1226,11 @@ static void siw_cm_llp_data_ready(struct sock *sk)if (!cep) goto out; -siw_dbg_cep (cep,"state: %d\n" , cep->state); +siw_dbg_cep (cep,"cep state: %d, socket state %d\n" , + cep->state, sk->sk_state); + +if (sk->sk_state !=TCP_ESTABLISHED ) + goto out;switch (cep->state) {case SIW_EPSTATE_RDMA_MODE :
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c +14 -4
@@ -1881,13 +1881,23 @@ static void __arm_smmu_tlb_inv_range(struct arm_smmu_cmdq_ent *cmd,/* Get the leaf page size */ tg =__ffs (smmu_domain->domain.pgsize_bitmap); + num_pages = size >> tg; +/* Convert page size of 12,14,16 (log2) to 1,2,3 */ cmd->tlbi.tg = (tg -10 ) /2 ; -/* Determine what level the granule is at */ - cmd->tlbi.ttl =4 - ((ilog2 (granule) -3 ) / (tg -3 )); - - num_pages = size >> tg; +/* +* Determine what level the granule is at. For non-leaf, both +* io-pgtable and SVA pass a nominal last-level granule because +* they don't know what level(s) actually apply, so ignore that +* and leave TTL=0. However for various errata reasons we still +* want to use a range command, so avoid the SVA corner case +* where both scale and num could be 0 as well. +*/ +if (cmd->tlbi.leaf) + cmd->tlbi.ttl =4 - ((ilog2 (granule) -3 ) / (tg -3 )); +else if ((num_pages &CMDQ_TLBI_RANGE_NUM_MAX ) ==1 ) + num_pages++; } cmds.num =0 ;
drivers/md/dm-zoned-target.c +7 -8
@@ -750,17 +750,16 @@ static int dmz_get_zoned_device(struct dm_target *ti, char *path,/* * Cleanup zoned device information. */ -static void dmz_put_zoned_device (struct dm_target *ti) +static void dmz_put_zoned_devices (struct dm_target *ti) {struct dmz_target *dmz = ti->private;int i; -for (i =0 ; i < dmz->nr_ddevs; i++) { -if (dmz->ddev[i]) { +for (i =0 ; i < dmz->nr_ddevs; i++) +if (dmz->ddev[i])dm_put_device (ti, dmz->ddev[i]); - dmz->ddev[i] =NULL ; - } - } + +kfree (dmz->ddev); }static int dmz_fixup_devices (struct dm_target *ti)
@@ -951,7 +950,7 @@ static int dmz_ctr(struct dm_target *ti, unsigned int argc, char **argv) err_meta:dmz_dtr_metadata (dmz->metadata); err_dev: -dmz_put_zoned_device (ti); +dmz_put_zoned_devices (ti); err:kfree (dmz->dev);kfree (dmz);
@@ -982,7 +981,7 @@ static void dmz_dtr(struct dm_target *ti)bioset_exit (&dmz->bio_set); -dmz_put_zoned_device (ti); +dmz_put_zoned_devices (ti);mutex_destroy (&dmz->chunk_lock);
drivers/mtd/ubi/build.c +7 -0
@@ -888,6 +888,13 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num,return -EINVAL ; } +/* UBI cannot work on flashes with zero erasesize. */ +if (!mtd->erasesize) { +pr_err ("ubi: refuse attaching mtd%d - zero erasesize flash is not supported\n" , + mtd->index); +return -EINVAL ; + } +if (ubi_num ==UBI_DEV_NUM_AUTO ) {/* Search for an empty slot in the @ubi_devices array */ for (ubi_num =0 ; ubi_num <UBI_MAX_DEVICES ; ubi_num++)
drivers/net/dsa/mv88e6xxx/chip.c +4 -2
@@ -2594,14 +2594,16 @@ static void mv88e6xxx_hardware_reset(struct mv88e6xxx_chip *chip)* from the wrong location resulting in the switch booting * to wrong mode and inoperable. */ -mv88e6xxx_g1_wait_eeprom_done (chip); +if (chip->info->ops->get_eeprom) +mv88e6xxx_g2_eeprom_wait (chip);gpiod_set_value_cansleep (gpiod,1 );usleep_range (10000 ,20000 );gpiod_set_value_cansleep (gpiod,0 );usleep_range (10000 ,20000 ); -mv88e6xxx_g1_wait_eeprom_done (chip); +if (chip->info->ops->get_eeprom) +mv88e6xxx_g2_eeprom_wait (chip); } }
drivers/net/dsa/mv88e6xxx/global1.c +0 -31
@@ -75,37 +75,6 @@ static int mv88e6xxx_g1_wait_init_ready(struct mv88e6xxx_chip *chip)return mv88e6xxx_g1_wait_bit (chip,MV88E6XXX_G1_STS , bit,1 ); } -void mv88e6xxx_g1_wait_eeprom_done (struct mv88e6xxx_chip *chip) -{ -const unsigned long timeout = jiffies +1 *HZ ; -u16 val; -int err; - -/* Wait up to 1 second for the switch to finish reading the -* EEPROM. -*/ -while (time_before (jiffies, timeout)) { - err =mv88e6xxx_g1_read (chip,MV88E6XXX_G1_STS , &val); -if (err) { -dev_err (chip->dev,"Error reading status" ); -return ; - } - -/* If the switch is still resetting, it may not -* respond on the bus, and so MDIO read returns -* 0xffff. Differentiate between that, and waiting for -* the EEPROM to be done by bit 0 being set. -*/ -if (val !=0xffff && - val &BIT (MV88E6XXX_G1_STS_IRQ_EEPROM_DONE )) -return ; - -usleep_range (1000 ,2000 ); - } - -dev_err (chip->dev,"Timeout waiting for EEPROM done" ); -} -/* Offset 0x01: Switch MAC Address Register Bytes 0 & 1 * Offset 0x02: Switch MAC Address Register Bytes 2 & 3 * Offset 0x03: Switch MAC Address Register Bytes 4 & 5
drivers/net/dsa/mv88e6xxx/global1.h +0 -1
@@ -280,7 +280,6 @@ int mv88e6xxx_g1_set_switch_mac(struct mv88e6xxx_chip *chip, u8 *addr);int mv88e6185_g1_reset (struct mv88e6xxx_chip *chip);int mv88e6352_g1_reset (struct mv88e6xxx_chip *chip);int mv88e6250_g1_reset (struct mv88e6xxx_chip *chip); -void mv88e6xxx_g1_wait_eeprom_done (struct mv88e6xxx_chip *chip);int mv88e6185_g1_ppu_enable (struct mv88e6xxx_chip *chip);int mv88e6185_g1_ppu_disable (struct mv88e6xxx_chip *chip);
drivers/net/dsa/mv88e6xxx/global2.c +1 -1
@@ -340,7 +340,7 @@ int mv88e6xxx_g2_pot_clear(struct mv88e6xxx_chip *chip)* Offset 0x15: EEPROM Addr (for 8-bit data access) */ -static int mv88e6xxx_g2_eeprom_wait (struct mv88e6xxx_chip *chip) +int mv88e6xxx_g2_eeprom_wait (struct mv88e6xxx_chip *chip) {int bit =__bf_shf (MV88E6XXX_G2_EEPROM_CMD_BUSY );int err;
drivers/net/dsa/mv88e6xxx/global2.h +1 -0
@@ -357,6 +357,7 @@ int mv88e6xxx_g2_trunk_clear(struct mv88e6xxx_chip *chip);int mv88e6xxx_g2_device_mapping_write (struct mv88e6xxx_chip *chip,int target,int port); +int mv88e6xxx_g2_eeprom_wait (struct mv88e6xxx_chip *chip);extern const struct mv88e6xxx_irq_ops mv88e6097_watchdog_ops;extern const struct mv88e6xxx_irq_ops mv88e6250_watchdog_ops;
drivers/net/ethernet/ibm/ibmveth.c +12 -13
@@ -1297,24 +1297,23 @@ static void ibmveth_rx_csum_helper(struct sk_buff *skb,* the user space for finding a flow. During this process, OVS computes * checksum on the first packet when CHECKSUM_PARTIAL flag is set. * -* So, re-compute TCP pseudo header checksum when configured for -* trunk mode. +* So, re-compute TCP pseudo header checksum. */ +if (iph_proto ==IPPROTO_TCP ) {struct tcphdr *tcph = (struct tcphdr *)(skb->data + iphlen); +if (tcph->check ==0x0000 ) {/* Recompute TCP pseudo header checksum */ -if (adapter->is_active_trunk) { - tcphdrlen = skb->len - iphlen; -if (skb_proto ==ETH_P_IP ) - tcph->check = - ~csum_tcpudp_magic (iph->saddr, - iph->daddr, tcphdrlen, iph_proto,0 ); -else if (skb_proto ==ETH_P_IPV6 ) - tcph->check = - ~csum_ipv6_magic (&iph6->saddr, - &iph6->daddr, tcphdrlen, iph_proto,0 ); - } + tcphdrlen = skb->len - iphlen; +if (skb_proto ==ETH_P_IP ) + tcph->check = + ~csum_tcpudp_magic (iph->saddr, + iph->daddr, tcphdrlen, iph_proto,0 ); +else if (skb_proto ==ETH_P_IPV6 ) + tcph->check = + ~csum_ipv6_magic (&iph6->saddr, + &iph6->daddr, tcphdrlen, iph_proto,0 );/* Setup SKB fields for checksum offload */ skb_partial_csum_set (skb, iphlen, offsetof(struct tcphdr , check));
drivers/net/ethernet/qlogic/qed/qed_ll2.h +1 -1
@@ -111,9 +111,9 @@ struct qed_ll2_info {enum core_tx_dest tx_dest;u8 tx_stats_en;bool main_func_queue; +struct qed_ll2_cbs cbs;struct qed_ll2_rx_queue rx_queue;struct qed_ll2_tx_queue tx_queue; -struct qed_ll2_cbs cbs; };extern const struct qed_ll2_ops qed_ll2_ops_pass;
drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c +5 -2
@@ -105,6 +105,7 @@ struct stm32_ops {int (*parse_data)(struct stm32_dwmac *dwmac,struct device *dev);u32 syscfg_eth_mask; +bool clk_rx_enable_in_suspend; };static int stm32_dwmac_init (struct plat_stmmacenet_data *plat_dat)
@@ -122,7 +123,8 @@ static int stm32_dwmac_init(struct plat_stmmacenet_data *plat_dat)if (ret)return ret; -if (!dwmac->dev->power.is_suspended) { +if (!dwmac->ops->clk_rx_enable_in_suspend || + !dwmac->dev->power.is_suspended) { ret =clk_prepare_enable (dwmac->clk_rx);if (ret) {clk_disable_unprepare (dwmac->clk_tx);
@@ -515,7 +517,8 @@ static struct stm32_ops stm32mp1_dwmac_data = { .suspend = stm32mp1_suspend, .resume = stm32mp1_resume, .parse_data = stm32mp1_parse_data, - .syscfg_eth_mask = SYSCFG_MP1_ETH_MASK + .syscfg_eth_mask = SYSCFG_MP1_ETH_MASK, + .clk_rx_enable_in_suspend = true };static const struct of_device_id stm32_dwmac_match[] = {
drivers/net/ethernet/ti/am65-cpsw-nuss.c +1 -0
@@ -1619,6 +1619,7 @@ static int am65_cpsw_nuss_init_tx_chns(struct am65_cpsw_common *common)if (tx_chn->irq <=0 ) {dev_err (dev,"Failed to get tx dma irq %d\n" , tx_chn->irq); + ret = tx_chn->irq ?: -ENXIO ; goto err; }
drivers/net/usb/smsc75xx.c +3 -1
@@ -90,7 +90,9 @@ static int __must_check __smsc75xx_read_reg(struct usbnet *dev, u32 index, ret =fn (dev,USB_VENDOR_REQUEST_READ_REGISTER ,USB_DIR_IN |USB_TYPE_VENDOR |USB_RECIP_DEVICE ,0 , index, &buf,4 ); -if (unlikely (ret <0 )) { +if (unlikely (ret <4 )) { + ret = ret <0 ? ret : -ENODATA ; +netdev_warn (dev->net,"Failed to read reg index 0x%08x: %d\n" , index, ret);return ret;
drivers/net/wan/fsl_ucc_hdlc.c +10 -2
@@ -34,6 +34,8 @@#define TDM_PPPOHT_SLIC_MAXIN #define RX_BD_ERRORS (R_CD_S | R_OV_S | R_CR_S | R_AB_S | R_NO_S | R_LG_S) +static int uhdlc_close (struct net_device *dev); +static struct ucc_tdm_info utdm_primary_info = { .uf_info = { .tsa =0 ,
@@ -705,6 +707,7 @@ static int uhdlc_open(struct net_device *dev)hdlc_device *hdlc =dev_to_hdlc (dev);struct ucc_hdlc_private *priv = hdlc->priv;struct ucc_tdm *utdm = priv->utdm; +int rc =0 ;if (priv->hdlc_busy !=1 ) { if (request_irq(priv->ut_info->uf_info.irq,
@@ -728,10 +731,13 @@ static int uhdlc_open(struct net_device *dev)napi_enable (&priv->napi);netdev_reset_queue (dev);netif_start_queue (dev); -hdlc_open (dev); + + rc =hdlc_open (dev); +if (rc) +uhdlc_close (dev); } -return 0 ; +return rc; }static void uhdlc_memclean (struct ucc_hdlc_private *priv)
@@ -821,6 +827,8 @@ static int uhdlc_close(struct net_device *dev)netdev_reset_queue (dev); priv->hdlc_busy =0 ; +hdlc_close (dev); +return 0 ; }
drivers/net/wireless/intel/iwlwifi/fw/dbg.c +1 -1
@@ -1960,7 +1960,7 @@ static u32 iwl_dump_ini_mem(struct iwl_fw_runtime *fwrt, struct list_head *list,struct iwl_fw_ini_error_dump_header *header;u32 type =le32_to_cpu (reg->type), id =le32_to_cpu (reg->id);u32 num_of_ranges, i, size; -void *range; +u8 *range;/* * The higher part of the ID in version 2 is irrelevant for
drivers/net/wireless/intel/iwlwifi/fw/error-dump.h +3 -3
@@ -277,9 +277,9 @@ struct iwl_fw_ini_fifo_hdr {struct iwl_fw_ini_error_dump_range {__le32 range_data_size;union { -__le32 internal_base_addr; -__le64 dram_base_addr; -__le32 page_num; + __le32 internal_base_addr __packed; + __le64 dram_base_addr __packed; + __le32 page_num __packed;struct iwl_fw_ini_fifo_hdr fifo_hdr;struct iwl_cmd_header fw_pkt_hdr; };
drivers/net/wireless/intel/iwlwifi/mvm/d3.c +1 -1
@@ -1090,7 +1090,7 @@ static int iwl_mvm_wowlan_config_key_params(struct iwl_mvm *mvm,sizeof (struct iwl_wowlan_kek_kck_material_cmd_v2 );/* skip the sta_id at the beginning */ _kek_kck_cmd = (void *) - ((u8 *)_kek_kck_cmd) +sizeof (kek_kck_cmd.sta_id); + ((u8 *)_kek_kck_cmd +sizeof (kek_kck_cmd.sta_id)); } IWL_DEBUG_WOWLAN(mvm, "setting akm %d\n",
drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c +1 -1
@@ -1950,7 +1950,7 @@ static ssize_t iwl_dbgfs_mem_read(struct file *file, char __user *user_buf, goto out; } - ret = len -copy_to_user (user_buf, (void *)rsp->data + delta, len); + ret = len -copy_to_user (user_buf, (u8 *)rsp->data + delta, len); *ppos += ret; out:
drivers/net/wireless/intel/iwlwifi/mvm/fw.c +1 -1
@@ -686,7 +686,7 @@ int iwl_run_init_mvm_ucode(struct iwl_mvm *mvm) mvm->nvm_data->bands[0 ].n_channels =1 ; mvm->nvm_data->bands[0 ].n_bitrates =1 ; mvm->nvm_data->bands[0 ].bitrates = - (void *)mvm->nvm_data->channels +1 ; + (void *)(mvm->nvm_data->channels +1 ); mvm->nvm_data->bands[0 ].bitrates->hw_value =10 ; }
drivers/net/wireless/intel/iwlwifi/mvm/rx.c +2 -2
@@ -83,8 +83,8 @@ static void iwl_mvm_pass_packet_to_mac80211(struct iwl_mvm *mvm, fraglen = len - hdrlen;if (fraglen) { -int offset = (void *)hdr + hdrlen - -rxb_addr (rxb) +rxb_offset (rxb); +int offset = (u8 *)hdr + hdrlen - + (u8 *)rxb_addr (rxb) +rxb_offset (rxb);skb_add_rx_frag (skb,0 ,rxb_steal_page (rxb), offset, fraglen, rxb->truesize);
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c +2 -2
@@ -220,8 +220,8 @@ static int iwl_mvm_create_skb(struct iwl_mvm *mvm, struct sk_buff *skb, fraglen = len - headlen;if (fraglen) { -int offset = (void *)hdr + headlen + pad_len - -rxb_addr (rxb) +rxb_offset (rxb); +int offset = (u8 *)hdr + headlen + pad_len - + (u8 *)rxb_addr (rxb) +rxb_offset (rxb);skb_add_rx_frag (skb,0 ,rxb_steal_page (rxb), offset, fraglen, rxb->truesize);
drivers/net/wireless/intel/iwlwifi/mvm/scan.c +1 -1
@@ -2150,7 +2150,7 @@ static int iwl_mvm_scan_umac(struct iwl_mvm *mvm, struct ieee80211_vif *vif,struct iwl_scan_req_umac *cmd = mvm->scan_cmd;struct iwl_scan_umac_chan_param *chan_param;void *cmd_data =iwl_mvm_get_scan_req_umac_data (mvm); -void *sec_part = cmd_data +sizeof (struct iwl_scan_channel_cfg_umac ) * +void *sec_part = (u8 *)cmd_data +sizeof (struct iwl_scan_channel_cfg_umac ) * mvm->fw->ucode_capa.n_scan_channels;struct iwl_scan_req_umac_tail_v2 *tail_v2 = (struct iwl_scan_req_umac_tail_v2 *)sec_part;
drivers/net/wireless/intel/iwlwifi/pcie/internal.h +1 -1
@@ -363,7 +363,7 @@ struct iwl_trans_pcie {/* PCI bus related data */ struct pci_dev *pci_dev; -void __iomem *hw_base; +u8 __iomem *hw_base;bool ucode_write_complete;bool sx_complete;
drivers/net/wireless/intel/iwlwifi/pcie/rx.c +1 -1
@@ -727,7 +727,7 @@ static int iwl_pcie_alloc_rxq_dma(struct iwl_trans *trans, goto err; } - rxq->rb_stts = trans_pcie->base_rb_stts + rxq->id * rb_stts_size; + rxq->rb_stts = (u8 *)trans_pcie->base_rb_stts + rxq->id * rb_stts_size; rxq->rb_stts_dma = trans_pcie->base_rb_stts_dma + rxq->id * rb_stts_size;
drivers/net/wireless/intel/iwlwifi/pcie/trans.c +1 -1
@@ -2798,7 +2798,7 @@ static ssize_t iwl_dbgfs_monitor_data_read(struct file *file, {struct iwl_trans *trans = file->private_data;struct iwl_trans_pcie *trans_pcie =IWL_TRANS_GET_PCIE_TRANS (trans); -void *cpu_addr = (void *)trans->dbg.fw_mon.block, *curr_buf; +u8 *cpu_addr = (void *)trans->dbg.fw_mon.block, *curr_buf;struct cont_rec *data = &trans_pcie->fw_mon_data;u32 write_ptr_addr, wrap_cnt_addr, write_ptr, wrap_cnt;ssize_t size, bytes_copied =0 ;
drivers/net/wireless/intel/iwlwifi/pcie/tx.c +1 -1
@@ -154,7 +154,7 @@ static int iwl_pcie_txq_build_tfd(struct iwl_trans *trans, struct iwl_txq *txq,void *tfd;u32 num_tbs; - tfd = txq->tfds + trans->txqs.tfd.size * txq->write_ptr; + tfd = (u8 *)txq->tfds + trans->txqs.tfd.size * txq->write_ptr;if (reset)memset (tfd,0 , trans->txqs.tfd.size);
drivers/net/wireless/intel/iwlwifi/queue/tx.c +3 -3
@@ -189,7 +189,7 @@ static struct page *get_workaround_page(struct iwl_trans *trans,return NULL ;/* set the chaining pointer to the previous page if there */ - *(void **)(page_address (ret) +PAGE_SIZE -sizeof (void *)) = *page_ptr; + *(void **)((u8 *)page_address (ret) +PAGE_SIZE -sizeof (void *)) = *page_ptr; *page_ptr = ret;return ret;
@@ -314,7 +314,7 @@ struct iwl_tso_hdr_page *get_page_hdr(struct iwl_trans *trans, size_t len,return NULL ; p->pos =page_address (p->page);/* set the chaining pointer to NULL */ - *(void **)(page_address (p->page) +PAGE_SIZE -sizeof (void *)) =NULL ; + *(void **)((u8 *)page_address (p->page) +PAGE_SIZE -sizeof (void *)) =NULL ; out: *page_ptr = p->page;get_page (p->page);
@@ -963,7 +963,7 @@ void iwl_txq_free_tso_page(struct iwl_trans *trans, struct sk_buff *skb)while (next) {struct page *tmp = next; - next = *(void **)(page_address (next) +PAGE_SIZE - + next = *(void **)((u8 *)page_address (next) +PAGE_SIZE -sizeof (void *));__free_page (tmp); }
drivers/net/wireless/intel/iwlwifi/queue/tx.h +1 -1
@@ -41,7 +41,7 @@ static inline void *iwl_txq_get_tfd(struct iwl_trans *trans,if (trans->trans_cfg->use_tfh) idx =iwl_txq_get_cmd_index (txq, idx); -return txq->tfds + trans->txqs.tfd.size * idx; +return (u8 *)txq->tfds + trans->txqs.tfd.size * idx; } int iwl_txq_alloc(struct iwl_trans *trans, struct iwl_txq *txq, int slots_num,
drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c +2 -2
@@ -977,8 +977,8 @@ void mwifiex_11n_rxba_sync_event(struct mwifiex_private *priv, } } - tlv_buf_left -= (sizeof (*tlv_rxba) + tlv_len); - tmp = (u8 *)tlv_rxba + tlv_len +sizeof (*tlv_rxba); + tlv_buf_left -= (sizeof (tlv_rxba->header) + tlv_len); + tmp = (u8 *)tlv_rxba +sizeof (tlv_rxba->header) + tlv_len; tlv_rxba = (struct mwifiex_ie_types_rxba_sync *)tmp; } }
drivers/net/wireless/marvell/mwifiex/sta_rx.c +9 -7
@@ -98,7 +98,8 @@ int mwifiex_process_rx_packet(struct mwifiex_private *priv, rx_pkt_len =le16_to_cpu (local_rx_pd->rx_pkt_length); rx_pkt_hdr = (void *)local_rx_pd + rx_pkt_off; -if (sizeof (*rx_pkt_hdr) + rx_pkt_off > skb->len) { +if (sizeof (rx_pkt_hdr->eth803_hdr) +sizeof (rfc1042_header) + + rx_pkt_off > skb->len) {mwifiex_dbg (priv->adapter,ERROR ,"wrong rx packet offset: len=%d, rx_pkt_off=%d\n" , skb->len, rx_pkt_off);
@@ -107,12 +108,13 @@ int mwifiex_process_rx_packet(struct mwifiex_private *priv,return -1 ; } -if ((!memcmp (&rx_pkt_hdr->rfc1042_hdr, bridge_tunnel_header, -sizeof (bridge_tunnel_header))) || - (!memcmp (&rx_pkt_hdr->rfc1042_hdr, rfc1042_header, -sizeof (rfc1042_header)) && -ntohs (rx_pkt_hdr->rfc1042_hdr.snap_type) !=ETH_P_AARP && -ntohs (rx_pkt_hdr->rfc1042_hdr.snap_type) !=ETH_P_IPX )) { +if (sizeof (*rx_pkt_hdr) + rx_pkt_off <= skb->len && + ((!memcmp (&rx_pkt_hdr->rfc1042_hdr, bridge_tunnel_header, +sizeof (bridge_tunnel_header))) || + (!memcmp (&rx_pkt_hdr->rfc1042_hdr, rfc1042_header, +sizeof (rfc1042_header)) && +ntohs (rx_pkt_hdr->rfc1042_hdr.snap_type) !=ETH_P_AARP && +ntohs (rx_pkt_hdr->rfc1042_hdr.snap_type) !=ETH_P_IPX ))) {/* * Replace the 803 header and rfc1042 header (llc/snap) with an * EthernetII header, keep the src/dst and snap_type
drivers/net/wireless/mediatek/mt76/mt76x02_eeprom.c +0 -7
@@ -131,15 +131,8 @@ u8 mt76x02_get_lna_gain(struct mt76x02_dev *dev, s8 *lna_2g, s8 *lna_5g, struct ieee80211_channel *chan) { -u16 val;u8 lna; - val =mt76x02_eeprom_get (dev,MT_EE_NIC_CONF_1 ); -if (val &MT_EE_NIC_CONF_1_LNA_EXT_2G ) - *lna_2g =0 ; -if (val &MT_EE_NIC_CONF_1_LNA_EXT_5G ) -memset (lna_5g,0 ,sizeof (s8) *3 ); -if (chan->band ==NL80211_BAND_2GHZ ) lna = *lna_2g;else if (chan->hw_value <=64 )
drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.c +11 -2
@@ -256,7 +256,8 @@ void mt76x2_read_rx_gain(struct mt76x02_dev *dev)struct ieee80211_channel *chan = dev->mphy.chandef.chan;int channel = chan->hw_value;s8 lna_5g[3 ], lna_2g; -u8 lna; +bool use_lna; +u8 lna =0 ;u16 val;if (chan->band ==NL80211_BAND_2GHZ )
@@ -275,7 +276,15 @@ void mt76x2_read_rx_gain(struct mt76x02_dev *dev) dev->cal.rx.mcu_gain |= (lna_5g[1 ] &0xff ) <<16 ; dev->cal.rx.mcu_gain |= (lna_5g[2 ] &0xff ) <<24 ; - lna =mt76x02_get_lna_gain (dev, &lna_2g, lna_5g, chan); + val =mt76x02_eeprom_get (dev,MT_EE_NIC_CONF_1 ); +if (chan->band ==NL80211_BAND_2GHZ ) + use_lna = !(val &MT_EE_NIC_CONF_1_LNA_EXT_2G ); +else + use_lna = !(val &MT_EE_NIC_CONF_1_LNA_EXT_5G ); + +if (use_lna) + lna =mt76x02_get_lna_gain (dev, &lna_2g, lna_5g, chan); + dev->cal.rx.lna_gain =mt76x02_sign_extend (lna,8 ); }EXPORT_SYMBOL_GPL (mt76x2_read_rx_gain);
drivers/of/dynamic.c +3 -3
@@ -901,13 +901,13 @@ int of_changeset_action(struct of_changeset *ocs, unsigned long action, {struct of_changeset_entry *ce; +if (WARN_ON (action >=ARRAY_SIZE (action_names))) +return -EINVAL ; + ce =kzalloc (sizeof (*ce),GFP_KERNEL );if (!ce)return -ENOMEM ; -if (WARN_ON (action >=ARRAY_SIZE (action_names))) -return -EINVAL ; -/* get a reference to the node */ ce->action = action; ce->np =of_node_get (np);
drivers/ptp/ptp_ocp.c +0 -1
@@ -1292,7 +1292,6 @@ ptp_ocp_device_init(struct ptp_ocp *bp, struct pci_dev *pdev)return 0 ; out: -ptp_ocp_dev_release (&bp->dev);put_device (&bp->dev);return err; }
drivers/s390/scsi/zfcp_aux.c +5 -4
@@ -518,12 +518,12 @@ struct zfcp_port *zfcp_port_enqueue(struct zfcp_adapter *adapter, u64 wwpn,if (port) {put_device (&port->dev); retval = -EEXIST ; - goto err_out; + goto err_put; } port =kzalloc (sizeof (struct zfcp_port ),GFP_KERNEL );if (!port) - goto err_out; + goto err_put;rwlock_init (&port->unit_list_lock);INIT_LIST_HEAD (&port->unit_list);
@@ -546,7 +546,7 @@ struct zfcp_port *zfcp_port_enqueue(struct zfcp_adapter *adapter, u64 wwpn,if (dev_set_name (&port->dev,"0x%016llx" , (unsigned long long )wwpn)) {kfree (port); - goto err_out; + goto err_put; } retval = -EINVAL ;
@@ -563,7 +563,8 @@ struct zfcp_port *zfcp_port_enqueue(struct zfcp_adapter *adapter, u64 wwpn,return port; -err_out: +err_put:zfcp_ccw_adapter_put (adapter); +err_out:return ERR_PTR (retval); }
drivers/spi/spi-zynqmp-gqspi.c +10 -8
@@ -1199,9 +1199,9 @@ static int zynqmp_qspi_probe(struct platform_device *pdev)return 0 ; clk_dis_all: -pm_runtime_put_sync (&pdev->dev); -pm_runtime_set_suspended (&pdev->dev);pm_runtime_disable (&pdev->dev); +pm_runtime_put_noidle (&pdev->dev); +pm_runtime_set_suspended (&pdev->dev);clk_disable_unprepare (xqspi->refclk); clk_dis_pclk:clk_disable_unprepare (xqspi->pclk);
@@ -1221,17 +1221,19 @@ static int zynqmp_qspi_probe(struct platform_device *pdev)* * Return: 0 Always */ -static int zynqmp_qspi_remove (struct platform_device *pdev) +static void zynqmp_qspi_remove (struct platform_device *pdev) {struct zynqmp_qspi *xqspi =platform_get_drvdata (pdev); +pm_runtime_get_sync (&pdev->dev); +zynqmp_gqspi_write (xqspi,GQSPI_EN_OFST ,0x0 ); + +pm_runtime_disable (&pdev->dev); +pm_runtime_put_noidle (&pdev->dev); +pm_runtime_set_suspended (&pdev->dev);clk_disable_unprepare (xqspi->refclk);clk_disable_unprepare (xqspi->pclk); -pm_runtime_set_suspended (&pdev->dev); -pm_runtime_disable (&pdev->dev); - -return 0 ; }static const struct of_device_id zynqmp_qspi_of_match[] = {
@@ -1243,7 +1245,7 @@ MODULE_DEVICE_TABLE(of, zynqmp_qspi_of_match);static struct platform_driver zynqmp_qspi_driver = { .probe = zynqmp_qspi_probe, - .remove = zynqmp_qspi_remove, + .remove_new = zynqmp_qspi_remove, .driver = { .name ="zynqmp-qspi" , .of_match_table = zynqmp_qspi_of_match,
drivers/target/target_core_device.c +4 -7
@@ -875,7 +875,6 @@ sector_t target_to_linux_sector(struct se_device *dev, sector_t lb)EXPORT_SYMBOL (target_to_linux_sector);struct devices_idr_iter { -struct config_item *prev_item;int (*fn)(struct se_device *dev,void *data);void *data; };
@@ -885,11 +884,9 @@ static int target_devices_idr_iter(int id, void *p, void *data) {struct devices_idr_iter *iter = data;struct se_device *dev = p; +struct config_item *item;int ret; -config_item_put (iter->prev_item); - iter->prev_item =NULL ; -/* * We add the device early to the idr, so it can be used * by backend modules during configuration. We do not want
@@ -899,12 +896,13 @@ static int target_devices_idr_iter(int id, void *p, void *data)if (!target_dev_configured (dev))return 0 ; - iter->prev_item =config_item_get_unless_zero (&dev->dev_group.cg_item); -if (!iter->prev_item) + item =config_item_get_unless_zero (&dev->dev_group.cg_item); +if (!item)return 0 ;mutex_unlock (&device_mutex); ret = iter->fn (dev, iter->data); +config_item_put (item);mutex_lock (&device_mutex);return ret;
@@ -927,7 +925,6 @@ int target_for_each_device(int (*fn)(struct se_device *dev, void *data),mutex_lock (&device_mutex); ret =idr_for_each (&devices_idr, target_devices_idr_iter, &iter);mutex_unlock (&device_mutex); -config_item_put (iter.prev_item);return ret; }
drivers/vhost/vringh.c +11 -1
@@ -123,8 +123,18 @@ static inline ssize_t vringh_iov_xfer(struct vringh *vrh, done += partlen; len -= partlen; ptr += partlen; + iov->consumed += partlen; + iov->iov[iov->i].iov_len -= partlen; + iov->iov[iov->i].iov_base += partlen; -vringh_kiov_advance (iov, partlen); +if (!iov->iov[iov->i].iov_len) { +/* Fix up old iov element then increment. */ + iov->iov[iov->i].iov_len = iov->consumed; + iov->iov[iov->i].iov_base -= iov->consumed; + + iov->consumed =0 ; + iov->i++; + } }return done; }
drivers/xen/events/events_base.c +46 -41
187 lines not on this page · raw message
fs/ksmbd/smb2pdu.c +2 -2
@@ -8058,10 +8058,10 @@ static void smb20_oplock_break_ack(struct ksmbd_work *work) goto err_out; } -opinfo_put (opinfo); -ksmbd_fd_put (work, fp); opinfo->op_state =OPLOCK_STATE_NONE ;wake_up_interruptible_all (&opinfo->oplock_q); +opinfo_put (opinfo); +ksmbd_fd_put (work, fp); rsp->StructureSize =cpu_to_le16 (24 ); rsp->OplockLevel = rsp_oplevel;
fs/nfs/nfs4proc.c +3 -1
@@ -10557,7 +10557,9 @@ static void nfs4_disable_swap(struct inode *inode)*/ struct nfs_client *clp =NFS_SERVER (inode)->nfs_client; -nfs4_schedule_state_manager (clp); +set_bit (NFS4CLNT_RUN_MANAGER , &clp->cl_state); +clear_bit (NFS4CLNT_MANAGER_AVAILABLE , &clp->cl_state); +wake_up_var (&clp->cl_state); }static const struct inode_operations nfs4_dir_inode_operations = {
fs/nfs/nfs4state.c +32 -15
85 lines not on this page · raw message
fs/nfs/sysfs.c +8 -8
@@ -18,7 +18,7 @@#include "sysfs.h" struct kobject *nfs_client_kobj; -static struct kset *nfs_client_kset; +static struct kset *nfs_kset;static void nfs_netns_object_release (struct kobject *kobj) {
@@ -55,13 +55,13 @@ static struct kobject *nfs_netns_object_alloc(const char *name,int nfs_sysfs_init (void ) { - nfs_client_kset =kset_create_and_add ("nfs" ,NULL , fs_kobj); -if (!nfs_client_kset) + nfs_kset =kset_create_and_add ("nfs" ,NULL , fs_kobj); +if (!nfs_kset)return -ENOMEM ; - nfs_client_kobj =nfs_netns_object_alloc ("net" , nfs_client_kset,NULL ); + nfs_client_kobj =nfs_netns_object_alloc ("net" , nfs_kset,NULL );if (!nfs_client_kobj) { -kset_unregister (nfs_client_kset); - nfs_client_kset =NULL ; +kset_unregister (nfs_kset); + nfs_kset =NULL ;return -ENOMEM ; }return 0 ;
@@ -70,7 +70,7 @@ int nfs_sysfs_init(void)void nfs_sysfs_exit (void ) {kobject_put (nfs_client_kobj); -kset_unregister (nfs_client_kset); +kset_unregister (nfs_kset); } static ssize_t nfs_netns_identifier_show(struct kobject *kobj,
@@ -158,7 +158,7 @@ static struct nfs_netns_client *nfs_netns_client_alloc(struct kobject *parent, p =kzalloc (sizeof (*p),GFP_KERNEL );if (p) { p->net = net; - p->kobject.kset = nfs_client_kset; + p->kobject.kset = nfs_kset;if (kobject_init_and_add (&p->kobject, &nfs_netns_client_type, parent,"nfs_client" ) ==0 )return p;
include/linux/bpf.h +1 -1
@@ -840,7 +840,7 @@ static inline int bpf_trampoline_unlink_prog(struct bpf_prog *prog,static inline struct bpf_trampoline *bpf_trampoline_get (u64 key,struct bpf_attach_target_info *tgt_info) { -return ERR_PTR (-EOPNOTSUPP ); +return NULL ; }static inline void bpf_trampoline_put (struct bpf_trampoline *tr) {}#define DEFINE_BPF_DISPATCHER (name)
include/linux/netfilter/nf_conntrack_sctp.h +1 -0
@@ -9,6 +9,7 @@ struct ip_ct_sctp {enum sctp_conntrack state;__be32 vtag[IP_CT_DIR_MAX ]; +u8 init[IP_CT_DIR_MAX ];u8 last_dir;u8 flags; };
include/net/tcp.h +4 -2
@@ -340,12 +340,14 @@ ssize_t tcp_splice_read(struct socket *sk, loff_t *ppos, struct pipe_inode_info *pipe, size_t len, unsigned int flags); -static inline void tcp_dec_quickack_mode (struct sock *sk, -const unsigned int pkts) +static inline void tcp_dec_quickack_mode (struct sock *sk) {struct inet_connection_sock *icsk =inet_csk (sk);if (icsk->icsk_ack.quick) { +/* How many ACKs S/ACKing new data have we sent? */ +const unsigned int pkts =inet_csk_ack_scheduled (sk) ?1 :0 ; +if (pkts >= icsk->icsk_ack.quick) { icsk->icsk_ack.quick =0 ;/* Leaving quickack mode we deflate ATO. */
kernel/trace/ring_buffer.c +15 -17
@@ -346,10 +346,11 @@ static void rb_init_page(struct buffer_data_page *bpage)local_set (&bpage->commit,0 ); } -/* -* Also stolen from mm/slob.c. Thanks to Mathieu Desnoyers for pointing -* this issue out. -*/ +static __always_inline unsigned int rb_page_commit(struct buffer_page *bpage) +{ +return local_read (&bpage->page->commit); +} +static void free_buffer_page (struct buffer_page *bpage) {free_page ((unsigned long )bpage->page);
@@ -1988,7 +1989,7 @@ rb_remove_pages(struct ring_buffer_per_cpu *cpu_buffer, unsigned long nr_pages)* Increment overrun to account for the lost events. */ local_add (page_entries, &cpu_buffer->overrun); -local_sub (BUF_PAGE_SIZE , &cpu_buffer->entries_bytes); +local_sub (rb_page_commit (to_remove_page), &cpu_buffer->entries_bytes);local_inc (&cpu_buffer->pages_lost); }
@@ -2332,11 +2333,6 @@ rb_reader_event(struct ring_buffer_per_cpu *cpu_buffer) cpu_buffer->reader_page->read); } -static __always_inline unsigned rb_page_commit (struct buffer_page *bpage) -{ -return local_read (&bpage->page->commit); -} -static struct ring_buffer_event *rb_iter_head_event (struct ring_buffer_iter *iter) {
@@ -2482,7 +2478,7 @@ rb_handle_head_page(struct ring_buffer_per_cpu *cpu_buffer,* the counters. */ local_add (entries, &cpu_buffer->overrun); -local_sub (BUF_PAGE_SIZE , &cpu_buffer->entries_bytes); +local_sub (rb_page_commit (next_page), &cpu_buffer->entries_bytes);local_inc (&cpu_buffer->pages_lost);/*
@@ -2625,9 +2621,6 @@ rb_reset_tail(struct ring_buffer_per_cpu *cpu_buffer, event =__rb_page_index (tail_page, tail); -/* account for padding bytes */ -local_add (BUF_PAGE_SIZE - tail, &cpu_buffer->entries_bytes); -/* * Save the original length to the meta data. * This will be used by the reader to add lost event
@@ -2641,7 +2634,8 @@ rb_reset_tail(struct ring_buffer_per_cpu *cpu_buffer,* write counter enough to allow another writer to slip * in on this page. * We put in a discarded commit instead, to make sure -* that this space is not used again. +* that this space is not used again, and this space will +* not be accounted into 'entries_bytes'. * * If we are less than the minimum size, we don't need to * worry about it.
@@ -2666,6 +2660,9 @@ rb_reset_tail(struct ring_buffer_per_cpu *cpu_buffer,/* time delta must be non zero */ event->time_delta =1 ; +/* account for padding bytes */ +local_add (BUF_PAGE_SIZE - tail, &cpu_buffer->entries_bytes); +/* Make sure the padding is visible before the tail_page->write update */ smp_wmb ();
@@ -4181,7 +4178,7 @@ u64 ring_buffer_oldest_event_ts(struct trace_buffer *buffer, int cpu)EXPORT_SYMBOL_GPL (ring_buffer_oldest_event_ts);/** -* ring_buffer_bytes_cpu - get the number of bytes consumed in a cpu buffer +* ring_buffer_bytes_cpu - get the number of bytes unconsumed in a cpu buffer * @buffer: The ring buffer * @cpu: The per CPU buffer to read from. */
@@ -4689,6 +4686,7 @@ static void rb_advance_reader(struct ring_buffer_per_cpu *cpu_buffer) length =rb_event_length (event); cpu_buffer->reader_page->read += length; + cpu_buffer->read_bytes += length; }static void rb_advance_iter (struct ring_buffer_iter *iter)
@@ -5782,7 +5780,7 @@ int ring_buffer_read_page(struct trace_buffer *buffer, }else {/* update the entry counter */ cpu_buffer->read +=rb_page_entries (reader); - cpu_buffer->read_bytes +=BUF_PAGE_SIZE ; + cpu_buffer->read_bytes +=rb_page_commit (reader);/* swap the pages */ rb_init_page (bpage);
net/core/neighbour.c +3 -1
@@ -930,7 +930,9 @@ static void neigh_periodic_work(struct work_struct *work) (state == NUD_FAILED || !time_in_range_open(jiffies, n->used, n->used + NEIGH_VAR(n->parms, GC_STALETIME)))) { - *np = n->next; +rcu_assign_pointer (*np, +rcu_dereference_protected (n->next, +lockdep_is_held (&tbl->lock)));neigh_mark_dead (n);write_unlock (&n->lock);neigh_cleanup_and_release (n);
net/core/sock_map.c +4 -0
@@ -676,6 +676,8 @@ BPF_CALL_4(bpf_msg_redirect_map, struct sk_msg *, msg, sk =__sock_map_lookup_elem (map, key);if (unlikely (!sk || !sock_map_redirect_allowed (sk)))return SK_DROP ; +if (!(flags &BPF_F_INGRESS ) && !sk_is_tcp (sk)) +return SK_DROP ; msg->flags = flags; msg->sk_redir = sk;
@@ -1269,6 +1271,8 @@ BPF_CALL_4(bpf_msg_redirect_hash, struct sk_msg *, msg, sk =__sock_hash_lookup_elem (map, key);if (unlikely (!sk || !sock_map_redirect_allowed (sk)))return SK_DROP ; +if (!(flags &BPF_F_INGRESS ) && !sk_is_tcp (sk)) +return SK_DROP ; msg->flags = flags; msg->sk_redir = sk;
net/ipv4/route.c +2 -0
@@ -3430,6 +3430,8 @@ static int inet_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh, fa->fa_type == fri.type) { fri.offload =READ_ONCE (fa->offload); fri.trap =READ_ONCE (fa->trap); + fri.offload_failed = +READ_ONCE (fa->offload_failed);break ; } }
net/ipv4/tcp_input.c +13 -0
@@ -243,6 +243,19 @@ static void tcp_measure_rcv_mss(struct sock *sk, const struct sk_buff *skb)if (unlikely (len > icsk->icsk_ack.rcv_mss +MAX_TCP_OPTION_SPACE ))tcp_gro_dev_warn (sk, skb, len); +/* If the skb has a len of exactly 1*MSS and has the PSH bit +* set then it is likely the end of an application write. So +* more data may not be arriving soon, and yet the data sender +* may be waiting for an ACK if cwnd-bound or using TX zero +* copy. So we set ICSK_ACK_PUSHED here so that +* tcp_cleanup_rbuf() will send an ACK immediately if the app +* reads all of the data and is not ping-pong. If len > MSS +* then this logic does not matter (and does not hurt) because +* tcp_cleanup_rbuf() will always ACK immediately if the app +* reads data and there is more than an MSS of unACKed data. +*/ +if (TCP_SKB_CB (skb)->tcp_flags &TCPHDR_PSH ) + icsk->icsk_ack.pending |=ICSK_ACK_PUSHED ; }else {/* Otherwise, we make more careful check taking into account, * that SACKs block is variable.
net/ipv4/tcp_output.c +3 -4
@@ -177,8 +177,7 @@ static void tcp_event_data_sent(struct tcp_sock *tp, }/* Account for an ACK we sent. */ -static inline void tcp_event_ack_sent (struct sock *sk,unsigned int pkts, -u32 rcv_nxt) +static inline void tcp_event_ack_sent (struct sock *sk,u32 rcv_nxt) {struct tcp_sock *tp =tcp_sk (sk);
@@ -192,7 +191,7 @@ static inline void tcp_event_ack_sent(struct sock *sk, unsigned int pkts,if (unlikely (rcv_nxt != tp->rcv_nxt))return ;/* Special ACK sent by DCTCP to reflect ECN */ -tcp_dec_quickack_mode (sk, pkts); +tcp_dec_quickack_mode (sk);inet_csk_clear_xmit_timer (sk,ICSK_TIME_DACK ); }
@@ -1374,7 +1373,7 @@ static int __tcp_transmit_skb(struct sock *sk, struct sk_buff *skb, sk, skb);if (likely (tcb->tcp_flags &TCPHDR_ACK )) -tcp_event_ack_sent (sk,tcp_skb_pcount (skb), rcv_nxt); +tcp_event_ack_sent (sk, rcv_nxt);if (skb->len != tcp_header_size) {tcp_event_data_sent (tp, sk);
net/l2tp/l2tp_ip6.c +1 -1
@@ -508,7 +508,6 @@ static int l2tp_ip6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)*/ if (len >INT_MAX - transhdrlen)return -EMSGSIZE ; - ulen = len + transhdrlen;/* Mirror BSD error message compatibility */ if (msg->msg_flags &MSG_OOB )
@@ -629,6 +628,7 @@ static int l2tp_ip6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) back_from_confirm:lock_sock (sk); + ulen = len +skb_queue_empty (&sk->sk_write_queue) ? transhdrlen :0 ; err = ip6_append_data(sk, ip_generic_getfrag, msg, ulen, transhdrlen, &ipc6, &fl6, (struct rt6_info *)dst,
net/netfilter/ipvs/ip_vs_sync.c +2 -2
@@ -1507,8 +1507,8 @@ static int make_send_sock(struct netns_ipvs *ipvs, int id, }get_mcast_sockaddr (&mcast_addr, &salen, &ipvs->mcfg, id); - result = sock->ops->connect (sock, (struct sockaddr *) &mcast_addr, - salen,0 ); + result =kernel_connect (sock, (struct sockaddr *)&mcast_addr, + salen,0 );if (result <0 ) {pr_err ("Error connecting to the multicast addr\n" ); goto error;
net/netfilter/nf_conntrack_proto_sctp.c +33 -10
75 lines not on this page · raw message
net/netfilter/nft_set_rbtree.c +29 -17
99 lines not on this page · raw message
net/nfc/llcp_core.c +2 -0
@@ -1646,7 +1646,9 @@ int nfc_llcp_register_device(struct nfc_dev *ndev)timer_setup (&local->sdreq_timer, nfc_llcp_sdreq_timer,0 );INIT_WORK (&local->sdreq_timeout_work, nfc_llcp_sdreq_timeout_work); +spin_lock (&llcp_devices_lock);list_add (&local->list, &llcp_devices); +spin_unlock (&llcp_devices_lock);return 0 ; }
net/rds/tcp_connect.c +1 -1
@@ -170,7 +170,7 @@ int rds_tcp_conn_path_connect(struct rds_conn_path *cp)* own the socket */ rds_tcp_set_callbacks (sock, cp); - ret = sock->ops->connect (sock, addr, addrlen,O_NONBLOCK ); + ret =kernel_connect (sock, addr, addrlen,O_NONBLOCK );rdsdebug ("connect to address %pI6c returned %d\n" , &conn->c_faddr, ret);if (ret == -EINPROGRESS )
net/sctp/associola.c +1 -2
@@ -1161,8 +1161,7 @@ int sctp_assoc_update(struct sctp_association *asoc,/* Add any peer addresses from the new association. */ list_for_each_entry (trans, &new->peer.transport_addr_list, transports) -if (!sctp_assoc_lookup_paddr (asoc, &trans->ipaddr) && - !sctp_assoc_add_peer (asoc, &trans->ipaddr, +if (!sctp_assoc_add_peer (asoc, &trans->ipaddr,GFP_ATOMIC , trans->state))return -ENOMEM ;
net/sctp/socket.c +1 -0
@@ -2452,6 +2452,7 @@ static int sctp_apply_peer_addr_params(struct sctp_paddrparams *params,if (trans) { trans->hbinterval =msecs_to_jiffies (params->spp_hbinterval); +sctp_transport_reset_hb_timer (trans); }else if (asoc) { asoc->hbinterval =msecs_to_jiffies (params->spp_hbinterval);
net/socket.c +23 -6
@@ -708,6 +708,14 @@ static inline int sock_sendmsg_nosec(struct socket *sock, struct msghdr *msg)return ret; } +static int __sock_sendmsg (struct socket *sock,struct msghdr *msg) +{ +int err =security_socket_sendmsg (sock, msg, +msg_data_left (msg)); + +return err ?:sock_sendmsg_nosec (sock, msg); +} +/** * sock_sendmsg - send a message through @sock * @sock: socket
@@ -718,10 +726,19 @@ static inline int sock_sendmsg_nosec(struct socket *sock, struct msghdr *msg)*/ int sock_sendmsg (struct socket *sock,struct msghdr *msg) { -int err =security_socket_sendmsg (sock, msg, -msg_data_left (msg)); +struct sockaddr_storage *save_addr = (struct sockaddr_storage *)msg->msg_name; +struct sockaddr_storage address; +int ret; -return err ?:sock_sendmsg_nosec (sock, msg); +if (msg->msg_name) { +memcpy (&address, msg->msg_name, msg->msg_namelen); + msg->msg_name = &address; + } + + ret =__sock_sendmsg (sock, msg); + msg->msg_name = save_addr; + +return ret; }EXPORT_SYMBOL (sock_sendmsg);
@@ -1057,7 +1074,7 @@ static ssize_t sock_write_iter(struct kiocb *iocb, struct iov_iter *from)if (sock->type ==SOCK_SEQPACKET ) msg.msg_flags |=MSG_EOR ; - res =sock_sendmsg (sock, &msg); + res =__sock_sendmsg (sock, &msg); *from = msg.msg_iter;return res; }
@@ -2036,7 +2053,7 @@ int __sys_sendto(int fd, void __user *buff, size_t len, unsigned int flags,if (sock->file->f_flags &O_NONBLOCK ) flags |=MSG_DONTWAIT ; msg.msg_flags = flags; - err =sock_sendmsg (sock, &msg); + err =__sock_sendmsg (sock, &msg); out_put:fput_light (sock->file, fput_needed);
@@ -2409,7 +2426,7 @@ static int ____sys_sendmsg(struct socket *sock, struct msghdr *msg_sys, err =sock_sendmsg_nosec (sock, msg_sys); goto out_freectl; } - err =sock_sendmsg (sock, msg_sys); + err =__sock_sendmsg (sock, msg_sys);/* * If this is sendmmsg() and sending to current destination address was * successful, remember it.
net/tipc/crypto.c +2 -2
@@ -1452,14 +1452,14 @@ static int tipc_crypto_key_revoke(struct net *net, u8 tx_key)struct tipc_crypto *tx =tipc_net (net)->crypto_tx;struct tipc_key key; -spin_lock (&tx->lock); +spin_lock_bh (&tx->lock); key = tx->key;WARN_ON (!key.active || tx_key != key.active);/* Free the active key */ tipc_crypto_key_set_state (tx, key.passive,0 , key.pending);tipc_crypto_key_detach (tx->aead[key.active], &tx->lock); -spin_unlock (&tx->lock); +spin_unlock_bh (&tx->lock);pr_warn ("%s: key is revoked\n" , tx->name);return -EKEYREVOKED ;
scripts/mod/file2alias.c +1 -1
@@ -1547,7 +1547,7 @@ void handle_moddevtable(struct module *mod, struct elf_info *info,/* First handle the "special" cases */ if (sym_is (name, namelen,"usb" ))do_usb_table (symval, sym->st_size, mod); -if (sym_is (name, namelen,"of" )) +else if (sym_is (name, namelen,"of" ))do_of_table (symval, sym->st_size, mod);else if (sym_is (name, namelen,"pnp" ))do_pnp_device_entry (symval, sym->st_size, mod);
security/integrity/ima/Kconfig +8 -14
@@ -29,9 +29,11 @@ config IMA to learn more about IMA. If unsure, say N. +if IMA + config IMA_KEXEC bool "Enable carrying the IMA measurement list across a soft boot" - depends on IMA && TCG_TPM && HAVE_IMA_KEXEC + depends on TCG_TPM && HAVE_IMA_KEXEC default n help TPM PCRs are only reset on a hard reboot. In order to validate
@@ -43,7 +45,6 @@ config IMA_KEXEC config IMA_MEASURE_PCR_IDX int - depends on IMA range 8 14 default 10 help
@@ -53,7 +54,7 @@ config IMA_MEASURE_PCR_IDX config IMA_LSM_RULES bool - depends on IMA && AUDIT && (SECURITY_SELINUX || SECURITY_SMACK || SECURITY_APPARMOR) + depends on AUDIT && (SECURITY_SELINUX || SECURITY_SMACK || SECURITY_APPARMOR) default y help Disabling this option will disregard LSM based policy rules.
@@ -61,7 +62,6 @@ config IMA_LSM_RULES choice prompt "Default template" default IMA_NG_TEMPLATE - depends on IMA help Select the default IMA measurement template.
@@ -80,14 +80,12 @@ endchoice config IMA_DEFAULT_TEMPLATE string - depends on IMA default "ima-ng" if IMA_NG_TEMPLATE default "ima-sig" if IMA_SIG_TEMPLATE choice prompt "Default integrity hash algorithm" default IMA_DEFAULT_HASH_SHA1 - depends on IMA help Select the default hash algorithm used for the measurement list, integrity appraisal and audit log. The compiled default
@@ -117,7 +115,6 @@ endchoice config IMA_DEFAULT_HASH string - depends on IMA default "sha1" if IMA_DEFAULT_HASH_SHA1 default "sha256" if IMA_DEFAULT_HASH_SHA256 default "sha512" if IMA_DEFAULT_HASH_SHA512
@@ -126,7 +123,6 @@ config IMA_DEFAULT_HASH config IMA_WRITE_POLICY bool "Enable multiple writes to the IMA policy" - depends on IMA default n help IMA policy can now be updated multiple times. The new rules get
@@ -137,7 +133,6 @@ config IMA_WRITE_POLICY config IMA_READ_POLICY bool "Enable reading back the current IMA policy" - depends on IMA default y if IMA_WRITE_POLICY default n if !IMA_WRITE_POLICY help
@@ -147,7 +142,6 @@ config IMA_READ_POLICY config IMA_APPRAISE bool "Appraise integrity measurements" - depends on IMA default n help This option enables local measurement integrity appraisal.
@@ -268,7 +262,7 @@ config IMA_KEYRINGS_PERMIT_SIGNED_BY_BUILTIN_OR_SECONDARY config IMA_BLACKLIST_KEYRING bool "Create IMA machine owner blacklist keyrings (EXPERIMENTAL)" depends on SYSTEM_TRUSTED_KEYRING - depends on IMA_TRUSTED_KEYRING + depends on INTEGRITY_TRUSTED_KEYRING default n help This option creates an IMA blacklist keyring, which contains all
@@ -278,7 +272,7 @@ config IMA_BLACKLIST_KEYRING config IMA_LOAD_X509 bool "Load X509 certificate onto the '.ima' trusted keyring" - depends on IMA_TRUSTED_KEYRING + depends on INTEGRITY_TRUSTED_KEYRING default n help File signature verification is based on the public keys
@@ -303,7 +297,6 @@ config IMA_APPRAISE_SIGNED_INIT config IMA_MEASURE_ASYMMETRIC_KEYS bool - depends on IMA depends on ASYMMETRIC_PUBLIC_KEY_SUBTYPE=y default y
@@ -322,7 +315,8 @@ config IMA_SECURE_AND_OR_TRUSTED_BOOT config IMA_DISABLE_HTABLE bool "Disable htable to allow measurement of duplicate records" - depends on IMA default n help This option disables htable to allow measurement of duplicate records. + +endif
sound/soc/soc-utils.c +1 -0
@@ -159,6 +159,7 @@ int snd_soc_dai_is_dummy(struct snd_soc_dai *dai)return 1 ;return 0 ; } +EXPORT_SYMBOL_GPL (snd_soc_dai_is_dummy);int snd_soc_component_is_dummy (struct snd_soc_component *component) {
sound/soc/tegra/tegra_audio_graph_card.c +17 -13
@@ -10,6 +10,7 @@#include <linux/platform_device.h> #include <sound/graph_card.h> #include <sound/pcm_params.h> +#include <sound/soc-dai.h> #define MAX_PLLA_OUT0_DIV 128
@@ -44,6 +45,21 @@ struct tegra_audio_cdata {unsigned int plla_out0_rates[NUM_RATE_TYPE ]; }; +static bool need_clk_update (struct snd_soc_dai *dai) +{ +if (snd_soc_dai_is_dummy (dai) || + !dai->driver->ops || + !dai->driver->name) +return false; + +if (strstr (dai->driver->name,"I2S" ) || +strstr (dai->driver->name,"DMIC" ) || +strstr (dai->driver->name,"DSPK" )) +return true; + +return false; +} +/* Setup PLL clock as per the given sample rate */ static int tegra_audio_graph_update_pll (struct snd_pcm_substream *substream,struct snd_pcm_hw_params *params)
@@ -140,19 +156,7 @@ static int tegra_audio_graph_hw_params(struct snd_pcm_substream *substream,struct snd_soc_dai *cpu_dai =asoc_rtd_to_cpu (rtd,0 );int err; -/* -* This gets called for each DAI link (FE or BE) when DPCM is used. -* We may not want to update PLLA rate for each call. So PLLA update -* must be restricted to external I/O links (I2S, DMIC or DSPK) since -* they actually depend on it. I/O modules update their clocks in -* hw_param() of their respective component driver and PLLA rate -* update here helps them to derive appropriate rates. -* -* TODO: When more HW accelerators get added (like sample rate -* converter, volume gain controller etc., which don't really -* depend on PLLA) we need a better way to filter here. -*/ -if (cpu_dai->driver->ops && rtd->dai_link->no_pcm) { +if (need_clk_update (cpu_dai)) { err =tegra_audio_graph_update_pll (substream, params);if (err)return err;
Greg Kroah-Hartman
maintainerI'm announcing the release of the 5.15.135 kernel.
All users of the 5.15 kernel series must upgrade.
The updated 5.15.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.15.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/include/asm/cpufeature.h | 6 arch/arm64/include/asm/cputype.h | 2 arch/parisc/include/asm/ldcw.h | 36 - arch/parisc/include/asm/spinlock_types.h | 5 block/blk-core.c | 2 block/blk-sysfs.c | 2 drivers/base/regmap/regcache-rbtree.c | 3 drivers/block/rbd.c | 412 ++++++++++--------- drivers/clk/imx/clk-pll14xx.c | 2 drivers/gpio/gpio-aspeed.c | 2 drivers/gpio/gpio-pxa.c | 1 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 drivers/hid/hid-sony.c | 2 drivers/hid/intel-ish-hid/ipc/pci-ish.c | 8 drivers/infiniband/core/cma.c | 2 drivers/infiniband/core/cma_configfs.c | 2 drivers/infiniband/core/nldev.c | 1 drivers/infiniband/core/uverbs_main.c | 2 drivers/infiniband/hw/mlx4/sysfs.c | 2 drivers/infiniband/hw/mlx5/main.c | 2 drivers/infiniband/sw/siw/siw_cm.c | 16 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 18 drivers/md/dm-zoned-target.c | 15 drivers/mtd/ubi/build.c | 7 drivers/net/dsa/mv88e6xxx/chip.c | 6 drivers/net/dsa/mv88e6xxx/global1.c | 31 - drivers/net/dsa/mv88e6xxx/global1.h | 1 drivers/net/dsa/mv88e6xxx/global2.c | 2 drivers/net/dsa/mv88e6xxx/global2.h | 1 drivers/net/ethernet/ibm/ibmveth.c | 25 - drivers/net/ethernet/qlogic/qed/qed_ll2.h | 2 drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c | 7 drivers/net/ethernet/ti/am65-cpsw-nuss.c | 1 drivers/net/usb/smsc75xx.c | 4 drivers/net/wan/fsl_ucc_hdlc.c | 12 drivers/net/wireless/intel/iwlwifi/fw/dbg.c | 2 drivers/net/wireless/intel/iwlwifi/fw/error-dump.h | 6 drivers/net/wireless/intel/iwlwifi/mvm/d3.c | 2 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c | 2 drivers/net/wireless/intel/iwlwifi/mvm/fw.c | 2 drivers/net/wireless/intel/iwlwifi/mvm/rx.c | 4 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c | 4 drivers/net/wireless/intel/iwlwifi/mvm/scan.c | 2 drivers/net/wireless/intel/iwlwifi/pcie/internal.h | 2 drivers/net/wireless/intel/iwlwifi/pcie/rx.c | 2 drivers/net/wireless/intel/iwlwifi/pcie/trans.c | 2 drivers/net/wireless/intel/iwlwifi/pcie/tx.c | 2 drivers/net/wireless/intel/iwlwifi/queue/tx.c | 6 drivers/net/wireless/intel/iwlwifi/queue/tx.h | 2 drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c | 4 drivers/net/wireless/marvell/mwifiex/sta_rx.c | 16 drivers/net/wireless/mediatek/mt76/mt76x02_eeprom.c | 7 drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.c | 13 drivers/of/dynamic.c | 6 drivers/ptp/ptp_ocp.c | 1 drivers/s390/scsi/zfcp_aux.c | 9 drivers/spi/spi-zynqmp-gqspi.c | 18 drivers/target/target_core_device.c | 11 drivers/vhost/vringh.c | 12 drivers/xen/events/events_base.c | 87 ++-- fs/ksmbd/smb2pdu.c | 4 fs/nfs/nfs4proc.c | 4 fs/nfs/nfs4state.c | 47 +- fs/nfs/sysfs.c | 16 include/linux/bpf.h | 2 include/linux/netfilter/nf_conntrack_sctp.h | 1 include/net/tcp.h | 6 kernel/trace/ring_buffer.c | 32 - net/core/neighbour.c | 4 net/core/sock_map.c | 4 net/ipv4/route.c | 2 net/ipv4/tcp_input.c | 13 net/ipv4/tcp_output.c | 7 net/l2tp/l2tp_ip6.c | 2 net/netfilter/ipvs/ip_vs_sync.c | 4 net/netfilter/nf_conntrack_proto_sctp.c | 43 + net/netfilter/nft_set_rbtree.c | 46 +- net/nfc/llcp_core.c | 2 net/rds/tcp_connect.c | 2 net/sctp/associola.c | 3 net/sctp/socket.c | 1 net/socket.c | 29 + net/tipc/crypto.c | 4 scripts/mod/file2alias.c | 2 security/integrity/ima/Kconfig | 22 - sound/soc/soc-utils.c | 1 sound/soc/tegra/tegra_audio_graph_card.c | 30 - 88 files changed, 690 insertions(+), 513 deletions(-)
Alexandra Diupina (1):
drivers/net: process the result of hdlc_open() and add call of hdlc_close() in uhdlc_close()
Arnd Bergmann (2):
wifi: iwlwifi: dbg_ini: fix structure packing
ima: rework CONFIG_IMA dependency block
Bartosz Golaszewski (1):
gpio: aspeed: fix the GPIO number passed to pinctrl_gpio_set_config()
Ben Wolsieffer (1):
net: stmmac: dwmac-stm32: fix resume on STM32 MCU
Benjamin Coddington (2):
NFS: Cleanup unused rpc_clnt variable
NFS: rename nfs_client_kset to nfs_kset
Benjamin Poirier (1):
ipv4: Set offload_failed flag in fibmatch results
Bernard Metzler (1):
RDMA/siw: Fix connection failure handling
Chengfeng Ye (1):
tipc: fix a potential deadlock on &tx->lock
Christophe JAILLET (3):
HID: sony: Fix a potential memory leak in sony_probe()
wifi: iwlwifi: mvm: Fix a memory corruption issue IB/mlx4: Fix the size of a buffer in add_port_entries()
Dan Carpenter (2):
net: ethernet: ti: am65-cpsw: Fix error code in am65_cpsw_nuss_init_tx_chns()
of: dynamic: Fix potential memory leak in of_changeset_action()
David Howells (1):
ipv4, ipv6: Fix handling of transhdrlen in __ip{,6}_append_data()
David Wilder (1):
ibmveth: Remove condition to recompute TCP header checksum.
Dinghao Liu (2):
scsi: zfcp: Fix a double put in zfcp_port_enqueue()
ptp: ocp: Fix error handling in ptp_ocp_device_init
Duje Mihanović (1):
gpio: pxa: disable pinctrl calls for MMP_GPIO
Eric Dumazet (1):
net: fix possible store tearing in neigh_periodic_work()
Fabio Estevam (1):
net: dsa: mv88e6xxx: Avoid EEPROM timeout when EEPROM is absent
Fedor Pchelkin (1):
dm zoned: free dmz->ddev array in dmz_put_zoned_devices
Felix Fietkau (1):
wifi: mt76: mt76x02: fix MT76x0 external LNA gain handling
Florian Westphal (1):
netfilter: nf_tables: nft_set_rbtree: fix spurious insertion failure
Gabriel Krisman Bertazi (1):
arm64: Avoid repeated AA64MMFR1_EL1 register read on pagefault path
Greg Kroah-Hartman (2):
Revert "clk: imx: pll14xx: dynamically configure PLL for 393216000/361267200Hz"
Linux 5.15.135Gustavo A. R. Silva (2):
qed/red_ll2: Fix undefined behavior bug in struct qed_ll2_info
wifi: mwifiex: Fix tlv_buf_left calculation
Ilya Dryomov (4):
rbd: move rbd_dev_refresh() definition
rbd: decouple header read-in from updating rbd_dev->header
rbd: decouple parent info read-in from updating rbd_dev
rbd: take header_rwsem in rbd_dev_refresh() only when updating
Jakub Sitnicki (1):
bpf, sockmap: Reject sk_msg egress redirects to non-TCP sockets
Jeremy Cline (1):
net: nfc: llcp: Add lock when modifying device list
Jiri Kosina (1):
HID: sony: remove duplicate NULL check before calling usb_free_urb()
Johan Hovold (1):
spi: zynqmp-gqspi: fix clock imbalance on probe failure
Johannes Berg (1):
iwlwifi: avoid void pointer arithmetic
John David Anglin (1):
parisc: Restore __ldcw_align for PA-RISC 2.0 processors
Jordan Rife (2):
net: replace calls to sock->ops->connect() with kernel_connect()
net: prevent rewrite of msg_name in sock_sendmsg()
Juergen Gross (1):
xen/events: replace evtchn_rwlock with RCU
Junxiao Bi (1):
scsi: target: core: Fix deadlock due to recursive locking
Konstantin Meskhidze (1):
RDMA/uverbs: Fix typo of sizeof argument
Leon Hwang (1):
bpf: Fix tr dereferencing
Leon Romanovsky (2):
RDMA/core: Require admin capabilities to set system parameters RDMA/cma: Fix truncation compilation warning in make_cma_ports
Mario Limonciello (1):
drm/amd: Fix detection of _PR3 on the PCIe root port
Mark Zhang (1):
RDMA/cma: Initialize ib_sa_multicast structure to 0 when join
Mauricio Faria de Oliveira (1):
modpost: add missing else to the "of" check
Ming Lei (1):
block: fix use-after-free of q->q_usage_counter
Neal Cardwell (2):
tcp: fix quick-ack counting to count actual ACKs of new data
tcp: fix delayed ACKs for MSS boundary condition
Oleksandr Tymoshenko (1):
ima: Finish deprecation of IMA_TRUSTED_KEYRING Kconfig
Pin-yen Lin (1):
wifi: mwifiex: Fix oob check condition in mwifiex_process_rx_packet
Richard Fitzgerald (1):
regmap: rbtree: Fix wrong register marked as in-cache when creating new node
Rob Herring (1):
arm64: Add Cortex-A520 CPU part definition
Robin Murphy (2):
iommu/arm-smmu-v3: Set TTL invalidation hint better iommu/arm-smmu-v3: Avoid constructing invalid range commands
Sameer Pujar (2):
ASoC: soc-utils: Export snd_soc_dai_is_dummy() symbol
ASoC: tegra: Fix redundant PLLA and PLLA_OUT0 updates
Shay Drory (1):
RDMA/mlx5: Fix NULL string error
Shigeru Yoshida (1):
net: usb: smsc75xx: Fix uninit-value access in __smsc75xx_read_reg
Srinivas Pandruvada (1):
HID: intel-ish-hid: ipc: Disable and reenable ACPI GPE bit
Stefano Garzarella (1):
vringh: don't use vringh_kiov_advance() in vringh_iov_xfer()
Trond Myklebust (2):
NFSv4: Fix a state manager thread deadlock regression
NFSv4: Fix a nfs4_state_manager() race
Uwe Kleine-König (1):
spi: zynqmp-gqspi: Convert to platform remove callback returning void
Vlastimil Babka (1):
ring-buffer: remove obsolete comment for free_buffer_page()
Xin Long (3):
netfilter: handle the connecting collision properly in nf_conntrack_proto_sctp
sctp: update transport state when processing a dupcook packet
sctp: update hb timer immediately after users change hb_interval
Zheng Yejian (1):
ring-buffer: Fix bytes info in per_cpu buffer stats
Zhihao Cheng (1):
ubi: Refuse attaching if mtd's erasesize is 0
luosili (1):
ksmbd: fix uaf in smb20_oplock_break_ack