Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp834660yba; Wed, 24 Apr 2019 10:20:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqyvCYDS7CMgwjpB7aQUC1h9K9ZjTyI/JlvS1TDDyIEdyF7hGZ8GceyNtzBd8WOfwgJeuMeH X-Received: by 2002:a63:c54e:: with SMTP id g14mr31657675pgd.265.1556126454021; Wed, 24 Apr 2019 10:20:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556126453; cv=none; d=google.com; s=arc-20160816; b=IZjhMqxFBw1VHDLWkSD9W1bDiMBQpDevS3GplQdAvccOJiIunOVVLkeyvIaN71YYbM cojnNEzzVVQOlYuXLoFWRIVp1MlkQr0qp1EhYnL8p6onv28ZAHrzwMgew8UdOUrZQSIn f3KaDqsS6vDAyEMkpFEBeLeLsqFdXkfxbhgS8lJKKkU35DXuEy+GFUZDDdpCuLIC72I8 E2VH2Fj880O5rBEdV9XTjaUUKYNpJs0STCQmETmORhjjWNGX52or4L3aHm/Ev5T1Sbjv MklgDhJ1/RZP/oC4FQ6tb6xCBMn2bQs8Wy/kk/9vOK/cX8RpvH0dCE5X67I+fC6cJ4hM x33A== 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=2NdQ0Qa6M18L+uiGWNnk/ddGkSboLWtE0ggZmGA42j8=; b=I5x3iTFeQOap/JnAVH0Z5c57Edyde9Ntivw04QinbTYt2z0m8Ah/66lTruHX0SfTGx oAWyAl2ftbTO5j2wPhiCVvPwnctVPU+UdkkGUaHQRiLrqJ90jjh5TKajJP0w5BDjwEs1 UvFuUeuofxFOj8oF7WcL1fr6MmzjKTHhMFLIS/CXAkmnC/vToVXOKEa2jQd/1Ev9T9Q1 XAFta7zRfpIQRRQjy8TbU5p6jOTBZ8rcU1DFtEh8+Xs+LKUJtEfhQ2P+m4ga5cW1u/PX RAYQSMl15FcOJmNO6MLYXZmGp8igqP2PoANIj7vSJlAhY6tQ1PpJzLgdkbTwm7FNxO3A bgLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=u6Knj6bI; 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 s3si18180925pgl.380.2019.04.24.10.20.38; Wed, 24 Apr 2019 10:20: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=u6Knj6bI; 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 S2388913AbfDXRSz (ORCPT + 99 others); Wed, 24 Apr 2019 13:18:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:44028 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388906AbfDXRSw (ORCPT ); Wed, 24 Apr 2019 13:18:52 -0400 Received: from localhost (62-193-50-229.as16211.net [62.193.50.229]) (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 30B8A21909; Wed, 24 Apr 2019 17:18:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556126331; bh=2m8CRpxJweqTXkQzcLzqntm09TU5xdmKmwBwmKQ32hY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u6Knj6bIODGJB3hH+ppgf7IS18SQrzFUxYlOdAFNckbBVXwC6ktS9AL5evOjjW6NA 24z0itT3fXUbO8ouHMNdBR/bQuSLUbTPL3YXwKhAK2g2im/0Oo4NO94S+JmbDQ78c7 WFBZFnMjMx2jV+RTUsl1t8HAHTJz0gANtBJksud4= 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.4 075/168] tty: mark Siemens R3964 line discipline as BROKEN Date: Wed, 24 Apr 2019 19:08:39 +0200 Message-Id: <20190424170928.315996897@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190424170923.452349382@linuxfoundation.org> References: <20190424170923.452349382@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 @@ -389,7 +389,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