Skip to content

Commit 39bc1a2

Browse files
authored
Merge pull request #345 from algonell/master
Rewrite a statement
2 parents 8b9584d + d299770 commit 39bc1a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lkmpg.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1848,7 +1848,7 @@ \subsection{Flashing keyboard LEDs}
18481848

18491849
From v4.14 to v4.15, the timer API made a series of changes to improve memory safety.
18501850
A buffer overflow in the area of a \cpp|timer_list| structure may be able to overwrite the \cpp|function| and \cpp|data| fields, providing the attacker with a way to use return-oriented programming (ROP) to call arbitrary functions within the kernel.
1851-
Also, the function prototype of the callback, containing an \cpp|unsigned long| argument, will prevent work from any type checking.
1851+
Also, the function prototype of the callback, containing an \cpp|unsigned long| argument, will prevent the compiler from performing type checking.
18521852
Furthermore, the function prototype with \cpp|unsigned long| argument may be an obstacle to the forward-edge protection of \textit{control-flow integrity}.
18531853
Thus, it is better to use a unique prototype to separate from the cluster that takes an \cpp|unsigned long| argument.
18541854
The timer callback should be passed a pointer to the \cpp|timer_list| structure rather than an \cpp|unsigned long| argument.

0 commit comments

Comments
 (0)