The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Wedson Almeida Filho <wedsonaf@google.com>
Cc: rafael@kernel.org, corbet@lwn.net, linux-doc@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] driver core: make kobj_type constant.
Date: Mon, 27 Dec 2021 10:37:57 +0100	[thread overview]
Message-ID: <YcmJdXEeKd29+4jD@kroah.com> (raw)
In-Reply-To: <20211224231345.777370-1-wedsonaf@google.com>

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

      reply	other threads:[~2021-12-27  9:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-24 23:13 [PATCH] driver core: make kobj_type constant Wedson Almeida Filho
2021-12-27  9:37 ` Greg KH [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=YcmJdXEeKd29+4jD@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=corbet@lwn.net \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rafael@kernel.org \
    --cc=wedsonaf@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox