From: Al Viro <viro@ZenIV.linux.org.uk>
To: Lars Ellenberg <lars.ellenberg@linbit.com>
Cc: Jens Axboe <axboe@kernel.dk>,
wolfgang.glas@iteg.at, Richard Weinberger <richard@nod.at>,
christoph.lechleitner@iteg.at, philipp.reisner@linbit.com,
stable@vger.kernel.org, linux-kernel@vger.kernel.org,
drbd-dev@lists.linbit.com
Subject: Re: [Drbd-dev] [PATCH v2] drbd: Fix kernel_sendmsg() usage - potential NULL deref
Date: Wed, 9 Nov 2016 23:41:28 +0000 [thread overview]
Message-ID: <20161109234127.GI19539@ZenIV.linux.org.uk> (raw)
In-Reply-To: <1478728378-22289-1-git-send-email-lars.ellenberg@linbit.com>
On Wed, Nov 09, 2016 at 10:52:58PM +0100, Lars Ellenberg wrote:
> This should go into 4.9,
> and into all stable branches since and including v4.0,
> which is the first to contain the exposing change.
>
> It is correct for all stable branches older than that as well
> (which contain the DRBD driver; which is 2.6.33 and up).
>
> It requires a small "conflict" resolution for v4.4 and earlier, with v4.5
> we dropped the comment block immediately preceding the kernel_sendmsg().
ACK. I'll rebase commit 7a4992299554 ([drbd] use sock_sendmsg()) on top
of that as soon as it hits the mainline. For conspiracy theorists out
there (hi, Brad) - that commit (killing the modifications of iovec and
reinitializing msg->iov_iter; just set it once and let sendmsg() update
it in normal fashion) had been sitting around since late 2014. It happened
to fix the bug in question, without a single line refering to that in commit
message. Reason: I had completely missed the problem; intent of that
loop had been obvious and replacement had obviously done what was intended
there. What I had failed to spot was that the code in there did *not*
match that intent. Replacement does. And unlike the minimal fix (either
version) it doesn't belong in -stable.
WARNING: multiple messages have this Message-ID (diff)
From: Al Viro <viro@ZenIV.linux.org.uk>
To: Lars Ellenberg <lars.ellenberg@linbit.com>
Cc: Jens Axboe <axboe@kernel.dk>, Richard Weinberger <richard@nod.at>,
wolfgang.glas@iteg.at, christoph.lechleitner@iteg.at,
philipp.reisner@linbit.com, stable@vger.kernel.org,
linux-kernel@vger.kernel.org, drbd-dev@lists.linbit.com
Subject: Re: [PATCH v2] drbd: Fix kernel_sendmsg() usage - potential NULL deref
Date: Wed, 9 Nov 2016 23:41:28 +0000 [thread overview]
Message-ID: <20161109234127.GI19539@ZenIV.linux.org.uk> (raw)
In-Reply-To: <1478728378-22289-1-git-send-email-lars.ellenberg@linbit.com>
On Wed, Nov 09, 2016 at 10:52:58PM +0100, Lars Ellenberg wrote:
> This should go into 4.9,
> and into all stable branches since and including v4.0,
> which is the first to contain the exposing change.
>
> It is correct for all stable branches older than that as well
> (which contain the DRBD driver; which is 2.6.33 and up).
>
> It requires a small "conflict" resolution for v4.4 and earlier, with v4.5
> we dropped the comment block immediately preceding the kernel_sendmsg().
ACK. I'll rebase commit 7a4992299554 ([drbd] use sock_sendmsg()) on top
of that as soon as it hits the mainline. For conspiracy theorists out
there (hi, Brad) - that commit (killing the modifications of iovec and
reinitializing msg->iov_iter; just set it once and let sendmsg() update
it in normal fashion) had been sitting around since late 2014. It happened
to fix the bug in question, without a single line refering to that in commit
message. Reason: I had completely missed the problem; intent of that
loop had been obvious and replacement had obviously done what was intended
there. What I had failed to spot was that the code in there did *not*
match that intent. Replacement does. And unlike the minimal fix (either
version) it doesn't belong in -stable.
next prev parent reply other threads:[~2016-11-10 14:14 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-08 10:43 [PATCH] drbd: Fix kernel_sendmsg() usage Richard Weinberger
2016-11-08 13:43 ` Lars Ellenberg
2016-11-08 13:43 ` [Drbd-dev] " Lars Ellenberg
2016-11-08 13:55 ` Richard Weinberger
2016-11-08 13:55 ` Richard Weinberger
2016-11-08 16:52 ` [Drbd-dev] " Jens Axboe
2016-11-08 16:52 ` Jens Axboe
2016-11-09 15:32 ` [Drbd-dev] " Lars Ellenberg
2016-11-09 15:32 ` Lars Ellenberg
2016-11-09 15:32 ` Lars Ellenberg
2016-11-09 15:47 ` [Drbd-dev] " Richard Weinberger
2016-11-09 15:47 ` Richard Weinberger
2016-11-09 16:51 ` [Drbd-dev] " Lars Ellenberg
2016-11-09 16:51 ` Lars Ellenberg
2016-11-09 16:55 ` Jens Axboe
2016-11-09 16:55 ` Jens Axboe
2016-11-09 21:52 ` [Drbd-dev] [PATCH v2] drbd: Fix kernel_sendmsg() usage - potential NULL deref Lars Ellenberg
2016-11-09 21:52 ` Lars Ellenberg
2016-11-09 23:41 ` Al Viro [this message]
2016-11-09 23:41 ` Al Viro
2016-11-08 14:03 ` [Drbd-dev] [PATCH] drbd: Fix kernel_sendmsg() usage Christoph Lechleitner
2016-11-08 14:03 ` Christoph Lechleitner
2016-11-08 15:49 ` [Drbd-dev] " Christoph Hellwig
2016-11-08 15:49 ` Christoph Hellwig
2016-11-08 16:02 ` [Drbd-dev] " Richard Weinberger
2016-11-08 16:02 ` Richard Weinberger
2016-11-08 16:13 ` [Drbd-dev] " Al Viro
2016-11-08 16:13 ` Al Viro
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=20161109234127.GI19539@ZenIV.linux.org.uk \
--to=viro@zeniv.linux.org.uk \
--cc=axboe@kernel.dk \
--cc=christoph.lechleitner@iteg.at \
--cc=drbd-dev@lists.linbit.com \
--cc=lars.ellenberg@linbit.com \
--cc=linux-kernel@vger.kernel.org \
--cc=philipp.reisner@linbit.com \
--cc=richard@nod.at \
--cc=stable@vger.kernel.org \
--cc=wolfgang.glas@iteg.at \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.