Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp553218ybh; Wed, 18 Mar 2020 05:00:40 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvBZcSK5Bl0TrzWy63/n70JXndkx/tb/gevoAPj3pEz8vtugXsu4O1eL48OTCb1nTIYnxf8 X-Received: by 2002:aca:cf87:: with SMTP id f129mr2724028oig.109.1584532840760; Wed, 18 Mar 2020 05:00:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584532840; cv=none; d=google.com; s=arc-20160816; b=ZrYndvWB5Ut8ibqwKqqE9Wh30zSebvh3z0DjrlR2k7F2JqcnPZ7ZjwtUTh5PX3vM9/ LhXlS6IVOiS73IBAVTLVKu0Wk4M5hpCcs9Wr1w7ImJyYmlpcG4OMotjO4AGIESm2bY0u 8W78u/nTgaojhpmREFXzjFBrUEywXJ+jQNqp/oa4qVEfTuBVyxxLzbWcljjCTH3quaPf BU65qfmTaGv+V9WXvnWimyIP7f3+lO/mxQN4EAr3j8D7/ntqQONgEw5C3/5eXbNHQuwM 0DHCT5/2MKQYH+Vu98PmkJXduREKkRJo+gQ1XjUUWkbUUXZXjB58eqaWjVLVUZs482cb TSVw== 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=m9w4xeWA0I8XD4y3qTexqkVftFUBXwxH0tQZy3cn/3g=; b=O1+AfuvIYvVZrAN74uBQDPAG44tDmquPOR9r2rhPr162pmKsxahCBXxcH2CvbqonGv GaDzoGtAbBWhJ37F6aw4oxULosUGu0vCrFL1Qsg9uxiIPgzWgG1JxfNlTP6OVBcekFiZ t83bF5RICycJEaHrCBTf+AJYdBWYkUu4zX8VdcwAmJCuIF/A94wnBmHirUCRUYlonOZZ DqlF6RFDqRIjOQeX1VXb35AEacLm1VF+Bo4DYAEmZEPgLQyLwyE3fjyLVJbcfPsBX/j0 T46RkY4O9gnjiypGsZ+/Yz6TJfX2xgMtXQexaFicqzuLchUuV2mahGnd6t9vg4NooEQI qtOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=u6MsJOux; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b11si3129705oii.11.2020.03.18.05.00.29; Wed, 18 Mar 2020 05:00:40 -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=u6MsJOux; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726802AbgCRMAD (ORCPT + 99 others); Wed, 18 Mar 2020 08:00:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:37372 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726473AbgCRMAD (ORCPT ); Wed, 18 Mar 2020 08:00:03 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 3B2EB2076D; Wed, 18 Mar 2020 12:00:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584532802; bh=2H+so29I1hHe3xQD8MKyVrF7XGPXr84xf8iAW0ZX98E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=u6MsJOuxVuceM4VOUZ9JHpxrDQZ3Wg2nc7mKLOjzz6KB1g3TpHiaw81uCulqu0ZaA aqI6Q/mwOvWZ/jwldBiUGRtmiCaGPkUDe5P9BLmH46ore269mSWsKnD/c1GtqviDMT 1qDa1F/80Lv0mMnggZlQNZhD0m6SEc1DzUmLdGuw= Date: Wed, 18 Mar 2020 13:00:00 +0100 From: Greg Kroah-Hartman To: Eric Biggers 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: <20200318120000.GA2528302@kroah.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200302212425.GB78660@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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... greg k-h