Lines Matching defs:do_nothing
15 /* Whether or not to fill the target memory area with do_nothing(). */
19 /* How many bytes to copy to be sure we've copied enough of do_nothing(). */
35 static noinline void do_nothing(void)
40 /* Must immediately follow do_nothing for size calculuations to work out. */
49 pr_info("do_nothing was hijacked!\n");
57 memcpy(fdesc, do_nothing, sizeof(*fdesc));
68 void *do_nothing_text = dereference_function_descriptor(do_nothing);
71 do_nothing();
91 void *do_nothing_text = dereference_function_descriptor(do_nothing);
94 do_nothing();
141 (unsigned long)dereference_function_descriptor(do_nothing);
145 memcpy((void *)ptr, (unsigned char *)do_nothing, size);
155 void (*func)(void) = do_nothing;
161 pr_info("attempting bad %zu bytes write at %px\n", size, do_nothing);
162 memcpy(do_nothing, do_almost_nothing, size);