From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:43434 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750774AbdFOJmV (ORCPT ); Thu, 15 Jun 2017 05:42:21 -0400 Subject: Patch "kasan: respect /proc/sys/kernel/traceoff_on_warning" has been added to the 4.4-stable tree To: peterz@infradead.org, akpm@linux-foundation.org, alexander.levin@verizon.com, aryabinin@virtuozzo.com, dvyukov@google.com, glider@google.com, gregkh@linuxfoundation.org, rostedt@goodmis.org, torvalds@linux-foundation.org Cc: , From: Date: Thu, 15 Jun 2017 11:42:04 +0200 Message-ID: <14975197241761@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: This is a note to let you know that I've just added the patch titled kasan: respect /proc/sys/kernel/traceoff_on_warning to the 4.4-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: kasan-respect-proc-sys-kernel-traceoff_on_warning.patch and it can be found in the queue-4.4 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >>From foo@baz Thu Jun 15 11:39:37 CEST 2017 From: Peter Zijlstra Date: Tue, 23 May 2017 21:53:57 -0400 Subject: kasan: respect /proc/sys/kernel/traceoff_on_warning From: Peter Zijlstra [ Upstream commit 4f40c6e5627ea73b4e7c615c59631f38cc880885 ] After much waiting I finally reproduced a KASAN issue, only to find my trace-buffer empty of useful information because it got spooled out :/ Make kasan_report honour the /proc/sys/kernel/traceoff_on_warning interface. Link: http://lkml.kernel.org/r/20170125164106.3514-1-aryabinin@virtuozzo.com Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Andrey Ryabinin Acked-by: Alexander Potapenko Cc: Dmitry Vyukov Cc: Steven Rostedt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- mm/kasan/report.c | 3 +++ 1 file changed, 3 insertions(+) --- a/mm/kasan/report.c +++ b/mm/kasan/report.c @@ -13,6 +13,7 @@ * */ +#include #include #include #include @@ -251,6 +252,8 @@ void kasan_report(unsigned long addr, si if (likely(!kasan_report_enabled())) return; + disable_trace_on_warning(); + info.access_addr = (void *)addr; info.access_size = size; info.is_write = is_write; Patches currently in stable-queue which might be from peterz@infradead.org are queue-4.4/kasan-respect-proc-sys-kernel-traceoff_on_warning.patch