All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fengguang Wu <fengguang.wu@intel.com>
To: lkp@lists.01.org
Subject: Re: [auxdisplay: ht16k33] cac513f1a9: BUG: KASAN: global-out-of-bounds in __of_match_node at addr ffffffff82ea8cf8
Date: Mon, 20 Feb 2017 10:39:06 +0800	[thread overview]
Message-ID: <20170220023906.onlnybqi3pnsrg7z@wfg-t540p.sh.intel.com> (raw)
In-Reply-To: <20170220003335.GA8358@dtor-ws>

[-- Attachment #1: Type: text/plain, Size: 2876 bytes --]

Hi Dmitry,

>> cac513f1a9  auxdisplay: ht16k33: rework input device initialization
>> +--------------------------------------------------------------------+----+
>> |                                                                    |    |
>> +--------------------------------------------------------------------+----+
>> | boot_successes                                                     | 0  |
>> | boot_failures                                                      | 26 |
>> | BUG:KASAN:global-out-of-bounds_in__of_match_node_at_addr           | 26 |
>> | BUG:KASAN:global-out-of-bounds_in__of_device_is_compatible_at_addr | 26 |
>> +--------------------------------------------------------------------+----+
>>
>> [   16.004589] OF: /testcase-data/phandle-tests/consumer-a: arguments longer than property
>> [   16.008292] irq: no irq domain found for /testcase-data/interrupts/intc0 !
>> [   16.008292] irq: no irq domain found for /testcase-data/interrupts/intc0 !
>> [   16.011090] ==================================================================
>> [   16.011090] ==================================================================
>> [   16.014687] BUG: KASAN: global-out-of-bounds in __of_match_node+0xf9/0x100 at addr ffffffff82ea8cf8
>> [   16.014687] BUG: KASAN: global-out-of-bounds in __of_match_node+0xf9/0x100 at addr ffffffff82ea8cf8
>> [   16.018072] Read of size 1 by task swapper/1
>> [   16.018072] Read of size 1 by task swapper/1
>> [   16.019363] Address belongs to variable img_ascii_lcd_matches+0x258/0x8c0
>> [   16.019363] Address belongs to variable img_ascii_lcd_matches+0x258/0x8c0
>
>Hmm, I am not sure what exactly happened, but I wonder if the patch
>below does not resolve this issue.

Yes it works.

Tested-by: Fengguang Wu <fengguang.wu@intel.com>

Thanks,
Fengguang

>auxdisplay: img-ascii-lcd: add missing sentinel entry in img_ascii_lcd_matches
>
>From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
>
>The OF device table must be terminated, otherwise we'll be walking past it
>and into areas unknown.
>
>Fixes: 0cad855fbd08 ("auxdisplay: img-ascii-lcd: driver for simple ASCII...")
>Cc: stable(a)vger.kernel.org
>Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
>---
> drivers/auxdisplay/img-ascii-lcd.c |    1 +
> 1 file changed, 1 insertion(+)
>
>diff --git a/drivers/auxdisplay/img-ascii-lcd.c b/drivers/auxdisplay/img-ascii-lcd.c
>index bf43b5d2aafc..83f1439e57fd 100644
>--- a/drivers/auxdisplay/img-ascii-lcd.c
>+++ b/drivers/auxdisplay/img-ascii-lcd.c
>@@ -218,6 +218,7 @@ static const struct of_device_id img_ascii_lcd_matches[] = {
> 	{ .compatible = "img,boston-lcd", .data = &boston_config },
> 	{ .compatible = "mti,malta-lcd", .data = &malta_config },
> 	{ .compatible = "mti,sead3-lcd", .data = &sead3_config },
>+	{ /* sentinel */ }
> };
>
> /**

      reply	other threads:[~2017-02-20  2:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-19 22:06 [auxdisplay: ht16k33] cac513f1a9: BUG: KASAN: global-out-of-bounds in __of_match_node at addr ffffffff82ea8cf8 kernel test robot
2017-02-20  0:33 ` Dmitry Torokhov
2017-02-20  2:39   ` Fengguang Wu [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=20170220023906.onlnybqi3pnsrg7z@wfg-t540p.sh.intel.com \
    --to=fengguang.wu@intel.com \
    --cc=lkp@lists.01.org \
    /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.