public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Sasha Levin <sasha.levin@oracle.com>
To: Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@kernel.org>, "H. Peter Anvin" <hpa@zytor.com>,
	Andy Lutomirski <luto@amacapital.net>
Cc: Andrey Ryabinin <a.ryabinin@samsung.com>,
	Andrey Konovalov <andreyknvl@google.com>,
	"x86@kernel.org" <x86@kernel.org>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Out of bounds access in get_wchan
Date: Sun, 13 Sep 2015 16:44:15 -0400	[thread overview]
Message-ID: <55F5E01F.4050101@oracle.com> (raw)

Hi all,

I've stumbled on the following while fuzzing with trinity inside a KVM tools guest
running the latest -next:

[635339.148553] BUG: KASan: out of bounds access in get_wchan+0x155/0x190 at addr ffff88032c0c7cc0
[635339.151199] Read of size 8 by task killall/31040
[635339.152690] page:ffffea000cb031c0 count:0 mapcount:0 mapping:          (null) index:0x0
[635339.155124] flags: 0x1afffff80000000()
[635339.155740] page dumped because: kasan: bad access detected
[635339.156603] CPU: 9 PID: 31040 Comm: killall Not tainted 4.2.0-next-20150908-sasha-00043-g5af04dd #2534
[635339.158068]  0000000000010000 ffff8804590677c0 ffffffffaafc306a ffff880459067848
[635339.159293]  ffff880459067838 ffffffffa97dacbe ffff8802f69d8d18 0000000000000001
[635339.160509]  0000000000000282 ffff8802f69d8000 0000000000000000 0000000000000007
[635339.161744] Call Trace:
[635339.162235] dump_stack (lib/dump_stack.c:52)
[635339.163061] kasan_report_error (mm/kasan/report.c:132 mm/kasan/report.c:193)
[635339.163975] __asan_report_load8_noabort (mm/kasan/report.c:251)
[635339.164965] ? get_wchan (arch/x86/kernel/process_64.c:513)
[635339.165784] get_wchan (arch/x86/kernel/process_64.c:513)
[635339.166615] do_task_stat (fs/proc/array.c:458)
[635339.167646] ? children_seq_stop (fs/proc/array.c:377)
[635339.168575] ? lockdep_init (kernel/locking/lockdep.c:3298)
[635339.169423] ? lockdep_init (kernel/locking/lockdep.c:3298)
[635339.170272] ? get_parent_ip (kernel/sched/core.c:2850)
[635339.171106] ? lock_release (kernel/locking/lockdep.c:3641)
[635339.171981] ? __lock_is_held (kernel/locking/lockdep.c:3491)
[635339.172846] ? lock_is_held (kernel/locking/lockdep.c:3661)
[635339.173722] ? get_pid_task (include/linux/rcupdate.h:914 kernel/pid.c:483)
[635339.174578] proc_tgid_stat (fs/proc/array.c:553)
[635339.175414] proc_single_show (./arch/x86/include/asm/atomic.h:118 include/linux/sched.h:2014 fs/proc/base.c:792)
[635339.176297] seq_read (fs/seq_file.c:232)
[635339.177229] ? seq_lseek (fs/seq_file.c:163)
[635339.178085] ? vma_merge (mm/mmap.c:1112)
[635339.178914] ? lockdep_init (kernel/locking/lockdep.c:3298)
[635339.179757] ? get_parent_ip (kernel/sched/core.c:2850)
[635339.180604] __vfs_read (fs/read_write.c:430)
[635339.181394] ? lock_release (kernel/locking/lockdep.c:3641)
[635339.182266] ? default_llseek (fs/read_write.c:430)
[635339.183163] ? __fsnotify_inode_delete (fs/notify/fsnotify.c:192)
[635339.184150] ? vm_mmap_pgoff (mm/util.c:330)
[635339.185026] ? up_write (kernel/locking/rwsem.h:9 kernel/locking/rwsem.c:93)
[635339.185845] ? security_file_permission (include/linux/fsnotify.h:60 security/security.c:737)
[635339.186912] ? rw_verify_area (fs/read_write.c:406 (discriminator 4))
[635339.188753] vfs_read (fs/read_write.c:454)
[635339.190331] ? __fget_light (fs/file.c:719)
[635339.192068] SyS_read (fs/read_write.c:570 fs/read_write.c:562)
[635339.193647] ? do_sendfile (fs/read_write.c:562)
[635339.195420] ? lockdep_sys_exit_thunk (arch/x86/entry/thunk_64.S:44)
[635339.196893] entry_SYSCALL_64_fastpath (arch/x86/entry/entry_64.S:186)
[635339.197836] Memory state around the buggy address:
[635339.198565]  ffff88032c0c7b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[635339.199626]  ffff88032c0c7c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[635339.200704] >ffff88032c0c7c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[635339.201770]                                               ^
[635339.202594]  ffff88032c0c7d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[635339.203665]  ffff88032c0c7d80: 00 00 00 00 f1 f1 f1 f1 00 f4 f4 f4 f2 f2 f2 f2


Thanks,
Sasha

             reply	other threads:[~2015-09-13 20:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-13 20:44 Sasha Levin [this message]
2015-09-14 14:12 ` Out of bounds access in get_wchan Andrey Ryabinin

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=55F5E01F.4050101@oracle.com \
    --to=sasha.levin@oracle.com \
    --cc=a.ryabinin@samsung.com \
    --cc=andreyknvl@google.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luto@amacapital.net \
    --cc=mingo@kernel.org \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox