Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp815922ybh; Wed, 18 Mar 2020 09:37:36 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt/0JFrYRJb+jKgzQ+B/wywcgmsT7AO+JW2rDmNyYnVPBtYbbbPCjZzcsHj0BtAlRZHqfhb X-Received: by 2002:aca:c695:: with SMTP id w143mr3983513oif.98.1584549456565; Wed, 18 Mar 2020 09:37:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584549456; cv=none; d=google.com; s=arc-20160816; b=IFhTPAMwQJb9Tmpv84e1/JHrjYFa2j2mWaVUCmaR3XJ2kF0LAJ5+fS4zO472inJKbY Hf4u3+XVdpEQHvIGTB8VC98+hOc3bkchx2lL5DPWp8S/d7EN57psBl0lu2J8uJ4QlbhI 4reewJZ8LZ/B53iPtOkDa13D3JL7vuQpOBxYrKHspmP0zdtUrqiHSNTMQvGf8pxAxG+E GynEA3n/vQS3GrGcXtAk/1drzSLyP4P2DI8rg6Hj/LY9MZ+ly2Qy/G160SV2XF+RKjxn Vf/iTYV93q1fsHGgspuw5d+FyPOwzdtoiQoXqcHla4bu4cS8inHe3g+rwAhEEfKmBAbb iBSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=j3HxC1FXJL9/y++yU/aUY4tH8Eg5B/kOeyIrXvr09FI=; b=D7bxTLLI0sFdZjw+x9xPowF913in4pJM98WFEZloHidLywmMgra0+lkYQJOL3747nR g6n7j24DRJi4dlPROR4cBDWOZhjs3NttaZgsmNKJlwutzUx4SGFMvWPhZpCKlQuEGtGS NWXA/obWXQqOCrtuqapzUmP2gKGYjZxoCCzVfHolMmY6T7CMumCM1/1YBUfJFoB0Y1nn N3ZLOE6e7EN1XXoTC5rNZs5ioXtvfnLhwdMPLGAXwzKypisnezxMYU+/hcMKuC6OeJ4T rTL+1+5MkipczlqfEI1J+2WK0599pcl36XqhswCzEYB8F854wQ+PXX/KFqdONXfZSVKp d5zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jCpHoAF5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a21si4431772otk.277.2020.03.18.09.37.22; Wed, 18 Mar 2020 09:37:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jCpHoAF5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726975AbgCRQg7 (ORCPT + 99 others); Wed, 18 Mar 2020 12:36:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:47204 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726780AbgCRQg6 (ORCPT ); Wed, 18 Mar 2020 12:36:58 -0400 Received: from sol.localdomain (c-107-3-166-239.hsd1.ca.comcast.net [107.3.166.239]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C3CAF20752; Wed, 18 Mar 2020 16:36:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584549418; bh=QMhaJQsz8eetbzGX3XHrXvTePocblqmsCm1xGb7Mihg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jCpHoAF5EAJPk6vOJY+2nsOLtZmF/7nEj63BXFIcX4mBz4WO4rMUmN9wdeTuh8XkH RasmYFDbr9PyWGbcCPCzDPmyyLSQBuxVn6x+fl8+Uhg7oKIMKuPQWIK8yt/vOFTPp9 Eo1pOhr2CnyyLEi5XVf2VsdAF/GjBOwz/R0Xyk50= Date: Wed, 18 Mar 2020 09:36:56 -0700 From: Eric Biggers To: Greg Kroah-Hartman Cc: Jiri Slaby , linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, Al Viro Subject: Re: [PATCH v2 1/2] tty: fix compat TIOCGSERIAL leaking uninitialized memory Message-ID: <20200318163656.GA2334@sol.localdomain> References: <20200224181532.GA109047@gmail.com> <20200224182044.234553-1-ebiggers@kernel.org> <20200224182044.234553-2-ebiggers@kernel.org> <6294851f-50e5-eaaa-2182-1ad6ae7234b1@suse.com> <20200302212425.GB78660@gmail.com> <20200318120000.GA2528302@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200318120000.GA2528302@kroah.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 18, 2020 at 01:00:00PM +0100, Greg Kroah-Hartman wrote: > On Mon, Mar 02, 2020 at 01:24:25PM -0800, Eric Biggers wrote: > > On Tue, Feb 25, 2020 at 08:30:35AM +0100, Jiri Slaby wrote: > > > On 24. 02. 20, 19:20, Eric Biggers wrote: > > > > From: Eric Biggers > > > > > > > > Commit 77654350306a ("take compat TIOC[SG]SERIAL treatment into > > > > tty_compat_ioctl()") changed the compat version of TIOCGSERIAL to start > > > > copying a whole 'serial_struct32' to userspace rather than individual > > > > fields, but failed to initialize all padding and fields -- namely the > > > > hole after the 'iomem_reg_shift' field, and the 'reserved' field. > > > > > > > > Fix this by initializing the struct to zero. > > > > > > > > [v2: use sizeof, and convert the adjacent line for consistency.] > > > > > > > > Reported-by: syzbot+8da9175e28eadcb203ce@syzkaller.appspotmail.com > > > > Fixes: 77654350306a ("take compat TIOC[SG]SERIAL treatment into tty_compat_ioctl()") > > > > Cc: # v4.20+ > > > > Signed-off-by: Eric Biggers > > > > > > Acked-by: Jiri Slaby > > > > > > > Thanks. Greg, are you planning to take these patches? > > Yes, sorry, they were not cc: linux-serial and fell through my initial > filters, to go into my generic "to-review" bucket. Will take them > now... > If people are supposed to send tty patches to linux-serial, then you need to add it to MAINTAINERS: $ ./scripts/get_maintainer.pl drivers/tty/ Greg Kroah-Hartman (supporter:TTY LAYER) Jiri Slaby (supporter:TTY LAYER) linux-kernel@vger.kernel.org (open list)