• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: SocketFilter, Sockets & PCB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SocketFilter, Sockets & PCB


  • Subject: Re: SocketFilter, Sockets & PCB
  • From: Josh Graessley <email@hidden>
  • Date: Fri, 20 Oct 2006 13:44:53 -0700


You may have stumbled across a bug. It could be a bug in the kernel or it could be a bug in your socket filter.


I think all TCP sockets should have a PCB for as long as they exist.

-josh

On Oct 20, 2006, at 1:46 AM, Stephane wrote:


On Oct 19, 2006, at 7:11 PM, Josh Graessley wrote:


What sort of sockets are you talking about? Most sockets have a PCB. The PCB is where the protocol hangs the protocol specific data off the socket.


-joh

On Oct 19, 2006, at 4:20 AM, Stephane wrote:

Stupid question:
----------------

Is it possible for a socket without a pcb to be seen by a (KPI) socket filter?

It's just that after inspecting a kernel panic, the backtrace shows that the panic is coming from the tcp_lock method because the method does not see the pcb (it's null).


the tcp_lock is called by socket_lock called itself by socket_data_inject_in which is called in a delayed method using the bsd_timesomething method.

I can imagine 2 cases for which this case (pcb == null) can happen:

- there was originally no pcb for the socket

- the socket somehow changed between the socket output filter and the execution of the delayed call (maybe disconnection).

So I'm just trying to know if I can eliminate case 1.



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >SocketFilter, Sockets & PCB (From: Stephane <email@hidden>)
 >Re: SocketFilter, Sockets & PCB (From: Josh Graessley <email@hidden>)
 >Re: SocketFilter, Sockets & PCB (From: Stephane <email@hidden>)

  • Prev by Date: Re: panic.log on Intel?
  • Next by Date: Re: 4k mbuf alignment on intel?
  • Previous by thread: Re: SocketFilter, Sockets & PCB
  • Next by thread: 4k mbuf alignment on intel?
  • Index(es):
    • Date
    • Thread