.. | .. |
---|
119 | 119 | * But if one were to fail, then they all should, and if one were |
---|
120 | 120 | * to succeed, then they all should. |
---|
121 | 121 | */ |
---|
122 | | - mod_code_status = probe_kernel_write(mod_code_ip, mod_code_newcode, |
---|
| 122 | + mod_code_status = copy_to_kernel_nofault(mod_code_ip, mod_code_newcode, |
---|
123 | 123 | MCOUNT_INSN_SIZE); |
---|
124 | 124 | |
---|
125 | 125 | /* if we fail, then kill any new writers */ |
---|
.. | .. |
---|
203 | 203 | */ |
---|
204 | 204 | |
---|
205 | 205 | /* read the text we want to modify */ |
---|
206 | | - if (probe_kernel_read(replaced, (void *)ip, MCOUNT_INSN_SIZE)) |
---|
| 206 | + if (copy_from_kernel_nofault(replaced, (void *)ip, MCOUNT_INSN_SIZE)) |
---|
207 | 207 | return -EFAULT; |
---|
208 | 208 | |
---|
209 | 209 | /* Make sure it is what we expect it to be */ |
---|
.. | .. |
---|
268 | 268 | { |
---|
269 | 269 | unsigned char code[MCOUNT_INSN_SIZE]; |
---|
270 | 270 | |
---|
271 | | - if (probe_kernel_read(code, (void *)ip, MCOUNT_INSN_SIZE)) |
---|
| 271 | + if (copy_from_kernel_nofault(code, (void *)ip, MCOUNT_INSN_SIZE)) |
---|
272 | 272 | return -EFAULT; |
---|
273 | 273 | |
---|
274 | 274 | if (old_addr != __raw_readl((unsigned long *)code)) |
---|