Date: Thu, 19 May 2016 21:06:34 +0000 From: Raviprakash Darbha <rdarbha@juniper.net> To: "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>, "andre@freebsd.org" <andre@freebsd.org> Cc: Raviprakash Darbha <rdarbha@juniper.net>, Steve Kiernan <stevek@juniper.net> Subject: Double lock issue of unp_link_rwlock in usrreq.c observed Message-ID: <948AD75B-BF6E-4672-8B50-9CF9E25667EA@juniper.net>
next in thread | raw e-mail | index | archive | help
SGVsbG8gQW5kcmUNCg0KSSBlbmNvdW50ZXJlZCBhIGRvdWJsZSBsb2NrIGlzc3VlIGluIHVucF9j b25uZWN0YXQgZnVuY3Rpb24uIEFmdGVyIGxvb2tpbmcgYXQgdGhlIGNvZGUgLCBJIHRoaW5rIHRo ZSB1bnBfbGlua19yd2xvY2sgaXMgYmVpbmcgbG9ja2VkIG9uY2UgdW5wX2Nvbm5lY3RhdCBhbmQg b25jZSBhZ2FpbiBpbiB1bnBfZGV0YWNoICAoY2FsbGVkIGZyb20gc29mcmVlICkuIFdvdWxkIGxp a2UgdG8gZ2V0IHlvdXIgb3BpbmlvbiBvbiB0aGUgaXNzdWUgYW5kIHRoZSBmaXguIEJlbG93IGlz IHRoZSBleGFjdCBjYWxsIHN0YWNrLg0KDQoNClVOUF9MSU5LX1dMT0NLKCk7ICAgICAgICAgPOKA lOKAlOKAlOKAlOKAlOKAlOKAlOKAlOKAlOKAlCAgMSBzdCBjYWxsDQrigKYuLg0K4oCmLi4NCmlm IChzby0+c29fcHJvdG8tPnByX2ZsYWdzICYgUFJfQ09OTlJFUVVJUkVEKSB7DQogICAgIGlmIChz bzItPnNvX29wdGlvbnMgJiBTT19BQ0NFUFRDT05ODQogICAgICAgICBDVVJWTkVUX1NFVChzbzIt PnNvX3ZuZXQpOw0KICAgICAgICAgIHNvMyA9IHNvbmV3Y29ubihzbzIsIDApOw0KICAgICAgICAg IC8vIEV4cGFuZGluZyBzb25ld2Nvbm4NCiAgICAgICAgICB7DQogICAgICAgICAgICAgc29uZXdj b25uDQogICAgICAgICAgICAgIHsNCiAgICAgICAgICAgICAgICAgICDigKbigKYNCiAgICAgICAg ICAgICAgICAgICBzb2FsbG9jDQogICAgICAgICAgICAgICAgICAg4oCm4oCmLg0KICAgICAgICAg ICAgICAgICAgIHBydV9hdHRhY2gNCiAgICAgICAgICAgICAgICAgICDigKbigKYuDQogICAgICAg ICAgICAgICAgICAgaWYgKCEoaGVhZC0+c29fb3B0aW9ucyAmIFNPX0FDQ0VQVENPTk4pICYmDQog ICAgICAgICAgICAgICAgICAgKChoZWFkLT5zb19wcm90by0+cHJfcHJvdG9jb2wgIT0gSVBQUk9U T19TQ1RQKSB8fA0KICAgICAgICAgICAgICAgICAgICAoaGVhZC0+c29fdHlwZSAhPSBTT0NLX1NF UVBBQ0tFVCkpKSB7DQogICAgICAgICAgICAgICAgICAgICAgIOKApuKApuKApi4NCiAgICAgICAg ICAgICAgICAgICAgICAgc29mcmVlKHNvKTsgICAgICAgICAgICAgLyogTkI6IHJldHVybnMgQUND RVBUX1VOTE9DSydlZC4gKi8NCg0KICAgICAgICAgICAgICAgICAgICAgICAvLyBFeHBhbmRpbmcg c29mcmVlDQoNCiAgICAgICAgICAgICAgICAgICAgICB7DQoNCiAgICAgICAgICAgICAgICAgICAg ICAgIOKApuKApi4NCg0KICAgICAgICAgICAgICAgICAgICAgICAgcHJ1X2RldGFjaA0KDQogICAg ICAgICAgICAgICAgICAgICAgICAvLyBleHBhbmRpbmcgcHJ1X2RldGFjaA0KDQogICAgICAgICAg ICAgICAgICAgICAgICB7DQoNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gUmVjdXJz aXZlIHdsb2NrIGFjcXVpcmluZy4NCg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICBVTlBf TElOS19XTE9DSygpICAgICA84oCU4oCU4oCU4oCU4oCU4oCU4oCU4oCU4oCU4oCUICAybmQgQ2Fs bA0KDQpMZXQgbWUga25vdyB5b3VyIHRob3VnaHRzIG9yIGlmIHlvdSBuZWVkIG1vcmUgaW5mb3Jt YXRpb24uIFRoYW5rcyAhDQoNClRoYW5rcw0KUmF2aVByYWthc2ggRGFyYmhhDQpyZGFyYmhhQGp1 bmlwZXIubmV0PG1haWx0bzpyZGFyYmhhQGp1bmlwZXIubmV0Pg0KDQoNCg0K
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?948AD75B-BF6E-4672-8B50-9CF9E25667EA>