lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <AANLkTikz8=H9=O2RR9J0=rHm7pcwabnMupKfiSfGnt1k@mail.gmail.com> Date: Thu, 7 Oct 2010 12:37:32 -0700 From: Chung-Yih Wang (王崇懿) <cywang@...gle.com> To: David Miller <davem@...emloft.net> Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org, timo.teras@....fi Subject: Re: [PATCH] net: Fix sk_dst_check() to reset the obsolete dst_entry of a socket. As I am testing the l2tp/ipsec client(it is working fine on 2.6.32 but failed on 2.6.35 with the same client). Please see the following log dump for sk_dst_check(). <2>[ 201.390289] ==== sk_dst_check sk=C7485800 dst=C717AC60 obsolete=FFFFFFFF cookie=0 check=C0296510 <2>[ 211.247467] ==== sk_dst_check sk=C7485000 dst=C717AC60 obsolete=FFFFFFFF cookie=0 check=C0296510 [Basically, the ipsec tunnel is built and then free the dst_entry for this l2tp socket. Therefore, the obsolete entry should be reset in sk_dst_check(). However, the kernel 2.6.35 will do nothing here since the ipv4_dst_check still return the obsolete entry even if it is obsolete(dst->obsolete=2)] <2>[ 216.571350] ==== sk_dst_check sk=C7485400 dst=C6F670E0 obsolete=00000002 cookie=0 check=C0296510 <6>[ 218.069396] alg: No test for authenc(hmac(sha1),cbc(des3_ede)) (authenc(hmac(sha1-generic),cbc(des3_ede-generic))) <6>[ 218.164764] batt: 96%, 4114 mV, 0 mA (-6 avg), 27.2 C, 1305 mAh <2>[ 218.575561] ==== sk_dst_check sk=C7485400 dst=C6F670E0 obsolete=00000002 cookie=0 check=C0296510 <2>[ 220.580535] ==== sk_dst_check sk=C7485400 dst=C6F670E0 obsolete=00000002 cookie=0 check=C0296510 <2>[ 222.585754] ==== sk_dst_check sk=C7485400 dst=C6F670E0 obsolete=00000002 cookie=0 check=C0296510 <2>[ 224.591522] ==== sk_dst_check sk=C7485400 dst=C6F670E0 obsolete=00000002 cookie=0 check=C0296510 <2>[ 226.599212] ==== sk_dst_check sk=C7485400 dst=C6F670E0 obsolete=00000002 cookie=0 check=C0296510 <2>[ 228.602600] ==== sk_dst_check sk=C7485400 dst=C6F670E0 obsolete=00000002 cookie=0 check=C0296510 <2>[ 230.608062] ==== sk_dst_check sk=C7485400 dst=C6F670E0 obsolete=00000002 cookie=0 check=C0296510 <2>[ 232.613464] ==== sk_dst_check sk=C7485400 dst=C6F670E0 obsolete=00000002 cookie=0 check=C0296510 <2>[ 234.618896] ==== sk_dst_check sk=C7485400 dst=C6F670E0 obsolete=00000002 cookie=0 check=C0296510 <2>[ 236.623504] ==== sk_dst_check sk=C7485400 dst=C6F670E0 obsolete=00000002 cookie=0 check=C0296510 <2>[ 238.628936] ==== sk_dst_check sk=C7485400 dst=C6F670E0 obsolete=00000002 cookie=0 check=C0296510 <2>[ 240.634338] ==== sk_dst_check sk=C7485400 dst=C6F670E0 obsolete=00000002 cookie=0 check=C0296510 <2>[ 242.639709] ==== sk_dst_check sk=C7485400 dst=C6F670E0 obsolete=00000002 cookie=0 check=C0296510 <2>[ 244.645111] ==== sk_dst_check sk=C7485400 dst=C6F670E0 obsolete=00000002 cookie=0 check=C0296510 <2>[ 246.648864] ==== sk_dst_check sk=C7485400 dst=C6F670E0 obsolete=00000002 cookie=0 check=C0296510 <2>[ 248.654693] ==== sk_dst_check sk=C7485400 dst=C6F670E0 obsolete=00000002 cookie=0 check=C0296510 <2>[ 250.660125] ==== sk_dst_check sk=C7485400 dst=C6F670E0 obsolete=00000002 cookie=0 check=C0296510 <2>[ 252.665527] ==== sk_dst_check sk=C7485400 dst=C6F670E0 obsolete=00000002 cookie=0 check=C0296510 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists