Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3075774ybf; Mon, 2 Mar 2020 22:30:36 -0800 (PST) X-Google-Smtp-Source: ADFU+vvsx78b+p90dvhv/2q9dekRMT+825P5MvMGpl17mWxOZaOylxbn2M1MakjnQY5XKoMjpxFf X-Received: by 2002:a9d:7a97:: with SMTP id l23mr2246570otn.302.1583217036091; Mon, 02 Mar 2020 22:30:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583217036; cv=none; d=google.com; s=arc-20160816; b=EThusJl9Oq925Ruw8qIOUpSf8AoykDVY8ptwpcYwxcAaNrRl3vK2/fmezYclvEw3vk 7tLDDActkJSQHaaJRYfGErJz8f4mVxVY/MLh5dvOahmrFfwAcBl9noSrwuS8N6pwWofl 5nfsDacnlI4fxCuclHo0PJ57KWTJ1gTHmQppt85irWfZRSRPSOv0j2RBhYrhk4XdiRux AkwzYYWIm8d2uvfUjIx9KssLp7pZdlodwWw5f7RVUNS64B7mVvGQZlr2Yw48cIjUgyxZ wIfL2KnLqzqQeylA1A4XbmFiw9M28/YqNTgAzSRP5LfKqgPlpO4WVstKqAZ2kzOUbxOq +pUw== 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=iYI4gQW5hwF1/A4vr9DT8x0FwAlxlFHYbUsdu3QAjqc=; b=ch8XnG8xWyWKGW74c5CnPLklK69UUAHerY/bDYD1KJy6mkPo2MX3d/QFGi7mlBBRZ+ OD6bQ0tjFhZuFlo+lCnRzXaQAbu2xzP8sLXCNcidJRRbfkFpVQ+xlJWXEgp+8Y5pKMZq QbPTkk0CGCVxl+3oKQ529/ihDqy6AQm95Qe8b1CKYZqR2Lx+yB7I9Z8Xcs6EweNNNcgI h4QxuYY2lloPRxO/hflLS/MeRxX8ODXHom6I/wtEojByg7Ny1UgmPH1UEvnM+ss2mMMX QYK+aRgVHUFqPk7OegqcaMmNUokpwGGX+MPOJ3GkNqv8tMcOgYk7Wo/vk0c/iV8zyupM gn4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QXe2DiKz; 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 k1si7629742oic.245.2020.03.02.22.30.23; Mon, 02 Mar 2020 22:30:36 -0800 (PST) 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=QXe2DiKz; 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 S1725879AbgCCG3z (ORCPT + 99 others); Tue, 3 Mar 2020 01:29:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:57022 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725440AbgCCG3z (ORCPT ); Tue, 3 Mar 2020 01:29:55 -0500 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 66FB12086A; Tue, 3 Mar 2020 06:29:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583216994; bh=48kn/GVmQ3q/p2z9r3bl0AAa2U1PvKi1kdGVR8dz/ko=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QXe2DiKzNbqrZUWbe8RUGNw3lLLScpKQd4OHwz7uBkaXMY7EoPF84tKX9YLUwrt7B 2AKx11dMgkO8QufKR5X7xq5HcsBcgDVw7+PjET9XLBxgXOnK4XpK4cILFCu0yU1Ic1 FI23k8SzZjfrCJyuS/pon1vGqT4AvGS2AB9A8Rz4= Date: Tue, 3 Mar 2020 07:29:51 +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: <20200303062951.GA1051270@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, please give me a chance to catch up on things :)