Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp817663ybl; Wed, 11 Dec 2019 07:59:26 -0800 (PST) X-Google-Smtp-Source: APXvYqygEZ2+w66JYxUmajLXhgvtkTDfwMEqNXVAew/xgD4N5TaRqK0VSA2SwfHMsA79wOMcfdsc X-Received: by 2002:aca:d4ca:: with SMTP id l193mr3402725oig.133.1576079966686; Wed, 11 Dec 2019 07:59:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576079966; cv=none; d=google.com; s=arc-20160816; b=jqpyvbpWozc54mvNA2dxpLLUOp2Q11SlYYMBTdBrf0kcvFTcuOCpJTYjsG8lUMb6hG ruNX2qIsiDf4w5eM0NsUpiOEf6Wti09GaUgMb31WpzPYIEYQZ58XxT43w0dloYDft9Ps Tl1EKNCNPNpzZkT+hocBBg1q5oQYjlGy4Ix5KvkrQ6wQBAy7G+v5pH7uSRPDDxQAlFMQ DpPKsFt8Gv31PsShQLwzfdgdMquAfqOP7vK+mutlC/rTX94iNDMnD1JaOxHFqKwMG/ja RpuFd09wyyeWQtv1kzqKb7yR7tj5ktnhzE4iw1N7DdaeyW5IKJRrq5iHGFAfidkeAcgK nmLg== 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=wndgguHEM+2s2AmGhbVdSMM5ow2kqHOreNCul4SQo0U=; b=UUsHhTkrwauKAp5o/7ykuLVtL+Fm25Kj6wyfrSJjGF5/oWZqG4QeamcS45laKsU1Dl Uq0rLzsgyCJFKaxHxG0+XivHj2lL3epMsFQaXUwL3zJj0cyLZiEkdGUX527YNXPR/sqw DZZPP8DjTwUaIvE3goINzAGjnXjknbnnF4qOX9Cr8tCA4I9j1C8X2u9I+r83rkLyjdew B7VeLfWBDHkl62MBHidNY2Hw6QDTD+oMLNcCdwalkSguDnenF+xSQ8arNdV+NgORI7Ot jXcp8z6cQZrc+sc3+xefqqpDWtJXl+0sDlOpu1raIjtdoRUdBpIB9e5v6sDQAE8b4tW0 +mmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="x548kTV/"; 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 d8si1270374otl.83.2019.12.11.07.59.14; Wed, 11 Dec 2019 07:59:26 -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 header.i=@kernel.org header.s=default header.b="x548kTV/"; 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 S1731898AbfLKP5M (ORCPT + 99 others); Wed, 11 Dec 2019 10:57:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:41182 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730183AbfLKPPN (ORCPT ); Wed, 11 Dec 2019 10:15:13 -0500 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 92DD220663; Wed, 11 Dec 2019 15:15:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576077313; bh=Xc0eyKlXnbwXsBZJnAPM3DHLQ9UKo918HSZqaDGVZZk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=x548kTV/OGwYiojk9CaQs36BgA13OQX7PACV+Bbn5yjWnDW8eykeEzupQZYcuHIPM CP7jYkBIGVOk2H6ieRnYJIwEitNkueMJZQ/yzWr4k5fWANIql5gSx1nz/Vc8vEZijC z2yQMF8/5Xr5RFvsWUTPr14uVSG0Y7c+xCwUDcC4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jakob Unterwurzacher , Martin Elshuber , Philipp Tomsich , Johan Hovold , Marc Kleine-Budde Subject: [PATCH 5.3 098/105] can: ucan: fix non-atomic allocation in completion handler Date: Wed, 11 Dec 2019 16:06:27 +0100 Message-Id: <20191211150303.001640688@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191211150221.153659747@linuxfoundation.org> References: <20191211150221.153659747@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: Johan Hovold commit 870db5d1015c8bd63e93b579e857223c96249ff7 upstream. USB completion handlers are called in atomic context and must specifically not allocate memory using GFP_KERNEL. Fixes: 9f2d3eae88d2 ("can: ucan: add driver for Theobroma Systems UCAN devices") Cc: stable # 4.19 Cc: Jakob Unterwurzacher Cc: Martin Elshuber Cc: Philipp Tomsich Signed-off-by: Johan Hovold Signed-off-by: Marc Kleine-Budde Signed-off-by: Greg Kroah-Hartman --- drivers/net/can/usb/ucan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/can/usb/ucan.c +++ b/drivers/net/can/usb/ucan.c @@ -792,7 +792,7 @@ resubmit: up); usb_anchor_urb(urb, &up->rx_urbs); - ret = usb_submit_urb(urb, GFP_KERNEL); + ret = usb_submit_urb(urb, GFP_ATOMIC); if (ret < 0) { netdev_err(up->netdev,