Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1164632imm; Thu, 5 Jul 2018 16:22:34 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeNnI1pLcXJqwkp4EirXgvPSi190mMB+BrmfIoW0gojmZbvigFjMuGscHgclNDNL3yIh2Qy X-Received: by 2002:a63:144b:: with SMTP id 11-v6mr5431392pgu.219.1530832954459; Thu, 05 Jul 2018 16:22:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530832954; cv=none; d=google.com; s=arc-20160816; b=d0RDvcU7o8tsQ4nTkEWU3+HDkMYoIrxNNoAsFXkl64zrzliXAk1RSvLZac+irkmcGZ 9FzuDTsYz1X54t/xtes3zGXH5PmaUEdRb3+mXw7FnVyar2xHLSUG8EnZpAM8/jFYIHev S7NGCoDoY9B33WWV+6MF8drJwB9pBxyyXuofwnCWEByHoxoz28fHQf5ztw+loqHcUirs MhGeG+Zg2nMoQ154sIRbEIK0lQGWWuB34ADIfTUCEYVIwOsNO8aS8yfMM1FMX0DSNhLe QDLFIlSGiTXktmO5+Yr7mgkdf8AXT3AcOHwVcNF2YZrnkmaa54nP0cAoqg7AvtQAQMeJ C5iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=6BLknsspVdOZn6wfZv5aB6wIczY9bfOci0iQoWBSnKQ=; b=PbBqb3iZ2zRvi0Dd33+XXvM57LDLKanuiaFB2w6yT67rcE3CaEO25An3QUrwt+mgMR qlqDI6RglgxRplNG5Cnt2n1XAKJZNXSTLkMs2jO7uC/xssInUaQzmVL1i+nMP0utffFn I9W4dwtNbKJm8Bm1VnnuigeO+9K3oK/O3aoXy3nGq9yLSNJ3O1jyt2piw7QLi7xj5v8p 8hnsO77ejKfD0c0HrB/9OVf8Mm6w9lIIyg8smqRS/6YhHF8fmQfOr99jc7QE2fuSvIvk 8D2M5fu5IqcTzfhd6WifGYcCRv2RDkdY6a9KW8ugmcETxfgQgKVCmye8iD9KfjotD3wB +U9w== 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 n70-v6si2514214pfa.320.2018.07.05.16.22.20; Thu, 05 Jul 2018 16:22:34 -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 S1753551AbeGEXVK (ORCPT + 99 others); Thu, 5 Jul 2018 19:21:10 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:58726 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753013AbeGEXVJ (ORCPT ); Thu, 5 Jul 2018 19:21:09 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1F7CA419932C; Thu, 5 Jul 2018 23:21:09 +0000 (UTC) Received: from [10.72.12.18] (ovpn-12-18.pek2.redhat.com [10.72.12.18]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 157E376D0; Thu, 5 Jul 2018 23:21:05 +0000 (UTC) Subject: Re: [PATCH 1/2] uio: change to use the mutex lock instead of the spin lock To: Greg KH Cc: linux-kernel@vger.kernel.org, pkalever@redhat.com, pkarampu@redhat.com, atumball@redhat.com, sabose@redhat.com, mchristi@redhat.com References: <1530808048-9494-1-git-send-email-xiubli@redhat.com> <1530808048-9494-2-git-send-email-xiubli@redhat.com> <20180705163338.GA14941@kroah.com> From: Xiubo Li Message-ID: <24daa19c-eb1b-014e-c00f-8c8c3da0d935@redhat.com> Date: Fri, 6 Jul 2018 07:21:02 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180705163338.GA14941@kroah.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Thu, 05 Jul 2018 23:21:09 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Thu, 05 Jul 2018 23:21:09 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.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 On 2018/7/6 0:33, Greg KH wrote: > On Thu, Jul 05, 2018 at 12:27:27PM -0400, xiubli@redhat.com wrote: >> From: Xiubo Li >> >> We are hitting a regression with the following commit: >> >> commit a93e7b331568227500186a465fee3c2cb5dffd1f >> Author: Hamish Martin >> Date: Mon May 14 13:32:23 2018 +1200 >> >> uio: Prevent device destruction while fds are open >> >> The problem is the addition of spin_lock_irqsave in uio_write. This >> leads to hitting uio_write -> copy_from_user -> _copy_from_user -> >> might_fault and the logs filling up with sleeping warnings. >> >> I also noticed some uio drivers allocate memory, sleep, grab mutexes >> from callouts like open() and release and uio is now doing >> spin_lock_irqsave while calling them. >> >> Reported-by: Mike Christie >> Signed-off-by: Xiubo Li >> --- >> drivers/uio/uio.c | 33 ++++++++++++++------------------- >> include/linux/uio_driver.h | 2 +- >> 2 files changed, 15 insertions(+), 20 deletions(-) > Any specific reason you did not also cc: the author of the above patch > to review this one? Ah, no, sorry for that, I just used the following script to get the mantainer and the list, and here was to late at night and I was a little dizzy forgetting that: [root@gblock2 scsi]# ./scripts/get_maintainer.pl drivers/uio/ Greg Kroah-Hartman (maintainer:USERSPACE I/O (UIO)) linux-kernel@vger.kernel.org (open list) [root@gblock2 scsi]# And all the others are my team member, because this is a high priority bug fix, so I cced them to let them know the status of this patch set. I will resend it right now. Thanks very much for you reminding of this. BRs Xiubo > Please fix up and resend. > > greg k-h