From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9806C43613 for ; Thu, 20 Jun 2019 06:04:25 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 947EE20B1F for ; Thu, 20 Jun 2019 06:04:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ToIolpbu"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="dXXjbg6f" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 947EE20B1F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9Mb5y1O2XofzbT6iB93aJfzEbj2084DbneAVcWIKOvQ=; b=ToIolpbu5A/P5K aITOAYtXI4SUZ7G+K/MzpcZTtvlYk2+XjkLL8rdiQo7hy+ALMopQiaNaeERVmOgSAxyJLFeuYqytd 7yKyePNpASzksccrkpCRmt8WVwFbZH7Z7zTZB8ZuTE+CZXV3IvqWtg72KawMVNYG4HTv2eXoFaoF1 KHCp0RqeDgfbNjSf+WEj8SKCxzf16TF1oqO/e3L4STHQwbU04uI72YpHhUWjj0ZB9100HUx1DhXDY xTYwiBn4PjzNghR724bqowjuXLVcF1pPDjr8GvG7bLhlHZPSX9TQB6AdvdOFPzroLEx7uFjbAEOL3 j4HJTvSimxeReiRVQRjA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hdqBE-0000g8-3P; Thu, 20 Jun 2019 06:04:16 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hdqB7-0000bh-LD for linux-arm-kernel@lists.infradead.org; Thu, 20 Jun 2019 06:04:11 +0000 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AF22720B1F; Thu, 20 Jun 2019 06:04:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561010649; bh=s7fZTgqFH3NZmot9rZYOLhowbisBqBLib+0qjjY1fcE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dXXjbg6fPa010WWUrLAekuYycmoUyAS3FSMzlK7yz7xM0Vcf8AuUHLP/IMJE5A/Xy nLxVEBwDX5Sq/n+ct1r/UHJg3O8PSpi+YpK8Qodak4EdaTyTz/bQwWfN5i+DGD/wvN Rt25PDXuyb1VPVGaPpdJn18nvspD3drRZAPaAq5o= Date: Thu, 20 Jun 2019 08:04:06 +0200 From: Greg KH To: Mathieu Poirier Subject: Re: [PATCH 23/28] coresight: etb10: Do not call smp_processor_id from preemptible Message-ID: <20190620060406.GD26319@kroah.com> References: <20190619195318.19254-1-mathieu.poirier@linaro.org> <20190619195318.19254-24-mathieu.poirier@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190619195318.19254-24-mathieu.poirier@linaro.org> User-Agent: Mutt/1.12.1 (2019-06-15) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190619_230409_732768_6F8054B5 X-CRM114-Status: GOOD ( 13.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Jun 19, 2019 at 01:53:13PM -0600, Mathieu Poirier wrote: > From: Suzuki K Poulose > > During a perf session we try to allocate buffers on the "node" associated > with the CPU the event is bound to. If it is not bound to a CPU, we > use the current CPU node, using smp_processor_id(). However this is unsafe > in a pre-emptible context and could generate the splats as below : > > BUG: using smp_processor_id() in preemptible [00000000] code: perf/2544 > > Use NUMA_NO_NODE hint instead of using the current node for events > not bound to CPUs. > > Fixes: 2997aa4063d97fdb39 ("coresight: etb10: implementing AUX API") > Cc: Mathieu Poirier > Signed-off-by: Suzuki K Poulose > Signed-off-by: Mathieu Poirier > --- > drivers/hwtracing/coresight/coresight-etb10.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) Again, 5.2 and stable. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel