Date: Thu, 2 Dec 2010 12:44:51 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/fs/procfs procfs_fpregs.c procfs_regs.c Message-ID: <201012021245.oB2Cj7Dd006661@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kib 2010-12-02 12:44:51 UTC FreeBSD src repository Modified files: sys/fs/procfs procfs_fpregs.c procfs_regs.c Log: SVN rev 216120 on 2010-12-02 12:44:51Z by kib For non-stopped threads, td_frame pointer is undefined. As a consequence, fill_regs() and fill_fpregs() access random data, usually on the thread kernel stack. Most often the td_frame points to the previous frame saved by last kernel entry sequence, but this is not guaranteed. For /proc/<pid>/{regs,fpregs} read access, require the thread to be in stopped state. Otherwise, return EBUSY as is done for write case. Reported and tested by: pho Approved by: des (procfs maintainer) MFC after: 1 week Revision Changes Path 1.36 +4 -0 src/sys/fs/procfs/procfs_fpregs.c 1.35 +4 -0 src/sys/fs/procfs/procfs_regs.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012021245.oB2Cj7Dd006661>