From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753595AbcI0Hec (ORCPT ); Tue, 27 Sep 2016 03:34:32 -0400 Received: from merlin.infradead.org ([205.233.59.134]:39200 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751237AbcI0HeY (ORCPT ); Tue, 27 Sep 2016 03:34:24 -0400 Date: Tue, 27 Sep 2016 09:34:09 +0200 From: Peter Zijlstra To: Dmitry Vyukov Cc: Andrew Morton , Andrey Konovalov , Nicolai Stange , Andrey Ryabinin , Kees Cook , James Morse , LKML , Vegard Nossum , Quentin Casasnovas , Andrey Ryabinin , Thomas Gleixner , Ingo Molnar Subject: Re: [PATCH] kcov: properly check if we are in an interrupt Message-ID: <20160927073409.GN2794@worktop> References: <1474642273-112248-1-git-send-email-andreyknvl@google.com> <20160926163226.35cc76eb1a06083440cbb86d@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.22.1 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 27, 2016 at 08:21:32AM +0200, Dmitry Vyukov wrote: > > I suspect there is a bunch of places that use in_interrupt(), but mean > the same as KCOV wants -- am I in interrupt? and not am I in interrupt > context or in normal task context but inside local_bh_disable(). For > example, why does fput handles closure asynchronously if the task > called local_bh_disable? Agreed, but it would mean auditing all in_interrupt()/irq_count() users.