lkml.org 
[lkml]   [2021]   [Dec]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] driver core: make kobj_type constant.
On Fri, Dec 24, 2021 at 11:13:45PM +0000, Wedson Almeida Filho wrote:
> This way instances of kobj_type (which contain function pointers) can be
> stored in .rodata, which means that they cannot be [easily/accidentally]
> modified at runtime.
>
> Signed-off-by: Wedson Almeida Filho <wedsonaf@google.com>

Ah, much nicer than the version I did last week but never sent out for
review yet:
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/commit/?h=kobject-const&id=3230b957cac5f596b36c7939fe81b4f54c6d1bb3

I'll go take this one now instead, thanks!

greg k-h

\
 
 \ /
  Last update: 2021-12-27 10:42    [W:0.045 / U:0.688 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site