From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) by dpdk.org (Postfix) with ESMTP id 0E6502B94 for ; Wed, 7 Nov 2018 20:33:50 +0100 (CET) Received: by mail-pl1-f193.google.com with SMTP id b5-v6so8309821pla.6 for ; Wed, 07 Nov 2018 11:33:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nfQ47gJMasvxRRPKEXbS0qAmHBr2TNzyslYS80ZW+Tk=; b=SCmLcI3hmV8RDcB48WUB6TYKUBw/Hg431BZ3H5aNsaUR0//mw19PMHVkHo00Bmg2GP UgbVtxVFFgCQczuxFxN9sxqpgUC/BwHmKafIbYaSKn4Vi6NSJ5Iku+lqplfSXjEAICpN p+DZOhGqOBJYfOQ/x8sD2F8tEr3kv5jFI+MXvdZv3wXs4RhRzud7HO260vprjC5lv/ps ZSZEUaLR9mncK/i8XyQuvI5SfRCdmV5mw+hFidnoa8zw5snxeeLsNKTU8YgiL7og+KAG oQXU+QWIph3z+Mn5U3Kg9AVIm07Ejy8xLu0ViCxV8zBZphOLolnppeDC8QOdylTnkaWG 6cdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nfQ47gJMasvxRRPKEXbS0qAmHBr2TNzyslYS80ZW+Tk=; b=UWeXRtVsamFCrBumX4UF4ZaJ5z0MqGZSJc7e17AIIIklm4kqX7BWNFgdM8pLHJvXEs r2tc0hStS8LbOKZqy6Ogp95e1wmlE3Czy173zhZ0v9czTd0ALGgjbMUTBuEgpgefTHxF sttH7+v8LfviNseoI80wobUQRg76WHqToGtw6xkbtO0Ht2+NgCs3dunVJJJE4xmBKTNt L0BoHRQbY4yD9bGMKmWTIPfK3qTPOYT+vZNU/ReVajfMTKG5QUAJrkli9toSRmZmJrT5 KJAgj/d/i+woNWAsQ8SnkmDCi6dktWsT3IGyi9t/YDE9gMAZF1xDGg120/I1f+c2fuHx xMTQ== X-Gm-Message-State: AGRZ1gLyza2myWR/FijDUKxM5BSKw8OtfWeel4CFMfYXQ2G1gjjA2NzC vN5Kqe4mw6tZ4sqYsBXkpej+sQ== X-Google-Smtp-Source: AJdET5dkqRJEARqyyCCwEUiha/9E7cPDBnauXjkOCKGMYriIP3b9auZmFnJ3XZg7sD/y2ueq+56/qA== X-Received: by 2002:a17:902:f01:: with SMTP id 1-v6mr1577668ply.8.1541619228969; Wed, 07 Nov 2018 11:33:48 -0800 (PST) Received: from shemminger-XPS-13-9360 ([2001:4898:80e8:f:d673:b177:5a01:34c3]) by smtp.gmail.com with ESMTPSA id z79-v6sm4065511pfl.33.2018.11.07.11.33.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Nov 2018 11:33:48 -0800 (PST) Date: Wed, 7 Nov 2018 11:33:44 -0800 From: Stephen Hemminger To: Jeff Guo Cc: ferruh.yigit@intel.com, konstantin.ananyev@intel.com, anatoly.burakov@intel.com, thomas@monjalon.net, bernard.iremonger@intel.com, dev@dpdk.org, helin.zhang@intel.com, gaetan.rivet@6wind.com, qi.z.zhang@intel.com, arybchenko@solarflare.com, bruce.richardson@intel.com, matan@mellanox.com, shaopeng.he@intel.com Message-ID: <20181107113344.79229734@shemminger-XPS-13-9360> In-Reply-To: <1541583691-145432-3-git-send-email-jia.guo@intel.com> References: <1541583691-145432-1-git-send-email-jia.guo@intel.com> <1541583691-145432-3-git-send-email-jia.guo@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 2/2] but/pci: fix fd close for hot-unplug X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2018 19:33:50 -0000 On Wed, 7 Nov 2018 17:41:31 +0800 Jeff Guo wrote: > When device is hot-unplugged, the device fd will be deleted in kernel. > Then in the progress of detaching device, if it try to close the fd, > it will cause a kernel crash, which shown a kernel null pointer error. If this happens, then it is a kernel bug and the kernel should be fixed. Working around it in userspace is not a great long term solution.