From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752609AbcJJXcn (ORCPT ); Mon, 10 Oct 2016 19:32:43 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:39299 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752263AbcJJXcm (ORCPT ); Mon, 10 Oct 2016 19:32:42 -0400 Date: Mon, 10 Oct 2016 16:32:34 -0700 From: Andrew Morton To: Dmitry Vyukov Cc: Andrey Konovalov , Nicolai Stange , Andrey Ryabinin , Kees Cook , James Morse , LKML , Vegard Nossum , Quentin Casasnovas , Andrey Ryabinin Subject: Re: [PATCH v2] kcov: properly check if we are in an interrupt Message-Id: <20161010163234.d352d340f0bb1f28e727a9ad@linux-foundation.org> In-Reply-To: References: <1476115803-20712-1-git-send-email-andreyknvl@google.com> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 10 Oct 2016 19:19:11 +0200 Dmitry Vyukov wrote: > On Mon, Oct 10, 2016 at 6:10 PM, Andrey Konovalov wrote: > > in_interrupt() returns a nonzero value when we are either in an > > interrupt or have bh disabled via local_bh_disable(). Since we are > > interested in only ignoring coverage from actual interrupts, do a > > proper check instead of just calling in_interrupt(). > > > > Signed-off-by: Andrey Konovalov > > FWIW > Acked-by: Dmitry Vyukov > > This fixes a very real problem for us. > As per discussion in v1, other solution would involve auditing all > uses of in_interrupt() which needs knowledge about all drivers. OK, but I'm not seeing a description of what the problem *is*. Could we please have a complete description of the user-visible effects of this change, for the changelog?