+++ This bug was initially created as a clone of Bug #249727 +++ Description of problem: The Coverity checker spotted the following use-after-free in drivers/xen/xenbus/xenbus_xs.c: <-- snip --> ... static int process_msg(void) { ... if (IS_ERR(msg->u.watch.vec)) { kfree(msg); err = PTR_ERR(msg->u.watch.vec); ... <-- snip --> Version-Release number of selected component (if applicable): 4.5 How reproducible: Would need to exhaust system memory to generate a ENOMEM while performing xenstore access by xenbus driver Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
Posted patch that is simple copy/port of: http://xenbits.xensource.com/xen-3.1-testing.hg?rev/20284e9cd540
in 2.6.18-62.el5 You can download this test kernel from http://people.redhat.com/dzickus/el5
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2008-0314.html