hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/x86/kernel/uprobes.c
....@@ -722,8 +722,9 @@
722722 switch (opc1) {
723723 case 0xeb: /* jmp 8 */
724724 case 0xe9: /* jmp 32 */
725
- case 0x90: /* prefix* + nop; same as jmp with .offs = 0 */
726725 break;
726
+ case 0x90: /* prefix* + nop; same as jmp with .offs = 0 */
727
+ goto setup;
727728
728729 case 0xe8: /* call relative */
729730 branch_clear_offset(auprobe, insn);
....@@ -753,6 +754,7 @@
753754 return -ENOTSUPP;
754755 }
755756
757
+setup:
756758 auprobe->branch.opc1 = opc1;
757759 auprobe->branch.ilen = insn->length;
758760 auprobe->branch.offs = insn->immediate.value;