Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4793380imu; Tue, 8 Jan 2019 06:27:41 -0800 (PST) X-Google-Smtp-Source: ALg8bN5NFI7e8q1B5DW8oKtSCr8tKhz/C3sQcFMjmbUN0Yspi/qEAiBdRcl4kWtu8z6JDx6Lpw0b X-Received: by 2002:a17:902:bb86:: with SMTP id m6mr2004726pls.315.1546957661274; Tue, 08 Jan 2019 06:27:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546957661; cv=none; d=google.com; s=arc-20160816; b=owEf7dR7cq3b0bZZrOqr7tWqL1xrGVzxVIWc4zrmUZ80WdEoXwZgHZ3VAq8QLrqXxf yFfuWW/IMiqk5SEY0OToJSmx9ZP0L+N2JEFc09WnCQ/poA5OPkgT9Gw8woWeG0Q2odIg qNjhlYN6A4ploD6PUnJR9zZM+R+FqmtvwwZl5MVh0edegFlWh+vhAIP5H39QJVsGCq6V 30EYR6+9vf/9KsrDiIVrpjslKAV6vNLgMqqZGhPJsVgraUK3XNRm17z++I5Tg4huA6CP 4QKuDa2kz7FR0M6w94gNddSKF0KBxPs9ms67W9Sjtjw71kgVD73NPwWbhGIhAfemsBel xl7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=HA1zWIgBm3wEH3MuCQDfFySW+qonLcocBpiA4757ghQ=; b=PKhdPdjbBIypBo3Ok32SfEZtc7t+xO0Gtv2Jzxh2GBT6d4uilzOc48EbGkA48rHUmu bVNi2K2UPBaWH7mNBHUjAQ46qK5pOXPKk7dUTUMBI5ghgM8iw15lOzM0vBfYf0ZqAaNe 9RgE5Ugl/PeI5rgWXJRKpdUmCg/bdJQmhZjVAvHSNxoWDlevcqNO9xy/PDrTsYR4QRCG iPeqCwnaZaaS8SehwK6s3KuI73Hl9kbFV024BYHBHNZqlx6xi2YJJy5QS75G1gfLp20a ++th/E/eNRsmr7KNIBxz+3ExOuIGZV5R9D2hvXv/4ncSM6qE76gKpq7slysXuvmMVCw7 oIvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BDDdKmgY; 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 q18si63603246pls.30.2019.01.08.06.27.25; Tue, 08 Jan 2019 06:27:41 -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=BDDdKmgY; 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 S1728744AbfAHOZL (ORCPT + 99 others); Tue, 8 Jan 2019 09:25:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:58654 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727662AbfAHOZK (ORCPT ); Tue, 8 Jan 2019 09:25:10 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 67E7220850; Tue, 8 Jan 2019 14:25:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1546957509; bh=tjcPeNgVCU6GAmPRjwh1mRQFI2zeGDmYUhfi2iC1CeY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BDDdKmgYnW4SzO7l1uGANnyucTjV1XhDGGn6nc1o1qJDvEHyKTFRW+NoCd8UlbHS7 O7UYhjTRFYBDJ8i1jSO2dQ5jcpiyRHU4APTiNjAbvsiPBaUu2oDUhVHF01ZC4TMFC3 2/3LP4qqmI8w4m/FTnGN82kXeM1EYe9W5MWQpfFM= Date: Tue, 8 Jan 2019 15:25:07 +0100 From: Greg KH To: Kyungtae Kim Cc: devel@driverdev.osuosl.org, kirk@reisers.ca, speakup@linux-speakup.org, linux-kernel@vger.kernel.org, syzkaller@googlegroups.com, Byoungyoung Lee , Samuel Thibault , DaeRyong Jeong , Christopher Brannon Subject: Re: general protection fault in spk_ttyio_ldisc_close Message-ID: <20190108142507.GA13938@kroah.com> References: <20190108135020.GA10504@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 08, 2019 at 09:15:02AM -0500, Kyungtae Kim wrote: > On Tue, Jan 8, 2019 at 8:50 AM Greg KH wrote: > > > > On Tue, Jan 08, 2019 at 08:37:37AM -0500, Kyungtae Kim wrote: > > > We report a bug in linux-4.20: "general protection fault in > > > spk_ttyio_ldisc_close" > > > > > > kernel config: https://kt0755.github.io/etc/config_v4.20_stable > > > repro: https://kt0755.github.io/etc/repro.a670e.c > > > > > > This occurs when the function kfree is about to execute > > > (driver/staging/speakup/spk_ttyio.c:68). > > > Particularly, kfree takes the argument like speakup_tty->disc_data. > > > But speakup_tty is invalid, so the pointer dereference causes GPF. > > > At a glance, it seems that speakup_tty was deallocated somewhere ahead of kfree. > > > > How did you trigger this? Did you shut down and close the device > > already somehow? Do you have a real tty device that is driven by the > > device? > > > > thanks, > > > > greg k-h > > For this crash, we did without real speakup tty device. How did you bind a non-real speakup tty device to the driver? > I'm currently trying to figure out how this actually happens. That would be great to figure out :) thanks, greg k-h