Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp871117ybi; Wed, 3 Jul 2019 06:00:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxoD5DTpgEUpYxTuQF59Rbq8RDyXzgOvv2AugLiwxCI7f91j6dhlJdJVphvLbxcOGKAAEp X-Received: by 2002:a65:640d:: with SMTP id a13mr27621350pgv.256.1562158855709; Wed, 03 Jul 2019 06:00:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562158855; cv=none; d=google.com; s=arc-20160816; b=ejHbxNmEYbQb4FuN2pFdyQ5xglCXVq5r1Ks6rnhri0WLMQF0ewZyNEGvct91nO/K2O MBEraPQe2HdkVL6wMSbODKIviR0cT2FeiMKr5P+VCs8zN0Ges1f/ZNa47QatYbjh33VZ Vd5O6gkXEqtWLznuzrj5r1tDcSNQZu0Mj/2ulRrXvvufLDYZlIv0C4fDb+fOYbUamqIG NFpCWtIx/OmHTfxjF1kdh7OYO0ahr2OGIP8WBJAvqrXOq0Tz3FRCjurtKAcn4E1RLxdO mWCIl7KDGFVDdSUloiHwpkX5GvGQQ6kM+SWNDjP+pAMvlUuCvTylTGwYOf12d44Q69wv 4d3A== 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:dkim-signature; bh=ouWnXLxg4ztxXDt/TZujciYyAwrslehJzaThxzlNGEc=; b=m4UbMnTu8WM8Sr4f9fa/uz0SidSJ0TjQKbbdf8ZwX0YWFgsVITOuwr0AiroREC1yR/ hIUDfmBQ/d9Q/YL+eHyca7AVM0cbPGBdT/m0RM/+RBX2MTd2Cpz/HaR399xwfmTkRgPB NReiLx4ED7Z1uxmPB80IVRCF4alGZcxqEO8wt0UBM+vi2md+sp20Ixzvd5DXtZgm69Hx 1mcTp9A5su5Qc86uA0Dl1d4CS1+9FtfWp35L90quQeM01RzxsZxu98BAhnWB6hzj1AWZ lhnIxgeUkB6PjcAfUn4m4beZ10G7Pm3nOGHQVViCxLJ46Uf7CDvN7k7Mw0euCrY9GQH1 KPXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=HGdp+1HC; 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 j7si2533583pfi.10.2019.07.03.06.00.40; Wed, 03 Jul 2019 06:00:55 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=HGdp+1HC; 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 S1726621AbfGCM7F (ORCPT + 99 others); Wed, 3 Jul 2019 08:59:05 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:35981 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725847AbfGCM7F (ORCPT ); Wed, 3 Jul 2019 08:59:05 -0400 Received: by mail-pg1-f195.google.com with SMTP id c13so1223846pgg.3 for ; Wed, 03 Jul 2019 05:59:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ouWnXLxg4ztxXDt/TZujciYyAwrslehJzaThxzlNGEc=; b=HGdp+1HCA6NLpYs1SV4MGO79EIiZsu2RxQpweguODv+FXyPE610/hIXbBrjYbhUpaa x8cSkuvCPLc5FMRap0UqSVSd8QTlrYvuAmYmNHFzazFt830f1bztjpvxWMa9lCV+SiLB FouMvabY6r1nYWSSJ8LDrv9/uZcWZk1Go0iSwjOCTZSo+nyPw3dsgakWDt+UDPDn+lDt tIszfU/UB97eOYB+s2UqZjvRHvjnvlCiWz+N6+rxuyY+5cmIz4H5l0l3JNTC4pL8M0Hw f7PfxA6BoLuhaVUoS6/ZUCVvTY6F2IdFjzGyEnViDCrfXplSlEy0US/iHuv8zHQhYJBd VnWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ouWnXLxg4ztxXDt/TZujciYyAwrslehJzaThxzlNGEc=; b=VuECFFV3ZFVozWcoOf2joJ7mmYrLKrOgXntmyXaIleKe6Yrp219LRTUs32FkE4TGiA ONR/KdVKK1Tiy1e6NY6tGaF8tWCERQq/Ec1z8epqJur2bK2rZ4dV+cg+oKYGgY9x01Ye 3fIYtyZvra+758IGfkNQxom1bbE10ZsOWOMeNuzDYR3QBTDA+TUpzqY6XVS+o0onWHhT bB8EJQ6NUOs/jZW6RbFvrQ/DI1tdgGT+zEm/hpYG3ShrOtpl0PxNUiti1ke/5lO2G+Nt ZPtsqG6Cno1IaOfMNtrgpkr4W0KhJorRlxmmTZQWIoE3OcY4mzFWOk/VooaziqAzovej um8Q== X-Gm-Message-State: APjAAAWSJSgY1qqtS8c3WsgmRdfIQ5wXoKauzGmptL0GSHwev73QsGF3 RQqjdZJf+xtOG0VAvBqXKCE= X-Received: by 2002:a17:90a:3463:: with SMTP id o90mr12935683pjb.15.1562158744663; Wed, 03 Jul 2019 05:59:04 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id u65sm9916014pjb.1.2019.07.03.05.59.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Jul 2019 05:59:03 -0700 (PDT) Subject: Re: [DRAFT] mm/kprobes: Add generic kprobe_fault_handler() fallback definition To: Anshuman Khandual , 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: Guenter Roeck Message-ID: <8a5eb5d5-32f0-01cd-b2fe-890ebb98395b@roeck-us.net> Date: Wed, 3 Jul 2019 05:59:01 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed 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 7/2/19 10:35 PM, Anshuman Khandual wrote: > > > 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 ? > Let's say it didn't find any failures related to this patch. I built on top of next-20190701 which was quite badly broken for other reasons. Unfortunately, next-20190702 is much worse, so retesting would not add any value at this time. I'd say go for it. Guenter