Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp400892ybi; Tue, 2 Jul 2019 22:36:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtKo6608S099uKr5Xm210lJsuSGLjZeFVZDsYYtQPS5lh6zkmeMcF+uPedSFbLgHGGpLvu X-Received: by 2002:a63:df05:: with SMTP id u5mr34446519pgg.171.1562132160144; Tue, 02 Jul 2019 22:36:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562132160; cv=none; d=google.com; s=arc-20160816; b=QOJA3REKWx1WN+GQlLIVTDU17hDFZSn907pVeSdCcmYyEjW5jy1rrWOPt0AjX+R2ma cyOPzdwnrQKC7lKgvYahcDy8U23pQws5OzsLbh7htJM/ycuE2eRDyoOI7NBd8i8nJYi/ zkOxipgqnJROxdFvnAiD7uZknUts8BtY/CwrYPgukHwiaOB8qKyCODsEQkp81T/Ly2dt W09erXESUN6svbO6ki6GvDbp53GUaAEJrEcy0lkpPRXpJJzwR6wUCNKkbqanJdDOWzA8 dPA+A0tmyRfb6e55cUmCfpqcslc/7xs5rxoh6undpqSa5wRfiZJRfEdlE5MTsE6CIw7U 5HeA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=J92O1NIqH/vYDRZjQiW92fLeK0leVQa4byZBl7CHyL4=; b=tI7h6mrdxosKTGzUc1vinMb8OCKsr7/o5+qwimuOw486dBFqkK0QN+rWtX3kLY+Wn6 gfuqSSm704EeGxq0M7MzV//XkOxRWF2T7ygzN2fZ0+qsNr8l4hfEZLFq2amY+u7X3yy7 6qeptjcxA3NG+ZGELdZ35XDym0GKcaj5eKgS0O5x66zWUrwt/afgGGN757HU+qQA1dxf 9D1tLeh9HoXmDCCoFaTOLh3CjKWdh38MegcnYLBc8oYvB5e6puycGgXdN30Z7cxZptwR syVb+nYyUvN/dqK+ffkEdgT22gCL/1jeTmWrFcZd1iSFRyTHeK/OGfJc8pBxf/04zbY/ VjWw== 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 78si1200563pga.411.2019.07.02.22.35.44; Tue, 02 Jul 2019 22:36:00 -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 S1727006AbfGCFfC (ORCPT + 99 others); Wed, 3 Jul 2019 01:35:02 -0400 Received: from foss.arm.com ([217.140.110.172]:37998 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725943AbfGCFfC (ORCPT ); Wed, 3 Jul 2019 01:35:02 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 36FF42B; Tue, 2 Jul 2019 22:35:01 -0700 (PDT) Received: from [10.162.42.95] (p8cg001049571a15.blr.arm.com [10.162.42.95]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 14A2D3F718; Tue, 2 Jul 2019 22:36:52 -0700 (PDT) Subject: Re: [DRAFT] mm/kprobes: Add generic kprobe_fault_handler() fallback definition To: Guenter Roeck , linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: akpm@linux-foundation.org References: <78863cd0-8cb5-c4fd-ed06-b1136bdbb6ef@arm.com> <1561973757-5445-1-git-send-email-anshuman.khandual@arm.com> <8c6b9525-5dc5-7d17-cee1-b75d5a5121d6@roeck-us.net> From: Anshuman Khandual Message-ID: Date: Wed, 3 Jul 2019 11:05:27 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <8c6b9525-5dc5-7d17-cee1-b75d5a5121d6@roeck-us.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/01/2019 06:58 PM, Guenter Roeck wrote: > On 7/1/19 2:35 AM, Anshuman Khandual wrote: >> Architectures like parisc enable CONFIG_KROBES without having a definition >> for kprobe_fault_handler() which results in a build failure. Arch needs to >> provide kprobe_fault_handler() as it is platform specific and cannot have >> a generic working alternative. But in the event when platform lacks such a >> definition there needs to be a fallback. >> >> This adds a stub kprobe_fault_handler() definition which not only prevents >> a build failure but also makes sure that kprobe_page_fault() if called will >> always return negative in absence of a sane platform specific alternative. >> >> While here wrap kprobe_page_fault() in CONFIG_KPROBES. This enables stud >> definitions for generic kporbe_fault_handler() and kprobes_built_in() can >> just be dropped. Only on x86 it needs to be added back locally as it gets >> used in a !CONFIG_KPROBES function do_general_protection(). >> >> Signed-off-by: Anshuman Khandual >> --- >> I am planning to go with approach unless we just want to implement a stub >> definition for parisc to get around the build problem for now. >> >> Hello Guenter, >> >> Could you please test this in your parisc setup. Thank you. >> > > With this patch applied on top of next-20190628, parisc:allmodconfig builds > correctly. I scheduled a full build for tonight for all architectures. How did that come along ? Did this pass all build tests ?