From: Rusty Russell <rusty@rustcorp.com.au>
To: "David Rientjes" <rientjes@google.com>,
"Mika Penttilä" <mika.penttila@nextfour.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
linux-mm@kvack.org, Pekka Enberg <penberg@kernel.org>
Subject: Re: [PATCH v2] mm: make apply_to_page_range more robust
Date: Thu, 21 Jan 2016 15:28:18 +1030 [thread overview]
Message-ID: <87egdby1ed.fsf@rustcorp.com.au> (raw)
In-Reply-To: <alpine.DEB.2.10.1601201536040.18155@chino.kir.corp.google.com>
David Rientjes <rientjes@google.com> writes:
> On Wed, 20 Jan 2016, Mika Penttilä wrote:
>
>> Recent changes (4.4.0+) in module loader triggered oops on ARM.
>>
>> can be 0 triggering the bug BUG_ON(addr >= end);.
>>
>> The call path is SyS_init_module()->set_memory_xx()->apply_to_page_range(),
>> and apply_to_page_range gets zero length resulting in triggering :
>>
>> BUG_ON(addr >= end)
>>
>> This is a consequence of changes in module section handling (Rusty CC:ed).
>> This may be triggable only with certain modules and/or gcc versions.
>>
>
> Well, what module are you loading to cause this crash? Why would it be
> passing size == 0 to apply_to_page_range()? Again, that sounds like a
> problem that we _want_ to know about since it is probably the result of
> buggy code and this patch would be covering it up.
Yes, I'm curious too. It's certainly possible, since I expected a
zero-length range to do nothing, but let's make sure we're not papering
over some other screwup of mine.
Thanks,
Rusty.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
WARNING: multiple messages have this Message-ID (diff)
From: Rusty Russell <rusty@rustcorp.com.au>
To: "David Rientjes" <rientjes@google.com>,
"Mika Penttilä" <mika.penttila@nextfour.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
linux-mm@kvack.org, Pekka Enberg <penberg@kernel.org>
Subject: Re: [PATCH v2] mm: make apply_to_page_range more robust
Date: Thu, 21 Jan 2016 15:28:18 +1030 [thread overview]
Message-ID: <87egdby1ed.fsf@rustcorp.com.au> (raw)
In-Reply-To: <alpine.DEB.2.10.1601201536040.18155@chino.kir.corp.google.com>
David Rientjes <rientjes@google.com> writes:
> On Wed, 20 Jan 2016, Mika Penttilä wrote:
>
>> Recent changes (4.4.0+) in module loader triggered oops on ARM.
>>
>> can be 0 triggering the bug BUG_ON(addr >= end);.
>>
>> The call path is SyS_init_module()->set_memory_xx()->apply_to_page_range(),
>> and apply_to_page_range gets zero length resulting in triggering :
>>
>> BUG_ON(addr >= end)
>>
>> This is a consequence of changes in module section handling (Rusty CC:ed).
>> This may be triggable only with certain modules and/or gcc versions.
>>
>
> Well, what module are you loading to cause this crash? Why would it be
> passing size == 0 to apply_to_page_range()? Again, that sounds like a
> problem that we _want_ to know about since it is probably the result of
> buggy code and this patch would be covering it up.
Yes, I'm curious too. It's certainly possible, since I expected a
zero-length range to do nothing, but let's make sure we're not papering
over some other screwup of mine.
Thanks,
Rusty.
next prev parent reply other threads:[~2016-01-21 5:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-20 5:17 [PATCH v2] mm: make apply_to_page_range more robust Mika Penttilä
2016-01-20 5:17 ` Mika Penttilä
2016-01-20 23:37 ` David Rientjes
2016-01-20 23:37 ` David Rientjes
2016-01-21 4:58 ` Rusty Russell [this message]
2016-01-21 4:58 ` Rusty Russell
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=87egdby1ed.fsf@rustcorp.com.au \
--to=rusty@rustcorp.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mika.penttila@nextfour.com \
--cc=penberg@kernel.org \
--cc=rientjes@google.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.