Linux 6.1.102
Greg Kroah-Hartman
maintainerI'm announcing the release of the 6.1.102 kernel.
All users of the 6.1 kernel series must upgrade.
The updated 6.1.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.1.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 - arch/arm64/boot/dts/qcom/ipq6018.dtsi | 1 arch/arm64/boot/dts/qcom/msm8996.dtsi | 1 arch/arm64/boot/dts/qcom/sdm630.dtsi | 1 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 2 - drivers/net/tap.c | 5 +++ drivers/net/tun.c | 3 ++ fs/btrfs/transaction.c | 5 ++- fs/f2fs/super.c | 15 +++++++++- fs/jfs/xattr.c | 23 +++++++++++++--- fs/locks.c | 9 ++---- fs/ntfs3/fslog.c | 6 +++- fs/ocfs2/dir.c | 46 ++++++++++++++++++++------------- sound/core/pcm_dmaengine.c | 6 +++- sound/pci/hda/patch_realtek.c | 2 + 15 files changed, 94 insertions(+), 33 deletions(-)
Chao Yu (1):
f2fs: avoid dead loop in f2fs_issue_checkpoint()
Dan Carpenter (1):
drm/amdgpu: Fix signedness bug in sdma_v4_0_process_trap_irq()
Dongli Zhang (1):
tun: add missing verification for short frame
Edson Juliano Drosdeck (1):
ALSA: hda/realtek: Enable headset mic on Positivo SU C1400
Filipe Manana (1):
btrfs: do not BUG_ON on failure to get dir index for new snapshot
Greg Kroah-Hartman (1):
Linux 6.1.102
Jann Horn (1):
filelock: Fix fcntl/close race recovery compat path
Krishna Kurapati (3):
arm64: dts: qcom: msm8996: Disable SS instance in Parkmode for USB
arm64: dts: qcom: ipq6018: Disable SS instance in Parkmode for USB
arm64: dts: qcom: sdm630: Disable SS instance in Parkmode for USB
Seunghun Han (1):
ALSA: hda/realtek: Fix the speaker output on Samsung Galaxy Book Pro 360
Shengjiu Wang (1):
ALSA: pcm_dmaengine: Don't synchronize DMA channel when DMA is paused
Si-Wei Liu (1):
tap: add missing verification for short frame
lei lu (3):
ocfs2: add bounds checking to ocfs2_check_dir_entry()
jfs: don't walk off the end of ealist fs/ntfs3: Validate ff offset
Greg Kroah-Hartman
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 6 PATCHLEVEL = 1 -SUBLEVEL = 101 +SUBLEVEL = 102 EXTRAVERSION = NAME = Curry Ramen
arch/arm64/boot/dts/qcom/ipq6018.dtsi +1 -0
@@ -760,6 +760,7 @@ dwc_0: usb@8a00000 { clocks = <&xo>; clock-names = "ref"; tx-fifo-resize; + snps,parkmode-disable-ss-quirk; snps,is-utmi-l1-suspend; snps,hird-threshold = /bits/ 8 <0x0>; snps,dis_u2_susphy_quirk;
arch/arm64/boot/dts/qcom/msm8996.dtsi +1 -0
@@ -3004,6 +3004,7 @@ usb3_dwc3: usb@6a00000 { snps,dis_u2_susphy_quirk; snps,dis_enblslpm_quirk; snps,is-utmi-l1-suspend; + snps,parkmode-disable-ss-quirk; tx-fifo-resize; }; };
arch/arm64/boot/dts/qcom/sdm630.dtsi +1 -0
@@ -1243,6 +1243,7 @@ usb3_dwc3: usb@a800000 { interrupts = <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>; snps,dis_u2_susphy_quirk; snps,dis_enblslpm_quirk; + snps,parkmode-disable-ss-quirk; /* * SDM630 technically supports USB3 but I
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +1 -1
@@ -2045,7 +2045,7 @@ static int sdma_v4_0_process_trap_irq(struct amdgpu_device *adev,struct amdgpu_irq_src *source, struct amdgpu_iv_entry *entry) { - uint32_t instance; + int instance;DRM_DEBUG ("IH: SDMA trap\n" ); instance =sdma_v4_0_irq_id_to_seq (entry->client_id);
drivers/net/tap.c +5 -0
@@ -1156,6 +1156,11 @@ static int tap_get_user_xdp(struct tap_queue *q, struct xdp_buff *xdp)struct sk_buff *skb;int err, depth; +if (unlikely (xdp->data_end - xdp->data <ETH_HLEN )) { + err = -EINVAL ; + goto err; + } +if (q->flags &IFF_VNET_HDR ) vnet_hdr_len =READ_ONCE (q->vnet_hdr_sz);
drivers/net/tun.c +3 -0
@@ -2448,6 +2448,9 @@ static int tun_xdp_one(struct tun_struct *tun,bool skb_xdp = false;struct page *page; +if (unlikely (datasize <ETH_HLEN )) +return -EINVAL ; + xdp_prog =rcu_dereference (tun->xdp_prog);if (xdp_prog) {if (gso->gso_type) {
fs/btrfs/transaction.c +4 -1
@@ -1701,7 +1701,10 @@ static noinline int create_pending_snapshot(struct btrfs_trans_handle *trans,* insert the directory item */ ret =btrfs_set_inode_index (BTRFS_I (parent_inode), &index); -BUG_ON (ret);/* -ENOMEM */ +if (ret) { +btrfs_abort_transaction (trans, ret); + goto fail; + }/* check if there is a file/dir which has the same name. */ dir_item = btrfs_lookup_dir_item(NULL, parent_root, path,
fs/f2fs/super.c +13 -2
@@ -2824,15 +2824,26 @@ static int f2fs_quota_on(struct super_block *sb, int type, int format_id,return -EBUSY ; } +if (path->dentry->d_sb != sb) +return -EXDEV ; + err =f2fs_quota_sync (sb, type);if (err)return err; - err =dquot_quota_on (sb, type, format_id, path); + inode =d_inode (path->dentry); + + err =filemap_fdatawrite (inode->i_mapping);if (err)return err; - inode =d_inode (path->dentry); + err =filemap_fdatawait (inode->i_mapping); +if (err) +return err; + + err =dquot_quota_on (sb, type, format_id, path); +if (err) +return err;inode_lock (inode);F2FS_I (inode)->i_flags |=F2FS_NOATIME_FL |F2FS_IMMUTABLE_FL ;
fs/jfs/xattr.c +19 -4
@@ -797,7 +797,7 @@ ssize_t __jfs_getxattr(struct inode *inode, const char *name, void *data, size_t buf_size) {struct jfs_ea_list *ealist; -struct jfs_ea *ea; +struct jfs_ea *ea, *ealist_end;struct ea_buffer ea_buf;int xattr_size;ssize_t size;
@@ -817,9 +817,16 @@ ssize_t __jfs_getxattr(struct inode *inode, const char *name, void *data, goto not_found; ealist = (struct jfs_ea_list *) ea_buf.xattr; + ealist_end =END_EALIST (ealist);/* Find the named attribute */ -for (ea =FIRST_EA (ealist); ea <END_EALIST (ealist); ea =NEXT_EA (ea)) +for (ea =FIRST_EA (ealist); ea < ealist_end; ea =NEXT_EA (ea)) { +if (unlikely (ea +1 > ealist_end) || +unlikely (NEXT_EA (ea) > ealist_end)) { + size = -EUCLEAN ; + goto release; + } +if ((namelen == ea->namelen) &&memcmp (name, ea->name, namelen) ==0 ) {/* Found it */
@@ -834,6 +841,7 @@ ssize_t __jfs_getxattr(struct inode *inode, const char *name, void *data,memcpy (data, value, size); goto release; } + } not_found: size = -ENODATA ; release:
@@ -861,7 +869,7 @@ ssize_t jfs_listxattr(struct dentry * dentry, char *data, size_t buf_size)ssize_t size =0 ;int xattr_size;struct jfs_ea_list *ealist; -struct jfs_ea *ea; +struct jfs_ea *ea, *ealist_end;struct ea_buffer ea_buf;down_read (&JFS_IP (inode)->xattr_sem);
@@ -876,9 +884,16 @@ ssize_t jfs_listxattr(struct dentry * dentry, char *data, size_t buf_size) goto release; ealist = (struct jfs_ea_list *) ea_buf.xattr; + ealist_end =END_EALIST (ealist);/* compute required size of list */ -for (ea =FIRST_EA (ealist); ea <END_EALIST (ealist); ea =NEXT_EA (ea)) { +for (ea =FIRST_EA (ealist); ea < ealist_end; ea =NEXT_EA (ea)) { +if (unlikely (ea +1 > ealist_end) || +unlikely (NEXT_EA (ea) > ealist_end)) { + size = -EUCLEAN ; + goto release; + } +if (can_list (ea)) size +=name_size (ea) +1 ; }
fs/locks.c +4 -5
@@ -2516,8 +2516,9 @@ int fcntl_setlk64(unsigned int fd, struct file *filp, unsigned int cmd, error =do_lock_file_wait (filp, cmd, file_lock);/* -* Attempt to detect a close/fcntl race and recover by releasing the -* lock that was just acquired. There is no need to do that when we're +* Detect close/fcntl races and recover by zapping all POSIX locks +* associated with this file and our files_struct, just like on +* filp_flush(). There is no need to do that when we're * unlocking though, or for OFD locks. */ if (!error && file_lock->fl_type != F_UNLCK &&
@@ -2532,9 +2533,7 @@ int fcntl_setlk64(unsigned int fd, struct file *filp, unsigned int cmd, f =files_lookup_fd_locked (files, fd);spin_unlock (&files->file_lock);if (f != filp) { - file_lock->fl_type =F_UNLCK ; - error =do_lock_file_wait (filp, cmd, file_lock); -WARN_ON_ONCE (error); +locks_remove_posix (filp, files); error = -EBADF ; } }
fs/ntfs3/fslog.c +5 -1
@@ -724,7 +724,8 @@ static bool check_rstbl(const struct RESTART_TABLE *rt, size_t bytes)if (!rsize || rsize > bytes || rsize +sizeof (struct RESTART_TABLE ) > bytes || bytes < ts || -le16_to_cpu (rt->total) > ne || ff > ts || lf > ts || +le16_to_cpu (rt->total) > ne || + ff > ts -sizeof (__le32) || lf > ts -sizeof (__le32) || (ff && ff <sizeof (struct RESTART_TABLE )) || (lf && lf <sizeof (struct RESTART_TABLE ))) {return false;
@@ -754,6 +755,9 @@ static bool check_rstbl(const struct RESTART_TABLE *rt, size_t bytes)return false; off =le32_to_cpu (*(__le32 *)Add2Ptr (rt, off)); + +if (off > ts -sizeof (__le32)) +return false; }return true;
fs/ocfs2/dir.c +29 -17
123 lines not on this page · raw message
sound/core/pcm_dmaengine.c +5 -1
@@ -352,8 +352,12 @@ EXPORT_SYMBOL_GPL(snd_dmaengine_pcm_open_request_chan);int snd_dmaengine_pcm_sync_stop (struct snd_pcm_substream *substream) {struct dmaengine_pcm_runtime_data *prtd =substream_to_prtd (substream); +struct dma_tx_state state; +enum dma_status status; -dmaengine_synchronize (prtd->dma_chan); + status =dmaengine_tx_status (prtd->dma_chan, prtd->cookie, &state); +if (status !=DMA_PAUSED ) +dmaengine_synchronize (prtd->dma_chan);return 0 ; }
sound/pci/hda/patch_realtek.c +2 -0
@@ -9928,6 +9928,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {SND_PCI_QUIRK (0x10cf ,0x1845 ,"Lifebook U904" ,ALC269_FIXUP_LIFEBOOK_EXTMIC ),SND_PCI_QUIRK (0x10ec ,0x10f2 ,"Intel Reference board" ,ALC700_FIXUP_INTEL_REFERENCE ),SND_PCI_QUIRK (0x10ec ,0x118c ,"Medion EE4254 MD62100" ,ALC256_FIXUP_MEDION_HEADSET_NO_PRESENCE ), +SND_PCI_QUIRK (0x10ec ,0x119e ,"Positivo SU C1400" ,ALC269_FIXUP_ASPIRE_HEADSET_MIC ),SND_PCI_QUIRK (0x10ec ,0x11bc ,"VAIO VJFE-IL" ,ALC269_FIXUP_LIMIT_INT_MIC_BOOST ),SND_PCI_QUIRK (0x10ec ,0x1230 ,"Intel Reference board" ,ALC295_FIXUP_CHROME_BOOK ), SND_PCI_QUIRK(0x10ec, 0x124c, "Intel Reference board", ALC295_FIXUP_CHROME_BOOK),
@@ -9941,6 +9942,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {SND_PCI_QUIRK (0x144d ,0xc189 ,"Samsung Galaxy Flex Book (NT950QCG-X716)" ,ALC298_FIXUP_SAMSUNG_AMP ),SND_PCI_QUIRK (0x144d ,0xc18a ,"Samsung Galaxy Book Ion (NP930XCJ-K01US)" ,ALC298_FIXUP_SAMSUNG_AMP ),SND_PCI_QUIRK (0x144d ,0xc1a3 ,"Samsung Galaxy Book Pro (NP935XDB-KC1SE)" ,ALC298_FIXUP_SAMSUNG_AMP ), +SND_PCI_QUIRK (0x144d ,0xc1a4 ,"Samsung Galaxy Book Pro 360 (NT935QBD)" ,ALC298_FIXUP_SAMSUNG_AMP ),SND_PCI_QUIRK (0x144d ,0xc1a6 ,"Samsung Galaxy Book Pro 360 (NP930QBD)" ,ALC298_FIXUP_SAMSUNG_AMP ),SND_PCI_QUIRK (0x144d ,0xc740 ,"Samsung Ativ book 8 (NP870Z5G)" ,ALC269_FIXUP_ATIV_BOOK_8 ), SND_PCI_QUIRK(0x144d, 0xc812, "Samsung Notebook Pen S (NT950SBE-X58)", ALC298_FIXUP_SAMSUNG_AMP),