Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1298577imm; Thu, 5 Jul 2018 19:58:22 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcBgTqgVvyjEKL5t+YYhgOBHnEG8jv4yeSobFjR1xZHFKRdSu6Q+uSy8bZ0n51tGSJdPBke X-Received: by 2002:a62:1894:: with SMTP id 142-v6mr8886346pfy.49.1530845902253; Thu, 05 Jul 2018 19:58:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530845902; cv=none; d=google.com; s=arc-20160816; b=qD5q3TZNNZgqEXYwLLNzg6d68grPY3dyPUymTEVtN3zTiOrjRMZcKo9dPfPNpbwB7s muSP6KxeCgiCb732qPiwjmtp4R1vuQCL4TKNQm8rhvJsv79IvJQ2AR9IAyPYENvyjjzx r/oGnZHZYrzvoatABrHodcDZ66ycd7HrumwzsILMG0XmLiTzMoroe7aXVgYGnI8qR9eo uPn38db2mQ8Rk21gUYq7Nh5O9kN8UeXfscSYffYo0M7+wYysM9mSD8Ts8zFlF74CsWoE cga5rzLaUsoYsNgyFZFcHAp3ajkqvP86PMCjRPNLnxh/R7W1qKLvkLRpWflQ/s2CkINZ Csnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=zCmHyt8O68NTyjImtueDultGFQ2hIgKIi10k41ypo5M=; b=liQw33G1ac/nslmA0ccJnBHkBfyDxC3bKY7eSfZN8kvprauGe+cs46Y31oq4R8paIU ktevwquHVqBbGdEXmbwz0EYE3yPfqMFAMbJQMsIv/QgcWrWsv3E0gceMjc1B7lNrXP6X GHvzDoXAuNaumfOX61xC+cd1Eg9cO2kOjm9UJQS3bwfvpsjtRzDTxG/Bs83zJGi+dezj 4cIAWzUBFtur08Jiw5ze58ydFNiZKBKuyuYbP4hwOkeNTABtPyLCmY+oZALA1D2WDoFC pPHSjii8AC8SZQBD9AASM+8b32D55gVpv7xCVTm63DD8wkF0t325W2bbAUtVfL1gfp56 JlOQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d14-v6si6804922pgg.423.2018.07.05.19.58.08; Thu, 05 Jul 2018 19:58:22 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932161AbeGFC5Z (ORCPT + 99 others); Thu, 5 Jul 2018 22:57:25 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:35326 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753770AbeGFC5Y (ORCPT ); Thu, 5 Jul 2018 22:57:24 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C309A4010216; Fri, 6 Jul 2018 02:57:23 +0000 (UTC) Received: from gblock2.localdomain (ovpn-12-18.pek2.redhat.com [10.72.12.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id 31DE32166BA9; Fri, 6 Jul 2018 02:57:18 +0000 (UTC) From: xiubli@redhat.com To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org Cc: hamish.martin@alliedtelesis.co.nz, jannh@google.com, pkalever@redhat.com, pkarampu@redhat.com, atumball@redhat.com, sabose@redhat.com, mchristi@redhat.com Subject: [PATCH v3 0/3] uio: fix potential crash bug Date: Thu, 5 Jul 2018 22:57:13 -0400 Message-Id: <1530845836-49101-1-git-send-email-xiubli@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Fri, 06 Jul 2018 02:57:23 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Fri, 06 Jul 2018 02:57:23 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'xiubli@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xiubo Li The V2 patch set maybe not post successfully, so post it again with one new updation. V2: - resend it with some small fix V3: - switch to use request_threaded_irq Xiubo Li (3): uio: use request_threaded_irq instead uio: change to use the mutex lock instead of the spin lock uio: fix crash after the device is unregistered drivers/uio/uio.c | 151 ++++++++++++++++++++++++++++++++++----------- include/linux/uio_driver.h | 2 +- 2 files changed, 115 insertions(+), 38 deletions(-) -- 1.8.3.1