Commit f9309dc
io_uring: check for valid register opcode earlier
[ Upstream commit 3431908 ]
We only check the register opcode value inside the restricted ring
section, move it into the main io_uring_register() function instead
and check it up front.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 4df413d commit f9309dc
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10895 | 10895 | | |
10896 | 10896 | | |
10897 | 10897 | | |
10898 | | - | |
10899 | | - | |
10900 | 10898 | | |
10901 | 10899 | | |
10902 | 10900 | | |
| |||
11028 | 11026 | | |
11029 | 11027 | | |
11030 | 11028 | | |
| 11029 | + | |
| 11030 | + | |
| 11031 | + | |
11031 | 11032 | | |
11032 | 11033 | | |
11033 | 11034 | | |
| |||
0 commit comments