Oleg Nesterov
c7b4133c48
uprobes: sanitiize xol_free_insn_slot()
...
1. Clear utask->xol_vaddr unconditionally, even if this addr is not valid,
xol_free_insn_slot() should never return with utask->xol_vaddr != NULL.
2. Add a comment to explain why do we need to validate slot_addr.
3. Simplify the validation above. We can simply check offset < PAGE_SIZE,
unsigned underflows are fine, it should work if slot_addr < area->vaddr.
4. Kill the unnecessary "slot_nr >= UINSNS_PER_PAGE" check, slot_nr must
be valid if offset < PAGE_SIZE.
The next patches will cleanup this function even more.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20240929144235.GA9471@redhat.com
2024-10-07 09:28:44 +02:00
..
2024-10-02 17:23:23 -04:00
2024-09-23 09:35:36 -07:00
2024-09-01 20:34:38 +09:00
2024-10-02 17:23:23 -04:00
2024-09-23 08:38:56 +02:00
2024-07-29 07:33:10 +05:30
2024-10-07 09:28:44 +02:00
2024-09-01 20:43:33 -07:00
2024-06-15 10:43:06 -07:00
2024-09-23 12:47:06 -07:00
2024-08-01 16:40:44 -07:00
2024-07-02 16:56:18 +02:00
2024-09-29 08:51:30 -07:00
2024-09-28 09:06:15 -07:00
2024-09-27 08:18:43 -07:00
2024-09-19 10:18:15 +02:00
2024-10-01 18:30:42 +02:00
2024-10-03 16:03:16 -07:00
2024-09-27 08:18:43 -07:00
2024-10-03 16:43:23 -04:00
2024-04-24 09:43:53 +02:00
2024-02-09 11:13:59 -10:00
2024-04-04 16:24:16 +02:00
2024-04-04 16:24:16 +02:00
2024-09-03 16:35:16 -04:00
2024-08-28 16:48:28 -04:00
2024-08-28 16:48:28 -04:00
2024-06-24 22:24:55 -07:00
2024-04-29 08:29:29 -07:00
2024-08-15 21:30:43 +05:30
2024-09-17 07:25:37 +02:00
2024-09-01 20:43:37 -07:00
2024-09-01 20:43:30 -07:00
2024-02-23 17:33:31 -05:00
2024-07-24 20:59:29 +02:00
2024-02-23 17:48:22 -08:00
2024-09-21 07:29:05 -07:00
2024-09-29 21:52:29 -04:00
2024-08-17 11:06:44 +02:00
2024-05-30 01:13:20 +09:00
2024-07-24 20:59:29 +02:00
2024-09-10 11:57:27 +02:00
2024-07-20 16:33:21 +09:00
2024-08-15 09:33:35 -07:00
2024-08-15 09:33:35 -07:00
2024-02-23 17:48:22 -08:00
2024-08-01 07:08:01 -10:00
2024-09-17 12:40:34 +02:00
2024-07-24 20:59:29 +02:00
2024-09-01 17:59:01 -07:00
2024-09-01 20:43:23 -07:00
2024-04-23 14:59:01 +10:00
2024-08-05 14:04:03 +09:00
2024-07-29 10:45:54 -07:00
2024-09-10 09:51:14 +02:00
2024-07-24 20:59:29 +02:00
2024-09-03 21:15:26 -07:00
2024-08-12 22:00:43 -04:00
2024-09-16 06:28:28 +02:00
2024-09-19 10:18:15 +02:00
2023-12-01 09:51:44 -08:00
2024-07-24 20:59:29 +02:00
2024-07-24 20:59:29 +02:00
2024-08-12 22:00:43 -04:00
2024-08-04 13:36:28 -07:00
2024-02-22 15:38:52 -08:00
2024-04-24 09:43:53 +02:00
2024-04-25 21:07:03 -07:00
2024-09-27 08:18:43 -07:00
2024-09-17 01:07:00 -07:00
2024-09-21 07:29:05 -07:00
2024-05-30 15:31:51 -07:00
2024-07-24 20:59:29 +02:00
2024-09-26 11:39:02 -07:00
2024-08-15 00:06:48 +05:30
2024-08-20 17:13:40 +02:00
2024-07-24 20:59:29 +02:00
2023-12-29 12:22:29 -08:00
2024-09-06 16:29:22 +02:00
2024-08-15 21:30:42 +05:30
2024-07-18 12:19:20 -07:00
2024-09-23 09:35:36 -07:00
2024-06-03 15:20:37 +02:00
2024-07-24 20:59:29 +02:00
2024-07-29 12:05:06 -07:00
2024-08-12 22:00:43 -04:00
2024-05-30 15:31:38 -07:00
2024-09-25 23:23:44 +09:00
2024-07-12 16:39:53 -07:00
2024-05-17 17:31:24 -07:00
2024-07-24 20:59:29 +02:00
2024-09-09 16:47:42 -07:00
2024-09-12 12:16:09 +02:00
2024-07-24 20:59:29 +02:00
2024-05-22 08:31:15 -04:00
2024-09-03 21:15:43 -07:00
2024-08-12 22:00:43 -04:00
2024-07-17 21:11:34 -07:00
2024-09-01 20:43:32 -07:00
2024-09-18 06:59:44 +02:00