Opened 13 years ago
Last modified 8 years ago
#528 new defect
Address space area leak in remote_ahci_read/write_blocks() — at Initial Version
| Reported by: | Jakub Jermář | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | helenos/lib/other | Version: | mainline |
| Keywords: | Cc: | ||
| Blocker for: | Depends on: | ||
| See also: |
Description
It looks like there is a leak of a shared address space area in remote_ahci_write_blocks() and remote_ahci_read_blocks():
void *buf;
async_share_out_finalize(cid, &buf);
const uint64_t blocknum =
(((uint64_t) (DEV_IPC_GET_ARG1(*call))) << 32) |
(((uint64_t) (DEV_IPC_GET_ARG2(*call))) & 0xffffffff);
const size_t cnt = (size_t) DEV_IPC_GET_ARG3(*call);
const int ret = ahci_iface->read_blocks(fun, blocknum, cnt, buf);
async_answer_0(callid, ret);
buf is passed to ahci_read/write_blocks(), but it is never as_destroy()'ed in either of them nor in any other part of the ahci driver.
Note:
See TracTickets
for help on using tickets.
