ã©ãã
mmapã«å¤±æãã¦ãã£ã½ãã
execãã©ã®ããã«mmapãããã¨ããã¨ã
- p_offset ããã¼ã¸å¢çã¾ã§åãæ¨ã¦ãã
- p_offset+p_filesz ããã¼ã¸å¢çã¾ã§åãä¸ããã
- ä¸ãå«ããã¼ã¸ãp_vaddrããã¼ã¸å¢çã¾ã§åãæ¨ã¦ã¦ãããã«ããã
ãã¡ã®ç°å¢ã ãp_fileszãã§ããã¦ãå®è¡ã«æåãããmmapã®å®è£ ã¯fsä¾åã ãã©ãã»ã¨ãã©xfsãªãã ããªããä¸æè°ä¸æè°ã
mmapã¯ä»®æ³ã¡ã¢ãªãã確ä¿ã§ããã°æåãã¦ããã¼ã¸ãã©ã¼ã«ããèµ·ãããã¨ã«ãã¡ã¤ã«çµç«¯ãè¶ ãã¦ãªããããã§ãã¯ããã£ã½ããã¾ãããããã¦ãããã©ã³ã±ã¼ãã¨ããããããããããããæ£ããã®ã ãããã£ã¦ãã¨ã¯ãã¡ã¤ã«çµç«¯ãè¶ããã¨ããã«ã¢ã¯ã»ã¹ããããã©ãããéµã ã
http://www.linuxhq.com/kernel/v2.6/14/fs/binfmt_elf.c
ããã ï¼bssããã¼ã¸éä¸ããéå§ãã¦ããããããããã¼ã¸çµç«¯ã¾ã§ãã¯ãªã¢ãã¦ãï¼
ã¨ããããã§ãELF golferã¯2.6.14以éã使ãã¾ãããã