Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754115AbbHXUOU (ORCPT ); Mon, 24 Aug 2015 16:14:20 -0400 Received: from collab.rosalab.ru ([195.19.76.181]:41838 "EHLO collab.rosalab.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750942AbbHXUOS (ORCPT ); Mon, 24 Aug 2015 16:14:18 -0400 From: Eugene Shatokhin To: Oliver Neukum , =?UTF-8?q?Bj=C3=B8rn=20Mork?= , David Miller Cc: netdev@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] usbnet: Fix 2 problems in usbnet_stop() Date: Mon, 24 Aug 2015 23:13:41 +0300 Message-Id: <1440447223-15945-1-git-send-email-eugene.shatokhin@rosalab.ru> X-Mailer: git-send-email 2.3.2 In-Reply-To: <55AD3A41.2040100@rosalab.ru> References: <55AD3A41.2040100@rosalab.ru> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 920 Lines: 25 The following problems found when investigating races in usbnet module are fixed here: 1. EVENT_NO_RUNTIME_PM bit of dev->flags should be read before it is cleared by "dev->flags = 0". Thanks to Oliver Neukum for spotting this problem and providing a fix. 2. A race on on skb_queue between usbnet_stop() and usbnet_bh(). Compared to the combined patch I sent earlier ("[PATCH] usbnet: Fix two races between usbnet_stop() and the BH"), this patch set has the following changes: * The fix for handling of EVENT_NO_RUNTIME_PM is now in a separate patch. * The fix for the race on dev->flags has been removed because the race is not considered harmful. Regards, Eugene -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/