All of lore.kernel.org
 help / color / mirror / Atom feed
From: Minchan Kim <minchan@kernel.org>
To: Matthias Kaehlcke <mka@chromium.org>,
	Andrew Morton <akpm@linux-foundation.org>
Cc: Nitin Gupta <ngupta@vflare.org>,
	Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>,
	linux-kernel@vger.kernel.org, linux-mm@kvack.org,
	Doug Anderson <dianders@chromium.org>,
	Nick Desaulniers <ndesaulniers@google.com>
Subject: Re: [PATCH v2] zram: Rework copy of compressor name in comp_algorithm_store()
Date: Fri, 4 Aug 2017 10:11:13 +0900	[thread overview]
Message-ID: <20170804011113.GB8368@bbox> (raw)
In-Reply-To: <20170803163350.45245-1-mka@chromium.org>

On Thu, Aug 03, 2017 at 09:33:50AM -0700, Matthias Kaehlcke wrote:
> comp_algorithm_store() passes the size of the source buffer to strlcpy()
> instead of the destination buffer size. Make it explicit that the two
> buffers have the same size and use strcpy() instead of strlcpy().
> The latter can be done safely since the function ensures that the string
> in the source buffer is terminated.
> 
> Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Acked-by: Minchan Kim <minchan@kernel.org>

Thanks.

WARNING: multiple messages have this Message-ID
From: Minchan Kim <minchan@kernel.org>
To: Matthias Kaehlcke <mka@chromium.org>,
	Andrew Morton <akpm@linux-foundation.org>
Cc: Nitin Gupta <ngupta@vflare.org>,
	Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>,
	linux-kernel@vger.kernel.org, linux-mm@kvack.org,
	Doug Anderson <dianders@chromium.org>,
	Nick Desaulniers <ndesaulniers@google.com>
Subject: Re: [PATCH v2] zram: Rework copy of compressor name in comp_algorithm_store()
Date: Fri, 4 Aug 2017 10:11:13 +0900	[thread overview]
Message-ID: <20170804011113.GB8368@bbox> (raw)
In-Reply-To: <20170803163350.45245-1-mka@chromium.org>

On Thu, Aug 03, 2017 at 09:33:50AM -0700, Matthias Kaehlcke wrote:
> comp_algorithm_store() passes the size of the source buffer to strlcpy()
> instead of the destination buffer size. Make it explicit that the two
> buffers have the same size and use strcpy() instead of strlcpy().
> The latter can be done safely since the function ensures that the string
> in the source buffer is terminated.
> 
> Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Acked-by: Minchan Kim <minchan@kernel.org>

Thanks.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  parent reply	other threads:[~2017-08-04  1:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-03 16:33 Matthias Kaehlcke
2017-08-03 16:33 ` Matthias Kaehlcke
2017-08-03 16:39 ` Doug Anderson
2017-08-03 16:39   ` Doug Anderson
2017-08-04  1:05 ` Sergey Senozhatsky
2017-08-04  1:05   ` Sergey Senozhatsky
2017-08-04  1:11 ` Minchan Kim [this message]
2017-08-04  1:11   ` Minchan Kim

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=20170804011113.GB8368@bbox \
    --to=minchan@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=dianders@chromium.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mka@chromium.org \
    --cc=ndesaulniers@google.com \
    --cc=ngupta@vflare.org \
    --cc=sergey.senozhatsky.work@gmail.com \
    --subject='Re: [PATCH v2] zram: Rework copy of compressor name in comp_algorithm_store()' \
    /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

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.