[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <975ede3e-fa5d-032c-c958-b4cc2b5ca44a@redhat.com>
Date: Fri, 31 Jul 2020 12:09:45 +0800
From: Jason Wang <jasowang@...hat.com>
To: "Michael S. Tsirkin" <mst@...hat.com>, netdev@...r.kernel.org
Subject: Re: rcu warnings in tun
On 2020/7/31 上午4:16, Michael S. Tsirkin wrote:
> drivers/net/tun.c:3003:36: warning: incorrect type in argument 2 (different address spaces)
> drivers/net/tun.c:3003:36: expected struct tun_prog [noderef] __rcu **prog_p
> drivers/net/tun.c:3003:36: got struct tun_prog **prog_p
> drivers/net/tun.c:3292:42: warning: incorrect type in argument 2 (different address spaces)
> drivers/net/tun.c:3292:42: expected struct tun_prog **prog_p
> drivers/net/tun.c:3292:42: got struct tun_prog [noderef] __rcu **
> drivers/net/tun.c:3296:42: warning: incorrect type in argument 2 (different address spaces)
> drivers/net/tun.c:3296:42: expected struct tun_prog **prog_p
> drivers/net/tun.c:3296:42: got struct tun_prog [noderef] __rcu **
prog_p in tun_set_bpf() should be protected by RCU, will post a fix.
Thanks
Powered by blists - more mailing lists