Re: [PATCH net v4 3/3] net: prevent address rewrite in kernel_bind()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Jordan Rife wrote:
> Similar to the change in commit 0bdf399342c5("net: Avoid address
> overwrite in kernel_connect"), BPF hooks run on bind may rewrite the
> address passed to kernel_bind(). This change
> 1) Makes a copy of the bind address in kernel_bind() to insulate
>    callers.
> 2) Replaces direct calls to sock->ops->bind() with kernel_bind()
> Link:
> Fixes: 4fbac77d2d09 ("bpf: Hooks for sys_bind")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Jordan Rife <jrife@xxxxxxxxxx>

Reviewed-by: Willem de Bruijn <willemb@xxxxxxxxxx>

[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux