Re: + kallsyms-remove-arch-specific-text-and-data-check.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On (21/09/30 14:21), akpm@xxxxxxxxxxxxxxxxxxxx wrote:
> 
> Patch series "sections: Unify kernel sections range check and use", v4.
> 
> There are three head files(kallsyms.h, kernel.h and sections.h) which
> include the kernel sections range check, let's make some cleanup and unify
> them.
> 
> 1. cleanup arch specific text/data check and fix address boundary check
>    in kallsyms.h
> 
> 2. make all the basic/core kernel range check function into sections.h
> 
> 3. update all the callers, and use the helper in sections.h to simplify
>    the code
> 
> After this series, we have 5 APIs about kernel sections range check in
> sections.h
> 
>  * is_kernel_rodata()		--- already in sections.h
>  * is_kernel_core_data()	--- come from core_kernel_data() in kernel.h
>  * is_kernel_inittext()		--- come from kernel.h and kallsyms.h
>  * __is_kernel_text()		--- add new internal helper
>  * __is_kernel()		--- add new internal helper
> 
> Note: For the last two helpers, people should not use directly, consider to
>       use corresponding function in kallsyms.h.

FWIW, Andrew, feel free to add (to the series)

Reviewed-by: Sergey Senozhatsky <senozhatsky@xxxxxxxxxxxx>



[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux