Message ID | Y9+Yv1CQKNP0Bwqq@kroah.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1748557wrn; Sun, 5 Feb 2023 04:11:21 -0800 (PST) X-Google-Smtp-Source: AK7set9vM4E/e1qWg6xACOllIGjEesFU0Bxc2rNme3b+aij+02a2o82t5F4cv04gJN/bL9BAVESd X-Received: by 2002:a62:fb09:0:b0:596:78f:1531 with SMTP id x9-20020a62fb09000000b00596078f1531mr6413325pfm.3.1675599081214; Sun, 05 Feb 2023 04:11:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675599081; cv=none; d=google.com; s=arc-20160816; b=VtB+Fen+G0a0Cl93QwiAoNWrCQyZYvvUSJvoK4GhGcTrxO9jgIUEgSmX6cC4T+/pEy YrSUP0XmzagvtUxPKt93SGi16hM+wvSVxVlUgz4gv+n7nqpHYBlo2MoRItXCndihSyPj eVQA8C2XoYjvMLXkyIr+epjTfDDbvnZUeV9J+FQxrwmpftZpv4aoZ+hYiCCm6B219XMk oqSmoGB2DewjW+p2JeV+1ZkLvsZY+lmdyVJCngoHMy4G9IgAN4NMKvBbvC+XjRgNIHej rASPiZVGOtZfNLQcoub8TIIo9Jv6t8IxfBWRyTAjXzXOMQzJD6X14IINFTP1ECu/Hx97 oRRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=q6E5k3iXEonrPbA2JJ9h52gcRc0L5rKgm/Piici3Ajk=; b=cyVAMRwRzqFr7HXD0kWxh6PCe6Y/QOKQqdboZ6/e5iZEoY+zgRxRDoy6Gl0PCl4vzy mHVyvEdBngA2r0kuCa2Tyo3P5J15XVBZ6T77PkjzHL/QXhody6i26Xjd4qo6bZKj+nfV mmzQQ/0dHsE3sCYDoJi1OMO/oOD7/oA/BiT8bZv0t7HiFPwt9FO/D4GbCVVdd36eH1Wr uj3AkfJTSZojTFvL86MHsOzpqzORI4qV8FnWfxEvMD6UaJa5gUT8zXjmeUf87jCECjt3 KdaSTrweURIKAQ+X9TvFJ0shTj43XLF6c/tA2hfFYYbAaFv/tl6UmYa5AMdbvRhSi1Wv Z9cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=q8VnEvYc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 186-20020a6218c3000000b0057509d0411esi8147807pfy.192.2023.02.05.04.11.06; Sun, 05 Feb 2023 04:11:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=q8VnEvYc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229525AbjBELxn (ORCPT <rfc822;nicolai.engesland@gmail.com> + 99 others); Sun, 5 Feb 2023 06:53:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229490AbjBELxm (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 5 Feb 2023 06:53:42 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F6722128A; Sun, 5 Feb 2023 03:53:41 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E3A12B80B7C; Sun, 5 Feb 2023 11:53:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B07BC433EF; Sun, 5 Feb 2023 11:53:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1675598018; bh=8uKoyJmBWvFr8Ye1clEqrh8+DypoYZR3LS7emY5Aerg=; h=Date:From:To:Cc:Subject:From; b=q8VnEvYcYzz2IqRolwBhWKp76T3uAG7yZm4J7rkZVQfv1srvAvq4Okw/SvFADBkt5 az8U2CV4jZVitcNK/MRUpXGm8KrhWEXksf+dSQVsxq56+h8rgr3k8BxTVfnqwrRL/g 5V1EXtmschuNKuIqSTxrowiIcochxf/lKCtFO/E0= Date: Sun, 5 Feb 2023 12:53:35 +0100 From: Greg KH <gregkh@linuxfoundation.org> To: Linus Torvalds <torvalds@linux-foundation.org> Cc: Jiri Slaby <jslaby@suse.cz>, Stephen Rothwell <sfr@canb.auug.org.au>, Andrew Morton <akpm@linux-foundation.org>, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: [GIT PULL] TTY/Serial driver fixes for 6.2-rc7 Message-ID: <Y9+Yv1CQKNP0Bwqq@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756992982045892454?= X-GMAIL-MSGID: =?utf-8?q?1756992982045892454?= |
Series |
[GIT,PULL] TTY/Serial driver fixes for 6.2-rc7
|
|
Pull-request
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tags/tty-6.2-rc7Message
Greg KH
Feb. 5, 2023, 11:53 a.m. UTC
The following changes since commit 2241ab53cbb5cdb08a6b2d4688feb13971058f65:
Linux 6.2-rc5 (2023-01-21 16:27:01 -0800)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tags/tty-6.2-rc7
for you to fetch changes up to 226fae124b2dac217ea5436060d623ff3385bc34:
vc_screen: move load of struct vc_data pointer in vcs_read() to avoid UAF (2023-01-31 15:51:52 +0100)
----------------------------------------------------------------
TTY/Serial driver fixes for 6.2-rc7
Here are some small serial and vt fixes for 6.2-rc7. These include:
- 8250 driver fixes relating to dma issues
- stm32 serial driver fix for threaded irqs
- vc_screen bugfix for reported problems.
All have been in linux-next for a while with no reported problems.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----------------------------------------------------------------
George Kennedy (1):
vc_screen: move load of struct vc_data pointer in vcs_read() to avoid UAF
Ilpo Järvinen (2):
serial: 8250_dma: Fix DMA Rx completion race
serial: 8250_dma: Fix DMA Rx rearm race
Marek Vasut (1):
serial: stm32: Merge hard IRQ and threaded IRQ handling into single IRQ handler
drivers/tty/serial/8250/8250_dma.c | 21 +++++++++++++++++----
drivers/tty/serial/stm32-usart.c | 33 +++++----------------------------
drivers/tty/vt/vc_screen.c | 9 +++++----
3 files changed, 27 insertions(+), 36 deletions(-)
Comments
On Sun, Feb 5, 2023 at 3:53 AM Greg KH <gregkh@linuxfoundation.org> wrote: > > George Kennedy (1): > vc_screen: move load of struct vc_data pointer in vcs_read() to avoid UAF Hmm. I think the "goto unlock_out" should be a "break". A partial read should return the partial success, not an error. That situation didn't exist when the check was outside the loop, but does now. Now, I don't think this matters for any sane situation, but since I looked at this patch I thought I'd mention it. Linus
The pull request you sent on Sun, 5 Feb 2023 12:53:35 +0100:
> git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tags/tty-6.2-rc7
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/dc0ce181af6d1989192b973eae5f916cb6ce47f0
Thank you!
On Sun, Feb 05, 2023 at 12:17:05PM -0800, Linus Torvalds wrote: > On Sun, Feb 5, 2023 at 3:53 AM Greg KH <gregkh@linuxfoundation.org> wrote: > > > > George Kennedy (1): > > vc_screen: move load of struct vc_data pointer in vcs_read() to avoid UAF > > Hmm. > > I think the "goto unlock_out" should be a "break". A partial read > should return the partial success, not an error. > > That situation didn't exist when the check was outside the loop, but does now. > > Now, I don't think this matters for any sane situation, but since I > looked at this patch I thought I'd mention it. Fair enough, George, can you send a follow-on patch to fix this up? thanks, greg k-h
On 2/6/2023 2:38 AM, Greg KH wrote: > On Sun, Feb 05, 2023 at 12:17:05PM -0800, Linus Torvalds wrote: >> On Sun, Feb 5, 2023 at 3:53 AM Greg KH <gregkh@linuxfoundation.org> wrote: >>> George Kennedy (1): >>> vc_screen: move load of struct vc_data pointer in vcs_read() to avoid UAF >> Hmm. >> >> I think the "goto unlock_out" should be a "break". A partial read >> should return the partial success, not an error. >> >> That situation didn't exist when the check was outside the loop, but does now. >> >> Now, I don't think this matters for any sane situation, but since I >> looked at this patch I thought I'd mention it. > Fair enough, George, can you send a follow-on patch to fix this up? Hi Greg, Will send a follow-on patch. Thanks, George > > thanks, > > greg k-h