[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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.