mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christian Brauner <christian@brauner.io>
To: torvalds@linux-foundation.org
Cc: linux-kernel@vger.kernel.org, viro@zeniv.linux.org.uk, jannh@google.com
Subject: [GIT PULL] fixes for v5.2-rc8
Date: Mon,  1 Jul 2019 18:15:03 +0200	[thread overview]
Message-ID: <20190701161503.15254-1-christian@brauner.io> (raw)
In-Reply-To: <000000000000e0dc0d058c9e7142@google.com>

Hi Linus,

This contains a single urgent fix for copy_process() in kernel/fork.c:

The following changes since commit 6fbc7275c7a9ba97877050335f290341a1fd8dbf:

  Linux 5.2-rc7 (2019-06-30 11:25:36 +0800)

are available in the Git repository at:

  git@gitolite.kernel.org:pub/scm/linux/kernel/git/brauner/linux tags/for-linus-20190701

for you to fetch changes up to 28dd29c06d0dede4b32b2c559cff21955a830928:

  fork: return proper negative error code (2019-07-01 16:43:30 +0200)

With Al's removal of ksys_close() from cleanup paths in copy_process() a
bug was introduced. When anon_inode_getfile() failed the cleanup was
correctly performed but the error code was not propagated to callers of
copy_process() causing them to operate on a nonsensical pointer. The fix is
a simple on-liner which makes sure that a proper negative error code is
returned from copy_process().
syzkaller has also verified that the bug is not reproducible with the patch
in this branch.

Please consider pulling these changes from the signed for-linus-20190701 tag.

Thanks!
Christian

----------------------------------------------------------------
for-linus-20190701

----------------------------------------------------------------
Christian Brauner (1):
      fork: return proper negative error code

 kernel/fork.c | 1 +
 1 file changed, 1 insertion(+)

  parent reply	other threads:[~2019-07-01 16:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-01 13:17 general protection fault in get_task_pid syzbot
2019-07-01 13:32 ` Christian Brauner
2019-07-01 14:48 ` [PATCH] fork: return proper negative error code Christian Brauner
2019-07-01 14:50   ` Christian Brauner
2019-07-01 16:26   ` Al Viro
2019-07-01 16:15 ` Christian Brauner [this message]
2019-07-03  8:20   ` [GIT PULL] fixes for v5.2-rc8 pr-tracker-bot

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=20190701161503.15254-1-christian@brauner.io \
    --to=christian@brauner.io \
    --cc=jannh@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    --cc=viro@zeniv.linux.org.uk \
    /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

all inboxes | Powered by JetHome®