Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2521837yba; Mon, 15 Apr 2019 13:29:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGj+UbSEQdPQs/HGFl59k9/MJeBmaypiiVumy6f/8LUdJhw+JrjGlKrAd/ZgQmLUWrnF1E X-Received: by 2002:a65:62c3:: with SMTP id m3mr71557205pgv.159.1555360193607; Mon, 15 Apr 2019 13:29:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555360193; cv=none; d=google.com; s=arc-20160816; b=RZIlMczv3qDMi6L8bpcTWK+ORFOLeEFF38hESYJCzGXmT5TWfYNdGISdRKDkoaM7Op SLSbBQpGpfw+C8wqoKhB14PKJlj1JnAyu0Kz+XT2bkroCcA5XW6ioWOuj0gBf/XpZfeO B15PvlxyjWrshyQAWILSNIU+xljPP8wZqiWKeII2/L7s3JcXO88MohGWRajSf4rLMRir nIH4LUB1cH31wrNMUlt5UACMnf0VqnXfYR2zycKUVXPAUTcmEiKU8Ks3BKzcaQgcInfm CgEOcaZXyLHQ+NQFtm/hpwTuI1/cAWPH02uO2Am01gYBvfnmmnNctT2902bJ6nw6sZa5 h8PA== 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=I64J4rDoY0PGjVDrO8gD1gITgYZJLw+M7aC7m1FSiRo=; b=V/vQ94VV4HDwA6LBusEL752yZpvaVrRygaSoyx8E0MGOFHVUEBYOExSh7jOvlUBfSL XoTJRx/5kl8umvI5YlK7OuNKnm8BkLf5qkzu0V5+FHl1I1pzwy0razBF6IE3FZdJ0wJ+ wSTFTXDpyL2y1DkGIrx58rVMYHmYTDdeJDV15IiR0Tll0PjXHRqh/cOU6zSelp85D5ro B/MYdTL1Euj+aL/W/oujwMP9f2dhtTP50khi3+1SriNUsMF0Ltn8N3WeNbR3Ip6If8EA hLmkPRrbCXz8aM3ETzVGRG4abJj4dNlSmMnAxQDfKjpC3ActQbMwd/qFep6fxF0s4bky ltiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EAnKZDqb; 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 h20si38167124pgv.352.2019.04.15.13.29.37; Mon, 15 Apr 2019 13:29:53 -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=EAnKZDqb; 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 S1728994AbfDOTCq (ORCPT + 99 others); Mon, 15 Apr 2019 15:02:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:33794 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728826AbfDOTCj (ORCPT ); Mon, 15 Apr 2019 15:02:39 -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 5D93D2087C; Mon, 15 Apr 2019 19:02:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555354958; bh=vKgfG1AmS+te3HdJREXVT6S4yM3AS8G45p75f6/j1A8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EAnKZDqbIjwI87Szmk67khSiUe3O9Na/jrYabkH7bqPmoFu7HeCXpsUh64kJW7XEX MdxQ0jZTCAPbxmdaMtiCAqDaNqiw6rrxPy8L/y3KWPYLac/p9cTaUAjvCJmiI/DSdt O7eyg0drb1y5P+JMoTHt+zCXMqHS5OiVbZGmIuV8= 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.14 14/69] tty: mark Siemens R3964 line discipline as BROKEN Date: Mon, 15 Apr 2019 20:58:32 +0200 Message-Id: <20190415183729.513873058@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190415183726.036654568@linuxfoundation.org> References: <20190415183726.036654568@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 @@ -380,7 +380,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