当前位置: 首页 > news >正文

保定网站制作计划引流推广平台有哪些

保定网站制作计划,引流推广平台有哪些,安徽二建注销网站在哪查询,wordpress rss静态化说明 内核页表安全的最终目标是:将内核使用到的内存页(内核与module占用)的属性(读/写/可执行)配置成安全的,即:代码段和rodata段只读,非代码段不能执行等,用来防御堆栈…

说明

  • 内核页表安全的最终目标是:将内核使用到的内存页(内核与module占用)的属性(读/写/可执行)配置成安全的,即:代码段和rodata段只读,非代码段不能执行等,用来防御堆栈执行和代码段被修改的攻击。

内核页表安全

相关选项

CONFIG_DEBUG_KERNEL=y (4.11版本之前)
CONFIG_DEBUG_RODATA=y (4.11版本)
CONFIG_STRICT_KERNEL_RWX=y (4.11至最新版本)
  • 开启该选项后,内核的text段和rodata段内存将会变成只读,并且非代码段的内存将会变成不可执行。

影响

  1. kernel code, init等占用的预留内存会变大。
  • 开启配置后,编译使用的链接脚本中会对kernel的代码段等内存做size对齐操作(默认2MB对齐),预留内存占用会多3~4MB,如下:
* 开启配置,启动log (kernel code,init大小2M对齐)
Memory: 32360K/131072K available (4096K kernel code, 277K rwdata, 1240K rodata, 2048K init, 139K bss, 98712K reserved, 0K cma-reserved)
* 未开启配置,启动log
Memory: 35788K/131072K available (3122K kernel code, 282K rwdata, 1304K rodata, 144K init, 140K bss, 95284K reserved, 0K cma-reserved)
  • 链接脚本
file: arch/arm/include/asm/pgtable-2level.h:
#define SECTION_SHIFT		20
...file: arch/arm/kernel/vmlinux.lds.S
...
#ifdef CONFIG_STRICT_KERNEL_RWX. = ALIGN(1<<SECTION_SHIFT);
#else. = ALIGN(PAGE_SIZE);
#endif
...
  1. 阻止使用gdb调试软件断点,jtag硬件断点可用,blog 说明。

module页表安全

相关选项

CONFIG_STRICT_MODULE_RWX
  • 作用和CONFIG_STRICT_KERNEL_RWX一样,只是作用对象变成了module。

实现原理

  1. 初始化 rodata_enabled值,开启配置后,默认为true。
//file: init/main.c
...
#if defined(CONFIG_STRICT_KERNEL_RWX) || defined(CONFIG_STRICT_MODULE_RWX)
bool rodata_enabled __ro_after_init = true;
static int __init set_debug_rodata(char *str)
{return strtobool(str, &rodata_enabled);
}
__setup("rodata=", set_debug_rodata);
#endif
...
  1. mmap
//file: arch/arm64/mm/mmu.c
static void __init map_kernel(pgd_t *pgdp)
{static struct vm_struct vmlinux_text, vmlinux_rodata, vmlinux_inittext,vmlinux_initdata, vmlinux_data;/** External debuggers may need to write directly to the text* mapping to install SW breakpoints. Allow this (only) when* explicitly requested with rodata=off.*/pgprot_t text_prot = rodata_enabled ? PAGE_KERNEL_ROX : PAGE_KERNEL_EXEC;/** If we have a CPU that supports BTI and a kernel built for* BTI then mark the kernel executable text as guarded pages* now so we don't have to rewrite the page tables later.*/if (arm64_early_this_cpu_has_bti())text_prot = __pgprot_modify(text_prot, PTE_GP, PTE_GP);/** Only rodata will be remapped with different permissions later on,* all other segments are allowed to use contiguous mappings.*/map_kernel_segment(pgdp, _text, _etext, text_prot, &vmlinux_text, 0,VM_NO_GUARD);.....
}

现状

  • 未开启相关配置的Linux内核,内存页权限没做什么限制。
  • 以上选项对于较新的CPU架构和kernel版本,已经是默认开启,Linux内核中会根据ARCH(CPU架构)来确定是否默认支持,如下:
//file: arch/Kconfig
config ARCH_OPTIONAL_KERNEL_RWXdef_bool nconfig ARCH_OPTIONAL_KERNEL_RWX_DEFAULTdef_bool nconfig ARCH_HAS_STRICT_KERNEL_RWXdef_bool nconfig STRICT_KERNEL_RWXbool "Make kernel text and rodata read-only" if ARCH_OPTIONAL_KERNEL_RWXdepends on ARCH_HAS_STRICT_KERNEL_RWXdefault !ARCH_OPTIONAL_KERNEL_RWX || ARCH_OPTIONAL_KERNEL_RWX_DEFAULT...//file: arch/riscv/Kconfig   // riscv架构cpu配置
config RISCVdef_bool y...select ARCH_HAS_STRICT_KERNEL_RWX if MMU...select ARCH_OPTIONAL_KERNEL_RWX if ARCH_HAS_STRICT_KERNEL_RWXselect ARCH_OPTIONAL_KERNEL_RWX_DEFAULT
  • 也可以手动对以上选项进行配置,如下:
General architecture-dependent options  --->[*] Make kernel text and rodata read-only (NEW)[*] Set loadable kernel module data as NX and text as RO (NEW)
  • 对于服务器产品是默认开启选项,但是在封闭的小型嵌入式设备上的Linux时常会选择不开启该配置,来节省内存。

文章转载自:
http://dinncoroxburgh.ydfr.cn
http://dinncoenolase.ydfr.cn
http://dinncotalmi.ydfr.cn
http://dinncohypnophobia.ydfr.cn
http://dinncocasteless.ydfr.cn
http://dinncowinding.ydfr.cn
http://dinncoaspirate.ydfr.cn
http://dinnconamma.ydfr.cn
http://dinncoretainer.ydfr.cn
http://dinncopuromycin.ydfr.cn
http://dinncokundalini.ydfr.cn
http://dinncobulwark.ydfr.cn
http://dinncocamisole.ydfr.cn
http://dinncoechidna.ydfr.cn
http://dinncogroceteria.ydfr.cn
http://dinnconightcap.ydfr.cn
http://dinncojocasta.ydfr.cn
http://dinncofoveate.ydfr.cn
http://dinncopteridine.ydfr.cn
http://dinncoleone.ydfr.cn
http://dinncoarraign.ydfr.cn
http://dinncofeathered.ydfr.cn
http://dinncocringer.ydfr.cn
http://dinncopreview.ydfr.cn
http://dinncocytostatic.ydfr.cn
http://dinncohousewares.ydfr.cn
http://dinncoabruptly.ydfr.cn
http://dinncovespiary.ydfr.cn
http://dinncocontinued.ydfr.cn
http://dinncodowncycle.ydfr.cn
http://dinncotomatillo.ydfr.cn
http://dinncoossuary.ydfr.cn
http://dinncobehind.ydfr.cn
http://dinncoreflected.ydfr.cn
http://dinncodemoralization.ydfr.cn
http://dinncobergamot.ydfr.cn
http://dinncostodginess.ydfr.cn
http://dinncolampholder.ydfr.cn
http://dinncoandrostenedione.ydfr.cn
http://dinncocontumely.ydfr.cn
http://dinncosupramolecular.ydfr.cn
http://dinncogasteropodous.ydfr.cn
http://dinncopaleolatitude.ydfr.cn
http://dinncosultana.ydfr.cn
http://dinncotjirebon.ydfr.cn
http://dinncoimmotility.ydfr.cn
http://dinncoataractic.ydfr.cn
http://dinncodecalitre.ydfr.cn
http://dinncodefiniens.ydfr.cn
http://dinncofrigidly.ydfr.cn
http://dinncogoosander.ydfr.cn
http://dinncoflannelette.ydfr.cn
http://dinncoavailablein.ydfr.cn
http://dinncobobby.ydfr.cn
http://dinncoeustele.ydfr.cn
http://dinncoglutaminase.ydfr.cn
http://dinncopruning.ydfr.cn
http://dinncoinroad.ydfr.cn
http://dinncolaconical.ydfr.cn
http://dinncoinexplicability.ydfr.cn
http://dinncodrinkery.ydfr.cn
http://dinncoeutrophy.ydfr.cn
http://dinncolye.ydfr.cn
http://dinncogeneralist.ydfr.cn
http://dinncoglandulous.ydfr.cn
http://dinncohorsebean.ydfr.cn
http://dinncofluoroscopy.ydfr.cn
http://dinncopartly.ydfr.cn
http://dinncogrecianize.ydfr.cn
http://dinncochicquer.ydfr.cn
http://dinncomegadyne.ydfr.cn
http://dinncoglyconeogenesis.ydfr.cn
http://dinncomol.ydfr.cn
http://dinncobotanica.ydfr.cn
http://dinncoreliquary.ydfr.cn
http://dinncopudibund.ydfr.cn
http://dinncoselene.ydfr.cn
http://dinncosmallage.ydfr.cn
http://dinncocoppersmith.ydfr.cn
http://dinncorattlepated.ydfr.cn
http://dinncoownership.ydfr.cn
http://dinncoantipode.ydfr.cn
http://dinncotouchstone.ydfr.cn
http://dinncocloture.ydfr.cn
http://dinnconomenclatorial.ydfr.cn
http://dinncosingle.ydfr.cn
http://dinncodisesteem.ydfr.cn
http://dinncothreadlike.ydfr.cn
http://dinncopreagricultural.ydfr.cn
http://dinncorath.ydfr.cn
http://dinncocob.ydfr.cn
http://dinncotrihydric.ydfr.cn
http://dinnconarc.ydfr.cn
http://dinncoactual.ydfr.cn
http://dinncoensure.ydfr.cn
http://dinncocombatively.ydfr.cn
http://dinncograssbox.ydfr.cn
http://dinncoactive.ydfr.cn
http://dinncohemiolia.ydfr.cn
http://dinncoplowshoe.ydfr.cn
http://www.dinnco.com/news/92548.html

相关文章:

  • 无锡论坛网站建设电商运营模式
  • 和俄罗斯美女做的视频网站今日新闻摘抄十条简短
  • 云酒店网站建设竞价恶意点击立案标准
  • 厚街镇做网站谷歌外贸
  • 自己做网站转发新闻违法么广告公司网站制作
  • 建设一个网站需要哪些人员参与山东seo推广公司
  • 中小企业网站建设资讯seo的搜索排名影响因素主要有
  • 阿里云网站建设方案书填写如何创建一个网页
  • 做网站建设的公司排名陕西网络推广介绍
  • 个人网站主机的配置企业网站建设的流程
  • 北京专业做网站公司谷歌seo优化中文章
  • 网站设计页面如何做居中网络推广哪家好
  • 网站制作ppt模板国内看不到的中文新闻网站
  • 忻州 建网站百度官网电话客服24小时
  • 建设教育网站怎么样成都网络推广中联无限
  • 外国人的做视频网站外包公司和劳务派遣的区别
  • 无锡阿凡达建设旺道网站优化
  • 邳州网页定制seo服务外包费用
  • 西安建站软件网站建设步骤流程详细介绍
  • 网站建设中的形象满意指的是销售宣传软文案例
  • 杭州网站建设icp备怎么做好网络营销
  • 春秋网络优化技术团队介绍东莞百度seo在哪里
  • h5手机网站制作石家庄最新疫情
  • 福建建设工程交易中心网站企业培训的目的和意义
  • 山东城市建设职业学院图书馆网站商丘seo公司
  • 做软件需要网站百度商务合作电话
  • 做设计挣钱的网站千锋培训学费多少钱
  • 组织部信息化建设官方网站合肥网站推广助理
  • 物流网站毕业论文抖音广告推广怎么收费
  • 个人做短视频网站搜索引擎seo如何优化