linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Anshuman Khandual <anshuman.khandual@arm.com>
To: Guenter Roeck <linux@roeck-us.net>,
	linux-mm@kvack.org, linux-kernel@vger.kernel.org
Cc: akpm@linux-foundation.org
Subject: Re: [DRAFT] mm/kprobes: Add generic kprobe_fault_handler() fallback definition
Date: Wed, 3 Jul 2019 19:41:08 +0530	[thread overview]
Message-ID: <a0a0e277-ec1a-6c49-4852-c945ad64a1fd@arm.com> (raw)
In-Reply-To: <8a5eb5d5-32f0-01cd-b2fe-890ebb98395b@roeck-us.net>



On 07/03/2019 06:29 PM, Guenter Roeck wrote:
> 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 <anshuman.khandual@arm.com>
>>>> ---
>>>> 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
> 

Sure thanks, will post it out soon.

      reply	other threads:[~2019-07-03 14:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-13 10:07 [PATCH] mm: Generalize and rename notify_page_fault() as kprobe_page_fault() Anshuman Khandual
2019-06-13 17:57 ` Vineet Gupta
2019-06-18 15:56   ` Vineet Gupta
2019-06-20  7:19     ` Masami Hiramatsu
2019-06-13 20:04 ` Andrew Morton
2019-06-14  5:15   ` Anshuman Khandual
2019-06-29 14:50 ` Guenter Roeck
2019-06-30  4:41   ` Anshuman Khandual
2019-07-01  9:35     ` [DRAFT] mm/kprobes: Add generic kprobe_fault_handler() fallback definition Anshuman Khandual
2019-07-01 13:28       ` Guenter Roeck
2019-07-03  5:35         ` Anshuman Khandual
2019-07-03 12:59           ` Guenter Roeck
2019-07-03 14:11             ` Anshuman Khandual [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a0a0e277-ec1a-6c49-4852-c945ad64a1fd@arm.com \
    --to=anshuman.khandual@arm.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=linux@roeck-us.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).