Linux 5.10.276
Greg Kroah-Hartman
maintainer------------------
Note, this is the LAST 5.10.y kernel release. The 5.10.y kernel tree is now end-of-life. Please move to a newer kernel tree at this point in time.
------------------
I'm announcing the release of the 5.10.276 kernel.
All users of the 5.10 kernel series must upgrade.
The updated 5.10.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.10.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
------------
Documentation/trace/kprobes.rst | 2 Makefile | 2 arch/arm/mach-omap2/omap4-common.c | 1 arch/mips/Kconfig | 2 arch/mips/alchemy/common/prom.c | 23 arch/mips/sibyte/sb1250/irq.c | 3 arch/powerpc/kernel/watchdog.c | 3 arch/x86/kernel/ldt.c | 12 block/partitions/efi.c | 1 crypto/essiv.c | 2 drivers/acpi/scan.c | 4 drivers/ata/libata-scsi.c | 35 - drivers/base/power/runtime.c | 8 drivers/base/regmap/internal.h | 4 drivers/base/regmap/regmap.c | 35 - drivers/block/null_blk/null_blk.h | 29 drivers/block/null_blk/zoned.c | 311 +++++----- drivers/block/virtio_blk.c | 4 drivers/bluetooth/btintel.c | 24 drivers/bluetooth/hci_qca.c | 5 drivers/char/tpm/eventlog/acpi.c | 4 drivers/char/tpm/eventlog/tpm1.c | 7 drivers/cpufreq/acpi-cpufreq.c | 13 drivers/cpufreq/cpufreq.c | 20 drivers/cpufreq/cpufreq_ondemand.c | 4 drivers/cpufreq/intel_pstate.c | 4 drivers/cpufreq/powernow-k8.c | 6 drivers/cpufreq/powernv-cpufreq.c | 4 drivers/gpio/gpio-brcmstb.c | 1 drivers/gpio/gpio-omap.c | 13 drivers/gpio/gpio-sodaville.c | 9 drivers/gpio/gpiolib-of.h | 2 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 3 drivers/gpu/drm/bridge/sii902x.c | 8 drivers/i3c/master.c | 39 - drivers/iio/accel/kxsd9.c | 2 drivers/iio/chemical/atlas-ezo-sensor.c | 3 drivers/iio/common/hid-sensors/hid-sensor-attributes.c | 14 drivers/iio/dac/mcp4725.c | 2 drivers/iio/gyro/bmg160_core.c | 2 drivers/iio/humidity/am2315.c | 12 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | 2 drivers/iio/imu/kmx61.c | 2 drivers/iio/industrialio-trigger.c | 1 drivers/iio/light/vcnl4035.c | 4 drivers/iio/magnetometer/mmc35240.c | 3 drivers/input/ff-core.c | 2 drivers/input/input.c | 2 drivers/md/dm-cache-metadata.c | 4 drivers/md/dm-cache-target.c | 1 drivers/md/dm-crypt.c | 12 drivers/md/dm-integrity.c | 6 drivers/md/dm-log-userspace-base.c | 6 drivers/md/dm-mpath.c | 6 drivers/md/dm-raid.c | 3 drivers/md/dm-snap.c | 12 drivers/md/dm-sysfs.c | 17 drivers/md/dm-thin-metadata.c | 5 drivers/md/dm-thin.c | 6 drivers/md/dm-zoned-reclaim.c | 18 drivers/md/persistent-data/dm-btree.c | 8 drivers/media/usb/uvc/uvc_driver.c | 4 drivers/media/usb/uvc/uvc_video.c | 3 drivers/media/usb/uvc/uvcvideo.h | 1 drivers/misc/ibmvmc.c | 16 drivers/mmc/host/meson-gx-mmc.c | 23 drivers/mmc/host/mmci.c | 4 drivers/net/bonding/bond_main.c | 15 drivers/net/dsa/b53/b53_common.c | 67 ++ drivers/net/dsa/b53/b53_priv.h | 1 drivers/net/dsa/b53/b53_regs.h | 17 drivers/net/dsa/bcm_sf2.c | 5 drivers/net/ethernet/broadcom/bgmac-platform.c | 3 drivers/net/ethernet/broadcom/bgmac.c | 8 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.h | 2 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c | 26 drivers/net/ethernet/realtek/8139cp.c | 8 drivers/net/ethernet/renesas/ravb_main.c | 8 drivers/net/ethernet/sfc/ptp.c | 108 ++- drivers/net/team/team.c | 12 drivers/net/tun.c | 6 drivers/net/usb/cdc_ncm.c | 4 drivers/net/wireless/ath/ath9k/htc_drv_main.c | 8 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c | 4 drivers/nvme/host/core.c | 4 drivers/nvme/host/fc.c | 4 drivers/nvme/host/tcp.c | 26 drivers/nvme/target/fc.c | 6 drivers/nvme/target/rdma.c | 42 - drivers/regulator/Kconfig | 1 drivers/regulator/qcom_spmi-regulator.c | 35 - drivers/remoteproc/imx_rproc.c | 5 drivers/s390/block/dasd_eckd.c | 3 drivers/s390/block/dasd_ioctl.c | 4 drivers/scsi/aic7xxx/aic7xxx_core.c | 2 drivers/spi/spi-pic32-sqi.c | 3 drivers/staging/media/atomisp/pci/sh_css_param_dvs.c | 11 drivers/staging/media/atomisp/pci/sh_css_param_shading.c | 4 drivers/staging/media/atomisp/pci/sh_css_params.c | 35 - drivers/target/target_core_pr.c | 9 drivers/tty/serial/8250/8250_lpss.c | 3 drivers/tty/serial/samsung_tty.c | 3 drivers/usb/gadget/function/f_mass_storage.c | 8 drivers/usb/gadget/function/f_midi.c | 4 drivers/usb/gadget/function/storage_common.c | 7 drivers/usb/gadget/function/storage_common.h | 3 drivers/usb/gadget/function/u_serial.c | 3 drivers/usb/host/pci-quirks.c | 13 drivers/usb/misc/usbtest.c | 3 drivers/usb/serial/garmin_gps.c | 31 drivers/usb/serial/io_edgeport.c | 140 +--- drivers/usb/serial/oti6858.c | 16 drivers/usb/serial/sierra.c | 18 drivers/usb/storage/uas-detect.h | 8 drivers/vfio/fsl-mc/vfio_fsl_mc.c | 10 drivers/vfio/platform/vfio_platform_common.c | 10 drivers/vhost/iotlb.c | 35 - drivers/vhost/scsi.c | 51 + drivers/vhost/test.c | 4 drivers/vhost/vdpa.c | 70 +- drivers/vhost/vhost.c | 6 drivers/w1/masters/ds2482.c | 36 - drivers/w1/slaves/w1_ds2805.c | 8 drivers/w1/slaves/w1_ds28e04.c | 18 drivers/w1/slaves/w1_therm.c | 37 - drivers/w1/w1.c | 21 drivers/w1/w1_int.c | 8 drivers/w1/w1_netlink.c | 8 drivers/xen/gntdev.c | 8 drivers/xen/grant-table.c | 37 + drivers/xen/pvcalls-back.c | 1 fs/adfs/dir_fplus.c | 2 fs/aio.c | 7 fs/btrfs/scrub.c | 8 fs/ext4/extents.c | 8 fs/inode.c | 3 fs/nfs/pnfs.c | 2 fs/proc/proc_sysctl.c | 5 fs/read_write.c | 14 fs/stat.c | 3 fs/udf/super.c | 19 include/linux/fs.h | 10 include/linux/i3c/master.h | 3 include/linux/key.h | 3 include/linux/mmzone.h | 3 include/linux/regmap.h | 2 include/linux/vhost_iotlb.h | 3 include/net/arp.h | 8 include/net/bluetooth/hci_core.h | 13 include/net/dst_metadata.h | 2 include/net/ndisc.h | 16 include/net/neighbour.h | 11 include/net/netfilter/nf_conntrack_helper.h | 1 include/net/sock.h | 29 kernel/locking/osq_lock.c | 81 +- kernel/module.c | 4 kernel/sched/pelt.c | 2 kernel/time/timekeeping.c | 8 kernel/trace/trace_kprobe.c | 3 lib/bootconfig.c | 7 mm/khugepaged.c | 4 mm/page_alloc.c | 4 net/batman-adv/bat_iv_ogm.c | 2 net/bluetooth/hci_core.c | 35 - net/bluetooth/l2cap_core.c | 5 net/bridge/br_arp_nd_proxy.c | 6 net/core/filter.c | 79 ++ net/core/lwt_bpf.c | 12 net/core/skbuff.c | 2 net/ipv4/fib_trie.c | 14 net/ipv4/fou_core.c | 12 net/ipv4/igmp.c | 2 net/ipv4/inet_connection_sock.c | 20 net/ipv4/ip_output.c | 8 net/ipv4/netfilter/arp_tables.c | 5 net/ipv4/netfilter/ip_tables.c | 5 net/ipv4/route.c | 25 net/ipv4/tcp_input.c | 6 net/ipv6/calipso.c | 12 net/ipv6/exthdrs.c | 5 net/ipv6/exthdrs_core.c | 7 net/ipv6/icmp.c | 10 net/ipv6/ip6_output.c | 13 net/ipv6/mip6.c | 9 net/ipv6/netfilter/ip6_tables.c | 5 net/ipv6/route.c | 10 net/iucv/af_iucv.c | 9 net/mac80211/ibss.c | 21 net/mac80211/ieee80211_i.h | 3 net/mac80211/ocb.c | 21 net/mac80211/tx.c | 6 net/netfilter/ipvs/ip_vs_app.c | 2 net/netfilter/ipvs/ip_vs_core.c | 12 net/netfilter/nf_conntrack_helper.c | 20 net/netfilter/nf_conntrack_sip.c | 4 net/netfilter/nf_nat_masquerade.c | 4 net/netfilter/nft_ct.c | 126 +++- net/netfilter/xt_NETMAP.c | 4 net/netfilter/xt_recent.c | 7 net/rds/rdma.c | 5 net/sched/act_ife.c | 6 net/sched/sch_teql.c | 9 net/sctp/sm_make_chunk.c | 45 - net/sctp/sm_statefuns.c | 16 net/sctp/socket.c | 2 net/sctp/stream.c | 2 net/sctp/stream_interleave.c | 38 - net/socket.c | 11 net/sunrpc/clnt.c | 2 net/sunrpc/rpc_pipe.c | 1 net/tipc/bearer.c | 33 + net/tls/tls_sw.c | 16 net/wireless/scan.c | 3 net/xfrm/xfrm_replay.c | 6 security/keys/key.c | 10 security/keys/keyctl.c | 2 security/keys/keyring.c | 25 security/keys/request_key.c | 14 sound/hda/hdac_controller.c | 10 sound/pci/Kconfig | 1 sound/soc/codecs/max98090.c | 22 sound/soc/codecs/mt6359.c | 1 sound/soc/codecs/rt700.c | 2 sound/soc/codecs/rt711.c | 2 sound/usb/caiaq/device.c | 11 sound/usb/pcm.c | 6 tools/bootconfig/test-bootconfig.sh | 18 tools/testing/selftests/ftrace/test.d/kprobe/kprobe_non_uniq_symbol.tc | 2 tools/testing/selftests/net/packetdrill/tcp_bidir_fast_retransmit_nosack.pkt | 42 + 229 files changed, 2212 insertions(+), 964 deletions(-)
Abdifatah Suruur (2):
vfio/platform: prevent read-only region mappings from becoming writable vfio/fsl-mc: prevent read-only region mappings from becoming writable
Adrian Hunter (1):
i3c: master: Fix recursive locking during device registration
Alex Austin (3):
sfc: ptp: drop the stale frequency reset in efx_ptp_start()
sfc: ptp: serialize host and MC synchronization transactions
sfc: ptp: avoid racing PPS timestamp updates
Alexander Sarmanow (1):
iio: light: vcnl4035: Fix reversed ALS mode bit
Alexei Starovoitov (3):
bpf: Don't let bpf_skb_adjust_room() raise gso_size to GSO_BY_FRAGS
bpf: Don't leave a stale MAC header in bpf_lwt_push_ip_encap()
ipv6: Check the Home Address option again before its address is used
Alexey Dobriyan (1):
module: fix [e_shstrndx].sh_size=0 OOB access
Andrey Misiurov (2):
xen/gntdev: fix deadlock between map ioctl and mmap
sctp: fix ASCONF address change on single-homed hosts
Anfernee Cao (1):
mmc: mmci: fix DMA channel leak when mmc_add_host() fails
Anirudh Rayabharam (2):
vhost: fix hung thread due to erroneous iotlb entries
vhost: handle error while adding split ranges to iotlb
Arnav Kapoor (1):
iio: imu: inv_mpu6050: fix magnetometer scale of Y and Z axes
Avi Weiss (5):
gpio: omap: Propagate runtime PM failures in probe and request
net: skbuff: reject zero MPLS TTL before decrementing NFSv4.1: retain MDS I/O until both thresholds are met
SUNRPC: wake poll waiters when an empty pipe is unlinked
SUNRPC: preserve timeout policy when cloning clients
Baek Kyu, Kim (1):
iio: dac: mcp4725: Update the cached DAC value only on success
Bartosz Golaszewski (1):
gpio: sodaville: fix use-after-free bug when registering the irqchip
Bas Nieuwenhuizen (1):
drm/amdgpu: Check cs flags.
Binbin Deng (3):
Bluetooth: hci_core: Initialize IRK before publication
Bluetooth: hci_core: Initialize link key before publication
Bluetooth: hci_core: Initialize LTK before publication
Bjorn Helgaas (1):
nvme: fix various comment typos
Brian Ellis (1):
usb: gadget: u_serial: fix NULL deref in gs_close() after failed open
Bryam Vargas (1):
net/iucv: take a private, writable frame before rewriting it in place
Catherine L (1):
Bluetooth: btintel: fix buffer over-read in fw payload
Cen Zhang (1):
Bluetooth: hci_core: Keep link-key filtering inside RCU
Cen Zhang (Microsoft) (1):
netfilter: xt_recent: do not call remove_proc_entry() under recent_lock
Chase Hiltz (1):
ipv4: route: don't blackhole in-use routes when retiring fnhe routes
Chen Cheng (1):
dm snapshot: fix discard writing into the next COW chunk
Cheng Yongkang (1):
fs/proc: fix the write length returned by proc_sys_call_handler()
Chengfeng Ye (2):
ipvs: Defer application parent freeing until after RCU readers
ipvs: fix protocol data lifetime during namespace teardown
Chris Mason (8):
mm/khugepaged: preserve dirty bits when collapsing PTE-mapped THPs
bpf: Reject non-IPv6 packets in BPF_LWT_ENCAP_SEG6
bpf: Limit the SRH length in bpf_lwt_seg6_adjust_srh()
bpf: Move the MAC header in bpf_lwt_seg6_adjust_srh()
bpf: Move the transport header with the moved headers
nvmet-rdma: take a device off the list last
nvmet-rdma: queue the release work under the mutex
nvmet-rdma: disconnect a queue on device removal
Christian Brauner (1):
aio: don't let exit_aio() return before complete() is done
Christian Loehle (2):
cpufreq: Preserve global boost state on failed updates
cpufreq: Serialize global boost updates
Colton Pawielski (1):
net: 8139cp: keep Rx masked while NAPI is scheduled
Damien Le Moal (3):
null_blk: improve zone locking
null_blk: Improve implicit zone close
ata: libata-scsi: Simplify ata_scsi_mode_select_xlat()
Daniel Wagner (1):
nvme-tcp: handle number of queue changes
Daniël Trujillo (1):
ipv4: fib_trie: prevent speculative out-of-bounds child access
Dave Hansen (1):
x86/mm: Ensure write visibility during LDT installation
David Laight (1):
locking/osq_lock: Clarify osq_wait_next() calling convention
Deepanshu Kartikey (1):
batman-adv: avoid WARN_ON for orig_ifinfo allocation failure
Dmitry Baryshkov (1):
regulator: qcom_spmi: don't take a sleeping lock in the SAW IPI
Dmitry Torokhov (2):
Input: destroy force-feedback device on input unregistration
gpiolib: of: return -ENOENT from of_gpio_count() stub
Eduardo Mucelli Rezende Oliveira (1):
bootconfig: Trim unquoted values at end of file
Edward Adam Davis (2):
ext4: avoid infinite loops caused by residual data dm cache: reject kcopyd client destory if it setup failed
Eric Auger (1):
vhost: Allow null msg.size on VHOST_IOTLB_INVALIDATE
Eric Dumazet (2):
calipso: do not charge request socket options to the listener
fou: gue: check IP version of held packets for direct IP encapsulation
Feng Ning (1):
staging: media: atomisp: use array3_size() for overflow-safe allocation
Fernando Fernandez Mancera (1):
netfilter: x_tables: check target name before accessing verdict
Filipe Manana (1):
btrfs: scrub: fix lost wakeup and hang when cancelling a scrub that is finishing
Florian Fainelli (6):
net: dsa: b53: Enable IGMP and MLD control packet CPU copies
net: ethernet: bgmac: preserve forced 2.5 Gbps link speed
net: dsa: b53: Force flow control for BCM5301X CPU port(s)
net: dsa: b53: restore the NSP IMP port 2 Gbps mode
MIPS: Alchemy: Save the Ethernet address before reusing PROM memory
MIPS: SB1250: Validate and update IRQ affinity
Florian Westphal (2):
netfilter: nft_ct: expectation timeouts are passed in milliseconds
netfilter: nat: zero newrange before filling it in
Gichoon Han (1):
ALSA: usb-audio: Drop capture packets with bogus actual_length
Greg Kroah-Hartman (1):
Linux 5.10.276
Gregory Price (Meta) (2):
mm/mmzone: read the zoneref slot once in zonelist_zone() mm/page_alloc: detect zonelist rebuilds from memory hot-add
Guanglei Zhu (1):
tpm: eventlog: check the payload size before reading tag events
Guangshuo Li (2):
gpio: brcmstb: fix UAF after IRQ domain setup failure
iio: accel: kxsd9: Fix potential use-after-free on removal
Guillaume Nault (1):
tcp: Fix dup-ack detection on non-SACK bidirectional data transfer.
Guixiong Wei (1):
KEYS: do not let an unmatched key decide the search result
Henry Martin (1):
sctp: fix skb_over_panic when adding addresses with a pending delete of another family
Hongjian Dai (1):
spi: pic32-sqi: fail transfer when the BD ring is exhausted
Hui Peng (2):
udf: validate vat20->lengthHeader and VAT inode size in udf_load_vat()
USB: serial: garmin_gps: validate packet data length in nat_receive()
Hui Su (1):
sched/pelt: Fix u32 truncation of the PELT period count
Hungyu Lin (2):
vfs: preserve subsecond timestamps at filesystem time limits
timekeeping: Read getboottime64() offsets under the sequence counter
HyeongJun An (1):
fs/adfs: bound directory entry name length in adfs_fplus_getnext()
Hyunwoo Kim (1):
tcp: fix NULL pointer dereference when restarting a Fast Open listener
Igor Velkov (3):
mmc: meson-gx: report busy from DAT0 alone
mmc: meson-gx: honour the busy timeout for R1b commands
mmc: meson-gx: name the limit of the CMD_CFG timeout field
Imre Kaloz (1):
scsi: aic7xxx: Fix REQUEST SENSE allocation length on big-endian hosts
Jamal Hadi Salim (2):
net/sched: sch_teql: reject qdiscs from another network namespace net/sched: act_ife: encode configured zero metadata values
Jan Beulich (1):
Xen/gnttab: improve error handling in gnttab_dma_{alloc,free}_pages()
Jan Kara (1):
udf: validate VAT inode size for old VAT format
Jarkko Sakkinen (2):
KEYS: Reject descriptions larger than KEY_MAX_DESC_SIZE
KEYS: Verify the key identity in __key_unlink_begin
Jason Wang (1):
vhost: allow batching hint without size
Jay Vadayath (1):
dm-raid: bound array_position before indexing failed_devices
Jean-Paul Sergent (1):
net: dst_metadata: fix memcmp overread in skb_metadata_dst_cmp
Jens Axboe (1):
net: leave O_NONBLOCK to the sendmsg and recvmsg syscalls
Jia Jia (2):
scsi: target: Validate REGISTER AND MOVE TransportID length
vhost-scsi: preserve event ordering
Jiahao Xu (1):
net: usb: cdc_ncm: don't underflow the NDP room check
Jiale Yao (3):
misc: ibmvmc: initialize HMC state before device registration
iio: gyro: bmg160: reject duplicate event disable
iio: imu: kmx61: reject duplicate event disable
Jiapeng Chong (1):
ipv6: ICMPV6: Use swap() instead of open coding it
Joas Antonio dos Santos (1):
netfilter: nf_conntrack_sip: fix OOB read in ct_sip_parse_transport()
Johan Hovold (8):
USB: serial: garmin_gps: fix deadlock on reset request
USB: serial: io_edgeport: fix NULL-deref on early status
USB: serial: io_edgeport: fix potential close() use-after-free
USB: serial: io_edgeport: fix potential NULL-deref at open
USB: serial: io_edgeport: fix potential fifo corruption
USB: serial: io_edgeport: fix potential use-after-free on disconnect
USB: serial: io_edgeport: move initial termios update to open()
USB: serial: io_edgeport: serialise MCR accesses
Josef Bacik (12):
iio: hid-sensors: fix a division by zero
serial: 8250_lpss: don't divide by 0 above 6.25 Mbaud
serial: samsung: put the previous baud clock
USB: serial: oti6858: fix the teardown order in close
w1: don't hold list_mutex while a slave is torn down
w1: ds2482: set the strong pull-up with its byte
w1: ds2805: use the bus mutex to talk on the bus
w1: ds28e04: use the bus mutex to talk on the bus
w1: netlink: drop the slave after the bus is unlocked
w1: remove the master's files before taking its locks
w1: use the bus mutex for the "rw" file
w1: w1_therm: leave the slaves of other families alone
Jude Gyimah (1):
ALSA: aw2-alsa: select SND_PCM
Jun Yang (1):
net: bridge: use one headroom snapshot for ND replies
Junyoung Jang (1):
igmp: use the joined device when leaving a multicast group
Jérémy Jean (1):
crypto: essiv - fix use-after-free in AEAD path
Kalpesh Solanki (1):
tun: disallow setting IEEE 802.15.4 and 6LoWPAN link types via TUNSETLINK
Karl Mehltretter (1):
iio: trigger: Return an error when the trigger has no free irq
Kavitha Daula (1):
xen/grant-table: annotate on-stack work in gnttab_unmap_refs_sync()
Kory Maincent (1):
net: ravb: Fix missing rtnl lock in suspend/resume path
Kuniyuki Iwashima (1):
ipv4: Call rt_add_uncached_list() if !do_cache in ip_route_input_slow().
Kyle Pepper (1):
Bluetooth: reject invalid LE supervision timeout relationships
Kyle Zeng (5):
net: protect negative destination advice with RCU
net: require a full socket in sock_confirm_neigh() net/rds: Do not unpin a page after a failed atomic pin
ipv4: keep XFRM headers out of corked skb lengths
sctp: avoid requeueing pending control chunks
Kyrylo Biryuk (2):
dm zoned: back off when reclaim cannot make progress dm zoned: do not reclaim a random zone into another random zone
Li RongQing (2):
team: fix promisc/allmulti leak in team_port_add error path
cpufreq: acpi-cpufreq: fix P-state index mismatch in extract_io()
Liang He (2):
ARM: OMAP2+: omap4-common: Fix refcount leak bug
ASoC: mt6359: Fix refcount leak bug
LiangCheng Wang (1):
ASoC: max98090: keep the MIC boost across mic input power-up
Lifeng Zheng (1):
cpufreq: Return -EOPNOTSUPP if no policy supports boost
Linfeng Sun (4):
vhost: reject invalid IOTLB update permissions
vhost-scsi: validate event queue descriptor direction
vhost-scsi: reject delayed virtqueue setup
vhost: reject backend enable without a kick file
Luiz Augusto von Dentz (1):
Bluetooth: hci_core: Fix not checking skb length on hci_scodata_packet
Luiz Capitulino (Red Hat) (1):
powerpc/watchdog: disable watchdog when watchdog_thresh=0
Mani Tofigh (1):
nvme: fix deadlock on nvme_subsystems_lock in nvme_init_subsystem()
Manuel Ebner (1):
docs, kprobes: Fix bracket
Max Kellermann (2):
include/linux/fs.h: add inode_lock_killable() fs/read_write: make default_llseek() killable
Maximilian Czirr (1):
iio: hid-sensor: Fix scale for magnetic north heading
Mehmet Fide (2):
wifi: ath9k_htc: start ANI when an AP interface begins to beacon
wifi: ath9k_htc: do not start ANI before the first channel is set
Miaoqian Lin (1):
remoteproc: imx_rproc: Fix refcount leak in imx_rproc_addr_init
Michał Kopeć (1):
ALSA: hda/core: Stop capability walk on empty capability header
Mike Christie (1):
vhost-scsi: Fix handling of multiple calls to vhost_scsi_set_endpoint
Mikulas Patocka (7):
dm-sysfs: fix misbehavior if kobject_init_and_add fails dm persistent data: don't leak bufio buffer if find_leaf fails
dm-cache: fix NULL pointer dereference on open failure
dm-cache: fix ending a cursor that never began
dm-integrity: don't attempt to commit journal on disabled device
dm-thin: fix leak if __set_snapshot_details fails
dm-thin: fix parsing of feature arguments
Nikhil Gautam (1):
iio: atlas-ezo: Fix humidity channel read support
Niklas Cassel (4):
null_blk: fix opening closed zones at the active zone limit
ata: libata-scsi: fix MODE SELECT handling of data after the mode page
ata: libata-scsi: reject MODE SELECT mode pages with a wrong SPF bit
ata: libata-scsi: fix MODE SELECT field pointer for block descriptor length
Nikola Z. Ivanov (1):
team: Add matching error label for failed action
Ofri Zangi (1):
tls: fix async encryption race on weakly ordered architectures
Olivier Kaloudoff (1):
usb: uas: ignore UAS for ASMT135x bridges (174c:55aa)
Pablo Neira Ayuso (1):
netfilter: nft_ct: move custom expectation support to helper
Pengpeng Hou (1):
drm/bridge: sii902x: validate I2S data lane values
Peter Zijlstra (2):
locking/osq: Switch osq_wait_next()/atomic_cmpxchg() ordering locking/osq: Fix unlink queue corruption
Pierre-Louis Bossart (1):
ASoC: rt7*-sdw: harden jack_detect_handler
Prathamesh Deshpande (1):
net/mlx5e: IPoIB, Fix QPN lookup race
Rafael J. Wysocki (1):
PM: runtime: Update last_busy in rpm_resume() for active devices
Ricardo Ribalda (1):
media: uvcvideo: Undup use uvc_endpoint_max_bpi() code
Rishabh Jain (1):
usb: pci-quirks: always assert xHCI OS ownership
Rishikesh Jethwani (1):
tls: only install push_pending_record for a TX context
Rob Herring (Arm) (1):
regulator: qcom_spmi: Drop unnecessary of_find_property() call
Rosen Penev (1):
MIPS: Avoid dead code/data elimination when using recordmcount
Sasha Levin (1):
ACPI: scan: Print the offline failure message in acpi_bus_offline()
Sebastian Andrzej Siewior (1):
cpufreq: Replace deprecated CPU-hotplug functions
Sergei Nizovtsev (1):
ALSA: caiaq: Kill EP1 URB before unregistering the input device
Shashank Mohan Jain (1):
iio: magnetometer: mmc35240: leave cache-only mode before the cache sync
Shubham Antil (1):
xfrm: zero-initialise km_event in the replay-notify path
Siddharth Chintamaneni (1):
fs: reject negative offsets for SEEK_DATA and SEEK_HOLE in default_llseek()
Sonali Pradhan (1):
usb: gadget: f_midi: fix UAF race during IN request handling
Srinivas Pandruvada (1):
iio: hid-sensors: fix fractional part for unit exponents -7 and -8
Stefan Haberland (2):
s390/dasd: Fix wrong free and refcount leak in build_check_tcw error path s390/dasd: Don't trust userspace-supplied result field in format check
Steven Rostedt (1):
tracing/selftests: Fix false bashism in kprobe_non_uniq_symbol.tc
Su Hui (1):
fs/stat.c: avoid harmless garbage value problem in vfs_statx_path()
Takashi Iwai (1):
tpm: acpi: Fix memory leak at tpm_read_log_acpi() error path
Tal Zussman (1):
vhost-vdpa: fix pinned page leak in vhost_vdpa_pa_map() error path
Tim Budding (3):
sctp: abort unordered partial delivery when its message is skipped
sctp: fix I-FORWARD-TSN handling of fragments on other streams
sctp: report the partially delivered MID in PARTIAL_DELIVERY_ABORTED
Timur Stukan (1):
bonding: 3ad: don't set BOND_LINK_FAIL on a slave that is not up
Tristan Madani (1):
USB: serial: sierra: validate URB length in instat callback
Tung Nguyen (1):
tipc: reject attaching bearer of different media to the same occupied device
Umang Pokhriyal (1):
tun: delete the flow entries of the moved queue on detach
Vidhu Sarwal (1):
iio: humidity: am2315: fix negative temperature decoding
Vladimir Oltean (1):
regmap: teach regmap to use raw spinlocks if requested in the config
Wahid Khan (1):
wifi: cfg80211: don't truncate the merged MBSSID profile length
Weiming Shi (1):
sctp: reset stored flag for each association
Wenwen Fu (1):
tracing: skip boot kprobe setup when no events were requested
Xia Yan (1):
ipv6: fix cached route reuse for control messages
Xie Yongji (2):
vdpa: factor out vhost_vdpa_pa_map() and vhost_vdpa_pa_unmap()
vhost-iotlb: Add an opaque pointer for vhost IOTLB
Yajun Deng (1):
neigh: introduce neigh_confirm() helper function
Yaroslav Dudkov (1):
ipv6: ignore link state in gateway check
Yehyeong Lee (1):
xen/pvcalls: destroy the per-socket workqueue on release
Yingjie Wang (3):
ipv6: reject routes without an inet6_dev
dm mpath: cap queue_if_no_path_timeout_secs
dm thin: avoid wrapping no_space_timeout
Yousef Alhouseen (1):
vhost/vdpa: reject overflowing PA map page counts on 32-bit
Yu Zhang (1):
usb: gadget: f_mass_storage: take filesem in nofua store to fix backing-file UAF
YuanZhe Liu (2):
Bluetooth: hci_qca: fix use-after-free in ibs debugfs files
usb: usbtest: prevent divide by zero in simple_io() with zero length
Yuqiang Sun (1):
bpf: lwt: Free the skb when bpf_xmit() fails to expand the headroom
Zhao Feng (1):
dm crypt: fix use of uninitialized percpu_counter in ctr error path
Zhao Li (7):
Bluetooth: L2CAP: Clear request identifiers on incoming LE connections
wifi: cfg80211: release rejected nontransmitted BSS reference
wifi: mac80211: recheck injected headers after removing FCS
wifi: mac80211: recheck the IBSS station limit before insertion
wifi: mac80211: recheck the OCB station limit before insertion
wifi: mac80211: bound pending IBSS station allocations
wifi: mac80211: bound pending OCB station allocations
Zhiqi Zhang (1):
bootconfig: Allow keys with the maximum supported depth
Zhou Minqiang (1):
PM: runtime: Fix check_flush_dependency warning from pm_runtime_remove
Zilin Guan (1):
mt76: mt7615: Fix memory leak in mt7615_mcu_wtbl_sta_add()
Zizhi Wo (2):
fs: aio: reject partial mremap to avoid Null-pointer-dereference error
block: partitions: reject GPT entries with starting_lba > ending_lba
[email protected] (2):
dm log userspace: drop the device reference on error dm mpath: fix buffer overflow in parse_hw_handler()
zhenwei pi (1):
virtio-blk: fix implicit overflow on virtio_max_dma_size
Greg Kroah-Hartman
maintainerDocumentation/trace/kprobes.rst +1 -1
@@ -31,7 +31,7 @@ can trap at almost any kernel code address [1]_, specifying a handler routine to be invoked when the breakpoint is hit. .. [1] some parts of the kernel code can not be trapped, see - :ref:`kprobes_blacklist`) + :ref:`kprobes_blacklist` There are currently two types of probes: kprobes, and kretprobes (also called return probes). A kprobe can be inserted on virtually
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 10 -SUBLEVEL = 275 +SUBLEVEL = 276 EXTRAVERSION = NAME = Dare mighty things
arch/arm/mach-omap2/omap4-common.c +1 -0
@@ -140,6 +140,7 @@ static int __init omap4_sram_init(void) __func__); else sram_sync = (void *)gen_pool_alloc (sram_pool,PAGE_SIZE ); +of_node_put (np);return 0 ; }
arch/mips/Kconfig +1 -1
@@ -72,7 +72,7 @@ config MIPS select HAVE_IRQ_TIME_ACCOUNTING select HAVE_KPROBES select HAVE_KRETPROBES - select HAVE_LD_DEAD_CODE_DATA_ELIMINATION + select HAVE_LD_DEAD_CODE_DATA_ELIMINATION if !FTRACE_MCOUNT_USE_RECORDMCOUNT select HAVE_MOD_ARCH_SPECIFIC select HAVE_NMI select HAVE_OPROFILE
arch/mips/alchemy/common/prom.c +20 -3
@@ -45,6 +45,11 @@ int prom_argc;char **prom_argv;char **prom_envp; +static char prom_ethaddr[6 ]__initdata ; +static bool prom_ethaddr_valid__initdata ; + +static void __init prom_init_ethernet_addr (void ); +void __init prom_init_cmdline (void ) {int i;
@@ -94,6 +99,9 @@ void __init prom_init(void)if (!memsize_str ||kstrtoul (memsize_str,0 , &memsize)) memsize =SZ_64M ;/* minimum memsize is 64MB RAM */ +/* Save the MAC before the allocator can reuse the PROM environment. */ +prom_init_ethernet_addr (); +memblock_add (0 , memsize); }
@@ -124,7 +132,7 @@ static inline void str2eaddr(unsigned char *ea, unsigned char *str) } } -int __init prom_get_ethernet_addr (char *ethernet_addr) +static void __init prom_init_ethernet_addr (void ) {char *ethaddr_str;
@@ -134,12 +142,21 @@ int __init prom_get_ethernet_addr(char *ethernet_addr)/* Check command line */ ethaddr_str =strstr (arcs_cmdline,"ethaddr=" );if (!ethaddr_str) -return -1 ; +return ; ethaddr_str +=strlen ("ethaddr=" ); } -str2eaddr (ethernet_addr, ethaddr_str); +str2eaddr (prom_ethaddr, ethaddr_str); + prom_ethaddr_valid = true; +} + +int __init prom_get_ethernet_addr (char *ethernet_addr) +{ +if (!prom_ethaddr_valid) +return -1 ; + +memcpy (ethernet_addr, prom_ethaddr,sizeof (prom_ethaddr));return 0 ; }
arch/mips/sibyte/sb1250/irq.c +3 -0
@@ -76,6 +76,8 @@ static int sb1250_set_affinity(struct irq_data *d, const struct cpumask *mask,unsigned long flags; i =cpumask_first_and (mask, cpu_online_mask); +if (i >= nr_cpu_ids) +return -EINVAL ;/* Convert logical CPU to physical CPU */ cpu =cpu_logical_map (i);
@@ -103,6 +105,7 @@ static int sb1250_set_affinity(struct irq_data *d, const struct cpumask *mask,____raw_writeq (cur_ints,IOADDR (A_IMR_MAPPER (cpu) +R_IMR_INTERRUPT_MASK )); } +irq_data_update_effective_affinity (d,cpumask_of (i));raw_spin_unlock_irqrestore (&sb1250_imr_lock, flags);return 0 ;
arch/powerpc/kernel/watchdog.c +3 -0
@@ -376,6 +376,9 @@ static void start_watchdog(void *arg)if (!(watchdog_enabled &NMI_WATCHDOG_ENABLED ))return ; +if (!watchdog_thresh) +return ; +if (!cpumask_test_cpu (cpu, &watchdog_cpumask))return ;
arch/x86/kernel/ldt.c +9 -3
@@ -43,7 +43,7 @@ void load_mm_ldt(struct mm_struct *mm) {struct ldt_struct *ldt; -/* READ_ONCE synchronizes with smp_store_release */ +/* Pairs with WRITE_ONCE() in install_ldt() */ ldt =READ_ONCE (mm->context.ldt);/*
@@ -414,8 +414,14 @@ static void install_ldt(struct mm_struct *mm, struct ldt_struct *ldt) {mutex_lock (&mm->context.lock); -/* Synchronizes with READ_ONCE in load_mm_ldt. */ -smp_store_release (&mm->context.ldt, ldt); +/* +* Ensure that new mm user CPUs either see the new LDT value +* or get an IPI. Make the store visible before reading +* mm_cpumask(). New mm users make their mm_cpumask() writes +* visible before reading mm->context.ldt. +*/ +WRITE_ONCE (mm->context.ldt, ldt); +smp_mb ();/* Activate the LDT for all CPUs using currents mm. */ on_each_cpu_mask (mm_cpumask (mm), flush_ldt, mm, true);
block/partitions/efi.c +1 -0
@@ -463,6 +463,7 @@ static inline int is_pte_valid(const gpt_entry *pte, const u64 lastlba) {if ((!efi_guidcmp (pte->partition_type_guid,NULL_GUID )) || +le64_to_cpu (pte->starting_lba) >le64_to_cpu (pte->ending_lba) ||le64_to_cpu (pte->starting_lba) > lastlba ||le64_to_cpu (pte->ending_lba) > lastlba)return 0 ;
crypto/essiv.c +1 -1
@@ -249,7 +249,7 @@ static int essiv_aead_crypt(struct aead_request *req, bool enc) err = enc ?crypto_aead_encrypt (subreq) :crypto_aead_decrypt (subreq); -if (rctx->assoc && err != -EINPROGRESS && err != -EBUSY ) +if (err != -EINPROGRESS && err != -EBUSY )kfree (rctx->assoc);return err; }
drivers/acpi/scan.c +2 -2
@@ -169,8 +169,9 @@ static acpi_status acpi_bus_offline(acpi_handle handle, u32 lvl, void *data,if (ret >=0 ) { pn->put_online = !ret; }else { - *ret_p = pn->dev; + *ret_p = &device->dev;if (second_pass) { +dev_warn (pn->dev,"Offline failed.\n" ); status =AE_ERROR ;break ; }
@@ -239,7 +240,6 @@ static int acpi_scan_try_to_offline(struct acpi_device *device) (void **)&errdev);if (errdev) { -dev_warn (errdev,"Offline failed.\n" );acpi_bus_online (handle,0 ,NULL ,NULL ); acpi_walk_namespace(ACPI_TYPE_ANY, handle, ACPI_UINT32_MAX, acpi_bus_online,
drivers/ata/libata-scsi.c +24 -11
@@ -3776,7 +3776,7 @@ static unsigned int ata_scsi_mode_select_xlat(struct ata_queued_cmd *qc) goto invalid_fld; } - len = (cdb[7 ] <<8 ) + cdb[8 ]; + len =get_unaligned_be16 (&cdb[7 ]); hdr_len =8 ; }
@@ -3802,7 +3802,7 @@ static unsigned int ata_scsi_mode_select_xlat(struct ata_queued_cmd *qc)if (six_byte) bd_len = p[3 ];else - bd_len = (p[6 ] <<8 ) + p[7 ]; + bd_len =get_unaligned_be16 (&p[6 ]); len -= hdr_len; p += hdr_len;
@@ -3810,7 +3810,6 @@ static unsigned int ata_scsi_mode_select_xlat(struct ata_queued_cmd *qc) goto invalid_param_len;if (bd_len !=0 && bd_len !=8 ) { fp = (six_byte) ?3 :6 ; - fp += bd_len + hdr_len; goto invalid_param; }
@@ -3825,8 +3824,18 @@ static unsigned int ata_scsi_mode_select_xlat(struct ata_queued_cmd *qc)if (len <4 ) goto invalid_param_len; +/* +* Mode pages with subpage code 00h use the page_0 format: SAT +* defines the SPF bit of the Caching and Control mode pages, +* for subpage code 00h, as not changeable and set to zero. +*/ spg = p[1 ]; - pg_len = (p[2 ] <<8 ) | p[3 ]; +if (!spg) { + fp = hdr_len + bd_len; + goto invalid_param; + } + + pg_len =get_unaligned_be16 (&p[2 ]); p +=4 ; len -=4 ; }else {
@@ -3851,6 +3860,17 @@ static unsigned int ata_scsi_mode_select_xlat(struct ata_queued_cmd *qc)if (pg_len > len) goto invalid_param_len; +/* +* A MODE SELECT command is translated into at most one ATA command, so +* only one mode page per command is supported. Reject any data after +* the mode page before calling the mode page handlers, which may +* already update the device flags. +*/ +if (len > pg_len) { + fp = p - buffer + pg_len; + goto invalid_param; + } +switch (pg) {case CACHE_MPAGE :if (ata_mselect_caching (qc, p, pg_len, &fp) <0 ) {
@@ -3871,13 +3891,6 @@ static unsigned int ata_scsi_mode_select_xlat(struct ata_queued_cmd *qc) goto invalid_param; } -/* -* Only one page has changeable data, so we only support setting one -* page at a time. -*/ -if (len > pg_len) - goto invalid_param; -return 0 ; invalid_fld:
drivers/base/power/runtime.c +7 -1
@@ -793,6 +793,12 @@ static int rpm_resume(struct device *dev, int rpmflags)pm_runtime_deactivate_timer (dev);if (dev->power.runtime_status ==RPM_ACTIVE ) { +/* +* The attempt to resume the device means that it is needed for +* something, so update its last_busy timestamp as in the case +* in which it actually resumes below. +*/ +pm_runtime_mark_last_busy (dev); retval =1 ; goto out; }
@@ -1776,7 +1782,7 @@ void pm_runtime_reinit(struct device *dev)void pm_runtime_remove (struct device *dev) {__pm_runtime_disable (dev, false); -flush_work (&dev->power.work); +cancel_work_sync (&dev->power.work);pm_runtime_reinit (dev); }
drivers/base/regmap/internal.h +4 -0
@@ -53,6 +53,10 @@ struct regmap {spinlock_t spinlock;unsigned long spinlock_flags; }; +struct { +raw_spinlock_t raw_spinlock; +unsigned long raw_spinlock_flags; + }; };regmap_lock lock;regmap_unlock unlock;
drivers/base/regmap/regmap.c +30 -5
@@ -525,6 +525,23 @@ __releases(&map->spinlock)spin_unlock_irqrestore (&map->spinlock, map->spinlock_flags); } +static void regmap_lock_raw_spinlock (void *__map) +__acquires(&map->raw_spinlock) +{ +struct regmap *map = __map; +unsigned long flags; + +raw_spin_lock_irqsave (&map->raw_spinlock, flags); + map->raw_spinlock_flags = flags; +} + +static void regmap_unlock_raw_spinlock (void *__map) +__releases(&map->raw_spinlock) +{ +struct regmap *map = __map; +raw_spin_unlock_irqrestore (&map->raw_spinlock, map->raw_spinlock_flags); +} +static void dev_get_regmap_release (struct device *dev,void *res) {/*
@@ -774,11 +791,19 @@ struct regmap *__regmap_init(struct device *dev, }else {if ((bus && bus->fast_io) || config->fast_io) { -spin_lock_init (&map->spinlock); - map->lock = regmap_lock_spinlock; - map->unlock = regmap_unlock_spinlock; -lockdep_set_class_and_name (&map->spinlock, - lock_key, lock_name); +if (config->use_raw_spinlock) { +raw_spin_lock_init (&map->raw_spinlock); + map->lock = regmap_lock_raw_spinlock; + map->unlock = regmap_unlock_raw_spinlock; +lockdep_set_class_and_name (&map->raw_spinlock, + lock_key, lock_name); + }else { +spin_lock_init (&map->spinlock); + map->lock = regmap_lock_spinlock; + map->unlock = regmap_unlock_spinlock; +lockdep_set_class_and_name (&map->spinlock, + lock_key, lock_name); + } }else {mutex_init (&map->mutex); map->lock = regmap_lock_mutex;
drivers/block/null_blk/null_blk.h +26 -3
@@ -12,6 +12,8 @@#include <linux/configfs.h> #include <linux/badblocks.h> #include <linux/fault-inject.h> +#include <linux/spinlock.h> +#include <linux/mutex.h> struct nullb_cmd {struct request *rq;
@@ -33,6 +35,26 @@ struct nullb_queue {struct nullb_cmd *cmds; }; +struct nullb_zone { +/* +* Zone lock to prevent concurrent modification of a zone write +* pointer position and condition: with memory backing, a write +* command execution may sleep on memory allocation. For this case, +* use mutex as the zone lock. Otherwise, use the spinlock for +* locking the zone. +*/ +union { +spinlock_t spinlock; +struct mutex mutex; + }; +enum blk_zone_type type; +enum blk_zone_cond cond; +sector_t start; +sector_t wp; +unsigned int len; +unsigned int capacity; +}; +struct nullb_device {struct nullb *nullb;struct config_item item;
@@ -46,10 +68,11 @@ struct nullb_device {unsigned int nr_zones_imp_open;unsigned int nr_zones_exp_open;unsigned int nr_zones_closed; -struct blk_zone *zones; +unsigned int imp_close_zone_no; +struct nullb_zone *zones;sector_t zone_size_sects; -spinlock_t zone_lock; -unsigned long *zone_locks; +bool need_zone_res_mgmt; +spinlock_t zone_res_lock;unsigned long size;/* device size in MB */ unsigned long completion_nsec;/* time in ns to complete a request */
drivers/block/null_blk/zoned.c +185 -126
570 lines not on this page · raw message
drivers/block/virtio_blk.c +3 -1
@@ -706,6 +706,7 @@ static int virtblk_probe(struct virtio_device *vdev)u32 v, blk_size, max_size, sg_elems, opt_io_size;u16 min_io_size;u8 physical_block_exp, alignment_offset; +size_t max_dma_size;if (!vdev->config->get) { dev_err(&vdev->dev, "%s failure: config access disabled\n",
@@ -810,7 +811,8 @@ static int virtblk_probe(struct virtio_device *vdev)/* No real sector limit. */ blk_queue_max_hw_sectors (q,-1U ); - max_size =virtio_max_dma_size (vdev); + max_dma_size =virtio_max_dma_size (vdev); + max_size = max_dma_size >U32_MAX ?U32_MAX : max_dma_size;/* Host can optionally specify maximum segment size and number of * segments. */
drivers/bluetooth/btintel.c +23 -1
@@ -869,7 +869,29 @@ static int btintel_download_firmware_payload(struct hci_dev *hdev, err = -EINVAL ;while (fw_ptr - fw->data < fw->size) { -struct hci_command_hdr *cmd = (void *)(fw_ptr + frag_len); +struct hci_command_hdr *cmd; +size_t remain = fw->size - (fw_ptr - fw->data); + +/* Ensure the header fits before dereferencing */ +if (frag_len +sizeof (*cmd) > remain) { +bt_dev_err (hdev, +"Firmware buffer overrun at header (frag_len %u, need %zu, remain %zu)" , + frag_len, frag_len +sizeof (*cmd), remain); + err = -EINVAL ; + goto done; + } + + cmd = (void *)(fw_ptr + frag_len); + +/* Ensure the full command (header + payload) fits before use */ +if (frag_len +sizeof (*cmd) + cmd->plen > remain) { +bt_dev_err (hdev, +"Firmware buffer overrun at payload (frag_len %u, plen %u, need %zu, remain %zu)" , + frag_len, cmd->plen, + frag_len +sizeof (*cmd) + cmd->plen, remain); + err = -EINVAL ; + goto done; + } frag_len +=sizeof (*cmd) + cmd->plen;
drivers/bluetooth/hci_qca.c +5 -0
@@ -161,6 +161,7 @@ struct qca_data {struct delayed_work ctrl_memdump_timeout;struct qca_memdump_data *qca_memdump;unsigned long flags; +struct dentry *debugfs_ibs_dir;struct completion drop_ev_comp;wait_queue_head_t suspend_wait_q;enum qca_memdump_states memdump_state;
@@ -637,6 +638,7 @@ static void qca_debugfs_init(struct hci_dev *hdev)return ; ibs_dir =debugfs_create_dir ("ibs" , hdev->debugfs); + qca->debugfs_ibs_dir = ibs_dir;/* read only */ mode =S_IRUGO ;
@@ -706,6 +708,9 @@ static int qca_close(struct hci_uart *hu) hu->priv =NULL ; +debugfs_remove_recursive (qca->debugfs_ibs_dir); + qca->debugfs_ibs_dir =NULL ; +kfree (qca);return 0 ;
drivers/char/tpm/eventlog/acpi.c +1 -3
@@ -168,10 +168,8 @@ int tpm_read_log_acpi(struct tpm_chip *chip) } ret =devm_add_action (&chip->dev, tpm_bios_log_free, log->bios_event_log); -if (ret) { - log->bios_event_log =NULL ; +if (ret) goto err; - }return format;
drivers/char/tpm/eventlog/tpm1.c +7 -0
@@ -178,6 +178,10 @@ static int get_event_name(char *dest, struct tcpa_event *event, }break ;case EVENT_TAG : +if (do_endian_conversion (event->event_size) < +sizeof (pc_event->event_id)) +break ; + pc_event = (struct tcpa_pc_event *)event_entry;/* ToDo Row data -> Base64 */
@@ -203,6 +207,9 @@ static int get_event_name(char *dest, struct tcpa_event *event, name = tcpa_pc_event_id_strings[do_endian_conversion (pc_event->event_id)]; n_len =strlen (name); +if (do_endian_conversion (event->event_size) < +sizeof (struct tcpa_pc_event ) +20 ) +break ;for (i =0 ; i <20 ; i++) d_len +=sprintf (&data[2 *i],"%02x" , pc_event->event_data[i]);
drivers/cpufreq/acpi-cpufreq.c +6 -7
@@ -163,9 +163,9 @@ static ssize_t store_cpb(struct cpufreq_policy *policy, const char *buf,if (ret || val >1 )return -EINVAL ; -get_online_cpus (); +cpus_read_lock ();set_boost (policy, val); -put_online_cpus (); +cpus_read_unlock ();return count; }
@@ -196,14 +196,13 @@ static unsigned extract_io(struct cpufreq_policy *policy, u32 value) {struct acpi_cpufreq_data *data = policy->driver_data;struct acpi_processor_performance *perf; -int i; +struct cpufreq_frequency_table *pos; perf =to_perf_data (data); -for (i =0 ; i < perf->state_count; i++) { -if (value == perf->states[i].status) -return policy->freq_table[i].frequency; - } +cpufreq_for_each_entry (pos, policy->freq_table) +if (value == perf->states[pos->driver_data].status) +return pos->frequency;return 0 ; }
drivers/cpufreq/cpufreq.c +15 -5
@@ -2636,11 +2636,16 @@ static int cpufreq_boost_set_sw(struct cpufreq_policy *policy, int state)return 0 ; } +static DEFINE_MUTEX (cpufreq_boost_mutex); +int cpufreq_boost_trigger_state (int state) {struct cpufreq_policy *policy;unsigned long flags; -int ret =0 ; +bool boost_enabled; +int ret = -EOPNOTSUPP ; + +guard (mutex)(&cpufreq_boost_mutex);/* * Don't compare 'cpufreq_driver->boost_enabled' with 'state' here to
@@ -2648,24 +2653,29 @@ int cpufreq_boost_trigger_state(int state)*/ write_lock_irqsave (&cpufreq_driver_lock, flags); + boost_enabled = cpufreq_driver->boost_enabled; cpufreq_driver->boost_enabled = state;write_unlock_irqrestore (&cpufreq_driver_lock, flags); -get_online_cpus (); +cpus_read_lock ();for_each_active_policy (policy) { ret = cpufreq_driver->set_boost (policy, state);if (ret) goto err_reset_state; } -put_online_cpus (); + +if (ret) + goto err_reset_state; + +cpus_read_unlock ();return 0 ; err_reset_state: -put_online_cpus (); +cpus_read_unlock ();write_lock_irqsave (&cpufreq_driver_lock, flags); - cpufreq_driver->boost_enabled = !state; + cpufreq_driver->boost_enabled = boost_enabled;write_unlock_irqrestore (&cpufreq_driver_lock, flags); pr_err("%s: Cannot %s BOOST\n",
drivers/cpufreq/cpufreq_ondemand.c +2 -2
@@ -418,7 +418,7 @@ static void od_set_powersave_bias(unsigned int powersave_bias) default_powersave_bias = powersave_bias;cpumask_clear (&done); -get_online_cpus (); +cpus_read_lock ();for_each_online_cpu (cpu) {struct cpufreq_policy *policy;struct policy_dbs_info *policy_dbs;
@@ -442,7 +442,7 @@ static void od_set_powersave_bias(unsigned int powersave_bias) od_tuners = dbs_data->tuners; od_tuners->powersave_bias = default_powersave_bias; } -put_online_cpus (); +cpus_read_unlock (); } void od_register_powersave_bias_handler(unsigned int (*f)
drivers/cpufreq/intel_pstate.c +2 -2
@@ -2744,7 +2744,7 @@ static void intel_pstate_driver_cleanup(void) {unsigned int cpu; -get_online_cpus (); +cpus_read_lock ();for_each_online_cpu (cpu) {if (all_cpu_data[cpu]) {if (intel_pstate_driver == &intel_pstate)
@@ -2754,7 +2754,7 @@ static void intel_pstate_driver_cleanup(void) all_cpu_data[cpu] =NULL ; } } -put_online_cpus (); +cpus_read_unlock (); intel_pstate_driver =NULL ; }
drivers/cpufreq/powernow-k8.c +3 -3
@@ -1182,7 +1182,7 @@ static int powernowk8_init(void)if (!x86_match_cpu (powernow_k8_ids))return -ENODEV ; -get_online_cpus (); +cpus_read_lock ();for_each_online_cpu (i) {smp_call_function_single (i, check_supported_cpu, &ret,1 );if (!ret)
@@ -1190,10 +1190,10 @@ static int powernowk8_init(void) }if (supported_cpus !=num_online_cpus ()) { -put_online_cpus (); +cpus_read_unlock ();return -ENODEV ; } -put_online_cpus (); +cpus_read_unlock (); ret =cpufreq_register_driver (&cpufreq_amd64_driver);if (ret)
drivers/cpufreq/powernv-cpufreq.c +2 -2
@@ -911,7 +911,7 @@ static void powernv_cpufreq_work_fn(struct work_struct *work)unsigned int cpu;cpumask_t mask; -get_online_cpus (); +cpus_read_lock ();cpumask_and (&mask, &chip->mask, cpu_online_mask);smp_call_function_any (&mask, powernv_cpufreq_throttle_check,NULL ,0 );
@@ -932,7 +932,7 @@ static void powernv_cpufreq_work_fn(struct work_struct *work)cpufreq_cpu_put (policy); } out: -put_online_cpus (); +cpus_read_unlock (); } static int powernv_cpufreq_occ_msg(struct notifier_block *nb,
drivers/gpio/gpio-brcmstb.c +1 -0
@@ -506,6 +506,7 @@ static int brcmstb_gpio_irq_setup(struct platform_device *pdev, out_free_domain:irq_domain_remove (priv->irq_domain); + priv->irq_domain =NULL ;return err; }
drivers/gpio/gpio-omap.c +11 -2
@@ -778,8 +778,11 @@ static int omap_gpio_request(struct gpio_chip *chip, unsigned offset) {struct gpio_bank *bank =gpiochip_get_data (chip);unsigned long flags; +int ret; -pm_runtime_get_sync (chip->parent); + ret =pm_runtime_resume_and_get (chip->parent); +if (ret <0 ) +return ret;raw_spin_lock_irqsave (&bank->lock, flags);omap_enable_gpio_module (bank, offset);
@@ -1470,7 +1473,13 @@ static int omap_gpio_probe(struct platform_device *pdev)platform_set_drvdata (pdev, bank);pm_runtime_enable (dev); -pm_runtime_get_sync (dev); + ret =pm_runtime_resume_and_get (dev); +if (ret <0 ) { +pm_runtime_disable (dev); +if (bank->dbck_flag) +clk_unprepare (bank->dbck); +return ret; + }if (bank->is_mpuio)omap_mpuio_init (bank);
drivers/gpio/gpio-sodaville.c +6 -3
@@ -165,9 +165,12 @@ static int sdv_register_irqsupport(struct sdv_gpio_chip_data *sd, ct->chip.irq_eoi = irq_gc_eoi; ct->chip.irq_set_type = sdv_gpio_pub_set_type; -irq_setup_generic_chip (sd->gc,IRQ_MSK (SDV_NUM_PUB_GPIOS ), -IRQ_GC_INIT_MASK_CACHE ,IRQ_NOREQUEST , -IRQ_LEVEL |IRQ_NOPROBE ); + ret =devm_irq_setup_generic_chip (&pdev->dev, sd->gc, +IRQ_MSK (SDV_NUM_PUB_GPIOS ), +IRQ_GC_INIT_MASK_CACHE ,IRQ_NOREQUEST , +IRQ_LEVEL |IRQ_NOPROBE ); +if (ret) +return ret; sd->id =irq_domain_add_legacy (pdev->dev.of_node,SDV_NUM_PUB_GPIOS , sd->irq_base,0 , &irq_domain_sdv_ops, sd);
drivers/gpio/gpiolib-of.h +1 -1
@@ -27,7 +27,7 @@ static inline int of_gpiochip_add(struct gpio_chip *gc) { return 0; }static inline void of_gpiochip_remove (struct gpio_chip *gc) { }static inline int of_gpio_get_count (struct device *dev,const char *con_id) { -return 0 ; +return -ENOENT ; }static inline bool of_gpio_need_valid_mask (const struct gpio_chip *gc) {
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +3 -0
@@ -114,6 +114,9 @@ static int amdgpu_cs_parser_init(struct amdgpu_cs_parser *p, union drm_amdgpu_csif (cs->in.num_chunks ==0 )return -EINVAL ; +if (cs->in.flags) +return -EINVAL ; + chunk_array =kmalloc_array (cs->in.num_chunks,sizeof (uint64_t ),GFP_KERNEL );if (!chunk_array)return -ENOMEM ;
drivers/gpu/drm/bridge/sii902x.c +7 -1
@@ -781,9 +781,15 @@ static int sii902x_audio_codec_init(struct sii902x *sii902x, } codec_data.max_i2s_channels =2 * num_lanes; -for (i =0 ; i < num_lanes; i++) +for (i =0 ; i < num_lanes; i++) { +if (lanes[i] >=ARRAY_SIZE (i2s_lane_id)) +return dev_err_probe (dev, -EINVAL , +"invalid sil,i2s-data-lanes value %u\n" , + lanes[i]); + sii902x->audio.i2s_fifo_sequence[i] |= audio_fifo_id[i] | i2s_lane_id[lanes[i]] |SII902X_TPI_I2S_FIFO_ENABLE ; + } sii902x->audio.mclk =devm_clk_get_optional (dev,"mclk" );if (IS_ERR (sii902x->audio.mclk)) {
drivers/i3c/master.c +27 -12
@@ -1520,12 +1520,16 @@ static int i3c_master_early_i3c_dev_add(struct i3c_master_controller *master,static void i3c_master_register_new_i3c_devs (struct i3c_master_controller *master) { +struct i3c_device *i3cdev, *tmp;struct i3c_dev_desc *desc; +LIST_HEAD (i3c_unreg_devs);int ret;if (!master->init_done)return ; +i3c_bus_maintenance_lock (&master->bus); +i3c_bus_for_each_i3cdev (&master->bus, desc) {if (desc->dev || !desc->info.dyn_addr || desc == master->this)continue ;
@@ -1546,15 +1550,30 @@ i3c_master_register_new_i3c_devs(struct i3c_master_controller *master)if (desc->boardinfo) desc->dev->dev.of_node = desc->boardinfo->of_node; - ret =device_register (&desc->dev->dev); -if (ret) { -dev_err (&master->dev, -"Failed to add I3C device (err = %d)\n" , ret); - desc->dev->desc =NULL ; -put_device (&desc->dev->dev); - desc->dev =NULL ; - } +list_add_tail (&desc->dev->node, &i3c_unreg_devs); + } + +i3c_bus_maintenance_unlock (&master->bus); + +list_for_each_entry_safe (i3cdev, tmp, &i3c_unreg_devs, node) { + ret =device_register (&i3cdev->dev); +if (ret) +dev_err (&master->dev,"Failed to add I3C device (err = %d)\n" , ret); +else +list_del_init (&i3cdev->node); } + +i3c_bus_maintenance_lock (&master->bus); + +list_for_each_entry_safe (i3cdev, tmp, &i3c_unreg_devs, node) { +list_del (&i3cdev->node); + desc = i3cdev->desc; + i3cdev->desc =NULL ; +put_device (&i3cdev->dev); + desc->dev =NULL ; + } + +i3c_bus_maintenance_unlock (&master->bus); }/**
@@ -1583,9 +1602,7 @@ int i3c_master_do_daa(struct i3c_master_controller *master)if (ret)return ret; -i3c_bus_normaluse_lock (&master->bus);i3c_master_register_new_i3c_devs (master); -i3c_bus_normaluse_unlock (&master->bus);return 0 ; }
@@ -2627,9 +2644,7 @@ int i3c_master_register(struct i3c_master_controller *master,* register I3C devices discovered during the initial DAA. */ master->init_done = true; -i3c_bus_normaluse_lock (&master->bus);i3c_master_register_new_i3c_devs (master); -i3c_bus_normaluse_unlock (&master->bus);return 0 ;
drivers/iio/accel/kxsd9.c +1 -1
@@ -484,8 +484,8 @@ int kxsd9_common_remove(struct device *dev)struct iio_dev *indio_dev =dev_get_drvdata (dev);struct kxsd9_state *st =iio_priv (indio_dev); -iio_triggered_buffer_cleanup (indio_dev);iio_device_unregister (indio_dev); +iio_triggered_buffer_cleanup (indio_dev);pm_runtime_get_sync (dev);pm_runtime_put_noidle (dev);pm_runtime_disable (dev);
drivers/iio/chemical/atlas-ezo-sensor.c +0 -3
@@ -115,9 +115,6 @@ static int atlas_ezo_read_raw(struct iio_dev *indio_dev,struct atlas_ezo_data *data =iio_priv (indio_dev);struct i2c_client *client = data->client; -if (chan->type !=IIO_CONCENTRATION ) -return -EINVAL ; -switch (mask) {case IIO_CHAN_INFO_RAW : {int ret;
drivers/iio/common/hid-sensors/hid-sensor-attributes.c +12 -2
@@ -45,6 +45,8 @@ static struct { {HID_USAGE_SENSOR_COMPASS_3D, 0, 0, 1000000}, {HID_USAGE_SENSOR_COMPASS_3D, HID_USAGE_SENSOR_UNITS_GAUSS, 1, 0}, + {HID_USAGE_SENSOR_ORIENT_COMP_MAGN_NORTH, 0, 1, 0}, + {HID_USAGE_SENSOR_INCLINOMETER_3D, 0, 0, 17453293}, {HID_USAGE_SENSOR_INCLINOMETER_3D, HID_USAGE_SENSOR_UNITS_DEGREES, 0, 17453293},
@@ -98,9 +100,14 @@ static void simple_div(int dividend, int divisor, int *whole,static void split_micro_fraction (unsigned int no,int exp,int *val1,int *val2) {int divisor =int_pow (10 , exp); +unsigned int rem; *val1 = no / divisor; - *val2 = no % divisor *int_pow (10 ,6 - exp); + rem = no % divisor; +if (exp >6 ) + *val2 = rem / (unsigned int )int_pow (10 , exp -6 ); +else + *val2 = rem *int_pow (10 ,6 - exp); }/*
@@ -142,7 +149,10 @@ static u32 convert_to_vtf_format(int size, int exp, int val1, int val2)if (val1 <0 || val2 <0 ) sign =-1 ; exp =hid_sensor_convert_exponent (exp); -if (exp <0 ) { +if (exp <-6 ) { + value =abs (val1) *int_pow (10 , -exp); + value +=abs (val2) *int_pow (10 , -exp -6 ); + }else if (exp <0 ) { divisor =int_pow (10 ,6 + exp); value =abs (val1) *int_pow (10 , -exp); value +=abs (val2) / divisor;
drivers/iio/dac/mcp4725.c +2 -0
@@ -353,6 +353,8 @@ static int mcp4725_write_raw(struct iio_dev *indio_dev,switch (mask) {case IIO_CHAN_INFO_RAW : ret =mcp4725_set_value (indio_dev, val); +if (ret) +return ret; data->dac_value = val;break ;default :
drivers/iio/gyro/bmg160_core.c +1 -1
@@ -765,7 +765,7 @@ static int bmg160_write_event_config(struct iio_dev *indio_dev,struct bmg160_data *data =iio_priv (indio_dev);int ret; -if (state && data->ev_enable_state) +if (state == data->ev_enable_state)return 0 ;mutex_lock (&data->mutex);
drivers/iio/humidity/am2315.c +10 -2
@@ -114,6 +114,7 @@ static int am2315_read_data(struct am2315_data *data,*/ u8 rx_buf[8 ];u16 crc; +u16 temp_raw;/* First wake up the device. */ am2315_ping (data->client);
@@ -145,8 +146,15 @@ static int am2315_read_data(struct am2315_data *data, sensor_data->hum_data = (rx_buf[AM2315_HUM_OFFSET ] <<8 ) | rx_buf[AM2315_HUM_OFFSET +1 ]; - sensor_data->temp_data = (rx_buf[AM2315_TEMP_OFFSET ] <<8 ) | - rx_buf[AM2315_TEMP_OFFSET +1 ]; + +/* +* Temperature is sign-magnitude, not two's complement: +* bit 15 is the sign, bits 14-0 are the magnitude (x0.1 degC). +*/ + temp_raw = (rx_buf[AM2315_TEMP_OFFSET ] <<8 ) | + rx_buf[AM2315_TEMP_OFFSET +1 ]; + sensor_data->temp_data = (temp_raw &0x8000 ) ? + -(temp_raw &0x7fff ) : temp_raw;return ret;
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c +2 -0
@@ -1137,6 +1137,8 @@ static const unsigned long inv_mpu_scan_masks[] = { .type = IIO_MAGN, \ .modified = 1, \ .channel2 = _chan2, \ +/* index of the axis in magn_raw_to_gauss[] */ \ + .address = (_chan2) - IIO_MOD_X, \ .info_mask_separate =BIT (IIO_CHAN_INFO_SCALE ) | \ BIT(IIO_CHAN_INFO_RAW), \ .scan_index = _index, \
drivers/iio/imu/kmx61.c +1 -1
@@ -948,7 +948,7 @@ static int kmx61_write_event_config(struct iio_dev *indio_dev,struct kmx61_data *data =kmx61_get_data (indio_dev);int ret =0 ; -if (state && data->ev_enable_state) +if (state == data->ev_enable_state)return 0 ;mutex_lock (&data->lock);
drivers/iio/industrialio-trigger.c +1 -0
@@ -254,6 +254,7 @@ int iio_trigger_attach_poll_func(struct iio_trigger *trig,if (pf->irq <0 ) {pr_err ("Could not find an available irq for trigger %s, CONFIG_IIO_CONSUMERS_PER_TRIGGER=%d limit might be exceeded\n" , trig->name,CONFIG_IIO_CONSUMERS_PER_TRIGGER ); + ret = pf->irq; goto out_put_module; }
drivers/iio/light/vcnl4035.c +2 -2
@@ -46,8 +46,8 @@#define VCNL4035_DEV_ID_MASK GENMASK(7, 0)/* Default values */ -#define VCNL4035_MODE_ALS_ENABLE BIT(0) -#define VCNL4035_MODE_ALS_DISABLE 0x00 +#define VCNL4035_MODE_ALS_ENABLE 0x00 +#define VCNL4035_MODE_ALS_DISABLE BIT(0)#define VCNL4035_MODE_ALS_INT_ENABLE BIT(1)#define VCNL4035_MODE_ALS_INT_DISABLE 0#define VCNL4035_DEV_ID_VAL 0x80
drivers/iio/magnetometer/mmc35240.c +1 -2
@@ -538,14 +538,13 @@ static int mmc35240_resume(struct device *dev)struct mmc35240_data *data =iio_priv (indio_dev);int ret; +regcache_cache_only (data->regmap, false);regcache_mark_dirty (data->regmap); ret =regcache_sync_region (data->regmap,MMC35240_REG_CTRL0 ,MMC35240_REG_CTRL1 );if (ret <0 )dev_err (dev,"Failed to restore control registers\n" ); -regcache_cache_only (data->regmap, false); - return 0; }#endif
drivers/input/ff-core.c +1 -1
@@ -361,7 +361,7 @@ EXPORT_SYMBOL_GPL(input_ff_create);* * This function is only needed in error path as input core will * automatically free force feedback structures when device is -* destroyed. +* unregistered or destroyed. */ void input_ff_destroy (struct input_dev *dev) {
drivers/input/input.c +2 -0
@@ -2193,6 +2193,8 @@ static void __input_unregister_device(struct input_dev *dev)mutex_unlock (&input_mutex);device_del (&dev->dev); + +input_ff_destroy (dev); }static void devm_input_device_unregister (struct device *dev,void *res)
drivers/md/dm-cache-metadata.c +3 -1
@@ -760,6 +760,7 @@ static struct dm_cache_metadata *metadata_open(struct block_device *bdev,return ERR_PTR (-ENOMEM ); } +INIT_LIST_HEAD (&cmd->list); cmd->version = metadata_version;refcount_set (&cmd->ref_count,1 );init_rwsem (&cmd->root_lock);
@@ -1443,7 +1444,8 @@ static int __load_mappings(struct dm_cache_metadata *cmd,from_cblock (cmd->cache_blocks), &cmd->dirty_cursor);if (r) { -dm_array_cursor_end (&cmd->hint_cursor); +if (hints_valid) +dm_array_cursor_end (&cmd->hint_cursor);dm_array_cursor_end (&cmd->mapping_cursor);return r; }
drivers/md/dm-cache-target.c +1 -0
@@ -2582,6 +2582,7 @@ static int cache_create(struct cache_args *ca, struct cache **result)if (IS_ERR (cache->copier)) { *error ="could not create kcopyd client" ; r =PTR_ERR (cache->copier); + cache->copier =NULL ; goto bad; }
drivers/md/dm-crypt.c +8 -4
@@ -3173,6 +3173,14 @@ static int crypt_ctr(struct dm_target *ti, unsigned int argc, char **argv) ti->error ="Cannot allocate encryption context" ;return -ENOMEM ; } + + ret =percpu_counter_init (&cc->n_allocated_pages,0 ,GFP_KERNEL ); +if (ret <0 ) { + ti->error ="Cannot initialize page counter" ; +kfree_sensitive (cc); +return ret; + } + cc->key_size = key_size; cc->sector_size = (1 <<SECTOR_SHIFT ); cc->sector_shift =0 ;
@@ -3184,10 +3192,6 @@ static int crypt_ctr(struct dm_target *ti, unsigned int argc, char **argv)crypt_calculate_pages_per_client ();spin_unlock (&dm_crypt_clients_lock); - ret =percpu_counter_init (&cc->n_allocated_pages,0 ,GFP_KERNEL ); -if (ret <0 ) - goto bad; -/* Optional parameters need to be read before cipher constructor */ if (argc >5 ) { ret =crypt_ctr_optional (ti, argc -5 , &argv[5 ]);
drivers/md/dm-integrity.c +5 -1
@@ -2240,6 +2240,11 @@ static void integrity_commit(struct work_struct *w)spin_lock_irq (&ic->endio_wait.lock); flushes =bio_list_get (&ic->flush_bio_list); +if (unlikely (dm_integrity_failed (ic))) { +wake_up_locked (&ic->endio_wait); +spin_unlock_irq (&ic->endio_wait.lock); + goto release_flush_bios; + }if (unlikely (ic->mode !='J' )) {spin_unlock_irq (&ic->endio_wait.lock);dm_integrity_flush_buffers (ic, true);
@@ -4293,7 +4298,6 @@ static int dm_integrity_ctr(struct dm_target *ti, unsigned argc, char **argv) r =create_journal (ic, &ti->error);if (r) goto bad; - }if (ic->mode =='B' ) {
drivers/md/dm-log-userspace-base.c +5 -1
@@ -293,9 +293,11 @@ static int userspace_ctr(struct dm_dirty_log *log, struct dm_target *ti, } r =dm_get_device (ti, devices_rdata,dm_table_get_mode (ti->table), &lc->log_dev); -if (r) +if (r) {DMERR ("Failed to register %s with device-mapper" , devices_rdata); + goto out; + } }if (lc->integrated_flush) {
@@ -313,6 +315,8 @@ static int userspace_ctr(struct dm_dirty_log *log, struct dm_target *ti, out:kfree (devices_rdata);if (r) { +if (lc->log_dev) +dm_put_device (lc->ti, lc->log_dev);mempool_exit (&lc->flush_entry_pool);kfree (lc);kfree (ctr_str);
drivers/md/dm-mpath.c +4 -2
@@ -792,7 +792,8 @@ static void queue_if_no_path_timeout_work(struct timer_list *t)static void enable_nopath_timeout (struct multipath *m) {unsigned long queue_if_no_path_timeout = -READ_ONCE (queue_if_no_path_timeout_secs) *HZ ; + min_t(unsigned long, READ_ONCE(queue_if_no_path_timeout_secs), +MAX_JIFFY_OFFSET /HZ ) *HZ ;lockdep_assert_held (&m->lock);
@@ -1074,8 +1075,9 @@ static int parse_hw_handler(struct dm_arg_set *as, struct multipath *m)if (hw_argc >1 ) {char *p; -int i, j, len =4 ; +int i, j, len; + len =snprintf (NULL ,0 ,"%d" , hw_argc -1 ) +1 ;for (i =0 ; i <= hw_argc -2 ; i++) len +=strlen (as->argv[i]) +1 ; p = m->hw_handler_params =kzalloc (len,GFP_KERNEL );
drivers/md/dm-raid.c +2 -1
@@ -2395,7 +2395,8 @@ static int super_init_validation(struct raid_set *rs, struct md_rdev *rdev)*/ if (!test_bit (FirstUse, &r->flags) && (r->raid_disk >=0 )) { role =le32_to_cpu (sb2->array_position); -if (role <0 ) +/* Bound @role before it indexes the failed_devices stack bitmap. */ +if (role <0 || role >= rs->raid_disks)continue ;if (role != r->raid_disk) {
drivers/md/dm-snap.c +7 -5
@@ -1975,8 +1975,8 @@ static void zero_exception(struct dm_snapshot *s, struct dm_exception *e,static bool io_overlaps_chunk (struct dm_snapshot *s,struct bio *bio) { -return bio->bi_iter.bi_size == - (s->store->chunk_size <<SECTOR_SHIFT ); +return bio->bi_iter.bi_size == (s->store->chunk_size <<SECTOR_SHIFT ) && + !(bio->bi_iter.bi_sector & s->store->chunk_mask); }static int snapshot_map (struct dm_target *ti,struct bio *bio)
@@ -2036,11 +2036,13 @@ static int snapshot_map(struct dm_target *ti, struct bio *bio) e =dm_lookup_exception (&s->complete, chunk);if (e) {remap_exception (s, e, bio, chunk); -if (unlikely (bio_op (bio) ==REQ_OP_DISCARD ) && -io_overlaps_chunk (s, bio)) { +if (unlikely (bio_op (bio) ==REQ_OP_DISCARD )) {dm_exception_table_unlock (&lock);up_read (&s->lock); -zero_exception (s, e, bio, chunk); +if (io_overlaps_chunk (s, bio)) +zero_exception (s, e, bio, chunk); +else +bio_endio (bio); r =DM_MAPIO_SUBMITTED ;/* discard is not issued */ goto out; }
drivers/md/dm-sysfs.c +14 -3
@@ -130,9 +130,20 @@ static struct kobj_type dm_ktype = {*/ int dm_sysfs_init (struct mapped_device *md) { -return kobject_init_and_add (dm_kobject (md), &dm_ktype, - &disk_to_dev (dm_disk (md))->kobj, -"%s" ,"dm" ); +struct kobject *kobj =dm_kobject (md); +int r; + +/* The kobject must be zeroed before calling kobject_init */ +memset (kobj,0 ,sizeof (struct kobject )); + r =kobject_init_and_add (kobj, &dm_ktype, + &disk_to_dev (dm_disk (md))->kobj, +"%s" ,"dm" ); +if (unlikely (r)) { +/* Weird semantics - we must call kobject_put on failure */ +dm_sysfs_exit (md); +return r; + } +return 0 ; }/*
drivers/md/dm-thin-metadata.c +4 -1
@@ -1180,10 +1180,13 @@ static int __create_snap(struct dm_pool_metadata *pmd,__close_device (td);if (r) - goto bad; + goto bad2;return 0 ; +bad2: +list_del (&td->list); +kfree (td); bad:dm_btree_remove (&pmd->tl_info, pmd->root, &key, &pmd->root); dm_btree_remove(&pmd->details_info, pmd->details_root,
drivers/md/dm-thin.c +4 -2
@@ -2531,7 +2531,9 @@ static void set_pool_mode(struct pool *pool, enum pool_mode new_mode)struct pool_c *pt = pool->ti->private;bool needs_check =dm_pool_metadata_needs_check (pool->pmd);enum pool_mode old_mode =get_pool_mode (pool); -unsigned long no_space_timeout =READ_ONCE (no_space_timeout_secs) *HZ ; +unsigned long no_space_timeout = + min_t(unsigned long, READ_ONCE(no_space_timeout_secs), +MAX_JIFFY_OFFSET /HZ ) *HZ ;/* * Never allow the pool to transition to PM_WRITE mode if user
@@ -3139,7 +3141,7 @@ static int parse_pool_features(struct dm_arg_set *as, struct pool_features *pf,const char *arg_name;static const struct dm_arg _args[] = { - {0 ,4 ,"Invalid number of pool feature arguments" }, + {0 ,5 ,"Invalid number of pool feature arguments" }, };/*
drivers/md/dm-zoned-reclaim.c +17 -1
@@ -290,7 +290,13 @@ static int dmz_reclaim_rnd_data(struct dmz_reclaim *zrc, struct dm_zone *dzone) again: szone =dmz_alloc_zone (zmd, zrc->dev_idx, alloc_flags |DMZ_ALLOC_RECLAIM ); -if (!szone && alloc_flags ==DMZ_ALLOC_SEQ &&dmz_nr_cache_zones (zmd)) { +/* +* If no free sequential zone is available, a cache zone can still be +* moved into a free random zone of the zoned device, which frees cache +* space. Do not do this for a random zone: moving it into another +* random zone frees nothing and, on an idle target, repeats forever. +*/ +if (!szone && alloc_flags ==DMZ_ALLOC_SEQ &&dmz_is_cache (dzone)) { alloc_flags =DMZ_ALLOC_RND ; goto again; }
@@ -539,6 +545,16 @@ static void dmz_reclaim_work(struct work_struct *work) dmz_nr_rnd_zones(zmd, zrc->dev_idx)); ret =dmz_do_reclaim (zrc); +if (ret == -ENOSPC || ret == -EBUSY ) { +/* +* No zone to copy into (-ENOSPC) or no zone to reclaim +* (-EBUSY): retrying at once cannot make progress and would +* spin. Poll again after the idle period instead, without +* postponing work that an allocation has already queued. +*/ +queue_delayed_work (zrc->wq, &zrc->work,DMZ_IDLE_PERIOD ); +return ; + }if (ret && ret != -EINTR ) {if (!dmz_check_dev (zmd))return ;
drivers/md/persistent-data/dm-btree.c +7 -1
@@ -1506,7 +1506,13 @@ int dm_btree_cursor_begin(struct dm_btree_info *info, dm_block_t root,if (r)return r; -return find_leaf (c); + r =find_leaf (c); +if (unlikely (r)) { +dm_btree_cursor_end (c); +return r; + } + +return 0 ; }EXPORT_SYMBOL_GPL (dm_btree_cursor_begin);
drivers/media/usb/uvc/uvc_driver.c +1 -3
@@ -1016,9 +1016,7 @@ static int uvc_parse_streaming(struct uvc_device *dev, streaming->header.bEndpointAddress);if (ep ==NULL )continue ; - - psize =le16_to_cpu (ep->desc.wMaxPacketSize); - psize = (psize &0x07ff ) * (1 + ((psize >>11 ) &3 )); + psize =uvc_endpoint_max_bpi (dev->udev, ep);if (psize > streaming->maxpsize) streaming->maxpsize = psize; }
drivers/media/usb/uvc/uvc_video.c +1 -2
@@ -1788,8 +1788,7 @@ static void uvc_video_stop_transfer(struct uvc_streaming *stream,/* * Compute the maximum number of bytes per interval for an endpoint. */ -static unsigned int uvc_endpoint_max_bpi (struct usb_device *dev, -struct usb_host_endpoint *ep) +u16 uvc_endpoint_max_bpi (struct usb_device *dev,struct usb_host_endpoint *ep) {u16 psize;u16 mult;
drivers/media/usb/uvc/uvcvideo.h +1 -0
@@ -894,6 +894,7 @@ void uvc_simplify_fraction(u32 *numerator, u32 *denominator,u32 uvc_fraction_to_interval (u32 numerator,u32 denominator);struct usb_host_endpoint *uvc_find_endpoint (struct usb_host_interface *alts,u8 epaddr); +u16 uvc_endpoint_max_bpi (struct usb_device *dev,struct usb_host_endpoint *ep);/* Quirks support */ void uvc_video_decode_isight(struct uvc_urb *uvc_urb,
drivers/misc/ibmvmc.c +8 -8
@@ -2361,14 +2361,6 @@ static int __init ibmvmc_module_init(void) ibmvmc.state = ibmvmc_state_initial;pr_info ("ibmvmc: version %s\n" ,IBMVMC_DRIVER_VERSION ); - rc =misc_register (&ibmvmc_miscdev); -if (rc) { -pr_err ("ibmvmc: misc registration failed\n" ); - goto misc_register_failed; - } -pr_info ("ibmvmc: node %d:%d\n" ,MISC_MAJOR , - ibmvmc_miscdev.minor); -/* Initialize data structures */ memset (hmcs,0 ,sizeof (struct ibmvmc_hmc ) *MAX_HMCS );for (i =0 ; i <MAX_HMCS ; i++) {
@@ -2378,6 +2370,14 @@ static int __init ibmvmc_module_init(void) hmcs[i].queue_outbound_msgs[j] =VMC_INVALID_BUFFER_ID ; } + rc =misc_register (&ibmvmc_miscdev); +if (rc) { +pr_err ("ibmvmc: misc registration failed\n" ); + goto misc_register_failed; + } +pr_info ("ibmvmc: node %d:%d\n" ,MISC_MAJOR , + ibmvmc_miscdev.minor); +/* Sanity check module parms */ ibmvmc_scrub_module_parms ();
drivers/mmc/host/meson-gx-mmc.c +19 -4
@@ -123,6 +123,7 @@#define SD_EMMC_CFG_RESP_TIMEOUT 256/* in clock cycles */ #define SD_EMMC_CMD_TIMEOUT 1024/* in ms */ #define SD_EMMC_CMD_TIMEOUT_DATA 4096/* in ms */ +#define SD_EMMC_CMD_TIMEOUT_MAX 32768/* in ms, 2^15: limit of CMD_CFG_TIMEOUT_MASK */ #define SD_EMMC_CFG_CMD_GAP 16/* in clock cycles */ #define SD_EMMC_DESC_BUF_LEN PAGE_SIZE
@@ -209,7 +210,21 @@ static unsigned int meson_mmc_get_timeout_msecs(struct mmc_data *data) timeout =roundup_pow_of_two (timeout); -return min (timeout,32768U );/* max. 2^15 ms */ + return min_t(unsigned int, timeout, SD_EMMC_CMD_TIMEOUT_MAX); +} + +/* For R1b the controller waits for busy to be released within this timeout. */ +static unsigned int meson_mmc_get_cmd_timeout_msecs (struct mmc_command *cmd) +{ +unsigned int timeout = cmd->busy_timeout; + +if (!timeout) +return SD_EMMC_CMD_TIMEOUT ; + + timeout = clamp_t(unsigned int, timeout, SD_EMMC_CMD_TIMEOUT, +SD_EMMC_CMD_TIMEOUT_MAX ); + +return roundup_pow_of_two (timeout); }static struct mmc_command *meson_mmc_get_next_command (struct mmc_command *cmd)
@@ -839,7 +854,7 @@ static void meson_mmc_start_cmd(struct mmc_host *mmc, struct mmc_command *cmd) cmd_data = host->bounce_dma_addr &CMD_DATA_MASK ; }else { cmd_cfg |=FIELD_PREP (CMD_CFG_TIMEOUT_MASK , -ilog2 (SD_EMMC_CMD_TIMEOUT )); +ilog2 (meson_mmc_get_cmd_timeout_msecs (cmd))); }/* Last descriptor */
@@ -1075,8 +1090,8 @@ static int meson_mmc_card_busy(struct mmc_host *mmc) regval =readl (host->regs +SD_EMMC_STATUS ); -/* We are only interrested in lines 0 to 3, so mask the other ones */ -return !(FIELD_GET (STATUS_DATI , regval) &0xf ); +/* The card signals busy on DAT0 alone. */ +return !(FIELD_GET (STATUS_DATI , regval) &BIT (0 )); }static int meson_mmc_voltage_switch (struct mmc_host *mmc,struct mmc_ios *ios)
drivers/mmc/host/mmci.c +3 -1
@@ -2194,11 +2194,13 @@ static int mmci_probe(struct amba_device *dev, ret =mmc_add_host (mmc);if (ret) - goto clk_disable; + goto dma_release;pm_runtime_put (&dev->dev);return 0 ; +dma_release: +mmci_dma_release (host); clk_disable:clk_disable_unprepare (host->clk); host_free:
drivers/net/bonding/bond_main.c +5 -10
@@ -3485,18 +3485,13 @@ static int bond_slave_netdev_event(unsigned long event,case NETDEV_CHANGE :/* For 802.3ad mode only: * Getting invalid Speed/Duplex values here will put slave -* in weird state. Mark it as link-fail if the link was -* previously up or link-down if it hasn't yet come up, and -* let link-monitoring (miimon) set it right when correct -* speeds/duplex are available. +* in weird state. Mark an up slave as link-fail and let +* miimon set it right when correct speed/duplex are available. */ if (bond_update_speed_duplex (slave) && -BOND_MODE (bond) ==BOND_MODE_8023AD ) { -if (slave->last_link_up) - slave->link =BOND_LINK_FAIL ; -else - slave->link =BOND_LINK_DOWN ; - } +BOND_MODE (bond) ==BOND_MODE_8023AD && + slave->link ==BOND_LINK_UP ) + slave->link =BOND_LINK_FAIL ;if (BOND_MODE (bond) ==BOND_MODE_8023AD )bond_3ad_adapter_speed_duplex_changed (slave);
drivers/net/dsa/b53/b53_common.c +67 -0
85 lines not on this page · raw message
drivers/net/dsa/b53/b53_priv.h +1 -0
@@ -317,6 +317,7 @@ static inline int b53_switch_get_reset_gpio(struct b53_device *dev)/* Exported functions towards other drivers */ void b53_imp_vlan_setup (struct dsa_switch *ds,int cpu_port);int b53_configure_vlan (struct dsa_switch *ds); +int b53_enable_mcast_snooping (struct b53_device *dev);void b53_get_strings (struct dsa_switch *ds,int port,u32 stringset,uint8_t *data);void b53_get_ethtool_stats (struct dsa_switch *ds,int port,uint64_t *data);
drivers/net/dsa/b53/b53_regs.h +17 -0
@@ -255,6 +255,23 @@/* Revision ID register (8 bit) */ #define B53_REV_ID 0x40 +/* High-level protocol control (16 bit on BCM5395, otherwise 32 bit) */ +#define B53_HL_PRTC_CTRL 0x50 +#define HL_PRTC_ICMPV6_EN BIT(4) +#define HL_PRTC_ICMPV6_FWD_MODE BIT(5) +#define HL_PRTC_IGMP_IP_EN_5395 BIT(6) +#define HL_PRTC_IGMP_FWD_MODE_5395 BIT(8) +#define HL_PRTC_IGMP_RPTLVE_EN BIT(9) +#define HL_PRTC_IGMP_RPTLVE_FWD_MODE BIT(10) +#define HL_PRTC_IGMP_QRY_EN BIT(11) +#define HL_PRTC_IGMP_QRY_FWD_MODE BIT(12) +#define HL_PRTC_IGMP_UKN_EN BIT(13) +#define HL_PRTC_IGMP_UKN_FWD_MODE BIT(14) +#define HL_PRTC_MLD_RPTDONE_EN BIT(15) +#define HL_PRTC_MLD_RPTDONE_FWD_MODE BIT(16) +#define HL_PRTC_MLD_QRY_EN BIT(17) +#define HL_PRTC_MLD_QRY_FWD_MODE BIT(18) +/* Broadcom header RX control (16 bit) */ #define B53_BRCM_HDR_RX_DIS 0x60
drivers/net/dsa/bcm_sf2.c +5 -0
@@ -948,6 +948,7 @@ static int bcm_sf2_sw_setup(struct dsa_switch *ds) {struct bcm_sf2_priv *priv =bcm_sf2_to_priv (ds);unsigned int port; +int ret;/* Enable all valid ports and disable those unused */ for (port =0 ; port < priv->hw_params.num_ports; port++) {
@@ -963,6 +964,10 @@ static int bcm_sf2_sw_setup(struct dsa_switch *ds)b53_configure_vlan (ds);bcm_sf2_enable_acb (ds); + ret =b53_enable_mcast_snooping (priv->dev); +if (ret) +return ret; +return b53_setup_devlink_resources (ds); }
drivers/net/ethernet/broadcom/bgmac-platform.c +2 -1
@@ -239,7 +239,8 @@ static int bgmac_probe(struct platform_device *pdev) bgmac->phy_connect = platform_phy_connect; }else { bgmac->phy_connect = bgmac_phy_connect_direct; - bgmac->feature_flags |=BGMAC_FEAT_FORCE_SPEED_2500 ; +if (of_machine_is_compatible ("brcm,nsp" )) + bgmac->feature_flags |=BGMAC_FEAT_FORCE_SPEED_2500 ; }return bgmac_enet_probe (bgmac);
drivers/net/ethernet/broadcom/bgmac.c +6 -2
@@ -1429,11 +1429,15 @@ void bgmac_adjust_link(struct net_device *net_dev) {struct bgmac *bgmac =netdev_priv (net_dev);struct phy_device *phy_dev = net_dev->phydev; +int speed = phy_dev->speed;bool update = false; +if (bgmac->feature_flags &BGMAC_FEAT_FORCE_SPEED_2500 ) + speed =SPEED_2500 ; +if (phy_dev->link) { -if (phy_dev->speed != bgmac->mac_speed) { - bgmac->mac_speed = phy_dev->speed; +if (speed != bgmac->mac_speed) { + bgmac->mac_speed = speed; update = true; }
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.h +1 -1
@@ -78,7 +78,7 @@ void mlx5i_pkey_qpn_ht_cleanup(struct net_device *netdev);int mlx5i_pkey_add_qpn (struct net_device *netdev,u32 qpn);int mlx5i_pkey_del_qpn (struct net_device *netdev,u32 qpn); -/* Get the net-device corresponding to the given underlay QPN */ +/* Get the net-device for a QPN. Caller must hold rcu_read_lock(). */ struct net_device *mlx5i_pkey_get_netdev (struct net_device *netdev,u32 qpn);/* Shared ndo functions */
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c +15 -11
@@ -31,6 +31,7 @@*/ #include <linux/hash.h> +#include <linux/rculist.h> #include "ipoib.h" #define MLX5I_MAX_LOG_PKEY_SUP 7
@@ -39,11 +40,12 @@ struct qpn_to_netdev {struct net_device *netdev;struct hlist_node hlist;u32 underlay_qpn; +struct rcu_head rcu; };struct mlx5i_pkey_qpn_ht {struct hlist_head buckets[1 <<MLX5I_MAX_LOG_PKEY_SUP ]; -spinlock_t ht_lock;/* Synchronise with NAPI */ +spinlock_t ht_lock;/* Serialize hash table updates */ };int mlx5i_pkey_qpn_ht_init (struct net_device *netdev)
@@ -68,13 +70,14 @@ void mlx5i_pkey_qpn_ht_cleanup(struct net_device *netdev)kfree (ipriv->qpn_htbl); } -static struct qpn_to_netdev *mlx5i_find_qpn_to_netdev_node (struct hlist_head *buckets, -u32 qpn) +static struct qpn_to_netdev * +mlx5i_find_qpn_to_netdev_node (struct mlx5i_pkey_qpn_ht *ht,u32 qpn) { -struct hlist_head *h = &buckets[hash_32 (qpn,MLX5I_MAX_LOG_PKEY_SUP )]; +struct hlist_head *h = &ht->buckets[hash_32 (qpn,MLX5I_MAX_LOG_PKEY_SUP )];struct qpn_to_netdev *node; -hlist_for_each_entry (node, h, hlist) { +hlist_for_each_entry_rcu (node, h, hlist, +lockdep_is_held (&ht->ht_lock)) {if (node->underlay_qpn == qpn)return node; }
@@ -96,7 +99,7 @@ int mlx5i_pkey_add_qpn(struct net_device *netdev, u32 qpn) new_node->netdev = netdev; new_node->underlay_qpn = qpn;spin_lock_bh (&ht->ht_lock); -hlist_add_head (&new_node->hlist, &ht->buckets[key]); +hlist_add_head_rcu (&new_node->hlist, &ht->buckets[key]);spin_unlock_bh (&ht->ht_lock);return 0 ;
@@ -109,16 +112,17 @@ int mlx5i_pkey_del_qpn(struct net_device *netdev, u32 qpn)struct mlx5i_pkey_qpn_ht *ht = ipriv->qpn_htbl;struct qpn_to_netdev *node; - node =mlx5i_find_qpn_to_netdev_node (ht->buckets, qpn); +spin_lock_bh (&ht->ht_lock); + node =mlx5i_find_qpn_to_netdev_node (ht, qpn);if (!node) { +spin_unlock_bh (&ht->ht_lock);mlx5_core_warn (epriv->mdev,"QPN to netdev delete from HT failed\n" );return -EINVAL ; } -spin_lock_bh (&ht->ht_lock); -hlist_del_init (&node->hlist); +hlist_del_rcu (&node->hlist);spin_unlock_bh (&ht->ht_lock); -kfree (node); +kfree_rcu (node, rcu);return 0 ; }
@@ -128,7 +132,7 @@ struct net_device *mlx5i_pkey_get_netdev(struct net_device *netdev, u32 qpn)struct mlx5i_priv *ipriv =netdev_priv (netdev);struct qpn_to_netdev *node; - node =mlx5i_find_qpn_to_netdev_node (ipriv->qpn_htbl->buckets, qpn); + node =mlx5i_find_qpn_to_netdev_node (ipriv->qpn_htbl, qpn);if (!node)return NULL ;
drivers/net/ethernet/realtek/8139cp.c +4 -4
@@ -600,11 +600,11 @@ static irqreturn_t cp_interrupt (int irq, void *dev_instance) goto out_unlock; } -if (status & (RxOK | RxErr | RxEmpty | RxFIFOOvr)) -if (napi_schedule_prep (&cp->napi)) { -cpw16_f (IntrMask, cp_norx_intr_mask); +if (status & (RxOK | RxErr | RxEmpty | RxFIFOOvr)) { +cpw16_f (IntrMask, cp_norx_intr_mask); +if (napi_schedule_prep (&cp->napi))__napi_schedule (&cp->napi); - } + }if (status & (TxOK | TxErr | TxEmpty | SWInt))cp_tx (cp);
drivers/net/ethernet/renesas/ravb_main.c +7 -1
@@ -2352,10 +2352,12 @@ static int __maybe_unused ravb_suspend(struct device *dev)netif_device_detach (ndev); +rtnl_lock ();if (priv->wol_enabled) ret =ravb_wol_setup (ndev);else ret =ravb_close (ndev); +rtnl_unlock ();return ret; }
@@ -2393,12 +2395,16 @@ static int __maybe_unused ravb_resume(struct device *dev)ravb_write (ndev, priv->desc_bat_dma,DBAT );if (netif_running (ndev)) { +rtnl_lock ();if (priv->wol_enabled) { ret =ravb_wol_restore (ndev); -if (ret) +if (ret) { +rtnl_unlock ();return ret; + } } ret =ravb_open (ndev); +rtnl_unlock ();if (ret <0 )return ret;ravb_set_rx_mode (ndev);
drivers/net/ethernet/sfc/ptp.c +71 -37
252 lines not on this page · raw message
drivers/net/team/team.c +7 -5
@@ -1303,11 +1303,8 @@ static int team_port_add(struct team *team, struct net_device *port_dev,/* set allmulti level to new slave */ if (dev->flags &IFF_ALLMULTI ) { err =dev_set_allmulti (port_dev,1 ); -if (err) { -if (dev->flags &IFF_PROMISC ) -dev_set_promiscuity (port_dev,-1 ); - goto err_set_slave_promisc; - } +if (err) + goto err_set_slave_allmulti; } err =team_dev_type_check_change (dev, port_dev);
@@ -1333,6 +1330,11 @@ static int team_port_add(struct team *team, struct net_device *port_dev,return 0 ; err_set_dev_type: +if (dev->flags &IFF_ALLMULTI ) +dev_set_allmulti (port_dev,-1 ); +err_set_slave_allmulti: +if (dev->flags &IFF_PROMISC ) +dev_set_promiscuity (port_dev,-1 ); err_set_slave_promisc:__team_option_inst_del_port (team, port);
drivers/net/tun.c +5 -1
@@ -683,7 +683,7 @@ static void __tun_detach(struct tun_file *tfile, bool clean) }synchronize_net (); -tun_flow_delete_by_queue (tun, tun->numqueues +1 ); +tun_flow_delete_by_queue (tun, tun->numqueues);/* Drop read queue */ tun_queue_purge (tfile);tun_set_real_num_queues (tun);
@@ -3241,6 +3241,10 @@ static long __tun_chr_ioctl(struct file *file, unsigned int cmd,netif_info (tun, drv, tun->dev,"Linktype set failed because interface is up\n" ); ret = -EBUSY ; + }else if ((unsigned short )arg ==ARPHRD_IEEE802154 || + (unsigned short )arg ==ARPHRD_IEEE802154_MONITOR || + (unsigned short )arg ==ARPHRD_6LOWPAN ) { + ret = -EINVAL ; }else { tun->dev->type = (int ) arg; tun->dev->addr_len =tun_get_addr_len (tun->dev->type);
drivers/net/usb/cdc_ncm.c +2 -2
@@ -1107,7 +1107,7 @@ static struct usb_cdc_ncm_ndp16 *cdc_ncm_ndp16(struct cdc_ncm_ctx *ctx, struct scdc_ncm_align_tail (skb, ctx->tx_ndp_modulus,0 , ctx->tx_curr_size);/* verify that there is room for the NDP and the datagram (reserve) */ -if ((ctx->tx_curr_size - skb->len - reserve) < ctx->max_ndp_size) +if (skb->len + reserve + ctx->max_ndp_size > ctx->tx_curr_size)return NULL ;/* link to it */
@@ -1162,7 +1162,7 @@ static struct usb_cdc_ncm_ndp32 *cdc_ncm_ndp32(struct cdc_ncm_ctx *ctx, struct scdc_ncm_align_tail (skb, ctx->tx_ndp_modulus,0 , ctx->tx_curr_size);/* verify that there is room for the NDP and the datagram (reserve) */ -if ((ctx->tx_curr_size - skb->len - reserve) < ctx->max_ndp_size) +if (skb->len + reserve + ctx->max_ndp_size > ctx->tx_curr_size)return NULL ;/* link to it */
drivers/net/wireless/ath/ath9k/htc_drv_main.c +4 -4
@@ -1098,11 +1098,8 @@ static int ath9k_htc_add_interface(struct ieee80211_hw *hw,ath9k_htc_set_opmode (priv); -if ((priv->ah->opmode ==NL80211_IFTYPE_AP ) && - !test_bit (ATH_OP_ANI_RUN , &common->op_flags)) { +if (priv->ah->opmode ==NL80211_IFTYPE_AP )ath9k_hw_set_tsfadjust (priv->ah, true); -ath9k_htc_start_ani (priv); - }ath_dbg (common,CONFIG ,"Attach a VIF of type: %d at idx: %d\n" , vif->type, avp->index);
@@ -1552,6 +1549,9 @@ static void ath9k_htc_bss_info_changed(struct ieee80211_hw *hw,ath9k_htc_set_tsfadjust (priv, vif); priv->cur_beacon_conf.enable_beacon =1 ;ath9k_htc_beacon_config (priv, vif); +if (priv->ah->opmode ==NL80211_IFTYPE_AP && + !test_bit (ATH_OP_ANI_RUN , &common->op_flags)) +ath9k_htc_start_ani (priv); }if ((changed &BSS_CHANGED_BEACON_ENABLED ) && !bss_conf->enable_beacon) {
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c +3 -1
@@ -1378,8 +1378,10 @@ mt7615_mcu_wtbl_sta_add(struct mt7615_dev *dev, struct ieee80211_vif *vif, wtbl_hdr =mt7615_mcu_alloc_wtbl_req (dev, msta,WTBL_RESET_AND_SET ,NULL , &wskb); -if (IS_ERR (wtbl_hdr)) +if (IS_ERR (wtbl_hdr)) { +dev_kfree_skb (sskb);return PTR_ERR (wtbl_hdr); + }if (enable) {mt7615_mcu_wtbl_generic_tlv (wskb, vif, sta,NULL , wtbl_hdr);
drivers/nvme/host/core.c +4 -0
@@ -3029,7 +3029,11 @@ static int nvme_init_subsystem(struct nvme_ctrl *ctrl, struct nvme_id_ctrl *id)return 0 ; out_put_subsystem: +if (!found) +list_del_init (&subsys->entry); +mutex_unlock (&nvme_subsystems_lock);nvme_put_subsystem (subsys); +return ret; out_unlock:mutex_unlock (&nvme_subsystems_lock);return ret;
drivers/nvme/host/fc.c +2 -2
@@ -1404,7 +1404,7 @@ nvme_fc_disconnect_assoc_done(struct nvmefc_ls_req *lsreq, int status)* down, and the related FC-NVME Association ID and Connection IDs * become invalid. * -* The behavior of the fc-nvme initiator is such that it's +* The behavior of the fc-nvme initiator is such that its * understanding of the association and connections will implicitly * be torn down. The action is implicit as it may be due to a loss of * connectivity with the fc-nvme target, so you may never get a
@@ -2794,7 +2794,7 @@ nvme_fc_queue_rq(struct blk_mq_hw_ctx *hctx,* as WRITE ZEROES will return a non-zero rq payload_bytes yet * there is no actual payload to be transferred. * To get it right, key data transmission on there being 1 or -* more physical segments in the sg list. If there is no +* more physical segments in the sg list. If there are no * physical segments, there is no payload. */ if (blk_rq_nr_phys_segments (rq)) {
drivers/nvme/host/tcp.c +21 -5
@@ -1778,11 +1778,12 @@ static void nvme_tcp_stop_io_queues(struct nvme_ctrl *ctrl)nvme_tcp_wait_queue (ctrl, i); } -static int nvme_tcp_start_io_queues (struct nvme_ctrl *ctrl) +static int nvme_tcp_start_io_queues (struct nvme_ctrl *ctrl, +int first,int last) {int i, ret =0 ; -for (i =1 ; i < ctrl->queue_count; i++) { +for (i = first; i < last; i++) { ret =nvme_tcp_start_queue (ctrl, i);if (ret) goto out_stop_queues;
@@ -1791,7 +1792,7 @@ static int nvme_tcp_start_io_queues(struct nvme_ctrl *ctrl)return 0 ; out_stop_queues: -for (i--; i >=1 ; i--) +for (i--; i >= first; i--)nvme_tcp_stop_queue (ctrl, i);return ret; }
@@ -1918,7 +1919,7 @@ static void nvme_tcp_destroy_io_queues(struct nvme_ctrl *ctrl, bool remove)static int nvme_tcp_configure_io_queues (struct nvme_ctrl *ctrl,bool new) { -int ret; +int ret, nr_queues; ret =nvme_tcp_alloc_io_queues (ctrl);if (ret)
@@ -1938,7 +1939,13 @@ static int nvme_tcp_configure_io_queues(struct nvme_ctrl *ctrl, bool new) } } - ret =nvme_tcp_start_io_queues (ctrl); +/* +* Only start IO queues for which we have allocated the tagset +* and limited it to the available queues. On reconnects, the +* queue number might have changed. +*/ + nr_queues =min (ctrl->tagset->nr_hw_queues +1 , ctrl->queue_count); + ret =nvme_tcp_start_io_queues (ctrl,1 , nr_queues);if (ret) goto out_cleanup_connect_q;
@@ -1960,6 +1967,15 @@ static int nvme_tcp_configure_io_queues(struct nvme_ctrl *ctrl, bool new)nvme_unfreeze (ctrl); } +/* +* If the number of queues has increased (reconnect case) +* start all new queues now. +*/ + ret =nvme_tcp_start_io_queues (ctrl, nr_queues, + ctrl->tagset->nr_hw_queues +1 ); +if (ret) + goto out_wait_freeze_timed_out; +return 0 ; out_wait_freeze_timed_out:
drivers/nvme/target/fc.c +3 -3
@@ -449,7 +449,7 @@ nvmet_fc_disconnect_assoc_done(struct nvmefc_ls_req *lsreq, int status)* down, and the related FC-NVME Association ID and Connection IDs * become invalid. * -* The behavior of the fc-nvme target is such that it's +* The behavior of the fc-nvme target is such that its * understanding of the association and connections will implicitly * be torn down. The action is implicit as it may be due to a loss of * connectivity with the fc-nvme host, so the target may never get a
@@ -2274,7 +2274,7 @@ nvmet_fc_transfer_fcp_data(struct nvmet_fc_tgtport *tgtport, ret = tgtport->ops->fcp_op (&tgtport->fc_target_port, fod->fcpreq);if (ret) {/* -* should be ok to set w/o lock as its in the thread of +* should be ok to set w/o lock as it's in the thread of * execution (not an async timer routine) and doesn't * contend with any clearing action */
@@ -2592,7 +2592,7 @@ nvmet_fc_handle_fcp_rqst(struct nvmet_fc_tgtport *tgtport,* and the api of the FC LLDD which may issue a hw command to send the * response, but the LLDD may not get the hw completion for that command * and upcall the nvmet_fc layer before a new command may be -* asynchronously received - its possible for a command to be received +* asynchronously received - it's possible for a command to be received * before the LLDD and nvmet_fc have recycled the job structure. It gives * the appearance of more commands received than fits in the sq. * To alleviate this scenario, a temporary queue is maintained in the
drivers/nvme/target/rdma.c +23 -19
81 lines not on this page · raw message
drivers/regulator/Kconfig +1 -0
@@ -865,6 +865,7 @@ config REGULATOR_QCOM_SMD_RPM config REGULATOR_QCOM_SPMI tristate "Qualcomm SPMI regulator driver" depends on SPMI || COMPILE_TEST + select REGMAP_MMIO help If you say yes to this option, support will be included for the regulators found in Qualcomm SPMI PMICs.
drivers/regulator/qcom_spmi-regulator.c +27 -8
@@ -11,13 +11,13 @@#include <linux/bitops.h> #include <linux/slab.h> #include <linux/of.h> +#include <linux/of_address.h> #include <linux/of_device.h> #include <linux/platform_device.h> #include <linux/ktime.h> #include <linux/regulator/driver.h> #include <linux/regmap.h> #include <linux/list.h> -#include <linux/mfd/syscon.h> #include <linux/io.h> /* Pin control enable input pins. */
@@ -1218,6 +1218,14 @@ static irqreturn_t spmi_regulator_vs_ocp_isr(int irq, void *data)static struct regmap *saw_regmap; +static const struct regmap_config saw_regmap_config = { + .name ="saw" , + .reg_bits =32 , + .val_bits =32 , + .reg_stride =4 , + .use_raw_spinlock = true, +}; +static void spmi_saw_set_vdd (void *data) {u32 vctl, data3, avs_ctl, pmic_sts;
@@ -2110,7 +2118,8 @@ static int qcom_spmi_regulator_probe(struct platform_device *pdev)const char *name;struct device *dev = &pdev->dev;struct device_node *node = pdev->dev.of_node; -struct device_node *syscon, *reg_node; +struct device_node *saw, *reg_node; +void __iomem *saw_base;struct property *reg_prop;int ret, lenp;struct list_head *vreg_list;
@@ -2129,12 +2138,22 @@ static int qcom_spmi_regulator_probe(struct platform_device *pdev)if (!match)return -ENODEV ; -if (of_find_property (node,"qcom,saw-reg" , &lenp)) { - syscon =of_parse_phandle (node,"qcom,saw-reg" ,0 ); - saw_regmap =syscon_node_to_regmap (syscon); -of_node_put (syscon); -if (IS_ERR (saw_regmap)) -dev_err (dev,"ERROR reading SAW regmap\n" ); + saw =of_parse_phandle (node,"qcom,saw-reg" ,0 ); +if (saw) { + saw_base =devm_of_iomap (dev, saw,0 ,NULL ); +of_node_put (saw); +if (IS_ERR (saw_base)) +return dev_err_probe (dev,PTR_ERR (saw_base), +"failed to map the SAW\n" ); + + saw_regmap =devm_regmap_init_mmio (dev, saw_base, + &saw_regmap_config); +if (IS_ERR (saw_regmap)) { + ret =PTR_ERR (saw_regmap); + saw_regmap =NULL ; +return dev_err_probe (dev, ret, +"failed to set the SAW regmap up\n" ); + } }for (reg = match->data; reg->name; reg++) {
drivers/remoteproc/imx_rproc.c +4 -1
@@ -290,9 +290,12 @@ static int imx_rproc_addr_init(struct imx_rproc *priv,if (!node)continue ;/* Not map vdevbuffer, vdevring region */ -if (!strncmp (node->name,"vdev" ,strlen ("vdev" ))) +if (!strncmp (node->name,"vdev" ,strlen ("vdev" ))) { +of_node_put (node);continue ; + } err =of_address_to_resource (node,0 , &res); +of_node_put (node);if (err) {dev_err (dev,"unable to resolve memory region\n" );return err;
drivers/s390/block/dasd_eckd.c +2 -1
@@ -2518,7 +2518,8 @@ dasd_eckd_build_check_tcw(struct dasd_device *base, struct format_data_t *fdata,return cqr; out_err: -dasd_sfree_request (cqr, startdev); + start_priv->count--; +dasd_ffree_request (cqr, startdev);return ERR_PTR (rc); }
drivers/s390/block/dasd_ioctl.c +3 -1
@@ -312,7 +312,9 @@ static int dasd_ioctl_check_format(struct block_device *bdev, void __user *argp) goto out_err; } -if (copy_from_user (&cdata, argp,sizeof (cdata))) { +/* copy only input fields, clear the rest */ +memset (&cdata,0 ,sizeof (cdata)); +if (copy_from_user (&cdata.expect, argp,sizeof (cdata.expect))) { rc = -EFAULT ; goto out_err; }
drivers/scsi/aic7xxx/aic7xxx_core.c +1 -1
@@ -1097,7 +1097,7 @@ ahc_handle_seqint(struct ahc_softc *ahc, u_int intstat) sc->byte2 =SCB_GET_LUN (scb) <<5 ; sc->unused[0 ] =0 ; sc->unused[1 ] =0 ; - sc->length = sg->len; + sc->length =ahc_get_sense_bufsize (ahc, scb); sc->control =0 ;/*
drivers/spi/spi-pic32-sqi.c +2 -1
@@ -297,7 +297,7 @@ static int pic32_sqi_one_transfer(struct pic32_sqi *sqi,/* get ring descriptor */ rdesc =ring_desc_get (sqi);if (!rdesc) -break ; +return -ENOMEM ; bd = rdesc->bd;
@@ -387,6 +387,7 @@ static int pic32_sqi_one_message(struct spi_master *master, ret =pic32_sqi_one_transfer (sqi, msg, xfer);if (ret) {dev_err (&spi->dev,"xfer %p err\n" , xfer); + msg->status = ret; goto xfer_out; } }
drivers/staging/media/atomisp/pci/sh_css_param_dvs.c +7 -4
@@ -13,6 +13,7 @@* more details. */ +#include <linux/overflow.h> #include "sh_css_param_dvs.h" #include <assert_support.h> #include <type_support.h>
@@ -58,7 +59,7 @@ alloc_dvs_6axis_table(const struct ia_css_resolution *frame_res, }/* Generate Y buffers */ - dvs_config->xcoords_y =kvmalloc (width_y * height_y *sizeof (uint32_t ), + dvs_config->xcoords_y =kvmalloc (array3_size (width_y, height_y,sizeof (uint32_t )),GFP_KERNEL );if (!dvs_config->xcoords_y) {IA_CSS_ERROR ("out of memory" );
@@ -66,7 +67,7 @@ alloc_dvs_6axis_table(const struct ia_css_resolution *frame_res, goto exit; } - dvs_config->ycoords_y =kvmalloc (width_y * height_y *sizeof (uint32_t ), + dvs_config->ycoords_y =kvmalloc (array3_size (width_y, height_y,sizeof (uint32_t )),GFP_KERNEL );if (!dvs_config->ycoords_y) {IA_CSS_ERROR ("out of memory" );
@@ -77,7 +78,8 @@ alloc_dvs_6axis_table(const struct ia_css_resolution *frame_res,/* Generate UV buffers */ IA_CSS_LOG ("UV W %d H %d" , width_uv, height_uv); - dvs_config->xcoords_uv =kvmalloc (width_uv * height_uv *sizeof (uint32_t ), + dvs_config->xcoords_uv =kvmalloc (array3_size (width_uv, height_uv, +sizeof (uint32_t )),GFP_KERNEL );if (!dvs_config->xcoords_uv) {IA_CSS_ERROR ("out of memory" );
@@ -85,7 +87,8 @@ alloc_dvs_6axis_table(const struct ia_css_resolution *frame_res, goto exit; } - dvs_config->ycoords_uv =kvmalloc (width_uv * height_uv *sizeof (uint32_t ), + dvs_config->ycoords_uv =kvmalloc (array3_size (width_uv, height_uv, +sizeof (uint32_t )),GFP_KERNEL );if (!dvs_config->ycoords_uv) {IA_CSS_ERROR ("out of memory" );
drivers/staging/media/atomisp/pci/sh_css_param_shading.c +3 -1
@@ -13,6 +13,7 @@* more details. */ +#include <linux/overflow.h> #include <linux/slab.h> #include <math_support.h>
@@ -350,7 +351,8 @@ ia_css_shading_table_alloc( me->fraction_bits =0 ;for (i =0 ; i <IA_CSS_SC_NUM_COLORS ; i++) { me->data[i] = -kvmalloc (width * height *sizeof (*me->data[0 ]), +kvmalloc (array3_size (width, height, +sizeof (*me->data[0 ])),GFP_KERNEL );if (!me->data[i]) {unsigned int j;
drivers/staging/media/atomisp/pci/sh_css_params.c +21 -14
@@ -13,6 +13,7 @@* more details. */ +#include <linux/overflow.h> #include "gdc_device.h" /* gdc_lut_store(), ... */ #include "isp.h" /* ISP_VEC_ELEMBITS */ #include "vamem.h"
@@ -1405,11 +1406,11 @@ struct ia_css_morph_table *ia_css_morph_table_allocate( }for (i =0 ; i <IA_CSS_MORPH_TABLE_NUM_PLANES ; i++) { - me->coordinates_x[i] =kvmalloc (height * width * -sizeof (*me->coordinates_x[i]), + me->coordinates_x[i] =kvmalloc (array3_size (height, width, +sizeof (*me->coordinates_x[i])),GFP_KERNEL ); - me->coordinates_y[i] =kvmalloc (height * width * -sizeof (*me->coordinates_y[i]), + me->coordinates_y[i] =kvmalloc (array3_size (height, width, +sizeof (*me->coordinates_y[i])),GFP_KERNEL ); if ((!me->coordinates_x[i]) ||
@@ -4390,13 +4391,17 @@ ia_css_dvs_statistics_allocate(const struct ia_css_dvs_grid_info *grid) goto err; me->grid = *grid; - me->hor_proj =kvmalloc (grid->height *IA_CSS_DVS_NUM_COEF_TYPES * -sizeof (*me->hor_proj),GFP_KERNEL ); + me->hor_proj =kvmalloc (array3_size (grid->height, +IA_CSS_DVS_NUM_COEF_TYPES , +sizeof (*me->hor_proj)), +GFP_KERNEL );if (!me->hor_proj) goto err; - me->ver_proj =kvmalloc (grid->width *IA_CSS_DVS_NUM_COEF_TYPES * -sizeof (*me->ver_proj),GFP_KERNEL ); + me->ver_proj =kvmalloc (array3_size (grid->width, +IA_CSS_DVS_NUM_COEF_TYPES , +sizeof (*me->ver_proj)), +GFP_KERNEL );if (!me->ver_proj) goto err;
@@ -4665,24 +4670,26 @@ ia_css_dvs2_6axis_config_allocate(const struct ia_css_stream *stream) params->pipe_dvs_6axis_config[IA_CSS_PIPE_ID_VIDEO ]->height_uv;IA_CSS_LOG ("table Y: W %d H %d" , width_y, height_y);IA_CSS_LOG ("table UV: W %d H %d" , width_uv, height_uv); - dvs_config->xcoords_y =kvmalloc (width_y * height_y *sizeof (uint32_t ), + dvs_config->xcoords_y =kvmalloc (array3_size (width_y, height_y, +sizeof (uint32_t )),GFP_KERNEL );if (!dvs_config->xcoords_y) goto err; - dvs_config->ycoords_y =kvmalloc (width_y * height_y *sizeof (uint32_t ), + dvs_config->ycoords_y =kvmalloc (array3_size (width_y, height_y, +sizeof (uint32_t )),GFP_KERNEL );if (!dvs_config->ycoords_y) goto err; - dvs_config->xcoords_uv =kvmalloc (width_uv * height_uv * -sizeof (uint32_t ), + dvs_config->xcoords_uv =kvmalloc (array3_size (width_uv, height_uv, +sizeof (uint32_t )),GFP_KERNEL );if (!dvs_config->xcoords_uv) goto err; - dvs_config->ycoords_uv =kvmalloc (width_uv * height_uv * -sizeof (uint32_t ), + dvs_config->ycoords_uv =kvmalloc (array3_size (width_uv, height_uv, +sizeof (uint32_t )),GFP_KERNEL );if (!dvs_config->ycoords_uv) goto err;
drivers/target/target_core_pr.c +5 -4
@@ -3216,10 +3216,11 @@ core_scsi3_emulate_pro_register_and_move(struct se_cmd *cmd, u64 res_key,transport_kunmap_data_sg (cmd); buf =NULL ; -if ((tid_len +24 ) != cmd->data_length) { -pr_err ("SPC-3 PR: Illegal tid_len: %u + 24 byte header" -" does not equal CDB data_length: %u\n" , tid_len, - cmd->data_length); +/* TransportID is at least 24 bytes. buf[24] is its first byte. */ +if (tid_len <24 || + tid_len != cmd->data_length -24 ) { +pr_err ("SPC-3 PR: Illegal tid_len: %u for data_length: %u\n" , + tid_len, cmd->data_length); ret =TCM_INVALID_PARAMETER_LIST ; goto out_put_pr_reg; }
drivers/tty/serial/8250/8250_lpss.c +3 -0
@@ -82,6 +82,9 @@ static void byt_set_termios(struct uart_port *p, struct ktermios *termios,/* Gracefully handle the B0 case: fall back to B9600 */ fuart = fuart ? fuart :9600 *16 ; +/* Fuart <= Fref: leave it to the core to refuse a higher baud rate */ + fuart =min (fuart, fref); +/* Get Fuart closer to Fref */ fuart *=rounddown_pow_of_two (fref / fuart);
drivers/tty/serial/samsung_tty.c +3 -0
@@ -1418,11 +1418,14 @@ static void s3c24xx_serial_set_termios(struct uart_port *port,if (!IS_ERR (ourport->baudclk)) {clk_disable_unprepare (ourport->baudclk); +clk_put (ourport->baudclk); ourport->baudclk =ERR_PTR (-EINVAL ); } ourport->baudclk = clk; ourport->baudclk_rate = clk ?clk_get_rate (clk) :0 ; + }else { +clk_put (clk); }if (ourport->info->has_divslot) {
drivers/usb/gadget/function/f_mass_storage.c +6 -2
@@ -2560,8 +2560,9 @@ static ssize_t nofua_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) {struct fsg_lun *curlun =fsg_lun_from_dev (dev); +struct rw_semaphore *filesem =dev_get_drvdata (dev); -return fsg_store_nofua (curlun, buf, count); +return fsg_store_nofua (curlun, filesem, buf, count); } static ssize_t file_store(struct device *dev, struct device_attribute *attr,
@@ -3127,7 +3128,10 @@ static ssize_t fsg_lun_opts_nofua_show(struct config_item *item, char *page)static ssize_t fsg_lun_opts_nofua_store (struct config_item *item,const char *page,size_t len) { -return fsg_store_nofua (to_fsg_lun_opts (item)->lun, page, len); +struct fsg_lun_opts *opts =to_fsg_lun_opts (item); +struct fsg_opts *fsg_opts =to_fsg_opts (opts->group.cg_item.ci_parent); + +return fsg_store_nofua (opts->lun, &fsg_opts->common->filesem, page, len); }CONFIGFS_ATTR (fsg_lun_opts_, nofua);
drivers/usb/gadget/function/f_midi.c +4 -0
@@ -419,6 +419,7 @@ static void f_midi_disable(struct usb_function *f)struct f_midi *midi =func_to_midi (f);struct usb_composite_dev *cdev = f->config->cdev;struct usb_request *req =NULL ; +unsigned long flags;
Lines of this file are not shown. View the raw message.
drivers/usb/gadget/function/storage_common.c +5 -2
Lines of this file are not shown. View the raw message.
drivers/usb/gadget/function/storage_common.h +2 -1
Lines of this file are not shown. View the raw message.
drivers/usb/serial/io_edgeport.c +62 -78
140 lines not on this page · raw message
drivers/vfio/platform/vfio_platform_common.c +7 -3
Lines of this file are not shown. View the raw message.
drivers/vhost/scsi.c +36 -15
51 lines not on this page · raw message
drivers/vhost/vdpa.c +44 -26
70 lines not on this page · raw message
include/net/netfilter/nf_conntrack_helper.h +1 -0
Lines of this file are not shown. View the raw message.
kernel/locking/osq_lock.c +54 -27
81 lines not on this page · raw message
net/core/filter.c +69 -10
79 lines not on this page · raw message
net/netfilter/nft_ct.c +99 -27
126 lines not on this page · raw message
net/sctp/sm_make_chunk.c +24 -21
45 lines not on this page · raw message
tools/testing/selftests/ftrace/test.d/kprobe/kprobe_non_uniq_symbol.tc +1 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/net/packetdrill/tcp_bidir_fast_retransmit_nosack.pkt new file +42 -0
42 lines not on this page · 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.
Hi!
Quoted 3 lines
Note, this is the LAST 5.10.y kernel release. The 5.10.y kernel tree is now end-of-life. Please move to a newer kernel tree at this point in time.
CIP project will maintain 5.10.276-cipXX kernel for few more years. Note that our scope is limited compared to 5.10-stable. More information is at
https://wiki.linuxfoundation.org/civilinfrastructureplatform/start
Best regards,
Pavel