Skip to content

Commit

Permalink
sctp: jsctp_sf_eat_sack: fix jprobes function signature mismatch
Browse files Browse the repository at this point in the history
Commit 24cb81a (sctp: Push struct net down into all of the
state machine functions) introduced the net structure into all
state machine functions, but jsctp_sf_eat_sack was not updated,
hence when SCTP association probing is enabled in the kernel,
any simple SCTP client/server program from userspace will panic
the kernel.

Cc: Vlad Yasevich <vyasevich@gmail.com>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Daniel Borkmann authored and David S. Miller committed Dec 16, 2012
1 parent ccb1c31 commit 4cb9d6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/sctp/probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ static const struct file_operations sctpprobe_fops = {
.llseek = noop_llseek,
};

sctp_disposition_t jsctp_sf_eat_sack(const struct sctp_endpoint *ep,
sctp_disposition_t jsctp_sf_eat_sack(struct net *net,
const struct sctp_endpoint *ep,
const struct sctp_association *asoc,
const sctp_subtype_t type,
void *arg,
Expand Down

0 comments on commit 4cb9d6e

Please sign in to comment.