Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6837133ybi; Mon, 22 Jul 2019 02:33:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqx+kPib6dS36NFuQc8AnXtTL7nbDn4qlb7bc3qPRjQksm6Xlf3yJ2SeurQXi/jNrqDWUl1Z X-Received: by 2002:a17:90a:3aed:: with SMTP id b100mr76858617pjc.63.1563788008816; Mon, 22 Jul 2019 02:33:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563788008; cv=none; d=google.com; s=arc-20160816; b=YOllym5wMVJLq3IIDAnx/TKeXJ5fx2swyg7o+vafVIq95xwTlDvXvSgXg1/VWanXqS 6NK7e3GtX8BJeT/8/xRZijY+Vv21nkEuIAhIQu8FGvNrU78AyMOdTiuhLQsG97knTfrk rKj3HxQ9iegvLzt4nHMxfJveiYY3wILqCqeO7QDkM59AN8yj832SNEQsj3AXJZmQ7z5f OvcSL/v1Su+PzSMDHd+3SrTrdLE8HL6l5rHpz+q+3kD7bXfbAth/Vyrco11c9TbypMXS ej0LKIDomKahu4t2PADOkBNAfMZogITA+eKhz5ONxaa05/gUKdxqJkHkUMGcfLwQxJ7o /4JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GDrviT7pYkZ/XECogfqjELwBhZ+0VUiIqMlWTI/BqbY=; b=O8v0Qq/ibgXnQW6ikSm0m2AngIffZ+SAIroKt7D6/+3kc1jmWnl0GwrZ/F2gZnWUR0 6jb29Eplryr13UZUEr75ivwscJX3mBAmc4m+W2j1RZ4lrMWLqItAeb2sWVUgje+pWFq2 ErEQaWrBTgHYlMG9kxkazrl273XU7bnZ6W+D89OTNz6QnzSxOeRWaTRGaUFJSVk00YkY Yx0SPf/cIO4fJ01z5hoti3xPCiLRu3EMspNI/XDlX46M4G/XiozDUmROzyDtR582Tb6I PVfwUoQ/tYuTvWma6vgixiQSRQA0BgCYPLoINgprDj8d6+k3Kpb8sZTGsNgdOo/rj280 48xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@etsukata-com.20150623.gappssmtp.com header.s=20150623 header.b=Y8NnNlV6; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s64si10456911pgs.464.2019.07.22.02.33.13; Mon, 22 Jul 2019 02:33:28 -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; dkim=pass header.i=@etsukata-com.20150623.gappssmtp.com header.s=20150623 header.b=Y8NnNlV6; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728279AbfGVIeD (ORCPT + 99 others); Mon, 22 Jul 2019 04:34:03 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:42213 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727658AbfGVIeD (ORCPT ); Mon, 22 Jul 2019 04:34:03 -0400 Received: by mail-pl1-f193.google.com with SMTP id ay6so18896191plb.9 for ; Mon, 22 Jul 2019 01:34:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=etsukata-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GDrviT7pYkZ/XECogfqjELwBhZ+0VUiIqMlWTI/BqbY=; b=Y8NnNlV6vHtKnC0JQOl7kdtd4sJl766kIFaibiDus5Ij7SsZ2W42vmpKsVu1WWvP20 Xk3HkjDyjND1tb37pNM3O9p+xa796EuzLelGAMgSRlQLjwzIwyx4r7k6yE/KYDaVVeDA 9DS/kphQOh+zI/3l7oG5TBrAljL49eCmStOTWokIOflmy5VgDOfGy8uEf+DxhODr54KQ XWYz2KR0ViTbnJ0vvwFNz/01BPjF4m9rZdFf7rzo2xLFlAVIjHFWXBX/BPRA95+OmAVl 8j+m+a5rAiMHdmc584/y5ZOgjs6VkuMLJXc3C9s6GJTRpHabTG4RED+EgHc0BvOpJWe4 i7Cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GDrviT7pYkZ/XECogfqjELwBhZ+0VUiIqMlWTI/BqbY=; b=U+mAabR4IYC07xvK0zRQrB8JX2/hWo5N9JJ3uu/UY59M0dCi55YSAZIi1l63Fy2jtV IkwmKHNn0EKukgkJr+Wo1pBsqUxwdyVMeHIaIba0oZB06mNjUralVHFaDZcQkaUIMfyQ U/+up1VZDrpn1vF+jQiIW1dZhXtPjy2Zgkp+rGuyMv7p6uO2ii7ilor90TK5wQD97a0r vcuix6CoW+3q052FAM5oAZWbpLHN7AzqKI8+iRRny5ak7cPm0ikfkvM8Xmpv3WMgpszk Q30Ij2SncAB/3aSodcOm2q3JbpSCAMIJdJUfZg+LWTIYZFqaasBVyoiPChp+NEeOOUc6 q/lg== X-Gm-Message-State: APjAAAUZ98++iOb9HmT52/Wozbxm8Vo6L7iyjV4HVO2d3U8NKMp2MJT1 U6zedazj8RDOc2hAmv3YlmI= X-Received: by 2002:a17:902:f082:: with SMTP id go2mr77561475plb.25.1563784442391; Mon, 22 Jul 2019 01:34:02 -0700 (PDT) Received: from localhost.localdomain (p2517222-ipngn21701marunouchi.tokyo.ocn.ne.jp. [118.7.246.222]) by smtp.gmail.com with ESMTPSA id n89sm51344032pjc.0.2019.07.22.01.33.59 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 22 Jul 2019 01:34:01 -0700 (PDT) From: Eiichi Tsukata To: mhiramat@kernel.org Cc: juri.lelli@gmail.com, linux-kernel@vger.kernel.org, mingo@kernel.org, peterz@infradead.org, rostedt@goodmis.org, tglx@linutronix.de, torvalds@linux-foundation.org, williams@redhat.com, Eiichi Tsukata Subject: [PATCH 0/1] x86/stacktrace: Fix userstacktrace access_ok() WARNING in irq events Date: Mon, 22 Jul 2019 17:32:15 +0900 Message-Id: <20190722083216.16192-1-devel@etsukata.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190621231232.259536faeea4b19cf39a7688@kernel.org> References: <20190621231232.259536faeea4b19cf39a7688@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello I also hit the same WARNING previously repored by Juri. Hiramatsu san's patch looks good to me but I found that perf and oprofile code do the similar thing by just directly calling __range_not_ok(). perf: perf_callchain_user()@arch/x86/events/core.c oprofile: dump_user_backtrace()@arch/x86/oprofile/backtrace.c So for simplicity, I wrote a patch to fix the warning as other codes do. Ideally, we should merge these similar stacktrace codes(perf, ftrace, oprofile) into one, but this time I made the minimum fix. Eiichi Tsukata (1): x86/stacktrace: Fix userstacktrace access_ok() WARNING in irq events arch/x86/kernel/stacktrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.21.0