On Sat, Aug 02, 2025 at 12:34:27PM +0200, Oleg Nesterov wrote: > On 08/01, Jiri Olsa wrote: > > > > If uprobe handler changes instruction pointer we still execute single > > step) or emulate the original instruction and increment the (new) ip > > with its length. > > Yes... but what if we there are multiple consumers? The 1st one changes > instruction_pointer, the next is unaware. Or it may change regs->ip too...
right, and I think that's already bad in current code how about we dd flag to the consumer that ensures it's the only consumer on the uprobe.. and we would skip original instruction execution for such uprobe if its consumer changes the regs->ip.. I'll try to come up with the patch jirka