Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4715049ybl; Mon, 13 Jan 2020 19:19:00 -0800 (PST) X-Google-Smtp-Source: APXvYqzae+X8ds4SjqCfoXemlfASQKgQ2kVbW7SmxGnd08oh0nBvfgkNLawuFFf/T0KmmT+GybQs X-Received: by 2002:aca:f242:: with SMTP id q63mr15672089oih.72.1578971940271; Mon, 13 Jan 2020 19:19:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578971940; cv=none; d=google.com; s=arc-20160816; b=ImS3IsjYRgq4l+sdsmQ5gKoZKzhIVH46i+8yH+bPCQoquOgOVrpFCxdTdtL3Iy4IyY cZz1rTVT78iI869HsA29y2veLEmlISP/6z4NXPnHLMof+ZZ6RiVozTvyuGmkOtmvPfvi hFsxfKrWg1I2TaJBM/L8XX7KzS6szrPqHAIfmxUxjWQfsGsiXG7LiaMeyf6Dkar3jFW4 lavu7ATYNAyl1p+SLEfBromo+vwklIMHXB4ndbwXIg/Fpu6h5rbCrYgfkqskfW23MkEV PJi2eSqikZsAcztZajtiIjfG+dqyyneVvuNekaUIFnJ1tEyb/KSiyctatEHlgT8M41u5 N3/A== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=nh+SpzcVz9PdRA4EUKXJMNWDTbd5tTvZHBf3TO8V5Ls=; b=iPPQR+e+retgiq+YWMLcF7CHuAKBbFrmeH4IIcaWMGgrGrRkeWDOsR4oZgnO65S/AK AWTR60ea9Z1wC6r2jakPgPm9yZaS58HFgzFy2jtuJlCoovLGQk9GMUjUyI9vSzV9FrdO McFmgwu+uu4OprXSOIj4sQ5ujX+gBqVdokz9PTrxiXyKXtNM7/rKYTv51lHjv5dJLMxd A+EY+4Wu/T8D1Swomqt/oFiqEJBP1iA+FoHzyHpQp5gpJXb7p0o9iAPunNdnNdp1HMBV q1aDVAV94qxVlVQzr9ZBLaFcU2YVjgjJvVviMzlAvDsqIfN57R63Ff5RMTKeZ2DwS6qQ +IEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@wp.pl header.s=1024a header.b=vLm+ykKH; 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=NONE dis=NONE) header.from=wp.pl Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z15si9984667otj.235.2020.01.13.19.18.47; Mon, 13 Jan 2020 19:19:00 -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 (test mode) header.i=@wp.pl header.s=1024a header.b=vLm+ykKH; 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=NONE dis=NONE) header.from=wp.pl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729563AbgANC4Z (ORCPT + 99 others); Mon, 13 Jan 2020 21:56:25 -0500 Received: from mx3.wp.pl ([212.77.101.10]:41469 "EHLO mx3.wp.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728851AbgANC4Z (ORCPT ); Mon, 13 Jan 2020 21:56:25 -0500 Received: (wp-smtpd smtp.wp.pl 6345 invoked from network); 14 Jan 2020 03:56:23 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1578970583; bh=nh+SpzcVz9PdRA4EUKXJMNWDTbd5tTvZHBf3TO8V5Ls=; h=From:To:Cc:Subject; b=vLm+ykKHyMt4U5fsPsfBhBQbi9gP+NYXIAeb2K7NnVgXycc93GZsvTrTJ9jFh8Gz4 fMVKXaXWPCWi81S0jbsVWNZsSWQZOyrgBdB4/Zx5jKiHSGMP4chkb/cktTMxSzTd+n 4CLY5YwS1yIpowz8rxjlOeqUXBymDiN4CLP2clF0= Received: from c-73-93-4-247.hsd1.ca.comcast.net (HELO cakuba) (kubakici@wp.pl@[73.93.4.247]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 14 Jan 2020 03:56:23 +0100 Date: Mon, 13 Jan 2020 18:56:15 -0800 From: Jakub Kicinski To: Johan Hovold Cc: netdev@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, stable , Greg Kroah-Hartman Subject: Re: [PATCH] NFC: pn533: fix bulk-message timeout Message-ID: <20200113185615.5aa7720a@cakuba> In-Reply-To: <20200113172358.30973-1-johan@kernel.org> References: <20200113172358.30973-1-johan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-WP-MailID: 65ac5bd168de56cbec22fb9484b94580 X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 000000A [oTOk] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 13 Jan 2020 18:23:58 +0100, Johan Hovold wrote: > The driver was doing a synchronous uninterruptible bulk-transfer without > using a timeout. This could lead to the driver hanging on probe due to a > malfunctioning (or malicious) device until the device is physically > disconnected. While sleeping in probe the driver prevents other devices > connected to the same hub from being added to (or removed from) the bus. > > An arbitrary limit of five seconds should be more than enough. > > Fixes: dbafc28955fa ("NFC: pn533: don't send USB data off of the stack") > Cc: stable # 4.18 > Cc: Greg Kroah-Hartman > Signed-off-by: Johan Hovold Applied to net, thank you. In the future please don't CC stable explicitly on networking patches, Dave (or I) will select and send all relevant patches to stable as noted in netdev FAQ.