Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1562301
| From | Laura Abbott <labbott@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [kernel-hardening] Re: [PATCH] ARM: mm: add testcases for RODATA |
| Date | 2017-01-19 00:50 +0100 |
| Message-ID | <t189j-2dy-7@gated-at.bofh.it> (permalink) |
| References | <t0YWl-4Nd-7@gated-at.bofh.it> <t145I-86O-27@gated-at.bofh.it> <t173z-1z7-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 01/18/2017 02:36 PM, Russell King - ARM Linux wrote:
> On Wed, Jan 18, 2017 at 11:20:54AM -0800, Laura Abbott wrote:
>> On 01/18/2017 05:53 AM, Jinbum Park wrote:
>>> diff --git a/arch/arm/include/asm/cacheflush.h b/arch/arm/include/asm/cacheflush.h
>>> index bdd283b..741e2e8 100644
>>> --- a/arch/arm/include/asm/cacheflush.h
>>> +++ b/arch/arm/include/asm/cacheflush.h
>>> @@ -498,6 +498,16 @@ static inline void set_kernel_text_rw(void) { }
>>> static inline void set_kernel_text_ro(void) { }
>>> #endif
>>>
>>> +#ifdef CONFIG_DEBUG_RODATA_TEST
>>> +extern const int rodata_test_data;
>>> +int rodata_test(void);
>>> +#else
>>> +static inline int rodata_test(void)
>>> +{
>>> + return 0;
>>> +}
>>> +#endif
>>> +
>
> I don't see why this needs to be in cacheflush.h - it doesn't seem to
> have anything to do with cache flushing, and placing it in here means
> that if you change the state of CONFIG_DEBUG_RODATA_TEST, most likely
> the entire kernel gets rebuilt. Please put it in a separate header
> file.
>
cacheflush.h seems to be where all the set_memory_* functions have
ended up. I was just looking at cleaning that up unless someone
beats me to it.
Thanks,
Laura
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] ARM: mm: add testcases for RODATA Jinbum Park <jinb.park7@gmail.com> - 2017-01-18 15:00 +0100
Re: [PATCH] ARM: mm: add testcases for RODATA Mark Rutland <mark.rutland@arm.com> - 2017-01-18 15:50 +0100
Re: [PATCH] ARM: mm: add testcases for RODATA Laura Abbott <labbott@redhat.com> - 2017-01-18 20:30 +0100
Re: [PATCH] ARM: mm: add testcases for RODATA Kees Cook <keescook@chromium.org> - 2017-01-18 22:30 +0100
Re: [PATCH] ARM: mm: add testcases for RODATA Russell King - ARM Linux <linux@armlinux.org.uk> - 2017-01-18 23:40 +0100
Re: [PATCH] ARM: mm: add testcases for RODATA Kees Cook <keescook@chromium.org> - 2017-01-19 00:40 +0100
Re: [kernel-hardening] Re: [PATCH] ARM: mm: add testcases for RODATA Laura Abbott <labbott@redhat.com> - 2017-01-19 00:50 +0100
Re: [kernel-hardening] Re: [PATCH] ARM: mm: add testcases for RODATA Russell King - ARM Linux <linux@armlinux.org.uk> - 2017-01-19 01:10 +0100
csiph-web