Taesoo Kim
2014-11-16
static const struct proto_ops econet_ops = {
.ioctl
.sendpage = sock_no_sendpage
-> kernel_sendmsg
-> set_fs(KERNEL_DS) &
-> sock_sendmsg(sock, msg, size)
-> sock->ops->sendmsg()
}
+-- func ptr
V
[cd ab ff ff AA BB CC DD]
^
+--------->
overwrite
@0x00ffabcd
commit_creds(prepare_kernel_cred(0));
sysctl -w vm.mmap_min_addr=0
?