Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp493758ybm; Thu, 28 May 2020 08:00:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsO3t531aF8djNvf8WU0n/n7DcRRvAahjUL8OPvRTZHgBFQossS9fXwr76gwrzk9QqJeZQ X-Received: by 2002:aa7:cad3:: with SMTP id l19mr3647562edt.335.1590678022817; Thu, 28 May 2020 08:00:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590678022; cv=none; d=google.com; s=arc-20160816; b=cROXmDe/O0dm5Hp55Ru71emNkCIbOH51Z8qjGANaJdR610vlo9m3bBiALpDP736ZZU Qq5jeHKovOCHydpQmpckrnO/pToGTUTUuiLuvB04MMITdIfSVno0qXKkVNgwpDnfAkFN bpBSDxwHu7yL8tZiNDqka8mP1fAXEqpOHZtDsi77t6kTPdo8MGzFcRMYtcoc/tpz31UC +LdyZQYfSKY02VveuCOltTOA6awhnON2Ud8MI11fxU7PDHNB6LAmEA+1ZFNHloWYdqv9 b2dkaLd3tYIlXX6eGsmIGLtwhnnme2mQ9HF0UDMVpnWyhDmlzo8F+HALBDcpbB/s2Kvl WPgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=XfDBa6L5beYtY9Mm6rzbZ08MMV6LAgrWZgziccfPExk=; b=DgREPU8h0rwk4etBc1CXW43JmRcfZGt4CnMzQE9OAg9bV42z4zhVc+cOn6eDJ/Q1Ke Qg0ci9aI5am3BnP9ZHOvFTpGUY5Zkm0DmmWwg3AYnAWM+3J3CEzvh5SW2MW5rv4FbAu1 bibvrCUpCUEhLYc5WNfLf1XzHSSjk6P5FzD04wVrwGFtQapFhMQpLTGKfWeJ6j5iSM1/ FEvbgMfdwkior9BQuZ1HKC4P/7+ar3tGRvsdX4Cv2H6vYiGTIIMXuVQ70olfHmwsLu9U zaFPclcjbVqDe9fV6hPeE9KSuhrCAcLzw7WDgTDIRTyiLHq2GFZ/XmErE84f7i2Eft6B QdqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=2hjQjRWx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u3si3583075eja.573.2020.05.28.07.59.57; Thu, 28 May 2020 08:00:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=2hjQjRWx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403790AbgE1O6P (ORCPT + 99 others); Thu, 28 May 2020 10:58:15 -0400 Received: from merlin.infradead.org ([205.233.59.134]:37342 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403773AbgE1O6D (ORCPT ); Thu, 28 May 2020 10:58:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=XfDBa6L5beYtY9Mm6rzbZ08MMV6LAgrWZgziccfPExk=; b=2hjQjRWxqtCnbGeD8fBkZSGqOy HJNJVsY4UHmFTBSAiHibHn+yESXpMZIHT8lrOtHuXQeqa9IqGo0948KIWACXK+La1VlTKioEj4ThK MPw11b4tERh9bXYPPXs3vMD4BQhE49MYn3g+nZfYBY5806qkTRW/CJdd4QSeT/MIIkgqVNkemYNQ5 TRfqk9DTiRz41a9cjBq+nxS8hlvISxtENsvmD4tr8vhdMRigKJITZzK8varrK6BlSaaZMNf2hQ/3o aueutvbdJDWsrqcED1JGLETAHBAW6iZ/uX4fafsdxIP9Y68nzp5mBWN6QJQeAoz7IZLMgNnCDPSMT DnBXLzjg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jeJwS-00037f-Sp; Thu, 28 May 2020 14:55:33 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 7270F301205; Thu, 28 May 2020 16:55:30 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 555032B9FB566; Thu, 28 May 2020 16:55:30 +0200 (CEST) Date: Thu, 28 May 2020 16:55:30 +0200 From: Peter Zijlstra To: Josh Poimboeuf Cc: Qian Cai , Andrey Konovalov , Andrew Morton , Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Leon Romanovsky , Leon Romanovsky , Randy Dunlap Subject: Re: [PATCH 2/3] kasan: move kasan_report() into report.c Message-ID: <20200528145530.GG706495@hirez.programming.kicks-ass.net> References: <29bd753d5ff5596425905b0b07f51153e2345cc1.1589297433.git.andreyknvl@google.com> <78a81fde6eeda9db72a7fd55fbc33173a515e4b1.1589297433.git.andreyknvl@google.com> <20200528134913.GA1810@lca.pw> <20200528143341.ntxtnq4rw5ypu3k5@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200528143341.ntxtnq4rw5ypu3k5@treble> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 28, 2020 at 09:33:41AM -0500, Josh Poimboeuf wrote: > On Thu, May 28, 2020 at 09:49:13AM -0400, Qian Cai wrote: > > On Tue, May 12, 2020 at 05:33:20PM +0200, 'Andrey Konovalov' via kasan-dev wrote: > > > The kasan_report() functions belongs to report.c, as it's a common > > > functions that does error reporting. > > > > > > Reported-by: Leon Romanovsky > > > Signed-off-by: Andrey Konovalov > > > > Today's linux-next produced this with Clang 11. > > > > mm/kasan/report.o: warning: objtool: kasan_report()+0x8a: call to __stack_chk_fail() with UACCESS enabled > > > > kasan_report at mm/kasan/report.c:536 > > Peter, this was also reported with GCC about a month ago. Should we add > __stack_chk_fail() to the uaccess safe list? It calls panic(), which I suppose is pretty safe, it kills the entire machine dead :-) Ok.