2 # ok 3 AO server (INADDR_ANY): MD5 client # ok 4 [server] AO server (INADDR_ANY): MD5 client: counter TCPMD5Unexpected increased 0 => 1 # ok 5 AO server (INADDR_ANY): unsigned client # ok 6 [server] AO server (INADDR_ANY): no sign client: counter TCPAORequired increased 0 => 1 # ok 7 AO server (AO_REQUIRED): AO client: connected # ok 8 [server] AO server (AO_REQUIRED): AO client: counter TCPAOGood increased 2 => 4 # ok 9 AO server (AO_REQUIRED): unsigned client # ok 10 [server] AO server (AO_REQUIRED): unsigned client: counter TCPAORequired increased 1 => 2 # ok 11 MD5 server (INADDR_ANY): AO client # ok 12 [server] MD5 server (INADDR_ANY): AO client: counter TCPAOKeyNotFound increased 0 => 1 # ok 13 MD5 server (INADDR_ANY): MD5 client: connected # ok 14 [server] MD5 server (INADDR_ANY): MD5 client: no counter checks # ok 15 MD5 server (INADDR_ANY): no sign client # ok 16 [server] MD5 server (INADDR_ANY): no sign client: counter TCPMD5NotFound increased 0 => 1 # ok 17 no sign server: AO client # ok 18 [server] no sign server: AO client: counter TCPAOKeyNotFound increased 1 => 2 # ok 19 no sign server: MD5 client # ok 20 [server] no sign server: MD5 client: counter TCPMD5Unexpected increased 1 => 2 # ok 21 no sign server: no sign client: connected # ok 22 [server] no sign server: no sign client: counter CurrEstab increased 0 => 1 # ok 23 AO+MD5 server: AO client (matching): connected # ok 24 [server] AO+MD5 server: AO client (matching): counter TCPAOGood increased 4 => 6 # ok 25 AO+MD5 server: AO client (misconfig, matching MD5) # ok 26 [server] AO+MD5 server: AO client (misconfig, matching MD5): counter TCPAOKeyNotFound increased 2 => 3 # ok 27 AO+MD5 server: AO client (misconfig, non-matching) # ok 28 [server] AO+MD5 server: AO client (misconfig, non-matching): counter TCPAOKeyNotFound increased 3 => 4 # ok 29 AO+MD5 server: MD5 client (matching): connected # ok 30 [server] AO+MD5 server: MD5 client (matching): no counter checks # ok 31 AO+MD5 server: MD5 client (misconfig, matching AO) # ok 32 [server] AO+MD5 server: MD5 client (misconfig, matching AO): counter TCPMD5Unexpected increased 2 => 3 # ok 33 AO+MD5 server: MD5 client (misconfig, non-matching) # ok 34 [server] AO+MD5 server: MD5 client (misconfig, non-matching): counter TCPMD5Unexpected increased 3 => 4 # ok 35 AO+MD5 server: no sign client (unmatched): connected # ok 36 [server] AO+MD5 server: no sign client (unmatched): counter CurrEstab increased 0 => 1 # ok 37 AO+MD5 server: no sign client (misconfig, matching AO) # ok 38 [server] AO+MD5 server: no sign client (misconfig, matching AO): counter TCPAORequired increased 2 => 3 # ok 39 AO+MD5 server: no sign client (misconfig, matching MD5) # ok 40 [server] AO+MD5 server: no sign client (misconfig, matching MD5): counter TCPMD5NotFound increased 1 => 2 # ok 41 [server] AO+MD5 server: client with both [TCP-MD5] and TCP-AO keys: no counter checks # ok 42 AO+MD5 server: client with both [TCP-MD5] and TCP-AO keys: connect() was prevented # ok 43 AO+MD5 server: client with both TCP-MD5 and [TCP-AO] keys: connect() was prevented # ok 44 [server] AO+MD5 server: client with both TCP-MD5 and [TCP-AO] keys: no counter checks # ok 45 TCP-AO established: add TCP-MD5 key: counter TCPAOGood increased 6 => 8 # ok 46 TCP-AO established: add TCP-MD5 key: postfailed as expected # ok 47 TCP-MD5 established: add TCP-AO key: no counter checks # ok 48 TCP-MD5 established: add TCP-AO key: postfailed as expected # ok 49 non-signed established: add TCP-AO key: postfailed as expected # ok 50 non-signed established: add TCP-AO key: counter CurrEstab increased 0 => 1 # ok 51 TCP-AO key intersects with existing TCP-MD5 key: prefailed as expected: Key was rejected by service # ok 52 TCP-MD5 key intersects with existing TCP-AO key: prefailed as expected: Key was rejected by service # ok 53 TCP-MD5 key + TCP-AO required: prefailed as expected: Key was rejected by service # ok 54 TCP-AO required on socket + TCP-MD5 key: prefailed as expected: Key was rejected by service # ok 55 VRF: TCP-AO key (no l3index) + TCP-MD5 key (no l3index): prefailed as expected: Key was rejected by service # ok 56 VRF: TCP-MD5 key (no l3index) + TCP-AO key (no l3index): prefailed as expected: Key was rejected by service # ok 57 VRF: TCP-AO key (no l3index) + TCP-MD5 key (l3index=0): prefailed as expected: Key was rejected by service # ok 58 VRF: TCP-MD5 key (l3index=0) + TCP-AO key (no l3index): prefailed as expected: Key was rejected by service # ok 59 VRF: TCP-AO key (no l3index) + TCP-MD5 key (l3index=N): prefailed as expected: Key was rejected by service # ok 60 VRF: TCP-MD5 key (l3index=N) + TCP-AO key (no l3index): prefailed as expected: Key was rejected by service # ok 61 VRF: TCP-AO key (l3index=0) + TCP-MD5 key (no l3index): prefailed as expected: Key was rejected by service # ok 62 VRF: TCP-MD5 key (no l3index) + TCP-AO key (l3index=0): prefailed as expected: Key was rejected by service # ok 63 VRF: TCP-AO key (l3index=0) + TCP-MD5 key (l3index=0): prefailed as expected: Key was rejected by service # ok 64 VRF: TCP-MD5 key (l3index=0) + TCP-AO key (l3index=0): prefailed as expected: Key was rejected by service # ok 65 VRF: TCP-AO key (l3index=0) + TCP-MD5 key (l3index=N) # ok 66 VRF: TCP-MD5 key (l3index=N) + TCP-AO key (l3index=0) # ok 67 VRF: TCP-AO key (l3index=N) + TCP-MD5 key (no l3index): prefailed as expected: Key was rejected by service # ok 68 VRF: TCP-MD5 key (no l3index) + TCP-AO key (l3index=N): prefailed as expected: Key was rejected by service # ok 69 VRF: TCP-AO key (l3index=N) + TCP-MD5 key (l3index=0) # ok 70 VRF: TCP-MD5 key (l3index=0) + TCP-AO key (l3index=N) # ok 71 VRF: TCP-AO key (l3index=N) + TCP-MD5 key (l3index=N): prefailed as expected: Key was rejected by service # ok 72 VRF: TCP-MD5 key (l3index=N) + TCP-AO key (l3index=N): prefailed as expected: Key was rejected by service # ok 73 Trace events matched expectations: 13 tcp_hash_md5_required[2] tcp_hash_md5_unexpected[4] tcp_hash_ao_required[3] tcp_ao_key_not_found[4] # # Totals: pass:73 fail:0 xfail:0 xpass:0 skip:0 error:0 ok 1 selftests: net/tcp_ao: unsigned-md5_ipv4 make: Leaving directory '/srv/vmksft/testing/wt-6/tools/testing/selftests' xx__-> echo $? 0 xx__-> echo scan > /sys/kernel/debug/kmemleak xx__-> X..... 01 00 00 00 02 00 00 00 98 b0 63 02 00 00 11 ff ..........c..... backtrace (crc ac39cd7): __kmalloc_cache_noprof+0x463/0x620 nfc_allocate_device+0x131/0x590 nci_allocate_device+0x202/0x3b0 virtual_ncidev_open+0x6a/0x1f0 misc_open+0x1f1/0x3b0 chrdev_open+0x1e8/0x5d0 do_dentry_open+0x3f9/0x12f0 vfs_open+0x7a/0x440 do_open+0x659/0xd80 path_openat+0x1d0/0x3b0 do_file_open+0x1d2/0x460 do_sys_openat2+0xde/0x170 __x64_sys_openat+0x10e/0x210 do_syscall_64+0x117/0xfc0 entry_SYSCALL_64_after_hwframe+0x4b/0x53 unreferenced object 0xff1100000263b098 (size 8): comm "nci_dev", pid 3985, jiffies 4295428094 hex dump (first 8 bytes): 6e 66 63 30 00 cc cc cc nfc0.... backtrace (crc 6f6e77d9): __kmalloc_node_track_caller_noprof+0x518/0x760 kvasprintf+0xb0/0x130 kobject_set_name_vargs+0x48/0x110 dev_set_name+0xb5/0xe0 nfc_allocate_device+0x1c4/0x590 nci_allocate_device+0x202/0x3b0 virtual_ncidev_open+0x6a/0x1f0 misc_open+0x1f1/0x3b0 chrdev_open+0x1e8/0x5d0 do_dentry_open+0x3f9/0x12f0 vfs_open+0x7a/0x440 do_open+0x659/0xd80 path_openat+0x1d0/0x3b0 do_file_open+0x1d2/0x460 do_sys_openat2+0xde/0x170 __x64_sys_openat+0x10e/0x210 unreferenced object 0xff11000015798800 (size 512): comm "nci_dev", pid 3985, jiffies 4295428095 hex dump (first 32 bytes): 00 00 00 00 ad 4e ad de ff ff ff ff 00 00 00 00 .....N.......... ff ff ff ff ff ff ff ff 60 80 61 b3 ff ff ff ff ........`.a..... backtrace (crc ad36fb5f): __kmalloc_cache_noprof+0x463/0x620 device_add+0x602/0x1080 nfc_register_device+0x36/0x210 nci_register_device+0x7c9/0xb30 virtual_ncidev_open+0x130/0x1f0 misc_open+0x1f1/0x3b0 chrdev_open+0x1e8/0x5d0 do_dentry_open+0x3f9/0x12f0 vfs_open+0x7a/0x440 do_open+0x659/0xd80 path_openat+0x1d0/0x3b0 do_file_open+0x1d2/0x460 do_sys_openat2+0xde/0x170 __x64_sys_openat+0x10e/0x210 do_syscall_64+0x117/0xfc0 entry_SYSCALL_64_after_hwframe+0x4b/0x53 unreferenced object 0xff11000014e4a000 (size 2048): comm "nci_dev", pid 3985, jiffies 4295428105 hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 27 00 01 40 00 00 00 00 00 00 00 00 00 00 00 00 '..@............ backtrace (crc 1620f6ee): __kmalloc_noprof+0x4db/0x730 sk_prot_alloc.isra.0+0xe4/0x1d0 sk_alloc+0x36/0x760 rawsock_create+0xd1/0x540 nfc_sock_create+0x11f/0x280 __sock_create+0x22d/0x630 __sys_socket+0x115/0x1d0 __x64_sys_socket+0x72/0xd0 do_syscall_64+0x117/0xfc0 entry_SYSCALL_64_after_hwframe+0x4b/0x53 unreferenced object 0xff11000014dd1e40 (size 216): comm "nci_dev", pid 3985, jiffies 4295428105 hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 a0 e4 14 00 00 11 ff ................ backtrace (crc 729f91fe): kmem_cache_alloc_node_noprof+0x492/0x630 __alloc_skb+0xde/0x5f0 alloc_skb_with_frags+0xc6/0x8f0 sock_alloc_send_pskb+0x326/0x3f0 nfc_alloc_send_skb+0x94/0x1d0 rawsock_sendmsg+0x162/0x4c0 __sys_sendto+0x265/0x390 __x64_sys_sendto+0xe4/0x1f0 do_syscall_64+0x117/0xfc0 entry_SYSCALL_64_after_hwframe+0x4b/0x53 unreferenced object 0xff1100001a87a6c0 (size 640): comm "nci_dev", pid 3985, jiffies 4295428105 hex dump (first 32 bytes): 6b 6b 6b 6b 00 a4 00 0c 02 e1 03 6b 6b 6b 6b 6b kkkk.......kkkkk 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b kkkkkkkkkkkkkkkk backtrace (crc 7c40cc2a): kmem_cache_alloc_node_noprof+0x492/0x630 kmalloc_reserve+0xfd/0x2b0 __alloc_skb+0x11e/0x5f0 alloc_skb_with_frags+0xc6/0x8f0 sock_alloc_send_pskb+0x326/0x3f0 nfc_alloc_send_skb+0x94/0x1d0 rawsock_sendmsg+0x162/0x4c0 __sys_sendto+0x265/0x390 __x64_sys_sendto+0xe4/0x1f0 do_syscall_64+0x117/0xfc0 entry_SYSCALL_64_after_hwframe+0x4b/0x53 xx__->