Re: [PATCH] i386 TIF flags for debug regs and io bitmap in ctxsw (v2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Chuck,

On Tue, Jul 25, 2006 at 03:19:49PM -0400, Chuck Ebbert wrote:
> 
> > As for TIF_DEBUG, my patch is not clearing it. I don't think you can
> > have HW breakpoints be inherited from one task to the other.
> 
> Looks like the debug regs get copied on fork and only cleared on exec
> in flush_thread().  So this should be OK.  Please doublecheck.
> 
How is this supposed to work? You can set debug registers via ptrace().
So A is ptracing B and sets up breakpoints in B. Now, if B forks C,
C inherits the breakpoints of B. But what about the ptracing and re-parenting
that is associated with this? If A does not know about C, I wonder how this
could be work and be useful?

> (The new TIF_DEBUG flag went into 2.8.18-rc, in case you didn't notice.)

I did not keep track but thanks or this update. That's great!

-- 
-Stephane
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux