Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1609889yba; Sun, 5 May 2019 09:58:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqwNC7O4bYIvFRVTmIdkCl+DZTotwgsRoR2cl7VbCYUMemhWbYCiGmdxWoFuSZJEnKotNDMj X-Received: by 2002:a17:902:b210:: with SMTP id t16mr26200324plr.84.1557075479893; Sun, 05 May 2019 09:57:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557075479; cv=none; d=google.com; s=arc-20160816; b=g9dm7vdM19Z1mQW9HK89rC5iufCmuFqUXwuff6/uSH04IexK1CdlZJ9xSMBRxplqrm NE02W1lJo6Ea0ph++7PpA5hhofcACfXTl6g35OqzkLS2bSeR1LQMP6z4FtFD3fHx1tIo PGuw2kB2Hc7hSb6xVb8HXOEzL8u9CepUfD9Def8B87DdD4Q77Eqd672wS+h82GX31X+Q qtnCt694DsgqU1FC8stQTbCCa8nI1gUlqCdClY3GGMPVwGFPaHrbBgJzRmpoAI4gAIRn NBbb4BwOz/I4ZNS2yt3BIlorK4hebgEx4F4Gw/AbSxJ/PHZhqpEUC1sr0f1fK1lv553s C0tQ== 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:from:subject:cc:to:message-id:date; bh=L6Ax4KOtOWk/PHLJMtjJGpnDraMwtqUVDPQHZOimboA=; b=XjODxg+D8FoQccEpEgYjUAzPTd2QPhVcY1ENX3xqSUvNTqrb6UdQSn7/dOnnZe92Fm uZcy+RXbZOo+So1TVRLHjvEnPa6qgY7jGyFmKyDEyQWgEXmjfB3/r4gdTqxmjL/iDOgx nZNTm5oT/R4nJoc3ZT039kp8HV1fxJLoD3bHhRsXd3GMe5Qr5/HboemwtxZ2DTJpkLhs neqb8JOr9ZNGtFmJ+jSPL0waMgaQpuL+SA4CztCIvuJAF9zFYwwDYC8sat969gVNpjXL 5s2FULN6MsL0WtfgNwSM0gTlFaBckk0uJVy2Y4B+flto8MdO3mH7uKLQcHviDzBWcQCj emHg== ARC-Authentication-Results: i=1; mx.google.com; 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 bc4si11125761plb.246.2019.05.05.09.57.16; Sun, 05 May 2019 09:57:59 -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; 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 S1727789AbfEEQzV (ORCPT + 99 others); Sun, 5 May 2019 12:55:21 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:52420 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726081AbfEEQzV (ORCPT ); Sun, 5 May 2019 12:55:21 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::3d8]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 4FE8C14D99A6D; Sun, 5 May 2019 09:55:20 -0700 (PDT) Date: Sun, 05 May 2019 09:55:19 -0700 (PDT) Message-Id: <20190505.095519.1938967372701152762.davem@davemloft.net> To: pebolle@tiscali.nl Cc: netdev@vger.kernel.org, bigeasy@linutronix.de, gigaset307x-common@lists.sourceforge.net, linux-kernel@vger.kernel.org, arnd@arndb.de Subject: Re: [PATCH] isdn: bas_gigaset: use usb_fill_int_urb() properly From: David Miller In-Reply-To: <20190501211903.14806-1-pebolle@tiscali.nl> References: <20190501211903.14806-1-pebolle@tiscali.nl> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sun, 05 May 2019 09:55:20 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Paul Bolle Date: Wed, 1 May 2019 23:19:03 +0200 > The switch to make bas_gigaset use usb_fill_int_urb() - instead of > filling that urb "by hand" - missed the subtle ordering of the previous > code. > > See, before the switch urb->dev was set to a member somewhere deep in a > complicated structure and then supplied to usb_rcvisocpipe() and > usb_sndisocpipe(). After that switch urb->dev wasn't set to anything > specific before being supplied to those two macros. This triggers a > nasty oops: ... > No-one noticed because this Oops is apparently only triggered by setting > up an ISDN data connection on a live ISDN line on a gigaset base (ie, > the PBX that the gigaset driver support). Very few people do that > running present day kernels. > > Anyhow, a little code reorganization makes this problem go away, while > avoiding the subtle ordering that was used in the past. So let's do > that. > > Fixes: 78c696c19578 ("isdn: gigaset: use usb_fill_int_urb()") > Signed-off-by: Paul Bolle > --- > Arnd's ISDN cleanup hasn't yet hit net-next so this still uses > drivers/isdn. If people prefer to apply this after Arnd has exiled > gigaset into staging, I'll gladly respin. Applied to 'net', queued up for -stable, and I'll deal with the merge conflict :-/ :-) :-)