WARNING: at net/ipv4/tcp.c

Abhijeet Bhatikar abhijeet_bhatikar at qualexsystems.com
Tue Apr 21 00:37:05 EDT 2015


Hello,

 

I am getting this trace from my driver which I ported from 2.6.32-431 to
3.10.0-123 kernel.

The driver works just fine on 2.6.32-431 kernel but not on 3.10.0-123 after
porting.

Ping works fine on 3.10.0-123 but I get this trace when I run ssh or tcp
traffic.

Please find the attached wireshark traces of both machines in between ssh
was tried.

Please help.

 

Patch:

 

--- a/src/kernel/xyvnic/xyvnic.c

+++ b/src/kernel/xyvnic/xyvnic.c

@@ -230,7 +230,11 @@ xyvnic_worker_thread(void *arg)

                         * Once unconditional, we will always notify when
the

                         * link returns (and when we restart the driver).

                         */

+#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 5, 0))

                        netif_notify_peers(sp->dev);

+#else

+                       netdev_notify_peers(sp->dev);

+#endif

                        /*

                         *      You may get a series of:

                         *              NOHZ: local_softirq_pending

@@ -429,7 +433,11 @@ xyvnic_probe(void)

        dev->netdev_ops = &xyvnic_netdev_ops;

        dev->mtu = STUB_MTU;

        dev->hard_header_len = ETH_HLEN + 2;

+#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 2, 0))

        dev->features = NETIF_F_NO_CSUM;

+#else

+       dev->features = NETIF_F_HW_CSUM;

+#endif

        netif_napi_add(dev, &sp->napi, xyvnic_poll, 256);

        SET_ETHTOOL_OPS(dev, &xyvnic_ethtool_ops);

 

Trace:

 

[ 8904.486918] ------------[ cut here ]------------

[ 8904.492910] WARNING: at net/ipv4/tcp.c:1669 tcp_recvmsg+0xd1c/0xe90()

[ 8904.500614] recvmsg bug 2: copied AFA498B3 seq AFA498B3 rcvnxt AFA49EDC
fl 0

[ 8904.508914] Modules linked in: fuse btrfs zlib_deflate raid6_pq xor vfat
msdos fat ext4 mbcache jbd2 binfmt_misc bridge stp llc xyvnic(POF)
xybridge(POF) sg nfsv3 nfs fscache iTCO_wdt iTCO_vendor_support raid1
dm_mirror dm_region_hash dm_log dm_mod coretemp kvm_intel ipmi_devintf kvm
crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel lrw gf128mul
sb_edac glue_helper ablk_helper lpc_ich ses cryptd i2c_i801 pcspkr edac_core
mfd_core enclosure ioatdma ipmi_si ipmi_msghandler shpchp acpi_cpufreq wmi
mperf acpi_pad nfsd auth_rpcgss nfs_acl lockd sunrpc xfs libcrc32c sd_mod
sr_mod cdrom crc_t10dif crct10dif_common mlx4_en usb_storage ast syscopyarea
sysfillrect ixgbe sysimgblt i2c_algo_bit drm_kms_helper ttm mdio ahci e1000e
libahci dca drm mpt3sas ptp crc32c_intel libata mlx4_core i2c_core

[ 8904.588598]  raid_class pps_core scsi_transport_sas

[ 8904.593575] CPU: 2 PID: 26342 Comm: ssh Tainted: PF       W
O--------------   3.10.0-123.20.1.el7.6.xrs7.x86_64 #1

[ 8904.605399] Hardware name: Seagate CS6000AC/Type2 - Board Product Summit
Point, BIOS SummitPoint.v03.0005 12/12/2014

[ 8904.617329]  ffff880451583c18 00000000eae1daff ffff880451583bd0
ffffffff815e2b0c

[ 8904.626232]  ffff880451583c08 ffffffff8105dee1 ffff880464f16100
00000000ffffffff

[ 8904.635139]  ffff88045b0aaaac ffff88045b0aa610 0000000000000000
ffff880451583c70

[ 8904.644060] Call Trace:

[ 8904.647954]  [<ffffffff815e2b0c>] dump_stack+0x19/0x1b

[ 8904.654551]  [<ffffffff8105dee1>] warn_slowpath_common+0x61/0x80

[ 8904.662017]  [<ffffffff8105df5c>] warn_slowpath_fmt+0x5c/0x80

[ 8904.669200]  [<ffffffff815ea202>] ? _raw_spin_lock_bh+0x12/0x50

[ 8904.676556]  [<ffffffff8151ae4c>] tcp_recvmsg+0xd1c/0xe90

[ 8904.683359]  [<ffffffff8154347b>] inet_recvmsg+0x7b/0xa0

[ 8904.690037]  [<ffffffff814b7316>] sock_aio_read.part.7+0x146/0x160

[ 8904.697559]  [<ffffffff811c3701>] ? set_fd_set+0x21/0x30

[ 8904.704183]  [<ffffffff814b7351>] sock_aio_read+0x21/0x30

[ 8904.710855]  [<ffffffff811aeffd>] do_sync_read+0x8d/0xd0

[ 8904.717411]  [<ffffffff811af785>] vfs_read+0x145/0x170

[ 8904.723752]  [<ffffffff811b0208>] SyS_read+0x58/0xb0

[ 8904.729891]  [<ffffffff815f3219>] system_call_fastpath+0x16/0x1b

[ 8904.737044] ---[ end trace e338b9f1a546ee37 ]---

[ 8904.742782] ------------[ cut here ]------------

[ 8904.748524] WARNING: at net/ipv4/tcp.c:1657 tcp_recvmsg+0x4f7/0xe90()

[ 8904.756103] recvmsg bug: copied AFA498B3 seq AFA49EB3 rcvnxt AFA49EDC fl
0

[ 8904.764108] Modules linked in: fuse btrfs zlib_deflate raid6_pq xor vfat
msdos fat ext4 mbcache jbd2 binfmt_misc bridge stp llc xyvnic(POF)
xybridge(POF) sg nfsv3 nfs fscache iTCO_wdt iTCO_vendor_support raid1
dm_mirror dm_region_hash dm_log dm_mod coretemp kvm_intel ipmi_devintf kvm
crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel lrw gf128mul
sb_edac glue_helper ablk_helper lpc_ich ses cryptd i2c_i801 pcspkr edac_core
mfd_core enclosure ioatdma ipmi_si ipmi_msghandler shpchp acpi_cpufreq wmi
mperf acpi_pad nfsd auth_rpcgss nfs_acl lockd sunrpc xfs libcrc32c sd_mod
sr_mod cdrom crc_t10dif crct10dif_common mlx4_en usb_storage ast syscopyarea
sysfillrect ixgbe sysimgblt i2c_algo_bit drm_kms_helper ttm mdio ahci e1000e
libahci dca drm mpt3sas ptp crc32c_intel libata mlx4_core i2c_core

[ 8904.843667]  raid_class pps_core scsi_transport_sas

[ 8904.848645] CPU: 2 PID: 26342 Comm: ssh Tainted: PF       W
O--------------   3.10.0-123.20.1.el7.6.xrs7.x86_64 #1

[ 8904.860468] Hardware name: Seagate CS6000AC/Type2 - Board Product Summit
Point, BIOS SummitPoint.v03.0005 12/12/2014

[ 8904.872408]  ffff880451583c18 00000000eae1daff ffff880451583bd0
ffffffff815e2b0c

[ 8904.881315]  ffff880451583c08 ffffffff8105dee1 ffff880464f16600
00000000ffffffff

[ 8904.890230]  ffff88045b0aaaac ffff88045b0aa610 0000000000000000
ffff880451583c70

[ 8904.899157] Call Trace:

[ 8904.903053]  [<ffffffff815e2b0c>] dump_stack+0x19/0x1b

[ 8904.909640]  [<ffffffff8105dee1>] warn_slowpath_common+0x61/0x80

[ 8904.917105]  [<ffffffff8105df5c>] warn_slowpath_fmt+0x5c/0x80

[ 8904.924335]  [<ffffffff815ea202>] ? _raw_spin_lock_bh+0x12/0x50

[ 8904.931686]  [<ffffffff8151a627>] tcp_recvmsg+0x4f7/0xe90

[ 8904.938488]  [<ffffffff8154347b>] inet_recvmsg+0x7b/0xa0

[ 8904.945168]  [<ffffffff814b7316>] sock_aio_read.part.7+0x146/0x160

[ 8904.952626]  [<ffffffff811c3701>] ? set_fd_set+0x21/0x30

[ 8904.959133]  [<ffffffff814b7351>] sock_aio_read+0x21/0x30

[ 8904.965713]  [<ffffffff811aeffd>] do_sync_read+0x8d/0xd0

[ 8904.972104]  [<ffffffff811af785>] vfs_read+0x145/0x170

[ 8904.978313]  [<ffffffff811b0208>] SyS_read+0x58/0xb0

[ 8904.984258]  [<ffffffff815f3219>] system_call_fastpath+0x16/0x1b

[ 8904.991223] ---[ end trace e338b9f1a546ee38 ]---

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150421/6296df0d/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: machine1.pcap
Type: application/octet-stream
Size: 5414 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150421/6296df0d/attachment-0002.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: machine2.pcap
Type: application/octet-stream
Size: 5414 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150421/6296df0d/attachment-0003.obj 


More information about the Kernelnewbies mailing list