Changeset ae66564 in mainline for kernel/generic/src/ipc/ops/pagein.c


Ignore:
Timestamp:
2016-09-17T15:26:25Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5a97302
Parents:
560b81c
Message:

Add reference to frame only if the action was initiated by the kernel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ipc/ops/pagein.c

    r560b81c rae66564  
    4646static int answer_preprocess(call_t *answer, ipc_data_t *olddata)
    4747{
     48        /*
     49         * We only do the special handling below if the call was initiated by
     50         * the kernel. Otherwise a malicious task could use this mechanism to
     51         * hold memory frames forever.
     52         */
     53        if (!answer->priv)
     54                return EOK;
     55
    4856        if (!IPC_GET_RETVAL(answer->data)) {
     57
    4958                pte_t pte;
    5059                uintptr_t frame;
Note: See TracChangeset for help on using the changeset viewer.