All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: chenjun102@huawei.com, richardcochran@gmail.com, stable@vger.kernel.org
Subject: Re: [PATCH] posix-timers: Preserve return value in COMPAT(clock_adjtime)
Date: Mon, 10 May 2021 09:52:49 +0200	[thread overview]
Message-ID: <YJjmUd7YywibopNO@kroah.com> (raw)
In-Reply-To: <878s4qm73z.ffs@nanos.tec.linutronix.de>

On Sat, May 08, 2021 at 01:55:44AM +0200, Thomas Gleixner wrote:
> From: Chen Jun <chenjun102@huawei.com>
> 
> commit 2d036dfa5f10df9782f5278fc591d79d283c1fad upstream.
> 
> The return value on success (>= 0) is overwritten by the return value of
> compat_put_timex(). That works correct in the fault case, but is wrong for
> the success case where compat_put_timex() returns 0.
> 
> Just check the return value of compat_put_timex() and return -EFAULT in case
> it is not zero.
> 
> [ tglx: Massage changelog ]
> [ tglx: Backport to 4.19, 4.14 ]

Thanks, now queued up.

greg k-h

      reply	other threads:[~2021-05-10  7:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-07 15:50 FAILED: patch "[PATCH] posix-timers: Preserve return value in clock_adjtime32()" failed to apply to 4.19-stable tree gregkh
2021-05-07 23:55 ` [PATCH] posix-timers: Preserve return value in COMPAT(clock_adjtime) Thomas Gleixner
2021-05-10  7:52   ` 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=YJjmUd7YywibopNO@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=chenjun102@huawei.com \
    --cc=richardcochran@gmail.com \
    --cc=stable@vger.kernel.org \
    --cc=tglx@linutronix.de \
    /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.