• Home
  • Raw
  • Download

Lines Matching refs:st

99 static void note_prot_wx(struct pg_state *st, unsigned long addr)  in note_prot_wx()  argument
102 if (!st->check_wx) in note_prot_wx()
104 if (st->current_prot & _PAGE_INVALID) in note_prot_wx()
106 if (st->current_prot & _PAGE_PROTECT) in note_prot_wx()
108 if (st->current_prot & _PAGE_NOEXEC) in note_prot_wx()
114 (void *)st->start_address); in note_prot_wx()
115 st->wx_pages += (addr - st->start_address) / PAGE_SIZE; in note_prot_wx()
125 struct pg_state *st; in note_page() local
129 st = container_of(pt_st, struct pg_state, ptdump); in note_page()
130 m = st->seq; in note_page()
140 if (st->level == -1) { in note_page()
141 pt_dump_seq_printf(m, "---[ %s ]---\n", st->marker->name); in note_page()
142 st->start_address = addr; in note_page()
143 st->current_prot = prot; in note_page()
144 st->level = level; in note_page()
145 } else if (prot != st->current_prot || level != st->level || in note_page()
146 addr >= st->marker[1].start_address) { in note_page()
147 note_prot_wx(st, addr); in note_page()
149 width, st->start_address, in note_page()
151 delta = (addr - st->start_address) >> 10; in note_page()
157 print_prot(m, st->current_prot, st->level); in note_page()
158 while (addr >= st->marker[1].start_address) { in note_page()
159 st->marker++; in note_page()
160 pt_dump_seq_printf(m, "---[ %s ]---\n", st->marker->name); in note_page()
162 st->start_address = addr; in note_page()
163 st->current_prot = prot; in note_page()
164 st->level = level; in note_page()
171 struct pg_state st = { in ptdump_check_wx() local
193 ptdump_walk_pgd(&st.ptdump, &init_mm, NULL); in ptdump_check_wx()
194 if (st.wx_pages) in ptdump_check_wx()
195 pr_warn("Checked W+X mappings: FAILED, %lu W+X pages found\n", st.wx_pages); in ptdump_check_wx()
204 struct pg_state st = { in ptdump_show() local
223 ptdump_walk_pgd(&st.ptdump, &init_mm, NULL); in ptdump_show()