mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 10:33:27 +00:00
43def35c10
While working on a modified server I had the Linux clients crash a few times. This lead me to find this: Some error codes are directly extracted from the server replies. A malformed server reply could contain an invalid error code, with a very large value. If this value is then passed to ERR_PTR() it will not be properly detected as an error code by IS_ERR() and as a result the kernel will dereference an invalid pointer. This patch tries to avoid this. Signed-off-by: Simon Derr <simon.derr@bull.net> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com> |
||
---|---|---|
.. | ||
client.c | ||
error.c | ||
Kconfig | ||
Makefile | ||
mod.c | ||
protocol.c | ||
protocol.h | ||
trans_common.c | ||
trans_common.h | ||
trans_fd.c | ||
trans_rdma.c | ||
trans_virtio.c | ||
util.c |