Linux 6.8.11
Greg Kroah-Hartman
maintainerDocumentation/ABI/stable/sysfs-block +10 -0
@@ -101,6 +101,16 @@ Description: devices that support receiving integrity metadata. +What: /sys/block/<disk>/partscan +Date: May 2024 +Contact: Christoph Hellwig <[email protected]> +Description: + The /sys/block/<disk>/partscan files reports if partition + scanning is enabled for the disk. It returns "1" if partition + scanning is enabled, or "0" if not. The value type is a 32-bit + unsigned integer, but only "0" and "1" are valid values. + + What: /sys/block/<disk>/<partition>/alignment_offset Date: April 2009 Contact: Martin K. Petersen <[email protected]>
Documentation/admin-guide/hw-vuln/core-scheduling.rst +2 -2
@@ -67,8 +67,8 @@ arg4: will be performed for all tasks in the task group of ``pid``. arg5: - userspace pointer to an unsigned long for storing the cookie returned by - ``PR_SCHED_CORE_GET`` command. Should be 0 for all other commands. + userspace pointer to an unsigned long long for storing the cookie returned + by ``PR_SCHED_CORE_GET`` command. Should be 0 for all other commands. In order for a process to push a cookie to, or pull a cookie from a process, it is required to have the ptrace access mode: `PTRACE_MODE_READ_REALCREDS` to the
Documentation/admin-guide/mm/damon/usage.rst +1 -1
@@ -450,7 +450,7 @@ pages of all memory cgroups except ``/having_care_already``.:: # # further filter out all cgroups except one at '/having_care_already' echo memcg > 1/type echo /having_care_already > 1/memcg_path - echo N > 1/matching + echo Y > 1/matching Note that ``anon`` and ``memcg`` filters are currently supported only when ``paddr`` :ref:`implementation <sysfs_context>` is being used.
Documentation/sphinx/kernel_include.py +0 -1
@@ -97,7 +97,6 @@ class KernelInclude(Include): # HINT: this is the only line I had to change / commented out: #path = utils.relative_path(None, path) - path = nodes.reprunicode(path) encoding = self.options.get( 'encoding', self.state.document.settings.input_encoding) e_handler=self.state.document.settings.input_encoding_error_handler
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 6 PATCHLEVEL = 8 -SUBLEVEL = 10 +SUBLEVEL = 11 EXTRAVERSION = NAME = Hurr durr I'ma ninja sloth
block/genhd.c +10 -5
@@ -345,9 +345,7 @@ int disk_scan_partitions(struct gendisk *disk, blk_mode_t mode)struct bdev_handle *handle;int ret =0 ; -if (disk->flags & (GENHD_FL_NO_PART |GENHD_FL_HIDDEN )) -return -EINVAL ; -if (test_bit (GD_SUPPRESS_PART_SCAN , &disk->state)) +if (!disk_has_partscan (disk))return -EINVAL ;if (disk->open_partitions)return -EBUSY ;
@@ -503,8 +501,7 @@ int __must_check device_add_disk(struct device *parent, struct gendisk *disk, goto out_unregister_bdi;/* Make sure the first partition scan will be proceed */ -if (get_capacity (disk) && !(disk->flags &GENHD_FL_NO_PART ) && - !test_bit (GD_SUPPRESS_PART_SCAN , &disk->state)) +if (get_capacity (disk) &&disk_has_partscan (disk))set_bit (GD_NEED_PART_SCAN , &disk->state);bdev_add (disk->part0, ddev->devt);
@@ -1047,6 +1044,12 @@ static ssize_t diskseq_show(struct device *dev,return sprintf (buf,"%llu\n" , disk->diskseq); } +static ssize_t partscan_show (struct device *dev, +struct device_attribute *attr,char *buf) +{ +return sprintf (buf,"%u\n" ,disk_has_partscan (dev_to_disk (dev))); +} + static DEVICE_ATTR(range, 0444, disk_range_show, NULL); static DEVICE_ATTR(ext_range, 0444, disk_ext_range_show, NULL); static DEVICE_ATTR(removable, 0444, disk_removable_show, NULL);
@@ -1060,6 +1063,7 @@ static DEVICE_ATTR(stat, 0444, part_stat_show, NULL); static DEVICE_ATTR(inflight, 0444, part_inflight_show, NULL); static DEVICE_ATTR(badblocks, 0644, disk_badblocks_show, disk_badblocks_store); static DEVICE_ATTR(diskseq, 0444, diskseq_show, NULL); +static DEVICE_ATTR(partscan, 0444, partscan_show, NULL);#ifdef CONFIG_FAIL_MAKE_REQUEST ssize_t part_fail_show(struct device *dev,
@@ -1106,6 +1110,7 @@ static struct attribute *disk_attrs[] = { &dev_attr_events_async.attr, &dev_attr_events_poll_msecs.attr, &dev_attr_diskseq.attr, + &dev_attr_partscan.attr, #ifdef CONFIG_FAIL_MAKE_REQUEST &dev_attr_fail.attr, #endif
block/partitions/core.c +1 -4
@@ -584,10 +584,7 @@ static int blk_add_partitions(struct gendisk *disk)struct parsed_partitions *state;int ret = -EAGAIN , p; -if (disk->flags &GENHD_FL_NO_PART ) -return 0 ; - -if (test_bit (GD_SUPPRESS_PART_SCAN , &disk->state)) +if (!disk_has_partscan (disk))return 0 ; state =check_partition (disk);
drivers/android/binder.c +1 -1
@@ -5367,7 +5367,7 @@ static long binder_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) goto err;break ;case BINDER_SET_MAX_THREADS : { -int max_threads; +u32 max_threads;if (copy_from_user (&max_threads, ubuf,sizeof (max_threads))) {
drivers/android/binder_internal.h +1 -1
@@ -421,7 +421,7 @@ struct binder_proc {struct list_head todo;struct binder_stats stats;struct list_head delivered_death; -int max_threads; +u32 max_threads;int requested_threads;int requested_threads_started;int tmp_ref;
drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c +6 -1
@@ -1050,7 +1050,12 @@ static bool setup_dsc_config(if (!is_dsc_possible) goto done; - dsc_cfg->num_slices_v = pic_height/slice_height; +if (slice_height >0 ) { + dsc_cfg->num_slices_v = pic_height / slice_height; + }else { + is_dsc_possible = false; + goto done; + }if (target_bandwidth_kbps >0 ) { is_dsc_possible = decide_dsc_target_bpp_x16(
drivers/net/ethernet/intel/ice/ice_virtchnl.c +10 -12
@@ -550,17 +550,15 @@ bool ice_vc_isvalid_vsi_id(struct ice_vf *vf, u16 vsi_id)/** * ice_vc_isvalid_q_id -* @vf: pointer to the VF info -* @vsi_id: VSI ID +* @vsi: VSI to check queue ID against * @qid: VSI relative queue ID * * check for the valid queue ID */ -static bool ice_vc_isvalid_q_id (struct ice_vf *vf,u16 vsi_id,u8 qid) +static bool ice_vc_isvalid_q_id (struct ice_vsi *vsi,u8 qid) { -struct ice_vsi *vsi =ice_find_vsi (vf->pf, vsi_id);/* allocated Tx and Rx queues should be always equal for VF VSI */ -return (vsi && (qid < vsi->alloc_txq)); +return qid < vsi->alloc_txq; }/**
@@ -1318,7 +1316,7 @@ static int ice_vc_ena_qs_msg(struct ice_vf *vf, u8 *msg)*/ q_map = vqs->rx_queues;for_each_set_bit (vf_q_id, &q_map,ICE_MAX_RSS_QS_PER_VF ) { -if (!ice_vc_isvalid_q_id (vf, vqs->vsi_id, vf_q_id)) { +if (!ice_vc_isvalid_q_id (vsi, vf_q_id)) { v_ret =VIRTCHNL_STATUS_ERR_PARAM ; goto error_param; }
@@ -1340,7 +1338,7 @@ static int ice_vc_ena_qs_msg(struct ice_vf *vf, u8 *msg) q_map = vqs->tx_queues;for_each_set_bit (vf_q_id, &q_map,ICE_MAX_RSS_QS_PER_VF ) { -if (!ice_vc_isvalid_q_id (vf, vqs->vsi_id, vf_q_id)) { +if (!ice_vc_isvalid_q_id (vsi, vf_q_id)) { v_ret =VIRTCHNL_STATUS_ERR_PARAM ; goto error_param; }
@@ -1445,7 +1443,7 @@ static int ice_vc_dis_qs_msg(struct ice_vf *vf, u8 *msg) q_map = vqs->tx_queues;for_each_set_bit (vf_q_id, &q_map,ICE_MAX_RSS_QS_PER_VF ) { -if (!ice_vc_isvalid_q_id (vf, vqs->vsi_id, vf_q_id)) { +if (!ice_vc_isvalid_q_id (vsi, vf_q_id)) { v_ret =VIRTCHNL_STATUS_ERR_PARAM ; goto error_param; }
@@ -1471,7 +1469,7 @@ static int ice_vc_dis_qs_msg(struct ice_vf *vf, u8 *msg)bitmap_zero (vf->rxq_ena,ICE_MAX_RSS_QS_PER_VF ); }else if (q_map) {for_each_set_bit (vf_q_id, &q_map,ICE_MAX_RSS_QS_PER_VF ) { -if (!ice_vc_isvalid_q_id (vf, vqs->vsi_id, vf_q_id)) { +if (!ice_vc_isvalid_q_id (vsi, vf_q_id)) { v_ret =VIRTCHNL_STATUS_ERR_PARAM ; goto error_param; }
@@ -1527,7 +1525,7 @@ ice_cfg_interrupt(struct ice_vf *vf, struct ice_vsi *vsi, u16 vector_id,for_each_set_bit (vsi_q_id_idx, &qmap,ICE_MAX_RSS_QS_PER_VF ) { vsi_q_id = vsi_q_id_idx; -if (!ice_vc_isvalid_q_id (vf, vsi->vsi_num, vsi_q_id)) +if (!ice_vc_isvalid_q_id (vsi, vsi_q_id))return VIRTCHNL_STATUS_ERR_PARAM ; q_vector->num_ring_rx++;
@@ -1541,7 +1539,7 @@ ice_cfg_interrupt(struct ice_vf *vf, struct ice_vsi *vsi, u16 vector_id,for_each_set_bit (vsi_q_id_idx, &qmap,ICE_MAX_RSS_QS_PER_VF ) { vsi_q_id = vsi_q_id_idx; -if (!ice_vc_isvalid_q_id (vf, vsi->vsi_num, vsi_q_id)) +if (!ice_vc_isvalid_q_id (vsi, vsi_q_id))return VIRTCHNL_STATUS_ERR_PARAM ; q_vector->num_ring_tx++;
@@ -1698,7 +1696,7 @@ static int ice_vc_cfg_qs_msg(struct ice_vf *vf, u8 *msg) qpi->txq.headwb_enabled || !ice_vc_isvalid_ring_len(qpi->txq.ring_len) || !ice_vc_isvalid_ring_len(qpi->rxq.ring_len) || - !ice_vc_isvalid_q_id(vf, qci->vsi_id, qpi->txq.queue_id)) { + !ice_vc_isvalid_q_id(vsi, qpi->txq.queue_id)) { goto error_param; }
drivers/net/ethernet/intel/ice/ice_virtchnl_fdir.c +0 -3
@@ -94,9 +94,6 @@ ice_vc_fdir_param_check(struct ice_vf *vf, u16 vsi_id)if (!(vf->driver_caps &VIRTCHNL_VF_OFFLOAD_FDIR_PF ))return -EINVAL ; -if (vsi_id != vf->lan_vsi_num) -return -EINVAL ; -if (!ice_vc_isvalid_vsi_id (vf, vsi_id))return -EINVAL ;
drivers/net/ethernet/micrel/ks8851_common.c +1 -17
@@ -328,7 +328,6 @@ static irqreturn_t ks8851_irq(int irq, void *_ks) {struct ks8851_net *ks = _ks;struct sk_buff_head rxq; -unsigned handled =0 ;unsigned long flags;unsigned int status;struct sk_buff *skb;
@@ -336,24 +335,17 @@ static irqreturn_t ks8851_irq(int irq, void *_ks)ks8851_lock (ks, &flags); status =ks8851_rdreg16 (ks,KS_ISR ); +ks8851_wrreg16 (ks,KS_ISR , status);netif_dbg (ks, intr, ks->netdev,"%s: status 0x%04x\n" , __func__, status); -if (status &IRQ_LCI ) - handled |=IRQ_LCI ; -if (status &IRQ_LDI ) {u16 pmecr =ks8851_rdreg16 (ks,KS_PMECR ); pmecr &= ~PMECR_WKEVT_MASK ;ks8851_wrreg16 (ks,KS_PMECR , pmecr |PMECR_WKEVT_LINK ); - - handled |=IRQ_LDI ; } -if (status &IRQ_RXPSI ) - handled |=IRQ_RXPSI ; -if (status &IRQ_TXI ) {unsigned short tx_space =ks8851_rdreg16 (ks,KS_TXMIR );
@@ -365,20 +357,12 @@ static irqreturn_t ks8851_irq(int irq, void *_ks)if (netif_queue_stopped (ks->netdev))netif_wake_queue (ks->netdev);spin_unlock (&ks->statelock); - - handled |=IRQ_TXI ; } -if (status &IRQ_RXI ) - handled |=IRQ_RXI ; -if (status &IRQ_SPIBEI ) {netdev_err (ks->netdev,"%s: spi bus error\n" , __func__); - handled |=IRQ_SPIBEI ; } -ks8851_wrreg16 (ks,KS_ISR , handled); -if (status &IRQ_RXI ) {/* the datasheet says to disable the rx interrupt during * packet read-out, however we're masking the interrupt
drivers/net/usb/ax88179_178a.c +26 -11
@@ -174,6 +174,7 @@ struct ax88179_data {u32 wol_supported;u32 wolopts;u8 disconnecting; +u8 initialized; };struct ax88179_int_data {
@@ -1673,6 +1674,18 @@ static int ax88179_reset(struct usbnet *dev)return 0 ; } +static int ax88179_net_reset (struct usbnet *dev) +{ +struct ax88179_data *ax179_data = dev->driver_priv; + +if (ax179_data->initialized) +ax88179_reset (dev); +else + ax179_data->initialized =1 ; + +return 0 ; +} +static int ax88179_stop (struct usbnet *dev) {u16 tmp16;
@@ -1692,6 +1705,7 @@ static const struct driver_info ax88179_info = { .unbind = ax88179_unbind, .status = ax88179_status, .link_reset = ax88179_link_reset, + .reset = ax88179_net_reset, .stop = ax88179_stop, .flags = FLAG_ETHER | FLAG_FRAMING_AX, .rx_fixup = ax88179_rx_fixup,
@@ -1704,6 +1718,7 @@ static const struct driver_info ax88178a_info = { .unbind = ax88179_unbind, .status = ax88179_status, .link_reset = ax88179_link_reset, + .reset = ax88179_net_reset, .stop = ax88179_stop, .flags = FLAG_ETHER | FLAG_FRAMING_AX, .rx_fixup = ax88179_rx_fixup,
@@ -1716,7 +1731,7 @@ static const struct driver_info cypress_GX3_info = { .unbind = ax88179_unbind, .status = ax88179_status, .link_reset = ax88179_link_reset, - .reset = ax88179_reset, + .reset = ax88179_net_reset, .stop = ax88179_stop, .flags = FLAG_ETHER | FLAG_FRAMING_AX, .rx_fixup = ax88179_rx_fixup,
@@ -1729,7 +1744,7 @@ static const struct driver_info dlink_dub1312_info = { .unbind = ax88179_unbind, .status = ax88179_status, .link_reset = ax88179_link_reset, - .reset = ax88179_reset, + .reset = ax88179_net_reset, .stop = ax88179_stop, .flags = FLAG_ETHER | FLAG_FRAMING_AX, .rx_fixup = ax88179_rx_fixup,
@@ -1742,7 +1757,7 @@ static const struct driver_info sitecom_info = { .unbind = ax88179_unbind, .status = ax88179_status, .link_reset = ax88179_link_reset, - .reset = ax88179_reset, + .reset = ax88179_net_reset, .stop = ax88179_stop, .flags = FLAG_ETHER | FLAG_FRAMING_AX, .rx_fixup = ax88179_rx_fixup,
@@ -1755,7 +1770,7 @@ static const struct driver_info samsung_info = { .unbind = ax88179_unbind, .status = ax88179_status, .link_reset = ax88179_link_reset, - .reset = ax88179_reset, + .reset = ax88179_net_reset, .stop = ax88179_stop, .flags = FLAG_ETHER | FLAG_FRAMING_AX, .rx_fixup = ax88179_rx_fixup,
@@ -1768,7 +1783,7 @@ static const struct driver_info lenovo_info = { .unbind = ax88179_unbind, .status = ax88179_status, .link_reset = ax88179_link_reset, - .reset = ax88179_reset, + .reset = ax88179_net_reset, .stop = ax88179_stop, .flags = FLAG_ETHER | FLAG_FRAMING_AX, .rx_fixup = ax88179_rx_fixup,
@@ -1781,7 +1796,7 @@ static const struct driver_info belkin_info = { .unbind = ax88179_unbind, .status = ax88179_status, .link_reset = ax88179_link_reset, - .reset = ax88179_reset, + .reset = ax88179_net_reset, .stop = ax88179_stop, .flags = FLAG_ETHER | FLAG_FRAMING_AX, .rx_fixup = ax88179_rx_fixup,
@@ -1794,7 +1809,7 @@ static const struct driver_info toshiba_info = { .unbind = ax88179_unbind, .status = ax88179_status, .link_reset = ax88179_link_reset, - .reset = ax88179_reset, + .reset = ax88179_net_reset, .stop = ax88179_stop, .flags = FLAG_ETHER | FLAG_FRAMING_AX, .rx_fixup = ax88179_rx_fixup,
@@ -1807,7 +1822,7 @@ static const struct driver_info mct_info = { .unbind = ax88179_unbind, .status = ax88179_status, .link_reset = ax88179_link_reset, - .reset = ax88179_reset, + .reset = ax88179_net_reset, .stop = ax88179_stop, .flags = FLAG_ETHER | FLAG_FRAMING_AX, .rx_fixup = ax88179_rx_fixup,
@@ -1820,7 +1835,7 @@ static const struct driver_info at_umc2000_info = { .unbind = ax88179_unbind, .status = ax88179_status, .link_reset = ax88179_link_reset, - .reset = ax88179_reset, + .reset = ax88179_net_reset, .stop = ax88179_stop, .flags = FLAG_ETHER | FLAG_FRAMING_AX, .rx_fixup = ax88179_rx_fixup,
@@ -1833,7 +1848,7 @@ static const struct driver_info at_umc200_info = { .unbind = ax88179_unbind, .status = ax88179_status, .link_reset = ax88179_link_reset, - .reset = ax88179_reset, + .reset = ax88179_net_reset, .stop = ax88179_stop, .flags = FLAG_ETHER | FLAG_FRAMING_AX, .rx_fixup = ax88179_rx_fixup,
@@ -1846,7 +1861,7 @@ static const struct driver_info at_umc2000sp_info = { .unbind = ax88179_unbind, .status = ax88179_status, .link_reset = ax88179_link_reset, - .reset = ax88179_reset, + .reset = ax88179_net_reset, .stop = ax88179_stop, .flags = FLAG_ETHER | FLAG_FRAMING_AX, .rx_fixup = ax88179_rx_fixup,
drivers/remoteproc/mtk_scp.c +9 -1
@@ -132,7 +132,7 @@ static int scp_elf_read_ipi_buf_addr(struct mtk_scp *scp,static int scp_ipi_init (struct mtk_scp *scp,const struct firmware *fw) {int ret; -size_t offset; +size_t buf_sz, offset;/* read the ipi buf addr from FW itself first */ ret =scp_elf_read_ipi_buf_addr (scp, fw, &offset);
@@ -144,6 +144,14 @@ static int scp_ipi_init(struct mtk_scp *scp, const struct firmware *fw) }dev_info (scp->dev,"IPI buf addr %#010zx\n" , offset); +/* Make sure IPI buffer fits in the L2TCM range assigned to this core */ + buf_sz =sizeof (*scp->recv_buf) +sizeof (*scp->send_buf); + +if (scp->sram_size < buf_sz + offset) { +dev_err (scp->dev,"IPI buffer does not fit in SRAM.\n" ); +return -EOVERFLOW ; + } + scp->recv_buf = (struct mtk_share_obj __iomem *) (scp->sram_base + offset); scp->send_buf = (struct mtk_share_obj __iomem *)
drivers/tty/serial/kgdboc.c +29 -1
@@ -19,6 +19,7 @@#include <linux/console.h> #include <linux/vt_kern.h> #include <linux/input.h> +#include <linux/irq_work.h> #include <linux/module.h> #include <linux/platform_device.h> #include <linux/serial_core.h>
@@ -48,6 +49,25 @@ static struct kgdb_io kgdboc_earlycon_io_ops;static int (*earlycon_orig_exit)(struct console *con);#endif /* IS_BUILTIN(CONFIG_KGDB_SERIAL_CONSOLE) */ +/* +* When we leave the debug trap handler we need to reset the keyboard status +* (since the original keyboard state gets partially clobbered by kdb use of +* the keyboard). +* +* The path to deliver the reset is somewhat circuitous. +* +* To deliver the reset we register an input handler, reset the keyboard and +* then deregister the input handler. However, to get this done right, we do +* have to carefully manage the calling context because we can only register +* input handlers from task context. +* +* In particular we need to trigger the action from the debug trap handler with +* all its NMI and/or NMI-like oddities. To solve this the kgdboc trap exit code +* (the "post_exception" callback) uses irq_work_queue(), which is NMI-safe, to +* schedule a callback from a hardirq context. From there we have to defer the +* work again, this time using schedule_work(), to get a callback using the +* system workqueue, which runs in task context. +*/ #ifdef CONFIG_KDB_KEYBOARD static int kgdboc_reset_connect(struct input_handler *handler, struct input_dev *dev,
@@ -99,10 +119,17 @@ static void kgdboc_restore_input_helper(struct work_struct *dummy) static DECLARE_WORK(kgdboc_restore_input_work, kgdboc_restore_input_helper); +static void kgdboc_queue_restore_input_helper (struct irq_work *unused) +{ +schedule_work (&kgdboc_restore_input_work); +} + +static DEFINE_IRQ_WORK(kgdboc_restore_input_irq_work, kgdboc_queue_restore_input_helper); +static void kgdboc_restore_input (void ) {if (likely (system_state ==SYSTEM_RUNNING )) -schedule_work (&kgdboc_restore_input_work); +irq_work_queue (&kgdboc_restore_input_irq_work); }static int kgdboc_register_kbd (char **cptr)
@@ -133,6 +160,7 @@ static void kgdboc_unregister_kbd(void) i--; } } +irq_work_sync (&kgdboc_restore_input_irq_work);flush_work (&kgdboc_restore_input_work); }#else /* ! CONFIG_KDB_KEYBOARD */
drivers/usb/dwc3/gadget.c +1 -3
@@ -1718,7 +1718,6 @@ static int __dwc3_gadget_get_frame(struct dwc3 *dwc)*/ static int __dwc3_stop_active_transfer (struct dwc3_ep *dep,bool force,bool interrupt) { -struct dwc3 *dwc = dep->dwc;struct dwc3_gadget_ep_cmd_params params;u32 cmd;int ret;
@@ -1743,8 +1742,7 @@ static int __dwc3_stop_active_transfer(struct dwc3_ep *dep, bool force, bool int dep->resource_index =0 ;if (!interrupt) { - if (!DWC3_IP_IS(DWC3) || DWC3_VER_IS_PRIOR(DWC3, 310A)) -mdelay (1 ); +mdelay (1 ); dep->flags &= ~DWC3_EP_TRANSFER_STARTED ; }else if (!ret) { dep->flags |=DWC3_EP_END_TRANSFER_PENDING ;
drivers/usb/typec/tipd/core.c +35 -16
108 lines not on this page · raw message
drivers/usb/typec/tipd/tps6598x.h +11 -0
@@ -253,4 +253,15 @@#define TPS_PTCC_DEV 2#define TPS_PTCC_APP 3 +/* Version Register */ +#define TPS_VERSION_HW_VERSION_MASK GENMASK(31, 24) +#define TPS_VERSION_HW_VERSION (x) TPS_FIELD_GET(TPS_VERSION_HW_VERSION_MASK, (x)) +#define TPS_VERSION_HW_65981_2_6 0x00 +#define TPS_VERSION_HW_65987_8_DH 0xF7 +#define TPS_VERSION_HW_65987_8_DK 0xF9 + +/* Int Event Register length */ +#define TPS_65981_2_6_INTEVENT_LEN 8 +#define TPS_65987_8_INTEVENT_LEN 11 +#endif /* __TPS6598X_H__ */
drivers/usb/typec/ucsi/displayport.c +0 -4
@@ -275,8 +275,6 @@ static void ucsi_displayport_work(struct work_struct *work) struct ucsi_dp *dp = container_of(work, struct ucsi_dp, work);int ret; -mutex_lock (&dp->con->lock); - ret =typec_altmode_vdm (dp->alt, dp->header, dp->vdo_data, dp->vdo_size);if (ret)
@@ -285,8 +283,6 @@ static void ucsi_displayport_work(struct work_struct *work) dp->vdo_data =NULL ; dp->vdo_size =0 ; dp->header =0 ; - -mutex_unlock (&dp->con->lock); }void ucsi_displayport_remove_partner (struct typec_altmode *alt)
fs/erofs/internal.h +0 -7
@@ -84,13 +84,6 @@ struct erofs_dev_context {bool flatdev; }; -struct erofs_fs_context { -struct erofs_mount_opts opt; -struct erofs_dev_context *devs; -char *fsid; -char *domain_id; -}; -/* all filesystem-wide lz4 configurations */ struct erofs_sb_lz4_info {/* # of pages needed for EROFS lz4 rolling decompression */
fs/erofs/super.c +55 -69
254 lines not on this page · raw message
include/linux/blkdev.h +13 -0
@@ -233,6 +233,19 @@ static inline unsigned int disk_openers(struct gendisk *disk)return atomic_read (&disk->part0->bd_openers); } +/** +* disk_has_partscan - return %true if partition scanning is enabled on a disk +* @disk: disk to check +* +* Returns %true if partitions scanning is enabled for @disk, or %false if +* partition scanning is disabled either permanently or temporarily. +*/ +static inline bool disk_has_partscan (struct gendisk *disk) +{ +return !(disk->flags & (GENHD_FL_NO_PART |GENHD_FL_HIDDEN )) && + !test_bit (GD_SUPPRESS_PART_SCAN , &disk->state); +} +/* * The gendisk is refcounted by the part0 block_device, and the bd_device * therein is also used for device model presentation in sysfs.
include/net/bluetooth/hci.h +9 -0
@@ -1665,6 +1665,15 @@ struct hci_cp_le_set_event_mask {__u8 mask[8 ]; } __packed; +/* BLUETOOTH CORE SPECIFICATION Version 5.4 | Vol 4, Part E +* 7.8.2 LE Read Buffer Size command +* MAX_LE_MTU is 0xffff. +* 0 is also valid. It means that no dedicated LE Buffer exists. +* It should use the HCI_Read_Buffer_Size command and mtu is shared +* between BR/EDR and LE. +*/ +#define HCI_MIN_LE_MTU 0x001b +#define HCI_OP_LE_READ_BUFFER_SIZE 0x2002struct hci_rp_le_read_buffer_size {__u8 status;
include/net/bluetooth/hci_core.h +1 -0
@@ -706,6 +706,7 @@ struct hci_conn {__u16 handle;__u16 sync_handle;__u16 state; +__u16 mtu;__u8 mode;__u8 type;__u8 role;
net/bluetooth/hci_conn.c +49 -22
155 lines not on this page · raw message
net/bluetooth/hci_event.c +20 -11
@@ -954,6 +954,9 @@ static u8 hci_cc_read_buffer_size(struct hci_dev *hdev, void *data,BT_DBG ("%s acl mtu %d:%d sco mtu %d:%d" , hdev->name, hdev->acl_mtu, hdev->acl_pkts, hdev->sco_mtu, hdev->sco_pkts); +if (!hdev->acl_mtu || !hdev->acl_pkts) +return HCI_ERROR_INVALID_PARAMETERS ; +return rp->status; }
@@ -1263,6 +1266,9 @@ static u8 hci_cc_le_read_buffer_size(struct hci_dev *hdev, void *data,BT_DBG ("%s le mtu %d:%d" , hdev->name, hdev->le_mtu, hdev->le_pkts); +if (hdev->le_mtu && hdev->le_mtu <HCI_MIN_LE_MTU ) +return HCI_ERROR_INVALID_PARAMETERS ; +return rp->status; }
@@ -2342,8 +2348,8 @@ static void hci_cs_create_conn(struct hci_dev *hdev, __u8 status)if (!conn) { conn =hci_conn_add_unset (hdev,ACL_LINK , &cp->bdaddr,HCI_ROLE_MASTER ); -if (!conn) -bt_dev_err (hdev,"no memory for new connection" ); +if (IS_ERR (conn)) +bt_dev_err (hdev,"connection err: %ld" ,PTR_ERR (conn)); } }
@@ -3154,8 +3160,8 @@ static void hci_conn_complete_evt(struct hci_dev *hdev, void *data, BDADDR_BREDR)) { conn =hci_conn_add_unset (hdev, ev->link_type, &ev->bdaddr,HCI_ROLE_SLAVE ); -if (!conn) { -bt_dev_err (hdev,"no memory for new conn" ); +if (IS_ERR (conn)) { +bt_dev_err (hdev,"connection err: %ld" ,PTR_ERR (conn)); goto unlock; } } else {
@@ -3343,8 +3349,8 @@ static void hci_conn_request_evt(struct hci_dev *hdev, void *data,if (!conn) { conn =hci_conn_add_unset (hdev, ev->link_type, &ev->bdaddr,HCI_ROLE_SLAVE ); -if (!conn) { -bt_dev_err (hdev,"no memory for new connection" ); +if (IS_ERR (conn)) { +bt_dev_err (hdev,"connection err: %ld" ,PTR_ERR (conn)); goto unlock; } }
@@ -3821,6 +3827,9 @@ static u8 hci_cc_le_read_buffer_size_v2(struct hci_dev *hdev, void *data,BT_DBG ("%s acl mtu %d:%d iso mtu %d:%d" , hdev->name, hdev->acl_mtu, hdev->acl_pkts, hdev->iso_mtu, hdev->iso_pkts); +if (hdev->le_mtu && hdev->le_mtu <HCI_MIN_LE_MTU ) +return HCI_ERROR_INVALID_PARAMETERS ; +return rp->status; }
@@ -5912,8 +5921,8 @@ static void le_conn_complete_evt(struct hci_dev *hdev, u8 status, goto unlock; conn =hci_conn_add_unset (hdev,LE_LINK , bdaddr, role); -if (!conn) { -bt_dev_err (hdev,"no memory for new connection" ); +if (IS_ERR (conn)) { +bt_dev_err (hdev,"connection err: %ld" ,PTR_ERR (conn)); goto unlock; }
@@ -7042,7 +7051,7 @@ static void hci_le_cis_req_evt(struct hci_dev *hdev, void *data,if (!cis) { cis =hci_conn_add (hdev,ISO_LINK , &acl->dst,HCI_ROLE_SLAVE , cis_handle); -if (!cis) { +if (IS_ERR (cis)) {hci_le_reject_cis (hdev, ev->cis_handle); goto unlock; }
@@ -7151,7 +7160,7 @@ static void hci_le_big_sync_established_evt(struct hci_dev *hdev, void *data,if (!bis) { bis =hci_conn_add (hdev,ISO_LINK ,BDADDR_ANY ,HCI_ROLE_SLAVE , handle); -if (!bis) +if (IS_ERR (bis))continue ; }
@@ -7223,7 +7232,7 @@ static void hci_le_big_info_adv_report_evt(struct hci_dev *hdev, void *data, pa_sync =hci_conn_add_unset (hdev,ISO_LINK ,BDADDR_ANY ,HCI_ROLE_SLAVE ); -if (!pa_sync) +if (IS_ERR (pa_sync)) goto unlock; pa_sync->sync_handle =le16_to_cpu (ev->sync_handle);
net/bluetooth/iso.c +1 -1
@@ -1264,7 +1264,7 @@ static int iso_sock_sendmsg(struct socket *sock, struct msghdr *msg,return -ENOTCONN ; } - mtu =iso_pi (sk)->conn->hcon->hdev->iso_mtu; + mtu =iso_pi (sk)->conn->hcon->mtu;release_sock (sk);
net/bluetooth/l2cap_core.c +13 -25
@@ -3905,13 +3905,12 @@ static inline int l2cap_command_rej(struct l2cap_conn *conn,return 0 ; } -static struct l2cap_chan *l2cap_connect (struct l2cap_conn *conn, -struct l2cap_cmd_hdr *cmd, -u8 *data,u8 rsp_code,u8 amp_id) +static void l2cap_connect (struct l2cap_conn *conn,struct l2cap_cmd_hdr *cmd, +u8 *data,u8 rsp_code,u8 amp_id) {struct l2cap_conn_req *req = (struct l2cap_conn_req *) data;struct l2cap_conn_rsp rsp; -struct l2cap_chan *chan =NULL , *pchan; +struct l2cap_chan *chan =NULL , *pchan =NULL ;int result, status =L2CAP_CS_NO_INFO ;u16 dcid =0 , scid =__le16_to_cpu (req->scid);
@@ -3924,7 +3923,7 @@ static struct l2cap_chan *l2cap_connect(struct l2cap_conn *conn, &conn->hcon->dst, ACL_LINK);if (!pchan) { result =L2CAP_CR_BAD_PSM ; - goto sendresp; + goto response; }mutex_lock (&conn->chan_lock);
@@ -4011,17 +4010,15 @@ static struct l2cap_chan *l2cap_connect(struct l2cap_conn *conn, } response: -l2cap_chan_unlock (pchan); -mutex_unlock (&conn->chan_lock); -l2cap_chan_put (pchan); - -sendresp: rsp.scid =cpu_to_le16 (scid); rsp.dcid =cpu_to_le16 (dcid); rsp.result =cpu_to_le16 (result); rsp.status =cpu_to_le16 (status);l2cap_send_cmd (conn, cmd->ident, rsp_code,sizeof (rsp), &rsp); +if (!pchan) +return ; +if (result ==L2CAP_CR_PEND && status ==L2CAP_CS_NO_INFO ) {struct l2cap_info_req info; info.type =cpu_to_le16 (L2CAP_IT_FEAT_MASK );
@@ -4044,7 +4041,9 @@ static struct l2cap_chan *l2cap_connect(struct l2cap_conn *conn, chan->num_conf_req++; } -return chan; +l2cap_chan_unlock (pchan); +mutex_unlock (&conn->chan_lock); +l2cap_chan_put (pchan); } static int l2cap_connect_req(struct l2cap_conn *conn,
@@ -6242,7 +6241,7 @@ static int l2cap_finish_move(struct l2cap_chan *chan)BT_DBG ("chan %p" , chan); chan->rx_state =L2CAP_RX_STATE_RECV ; - chan->conn->mtu = chan->conn->hcon->hdev->acl_mtu; + chan->conn->mtu = chan->conn->hcon->mtu;return l2cap_resegment (chan); }
@@ -6309,7 +6308,7 @@ static int l2cap_rx_state_wait_f(struct l2cap_chan *chan,*/ chan->next_tx_seq = control->reqseq; chan->unacked_frames =0 ; - chan->conn->mtu = chan->conn->hcon->hdev->acl_mtu; + chan->conn->mtu = chan->conn->hcon->mtu; err =l2cap_resegment (chan);
@@ -6849,18 +6848,7 @@ static struct l2cap_conn *l2cap_conn_add(struct hci_conn *hcon)BT_DBG ("hcon %p conn %p hchan %p" , hcon, conn, hchan); -switch (hcon->type) { -case LE_LINK : -if (hcon->hdev->le_mtu) { - conn->mtu = hcon->hdev->le_mtu; -break ; - } - fallthrough; -default : - conn->mtu = hcon->hdev->acl_mtu; -break ; - } - + conn->mtu = hcon->mtu; conn->feat_mask =0 ; conn->local_fixed_chan =L2CAP_FC_SIG_BREDR |L2CAP_FC_CONNLESS ;
net/bluetooth/sco.c +3 -3
@@ -126,7 +126,6 @@ static void sco_sock_clear_timer(struct sock *sk)/* ---- SCO connections ---- */ static struct sco_conn *sco_conn_add (struct hci_conn *hcon) { -struct hci_dev *hdev = hcon->hdev;struct sco_conn *conn = hcon->sco_data;if (conn) {
@@ -144,9 +143,10 @@ static struct sco_conn *sco_conn_add(struct hci_conn *hcon) hcon->sco_data = conn; conn->hcon = hcon; + conn->mtu = hcon->mtu; -if (hdev->sco_mtu >0 ) - conn->mtu = hdev->sco_mtu; +if (hcon->mtu >0 ) + conn->mtu = hcon->mtu;else conn->mtu =60 ;
security/keys/trusted-keys/trusted_tpm2.c +19 -6
@@ -38,6 +38,7 @@ static int tpm2_key_encode(struct trusted_key_payload *payload,u8 *end_work = scratch +SCRATCH_SIZE ;u8 *priv, *pub;u16 priv_len, pub_len; +int ret; priv_len =get_unaligned_be16 (src) +2 ; priv = src;
@@ -57,8 +58,10 @@ static int tpm2_key_encode(struct trusted_key_payload *payload,unsigned char bool[3 ], *w = bool;/* tag 0 is emptyAuth */ w =asn1_encode_boolean (w, w +sizeof (bool ), true); -if (WARN (IS_ERR (w),"BUG: Boolean failed to encode" )) -return PTR_ERR (w); +if (WARN (IS_ERR (w),"BUG: Boolean failed to encode" )) { + ret =PTR_ERR (w); + goto err; + } work =asn1_encode_tag (work, end_work,0 , bool, w - bool); }
@@ -69,8 +72,10 @@ static int tpm2_key_encode(struct trusted_key_payload *payload,* trigger, so if it does there's something nefarious going on */ if (WARN (work - scratch + pub_len + priv_len +14 >SCRATCH_SIZE , -"BUG: scratch buffer is too small" )) -return -EINVAL ; +"BUG: scratch buffer is too small" )) { + ret = -EINVAL ; + goto err; + } work =asn1_encode_integer (work, end_work, options->keyhandle); work =asn1_encode_octet_string (work, end_work, pub, pub_len);
@@ -79,10 +84,18 @@ static int tpm2_key_encode(struct trusted_key_payload *payload, work1 = payload->blob; work1 =asn1_encode_sequence (work1, work1 +sizeof (payload->blob), scratch, work - scratch); -if (WARN (IS_ERR (work1),"BUG: ASN.1 encoder failed" )) -return PTR_ERR (work1); +if (IS_ERR (work1)) { + ret =PTR_ERR (work1); +pr_err ("BUG: ASN.1 encoder failed with %d\n" , ret); + goto err; + } +kfree (scratch);return work1 - payload->blob; + +err: +kfree (scratch); +return ret; }struct tpm2_key_context {
Greg Kroah-Hartman
maintainerI'm announcing the release of the 6.8.11 kernel.
All users of the 6.8 kernel series must upgrade.
The updated 6.8.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.8.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/ABI/stable/sysfs-block | 10 + Documentation/admin-guide/hw-vuln/core-scheduling.rst | 4 Documentation/admin-guide/mm/damon/usage.rst | 2 Documentation/sphinx/kernel_include.py | 1 Makefile | 2 block/genhd.c | 15 +- block/partitions/core.c | 5 drivers/android/binder.c | 2 drivers/android/binder_internal.h | 2 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c | 7 - drivers/net/ethernet/intel/ice/ice_virtchnl.c | 22 +-- drivers/net/ethernet/intel/ice/ice_virtchnl_fdir.c | 3 drivers/net/ethernet/micrel/ks8851_common.c | 18 -- drivers/net/usb/ax88179_178a.c | 37 +++-- drivers/remoteproc/mtk_scp.c | 10 + drivers/tty/serial/kgdboc.c | 30 ++++ drivers/usb/dwc3/gadget.c | 4 drivers/usb/typec/tipd/core.c | 51 +++++-- drivers/usb/typec/tipd/tps6598x.h | 11 + drivers/usb/typec/ucsi/displayport.c | 4 fs/erofs/internal.h | 7 - fs/erofs/super.c | 124 +++++++----------- include/linux/blkdev.h | 13 + include/net/bluetooth/hci.h | 9 + include/net/bluetooth/hci_core.h | 1 net/bluetooth/hci_conn.c | 71 +++++++--- net/bluetooth/hci_event.c | 31 ++-- net/bluetooth/iso.c | 2 net/bluetooth/l2cap_core.c | 38 +---- net/bluetooth/sco.c | 6 security/keys/trusted-keys/trusted_tpm2.c | 25 ++- 31 files changed, 338 insertions(+), 229 deletions(-)
Akira Yokosawa (1):
docs: kernel_include.py: Cope with docutils 0.21
AngeloGioacchino Del Regno (1):
remoteproc: mediatek: Make sure IPI buffer fits in L2TCM
Baokun Li (1):
erofs: get rid of erofs_fs_context
Carlos Llamas (1):
binder: fix max_thread type inconsistency
Christian Brauner (1):
erofs: reliably distinguish block based and fscache mode
Christoph Hellwig (2):
block: add a disk_has_partscan helper
block: add a partscan sysfs attribute for disks
Daniel Thompson (1):
serial: kgdboc: Fix NMI-safety problems from keyboard reset code
Greg Kroah-Hartman (1):
Linux 6.8.11
Heikki Krogerus (1):
usb: typec: ucsi: displayport: Fix potential deadlock
Jacob Keller (2):
ice: pass VSI pointer into ice_vc_isvalid_q_id
ice: remove unnecessary duplicate checks for VF VSI ID
Jarkko Sakkinen (2):
KEYS: trusted: Fix memory leak in tpm2_key_encode()
KEYS: trusted: Do not use WARN when encode fails
Javier Carrasco (2):
usb: typec: tipd: fix event checking for tps25750
usb: typec: tipd: fix event checking for tps6598x
Jose Fernandez (1):
drm/amd/display: Fix division by zero in setup_dsc_config
Jose Ignacio Tornos Martinez (1):
net: usb: ax88179_178a: fix link status when link is set to down/up
Prashanth K (1):
usb: dwc3: Wait unconditionally after issuing EndXfer command
Ronald Wahl (1):
net: ks8851: Fix another TX stall caused by wrong ISR flag handling
SeongJae Park (1):
Docs/admin-guide/mm/damon/usage: fix wrong example of DAMOS filter matching sysfs file
Sungwoo Kim (2):
Bluetooth: L2CAP: Fix slab-use-after-free in l2cap_connect()
Bluetooth: L2CAP: Fix div-by-zero in l2cap_le_flowctl_init()
Thomas Weißschuh (1):
admin-guide/hw-vuln/core-scheduling: fix return type of PR_SCHED_CORE_GET