netlink question

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

 



Hi All,
    From my recent madding of today I'm bit surprise with the test result
seen on linux-2.4.24 kernel.
    I's trying to list conntrack entries via netlink interface with the
framework of nfnetlink/nfnetlink_conntrack. The program gives me proper
listing of the conntrack entries but then It was not coming out from the
loop within nfnl_listen into libnfnetlink.
    I might not be able to identify the last entry from the netlink message
and continuing calling recvmsg. For identifying that stopped entry, I
entered into a function netlink_dump of af_netlink.c. After a session of
direction-less tracing for a solution I found that sock_put does not returns
back. I inserted a printk before and after that call and I did not got 2nd
message.
    Unreturned call of sock_put is not only case of my "conntrack_list"
program but then I see same behavior with some other programs which uses
netlink interfaces, like "tc".

    So is this normal behavior or something is broken into this kernel? I'm
sure it is not normal behavior but then why sock_put is not returning? What
can I try more to know the root of the problem? Also how can I find listing
of netlink sockets into system?
    Thanks in advance.
Regards,
-- Sumit


-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux