[RHEL 5.5] SCTP: Check if the file structure is valid before checking the non-blocking flag

Solution Verified - Updated -

Issue

  • In-kernel sockets created with sock_create_kern() don't usually have a file structure and file descriptor allocated to them. 
  • As a result, when SCTP tries to check the non-blocking flag, the kernel will panic when dereferencing a NULL file pointer.

Environment

  • Red Hat Enterprise Linux 5 update 5 Snapshot 3

  • x86_64

  • kernel-2.6.18-190.el5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content