Received: by 10.213.65.68 with SMTP id h4csp1701462imn; Mon, 26 Mar 2018 12:53:43 -0700 (PDT) X-Google-Smtp-Source: AG47ELsx7tFfOInNoA1+Grsbkp+M4Q2qcX7gxaFlA+P6TNzgzav4ktRFAh+M/+LlrxAt/+5nRMG4 X-Received: by 10.98.232.25 with SMTP id c25mr11020225pfi.35.1522094023449; Mon, 26 Mar 2018 12:53:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522094023; cv=none; d=google.com; s=arc-20160816; b=wNtvLLeWVP1TJHeDcHgROHRJQEM2GCDsgxoOJGwuFoo8IjJqjpYDhOCHiXn8B9b28v 4wxtCUKqWPVfOzrU1Oa6HJBQsb7hNjWwuhwSvpCDkx30qsvQwECi3E3OfShKsk1UimP2 zRwZb5W7Uwi8HVnrwECn/9pdsYcThUZ0w2Zz5bkNZrZpp16x9ApO13HsbVHppmGIFwBH UoGo9k5+zL9P21BL/ENB/fRGO7fn+GSHkpGhS/FPEGAMVpOSsfZhvvaN1ZPqzodJ7g2G ttrL8XrjOTgiXqeR3e2py4YRvl2WYiI2D7A1sVivUgVSHAAt/zoskpAafRLnv+D6GVDP IR+Q== 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:subject:cc:to:from:date :arc-authentication-results; bh=vGDwVZv4UHPohJ3wAm5JdwSUbe22IMYKd5Sba28lzEE=; b=zo7DKRGlS5RX1ZaC5yyCGQLcl3eyqj3YfnhWnmqOdyj2xbQF2Jz51LarkkpUmGa/3N rT03G6/Rv9rcLNKCesXtv6fbr+wym83heTsfdEF+6eDPjqTmpNnhxGfTC+MXBBYruL7l X0qlYAtcgYY+fE391IKVSAYUts7jmC2BGjrO+JXzuh8EhkiVghiInrOGMj3IXPKJL/1a b67L8y7ZAyKJKUcCzih0eXVjbwMtmlboSiWzwG6EKh1hTSeWejQSClzk8SUdNQSn4Lu4 Sc7+L5tb0bC4+QLXpsCo2PKo1Z63U9ZPfRbkt/V2ASBNrMVqnktkK8dJgXTwi16Zy0hW l7sg== ARC-Authentication-Results: i=1; mx.google.com; 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 4-v6si15187574plh.540.2018.03.26.12.53.27; Mon, 26 Mar 2018 12:53:43 -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; 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 S1751980AbeCZTwb (ORCPT + 99 others); Mon, 26 Mar 2018 15:52:31 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:41640 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751076AbeCZTwa (ORCPT ); Mon, 26 Mar 2018 15:52:30 -0400 Received: from akpm3.svl.corp.google.com (unknown [104.133.9.71]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id CF6771073; Mon, 26 Mar 2018 19:52:29 +0000 (UTC) Date: Mon, 26 Mar 2018 12:52:28 -0700 From: Andrew Morton To: v.narang@samsung.com Cc: Dmitry Vyukov , Maninder Singh , Andrey Ryabinin , Alexander Potapenko , Kate Stewart , Thomas Gleixner , Philippe Ombredanne , Greg Kroah-Hartman , Vlastimil Babka , Stephen Rothwell , Michal Hocko , "vinmenon@codeaurora.org" , "gomonovych@gmail.com" , Ayush Mittal , LKML , kasan-dev , Linux-MM , AMIT SAHRAWAT , PANKAJ MISHRA Subject: Re: [PATCH v2] mm/page_owner: ignore everything below the IRQ entry point Message-Id: <20180326125228.1f40abb9a52f3674b1491aea@linux-foundation.org> In-Reply-To: <20180326141717epcms5p4064a0fd4f594b2ff434f9b05cd1ea5ad@epcms5p4> References: <1522058304-35934-1-git-send-email-maninder1.s@samsung.com> <20180326141717epcms5p4064a0fd4f594b2ff434f9b05cd1ea5ad@epcms5p4> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 26 Mar 2018 19:47:17 +0530 Vaneet Narang wrote: > Hi Dmitry, > > >Every user of stack_depot should filter out irq frames, without that > >stack_depot will run out of memory sooner or later. so this is a > >change in the right direction. > > > >Do we need to define empty version of in_irqentry_text? Shouldn't only > >filter_irq_stacks be used by kernel code? > > We thought about this but since we were adding both the APIs filter_irq_stacks & in_irqentry_text > in header file so we thought of defining empty definition for both as both the APIs are accessible > to the module who is going to include header file. > > If you think empty definition of in_irqentry_text() is not requited then we will modify & resend the > patch. > filter_irq_stacks() is too large to be inlined. The CONFIG_STACKTRACE=n versions should be regular C functions, not macros. But stacktrace.c decided to do them all as macros, unfortunately. in_irqentry_text() is probably too large to be inlined as well, and should return bool. Declarations for __irqentry_text_start and friends already exist in include/asm-generic/sections.h (and, for some reason, also in arch/arm/include/asm/traps.h) and should not be duplicated in include/linux/stacktrace.h.