summaryrefslogtreecommitdiff
path: root/proto.h
AgeCommit message (Expand)AuthorFilesLines
2015-10-19netsniff-ng: proto: Make raw hex/ascii print function globally availableTobias Klauser1-0/+2
2015-02-23proto: Make protocol->key member constTobias Klauser1-1/+1
2014-06-16proto: Remove unnecessary include of hash.hTobias Klauser1-1/+0
2013-03-15all: import netsniff-ng 0.5.8-rc0 sourceDaniel Borkmann1-0/+34
nds-private-remove&id=7b142d8fd0bd4c9bf06ccb72ac4daedb503f0124'>bf9d3363c73c6de066152384b4608a259bd473e0 parent7ef9153d9af5fe7ce32dcc0f558bfcfc3d2b3016 (diff)
android: binder: fix dangling pointer comparison
If /dev/binder is opened and the opener process then e.g. calls execve, proc->vma_vm_mm will still point to the location of the now-freed mm_struct. If the process then calls ioctl(binder_fd, ...), the dangling proc->vma_vm_mm pointer will be compared to current->mm. Let the binder take a reference to the mm_struct to avoid this. v2: use the right refcounter Fixes: a906d6931f3c ("android: binder: Sanity check at binder ioctl") Signed-off-by: Jann Horn <jannh@google.com> Reviewed-by: Chen Feng <puck.chen@hisilicon.com> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat