Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp255978imm; Fri, 6 Jul 2018 19:06:44 -0700 (PDT) X-Google-Smtp-Source: AAOMgpecsGQSRRO/JuONG3Zm6HgiAiWZrBhXkFYco2W5n8pa5LOTYRukB7boV7iQyfoqD0gmHFFW X-Received: by 2002:a62:2ad1:: with SMTP id q200-v6mr12789808pfq.70.1530929204251; Fri, 06 Jul 2018 19:06:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530929204; cv=none; d=google.com; s=arc-20160816; b=UA23/FJkkC0zUhVQTmxFJ0rFb6yCIg5Ycvhm5wK/V3vWM87BkXZkusrkkfatnkwQUm eLlwtukagCEw4Vrp1EMuNCfsQZvsHQ5FEYjvtQyHIB/gIk+Zgil304jHWUgNoIH+Zde9 wi2or+GMTqRjBBJVzxPW9tRVUV8tZQM7+SRKNgHqIxUHmtuUC7ZhImt7BTJtq5b11EAG k3Y84eOwl0DqhV3PDVdlTyOjaMeVcs7kabZ9oE5rIGQoPCifhwbCC2F5TGMVfpC4aDbh XackzAko5SiiS+0p+pFDzwyNn+XQBHM8AL/MOTwyonJ62xKmQU+WBknzHBy87f9B8hCc OVeQ== 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=pHaIz31P+ea/dn1Md0RJu41WnlK9l9reXw/EzWLf7n8=; b=Z20gTPNMWwPVWTbzS/yml/DPJOZcMMOIX91857Ji7nytuGbPbrBf8HUWXQQfgPd7yQ E3GF0E/TZ/C6956L+oKrHfQW50Q8hYvHmEfLncilOXClZT33Lf/HTGeVJTQCkSsTZiOg j5kTDriVfoVttf1y0rGGl48/JaceqXQblPG2RBR8b4WfJtFnbic/iuCmb+EOHzlCdQEU L/GeCqiIrMCNCwk528O1pSivyVVLv6VgYAUQkXIKigScLJkoyu63v2LyjAmqHZSrT9Cy HfkoGfrK5Qw+2cuxxqXA87O0IlSDSM0aZjjxr4jBt/NuGTDvxiGJdEmsSsU+0TkektmV aSzw== 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 t24-v6si9154398plr.240.2018.07.06.19.06.27; Fri, 06 Jul 2018 19:06:44 -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 S932461AbeGGCFs (ORCPT + 99 others); Fri, 6 Jul 2018 22:05:48 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:56978 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753816AbeGGCFr (ORCPT ); Fri, 6 Jul 2018 22:05:47 -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 1C08987A6E; Sat, 7 Jul 2018 02:05:47 +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 6FB4F215688A; Sat, 7 Jul 2018 02:05:41 +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 v4 0/3] uio: fix potential crash bug Date: Fri, 6 Jul 2018 22:05:36 -0400 Message-Id: <1530929139-13652-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.1]); Sat, 07 Jul 2018 02:05:47 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Sat, 07 Jul 2018 02:05:47 +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 V2: - resend it with some small fix V3: - switch to use request_threaded_irq V4: - remove useless checking code, Thanks Mike. - Thanks very much for the review from Hamish and Mike. 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 | 139 +++++++++++++++++++++++++++++++++------------ include/linux/uio_driver.h | 2 +- 2 files changed, 104 insertions(+), 37 deletions(-) -- 1.8.3.1