lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 01 Jun 2012 22:59:49 +0200
From:	Eric Dumazet <eric.dumazet@...il.com>
To:	Alan Cox <alan@...rguk.ukuu.org.uk>
Cc:	Linus Torvalds <torvalds@...ux-foundation.org>,
	Alan Cox <alan@...ux.intel.com>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	Jens Axboe <jaxboe@...ionio.com>
Subject: Re: [PATCH] tty: add lockdep annotations

On Fri, 2012-06-01 at 21:56 +0100, Alan Cox wrote:
> > Yes, tty->driver deref is ok (tty points to valid memory), but crash is
> > on tty->driver->ops (driver points to freed/illegal memory)
> > 
> > using slub_debug=FZPU, I can indeed see RDI=6b6b6b6b6b6b6b6b
> 
> driver and driver->ops is basically const and it's not what you'd expect
> from a tty refcount bug. The driver side puts shouldn't have changed but
> I'll take a look over that patch and the error paths closely again just
> in case.

right

The code looks like :
...
	call mcount
	mov  %rdi,%rbx
	mov  0x10(%rdi),%rdi   tty->driver
<>	mov  0xf8(%rdi),%rax   CRASH

So tty was freed an tty->driver contains 6b6b6b6b6b6b6b6b



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ