From: Vlad Yasevich <vladislav.yasevich@hp.com>
To: Wei Yongjun <yjwei@cn.fujitsu.com>
Cc: netdev@vger.kernel.org, lksctp-developers@lists.sourceforge.net
Subject: Re: [PATCH] SCTP: Fix kernel panic while received AUTH chunk while enabled auth
Date: Fri, 25 Jan 2008 11:41:17 -0500 [thread overview]
Message-ID: <479A112D.5020201@hp.com> (raw)
In-Reply-To: <4794C51B.8040904@cn.fujitsu.com>
Sorry for the delay. Was on vacation without net access.
Wei Yongjun wrote:
>
>
> This patch fix this probleam to treat AUTH chunk as unknow chunk if peer
> has initialized with no auth capable.
>
> Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Acked-by: Vlad Yasevich <vladislav.yasevich@hp.com>
>
> --- a/net/sctp/sm_statefuns.c 2008-01-21 00:03:25.000000000 -0500
> +++ b/net/sctp/sm_statefuns.c 2008-01-21 05:14:08.000000000 -0500
> @@ -3785,6 +3785,10 @@ sctp_disposition_t sctp_sf_eat_auth(cons
> struct sctp_chunk *err_chunk;
> sctp_ierror_t error;
>
> + /* Make sure that the peer has AUTH capable */
> + if (!asoc->peer.auth_capable)
> + return sctp_sf_unk_chunk(ep, asoc, type, arg, commands);
> +
> if (!sctp_vtag_verify(chunk, asoc)) {
> sctp_add_cmd_sf(commands, SCTP_CMD_REPORT_BAD_TAG,
> SCTP_NULL());
>
>
>
next prev parent reply other threads:[~2008-01-25 16:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-21 16:15 [PATCH] SCTP: Fix kernel panic while received AUTH chunk while enabled auth Wei Yongjun
2008-01-25 16:41 ` Vlad Yasevich [this message]
2008-02-05 8:21 ` Wei Yongjun
2008-02-05 11:02 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=479A112D.5020201@hp.com \
--to=vladislav.yasevich@hp.com \
--cc=lksctp-developers@lists.sourceforge.net \
--cc=netdev@vger.kernel.org \
--cc=yjwei@cn.fujitsu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.