Skip to content

Commit

Permalink
net/sctp: use in_compat_syscall for sctp_getsockopt_connectx3
Browse files Browse the repository at this point in the history
SCTP unfortunately has a different ABI for SCTP_SOCKOPT_CONNECTX3 for
32-bit and 64-bit callers.  Use in_compat_syscall to correctly
distinguish them on all architectures.

Signed-off-by: Andy Lutomirski <[email protected]>
Cc: Vlad Yasevich <[email protected]>
Cc: Neil Horman <[email protected]>
Cc: David Miller <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
amluto authored and torvalds committed Mar 22, 2016
1 parent 121cef8 commit 96c0e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sctp/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -1389,7 +1389,7 @@ static int sctp_getsockopt_connectx3(struct sock *sk, int len,
int err = 0;

#ifdef CONFIG_COMPAT
if (is_compat_task()) {
if (in_compat_syscall()) {
struct compat_sctp_getaddrs_old param32;

if (len < sizeof(param32))
Expand Down

0 comments on commit 96c0e0a

Please sign in to comment.