Date: Sat, 11 Jun 2016 21:09:06 +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: Re: Double lock issue of unp_link_rwlock in usrreq.c observed Message-ID: <AC28C92C-6EE2-4FAD-B1E7-BB279CF106E5@juniper.net> In-Reply-To: <948AD75B-BF6E-4672-8B50-9CF9E25667EA@juniper.net> References: <948AD75B-BF6E-4672-8B50-9CF9E25667EA@juniper.net>
next in thread | previous in thread | raw e-mail | index | archive | help
UmVzZW5kaW5nIHRoZSBNYWlsLCBpZiBhbnlvbmUgaGFzIGxvb2tlZCBhdCBpdC4NCg0KVGhhbmtz DQpSYXZpUHJha2FzaCBEYXJiaGENCnJkYXJiaGFAanVuaXBlci5uZXQ8bWFpbHRvOnJkYXJiaGFA anVuaXBlci5uZXQ+DQoNCg0KDQoNCk9uIE1heSAxOSwgMjAxNiwgYXQgMjowNiBQTSwgUmF2aVBy YWthc2ggRGFyYmhhIDxyZGFyYmhhQGp1bmlwZXIubmV0PG1haWx0bzpyZGFyYmhhQGp1bmlwZXIu bmV0Pj4gd3JvdGU6DQoNCkhlbGxvIEFuZHJlDQoNCkkgZW5jb3VudGVyZWQgYSBkb3VibGUgbG9j ayBpc3N1ZSBpbiB1bnBfY29ubmVjdGF0IGZ1bmN0aW9uLiBBZnRlciBsb29raW5nIGF0IHRoZSBj b2RlICwgSSB0aGluayB0aGUgdW5wX2xpbmtfcndsb2NrIGlzIGJlaW5nIGxvY2tlZCBvbmNlIHVu cF9jb25uZWN0YXQgYW5kIG9uY2UgYWdhaW4gaW4gdW5wX2RldGFjaCAgKGNhbGxlZCBmcm9tIHNv ZnJlZSApLiBXb3VsZCBsaWtlIHRvIGdldCB5b3VyIG9waW5pb24gb24gdGhlIGlzc3VlIGFuZCB0 aGUgZml4LiBCZWxvdyBpcyB0aGUgZXhhY3QgY2FsbCBzdGFjay4NCg0KDQpVTlBfTElOS19XTE9D SygpOyAgICAgICAgIDzigJTigJTigJTigJTigJTigJTigJTigJTigJTigJQgIDEgc3QgY2FsbA0K 4oCmLi4NCuKApi4uDQppZiAoc28tPnNvX3Byb3RvLT5wcl9mbGFncyAmIFBSX0NPTk5SRVFVSVJF RCkgew0KICAgICBpZiAoc28yLT5zb19vcHRpb25zICYgU09fQUNDRVBUQ09OTg0KICAgICAgICAg Q1VSVk5FVF9TRVQoc28yLT5zb192bmV0KTsNCiAgICAgICAgICBzbzMgPSBzb25ld2Nvbm4oc28y LCAwKTsNCiAgICAgICAgICAvLyBFeHBhbmRpbmcgc29uZXdjb25uDQogICAgICAgICAgew0KICAg ICAgICAgICAgIHNvbmV3Y29ubg0KICAgICAgICAgICAgICB7DQogICAgICAgICAgICAgICAgICAg 4oCm4oCmDQogICAgICAgICAgICAgICAgICAgc29hbGxvYw0KICAgICAgICAgICAgICAgICAgIOKA puKApi4NCiAgICAgICAgICAgICAgICAgICBwcnVfYXR0YWNoDQogICAgICAgICAgICAgICAgICAg 4oCm4oCmLg0KICAgICAgICAgICAgICAgICAgIGlmICghKGhlYWQtPnNvX29wdGlvbnMgJiBTT19B Q0NFUFRDT05OKSAmJg0KICAgICAgICAgICAgICAgICAgICgoaGVhZC0+c29fcHJvdG8tPnByX3By b3RvY29sICE9IElQUFJPVE9fU0NUUCkgfHwNCiAgICAgICAgICAgICAgICAgICAgKGhlYWQtPnNv X3R5cGUgIT0gU09DS19TRVFQQUNLRVQpKSkgew0KICAgICAgICAgICAgICAgICAgICAgICDigKbi gKbigKYuDQogICAgICAgICAgICAgICAgICAgICAgIHNvZnJlZShzbyk7ICAgICAgICAgICAgIC8q IE5COiByZXR1cm5zIEFDQ0VQVF9VTkxPQ0snZWQuICovDQoNCiAgICAgICAgICAgICAgICAgICAg ICAgLy8gRXhwYW5kaW5nIHNvZnJlZQ0KDQogICAgICAgICAgICAgICAgICAgICAgew0KDQogICAg ICAgICAgICAgICAgICAgICAgICDigKbigKYuDQoNCiAgICAgICAgICAgICAgICAgICAgICAgIHBy dV9kZXRhY2gNCg0KICAgICAgICAgICAgICAgICAgICAgICAgLy8gZXhwYW5kaW5nIHBydV9kZXRh Y2gNCg0KICAgICAgICAgICAgICAgICAgICAgICAgew0KDQogICAgICAgICAgICAgICAgICAgICAg ICAgICAgIC8vIFJlY3Vyc2l2ZSB3bG9jayBhY3F1aXJpbmcuDQoNCiAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgVU5QX0xJTktfV0xPQ0soKSAgICAgPOKAlOKAlOKAlOKAlOKAlOKAlOKAlOKA lOKAlOKAlCAgMm5kIENhbGwNCg0KTGV0IG1lIGtub3cgeW91ciB0aG91Z2h0cyBvciBpZiB5b3Ug bmVlZCBtb3JlIGluZm9ybWF0aW9uLiBUaGFua3MgIQ0KDQpUaGFua3MNClJhdmlQcmFrYXNoIERh cmJoYQ0KcmRhcmJoYUBqdW5pcGVyLm5ldDxtYWlsdG86cmRhcmJoYUBqdW5pcGVyLm5ldD4NCg0K DQoNCg0K
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AC28C92C-6EE2-4FAD-B1E7-BB279CF106E5>