mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Frank Pan <frankpzh@gmail.com>
To: Jiri Slaby <jslaby@suse.cz>
Cc: "Justin P. Mattock" <justinmattock@gmail.com>,
	"Greg KH" <gregkh@suse.de>, "Ortwin Glück" <odi@odi.ch>,
	linux-kernel@vger.kernel.org, jirislaby@gmail.com
Subject: Re: BUG kmalloc-4096: Poison overwritten (2.6.35-rc2)
Date: Mon, 7 Jun 2010 10:16:44 +0800	[thread overview]
Message-ID: <AANLkTim2CS71Kaoviwv5TFS_lLws__fYaK-HzNOytlML@mail.gmail.com> (raw)
In-Reply-To: <1275860015-6643-1-git-send-email-jslaby@suse.cz>

>
> Does the patch below help?
>
> ---
>  drivers/char/vt.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/char/vt.c b/drivers/char/vt.c
> index 1296c42..e123958 100644
> --- a/drivers/char/vt.c
> +++ b/drivers/char/vt.c
> @@ -304,8 +304,8 @@ static void scrup(struct vc_data *vc, unsigned int t, unsigned int b, int nr)
>        d = (unsigned short *)(vc->vc_origin + vc->vc_size_row * t);
>        s = (unsigned short *)(vc->vc_origin + vc->vc_size_row * (t + nr));
>        scr_memmovew(d, s, (b - t - nr) * vc->vc_size_row);
> -       scr_memsetw(d + (b - t - nr) * vc->vc_size_row, vc->vc_video_erase_char,
> -                   vc->vc_size_row * nr);
> +       scr_memsetw((void *)d + (b - t - nr) * vc->vc_size_row,
> +                       vc->vc_video_erase_char, vc->vc_size_row * nr);
>  }
>
>  static void scrdown(struct vc_data *vc, unsigned int t, unsigned int b, int nr)
> --
> 1.7.1
>
>
>

This patch fixed the issue. That's my mistake, forgot d's type. Sorry for that.

-- 
Frank Pan

Computer Science and Technology
Tsinghua University

  parent reply	other threads:[~2010-06-07  2:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-06  6:12 BUG kmalloc-4096: Poison overwritten Justin P. Mattock
2010-06-06  6:27 ` Jiri Slaby
2010-06-06  6:41   ` Justin P. Mattock
2010-06-06 21:06   ` Justin P. Mattock
2010-06-06 21:33     ` BUG kmalloc-4096: Poison overwritten (2.6.35-rc2) Jiri Slaby
2010-06-06 22:05       ` Justin P. Mattock
2010-06-07  2:16       ` Frank Pan [this message]
2010-06-07  3:25       ` Dave Airlie
2010-06-07  3:55         ` Linus Torvalds

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=AANLkTim2CS71Kaoviwv5TFS_lLws__fYaK-HzNOytlML@mail.gmail.com \
    --to=frankpzh@gmail.com \
    --cc=gregkh@suse.de \
    --cc=jirislaby@gmail.com \
    --cc=jslaby@suse.cz \
    --cc=justinmattock@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=odi@odi.ch \
    /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®