Re: [Patch net v2] rds: fix two RCU related problems

2018-09-12 Thread David Miller
From: Cong Wang Date: Mon, 10 Sep 2018 18:27:26 -0700 > When a rds sock is bound, it is inserted into the bind_hash_table > which is protected by RCU. But when releasing rds sock, after it > is removed from this hash table, it is freed immediately without > respecting RCU grace period. This

Re: [Patch net v2] rds: fix two RCU related problems

2018-09-10 Thread Santosh Shilimkar
On 9/10/2018 6:27 PM, Cong Wang wrote: When a rds sock is bound, it is inserted into the bind_hash_table which is protected by RCU. But when releasing rds sock, after it is removed from this hash table, it is freed immediately without respecting RCU grace period. This could cause some

[Patch net v2] rds: fix two RCU related problems

2018-09-10 Thread Cong Wang
When a rds sock is bound, it is inserted into the bind_hash_table which is protected by RCU. But when releasing rds sock, after it is removed from this hash table, it is freed immediately without respecting RCU grace period. This could cause some use-after-free as reported by syzbot. Mark the rds