[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160120010720.GA22183@mrl.redhat.com>
Date: Tue, 19 Jan 2016 23:07:20 -0200
From: Marcelo Ricardo Leitner <marcelo.leitner@...il.com>
To: netdev@...r.kernel.org
Cc: Vlad Yasevich <vyasevich@...il.com>,
Neil Horman <nhorman@...driver.com>,
Xin Long <lucien.xin@...il.com>, linux-sctp@...r.kernel.org
Subject: Re: [PATCH net] sctp: fix rcu usage on proc listing
On Tue, Jan 19, 2016 at 08:02:30PM -0200, Marcelo Ricardo Leitner wrote:
> > --- a/net/sctp/proc.c
> > +++ b/net/sctp/proc.c
> > @@ -491,6 +491,7 @@ static int sctp_remaddr_seq_show(struct seq_file *seq, void *v)
> > tsp = (struct sctp_transport *)v;
> > assoc = tsp->asoc;
> >
> > + rcu_read_lock();
should have used rcu_read_lock_bh() here, will send a v2 tomorrow.
> > list_for_each_entry_rcu(tsp, &assoc->peer.transport_addr_list,
> > transports) {
> > if (tsp->dead)
> > @@ -543,6 +544,7 @@ static int sctp_remaddr_seq_show(struct seq_file *seq, void *v)
> >
> > seq_printf(seq, "\n");
> > }
> > + rcu_read_unlock();
> >
> > return 0;
> > }
> > --
> > 2.5.0
> >
>
Powered by blists - more mailing lists