public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Jason Gunthorpe
	<jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Leon Romanovsky
	<notifications-9UaJU3cA/F/QT0dZR+AlfA@public.gmane.org>,
	Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Subject: Re: [PATCH 0/3] Autoloading for RDMA netlink modules
Date: Tue, 25 Jul 2017 21:19:51 +0300	[thread overview]
Message-ID: <20170725181951.GT3259@mtr-leonro.local> (raw)
In-Reply-To: <20170725143420.GA434-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1410 bytes --]

On Tue, Jul 25, 2017 at 08:34:20AM -0600, Jason Gunthorpe wrote:
> On Tue, Jul 25, 2017 at 09:32:36AM +0300, Leon Romanovsky wrote:
>
> > First, it interferes badly with my RDMA netlink series posted here in
> > previous cycle and I'm expecting to see it in, so I can move forward
> > with RDMAtool implementation.
>
> I'm sure we can fix a few conflicts...

It is more than a couple of conflicts, the implementation will be
slightly different.

Let's wait till Doug creates for-next with RDMA netlink patches, because
I assume that 2 out of 3 patches will be completely different.

>
> > Second, from brief review, it is unclear to me, how do you protect
> > autoload caused by regular user who sends netlink message to ib_core.
>
> You don't, that isn't how kernel auto loading works. Any user can
> attempt to create any kind of socket and the core kernel code will
> load the correct module to support that socket. That is the standard
> way kernel autoloading works, particularly for net families.

Ok, I'll take a look on it.

>
> > Third, it is ib_core who should autoload modules by default, and not some
> > random daemon in user space.
>
> Kernel autoloading of userspace facing kernel services is always
> triggered by a user process attempting to use the service, so this
> comment makes no sense to me.

My concern that "regular" user will trigger "admin" operation without
any checks.

>
> Jason

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  parent reply	other threads:[~2017-07-25 18:19 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-24 22:26 [PATCH 0/3] Autoloading for RDMA netlink modules Jason Gunthorpe
     [not found] ` <1500935204-6505-1-git-send-email-jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-07-24 22:26   ` [PATCH 1/3] rdma: Allow demand loading of NETLINK_RDMA Jason Gunthorpe
2017-07-24 22:26   ` [PATCH 2/3] rdma: Autoload netlink client modules Jason Gunthorpe
2017-07-24 22:26   ` [PATCH 3/3] iwpmd: Suppress expected kernel message Jason Gunthorpe
     [not found]     ` <1500935204-6505-4-git-send-email-jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-07-25 13:30       ` Leon Romanovsky
     [not found]         ` <20170725133030.GR3259-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-07-25 15:36           ` Jason Gunthorpe
     [not found]             ` <20170725153608.GA6715-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-07-25 18:12               ` Leon Romanovsky
     [not found]                 ` <20170725181254.GS3259-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-07-25 21:21                   ` Jason Gunthorpe
2017-07-25  6:32   ` [PATCH 0/3] Autoloading for RDMA netlink modules Leon Romanovsky
     [not found]     ` <20170725063236.GQ3259-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-07-25 14:34       ` Jason Gunthorpe
     [not found]         ` <20170725143420.GA434-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-07-25 15:40           ` Jason Gunthorpe
2017-07-25 18:19           ` Leon Romanovsky [this message]
     [not found]             ` <20170725181951.GT3259-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-07-25 21:22               ` Jason Gunthorpe
     [not found]                 ` <20170725212248.GD10905-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-08-14  4:50                   ` Leon Romanovsky

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=20170725181951.GT3259@mtr-leonro.local \
    --to=leon-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
    --cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=notifications-9UaJU3cA/F/QT0dZR+AlfA@public.gmane.org \
    /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