[PATCH 3.2 65/74] Bluetooth: Properly check L2CAP config option output buffer length

2017-10-09 Thread Ben Hutchings
3.2.94-rc1 review patch. If anyone has any objections, please let me know. -- From: Ben Seri commit e860d2c904d1a9f38a24eb44c9f34b8f915a6ea3 upstream. Validate the output buffer length for L2CAP config requests and responses to avoid overflowing the stack

[PATCH 3.2 65/74] Bluetooth: Properly check L2CAP config option output buffer length

2017-10-09 Thread Ben Hutchings
3.2.94-rc1 review patch. If anyone has any objections, please let me know. -- From: Ben Seri commit e860d2c904d1a9f38a24eb44c9f34b8f915a6ea3 upstream. Validate the output buffer length for L2CAP config requests and responses to avoid overflowing the stack buffer used for