mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@rjwysocki.net>
To: Eric Biggers <ebiggers3@gmail.com>
Cc: linux-pm@vger.kernel.org, pavel@ucw.cz, len.brown@intel.com,
	gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] PM: declare __tracedata symbols as char[] rather than char
Date: Sun, 21 Feb 2016 14:45:20 +0100	[thread overview]
Message-ID: <3639816.6c6FK9gNMm@vostro.rjw.lan> (raw)
In-Reply-To: <1453687732-1602-1-git-send-email-ebiggers3@gmail.com>

On Sunday, January 24, 2016 08:08:52 PM Eric Biggers wrote:
> Accessing more than one byte from a symbol declared simply 'char' is undefined
> behavior, as reported by UBSAN:
> 
> 	UBSAN: Undefined behaviour in drivers/base/power/trace.c:178:18
> 	load of address ffffffff8203fc78 with insufficient space
> 	for an object of type 'char'
> 
> Avoid this by declaring the symbols as arrays.
> 
> Signed-off-by: Eric Biggers <ebiggers3@gmail.com>

Queued up for 4.6, thanks!

Rafael

      reply	other threads:[~2016-02-21 17:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-25  2:08 Eric Biggers
2016-02-21 13:45 ` Rafael J. Wysocki [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=3639816.6c6FK9gNMm@vostro.rjw.lan \
    --to=rjw@rjwysocki.net \
    --cc=ebiggers3@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=len.brown@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=pavel@ucw.cz \
    /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®