Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2475773yba; Mon, 15 Apr 2019 12:25:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzUqqjnTF0iFXya3faY8aRlaQQEN0mMa6gjpWj8eyQ/wGDhNpDWvSJ9H1e30fTvkLeDMdLG X-Received: by 2002:a17:902:b48c:: with SMTP id y12mr75351318plr.280.1555356354663; Mon, 15 Apr 2019 12:25:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555356354; cv=none; d=google.com; s=arc-20160816; b=v81wZt2qjY0035aizbtxCFOx17UDNUL74txqOGuc8u7ybjjs4bE9Re5wTf69YGjnga b5c00eVBfgxEeLPlNHRL6yvwvZv1an/mKyprFRU1+TMogJ/Ccpz7R2z2iI3Sj2qw5lM7 YpiG2QeBsedHIxEB34+z3vgz6dReCNxvmqLQZH2yfiT8as/M2woAogxeoLc5RJcdNvpZ yJ90p2oPoCYjRqFFVI5EoSfK/piWIn+xwZ6Yb+yEXYky4hzl17rFs1T/TXL0OFn7Bq5H pjgT66JxMwesCpyYaxOuKnhBvsdoIjxM3tVDRbABSDRnFP9qWYaiaWlFl1y84pMMvijO gbiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=UbJbeEsamIqnCDxlDbSd1b+ioY877Jpsbri1uRb/i9s=; b=HkLljK7bzYVA1aB994vZekOvKAkqO+xCP08wx2IiWHm+U9Md7y6d+KFNZuHBy+Yt6e 9kaC9DjU6V2TmPsEOAPik1jRHcCSD6/P9Mhf36dAoQwq4acR21D526ezl+IVRSUARpkq 2DljG7oiDpnaBxNfwAiVt2TiPfTCQU1menm7fwyNL205rl5ZDNnc0rSKHx5i6qL8nSdi QV3tHdP5c8UCv6AduvHa0qXG72vGKcZlFZUZHkwH2KZB54HS7z3X0MKNxq8avw4PO8G7 /V7NFWWGF7kt86LMv+QEUdQLXFXDsTB7fsNP6d2BKvqZIYddqElX15cHj36jYi37RL/F AHjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EVTWZZVa; 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 w12si30852039pgr.412.2019.04.15.12.25.38; Mon, 15 Apr 2019 12:25:54 -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=EVTWZZVa; 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 S1730049AbfDOTY0 (ORCPT + 99 others); Mon, 15 Apr 2019 15:24:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:40838 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729902AbfDOTGZ (ORCPT ); Mon, 15 Apr 2019 15:06:25 -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 BB06E218FE; Mon, 15 Apr 2019 19:06:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555355185; bh=lxbG+YuuhSNqx5qi6R0x0VGzdWRnl96MPmNnYiqTAG0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EVTWZZVapIDbJs9r6KzmOJ4RK8kbRdETLRPYAsfu71Gs+wVYozDO6Tv7ej7FCHHt6 PifN/cVPLhlEckjnigCTIOKaI/lyDCQe8Sd4rrB9jJyc19wfDZjSizbQtJfMYxdOpq xRBxLYLECmoE6v+Rpnp3GSq9+1LCd8uM5zRcaKGw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jann Horn , Linus Torvalds Subject: [PATCH 4.19 045/101] tty: mark Siemens R3964 line discipline as BROKEN Date: Mon, 15 Apr 2019 20:58:43 +0200 Message-Id: <20190415183742.975649929@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190415183740.341577907@linuxfoundation.org> References: <20190415183740.341577907@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman commit c7084edc3f6d67750f50d4183134c4fb5712a5c8 upstream. The n_r3964 line discipline driver was written in a different time, when SMP machines were rare, and users were trusted to do the right thing. Since then, the world has moved on but not this code, it has stayed rooted in the past with its lovely hand-crafted list structures and loads of "interesting" race conditions all over the place. After attempting to clean up most of the issues, I just gave up and am now marking the driver as BROKEN so that hopefully someone who has this hardware will show up out of the woodwork (I know you are out there!) and will help with debugging a raft of changes that I had laying around for the code, but was too afraid to commit as odds are they would break things. Many thanks to Jann and Linus for pointing out the initial problems in this codebase, as well as many reviews of my attempts to fix the issues. It was a case of whack-a-mole, and as you can see, the mole won. Reported-by: Jann Horn Signed-off-by: Greg Kroah-Hartman Signed-off-by: Linus Torvalds --- drivers/char/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/char/Kconfig +++ b/drivers/char/Kconfig @@ -343,7 +343,7 @@ config XILINX_HWICAP config R3964 tristate "Siemens R3964 line discipline" - depends on TTY + depends on TTY && BROKEN ---help--- This driver allows synchronous communication with devices using the Siemens R3964 packet protocol. Unless you are dealing with special