• C
    mm/sharepool: Support alloc ro mapping · d9687e45
    Chen Jun 提交于
    hulk inclusion
    category: feature
    bugzilla: https://gitee.com/openeuler/kernel/issues/I5I72Q
    CVE: NA
    
    --------------------------------
    
    1. Split sharepool normal area(8T) to sharepool readonly area(64G) and
    sharepool normal area(8T - 64G)
    2. User programs can not write to the address in sharepool readonly
       area.
    3. Add SP_PROT_FOCUS for sp_alloc.
    4. sp_alloc with SP_PROT_RO | SP_PROT_FOCUS returns the virtual address
       within sharepool readonly area.
    5. Other user programs which add into task with write prot can not write
    the address in sharepool readonly area.
    Signed-off-by: NChen Jun <chenjun102@huawei.com>
    d9687e45
share_pool.c 112.9 KB