Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4781407imu; Tue, 8 Jan 2019 06:16:37 -0800 (PST) X-Google-Smtp-Source: ALg8bN6SL7szzBARWsXypjRSfbr8op0pQ6TnacjMa1yIMBXRJHEKqRybqsm8kPtVRHk9eXAwDrEX X-Received: by 2002:a63:ec13:: with SMTP id j19mr1686312pgh.6.1546956997392; Tue, 08 Jan 2019 06:16:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546956997; cv=none; d=google.com; s=arc-20160816; b=LvHZ0vR+9OjmCDj2aKp6hOKJp9DYZK35OHMGe4iSkHXRojiMdl2kxwJiGtuvrY9cOn hnXc12TeOpt1+nAINNH/7+YyNmUuJ4t7ZoVKDZjlEJRx/tZSG+VHXuJZ/dRj7iZgHycD ZNBk1I+SIYX0+E1qIJJwSeA5UcGsZ+sNdPdEMzcTDwVw76uA8jXSE/Ji6SZalcjo4bua 0/lubVo1HLfEjohA/DK94NF4o2YWi4Vw8Evnn/69PShB9rvJ4DllGKlO9sWgai1Rr6I0 LgLVEj6NYsV7vr0b1i9QsXFp1qhiCkv9mLCidd9ifkEfuwJruCVMiu/IH6w1XkqgfQIf W/9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=XaWuP8Bsy3jie2bERK+JSr2AwDdL+fT7FL42sQKhrpY=; b=YU+RxR/ipVJOsJRoYtQM3ESjYTFnPTlKC8x/J0D/KmPwbUi5zvA9M/ASCznWEPXBCL VtXePbE95IP8HTXGO6RBzSZFpE6oHScKLr4kF946CDocsQroIDpygEIQnWJ7HlVEUNHI VmxJ0lxTzKLFc9g32iVMWfrIR+t6dP0doO1d0BhvYhrtw/oaEeD4i/3vmB0/VWgFXOhs vtGh1jompzmfqAMOtd9+035bnfBJZHhm1bG5wn3n7GMVJDGI4jeKtT4XVfrUdpSNjJAt pE7wyZG63Ec1Yyv2yvprJ2amjjZNDkLpQTSNivM+9lBt+cC4XFyMezrAD4jRYQ29aPok jJ0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RQ9CZ3fh; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o3si19537304pgq.139.2019.01.08.06.16.21; Tue, 08 Jan 2019 06:16:37 -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=@gmail.com header.s=20161025 header.b=RQ9CZ3fh; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728644AbfAHOPP (ORCPT + 99 others); Tue, 8 Jan 2019 09:15:15 -0500 Received: from mail-io1-f67.google.com ([209.85.166.67]:33445 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727662AbfAHOPP (ORCPT ); Tue, 8 Jan 2019 09:15:15 -0500 Received: by mail-io1-f67.google.com with SMTP id t24so3236269ioi.0 for ; Tue, 08 Jan 2019 06:15:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XaWuP8Bsy3jie2bERK+JSr2AwDdL+fT7FL42sQKhrpY=; b=RQ9CZ3fheqOUrqH1lX0Yj4Xtp1aY/74fHAdJIXcWQfnvo/A7mmi6rB5h1Z6r+/Adx6 PGEI4GWEY3kr9Jlk3x1a8OYiHN39tbo9zX3FL+qRRxScOZCj3qIxob7EjtDlMPJOMIKq uMcAvIcUIEjgCdx/8iO3NIx6rM2p1Uj+ATR8ZfSvuC7MiAQk4EycAX5wpd4xiRiuAnus Vd9Xi7Q3Cs/K+8M6LY2WsSZrMmMUWvJVmRxcJpn5AIJMK3ON8cYuimFe7pA4kwXl1V2i ICgP93iUox7uyIFb/OdIIk5qxE6UTKFgan/tFhJqGtWngZdcWeu/HprvM6Ijz1H+1r9K GYDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XaWuP8Bsy3jie2bERK+JSr2AwDdL+fT7FL42sQKhrpY=; b=oc8JPeGYaCCBbKwea7hCfPATQm2NS1zhcgR8vKifLN1i1+iZ72Hne1JjRQOtPJkDj9 gKkWJkYndZvCnkHn73jXU0+k/GQTGdJBsxvdoT9YomcKJHtEnY3wWHpxGwP/LkjJBJlV gkzdWJQv38Qii0antyIJbSx2L4uDpHa6aAWf+FZaXoivgRuHS3RM7W7KIK2zDWDIqimF 2/RssTwuGEofRoqFGMEplyonPeVidqrXq1kw+ZamCBOoSEguhAjuJ6MbbW+2uRUXnp/K 7KWo4qIpo/+GvBAXC87PNnwiepm6Ijtq85TKLqcXAd6KQ9PgOuKRymfsLgVwdO2h+wAw WFMQ== X-Gm-Message-State: AJcUukcqKqO/9hCgwsuQDssZjqtdQGDsgqR0JA02/AH8XYiCnVwmy9VJ 6cAKs7wFn4A0Re5nDBYSXCMW6D5QFxlCWttneE0cvvsj2dk= X-Received: by 2002:a6b:6111:: with SMTP id v17mr1210232iob.107.1546956914179; Tue, 08 Jan 2019 06:15:14 -0800 (PST) MIME-Version: 1.0 References: <20190108135020.GA10504@kroah.com> In-Reply-To: <20190108135020.GA10504@kroah.com> From: Kyungtae Kim Date: Tue, 8 Jan 2019 09:15:02 -0500 Message-ID: Subject: Re: general protection fault in spk_ttyio_ldisc_close To: Greg KH Cc: William Hubbs , Christopher Brannon , kirk@reisers.ca, Samuel Thibault , Byoungyoung Lee , DaeRyong Jeong , speakup@linux-speakup.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, syzkaller@googlegroups.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. I'm currently trying to figure out how this actually happens. Thanks, Kyungtae Kim