nareshkamboju

hikey-rafeal-4.4-kselftest-looks-good-log

Jun 21st, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 193.91 KB | None | 0 0
  1.  
  2. hikey:/opt/kselftests/mainline#
  3. hikey:/opt/kselftests/mainline# cat /proc/version
  4. Linux version 4.4.139-rc1+ ([email protected]) (gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02) ) #1 SMP PREEMPT Wed Jun 20 17:20:08 BST 2018
  5. hikey:/opt/kselftests/mainline# cat /proc/meminfo
  6. MemTotal: 1929112 kB
  7. MemFree: 1817668 kB
  8. MemAvailable: 1807208 kB
  9. Buffers: 4924 kB
  10. Cached: 44720 kB
  11. SwapCached: 0 kB
  12. Active: 30112 kB
  13. Inactive: 37888 kB
  14. Active(anon): 18624 kB
  15. Inactive(anon): 16512 kB
  16. Active(file): 11488 kB
  17. Inactive(file): 21376 kB
  18. Unevictable: 0 kB
  19. Mlocked: 0 kB
  20. SwapTotal: 0 kB
  21. SwapFree: 0 kB
  22. Dirty: 0 kB
  23. Writeback: 0 kB
  24. AnonPages: 20448 kB
  25. Mapped: 19120 kB
  26. Shmem: 16776 kB
  27. Slab: 30820 kB
  28. SReclaimable: 13796 kB
  29. SUnreclaim: 17024 kB
  30. KernelStack: 2368 kB
  31. PageTables: 724 kB
  32. NFS_Unstable: 0 kB
  33. Bounce: 0 kB
  34. WritebackTmp: 0 kB
  35. CommitLimit: 964556 kB
  36. Committed_AS: 131492 kB
  37. VmallocTotal: 258998208 kB
  38. VmallocUsed: 0 kB
  39. VmallocChunk: 0 kB
  40. AnonHugePages: 8192 kB
  41. CmaTotal: 131072 kB
  42. CmaFree: 130804 kB
  43. HugePages_Total: 0
  44. HugePages_Free: 0
  45. HugePages_Rsvd: 0
  46. HugePages_Surp: 0
  47. Hugepagesize: 2048 kB
  48. hikey:/opt/kselftests/mainline# cat /proc/meminfo         cpuinfo i 
  49. processor : 0
  50. BogoMIPS : 2.40
  51. Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
  52. CPU implementer : 0x41
  53. CPU architecture: 8
  54. CPU variant : 0x0
  55. CPU part : 0xd03
  56. CPU revision : 3
  57.  
  58. processor : 1
  59. BogoMIPS : 2.40
  60. Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
  61. CPU implementer : 0x41
  62. CPU architecture: 8
  63. CPU variant : 0x0
  64. CPU part : 0xd03
  65. CPU revision : 3
  66.  
  67. processor : 2
  68. BogoMIPS : 2.40
  69. Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
  70. CPU implementer : 0x41
  71. CPU architecture: 8
  72. CPU variant : 0x0
  73. CPU part : 0xd03
  74. CPU revision : 3
  75.  
  76. processor : 3
  77. BogoMIPS : 2.40
  78. Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
  79. CPU implementer : 0x41
  80. CPU architecture: 8
  81. CPU variant : 0x0
  82. CPU part : 0xd03
  83. CPU revision : 3
  84.  
  85. processor : 4
  86. BogoMIPS : 2.40
  87. Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
  88. CPU implementer : 0x41
  89. CPU architecture: 8
  90. CPU variant : 0x0
  91. CPU part : 0xd03
  92. CPU revision : 3
  93.  
  94. processor : 5
  95. BogoMIPS : 2.40
  96. Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
  97. CPU implementer : 0x41
  98. CPU architecture: 8
  99. CPU variant : 0x0
  100. CPU part : 0xd03
  101. CPU revision : 3
  102.  
  103. processor : 6
  104. BogoMIPS : 2.40
  105. Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
  106. CPU implementer : 0x41
  107. CPU architecture: 8
  108. CPU variant : 0x0
  109. CPU part : 0xd03
  110. CPU revision : 3
  111.  
  112. processor : 7
  113. BogoMIPS : 2.40
  114. Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
  115. CPU implementer : 0x41
  116. CPU architecture: 8
  117. CPU variant : 0x0
  118. CPU part : 0xd03
  119. CPU revision : 3
  120.  
  121. hikey:/opt/kselftests/mainline#
  122. hikey:/opt/kselftests/mainline#
  123. hikey:/opt/kselftests/mainline#
  124. hikey:/opt/kselftests/mainline# date
  125. Thu Jun 21 08:06:56 UTC 2018
  126. hikey:/opt/kselftests/mainline# ./run_kselftest.sh
  127.  
  128. TAP version 13
  129. Running tests in andrkselftest: Running tests in android
  130. oid
  131. ========================================
  132. ion_test.sh: No /dev/ion device found
  133. ion_test.sh: May be CONFIG_ION is not set
  134.  
  135. TAP version 13
  136. Running tests in bpf
  137. kselftest: Running tests in bpf
  138. ========================================
  139. #0/u add+sub+mul Unexpected bpf_prog_test_run error
  140. 0: (b7) r1 = 1
  141. 1: (07) r1 += 2
  142. 2: (b7) r2 = 3
  143. 3: (1f) r1 -= r2
  144. 4: (07) r1 += -1
  145. 5: (27) r1 *= 3
  146. 6: (bf) r0 = r1
  147. 7: (95) exit
  148. #0/p add+sub+mul Unexpected bpf_prog_test_run error
  149. 0: (b7) r1 = 1
  150. 1: (07) r1 += 2
  151. 2: (b7) r2 = 3
  152. 3: (1f) r1 -= r2
  153. 4: (07) r1 += -1
  154. 5: (27) r1 *= 3
  155. 6: (bf) r0 = r1
  156. 7: (95) exit
  157. #1/u DIV32 by 0, zero check 1 Unexpected bpf_prog_test_run error
  158. 0: (b4) (u32) r0 = (u32) 42
  159. 1: (b4) (u32) r1 = (u32) 0
  160. 2: (b4) (u32) r2 = (u32) 1
  161. 3: (3c) (u32) r2 /= (u32) r1
  162. 4: (95) exit
  163. #1/p DIV32 by 0, zero check 1 Unexpected bpf_prog_test_run error
  164. 0: (b4) (u32) r0 = (u32) 42
  165. 1: (b4) (u32) r1 = (u32) 0
  166. 2: (b4) (u32) r2 = (u32) 1
  167. 3: (3c) (u32) r2 /= (u32) r1
  168. 4: (95) exit
  169. #2/u DIV32 by 0, zero check 2 Unexpected bpf_prog_test_run error
  170. 0: (b4) (u32) r0 = (u32) 42
  171. 1: (18) r1 = 0xffffffff00000000
  172. 3: (b4) (u32) r2 = (u32) 1
  173. 4: (3c) (u32) r2 /= (u32) r1
  174. 5: (95) exit
  175. #2/p DIV32 by 0, zero check 2 Unexpected bpf_prog_test_run error
  176. 0: (b4) (u32) r0 = (u32) 42
  177. 1: (18) r1 = 0xffffffff00000000
  178. 3: (b4) (u32) r2 = (u32) 1
  179. 4: (3c) (u32) r2 /= (u32) r1
  180. 5: (95) exit
  181. #3/u DIV64 by 0, zero check Unexpected bpf_prog_test_run error
  182. 0: (b4) (u32) r0 = (u32) 42
  183. 1: (b4) (u32) r1 = (u32) 0
  184. 2: (b4) (u32) r2 = (u32) 1
  185. 3: (3f) r2 /= r1
  186. 4: (95) exit
  187. #3/p DIV64 by 0, zero check Unexpected bpf_prog_test_run error
  188. 0: (b4) (u32) r0 = (u32) 42
  189. 1: (b4) (u32) r1 = (u32) 0
  190. 2: (b4) (u32) r2 = (u32) 1
  191. 3: (3f) r2 /= r1
  192. 4: (95) exit
  193. #4/u MOD32 by 0, zero check 1 Unexpected bpf_prog_test_run error
  194. 0: (b4) (u32) r0 = (u32) 42
  195. 1: (b4) (u32) r1 = (u32) 0
  196. 2: (b4) (u32) r2 = (u32) 1
  197. 3: (9c) (u32) r2 %= (u32) r1
  198. 4: (95) exit
  199. #4/p MOD32 by 0, zero check 1 Unexpected bpf_prog_test_run error
  200. 0: (b4) (u32) r0 = (u32) 42
  201. 1: (b4) (u32) r1 = (u32) 0
  202. 2: (b4) (u32) r2 = (u32) 1
  203. 3: (9c) (u32) r2 %= (u32) r1
  204. 4: (95) exit
  205. #5/u MOD32 by 0, zero check 2 Unexpected bpf_prog_test_run error
  206. 0: (b4) (u32) r0 = (u32) 42
  207. 1: (18) r1 = 0xffffffff00000000
  208. 3: (b4) (u32) r2 = (u32) 1
  209. 4: (9c) (u32) r2 %= (u32) r1
  210. 5: (95) exit
  211. #5/p MOD32 by 0, zero check 2 Unexpected bpf_prog_test_run error
  212. 0: (b4) (u32) r0 = (u32) 42
  213. 1: (18) r1 = 0xffffffff00000000
  214. 3: (b4) (u32) r2 = (u32) 1
  215. 4: (9c) (u32) r2 %= (u32) r1
  216. 5: (95) exit
  217. #6/u MOD64 by 0, zero check Unexpected bpf_prog_test_run error
  218. 0: (b4) (u32) r0 = (u32) 42
  219. 1: (b4) (u32) r1 = (u32) 0
  220. 2: (b4) (u32) r2 = (u32) 1
  221. 3: (9f) r2 %= r1
  222. 4: (95) exit
  223. #6/p MOD64 by 0, zero check Unexpected bpf_prog_test_run error
  224. 0: (b4) (u32) r0 = (u32) 42
  225. 1: (b4) (u32) r1 = (u32) 0
  226. 2: (b4) (u32) r2 = (u32) 1
  227. 3: (9f) r2 %= r1
  228. 4: (95) exit
  229. #7/p DIV32 by 0, zero check ok, cls Unexpected bpf_prog_test_run error
  230. 0: (b4) (u32) r0 = (u32) 42
  231. 1: (b4) (u32) r1 = (u32) 2
  232. 2: (b4) (u32) r2 = (u32) 16
  233. 3: (3c) (u32) r2 /= (u32) r1
  234. 4: (bf) r0 = r2
  235. 5: (95) exit
  236. #8/p DIV32 by 0, zero check 1, cls Unexpected bpf_prog_test_run error
  237. 0: (b4) (u32) r1 = (u32) 0
  238. 1: (b4) (u32) r0 = (u32) 1
  239. 2: (3c) (u32) r0 /= (u32) r1
  240. 3: (95) exit
  241. #9/p DIV32 by 0, zero check 2, cls Unexpected bpf_prog_test_run error
  242. 0: (18) r1 = 0xffffffff00000000
  243. 2: (b4) (u32) r0 = (u32) 1
  244. 3: (3c) (u32) r0 /= (u32) r1
  245. 4: (95) exit
  246. #10/p DIV64 by 0, zero check, cls Unexpected bpf_prog_test_run error
  247. 0: (b4) (u32) r1 = (u32) 0
  248. 1: (b4) (u32) r0 = (u32) 1
  249. 2: (3f) r0 /= r1
  250. 3: (95) exit
  251. #11/p MOD32 by 0, zero check ok, cls Unexpected bpf_prog_test_run error
  252. 0: (b4) (u32) r0 = (u32) 42
  253. 1: (b4) (u32) r1 = (u32) 3
  254. 2: (b4) (u32) r2 = (u32) 5
  255. 3: (9c) (u32) r2 %= (u32) r1
  256. 4: (bf) r0 = r2
  257. 5: (95) exit
  258. #12/p MOD32 by 0, zero check 1, cls Unexpected bpf_prog_test_run error
  259. 0: (b4) (u32) r1 = (u32) 0
  260. 1: (b4) (u32) r0 = (u32) 1
  261. 2: (9c) (u32) r0 %= (u32) r1
  262. 3: (95) exit
  263. #13/p MOD32 by 0, zero check 2, cls Unexpected bpf_prog_test_run error
  264. 0: (18) r1 = 0xffffffff00000000
  265. 2: (b4) (u32) r0 = (u32) 1
  266. 3: (9c) (u32) r0 %= (u32) r1
  267. 4: (95) exit
  268. #14/p MOD64 by 0, zero check 1, cls Unexpected bpf_prog_test_run error
  269. 0: (b4) (u32) r1 = (u32) 0
  270. 1: (b4) (u32) r0 = (u32) 2
  271. 2: (9f) r0 %= r1
  272. 3: (95) exit
  273. #15/p MOD64 by 0, zero check 2, cls Unexpected bpf_prog_test_run error
  274. 0: (b4) (u32) r1 = (u32) 0
  275. 1: (b4) (u32) r0 = (u32) -1
  276. 2: (9f) r0 %= r1
  277. 3: (95) exit
  278. #16/p DIV32 overflow, check 1 Unexpected bpf_prog_test_run error
  279. 0: (b4) (u32) r1 = (u32) -1
  280. 1: (b4) (u32) r0 = (u32) -2147483648
  281. 2: (3c) (u32) r0 /= (u32) r1
  282. 3: (95) exit
  283. #17/p DIV32 overflow, check 2 Unexpected bpf_prog_test_run error
  284. 0: (b4) (u32) r0 = (u32) -2147483648
  285. 1: (34) (u32) r0 /= (u32) -1
  286. 2: (95) exit
  287. #18/p DIV64 overflow, check 1 Unexpected bpf_prog_test_run error
  288. 0: (b7) r1 = -1
  289. 1: (18) r0 = 0x8000000000000000
  290. 3: (3f) r0 /= r1
  291. 4: (95) exit
  292. #19/p DIV64 overflow, check 2 Unexpected bpf_prog_test_run error
  293. 0: (18) r0 = 0x8000000000000000
  294. 2: (37) r0 /= -1
  295. 3: (95) exit
  296. #20/p MOD32 overflow, check 1 Unexpected bpf_prog_test_run error
  297. 0: (b4) (u32) r1 = (u32) -1
  298. 1: (b4) (u32) r0 = (u32) -2147483648
  299. 2: (9c) (u32) r0 %= (u32) r1
  300. 3: (95) exit
  301. #21/p MOD32 overflow, check 2 Unexpected bpf_prog_test_run error
  302. 0: (b4) (u32) r0 = (u32) -2147483648
  303. 1: (94) (u32) r0 %= (u32) -1
  304. 2: (95) exit
  305. #22/p MOD64 overflow, check 1 Unexpected bpf_prog_test_run error
  306. 0: (b7) r1 = -1
  307. 1: (18) r2 = 0x8000000000000000
  308. 3: (bf) r3 = r2
  309. 4: (9f) r2 %= r1
  310. 5: (b4) (u32) r0 = (u32) 0
  311. 6: (5d) if r3 != r2 goto pc+1
  312. R0=imm0 R1=imm-1 R2=inv R3=inv R10=fp
  313. 7: (b4) (u32) r0 = (u32) 1
  314. 8: (95) exit
  315.  
  316. from 6 to 8: R0=imm0 R1=imm-1 R2=inv R3=inv R10=fp
  317. 8: (95) exit
  318. #23/p MOD64 overflow, check 2 Unexpected bpf_prog_test_run error
  319. 0: (18) r2 = 0x8000000000000000
  320. 2: (bf) r3 = r2
  321. 3: (97) r2 %= -1
  322. 4: (b4) (u32) r0 = (u32) 0
  323. 5: (5d) if r3 != r2 goto pc+1
  324. R0=imm0 R1=ctx R2=inv R3=inv R10=fp
  325. 6: (b4) (u32) r0 = (u32) 1
  326. 7: (95) exit
  327.  
  328. from 5 to 7: R0=imm0 R1=ctx R2=inv R3=inv R10=fp
  329. 7: (95) exit
  330. #24/p xor32 zero extend check Unexpected bpf_prog_test_run error
  331. 0: (b4) (u32) r2 = (u32) -1
  332. 1: (67) r2 <<= 32
  333. 2: (47) r2 |= 65535
  334. 3: (ac) (u32) r2 ^= (u32) r2
  335. 4: (b4) (u32) r0 = (u32) 2
  336. 5: (55) if r2 != 0x0 goto pc+1
  337. R0=imm2 R1=ctx R2=imm0 R10=fp
  338. 6: (b4) (u32) r0 = (u32) 1
  339. 7: (95) exit
  340.  
  341. from 5 to 7: R0=imm2 R1=ctx R2=inv R10=fp
  342. 7: (95) exit
  343. #25/u empty prog FAIL
  344. Unexpected error message!
  345. EXP: unknown opcode 00
  346. RES: jump out of range from insn 0 to 1
  347.  
  348. jump out of range from insn 0 to 1
  349. #25/p empty prog FAIL
  350. Unexpected error message!
  351. EXP: unknown opcode 00
  352. RES: jump out of range from insn 0 to 1
  353.  
  354. jump out of range from insn 0 to 1
  355. #26/u only exit insn OK
  356. #26/p only exit insn OK
  357. #27/u unreachable OK
  358. #27/p unreachable OK
  359. #28/u unreachable2 OK
  360. #28/p unreachable2 OK
  361. #29/u out of range jump OK
  362. #29/p out of range jump OK
  363. #30/u out of range jump2 OK
  364. #30/p out of range jump2 OK
  365. #31/u test1 ld_imm64 OK
  366. #31/p test1 ld_imm64 OK
  367. #32/u test2 ld_imm64 OK
  368. #32/p test2 ld_imm64 OK
  369. #33/u test3 ld_imm64 OK
  370. #33/p test3 ld_imm64 OK
  371. #34/u test4 ld_imm64 OK
  372. #34/p test4 ld_imm64 OK
  373. #35/u test5 ld_imm64 OK
  374. #35/p test5 ld_imm64 OK
  375. #36/u test6 ld_imm64 Unexpected bpf_prog_test_run error
  376. 0: (18) r0 = 0x0
  377. 2: (95) exit
  378. #36/p test6 ld_imm64 Unexpected bpf_prog_test_run error
  379. 0: (18) r0 = 0x0
  380. 2: (95) exit
  381. #37/u test7 ld_imm64 Unexpected bpf_prog_test_run error
  382. 0: (18) r0 = 0x100000001
  383. 2: (95) exit
  384. #37/p test7 ld_imm64 Unexpected bpf_prog_test_run error
  385. 0: (18) r0 = 0x100000001
  386. 2: (95) exit
  387. #38/u test8 ld_imm64 OK
  388. #38/p test8 ld_imm64 OK
  389. #39/u test9 ld_imm64 OK
  390. #39/p test9 ld_imm64 OK
  391. #40/u test10 ld_imm64 OK
  392. #40/p test10 ld_imm64 OK
  393. #41/u test11 ld_imm64 OK
  394. #41/p test11 ld_imm64 OK
  395. #42/u test12 ld_imm64 OK
  396. #42/p test12 ld_imm64 OK
  397. #43/u test13 ld_imm64 OK
  398. #43/p test13 ld_imm64 OK
  399. #44/u arsh32 on imm FAIL
  400. Unexpected error message!
  401. EXP: unknown opcode c4
  402. RES: 0: (b7) r0 = 1
  403. 1: (c4) (u32) r0 s>>= (u32) 5
  404. BPF_ARSH not supported for 32 bit ALU
  405.  
  406. 0: (b7) r0 = 1
  407. 1: (c4) (u32) r0 s>>= (u32) 5
  408. BPF_ARSH not supported for 32 bit ALU
  409. #44/p arsh32 on imm FAIL
  410. Unexpected error message!
  411. EXP: unknown opcode c4
  412. RES: 0: (b7) r0 = 1
  413. 1: (c4) (u32) r0 s>>= (u32) 5
  414. BPF_ARSH not supported for 32 bit ALU
  415.  
  416. 0: (b7) r0 = 1
  417. 1: (c4) (u32) r0 s>>= (u32) 5
  418. BPF_ARSH not supported for 32 bit ALU
  419. #45/u arsh32 on reg FAIL
  420. Unexpected error message!
  421. EXP: unknown opcode cc
  422. RES: 0: (b7) r0 = 1
  423. 1: (b7) r1 = 5
  424. 2: (cc) (u32) r0 s>>= (u32) r1
  425. BPF_ARSH not supported for 32 bit ALU
  426.  
  427. 0: (b7) r0 = 1
  428. 1: (b7) r1 = 5
  429. 2: (cc) (u32) r0 s>>= (u32) r1
  430. BPF_ARSH not supported for 32 bit ALU
  431. #45/p arsh32 on reg FAIL
  432. Unexpected error message!
  433. EXP: unknown opcode cc
  434. RES: 0: (b7) r0 = 1
  435. 1: (b7) r1 = 5
  436. 2: (cc) (u32) r0 s>>= (u32) r1
  437. BPF_ARSH not supported for 32 bit ALU
  438.  
  439. 0: (b7) r0 = 1
  440. 1: (b7) r1 = 5
  441. 2: (cc) (u32) r0 s>>= (u32) r1
  442. BPF_ARSH not supported for 32 bit ALU
  443. #46/u arsh64 on imm Unexpected bpf_prog_test_run error
  444. 0: (b7) r0 = 1
  445. 1: (c7) r0 s>>= 5
  446. 2: (95) exit
  447. #46/p arsh64 on imm Unexpected bpf_prog_test_run error
  448. 0: (b7) r0 = 1
  449. 1: (c7) r0 s>>= 5
  450. 2: (95) exit
  451. #47/u arsh64 on reg Unexpected bpf_prog_test_run error
  452. 0: (b7) r0 = 1
  453. 1: (b7) r1 = 5
  454. 2: (cf) r0 s>>= r1
  455. 3: (95) exit
  456. #47/p arsh64 on reg Unexpected bpf_prog_test_run error
  457. 0: (b7) r0 = 1
  458. 1: (b7) r1 = 5
  459. 2: (cf) r0 s>>= r1
  460. 3: (95) exit
  461. #48/u no bpf_exit FAIL
  462. Unexpected error message!
  463. EXP: not an exit
  464. RES: jump out of range from insn 0 to 1
  465.  
  466. jump out of range from insn 0 to 1
  467. #48/p no bpf_exit FAIL
  468. Unexpected error message!
  469. EXP: not an exit
  470. RES: jump out of range from insn 0 to 1
  471.  
  472. jump out of range from insn 0 to 1
  473. #49/u loop (back-edge) OK
  474. #49/p loop (back-edge) OK
  475. #50/u loop2 (back-edge) OK
  476. #50/p loop2 (back-edge) OK
  477. #51/u conditional loop OK
  478. #51/p conditional loop OK
  479. #52/u read uninitialized register OK
  480. #52/p read uninitialized register OK
  481. #53/u read invalid register OK
  482. #53/p read invalid register OK
  483. #54/u program doesn't init R0 before exit OK
  484. #54/p program doesn't init R0 before exit OK
  485. #55/u program doesn't init R0 before exit in all branches OK
  486. #55/p program doesn't init R0 before exit in all branches OK
  487. #56/u stack out of bounds OK
  488. #56/p stack out of bounds OK
  489. #57/u invalid call insn1 FAIL
  490. Unexpected error message!
  491. EXP: unknown opcode 8d
  492. RES: 0: (8d) call 0
  493. BPF_CALL uses reserved fields
  494.  
  495. 0: (8d) call 0
  496. BPF_CALL uses reserved fields
  497. #57/p invalid call insn1 FAIL
  498. Unexpected error message!
  499. EXP: unknown opcode 8d
  500. RES: 0: (8d) call 0
  501. BPF_CALL uses reserved fields
  502.  
  503. 0: (8d) call 0
  504. BPF_CALL uses reserved fields
  505. #58/u invalid call insn2 OK
  506. #58/p invalid call insn2 OK
  507. #59/u invalid function call FAIL
  508. Unexpected error message!
  509. EXP: invalid func unknown#1234567
  510. RES: 0: (85) call 1234567
  511. invalid func 1234567
  512.  
  513. 0: (85) call 1234567
  514. invalid func 1234567
  515. #59/p invalid function call FAIL
  516. Unexpected error message!
  517. EXP: invalid func unknown#1234567
  518. RES: 0: (85) call 1234567
  519. invalid func 1234567
  520.  
  521. 0: (85) call 1234567
  522. invalid func 1234567
  523. #60/u uninitialized stack1 Failed to create hash map 'Invalid argument'!
  524. FAIL
  525. Unexpected error message!
  526. EXP: invalid indirect read from stack
  527. RES: fd -1 is not pointing to valid bpf_map
  528.  
  529. fd -1 is not pointing to valid bpf_map
  530. #60/p uninitialized stack1 Failed to create hash map 'Invalid argument'!
  531. FAIL
  532. Unexpected error message!
  533. EXP: invalid indirect read from stack
  534. RES: fd -1 is not pointing to valid bpf_map
  535.  
  536. fd -1 is not pointing to valid bpf_map
  537. #61/u uninitialized stack2 OK
  538. #61/p uninitialized stack2 OK
  539. #62/u invalid fp arithmetic FAIL
  540. Unexpected error message!
  541. EXP: R1 subtraction from stack pointer
  542. RES: 0: (b7) r0 = 0
  543. 1: (bf) r1 = r10
  544. 2: (17) r1 -= 8
  545. R1 pointer arithmetic prohibited
  546.  
  547. 0: (b7) r0 = 0
  548. 1: (bf) r1 = r10
  549. 2: (17) r1 -= 8
  550. R1 pointer arithmetic prohibited
  551. #62/p invalid fp arithmetic FAIL
  552. Unexpected error message!
  553. EXP: R1 subtraction from stack pointer
  554. RES: 0: (b7) r0 = 0
  555. 1: (bf) r1 = r10
  556. 2: (17) r1 -= 8
  557. 3: (7b) *(u64 *)(r1 +0) = r0
  558. R1 invalid mem access 'inv'
  559.  
  560. 0: (b7) r0 = 0
  561. 1: (bf) r1 = r10
  562. 2: (17) r1 -= 8
  563. 3: (7b) *(u64 *)(r1 +0) = r0
  564. R1 invalid mem access 'inv'
  565. #63/u non-invalid fp arithmetic Unexpected bpf_prog_test_run error
  566. 0: (b7) r0 = 0
  567. 1: (7b) *(u64 *)(r10 -8) = r0
  568. 2: (95) exit
  569. #63/p non-invalid fp arithmetic Unexpected bpf_prog_test_run error
  570. 0: (b7) r0 = 0
  571. 1: (7b) *(u64 *)(r10 -8) = r0
  572. 2: (95) exit
  573. #64/p invalid argument register OK
  574. #65/p non-invalid argument register Unexpected bpf_prog_test_run error
  575. 0: (bf) r6 = r1
  576. 1: (85) call 17
  577. 2: (bf) r1 = r6
  578. 3: (85) call 17
  579. 4: (95) exit
  580. #66/u check valid spill/fill OK
  581. #66/p check valid spill/fill Unexpected bpf_prog_test_run error
  582. 0: (7b) *(u64 *)(r10 -8) = r1
  583. 1: (79) r2 = *(u64 *)(r10 -8)
  584. 2: (bf) r0 = r2
  585. 3: (95) exit
  586. #67/u check valid spill/fill, skb mark Unexpected bpf_prog_test_run error
  587. 0: (bf) r6 = r1
  588. 1: (7b) *(u64 *)(r10 -8) = r6
  589. 2: (79) r0 = *(u64 *)(r10 -8)
  590. 3: (61) r0 = *(u32 *)(r0 +8)
  591. 4: (95) exit
  592. #67/p check valid spill/fill, skb mark Unexpected bpf_prog_test_run error
  593. 0: (bf) r6 = r1
  594. 1: (7b) *(u64 *)(r10 -8) = r6
  595. 2: (79) r0 = *(u64 *)(r10 -8)
  596. 3: (61) r0 = *(u32 *)(r0 +8)
  597. 4: (95) exit
  598. #68/u check corrupted spill/fill OK
  599. #68/p check corrupted spill/fill OK
  600. #69/u invalid src register in STX OK
  601. #69/p invalid src register in STX OK
  602. #70/u invalid dst register in STX OK
  603. #70/p invalid dst register in STX OK
  604. #71/u invalid dst register in ST OK
  605. #71/p invalid dst register in ST OK
  606. #72/u invalid src register in LDX OK
  607. #72/p invalid src register in LDX OK
  608. #73/u invalid dst register in LDX OK
  609. #73/p invalid dst register in LDX OK
  610. #74/u junk insn FAIL
  611. Unexpected error message!
  612. EXP: unknown opcode 00
  613. RES: 0: BUG_ld_00
  614. invalid BPF_LD_IMM insn
  615.  
  616. 0: BUG_ld_00
  617. invalid BPF_LD_IMM insn
  618. #74/p junk insn FAIL
  619. Unexpected error message!
  620. EXP: unknown opcode 00
  621. RES: 0: BUG_ld_00
  622. invalid BPF_LD_IMM insn
  623.  
  624. 0: BUG_ld_00
  625. invalid BPF_LD_IMM insn
  626. #75/u junk insn2 OK
  627. #75/p junk insn2 OK
  628. #76/u junk insn3 FAIL
  629. Unexpected error message!
  630. EXP: unknown opcode ff
  631. RES: 0: (ff) r0 (null) r0
  632. invalid BPF_ALU opcode f0
  633.  
  634. 0: (ff) r0 (null) r0
  635. invalid BPF_ALU opcode f0
  636. #76/p junk insn3 FAIL
  637. Unexpected error message!
  638. EXP: unknown opcode ff
  639. RES: 0: (ff) r0 (null) r0
  640. invalid BPF_ALU opcode f0
  641.  
  642. 0: (ff) r0 (null) r0
  643. invalid BPF_ALU opcode f0
  644. #77/u junk insn4 FAIL
  645. Unexpected error message!
  646. EXP: unknown opcode ff
  647. RES: 0: (ff) r15 (null) r15
  648. invalid BPF_ALU opcode f0
  649.  
  650. 0: (ff) r15 (null) r15
  651. invalid BPF_ALU opcode f0
  652. #77/p junk insn4 FAIL
  653. Unexpected error message!
  654. EXP: unknown opcode ff
  655. RES: 0: (ff) r15 (null) r15
  656. invalid BPF_ALU opcode f0
  657.  
  658. 0: (ff) r15 (null) r15
  659. invalid BPF_ALU opcode f0
  660. #78/u junk insn5 OK
  661. #78/p junk insn5 OK
  662. #79/u misaligned read from stack FAIL
  663. Unexpected error message!
  664. EXP: misaligned stack access
  665. RES: 0: (bf) r2 = r10
  666. 1: (79) r0 = *(u64 *)(r2 -4)
  667. misaligned access off -4 size 8
  668.  
  669. 0: (bf) r2 = r10
  670. 1: (79) r0 = *(u64 *)(r2 -4)
  671. misaligned access off -4 size 8
  672. #79/p misaligned read from stack FAIL
  673. Unexpected error message!
  674. EXP: misaligned stack access
  675. RES: 0: (bf) r2 = r10
  676. 1: (79) r0 = *(u64 *)(r2 -4)
  677. misaligned access off -4 size 8
  678.  
  679. 0: (bf) r2 = r10
  680. 1: (79) r0 = *(u64 *)(r2 -4)
  681. misaligned access off -4 size 8
  682. #80/u invalid map_fd for function call OK
  683. #80/p invalid map_fd for function call OK
  684. #81/u don't check return value before access Failed to create hash map 'Invalid argument'!
  685. FAIL
  686. Unexpected error message!
  687. EXP: R0 invalid mem access 'map_value_or_null'
  688. RES: fd -1 is not pointing to valid bpf_map
  689.  
  690. fd -1 is not pointing to valid bpf_map
  691. #81/p don't check return value before access Failed to create hash map 'Invalid argument'!
  692. FAIL
  693. Unexpected error message!
  694. EXP: R0 invalid mem access 'map_value_or_null'
  695. RES: fd -1 is not pointing to valid bpf_map
  696.  
  697. fd -1 is not pointing to valid bpf_map
  698. #82/u access memory with incorrect alignment Failed to create hash map 'Invalid argument'!
  699. FAIL
  700. Unexpected error message!
  701. EXP: misaligned value access
  702. RES:
  703. #82/p access memory with incorrect alignment Failed to create hash map 'Invalid argument'!
  704. FAIL
  705. Unexpected error message!
  706. EXP: misaligned value access
  707. RES:
  708. #83/u sometimes access memory with incorrect alignment Failed to create hash map 'Invalid argument'!
  709. FAIL
  710. Unexpected error message!
  711. EXP: R0 leaks addr
  712. RES:
  713. #83/p sometimes access memory with incorrect alignment Failed to create hash map 'Invalid argument'!
  714. FAIL
  715. Unexpected error message!
  716. EXP: R0 invalid mem access
  717. RES:
  718. #84/u jump test 1 OK
  719. #84/p jump test 1 Unexpected bpf_prog_test_run error
  720. 0: (bf) r2 = r10
  721. 1: (7b) *(u64 *)(r2 -8) = r1
  722. 2: (15) if r1 == 0x0 goto pc+1
  723. R1=ctx R2=fp R10=fp fp-8=ctx
  724. 3: (7a) *(u64 *)(r2 -8) = 0
  725. 4: (15) if r1 == 0x1 goto pc+1
  726. R1=ctx R2=fp R10=fp
  727. 5: (7a) *(u64 *)(r2 -16) = 1
  728. 6: (15) if r1 == 0x2 goto pc+1
  729. R1=ctx R2=fp R10=fp
  730. 7: (7a) *(u64 *)(r2 -8) = 2
  731. 8: (15) if r1 == 0x3 goto pc+1
  732. R1=ctx R2=fp R10=fp
  733. 9: (7a) *(u64 *)(r2 -16) = 3
  734. 10: (15) if r1 == 0x4 goto pc+1
  735. R1=ctx R2=fp R10=fp
  736. 11: (7a) *(u64 *)(r2 -8) = 4
  737. 12: (15) if r1 == 0x5 goto pc+1
  738. R1=ctx R2=fp R10=fp
  739. 13: (7a) *(u64 *)(r2 -32) = 5
  740. 14: (b7) r0 = 0
  741. 15: (95) exit
  742.  
  743. from 12 to 14: R1=imm5 R2=fp R10=fp
  744. 14: (b7) r0 = 0
  745. 15: (95) exit
  746.  
  747. from 10 to 12: R1=imm4 R2=fp R10=fp
  748. 12: (15) if r1 == 0x5 goto pc+1
  749. R1=imm4 R2=fp R10=fp
  750. 13: (7a) *(u64 *)(r2 -32) = 5
  751. 14: (b7) r0 = 0
  752. 15: (95) exit
  753.  
  754. from 12 to 14: safe
  755.  
  756. from 8 to 10: R1=imm3 R2=fp R10=fp
  757. 10: (15) if r1 == 0x4 goto pc+1
  758. R1=imm3 R2=fp R10=fp
  759. 11: (7a) *(u64 *)(r2 -8) = 4
  760. 12: (15) if r1 == 0x5 goto pc+1
  761. R1=imm3 R2=fp R10=fp
  762. 13: (7a) *(u64 *)(r2 -32) = 5
  763. 14: (b7) r0 = 0
  764. 15: (95) exit
  765.  
  766. from 12 to 14: safe
  767.  
  768. from 10 to 12: safe
  769.  
  770. from 6 to 8: R1=imm2 R2=fp R10=fp
  771. 8: (15) if r1 == 0x3 goto pc+1
  772. R1=imm2 R2=fp R10=fp
  773. 9: (7a) *(u64 *)(r2 -16) = 3
  774. 10: (15) if r1 == 0x4 goto pc+1
  775. R1=imm2 R2=fp R10=fp
  776. 11: (7a) *(u64 *)(r2 -8) = 4
  777. 12: (15) if r1 == 0x5 goto pc+1
  778. R1=imm2 R2=fp R10=fp
  779. 13: (7a) *(u64 *)(r2 -32) = 5
  780. 14: (b7) r0 = 0
  781. 15: (95) exit
  782.  
  783. from 12 to 14: safe
  784.  
  785. from 10 to 12: safe
  786.  
  787. from 8 to 10: safe
  788.  
  789. from 4 to 6: R1=imm1 R2=fp R10=fp
  790. 6: (15) if r1 == 0x2 goto pc+1
  791. R1=imm1 R2=fp R10=fp
  792. 7: (7a) *(u64 *)(r2 -8) = 2
  793. 8: (15) if r1 == 0x3 goto pc+1
  794. R1=imm1 R2=fp R10=fp
  795. 9: (7a) *(u64 *)(r2 -16) = 3
  796. 10: (15) if r1 == 0x4 goto pc+1
  797. R1=imm1 R2=fp R10=fp
  798. 11: (7a) *(u64 *)(r2 -8) = 4
  799. 12: (15) if r1 == 0x5 goto pc+1
  800. R1=imm1 R2=fp R10=fp
  801. 13: (7a) *(u64 *)(r2 -32) = 5
  802. 14: (b7) r0 = 0
  803. 15: (95) exit
  804.  
  805. from 12 to 14: safe
  806.  
  807. from 10 to 12: safe
  808.  
  809. from 8 to 10: R1=imm3 R2=fp R10=fp
  810. 10: (15) if r1 == 0x4 goto pc+1
  811. R1=imm3 R2=fp R10=fp
  812. 11: (7a) *(u64 *)(r2 -8) = 4
  813. 12: (15) if r1 == 0x5 goto pc+1
  814. R1=imm3 R2=fp R10=fp
  815. 13: (7a) *(u64 *)(r2 -32) = 5
  816. 14: (b7) r0 = 0
  817. 15: (95) exit
  818.  
  819. from 12 to 14: R1=imm5 R2=fp R10=fp
  820. 14: (b7) r0 = 0
  821. 15: (95) exit
  822.  
  823. from 10 to 12: R1=imm4 R2=fp R10=fp
  824. 12: (15) if r1 == 0x5 goto pc+1
  825. R1=imm4 R2=fp R10=fp
  826. 13: (7a) *(u64 *)(r2 -32) = 5
  827. 14: (b7) r0 = 0
  828. 15: (95) exit
  829.  
  830. from 12 to 14: safe
  831.  
  832. from 6 to 8: R1=imm2 R2=fp R10=fp
  833. 8: (15) if r1 == 0x3 goto pc+1
  834. R1=imm2 R2=fp R10=fp
  835. 9: (7a) *(u64 *)(r2 -16) = 3
  836. 10: safe
  837.  
  838. from 8 to 10: safe
  839.  
  840. from 2 to 4: R1=imm0 R2=fp R10=fp fp-8=ctx
  841. 4: (15) if r1 == 0x1 goto pc+1
  842. R1=imm0 R2=fp R10=fp fp-8=ctx
  843. 5: (7a) *(u64 *)(r2 -16) = 1
  844. 6: (15) if r1 == 0x2 goto pc+1
  845. R1=imm0 R2=fp R10=fp fp-8=ctx
  846. 7: (7a) *(u64 *)(r2 -8) = 2
  847. 8: (15) if r1 == 0x3 goto pc+1
  848. R1=imm0 R2=fp R10=fp
  849. 9: (7a) *(u64 *)(r2 -16) = 3
  850. 10: (15) if r1 == 0x4 goto pc+1
  851. R1=imm0 R2=fp R10=fp
  852. 11: (7a) *(u64 *)(r2 -8) = 4
  853. 12: (15) if r1 == 0x5 goto pc+1
  854. R1=imm0 R2=fp R10=fp
  855. 13: (7a) *(u64 *)(r2 -32) = 5
  856. 14: (b7) r0 = 0
  857. 15: (95) exit
  858.  
  859. from 12 to 14: safe
  860.  
  861. from 10 to 12: safe
  862.  
  863. from 8 to 10: safe
  864.  
  865. from 6 to 8: R1=imm2 R2=fp R10=fp fp-8=ctx
  866. 8: (15) if r1 == 0x3 goto pc+1
  867. R1=imm2 R2=fp R10=fp fp-8=ctx
  868. 9: (7a) *(u64 *)(r2 -16) = 3
  869. 10: (15) if r1 == 0x4 goto pc+1
  870. R1=imm2 R2=fp R10=fp fp-8=ctx
  871. 11: (7a) *(u64 *)(r2 -8) = 4
  872. 12: safe
  873.  
  874. from 10 to 12: R1=imm4 R2=fp R10=fp fp-8=ctx
  875. 12: (15) if r1 == 0x5 goto pc+1
  876. R1=imm4 R2=fp R10=fp fp-8=ctx
  877. 13: (7a) *(u64 *)(r2 -32) = 5
  878. 14: (b7) r0 = 0
  879. 15: (95) exit
  880.  
  881. from 12 to 14: R1=imm5 R2=fp R10=fp fp-8=ctx
  882. 14: (b7) r0 = 0
  883. 15: (95) exit
  884.  
  885. from 8 to 10: R1=imm3 R2=fp R10=fp fp-8=ctx
  886. 10: (15) if r1 == 0x4 goto pc+1
  887. R1=imm3 R2=fp R10=fp fp-8=ctx
  888. 11: (7a) *(u64 *)(r2 -8) = 4
  889. 12: safe
  890.  
  891. from 10 to 12: safe
  892.  
  893. from 4 to 6: R1=imm1 R2=fp R10=fp fp-8=ctx
  894. 6: (15) if r1 == 0x2 goto pc+1
  895. R1=imm1 R2=fp R10=fp fp-8=ctx
  896. 7: (7a) *(u64 *)(r2 -8) = 2
  897. 8: safe
  898.  
  899. from 6 to 8: R1=imm2 R2=fp R10=fp fp-8=ctx
  900. 8: (15) if r1 == 0x3 goto pc+1
  901. R1=imm2 R2=fp R10=fp fp-8=ctx
  902. 9: (7a) *(u64 *)(r2 -16) = 3
  903. 10: safe
  904.  
  905. from 8 to 10: R1=imm3 R2=fp R10=fp fp-8=ctx
  906. 10: (15) if r1 == 0x4 goto pc+1
  907. R1=imm3 R2=fp R10=fp fp-8=ctx
  908. 11: (7a) *(u64 *)(r2 -8) = 4
  909. 12: safe
  910.  
  911. from 10 to 12: R1=imm4 R2=fp R10=fp fp-8=ctx
  912. 12: (15) if r1 == 0x5 goto pc+1
  913. R1=imm4 R2=fp R10=fp fp-8=ctx
  914. 13: (7a) *(u64 *)(r2 -32) = 5
  915. 14: (b7) r0 = 0
  916. 15: (95) exit
  917.  
  918. from 12 to 14: R1=imm5 R2=fp R10=fp fp-8=ctx
  919. 14: (b7) r0 = 0
  920. 15: (95) exit
  921. #85/u jump test 2 OK
  922. #85/p jump test 2 Unexpected bpf_prog_test_run error
  923. 0: (bf) r2 = r10
  924. 1: (15) if r1 == 0x0 goto pc+2
  925. R1=ctx R2=fp R10=fp
  926. 2: (7a) *(u64 *)(r2 -8) = 0
  927. 3: (05) goto pc+14
  928. 18: (b7) r0 = 0
  929. 19: (95) exit
  930.  
  931. from 1 to 4: R1=imm0 R2=fp R10=fp
  932. 4: (15) if r1 == 0x1 goto pc+2
  933. R1=imm0 R2=fp R10=fp
  934. 5: (7a) *(u64 *)(r2 -16) = 0
  935. 6: (05) goto pc+11
  936. 18: (b7) r0 = 0
  937. 19: (95) exit
  938.  
  939. from 4 to 7: R1=imm1 R2=fp R10=fp
  940. 7: (15) if r1 == 0x2 goto pc+2
  941. R1=imm1 R2=fp R10=fp
  942. 8: (7a) *(u64 *)(r2 -32) = 0
  943. 9: (05) goto pc+8
  944. 18: (b7) r0 = 0
  945. 19: (95) exit
  946.  
  947. from 7 to 10: R1=imm2 R2=fp R10=fp
  948. 10: (15) if r1 == 0x3 goto pc+2
  949. R1=imm2 R2=fp R10=fp
  950. 11: (7a) *(u64 *)(r2 -40) = 0
  951. 12: (05) goto pc+5
  952. 18: (b7) r0 = 0
  953. 19: (95) exit
  954.  
  955. from 10 to 13: R1=imm3 R2=fp R10=fp
  956. 13: (15) if r1 == 0x4 goto pc+2
  957. R1=imm3 R2=fp R10=fp
  958. 14: (7a) *(u64 *)(r2 -48) = 0
  959. 15: (05) goto pc+2
  960. 18: (b7) r0 = 0
  961. 19: (95) exit
  962.  
  963. from 13 to 16: R1=imm4 R2=fp R10=fp
  964. 16: (15) if r1 == 0x5 goto pc+1
  965. R1=imm4 R2=fp R10=fp
  966. 17: (7a) *(u64 *)(r2 -56) = 0
  967. 18: (b7) r0 = 0
  968. 19: (95) exit
  969.  
  970. from 16 to 18: R1=imm5 R2=fp R10=fp
  971. 18: (b7) r0 = 0
  972. 19: (95) exit
  973. #86/u jump test 3 Failed to create hash map 'Invalid argument'!
  974. FAIL
  975. Unexpected error message!
  976. EXP: R1 pointer comparison
  977. RES: fd -1 is not pointing to valid bpf_map
  978.  
  979. fd -1 is not pointing to valid bpf_map
  980. #86/p jump test 3 Failed to create hash map 'Invalid argument'!
  981. FAIL
  982. Failed to load prog 'Bad file descriptor'!
  983. fd -1 is not pointing to valid bpf_map
  984. #87/u jump test 4 OK
  985. #87/p jump test 4 Unexpected bpf_prog_test_run error
  986. 0: (15) if r1 == 0xa goto pc+1
  987. R1=ctx R10=fp
  988. 1: (15) if r1 == 0xa goto pc+2
  989. R1=ctx R10=fp
  990. 2: (15) if r1 == 0xa goto pc+3
  991. R1=ctx R10=fp
  992. 3: (15) if r1 == 0xa goto pc+4
  993. R1=ctx R10=fp
  994. 4: (15) if r1 == 0xa goto pc+1
  995. R1=ctx R10=fp
  996. 5: (15) if r1 == 0xa goto pc+2
  997. R1=ctx R10=fp
  998. 6: (15) if r1 == 0xa goto pc+3
  999. R1=ctx R10=fp
  1000. 7: (15) if r1 == 0xa goto pc+4
  1001. R1=ctx R10=fp
  1002. 8: (15) if r1 == 0xa goto pc+1
  1003. R1=ctx R10=fp
  1004. 9: (15) if r1 == 0xa goto pc+2
  1005. R1=ctx R10=fp
  1006. 10: (15) if r1 == 0xa goto pc+3
  1007. R1=ctx R10=fp
  1008. 11: (15) if r1 == 0xa goto pc+4
  1009. R1=ctx R10=fp
  1010. 12: (15) if r1 == 0xa goto pc+1
  1011. R1=ctx R10=fp
  1012. 13: (15) if r1 == 0xa goto pc+2
  1013. R1=ctx R10=fp
  1014. 14: (15) if r1 == 0xa goto pc+3
  1015. R1=ctx R10=fp
  1016. 15: (15) if r1 == 0xa goto pc+4
  1017. R1=ctx R10=fp
  1018. 16: (15) if r1 == 0xa goto pc+1
  1019. R1=ctx R10=fp
  1020. 17: (15) if r1 == 0xa goto pc+2
  1021. R1=ctx R10=fp
  1022. 18: (15) if r1 == 0xa goto pc+3
  1023. R1=ctx R10=fp
  1024. 19: (15) if r1 == 0xa goto pc+4
  1025. R1=ctx R10=fp
  1026. 20: (15) if r1 == 0xa goto pc+1
  1027. R1=ctx R10=fp
  1028. 21: (15) if r1 == 0xa goto pc+2
  1029. R1=ctx R10=fp
  1030. 22: (15) if r1 == 0xa goto pc+3
  1031. R1=ctx R10=fp
  1032. 23: (15) if r1 == 0xa goto pc+4
  1033. R1=ctx R10=fp
  1034. 24: (15) if r1 == 0xa goto pc+1
  1035. R1=ctx R10=fp
  1036. 25: (15) if r1 == 0xa goto pc+2
  1037. R1=ctx R10=fp
  1038. 26: (15) if r1 == 0xa goto pc+3
  1039. R1=ctx R10=fp
  1040. 27: (15) if r1 == 0xa goto pc+4
  1041. R1=ctx R10=fp
  1042. 28: (15) if r1 == 0xa goto pc+1
  1043. R1=ctx R10=fp
  1044. 29: (15) if r1 == 0xa goto pc+2
  1045. R1=ctx R10=fp
  1046. 30: (15) if r1 == 0xa goto pc+3
  1047. R1=ctx R10=fp
  1048. 31: (15) if r1 == 0xa goto pc+4
  1049. R1=ctx R10=fp
  1050. 32: (15) if r1 == 0xa goto pc+1
  1051. R1=ctx R10=fp
  1052. 33: (15) if r1 == 0xa goto pc+2
  1053. R1=ctx R10=fp
  1054. 34: (15) if r1 == 0xa goto pc+3
  1055. R1=ctx R10=fp
  1056. 35: (15) if r1 == 0xa goto pc+4
  1057. R1=ctx R10=fp
  1058. 36: (15) if r1 == 0xa goto pc+0
  1059. R1=ctx R10=fp
  1060. 37: (15) if r1 == 0xa goto pc+0
  1061. R1=ctx R10=fp
  1062. 38: (15) if r1 == 0xa goto pc+0
  1063. R1=ctx R10=fp
  1064. 39: (15) if r1 == 0xa goto pc+0
  1065. R1=ctx R10=fp
  1066. 40: (b7) r0 = 0
  1067. 41: (95) exit
  1068.  
  1069. from 39 to 40: R1=imm10 R10=fp
  1070. 40: (b7) r0 = 0
  1071. 41: (95) exit
  1072.  
  1073. from 38 to 39: R1=imm10 R10=fp
  1074. 39: (15) if r1 == 0xa goto pc+0
  1075. 40: safe
  1076.  
  1077. from 37 to 38: R1=imm10 R10=fp
  1078. 38: (15) if r1 == 0xa goto pc+0
  1079. 39: safe
  1080.  
  1081. from 36 to 37: R1=imm10 R10=fp
  1082. 37: (15) if r1 == 0xa goto pc+0
  1083. 38: safe
  1084.  
  1085. from 35 to 40: safe
  1086.  
  1087. from 34 to 38: safe
  1088.  
  1089. from 33 to 36: R1=imm10 R10=fp
  1090. 36: (15) if r1 == 0xa goto pc+0
  1091. 37: safe
  1092.  
  1093. from 32 to 34: R1=imm10 R10=fp
  1094. 34: (15) if r1 == 0xa goto pc+3
  1095. 38: safe
  1096.  
  1097. from 31 to 36: safe
  1098.  
  1099. from 30 to 34: safe
  1100.  
  1101. from 29 to 32: R1=imm10 R10=fp
  1102. 32: (15) if r1 == 0xa goto pc+1
  1103. 34: safe
  1104.  
  1105. from 28 to 30: R1=imm10 R10=fp
  1106. 30: (15) if r1 == 0xa goto pc+3
  1107. 34: safe
  1108.  
  1109. from 27 to 32: safe
  1110.  
  1111. from 26 to 30: safe
  1112.  
  1113. from 25 to 28: R1=imm10 R10=fp
  1114. 28: (15) if r1 == 0xa goto pc+1
  1115. 30: safe
  1116.  
  1117. from 24 to 26: R1=imm10 R10=fp
  1118. 26: (15) if r1 == 0xa goto pc+3
  1119. 30: safe
  1120.  
  1121. from 23 to 28: safe
  1122.  
  1123. from 22 to 26: safe
  1124.  
  1125. from 21 to 24: R1=imm10 R10=fp
  1126. 24: (15) if r1 == 0xa goto pc+1
  1127. 26: safe
  1128.  
  1129. from 20 to 22: R1=imm10 R10=fp
  1130. 22: (15) if r1 == 0xa goto pc+3
  1131. 26: safe
  1132.  
  1133. from 19 to 24: safe
  1134.  
  1135. from 18 to 22: safe
  1136.  
  1137. from 17 to 20: R1=imm10 R10=fp
  1138. 20: (15) if r1 == 0xa goto pc+1
  1139. 22: safe
  1140.  
  1141. from 16 to 18: R1=imm10 R10=fp
  1142. 18: (15) if r1 == 0xa goto pc+3
  1143. 22: safe
  1144.  
  1145. from 15 to 20: safe
  1146.  
  1147. from 14 to 18: safe
  1148.  
  1149. from 13 to 16: R1=imm10 R10=fp
  1150. 16: (15) if r1 == 0xa goto pc+1
  1151. 18: safe
  1152.  
  1153. from 12 to 14: R1=imm10 R10=fp
  1154. 14: (15) if r1 == 0xa goto pc+3
  1155. 18: safe
  1156.  
  1157. from 11 to 16: safe
  1158.  
  1159. from 10 to 14: safe
  1160.  
  1161. from 9 to 12: R1=imm10 R10=fp
  1162. 12: (15) if r1 == 0xa goto pc+1
  1163. 14: safe
  1164.  
  1165. from 8 to 10: R1=imm10 R10=fp
  1166. 10: (15) if r1 == 0xa goto pc+3
  1167. 14: safe
  1168.  
  1169. from 7 to 12: safe
  1170.  
  1171. from 6 to 10: safe
  1172.  
  1173. from 5 to 8: R1=imm10 R10=fp
  1174. 8: (15) if r1 == 0xa goto pc+1
  1175. 10: safe
  1176.  
  1177. from 4 to 6: R1=imm10 R10=fp
  1178. 6: (15) if r1 == 0xa goto pc+3
  1179. 10: safe
  1180.  
  1181. from 3 to 8: safe
  1182.  
  1183. from 2 to 6: safe
  1184.  
  1185. from 1 to 4: R1=imm10 R10=fp
  1186. 4: (15) if r1 == 0xa goto pc+1
  1187. 6: safe
  1188.  
  1189. from 0 to 2: R1=imm10 R10=fp
  1190. 2: (15) if r1 == 0xa goto pc+3
  1191. 6: safe
  1192. #88/u jump test 5 OK
  1193. #88/p jump test 5 Unexpected bpf_prog_test_run error
  1194. 0: (bf) r2 = r10
  1195. 1: (bf) r3 = r2
  1196. 2: (35) if r1 >= 0x0 goto pc+2
  1197. R1=ctx R2=fp R3=fp R10=fp
  1198. 3: (7b) *(u64 *)(r2 -8) = r3
  1199. 4: (05) goto pc+2
  1200. 7: (b7) r0 = 0
  1201. 8: (35) if r1 >= 0x0 goto pc+2
  1202. R0=imm0 R1=ctx R2=fp R3=fp R10=fp fp-8=fp
  1203. 9: (7b) *(u64 *)(r2 -8) = r3
  1204. 10: (05) goto pc+2
  1205. 13: (b7) r0 = 0
  1206. 14: (35) if r1 >= 0x0 goto pc+2
  1207. R0=imm0 R1=ctx R2=fp R3=fp R10=fp fp-8=fp
  1208. 15: (7b) *(u64 *)(r2 -8) = r3
  1209. 16: (05) goto pc+2
  1210. 19: (b7) r0 = 0
  1211. 20: (35) if r1 >= 0x0 goto pc+2
  1212. R0=imm0 R1=ctx R2=fp R3=fp R10=fp fp-8=fp
  1213. 21: (7b) *(u64 *)(r2 -8) = r3
  1214. 22: (05) goto pc+2
  1215. 25: (b7) r0 = 0
  1216. 26: (35) if r1 >= 0x0 goto pc+2
  1217. R0=imm0 R1=ctx R2=fp R3=fp R10=fp fp-8=fp
  1218. 27: (7b) *(u64 *)(r2 -8) = r3
  1219. 28: (05) goto pc+2
  1220. 31: (b7) r0 = 0
  1221. 32: (95) exit
  1222.  
  1223. from 26 to 29: R0=imm0 R1=ctx R2=fp R3=fp R10=fp fp-8=fp
  1224. 29: (7b) *(u64 *)(r2 -8) = r2
  1225. 30: (05) goto pc+0
  1226. 31: safe
  1227.  
  1228. from 20 to 23: R0=imm0 R1=ctx R2=fp R3=fp R10=fp fp-8=fp
  1229. 23: (7b) *(u64 *)(r2 -8) = r2
  1230. 24: (05) goto pc+0
  1231. 25: safe
  1232.  
  1233. from 14 to 17: R0=imm0 R1=ctx R2=fp R3=fp R10=fp fp-8=fp
  1234. 17: (7b) *(u64 *)(r2 -8) = r2
  1235. 18: (05) goto pc+0
  1236. 19: safe
  1237.  
  1238. from 8 to 11: R0=imm0 R1=ctx R2=fp R3=fp R10=fp fp-8=fp
  1239. 11: (7b) *(u64 *)(r2 -8) = r2
  1240. 12: (05) goto pc+0
  1241. 13: safe
  1242.  
  1243. from 2 to 5: R1=ctx R2=fp R3=fp R10=fp
  1244. 5: (7b) *(u64 *)(r2 -8) = r2
  1245. 6: (05) goto pc+0
  1246. 7: safe
  1247. #89/u access skb fields ok FAIL
  1248. Failed to load prog 'Permission denied'!
  1249. 0: (61) r0 = *(u32 *)(r1 +0)
  1250. 1: (35) if r0 >= 0x0 goto pc+1
  1251. R0=inv R1=ctx R10=fp
  1252. 2: (61) r0 = *(u32 *)(r1 +8)
  1253. 3: (35) if r0 >= 0x0 goto pc+1
  1254. R0=inv R1=ctx R10=fp
  1255. 4: (61) r0 = *(u32 *)(r1 +4)
  1256. 5: (35) if r0 >= 0x0 goto pc+1
  1257. R0=inv R1=ctx R10=fp
  1258. 6: (61) r0 = *(u32 *)(r1 +12)
  1259. 7: (35) if r0 >= 0x0 goto pc+0
  1260. R0=inv R1=ctx R10=fp
  1261. 8: (61) r0 = *(u32 *)(r1 +16)
  1262. 9: (35) if r0 >= 0x0 goto pc+0
  1263. R0=inv R1=ctx R10=fp
  1264. 10: (61) r0 = *(u32 *)(r1 +20)
  1265. 11: (35) if r0 >= 0x0 goto pc+0
  1266. R0=inv R1=ctx R10=fp
  1267. 12: (61) r0 = *(u32 *)(r1 +24)
  1268. 13: (35) if r0 >= 0x0 goto pc+0
  1269. R0=inv R1=ctx R10=fp
  1270. 14: (61) r0 = *(u32 *)(r1 +84)
  1271. invalid bpf_context access off=84 size=4
  1272. #89/p access skb fields ok FAIL
  1273. Failed to load prog 'Permission denied'!
  1274. 0: (61) r0 = *(u32 *)(r1 +0)
  1275. 1: (35) if r0 >= 0x0 goto pc+1
  1276. R0=inv R1=ctx R10=fp
  1277. 2: (61) r0 = *(u32 *)(r1 +8)
  1278. 3: (35) if r0 >= 0x0 goto pc+1
  1279. R0=inv R1=ctx R10=fp
  1280. 4: (61) r0 = *(u32 *)(r1 +4)
  1281. 5: (35) if r0 >= 0x0 goto pc+1
  1282. R0=inv R1=ctx R10=fp
  1283. 6: (61) r0 = *(u32 *)(r1 +12)
  1284. 7: (35) if r0 >= 0x0 goto pc+0
  1285. R0=inv R1=ctx R10=fp
  1286. 8: (61) r0 = *(u32 *)(r1 +16)
  1287. 9: (35) if r0 >= 0x0 goto pc+0
  1288. R0=inv R1=ctx R10=fp
  1289. 10: (61) r0 = *(u32 *)(r1 +20)
  1290. 11: (35) if r0 >= 0x0 goto pc+0
  1291. R0=inv R1=ctx R10=fp
  1292. 12: (61) r0 = *(u32 *)(r1 +24)
  1293. 13: (35) if r0 >= 0x0 goto pc+0
  1294. R0=inv R1=ctx R10=fp
  1295. 14: (61) r0 = *(u32 *)(r1 +84)
  1296. invalid bpf_context access off=84 size=4
  1297. #90/u access skb fields bad1 OK
  1298. #90/p access skb fields bad1 OK
  1299. #91/u access skb fields bad2 Failed to create hash map 'Invalid argument'!
  1300. FAIL
  1301. Unexpected error message!
  1302. EXP: R1 pointer comparison
  1303. RES: fd -1 is not pointing to valid bpf_map
  1304.  
  1305. fd -1 is not pointing to valid bpf_map
  1306. #91/p access skb fields bad2 Failed to create hash map 'Invalid argument'!
  1307. FAIL
  1308. Unexpected error message!
  1309. EXP: different pointers
  1310. RES: fd -1 is not pointing to valid bpf_map
  1311.  
  1312. fd -1 is not pointing to valid bpf_map
  1313. #92/u access skb fields bad3 Failed to create hash map 'Invalid argument'!
  1314. FAIL
  1315. Unexpected error message!
  1316. EXP: R1 pointer comparison
  1317. RES: fd -1 is not pointing to valid bpf_map
  1318.  
  1319. fd -1 is not pointing to valid bpf_map
  1320. #92/p access skb fields bad3 Failed to create hash map 'Invalid argument'!
  1321. FAIL
  1322. Unexpected error message!
  1323. EXP: different pointers
  1324. RES: fd -1 is not pointing to valid bpf_map
  1325.  
  1326. fd -1 is not pointing to valid bpf_map
  1327. #93/u access skb fields bad4 Failed to create hash map 'Invalid argument'!
  1328. FAIL
  1329. Unexpected error message!
  1330. EXP: R1 pointer comparison
  1331. RES: fd -1 is not pointing to valid bpf_map
  1332.  
  1333. fd -1 is not pointing to valid bpf_map
  1334. #93/p access skb fields bad4 Failed to create hash map 'Invalid argument'!
  1335. FAIL
  1336. Unexpected error message!
  1337. EXP: different pointers
  1338. RES: fd -1 is not pointing to valid bpf_map
  1339.  
  1340. fd -1 is not pointing to valid bpf_map
  1341. #94/u invalid access __sk_buff family OK
  1342. #94/p invalid access __sk_buff family OK
  1343. #95/u invalid access __sk_buff remote_ip4 OK
  1344. #95/p invalid access __sk_buff remote_ip4 OK
  1345. #96/u invalid access __sk_buff local_ip4 OK
  1346. #96/p invalid access __sk_buff local_ip4 OK
  1347. #97/u invalid access __sk_buff remote_ip6 OK
  1348. #97/p invalid access __sk_buff remote_ip6 OK
  1349. #98/u invalid access __sk_buff local_ip6 OK
  1350. #98/p invalid access __sk_buff local_ip6 OK
  1351. #99/u invalid access __sk_buff remote_port OK
  1352. #99/p invalid access __sk_buff remote_port OK
  1353. #100/u invalid access __sk_buff remote_port OK
  1354. #100/p invalid access __sk_buff remote_port OK
  1355. #101/p valid access __sk_buff family FAIL
  1356. Failed to load prog 'Invalid argument'!
  1357. #102/p valid access __sk_buff remote_ip4 FAIL
  1358. Failed to load prog 'Invalid argument'!
  1359. #103/p valid access __sk_buff local_ip4 FAIL
  1360. Failed to load prog 'Invalid argument'!
  1361. #104/p valid access __sk_buff remote_ip6 FAIL
  1362. Failed to load prog 'Invalid argument'!
  1363. #105/p valid access __sk_buff local_ip6 FAIL
  1364. Failed to load prog 'Invalid argument'!
  1365. #106/p valid access __sk_buff remote_port FAIL
  1366. Failed to load prog 'Invalid argument'!
  1367. #107/p valid access __sk_buff remote_port FAIL
  1368. Failed to load prog 'Invalid argument'!
  1369. #108/p invalid access of tc_classid for SK_SKB FAIL
  1370. Unexpected error message!
  1371. EXP: invalid bpf_context access
  1372. RES:
  1373. #109/p invalid access of skb->mark for SK_SKB FAIL
  1374. Unexpected error message!
  1375. EXP: invalid bpf_context access
  1376. RES:
  1377. #110/p check skb->mark is not writeable by SK_SKB FAIL
  1378. Unexpected error message!
  1379. EXP: invalid bpf_context access
  1380. RES:
  1381. #111/p check skb->tc_index is writeable by SK_SKB FAIL
  1382. Failed to load prog 'Invalid argument'!
  1383. #112/p check skb->priority is writeable by SK_SKB FAIL
  1384. Failed to load prog 'Invalid argument'!
  1385. #113/p direct packet read for SK_SKB FAIL
  1386. Failed to load prog 'Invalid argument'!
  1387. #114/p direct packet write for SK_SKB FAIL
  1388. Failed to load prog 'Invalid argument'!
  1389. #115/p overlapping checks for direct packet access SK_SKB FAIL
  1390. Failed to load prog 'Invalid argument'!
  1391. #116/p direct packet read for SK_MSG FAIL
  1392. Failed to load prog 'Invalid argument'!
  1393. #117/p direct packet write for SK_MSG FAIL
  1394. Failed to load prog 'Invalid argument'!
  1395. #118/p overlapping checks for direct packet access SK_MSG FAIL
  1396. Failed to load prog 'Invalid argument'!
  1397. #119/u check skb->mark is not writeable by sockets OK
  1398. #119/p check skb->mark is not writeable by sockets OK
  1399. #120/u check skb->tc_index is not writeable by sockets OK
  1400. #120/p check skb->tc_index is not writeable by sockets OK
  1401. #121/u check cb access: byte FAIL
  1402. Failed to load prog 'Permission denied'!
  1403. 0: (b7) r0 = 0
  1404. 1: (73) *(u8 *)(r1 +48) = r0
  1405. invalid bpf_context access off=48 size=1
  1406. #121/p check cb access: byte FAIL
  1407. Failed to load prog 'Permission denied'!
  1408. 0: (b7) r0 = 0
  1409. 1: (73) *(u8 *)(r1 +48) = r0
  1410. invalid bpf_context access off=48 size=1
  1411. #122/u __sk_buff->hash, offset 0, byte store not permitted OK
  1412. #122/p __sk_buff->hash, offset 0, byte store not permitted OK
  1413. #123/u __sk_buff->tc_index, offset 3, byte store not permitted OK
  1414. #123/p __sk_buff->tc_index, offset 3, byte store not permitted OK
  1415. #124/u check skb->hash byte load permitted FAIL
  1416. Failed to load prog 'Permission denied'!
  1417. 0: (b7) r0 = 0
  1418. 1: (71) r0 = *(u8 *)(r1 +68)
  1419. invalid bpf_context access off=68 size=1
  1420. #124/p check skb->hash byte load permitted FAIL
  1421. Failed to load prog 'Permission denied'!
  1422. 0: (b7) r0 = 0
  1423. 1: (71) r0 = *(u8 *)(r1 +68)
  1424. invalid bpf_context access off=68 size=1
  1425. #125/u check skb->hash byte load not permitted 1 OK
  1426. #125/p check skb->hash byte load not permitted 1 OK
  1427. #126/u check skb->hash byte load not permitted 2 OK
  1428. #126/p check skb->hash byte load not permitted 2 OK
  1429. #127/u check skb->hash byte load not permitted 3 OK
  1430. #127/p check skb->hash byte load not permitted 3 OK
  1431. #128/p check cb access: byte, wrong type FAIL
  1432. Unexpected error message!
  1433. EXP: invalid bpf_context access
  1434. RES:
  1435. #129/u check cb access: half FAIL
  1436. Failed to load prog 'Permission denied'!
  1437. 0: (b7) r0 = 0
  1438. 1: (6b) *(u16 *)(r1 +48) = r0
  1439. invalid bpf_context access off=48 size=2
  1440. #129/p check cb access: half FAIL
  1441. Failed to load prog 'Permission denied'!
  1442. 0: (b7) r0 = 0
  1443. 1: (6b) *(u16 *)(r1 +48) = r0
  1444. invalid bpf_context access off=48 size=2
  1445. #130/u check cb access: half, unaligned FAIL
  1446. Unexpected error message!
  1447. EXP: misaligned context access
  1448. RES:
  1449. #130/p check cb access: half, unaligned FAIL
  1450. Unexpected error message!
  1451. EXP: misaligned context access
  1452. RES:
  1453. #131/u check __sk_buff->hash, offset 0, half store not permitted OK
  1454. #131/p check __sk_buff->hash, offset 0, half store not permitted OK
  1455. #132/u check __sk_buff->tc_index, offset 2, half store not permitted OK
  1456. #132/p check __sk_buff->tc_index, offset 2, half store not permitted OK
  1457. #133/u check skb->hash half load permitted FAIL
  1458. Failed to load prog 'Permission denied'!
  1459. 0: (b7) r0 = 0
  1460. 1: (69) r0 = *(u16 *)(r1 +68)
  1461. invalid bpf_context access off=68 size=2
  1462. #133/p check skb->hash half load permitted FAIL
  1463. Failed to load prog 'Permission denied'!
  1464. 0: (b7) r0 = 0
  1465. 1: (69) r0 = *(u16 *)(r1 +68)
  1466. invalid bpf_context access off=68 size=2
  1467. #134/u check skb->hash half load not permitted OK
  1468. #134/p check skb->hash half load not permitted OK
  1469. #135/p check cb access: half, wrong type FAIL
  1470. Unexpected error message!
  1471. EXP: invalid bpf_context access
  1472. RES:
  1473. #136/u check cb access: word Unexpected bpf_prog_test_run error
  1474. 0: (b7) r0 = 0
  1475. 1: (63) *(u32 *)(r1 +48) = r0
  1476. 2: (63) *(u32 *)(r1 +52) = r0
  1477. 3: (63) *(u32 *)(r1 +56) = r0
  1478. 4: (63) *(u32 *)(r1 +60) = r0
  1479. 5: (63) *(u32 *)(r1 +64) = r0
  1480. 6: (61) r0 = *(u32 *)(r1 +48)
  1481. 7: (61) r0 = *(u32 *)(r1 +52)
  1482. 8: (61) r0 = *(u32 *)(r1 +56)
  1483. 9: (61) r0 = *(u32 *)(r1 +60)
  1484. 10: (61) r0 = *(u32 *)(r1 +64)
  1485. 11: (95) exit
  1486. #136/p check cb access: word Unexpected bpf_prog_test_run error
  1487. 0: (b7) r0 = 0
  1488. 1: (63) *(u32 *)(r1 +48) = r0
  1489. 2: (63) *(u32 *)(r1 +52) = r0
  1490. 3: (63) *(u32 *)(r1 +56) = r0
  1491. 4: (63) *(u32 *)(r1 +60) = r0
  1492. 5: (63) *(u32 *)(r1 +64) = r0
  1493. 6: (61) r0 = *(u32 *)(r1 +48)
  1494. 7: (61) r0 = *(u32 *)(r1 +52)
  1495. 8: (61) r0 = *(u32 *)(r1 +56)
  1496. 9: (61) r0 = *(u32 *)(r1 +60)
  1497. 10: (61) r0 = *(u32 *)(r1 +64)
  1498. 11: (95) exit
  1499. #137/u check cb access: word, unaligned 1 FAIL
  1500. Unexpected error message!
  1501. EXP: misaligned context access
  1502. RES:
  1503. #137/p check cb access: word, unaligned 1 FAIL
  1504. Unexpected error message!
  1505. EXP: misaligned context access
  1506. RES:
  1507. #138/u check cb access: word, unaligned 2 FAIL
  1508. Unexpected error message!
  1509. EXP: misaligned context access
  1510. RES:
  1511. #138/p check cb access: word, unaligned 2 FAIL
  1512. Unexpected error message!
  1513. EXP: misaligned context access
  1514. RES:
  1515. #139/u check cb access: word, unaligned 3 FAIL
  1516. Unexpected error message!
  1517. EXP: misaligned context access
  1518. RES:
  1519. #139/p check cb access: word, unaligned 3 FAIL
  1520. Unexpected error message!
  1521. EXP: misaligned context access
  1522. RES:
  1523. #140/u check cb access: word, unaligned 4 FAIL
  1524. Unexpected error message!
  1525. EXP: misaligned context access
  1526. RES:
  1527. #140/p check cb access: word, unaligned 4 FAIL
  1528. Unexpected error message!
  1529. EXP: misaligned context access
  1530. RES:
  1531. #141/u check cb access: double FAIL
  1532. Failed to load prog 'Permission denied'!
  1533. 0: (b7) r0 = 0
  1534. 1: (7b) *(u64 *)(r1 +48) = r0
  1535. invalid bpf_context access off=48 size=8
  1536. #141/p check cb access: double FAIL
  1537. Failed to load prog 'Permission denied'!
  1538. 0: (b7) r0 = 0
  1539. 1: (7b) *(u64 *)(r1 +48) = r0
  1540. invalid bpf_context access off=48 size=8
  1541. #142/u check cb access: double, unaligned 1 FAIL
  1542. Unexpected error message!
  1543. EXP: misaligned context access
  1544. RES:
  1545. #142/p check cb access: double, unaligned 1 FAIL
  1546. Unexpected error message!
  1547. EXP: misaligned context access
  1548. RES:
  1549. #143/u check cb access: double, unaligned 2 FAIL
  1550. Unexpected error message!
  1551. EXP: misaligned context access
  1552. RES:
  1553. #143/p check cb access: double, unaligned 2 FAIL
  1554. Unexpected error message!
  1555. EXP: misaligned context access
  1556. RES:
  1557. #144/u check cb access: double, oob 1 OK
  1558. #144/p check cb access: double, oob 1 OK
  1559. #145/u check cb access: double, oob 2 OK
  1560. #145/p check cb access: double, oob 2 OK
  1561. #146/u check __sk_buff->ifindex dw store not permitted OK
  1562. #146/p check __sk_buff->ifindex dw store not permitted OK
  1563. #147/u check __sk_buff->ifindex dw load not permitted OK
  1564. #147/p check __sk_buff->ifindex dw load not permitted OK
  1565. #148/p check cb access: double, wrong type FAIL
  1566. Unexpected error message!
  1567. EXP: invalid bpf_context access
  1568. RES:
  1569. #149/p check out of range skb->cb access OK
  1570. #150/u write skb fields from socket prog OK
  1571. #150/p write skb fields from socket prog Unexpected bpf_prog_test_run error
  1572. 0: (61) r0 = *(u32 *)(r1 +64)
  1573. 1: (35) if r0 >= 0x0 goto pc+1
  1574. R0=inv R1=ctx R10=fp
  1575. 2: (61) r0 = *(u32 *)(r1 +8)
  1576. 3: (61) r0 = *(u32 *)(r1 +44)
  1577. 4: (35) if r0 >= 0x0 goto pc+1
  1578. R0=inv R1=ctx R10=fp
  1579. 5: (63) *(u32 *)(r1 +48) = r1
  1580. 6: (63) *(u32 *)(r1 +56) = r1
  1581. 7: (95) exit
  1582.  
  1583. from 4 to 6: safe
  1584.  
  1585. from 1 to 3: safe
  1586. #151/p write skb fields from tc_cls_act prog Unexpected bpf_prog_test_run error
  1587. 0: (61) r0 = *(u32 *)(r1 +48)
  1588. 1: (63) *(u32 *)(r1 +8) = r0
  1589. 2: (61) r0 = *(u32 *)(r1 +44)
  1590. 3: (63) *(u32 *)(r1 +44) = r0
  1591. 4: (63) *(u32 *)(r1 +60) = r0
  1592. 5: (95) exit
  1593. #152/u PTR_TO_STACK store/load Unexpected bpf_prog_test_run error
  1594. 0: (bf) r1 = r10
  1595. 1: (07) r1 += -10
  1596. 2: (7a) *(u64 *)(r1 +2) = -87117812
  1597. 3: (79) r0 = *(u64 *)(r1 +2)
  1598. 4: (95) exit
  1599. #152/p PTR_TO_STACK store/load Unexpected bpf_prog_test_run error
  1600. 0: (bf) r1 = r10
  1601. 1: (07) r1 += -10
  1602. 2: (7a) *(u64 *)(r1 +2) = -87117812
  1603. 3: (79) r0 = *(u64 *)(r1 +2)
  1604. 4: (95) exit
  1605. #153/u PTR_TO_STACK store/load - bad alignment on off FAIL
  1606. Unexpected error message!
  1607. EXP: misaligned stack access off (0x0; 0x0)+-8+2 size 8
  1608. RES: 0: (bf) r1 = r10
  1609. 1: (07) r1 += -8
  1610. 2: (7a) *(u64 *)(r1 +2) = -87117812
  1611. misaligned access off -6 size 8
  1612.  
  1613. 0: (bf) r1 = r10
  1614. 1: (07) r1 += -8
  1615. 2: (7a) *(u64 *)(r1 +2) = -87117812
  1616. misaligned access off -6 size 8
  1617. #153/p PTR_TO_STACK store/load - bad alignment on off FAIL
  1618. Unexpected error message!
  1619. EXP: misaligned stack access off (0x0; 0x0)+-8+2 size 8
  1620. RES: 0: (bf) r1 = r10
  1621. 1: (07) r1 += -8
  1622. 2: (7a) *(u64 *)(r1 +2) = -87117812
  1623. misaligned access off -6 size 8
  1624.  
  1625. 0: (bf) r1 = r10
  1626. 1: (07) r1 += -8
  1627. 2: (7a) *(u64 *)(r1 +2) = -87117812
  1628. misaligned access off -6 size 8
  1629. #154/u PTR_TO_STACK store/load - bad alignment on reg FAIL
  1630. Unexpected error message!
  1631. EXP: misaligned stack access off (0x0; 0x0)+-10+8 size 8
  1632. RES: 0: (bf) r1 = r10
  1633. 1: (07) r1 += -10
  1634. 2: (7a) *(u64 *)(r1 +8) = -87117812
  1635. misaligned access off -2 size 8
  1636.  
  1637. 0: (bf) r1 = r10
  1638. 1: (07) r1 += -10
  1639. 2: (7a) *(u64 *)(r1 +8) = -87117812
  1640. misaligned access off -2 size 8
  1641. #154/p PTR_TO_STACK store/load - bad alignment on reg FAIL
  1642. Unexpected error message!
  1643. EXP: misaligned stack access off (0x0; 0x0)+-10+8 size 8
  1644. RES: 0: (bf) r1 = r10
  1645. 1: (07) r1 += -10
  1646. 2: (7a) *(u64 *)(r1 +8) = -87117812
  1647. misaligned access off -2 size 8
  1648.  
  1649. 0: (bf) r1 = r10
  1650. 1: (07) r1 += -10
  1651. 2: (7a) *(u64 *)(r1 +8) = -87117812
  1652. misaligned access off -2 size 8
  1653. #155/u PTR_TO_STACK store/load - out of bounds low OK
  1654. #155/p PTR_TO_STACK store/load - out of bounds low OK
  1655. #156/u PTR_TO_STACK store/load - out of bounds high OK
  1656. #156/p PTR_TO_STACK store/load - out of bounds high OK
  1657. #157/u unpriv: return pointer OK
  1658. #157/p unpriv: return pointer Unexpected bpf_prog_test_run error
  1659. 0: (bf) r0 = r10
  1660. 1: (95) exit
  1661. #158/u unpriv: add const to pointer FAIL
  1662. Failed to load prog 'Permission denied'!
  1663. 0: (07) r1 += 8
  1664. R1 pointer arithmetic prohibited
  1665. #158/p unpriv: add const to pointer Unexpected bpf_prog_test_run error
  1666. 0: (07) r1 += 8
  1667. 1: (b7) r0 = 0
  1668. 2: (95) exit
  1669. #159/u unpriv: add pointer to pointer FAIL
  1670. Unexpected error message!
  1671. EXP: R1 pointer += pointer
  1672. RES: 0: (0f) r1 += r10
  1673. R1 pointer arithmetic prohibited
  1674.  
  1675. 0: (0f) r1 += r10
  1676. R1 pointer arithmetic prohibited
  1677. #159/p unpriv: add pointer to pointer FAIL
  1678. Unexpected success to load!
  1679. 0: (0f) r1 += r10
  1680. 1: (b7) r0 = 0
  1681. 2: (95) exit
  1682. #160/u unpriv: neg pointer OK
  1683. #160/p unpriv: neg pointer Unexpected bpf_prog_test_run error
  1684. 0: (87) r1 neg 0
  1685. 1: (b7) r0 = 0
  1686. 2: (95) exit
  1687. #161/u unpriv: cmp pointer with const OK
  1688. #161/p unpriv: cmp pointer with const Unexpected bpf_prog_test_run error
  1689. 0: (15) if r1 == 0x0 goto pc+0
  1690. R1=ctx R10=fp
  1691. 1: (b7) r0 = 0
  1692. 2: (95) exit
  1693.  
  1694. from 0 to 1: R1=imm0 R10=fp
  1695. 1: (b7) r0 = 0
  1696. 2: (95) exit
  1697. #162/u unpriv: cmp pointer with pointer OK
  1698. #162/p unpriv: cmp pointer with pointer Unexpected bpf_prog_test_run error
  1699. 0: (1d) if r1 == r10 goto pc+0
  1700. R1=ctx R10=fp
  1701. 1: (b7) r0 = 0
  1702. 2: (95) exit
  1703.  
  1704. from 0 to 1: safe
  1705. #163/u unpriv: check that printk is disallowed FAIL
  1706. Unexpected error message!
  1707. EXP: unknown func bpf_trace_printk#6
  1708. RES: 0: (7a) *(u64 *)(r10 -8) = 0
  1709. 1: (bf) r1 = r10
  1710. 2: (07) r1 += -8
  1711. 3: (b7) r2 = 8
  1712. 4: (bf) r3 = r1
  1713. 5: (85) call 6
  1714. unknown func 6
  1715.  
  1716. 0: (7a) *(u64 *)(r10 -8) = 0
  1717. 1: (bf) r1 = r10
  1718. 2: (07) r1 += -8
  1719. 3: (b7) r2 = 8
  1720. 4: (bf) r3 = r1
  1721. 5: (85) call 6
  1722. unknown func 6
  1723. #163/p unpriv: check that printk is disallowed FAIL
  1724. Failed to load prog 'Invalid argument'!
  1725. 0: (7a) *(u64 *)(r10 -8) = 0
  1726. 1: (bf) r1 = r10
  1727. 2: (07) r1 += -8
  1728. 3: (b7) r2 = 8
  1729. 4: (bf) r3 = r1
  1730. 5: (85) call 6
  1731. unknown func 6
  1732. #164/u unpriv: pass pointer to helper function Failed to create hash map 'Invalid argument'!
  1733. FAIL
  1734. Unexpected error message!
  1735. EXP: R4 leaks addr
  1736. RES: fd -1 is not pointing to valid bpf_map
  1737.  
  1738. fd -1 is not pointing to valid bpf_map
  1739. #164/p unpriv: pass pointer to helper function Failed to create hash map 'Invalid argument'!
  1740. FAIL
  1741. Failed to load prog 'Bad file descriptor'!
  1742. fd -1 is not pointing to valid bpf_map
  1743. #165/u unpriv: indirectly pass pointer on stack to helper function Failed to create hash map 'Invalid argument'!
  1744. FAIL
  1745. Unexpected error message!
  1746. EXP: invalid indirect read from stack off -8+0 size 8
  1747. RES: fd -1 is not pointing to valid bpf_map
  1748.  
  1749. fd -1 is not pointing to valid bpf_map
  1750. #165/p unpriv: indirectly pass pointer on stack to helper function Failed to create hash map 'Invalid argument'!
  1751. FAIL
  1752. Unexpected error message!
  1753. EXP: invalid indirect read from stack off -8+0 size 8
  1754. RES: fd -1 is not pointing to valid bpf_map
  1755.  
  1756. fd -1 is not pointing to valid bpf_map
  1757. #166/u unpriv: mangle pointer on stack 1 OK
  1758. #166/p unpriv: mangle pointer on stack 1 Unexpected bpf_prog_test_run error
  1759. 0: (7b) *(u64 *)(r10 -8) = r10
  1760. 1: (62) *(u32 *)(r10 -8) = 0
  1761. 2: (b7) r0 = 0
  1762. 3: (95) exit
  1763. #167/u unpriv: mangle pointer on stack 2 OK
  1764. #167/p unpriv: mangle pointer on stack 2 Unexpected bpf_prog_test_run error
  1765. 0: (7b) *(u64 *)(r10 -8) = r10
  1766. 1: (72) *(u8 *)(r10 -1) = 0
  1767. 2: (b7) r0 = 0
  1768. 3: (95) exit
  1769. #168/u unpriv: read pointer from stack in small chunks OK
  1770. #168/p unpriv: read pointer from stack in small chunks OK
  1771. #169/u unpriv: write pointer into ctx OK
  1772. #169/p unpriv: write pointer into ctx OK
  1773. #170/u unpriv: spill/fill of ctx Unexpected bpf_prog_test_run error
  1774. 0: (bf) r6 = r10
  1775. 1: (07) r6 += -8
  1776. 2: (7b) *(u64 *)(r6 +0) = r1
  1777. 3: (79) r1 = *(u64 *)(r6 +0)
  1778. 4: (b7) r0 = 0
  1779. 5: (95) exit
  1780. #170/p unpriv: spill/fill of ctx Unexpected bpf_prog_test_run error
  1781. 0: (bf) r6 = r10
  1782. 1: (07) r6 += -8
  1783. 2: (7b) *(u64 *)(r6 +0) = r1
  1784. 3: (79) r1 = *(u64 *)(r6 +0)
  1785. 4: (b7) r0 = 0
  1786. 5: (95) exit
  1787. #171/p unpriv: spill/fill of ctx 2 FAIL
  1788. Failed to load prog 'Invalid argument'!
  1789. 0: (bf) r6 = r10
  1790. 1: (07) r6 += -8
  1791. 2: (7b) *(u64 *)(r6 +0) = r1
  1792. 3: (79) r1 = *(u64 *)(r6 +0)
  1793. 4: (85) call 34
  1794. invalid func 34
  1795. #172/p unpriv: spill/fill of ctx 3 FAIL
  1796. Unexpected error message!
  1797. EXP: R1 type=fp expected=ctx
  1798. RES: 0: (bf) r6 = r10
  1799. 1: (07) r6 += -8
  1800. 2: (7b) *(u64 *)(r6 +0) = r1
  1801. 3: (7b) *(u64 *)(r6 +0) = r10
  1802. 4: (79) r1 = *(u64 *)(r6 +0)
  1803. 5: (85) call 34
  1804. invalid func 34
  1805.  
  1806. 0: (bf) r6 = r10
  1807. 1: (07) r6 += -8
  1808. 2: (7b) *(u64 *)(r6 +0) = r1
  1809. 3: (7b) *(u64 *)(r6 +0) = r10
  1810. 4: (79) r1 = *(u64 *)(r6 +0)
  1811. 5: (85) call 34
  1812. invalid func 34
  1813. #173/p unpriv: spill/fill of ctx 4 FAIL
  1814. Unexpected error message!
  1815. EXP: R1 type=inv expected=ctx
  1816. RES: 0: (bf) r6 = r10
  1817. 1: (07) r6 += -8
  1818. 2: (7b) *(u64 *)(r6 +0) = r1
  1819. 3: (b7) r0 = 1
  1820. 4: (db) lock *(u64 *)(r10 -8) += r0
  1821. 5: (79) r1 = *(u64 *)(r6 +0)
  1822. 6: (85) call 34
  1823. invalid func 34
  1824.  
  1825. 0: (bf) r6 = r10
  1826. 1: (07) r6 += -8
  1827. 2: (7b) *(u64 *)(r6 +0) = r1
  1828. 3: (b7) r0 = 1
  1829. 4: (db) lock *(u64 *)(r10 -8) += r0
  1830. 5: (79) r1 = *(u64 *)(r6 +0)
  1831. 6: (85) call 34
  1832. invalid func 34
  1833. #174/p unpriv: spill/fill of different pointers stx FAIL
  1834. Unexpected error message!
  1835. EXP: same insn cannot be used with different pointers
  1836. RES: 0: (b7) r3 = 42
  1837. 1: (bf) r6 = r10
  1838. 2: (07) r6 += -8
  1839. 3: (15) if r1 == 0x0 goto pc+3
  1840. R1=ctx R3=imm42 R6=fp-8 R10=fp
  1841. 4: (bf) r2 = r10
  1842. 5: (07) r2 += -16
  1843. 6: (7b) *(u64 *)(r6 +0) = r2
  1844. 7: (55) if r1 != 0x0 goto pc+1
  1845. R1=imm0 R2=fp-16 R3=imm42 R6=fp-8 R10=fp fp-8=fp
  1846. 8: (7b) *(u64 *)(r6 +0) = r1
  1847. 9: (79) r1 = *(u64 *)(r6 +0)
  1848. 10: (63) *(u32 *)(r1 +8) = r3
  1849. R1 invalid mem access 'inv'
  1850.  
  1851. 0: (b7) r3 = 42
  1852. 1: (bf) r6 = r10
  1853. 2: (07) r6 += -8
  1854. 3: (15) if r1 == 0x0 goto pc+3
  1855. R1=ctx R3=imm42 R6=fp-8 R10=fp
  1856. 4: (bf) r2 = r10
  1857. 5: (07) r2 += -16
  1858. 6: (7b) *(u64 *)(r6 +0) = r2
  1859. 7: (55) if r1 != 0x0 goto pc+1
  1860. R1=imm0 R2=fp-16 R3=imm42 R6=fp-8 R10=fp fp-8=fp
  1861. 8: (7b) *(u64 *)(r6 +0) = r1
  1862. 9: (79) r1 = *(u64 *)(r6 +0)
  1863. 10: (63) *(u32 *)(r1 +8) = r3
  1864. R1 invalid mem access 'inv'
  1865. #175/p unpriv: spill/fill of different pointers ldx FAIL
  1866. Unexpected error message!
  1867. EXP: same insn cannot be used with different pointers
  1868. RES:
  1869. #176/u unpriv: write pointer into map elem value Failed to create hash map 'Invalid argument'!
  1870. FAIL
  1871. Unexpected error message!
  1872. EXP: R0 leaks addr
  1873. RES: fd -1 is not pointing to valid bpf_map
  1874.  
  1875. fd -1 is not pointing to valid bpf_map
  1876. #176/p unpriv: write pointer into map elem value Failed to create hash map 'Invalid argument'!
  1877. FAIL
  1878. Failed to load prog 'Bad file descriptor'!
  1879. fd -1 is not pointing to valid bpf_map
  1880. #177/u unpriv: partial copy of pointer OK
  1881. #177/p unpriv: partial copy of pointer Unexpected bpf_prog_test_run error
  1882. 0: (bc) (u32) r1 = (u32) r10
  1883. 1: (b7) r0 = 0
  1884. 2: (95) exit
  1885. #178/u unpriv: pass pointer to tail_call OK
  1886. #178/p unpriv: pass pointer to tail_call Unexpected bpf_prog_test_run error
  1887. 0: (bf) r3 = r1
  1888. 1: (18) r2 = 0xffffffc0702b0400
  1889. 3: (85) call 12
  1890. 4: (b7) r0 = 0
  1891. 5: (95) exit
  1892. #179/u unpriv: cmp map pointer with zero Failed to create hash map 'Invalid argument'!
  1893. FAIL
  1894. Unexpected error message!
  1895. EXP: R1 pointer comparison
  1896. RES: fd -1 is not pointing to valid bpf_map
  1897.  
  1898. fd -1 is not pointing to valid bpf_map
  1899. #179/p unpriv: cmp map pointer with zero Failed to create hash map 'Invalid argument'!
  1900. FAIL
  1901. Failed to load prog 'Bad file descriptor'!
  1902. fd -1 is not pointing to valid bpf_map
  1903. #180/u unpriv: write into frame pointer OK
  1904. #180/p unpriv: write into frame pointer OK
  1905. #181/u unpriv: spill/fill frame pointer OK
  1906. #181/p unpriv: spill/fill frame pointer OK
  1907. #182/u unpriv: cmp of frame pointer OK
  1908. #182/p unpriv: cmp of frame pointer Unexpected bpf_prog_test_run error
  1909. 0: (15) if r10 == 0x0 goto pc+0
  1910. R1=ctx R10=fp
  1911. 1: (b7) r0 = 0
  1912. 2: (95) exit
  1913.  
  1914. from 0 to 1: R1=ctx R10=imm0
  1915. 1: (b7) r0 = 0
  1916. 2: (95) exit
  1917. #183/u unpriv: adding of fp FAIL
  1918. Failed to load prog 'Permission denied'!
  1919. 0: (b7) r0 = 0
  1920. 1: (b7) r1 = 0
  1921. 2: (0f) r1 += r10
  1922. R10 pointer arithmetic prohibited
  1923. #183/p unpriv: adding of fp FAIL
  1924. Failed to load prog 'Permission denied'!
  1925. 0: (b7) r0 = 0
  1926. 1: (b7) r1 = 0
  1927. 2: (0f) r1 += r10
  1928. 3: (7b) *(u64 *)(r1 -8) = r0
  1929. R1 invalid mem access 'inv'
  1930. #184/u unpriv: cmp of stack pointer OK
  1931. #184/p unpriv: cmp of stack pointer Unexpected bpf_prog_test_run error
  1932. 0: (bf) r2 = r10
  1933. 1: (07) r2 += -8
  1934. 2: (15) if r2 == 0x0 goto pc+0
  1935. R1=ctx R2=fp-8 R10=fp
  1936. 3: (b7) r0 = 0
  1937. 4: (95) exit
  1938.  
  1939. from 2 to 3: R1=ctx R2=imm0 R10=fp
  1940. 3: (b7) r0 = 0
  1941. 4: (95) exit
  1942. #185/u runtime/jit: tail_call within bounds, prog once Unexpected bpf_prog_test_run error
  1943. 0: (b7) r3 = 0
  1944. 1: (18) r2 = 0x0
  1945. 3: (85) call 12
  1946. 4: (b7) r0 = 1
  1947. 5: (95) exit
  1948. #185/p runtime/jit: tail_call within bounds, prog once Unexpected bpf_prog_test_run error
  1949. 0: (b7) r3 = 0
  1950. 1: (18) r2 = 0xffffffc0702b3600
  1951. 3: (85) call 12
  1952. 4: (b7) r0 = 1
  1953. 5: (95) exit
  1954. #186/u runtime/jit: tail_call within bounds, prog loop Unexpected bpf_prog_test_run error
  1955. 0: (b7) r3 = 1
  1956. 1: (18) r2 = 0x0
  1957. 3: (85) call 12
  1958. 4: (b7) r0 = 1
  1959. 5: (95) exit
  1960. #186/p runtime/jit: tail_call within bounds, prog loop Unexpected bpf_prog_test_run error
  1961. 0: (b7) r3 = 1
  1962. 1: (18) r2 = 0xffffffc0702b1800
  1963. 3: (85) call 12
  1964. 4: (b7) r0 = 1
  1965. 5: (95) exit
  1966. #187/u runtime/jit: tail_call within bounds, no prog Unexpected bpf_prog_test_run error
  1967. 0: (b7) r3 = 2
  1968. 1: (18) r2 = 0x0
  1969. 3: (85) call 12
  1970. 4: (b7) r0 = 1
  1971. 5: (95) exit
  1972. #187/p runtime/jit: tail_call within bounds, no prog Unexpected bpf_prog_test_run error
  1973. 0: (b7) r3 = 2
  1974. 1: (18) r2 = 0xffffffc0702b0000
  1975. 3: (85) call 12
  1976. 4: (b7) r0 = 1
  1977. 5: (95) exit
  1978. #188/u runtime/jit: tail_call out of bounds Unexpected bpf_prog_test_run error
  1979. 0: (b7) r3 = 256
  1980. 1: (18) r2 = 0x0
  1981. 3: (85) call 12
  1982. 4: (b7) r0 = 2
  1983. 5: (95) exit
  1984. #188/p runtime/jit: tail_call out of bounds Unexpected bpf_prog_test_run error
  1985. 0: (b7) r3 = 256
  1986. 1: (18) r2 = 0xffffffc0702b1400
  1987. 3: (85) call 12
  1988. 4: (b7) r0 = 2
  1989. 5: (95) exit
  1990. #189/u runtime/jit: pass negative index to tail_call Unexpected bpf_prog_test_run error
  1991. 0: (b7) r3 = -1
  1992. 1: (18) r2 = 0x0
  1993. 3: (85) call 12
  1994. 4: (b7) r0 = 2
  1995. 5: (95) exit
  1996. #189/p runtime/jit: pass negative index to tail_call Unexpected bpf_prog_test_run error
  1997. 0: (b7) r3 = -1
  1998. 1: (18) r2 = 0xffffffc0702b0c00
  1999. 3: (85) call 12
  2000. 4: (b7) r0 = 2
  2001. 5: (95) exit
  2002. #190/u runtime/jit: pass > 32bit index to tail_call Unexpected bpf_prog_test_run error
  2003. 0: (18) r3 = 0x100000000
  2004. 2: (18) r2 = 0x0
  2005. 4: (85) call 12
  2006. 5: (b7) r0 = 2
  2007. 6: (95) exit
  2008. #190/p runtime/jit: pass > 32bit index to tail_call Unexpected bpf_prog_test_run error
  2009. 0: (18) r3 = 0x100000000
  2010. 2: (18) r2 = 0xffffffc0702b0e00
  2011. 4: (85) call 12
  2012. 5: (b7) r0 = 2
  2013. 6: (95) exit
  2014. #191/u stack pointer arithmetic FAIL
  2015. Failed to load prog 'Permission denied'!
  2016. 0: (b7) r1 = 4
  2017. 1: (05) goto pc+0
  2018. 2: (bf) r7 = r10
  2019. 3: (07) r7 += -10
  2020. 4: (07) r7 += -10
  2021. R7 pointer arithmetic prohibited
  2022. #191/p stack pointer arithmetic FAIL
  2023. Failed to load prog 'Permission denied'!
  2024. 0: (b7) r1 = 4
  2025. 1: (05) goto pc+0
  2026. 2: (bf) r7 = r10
  2027. 3: (07) r7 += -10
  2028. 4: (07) r7 += -10
  2029. 5: (bf) r2 = r7
  2030. 6: (0f) r2 += r1
  2031. 7: (62) *(u32 *)(r2 +4) = 0
  2032. R2 invalid mem access 'inv'
  2033. #192/p raw_stack: no skb_load_bytes OK
  2034. #193/p raw_stack: skb_load_bytes, negative len FAIL
  2035. Unexpected error message!
  2036. EXP: R4 min value is negative
  2037. RES: 0: (b7) r2 = 4
  2038. 1: (bf) r6 = r10
  2039. 2: (07) r6 += -8
  2040. 3: (bf) r3 = r6
  2041. 4: (b7) r4 = -8
  2042. 5: (85) call 26
  2043. invalid func 26
  2044.  
  2045. 0: (b7) r2 = 4
  2046. 1: (bf) r6 = r10
  2047. 2: (07) r6 += -8
  2048. 3: (bf) r3 = r6
  2049. 4: (b7) r4 = -8
  2050. 5: (85) call 26
  2051. invalid func 26
  2052. #194/p raw_stack: skb_load_bytes, negative len 2 FAIL
  2053. Unexpected error message!
  2054. EXP: R4 min value is negative
  2055. RES: 0: (b7) r2 = 4
  2056. 1: (bf) r6 = r10
  2057. 2: (07) r6 += -8
  2058. 3: (bf) r3 = r6
  2059. 4: (b7) r4 = -1
  2060. 5: (85) call 26
  2061. invalid func 26
  2062.  
  2063. 0: (b7) r2 = 4
  2064. 1: (bf) r6 = r10
  2065. 2: (07) r6 += -8
  2066. 3: (bf) r3 = r6
  2067. 4: (b7) r4 = -1
  2068. 5: (85) call 26
  2069. invalid func 26
  2070. #195/p raw_stack: skb_load_bytes, zero len FAIL
  2071. Unexpected error message!
  2072. EXP: invalid stack type R3
  2073. RES: 0: (b7) r2 = 4
  2074. 1: (bf) r6 = r10
  2075. 2: (07) r6 += -8
  2076. 3: (bf) r3 = r6
  2077. 4: (b7) r4 = 0
  2078. 5: (85) call 26
  2079. invalid func 26
  2080.  
  2081. 0: (b7) r2 = 4
  2082. 1: (bf) r6 = r10
  2083. 2: (07) r6 += -8
  2084. 3: (bf) r3 = r6
  2085. 4: (b7) r4 = 0
  2086. 5: (85) call 26
  2087. invalid func 26
  2088. #196/p raw_stack: skb_load_bytes, no init FAIL
  2089. Failed to load prog 'Invalid argument'!
  2090. 0: (b7) r2 = 4
  2091. 1: (bf) r6 = r10
  2092. 2: (07) r6 += -8
  2093. 3: (bf) r3 = r6
  2094. 4: (b7) r4 = 8
  2095. 5: (85) call 26
  2096. invalid func 26
  2097. #197/p raw_stack: skb_load_bytes, init FAIL
  2098. Failed to load prog 'Invalid argument'!
  2099. 0: (b7) r2 = 4
  2100. 1: (bf) r6 = r10
  2101. 2: (07) r6 += -8
  2102. 3: (7a) *(u64 *)(r6 +0) = 51966
  2103. 4: (bf) r3 = r6
  2104. 5: (b7) r4 = 8
  2105. 6: (85) call 26
  2106. invalid func 26
  2107. #198/p raw_stack: skb_load_bytes, spilled regs around bounds FAIL
  2108. Failed to load prog 'Invalid argument'!
  2109. 0: (b7) r2 = 4
  2110. 1: (bf) r6 = r10
  2111. 2: (07) r6 += -16
  2112. 3: (7b) *(u64 *)(r6 -8) = r1
  2113. 4: (7b) *(u64 *)(r6 +8) = r1
  2114. 5: (bf) r3 = r6
  2115. 6: (b7) r4 = 8
  2116. 7: (85) call 26
  2117. invalid func 26
  2118. #199/p raw_stack: skb_load_bytes, spilled regs corruption FAIL
  2119. Unexpected error message!
  2120. EXP: R0 invalid mem access 'inv'
  2121. RES: 0: (b7) r2 = 4
  2122. 1: (bf) r6 = r10
  2123. 2: (07) r6 += -8
  2124. 3: (7b) *(u64 *)(r6 +0) = r1
  2125. 4: (bf) r3 = r6
  2126. 5: (b7) r4 = 8
  2127. 6: (85) call 26
  2128. invalid func 26
  2129.  
  2130. 0: (b7) r2 = 4
  2131. 1: (bf) r6 = r10
  2132. 2: (07) r6 += -8
  2133. 3: (7b) *(u64 *)(r6 +0) = r1
  2134. 4: (bf) r3 = r6
  2135. 5: (b7) r4 = 8
  2136. 6: (85) call 26
  2137. invalid func 26
  2138. #200/p raw_stack: skb_load_bytes, spilled regs corruption 2 FAIL
  2139. Unexpected error message!
  2140. EXP: R3 invalid mem access 'inv'
  2141. RES: 0: (b7) r2 = 4
  2142. 1: (bf) r6 = r10
  2143. 2: (07) r6 += -16
  2144. 3: (7b) *(u64 *)(r6 -8) = r1
  2145. 4: (7b) *(u64 *)(r6 +0) = r1
  2146. 5: (7b) *(u64 *)(r6 +8) = r1
  2147. 6: (bf) r3 = r6
  2148. 7: (b7) r4 = 8
  2149. 8: (85) call 26
  2150. invalid func 26
  2151.  
  2152. 0: (b7) r2 = 4
  2153. 1: (bf) r6 = r10
  2154. 2: (07) r6 += -16
  2155. 3: (7b) *(u64 *)(r6 -8) = r1
  2156. 4: (7b) *(u64 *)(r6 +0) = r1
  2157. 5: (7b) *(u64 *)(r6 +8) = r1
  2158. 6: (bf) r3 = r6
  2159. 7: (b7) r4 = 8
  2160. 8: (85) call 26
  2161. invalid func 26
  2162. #201/p raw_stack: skb_load_bytes, spilled regs + data FAIL
  2163. Failed to load prog 'Invalid argument'!
  2164. 0: (b7) r2 = 4
  2165. 1: (bf) r6 = r10
  2166. 2: (07) r6 += -16
  2167. 3: (7b) *(u64 *)(r6 -8) = r1
  2168. 4: (7b) *(u64 *)(r6 +0) = r1
  2169. 5: (7b) *(u64 *)(r6 +8) = r1
  2170. 6: (bf) r3 = r6
  2171. 7: (b7) r4 = 8
  2172. 8: (85) call 26
  2173. invalid func 26
  2174. #202/p raw_stack: skb_load_bytes, invalid access 1 FAIL
  2175. Unexpected error message!
  2176. EXP: invalid stack type R3 off=-513 access_size=8
  2177. RES: 0: (b7) r2 = 4
  2178. 1: (bf) r6 = r10
  2179. 2: (07) r6 += -513
  2180. 3: (bf) r3 = r6
  2181. 4: (b7) r4 = 8
  2182. 5: (85) call 26
  2183. invalid func 26
  2184.  
  2185. 0: (b7) r2 = 4
  2186. 1: (bf) r6 = r10
  2187. 2: (07) r6 += -513
  2188. 3: (bf) r3 = r6
  2189. 4: (b7) r4 = 8
  2190. 5: (85) call 26
  2191. invalid func 26
  2192. #203/p raw_stack: skb_load_bytes, invalid access 2 FAIL
  2193. Unexpected error message!
  2194. EXP: invalid stack type R3 off=-1 access_size=8
  2195. RES: 0: (b7) r2 = 4
  2196. 1: (bf) r6 = r10
  2197. 2: (07) r6 += -1
  2198. 3: (bf) r3 = r6
  2199. 4: (b7) r4 = 8
  2200. 5: (85) call 26
  2201. invalid func 26
  2202.  
  2203. 0: (b7) r2 = 4
  2204. 1: (bf) r6 = r10
  2205. 2: (07) r6 += -1
  2206. 3: (bf) r3 = r6
  2207. 4: (b7) r4 = 8
  2208. 5: (85) call 26
  2209. invalid func 26
  2210. #204/p raw_stack: skb_load_bytes, invalid access 3 FAIL
  2211. Unexpected error message!
  2212. EXP: R4 min value is negative
  2213. RES: 0: (b7) r2 = 4
  2214. 1: (bf) r6 = r10
  2215. 2: (07) r6 += -1
  2216. 3: (bf) r3 = r6
  2217. 4: (b7) r4 = -1
  2218. 5: (85) call 26
  2219. invalid func 26
  2220.  
  2221. 0: (b7) r2 = 4
  2222. 1: (bf) r6 = r10
  2223. 2: (07) r6 += -1
  2224. 3: (bf) r3 = r6
  2225. 4: (b7) r4 = -1
  2226. 5: (85) call 26
  2227. invalid func 26
  2228. #205/p raw_stack: skb_load_bytes, invalid access 4 FAIL
  2229. Unexpected error message!
  2230. EXP: R4 unbounded memory access, use 'var &= const' or 'if (var < const)'
  2231. RES: 0: (b7) r2 = 4
  2232. 1: (bf) r6 = r10
  2233. 2: (07) r6 += -1
  2234. 3: (bf) r3 = r6
  2235. 4: (b7) r4 = 2147483647
  2236. 5: (85) call 26
  2237. invalid func 26
  2238.  
  2239. 0: (b7) r2 = 4
  2240. 1: (bf) r6 = r10
  2241. 2: (07) r6 += -1
  2242. 3: (bf) r3 = r6
  2243. 4: (b7) r4 = 2147483647
  2244. 5: (85) call 26
  2245. invalid func 26
  2246. #206/p raw_stack: skb_load_bytes, invalid access 5 FAIL
  2247. Unexpected error message!
  2248. EXP: R4 unbounded memory access, use 'var &= const' or 'if (var < const)'
  2249. RES: 0: (b7) r2 = 4
  2250. 1: (bf) r6 = r10
  2251. 2: (07) r6 += -512
  2252. 3: (bf) r3 = r6
  2253. 4: (b7) r4 = 2147483647
  2254. 5: (85) call 26
  2255. invalid func 26
  2256.  
  2257. 0: (b7) r2 = 4
  2258. 1: (bf) r6 = r10
  2259. 2: (07) r6 += -512
  2260. 3: (bf) r3 = r6
  2261. 4: (b7) r4 = 2147483647
  2262. 5: (85) call 26
  2263. invalid func 26
  2264. #207/p raw_stack: skb_load_bytes, invalid access 6 FAIL
  2265. Unexpected error message!
  2266. EXP: invalid stack type R3 off=-512 access_size=0
  2267. RES: 0: (b7) r2 = 4
  2268. 1: (bf) r6 = r10
  2269. 2: (07) r6 += -512
  2270. 3: (bf) r3 = r6
  2271. 4: (b7) r4 = 0
  2272. 5: (85) call 26
  2273. invalid func 26
  2274.  
  2275. 0: (b7) r2 = 4
  2276. 1: (bf) r6 = r10
  2277. 2: (07) r6 += -512
  2278. 3: (bf) r3 = r6
  2279. 4: (b7) r4 = 0
  2280. 5: (85) call 26
  2281. invalid func 26
  2282. #208/p raw_stack: skb_load_bytes, large access FAIL
  2283. Failed to load prog 'Invalid argument'!
  2284. 0: (b7) r2 = 4
  2285. 1: (bf) r6 = r10
  2286. 2: (07) r6 += -512
  2287. 3: (bf) r3 = r6
  2288. 4: (b7) r4 = 512
  2289. 5: (85) call 26
  2290. invalid func 26
  2291. #209/p context stores via ST OK
  2292. #210/p context stores via XADD OK
  2293. #211/p direct packet access: test1 FAIL
  2294. Failed to load prog 'Permission denied'!
  2295. 0: (61) r2 = *(u32 *)(r1 +76)
  2296. invalid bpf_context access off=76 size=4
  2297. #212/p direct packet access: test2 FAIL
  2298. Failed to load prog 'Permission denied'!
  2299. 0: (b7) r0 = 1
  2300. 1: (61) r4 = *(u32 *)(r1 +80)
  2301. invalid bpf_context access off=80 size=4
  2302. #213/p direct packet access: test3 OK
  2303. #214/p direct packet access: test4 (write) FAIL
  2304. Failed to load prog 'Permission denied'!
  2305. 0: (61) r2 = *(u32 *)(r1 +76)
  2306. invalid bpf_context access off=76 size=4
  2307. #215/p direct packet access: test5 (pkt_end >= reg, good access) FAIL
  2308. Failed to load prog 'Permission denied'!
  2309. 0: (61) r2 = *(u32 *)(r1 +76)
  2310. invalid bpf_context access off=76 size=4
  2311. #216/p direct packet access: test6 (pkt_end >= reg, bad access) FAIL
  2312. Unexpected error message!
  2313. EXP: invalid access to packet
  2314. RES: 0: (61) r2 = *(u32 *)(r1 +76)
  2315. invalid bpf_context access off=76 size=4
  2316.  
  2317. 0: (61) r2 = *(u32 *)(r1 +76)
  2318. invalid bpf_context access off=76 size=4
  2319. #217/p direct packet access: test7 (pkt_end >= reg, both accesses) FAIL
  2320. Unexpected error message!
  2321. EXP: invalid access to packet
  2322. RES: 0: (61) r2 = *(u32 *)(r1 +76)
  2323. invalid bpf_context access off=76 size=4
  2324.  
  2325. 0: (61) r2 = *(u32 *)(r1 +76)
  2326. invalid bpf_context access off=76 size=4
  2327. #218/p direct packet access: test8 (double test, variant 1) FAIL
  2328. Failed to load prog 'Permission denied'!
  2329. 0: (61) r2 = *(u32 *)(r1 +76)
  2330. invalid bpf_context access off=76 size=4
  2331. #219/p direct packet access: test9 (double test, variant 2) FAIL
  2332. Failed to load prog 'Permission denied'!
  2333. 0: (61) r2 = *(u32 *)(r1 +76)
  2334. invalid bpf_context access off=76 size=4
  2335. #220/p direct packet access: test10 (write invalid) FAIL
  2336. Unexpected error message!
  2337. EXP: invalid access to packet
  2338. RES: 0: (61) r2 = *(u32 *)(r1 +76)
  2339. invalid bpf_context access off=76 size=4
  2340.  
  2341. 0: (61) r2 = *(u32 *)(r1 +76)
  2342. invalid bpf_context access off=76 size=4
  2343. #221/p direct packet access: test11 (shift, good access) FAIL
  2344. Failed to load prog 'Permission denied'!
  2345. 0: (61) r2 = *(u32 *)(r1 +76)
  2346. invalid bpf_context access off=76 size=4
  2347. #222/p direct packet access: test12 (and, good access) FAIL
  2348. Failed to load prog 'Permission denied'!
  2349. 0: (61) r2 = *(u32 *)(r1 +76)
  2350. invalid bpf_context access off=76 size=4
  2351. #223/p direct packet access: test13 (branches, good access) FAIL
  2352. Failed to load prog 'Permission denied'!
  2353. 0: (61) r2 = *(u32 *)(r1 +76)
  2354. invalid bpf_context access off=76 size=4
  2355. #224/p direct packet access: test14 (pkt_ptr += 0, CONST_IMM, good access) FAIL
  2356. Failed to load prog 'Permission denied'!
  2357. 0: (61) r2 = *(u32 *)(r1 +76)
  2358. invalid bpf_context access off=76 size=4
  2359. #225/p direct packet access: test15 (spill with xadd) FAIL
  2360. Unexpected error message!
  2361. EXP: R2 invalid mem access 'inv'
  2362. RES: 0: (61) r2 = *(u32 *)(r1 +76)
  2363. invalid bpf_context access off=76 size=4
  2364.  
  2365. 0: (61) r2 = *(u32 *)(r1 +76)
  2366. invalid bpf_context access off=76 size=4
  2367. #226/p direct packet access: test16 (arith on data_end) FAIL
  2368. Unexpected error message!
  2369. EXP: R3 pointer arithmetic on PTR_TO_PACKET_END
  2370. RES: 0: (61) r2 = *(u32 *)(r1 +76)
  2371. invalid bpf_context access off=76 size=4
  2372.  
  2373. 0: (61) r2 = *(u32 *)(r1 +76)
  2374. invalid bpf_context access off=76 size=4
  2375. #227/p direct packet access: test17 (pruning, alignment) FAIL
  2376. Unexpected error message!
  2377. EXP: misaligned packet access off 2+(0x0; 0x0)+15+-4 size 4
  2378. RES:
  2379. #228/p direct packet access: test18 (imm += pkt_ptr, 1) FAIL
  2380. Failed to load prog 'Permission denied'!
  2381. 0: (61) r2 = *(u32 *)(r1 +76)
  2382. invalid bpf_context access off=76 size=4
  2383. #229/p direct packet access: test19 (imm += pkt_ptr, 2) FAIL
  2384. Failed to load prog 'Permission denied'!
  2385. 0: (61) r2 = *(u32 *)(r1 +76)
  2386. invalid bpf_context access off=76 size=4
  2387. #230/p direct packet access: test20 (x += pkt_ptr, 1) FAIL
  2388. Failed to load prog 'Permission denied'!
  2389. 0: (61) r2 = *(u32 *)(r1 +76)
  2390. invalid bpf_context access off=76 size=4
  2391. #231/p direct packet access: test21 (x += pkt_ptr, 2) FAIL
  2392. Failed to load prog 'Permission denied'!
  2393. 0: (61) r2 = *(u32 *)(r1 +76)
  2394. invalid bpf_context access off=76 size=4
  2395. #232/p direct packet access: test22 (x += pkt_ptr, 3) FAIL
  2396. Failed to load prog 'Permission denied'!
  2397. 0: (61) r2 = *(u32 *)(r1 +76)
  2398. invalid bpf_context access off=76 size=4
  2399. #233/p direct packet access: test23 (x += pkt_ptr, 4) FAIL
  2400. Unexpected error message!
  2401. EXP: invalid access to packet, off=0 size=8, R5(id=1,off=0,r=0)
  2402. RES: 0: (61) r2 = *(u32 *)(r1 +76)
  2403. invalid bpf_context access off=76 size=4
  2404.  
  2405. 0: (61) r2 = *(u32 *)(r1 +76)
  2406. invalid bpf_context access off=76 size=4
  2407. #234/p direct packet access: test24 (x += pkt_ptr, 5) FAIL
  2408. Failed to load prog 'Permission denied'!
  2409. 0: (61) r2 = *(u32 *)(r1 +76)
  2410. invalid bpf_context access off=76 size=4
  2411. #235/p direct packet access: test25 (marking on <, good access) FAIL
  2412. Failed to load prog 'Permission denied'!
  2413. 0: (61) r2 = *(u32 *)(r1 +76)
  2414. invalid bpf_context access off=76 size=4
  2415. #236/p direct packet access: test26 (marking on <, bad access) FAIL
  2416. Unexpected error message!
  2417. EXP: invalid access to packet
  2418. RES: 0: (61) r2 = *(u32 *)(r1 +76)
  2419. invalid bpf_context access off=76 size=4
  2420.  
  2421. 0: (61) r2 = *(u32 *)(r1 +76)
  2422. invalid bpf_context access off=76 size=4
  2423. #237/p direct packet access: test27 (marking on <=, good access) FAIL
  2424. Failed to load prog 'Permission denied'!
  2425. 0: (61) r2 = *(u32 *)(r1 +76)
  2426. invalid bpf_context access off=76 size=4
  2427. #238/p direct packet access: test28 (marking on <=, bad access) FAIL
  2428. Unexpected error message!
  2429. EXP: invalid access to packet
  2430. RES: 0: (61) r2 = *(u32 *)(r1 +76)
  2431. invalid bpf_context access off=76 size=4
  2432.  
  2433. 0: (61) r2 = *(u32 *)(r1 +76)
  2434. invalid bpf_context access off=76 size=4
  2435. #239/p helper access to packet: test1, valid packet_ptr range Failed to create hash map 'Invalid argument'!
  2436. FAIL
  2437. Failed to load prog 'Invalid argument'!
  2438. #240/p helper access to packet: test2, unchecked packet_ptr Failed to create hash map 'Invalid argument'!
  2439. FAIL
  2440. Unexpected error message!
  2441. EXP: invalid access to packet
  2442. RES:
  2443. #241/p helper access to packet: test3, variable add Failed to create hash map 'Invalid argument'!
  2444. FAIL
  2445. Failed to load prog 'Invalid argument'!
  2446. #242/p helper access to packet: test4, packet_ptr with bad range Failed to create hash map 'Invalid argument'!
  2447. FAIL
  2448. Unexpected error message!
  2449. EXP: invalid access to packet
  2450. RES:
  2451. #243/p helper access to packet: test5, packet_ptr with too short range Failed to create hash map 'Invalid argument'!
  2452. FAIL
  2453. Unexpected error message!
  2454. EXP: invalid access to packet
  2455. RES:
  2456. #244/p helper access to packet: test6, cls valid packet_ptr range Failed to create hash map 'Invalid argument'!
  2457. FAIL
  2458. Failed to load prog 'Bad file descriptor'!
  2459. fd -1 is not pointing to valid bpf_map
  2460. #245/p helper access to packet: test7, cls unchecked packet_ptr Failed to create hash map 'Invalid argument'!
  2461. FAIL
  2462. Unexpected error message!
  2463. EXP: invalid access to packet
  2464. RES: fd -1 is not pointing to valid bpf_map
  2465.  
  2466. fd -1 is not pointing to valid bpf_map
  2467. #246/p helper access to packet: test8, cls variable add Failed to create hash map 'Invalid argument'!
  2468. FAIL
  2469. Failed to load prog 'Bad file descriptor'!
  2470. fd -1 is not pointing to valid bpf_map
  2471. #247/p helper access to packet: test9, cls packet_ptr with bad range Failed to create hash map 'Invalid argument'!
  2472. FAIL
  2473. Unexpected error message!
  2474. EXP: invalid access to packet
  2475. RES: fd -1 is not pointing to valid bpf_map
  2476.  
  2477. fd -1 is not pointing to valid bpf_map
  2478. #248/p helper access to packet: test10, cls packet_ptr with too short range Failed to create hash map 'Invalid argument'!
  2479. FAIL
  2480. Unexpected error message!
  2481. EXP: invalid access to packet
  2482. RES: fd -1 is not pointing to valid bpf_map
  2483.  
  2484. fd -1 is not pointing to valid bpf_map
  2485. #249/p helper access to packet: test11, cls unsuitable helper 1 FAIL
  2486. Unexpected error message!
  2487. EXP: helper access to the packet
  2488. RES: 0: (61) r6 = *(u32 *)(r1 +76)
  2489. invalid bpf_context access off=76 size=4
  2490.  
  2491. 0: (61) r6 = *(u32 *)(r1 +76)
  2492. invalid bpf_context access off=76 size=4
  2493. #250/p helper access to packet: test12, cls unsuitable helper 2 FAIL
  2494. Unexpected error message!
  2495. EXP: helper access to the packet
  2496. RES: 0: (61) r6 = *(u32 *)(r1 +76)
  2497. invalid bpf_context access off=76 size=4
  2498.  
  2499. 0: (61) r6 = *(u32 *)(r1 +76)
  2500. invalid bpf_context access off=76 size=4
  2501. #251/p helper access to packet: test13, cls helper ok FAIL
  2502. Failed to load prog 'Permission denied'!
  2503. 0: (61) r6 = *(u32 *)(r1 +76)
  2504. invalid bpf_context access off=76 size=4
  2505. #252/p helper access to packet: test14, cls helper ok sub FAIL
  2506. Failed to load prog 'Permission denied'!
  2507. 0: (61) r6 = *(u32 *)(r1 +76)
  2508. invalid bpf_context access off=76 size=4
  2509. #253/p helper access to packet: test15, cls helper fail sub FAIL
  2510. Unexpected error message!
  2511. EXP: invalid access to packet
  2512. RES: 0: (61) r6 = *(u32 *)(r1 +76)
  2513. invalid bpf_context access off=76 size=4
  2514.  
  2515. 0: (61) r6 = *(u32 *)(r1 +76)
  2516. invalid bpf_context access off=76 size=4
  2517. #254/p helper access to packet: test16, cls helper fail range 1 FAIL
  2518. Unexpected error message!
  2519. EXP: invalid access to packet
  2520. RES: 0: (61) r6 = *(u32 *)(r1 +76)
  2521. invalid bpf_context access off=76 size=4
  2522.  
  2523. 0: (61) r6 = *(u32 *)(r1 +76)
  2524. invalid bpf_context access off=76 size=4
  2525. #255/p helper access to packet: test17, cls helper fail range 2 FAIL
  2526. Unexpected error message!
  2527. EXP: R2 min value is negative
  2528. RES: 0: (61) r6 = *(u32 *)(r1 +76)
  2529. invalid bpf_context access off=76 size=4
  2530.  
  2531. 0: (61) r6 = *(u32 *)(r1 +76)
  2532. invalid bpf_context access off=76 size=4
  2533. #256/p helper access to packet: test18, cls helper fail range 3 FAIL
  2534. Unexpected error message!
  2535. EXP: R2 min value is negative
  2536. RES: 0: (61) r6 = *(u32 *)(r1 +76)
  2537. invalid bpf_context access off=76 size=4
  2538.  
  2539. 0: (61) r6 = *(u32 *)(r1 +76)
  2540. invalid bpf_context access off=76 size=4
  2541. #257/p helper access to packet: test19, cls helper range zero FAIL
  2542. Failed to load prog 'Permission denied'!
  2543. 0: (61) r6 = *(u32 *)(r1 +76)
  2544. invalid bpf_context access off=76 size=4
  2545. #258/p helper access to packet: test20, pkt end as input FAIL
  2546. Unexpected error message!
  2547. EXP: R1 type=pkt_end expected=fp
  2548. RES: 0: (61) r6 = *(u32 *)(r1 +76)
  2549. invalid bpf_context access off=76 size=4
  2550.  
  2551. 0: (61) r6 = *(u32 *)(r1 +76)
  2552. invalid bpf_context access off=76 size=4
  2553. #259/p helper access to packet: test21, wrong reg FAIL
  2554. Unexpected error message!
  2555. EXP: invalid access to packet
  2556. RES: 0: (61) r6 = *(u32 *)(r1 +76)
  2557. invalid bpf_context access off=76 size=4
  2558.  
  2559. 0: (61) r6 = *(u32 *)(r1 +76)
  2560. invalid bpf_context access off=76 size=4
  2561. #260/u valid map access into an array with a constant Failed to create hash map 'Invalid argument'!
  2562. FAIL
  2563. Unexpected error message!
  2564. EXP: R0 leaks addr
  2565. RES: fd -1 is not pointing to valid bpf_map
  2566.  
  2567. fd -1 is not pointing to valid bpf_map
  2568. #260/p valid map access into an array with a constant Failed to create hash map 'Invalid argument'!
  2569. FAIL
  2570. Failed to load prog 'Bad file descriptor'!
  2571. fd -1 is not pointing to valid bpf_map
  2572. #261/u valid map access into an array with a register Failed to create hash map 'Invalid argument'!
  2573. FAIL
  2574. Unexpected error message!
  2575. EXP: R0 leaks addr
  2576. RES: fd -1 is not pointing to valid bpf_map
  2577.  
  2578. fd -1 is not pointing to valid bpf_map
  2579. #261/p valid map access into an array with a register Failed to create hash map 'Invalid argument'!
  2580. FAIL
  2581. Failed to load prog 'Bad file descriptor'!
  2582. fd -1 is not pointing to valid bpf_map
  2583. #262/u valid map access into an array with a variable Failed to create hash map 'Invalid argument'!
  2584. FAIL
  2585. Unexpected error message!
  2586. EXP: R0 leaks addr
  2587. RES: fd -1 is not pointing to valid bpf_map
  2588.  
  2589. fd -1 is not pointing to valid bpf_map
  2590. #262/p valid map access into an array with a variable Failed to create hash map 'Invalid argument'!
  2591. FAIL
  2592. Failed to load prog 'Bad file descriptor'!
  2593. fd -1 is not pointing to valid bpf_map
  2594. #263/u valid map access into an array with a signed variable Failed to create hash map 'Invalid argument'!
  2595. FAIL
  2596. Unexpected error message!
  2597. EXP: R0 leaks addr
  2598. RES: fd -1 is not pointing to valid bpf_map
  2599.  
  2600. fd -1 is not pointing to valid bpf_map
  2601. #263/p valid map access into an array with a signed variable Failed to create hash map 'Invalid argument'!
  2602. FAIL
  2603. Failed to load prog 'Bad file descriptor'!
  2604. fd -1 is not pointing to valid bpf_map
  2605. #264/u invalid map access into an array with a constant Failed to create hash map 'Invalid argument'!
  2606. FAIL
  2607. Unexpected error message!
  2608. EXP: invalid access to map value, value_size=48 off=48 size=8
  2609. RES: fd -1 is not pointing to valid bpf_map
  2610.  
  2611. fd -1 is not pointing to valid bpf_map
  2612. #264/p invalid map access into an array with a constant Failed to create hash map 'Invalid argument'!
  2613. FAIL
  2614. Unexpected error message!
  2615. EXP: invalid access to map value, value_size=48 off=48 size=8
  2616. RES: fd -1 is not pointing to valid bpf_map
  2617.  
  2618. fd -1 is not pointing to valid bpf_map
  2619. #265/u invalid map access into an array with a register Failed to create hash map 'Invalid argument'!
  2620. FAIL
  2621. Unexpected error message!
  2622. EXP: R0 min value is outside of the array range
  2623. RES: fd -1 is not pointing to valid bpf_map
  2624.  
  2625. fd -1 is not pointing to valid bpf_map
  2626. #265/p invalid map access into an array with a register Failed to create hash map 'Invalid argument'!
  2627. FAIL
  2628. Unexpected error message!
  2629. EXP: R0 min value is outside of the array range
  2630. RES: fd -1 is not pointing to valid bpf_map
  2631.  
  2632. fd -1 is not pointing to valid bpf_map
  2633. #266/u invalid map access into an array with a variable Failed to create hash map 'Invalid argument'!
  2634. FAIL
  2635. Unexpected error message!
  2636. EXP: R0 unbounded memory access, make sure to bounds check any array access into a map
  2637. RES: fd -1 is not pointing to valid bpf_map
  2638.  
  2639. fd -1 is not pointing to valid bpf_map
  2640. #266/p invalid map access into an array with a variable Failed to create hash map 'Invalid argument'!
  2641. FAIL
  2642. Unexpected error message!
  2643. EXP: R0 unbounded memory access, make sure to bounds check any array access into a map
  2644. RES: fd -1 is not pointing to valid bpf_map
  2645.  
  2646. fd -1 is not pointing to valid bpf_map
  2647. #267/u invalid map access into an array with no floor check Failed to create hash map 'Invalid argument'!
  2648. FAIL
  2649. Unexpected error message!
  2650. EXP: R0 leaks addr
  2651. RES: fd -1 is not pointing to valid bpf_map
  2652.  
  2653. fd -1 is not pointing to valid bpf_map
  2654. #267/p invalid map access into an array with no floor check Failed to create hash map 'Invalid argument'!
  2655. FAIL
  2656. Unexpected error message!
  2657. EXP: R0 unbounded memory access
  2658. RES: fd -1 is not pointing to valid bpf_map
  2659.  
  2660. fd -1 is not pointing to valid bpf_map
  2661. #268/u invalid map access into an array with a invalid max check Failed to create hash map 'Invalid argument'!
  2662. FAIL
  2663. Unexpected error message!
  2664. EXP: R0 leaks addr
  2665. RES: fd -1 is not pointing to valid bpf_map
  2666.  
  2667. fd -1 is not pointing to valid bpf_map
  2668. #268/p invalid map access into an array with a invalid max check Failed to create hash map 'Invalid argument'!
  2669. FAIL
  2670. Unexpected error message!
  2671. EXP: invalid access to map value, value_size=48 off=44 size=8
  2672. RES: fd -1 is not pointing to valid bpf_map
  2673.  
  2674. fd -1 is not pointing to valid bpf_map
  2675. #269/u invalid map access into an array with a invalid max check Failed to create hash map 'Invalid argument'!
  2676. FAIL
  2677. Unexpected error message!
  2678. EXP: R0 pointer += pointer
  2679. RES: fd -1 is not pointing to valid bpf_map
  2680.  
  2681. fd -1 is not pointing to valid bpf_map
  2682. #269/p invalid map access into an array with a invalid max check Failed to create hash map 'Invalid argument'!
  2683. FAIL
  2684. Unexpected error message!
  2685. EXP: R0 pointer += pointer
  2686. RES: fd -1 is not pointing to valid bpf_map
  2687.  
  2688. fd -1 is not pointing to valid bpf_map
  2689. #270/p multiple registers share map_lookup_elem result Failed to create hash map 'Invalid argument'!
  2690. FAIL
  2691. Failed to load prog 'Bad file descriptor'!
  2692. fd -1 is not pointing to valid bpf_map
  2693. #271/p alu ops on ptr_to_map_value_or_null, 1 Failed to create hash map 'Invalid argument'!
  2694. FAIL
  2695. Unexpected error message!
  2696. EXP: R4 pointer arithmetic on PTR_TO_MAP_VALUE_OR_NULL
  2697. RES: fd -1 is not pointing to valid bpf_map
  2698.  
  2699. fd -1 is not pointing to valid bpf_map
  2700. #272/p alu ops on ptr_to_map_value_or_null, 2 Failed to create hash map 'Invalid argument'!
  2701. FAIL
  2702. Unexpected error message!
  2703. EXP: R4 pointer arithmetic on PTR_TO_MAP_VALUE_OR_NULL
  2704. RES: fd -1 is not pointing to valid bpf_map
  2705.  
  2706. fd -1 is not pointing to valid bpf_map
  2707. #273/p alu ops on ptr_to_map_value_or_null, 3 Failed to create hash map 'Invalid argument'!
  2708. FAIL
  2709. Unexpected error message!
  2710. EXP: R4 pointer arithmetic on PTR_TO_MAP_VALUE_OR_NULL
  2711. RES: fd -1 is not pointing to valid bpf_map
  2712.  
  2713. fd -1 is not pointing to valid bpf_map
  2714. #274/p invalid memory access with multiple map_lookup_elem calls Failed to create hash map 'Invalid argument'!
  2715. FAIL
  2716. Unexpected error message!
  2717. EXP: R4 !read_ok
  2718. RES: fd -1 is not pointing to valid bpf_map
  2719.  
  2720. fd -1 is not pointing to valid bpf_map
  2721. #275/p valid indirect map_lookup_elem access with 2nd lookup in branch Failed to create hash map 'Invalid argument'!
  2722. FAIL
  2723. Failed to load prog 'Bad file descriptor'!
  2724. fd -1 is not pointing to valid bpf_map
  2725. #276/u invalid map access from else condition Failed to create hash map 'Invalid argument'!
  2726. FAIL
  2727. Unexpected error message!
  2728. EXP: R0 leaks addr
  2729. RES: fd -1 is not pointing to valid bpf_map
  2730.  
  2731. fd -1 is not pointing to valid bpf_map
  2732. #276/p invalid map access from else condition Failed to create hash map 'Invalid argument'!
  2733. FAIL
  2734. Unexpected error message!
  2735. EXP: R0 unbounded memory access
  2736. RES: fd -1 is not pointing to valid bpf_map
  2737.  
  2738. fd -1 is not pointing to valid bpf_map
  2739. #277/p constant register |= constant should keep constant type FAIL
  2740. Failed to load prog 'Invalid argument'!
  2741. #278/p constant register |= constant should not bypass stack boundary checks FAIL
  2742. Unexpected error message!
  2743. EXP: invalid stack type R1 off=-48 access_size=58
  2744. RES:
  2745. #279/p constant register |= constant register should keep constant type FAIL
  2746. Failed to load prog 'Invalid argument'!
  2747. #280/p constant register |= constant register should not bypass stack boundary checks FAIL
  2748. Unexpected error message!
  2749. EXP: invalid stack type R1 off=-48 access_size=58
  2750. RES:
  2751. #281/p invalid direct packet write for LWT_IN FAIL
  2752. Unexpected error message!
  2753. EXP: cannot write into packet
  2754. RES:
  2755. #282/p invalid direct packet write for LWT_OUT FAIL
  2756. Unexpected error message!
  2757. EXP: cannot write into packet
  2758. RES:
  2759. #283/p direct packet write for LWT_XMIT FAIL
  2760. Failed to load prog 'Invalid argument'!
  2761. #284/p direct packet read for LWT_IN FAIL
  2762. Failed to load prog 'Invalid argument'!
  2763. #285/p direct packet read for LWT_OUT FAIL
  2764. Failed to load prog 'Invalid argument'!
  2765. #286/p direct packet read for LWT_XMIT FAIL
  2766. Failed to load prog 'Invalid argument'!
  2767. #287/p overlapping checks for direct packet access FAIL
  2768. Failed to load prog 'Invalid argument'!
  2769. #288/u invalid access of tc_classid for LWT_IN OK
  2770. #288/p invalid access of tc_classid for LWT_IN OK
  2771. #289/u invalid access of tc_classid for LWT_OUT OK
  2772. #289/p invalid access of tc_classid for LWT_OUT OK
  2773. #290/u invalid access of tc_classid for LWT_XMIT OK
  2774. #290/p invalid access of tc_classid for LWT_XMIT OK
  2775. #291/u leak pointer into ctx 1 Failed to create hash map 'Invalid argument'!
  2776. FAIL
  2777. Unexpected error message!
  2778. EXP: R2 leaks addr into mem
  2779. RES: fd -1 is not pointing to valid bpf_map
  2780.  
  2781. fd -1 is not pointing to valid bpf_map
  2782. #291/p leak pointer into ctx 1 Failed to create hash map 'Invalid argument'!
  2783. FAIL
  2784. Unexpected error message!
  2785. EXP: BPF_XADD stores into R1 context is not allowed
  2786. RES: fd -1 is not pointing to valid bpf_map
  2787.  
  2788. fd -1 is not pointing to valid bpf_map
  2789. #292/u leak pointer into ctx 2 FAIL
  2790. Unexpected error message!
  2791. EXP: R10 leaks addr into mem
  2792. RES: 0: (b7) r0 = 0
  2793. 1: (7b) *(u64 *)(r1 +48) = r0
  2794. invalid bpf_context access off=48 size=8
  2795.  
  2796. 0: (b7) r0 = 0
  2797. 1: (7b) *(u64 *)(r1 +48) = r0
  2798. invalid bpf_context access off=48 size=8
  2799. #292/p leak pointer into ctx 2 FAIL
  2800. Unexpected error message!
  2801. EXP: BPF_XADD stores into R1 context is not allowed
  2802. RES: 0: (b7) r0 = 0
  2803. 1: (7b) *(u64 *)(r1 +48) = r0
  2804. invalid bpf_context access off=48 size=8
  2805.  
  2806. 0: (b7) r0 = 0
  2807. 1: (7b) *(u64 *)(r1 +48) = r0
  2808. invalid bpf_context access off=48 size=8
  2809. #293/u leak pointer into ctx 3 Failed to create hash map 'Invalid argument'!
  2810. FAIL
  2811. Unexpected error message!
  2812. EXP: R2 leaks addr into ctx
  2813. RES: fd -1 is not pointing to valid bpf_map
  2814.  
  2815. fd -1 is not pointing to valid bpf_map
  2816. #293/p leak pointer into ctx 3 Failed to create hash map 'Invalid argument'!
  2817. FAIL
  2818. Failed to load prog 'Bad file descriptor'!
  2819. fd -1 is not pointing to valid bpf_map
  2820. #294/u leak pointer into map val Failed to create hash map 'Invalid argument'!
  2821. FAIL
  2822. Unexpected error message!
  2823. EXP: R6 leaks addr into mem
  2824. RES: fd -1 is not pointing to valid bpf_map
  2825.  
  2826. fd -1 is not pointing to valid bpf_map
  2827. #294/p leak pointer into map val Failed to create hash map 'Invalid argument'!
  2828. FAIL
  2829. Failed to load prog 'Bad file descriptor'!
  2830. fd -1 is not pointing to valid bpf_map
  2831. #295/p helper access to map: full range Failed to create hash map 'Invalid argument'!
  2832. FAIL
  2833. Failed to load prog 'Invalid argument'!
  2834. #296/p helper access to map: partial range Failed to create hash map 'Invalid argument'!
  2835. FAIL
  2836. Failed to load prog 'Invalid argument'!
  2837. #297/p helper access to map: empty range Failed to create hash map 'Invalid argument'!
  2838. FAIL
  2839. Unexpected error message!
  2840. EXP: invalid access to map value, value_size=48 off=0 size=0
  2841. RES:
  2842. #298/p helper access to map: out-of-bound range Failed to create hash map 'Invalid argument'!
  2843. FAIL
  2844. Unexpected error message!
  2845. EXP: invalid access to map value, value_size=48 off=0 size=56
  2846. RES:
  2847. #299/p helper access to map: negative range Failed to create hash map 'Invalid argument'!
  2848. FAIL
  2849. Unexpected error message!
  2850. EXP: R2 min value is negative
  2851. RES:
  2852. #300/p helper access to adjusted map (via const imm): full range Failed to create hash map 'Invalid argument'!
  2853. FAIL
  2854. Failed to load prog 'Invalid argument'!
  2855. #301/p helper access to adjusted map (via const imm): partial range Failed to create hash map 'Invalid argument'!
  2856. FAIL
  2857. Failed to load prog 'Invalid argument'!
  2858. #302/p helper access to adjusted map (via const imm): empty range Failed to create hash map 'Invalid argument'!
  2859. FAIL
  2860. Unexpected error message!
  2861. EXP: invalid access to map value, value_size=48 off=4 size=0
  2862. RES:
  2863. #303/p helper access to adjusted map (via const imm): out-of-bound range Failed to create hash map 'Invalid argument'!
  2864. FAIL
  2865. Unexpected error message!
  2866. EXP: invalid access to map value, value_size=48 off=4 size=52
  2867. RES:
  2868. #304/p helper access to adjusted map (via const imm): negative range (> adjustment) Failed to create hash map 'Invalid argument'!
  2869. FAIL
  2870. Unexpected error message!
  2871. EXP: R2 min value is negative
  2872. RES:
  2873. #305/p helper access to adjusted map (via const imm): negative range (< adjustment) Failed to create hash map 'Invalid argument'!
  2874. FAIL
  2875. Unexpected error message!
  2876. EXP: R2 min value is negative
  2877. RES:
  2878. #306/p helper access to adjusted map (via const reg): full range Failed to create hash map 'Invalid argument'!
  2879. FAIL
  2880. Failed to load prog 'Invalid argument'!
  2881. #307/p helper access to adjusted map (via const reg): partial range Failed to create hash map 'Invalid argument'!
  2882. FAIL
  2883. Failed to load prog 'Invalid argument'!
  2884. #308/p helper access to adjusted map (via const reg): empty range Failed to create hash map 'Invalid argument'!
  2885. FAIL
  2886. Unexpected error message!
  2887. EXP: R1 min value is outside of the array range
  2888. RES:
  2889. #309/p helper access to adjusted map (via const reg): out-of-bound range Failed to create hash map 'Invalid argument'!
  2890. FAIL
  2891. Unexpected error message!
  2892. EXP: invalid access to map value, value_size=48 off=4 size=52
  2893. RES:
  2894. #310/p helper access to adjusted map (via const reg): negative range (> adjustment) Failed to create hash map 'Invalid argument'!
  2895. FAIL
  2896. Unexpected error message!
  2897. EXP: R2 min value is negative
  2898. RES:
  2899. #311/p helper access to adjusted map (via const reg): negative range (< adjustment) Failed to create hash map 'Invalid argument'!
  2900. FAIL
  2901. Unexpected error message!
  2902. EXP: R2 min value is negative
  2903. RES:
  2904. #312/p helper access to adjusted map (via variable): full range Failed to create hash map 'Invalid argument'!
  2905. FAIL
  2906. Failed to load prog 'Invalid argument'!
  2907. #313/p helper access to adjusted map (via variable): partial range Failed to create hash map 'Invalid argument'!
  2908. FAIL
  2909. Failed to load prog 'Invalid argument'!
  2910. #314/p helper access to adjusted map (via variable): empty range Failed to create hash map 'Invalid argument'!
  2911. FAIL
  2912. Unexpected error message!
  2913. EXP: R1 min value is outside of the array range
  2914. RES:
  2915. #315/p helper access to adjusted map (via variable): no max check Failed to create hash map 'Invalid argument'!
  2916. FAIL
  2917. Unexpected error message!
  2918. EXP: R1 unbounded memory access
  2919. RES:
  2920. #316/p helper access to adjusted map (via variable): wrong max check Failed to create hash map 'Invalid argument'!
  2921. FAIL
  2922. Unexpected error message!
  2923. EXP: invalid access to map value, value_size=48 off=4 size=45
  2924. RES:
  2925. #317/p helper access to map: bounds check using <, good access Failed to create hash map 'Invalid argument'!
  2926. FAIL
  2927. Failed to load prog 'Invalid argument'!
  2928. #318/p helper access to map: bounds check using <, bad access Failed to create hash map 'Invalid argument'!
  2929. FAIL
  2930. Unexpected error message!
  2931. EXP: R1 unbounded memory access
  2932. RES:
  2933. #319/p helper access to map: bounds check using <=, good access Failed to create hash map 'Invalid argument'!
  2934. FAIL
  2935. Failed to load prog 'Invalid argument'!
  2936. #320/p helper access to map: bounds check using <=, bad access Failed to create hash map 'Invalid argument'!
  2937. FAIL
  2938. Unexpected error message!
  2939. EXP: R1 unbounded memory access
  2940. RES:
  2941. #321/p helper access to map: bounds check using s<, good access Failed to create hash map 'Invalid argument'!
  2942. FAIL
  2943. Failed to load prog 'Invalid argument'!
  2944. #322/p helper access to map: bounds check using s<, good access 2 Failed to create hash map 'Invalid argument'!
  2945. FAIL
  2946. Failed to load prog 'Invalid argument'!
  2947. #323/p helper access to map: bounds check using s<, bad access Failed to create hash map 'Invalid argument'!
  2948. FAIL
  2949. Unexpected error message!
  2950. EXP: R1 min value is negative
  2951. RES:
  2952. #324/p helper access to map: bounds check using s<=, good access Failed to create hash map 'Invalid argument'!
  2953. FAIL
  2954. Failed to load prog 'Invalid argument'!
  2955. #325/p helper access to map: bounds check using s<=, good access 2 Failed to create hash map 'Invalid argument'!
  2956. FAIL
  2957. Failed to load prog 'Invalid argument'!
  2958. #326/p helper access to map: bounds check using s<=, bad access Failed to create hash map 'Invalid argument'!
  2959. FAIL
  2960. Unexpected error message!
  2961. EXP: R1 min value is negative
  2962. RES:
  2963. #327/u map element value is preserved across register spilling Failed to create hash map 'Invalid argument'!
  2964. FAIL
  2965. Unexpected error message!
  2966. EXP: R0 leaks addr
  2967. RES: fd -1 is not pointing to valid bpf_map
  2968.  
  2969. fd -1 is not pointing to valid bpf_map
  2970. #327/p map element value is preserved across register spilling Failed to create hash map 'Invalid argument'!
  2971. FAIL
  2972. Failed to load prog 'Bad file descriptor'!
  2973. fd -1 is not pointing to valid bpf_map
  2974. #328/u map element value or null is marked on register spilling Failed to create hash map 'Invalid argument'!
  2975. FAIL
  2976. Unexpected error message!
  2977. EXP: R0 leaks addr
  2978. RES: fd -1 is not pointing to valid bpf_map
  2979.  
  2980. fd -1 is not pointing to valid bpf_map
  2981. #328/p map element value or null is marked on register spilling Failed to create hash map 'Invalid argument'!
  2982. FAIL
  2983. Failed to load prog 'Bad file descriptor'!
  2984. fd -1 is not pointing to valid bpf_map
  2985. #329/u map element value store of cleared call register Failed to create hash map 'Invalid argument'!
  2986. FAIL
  2987. Unexpected error message!
  2988. EXP: R1 !read_ok
  2989. RES: fd -1 is not pointing to valid bpf_map
  2990.  
  2991. fd -1 is not pointing to valid bpf_map
  2992. #329/p map element value store of cleared call register Failed to create hash map 'Invalid argument'!
  2993. FAIL
  2994. Unexpected error message!
  2995. EXP: R1 !read_ok
  2996. RES: fd -1 is not pointing to valid bpf_map
  2997.  
  2998. fd -1 is not pointing to valid bpf_map
  2999. #330/u map element value with unaligned store Failed to create hash map 'Invalid argument'!
  3000. FAIL
  3001. Unexpected error message!
  3002. EXP: R0 leaks addr
  3003. RES: fd -1 is not pointing to valid bpf_map
  3004.  
  3005. fd -1 is not pointing to valid bpf_map
  3006. #330/p map element value with unaligned store Failed to create hash map 'Invalid argument'!
  3007. FAIL
  3008. Failed to load prog 'Bad file descriptor'!
  3009. fd -1 is not pointing to valid bpf_map
  3010. #331/u map element value with unaligned load Failed to create hash map 'Invalid argument'!
  3011. FAIL
  3012. Unexpected error message!
  3013. EXP: R0 leaks addr
  3014. RES: fd -1 is not pointing to valid bpf_map
  3015.  
  3016. fd -1 is not pointing to valid bpf_map
  3017. #331/p map element value with unaligned load Failed to create hash map 'Invalid argument'!
  3018. FAIL
  3019. Failed to load prog 'Bad file descriptor'!
  3020. fd -1 is not pointing to valid bpf_map
  3021. #332/u map element value illegal alu op, 1 Failed to create hash map 'Invalid argument'!
  3022. FAIL
  3023. Unexpected error message!
  3024. EXP: R0 bitwise operator &= on pointer
  3025. RES: fd -1 is not pointing to valid bpf_map
  3026.  
  3027. fd -1 is not pointing to valid bpf_map
  3028. #332/p map element value illegal alu op, 1 Failed to create hash map 'Invalid argument'!
  3029. FAIL
  3030. Unexpected error message!
  3031. EXP: R0 bitwise operator &= on pointer
  3032. RES: fd -1 is not pointing to valid bpf_map
  3033.  
  3034. fd -1 is not pointing to valid bpf_map
  3035. #333/u map element value illegal alu op, 2 Failed to create hash map 'Invalid argument'!
  3036. FAIL
  3037. Unexpected error message!
  3038. EXP: R0 32-bit pointer arithmetic prohibited
  3039. RES: fd -1 is not pointing to valid bpf_map
  3040.  
  3041. fd -1 is not pointing to valid bpf_map
  3042. #333/p map element value illegal alu op, 2 Failed to create hash map 'Invalid argument'!
  3043. FAIL
  3044. Unexpected error message!
  3045. EXP: R0 32-bit pointer arithmetic prohibited
  3046. RES: fd -1 is not pointing to valid bpf_map
  3047.  
  3048. fd -1 is not pointing to valid bpf_map
  3049. #334/u map element value illegal alu op, 3 Failed to create hash map 'Invalid argument'!
  3050. FAIL
  3051. Unexpected error message!
  3052. EXP: R0 pointer arithmetic with /= operator
  3053. RES: fd -1 is not pointing to valid bpf_map
  3054.  
  3055. fd -1 is not pointing to valid bpf_map
  3056. #334/p map element value illegal alu op, 3 Failed to create hash map 'Invalid argument'!
  3057. FAIL
  3058. Unexpected error message!
  3059. EXP: R0 pointer arithmetic with /= operator
  3060. RES: fd -1 is not pointing to valid bpf_map
  3061.  
  3062. fd -1 is not pointing to valid bpf_map
  3063. #335/u map element value illegal alu op, 4 Failed to create hash map 'Invalid argument'!
  3064. FAIL
  3065. Unexpected error message!
  3066. EXP: R0 pointer arithmetic prohibited
  3067. RES: fd -1 is not pointing to valid bpf_map
  3068.  
  3069. fd -1 is not pointing to valid bpf_map
  3070. #335/p map element value illegal alu op, 4 Failed to create hash map 'Invalid argument'!
  3071. FAIL
  3072. Unexpected error message!
  3073. EXP: invalid mem access 'inv'
  3074. RES: fd -1 is not pointing to valid bpf_map
  3075.  
  3076. fd -1 is not pointing to valid bpf_map
  3077. #336/u map element value illegal alu op, 5 Failed to create hash map 'Invalid argument'!
  3078. FAIL
  3079. Unexpected error message!
  3080. EXP: R0 invalid mem access 'inv'
  3081. RES: fd -1 is not pointing to valid bpf_map
  3082.  
  3083. fd -1 is not pointing to valid bpf_map
  3084. #336/p map element value illegal alu op, 5 Failed to create hash map 'Invalid argument'!
  3085. FAIL
  3086. Unexpected error message!
  3087. EXP: R0 invalid mem access 'inv'
  3088. RES: fd -1 is not pointing to valid bpf_map
  3089.  
  3090. fd -1 is not pointing to valid bpf_map
  3091. #337/u map element value is preserved across register spilling Failed to create hash map 'Invalid argument'!
  3092. FAIL
  3093. Unexpected error message!
  3094. EXP: R0 leaks addr
  3095. RES: fd -1 is not pointing to valid bpf_map
  3096.  
  3097. fd -1 is not pointing to valid bpf_map
  3098. #337/p map element value is preserved across register spilling Failed to create hash map 'Invalid argument'!
  3099. FAIL
  3100. Failed to load prog 'Bad file descriptor'!
  3101. fd -1 is not pointing to valid bpf_map
  3102. #338/p helper access to variable memory: stack, bitwise AND + JMP, correct bounds FAIL
  3103. Failed to load prog 'Invalid argument'!
  3104. #339/p helper access to variable memory: stack, bitwise AND, zero included FAIL
  3105. Unexpected error message!
  3106. EXP: invalid indirect read from stack off -64+0 size 64
  3107. RES:
  3108. #340/p helper access to variable memory: stack, bitwise AND + JMP, wrong max FAIL
  3109. Unexpected error message!
  3110. EXP: invalid stack type R1 off=-64 access_size=65
  3111. RES:
  3112. #341/p helper access to variable memory: stack, JMP, correct bounds FAIL
  3113. Failed to load prog 'Invalid argument'!
  3114. #342/p helper access to variable memory: stack, JMP (signed), correct bounds FAIL
  3115. Failed to load prog 'Invalid argument'!
  3116. #343/p helper access to variable memory: stack, JMP, bounds + offset FAIL
  3117. Unexpected error message!
  3118. EXP: invalid stack type R1 off=-64 access_size=65
  3119. RES:
  3120. #344/p helper access to variable memory: stack, JMP, wrong max FAIL
  3121. Unexpected error message!
  3122. EXP: invalid stack type R1 off=-64 access_size=65
  3123. RES:
  3124. #345/p helper access to variable memory: stack, JMP, no max check FAIL
  3125. Unexpected error message!
  3126. EXP: R2 min value is negative, either use unsigned or 'var &= const'
  3127. RES:
  3128. #346/p helper access to variable memory: stack, JMP, no min check FAIL
  3129. Unexpected error message!
  3130. EXP: invalid indirect read from stack off -64+0 size 64
  3131. RES:
  3132. #347/p helper access to variable memory: stack, JMP (signed), no min check FAIL
  3133. Unexpected error message!
  3134. EXP: R2 min value is negative
  3135. RES:
  3136. #348/p helper access to variable memory: map, JMP, correct bounds Failed to create hash map 'Invalid argument'!
  3137. FAIL
  3138. Failed to load prog 'Invalid argument'!
  3139. #349/p helper access to variable memory: map, JMP, wrong max Failed to create hash map 'Invalid argument'!
  3140. FAIL
  3141. Unexpected error message!
  3142. EXP: invalid access to map value, value_size=48 off=0 size=49
  3143. RES:
  3144. #350/p helper access to variable memory: map adjusted, JMP, correct bounds Failed to create hash map 'Invalid argument'!
  3145. FAIL
  3146. Failed to load prog 'Invalid argument'!
  3147. #351/p helper access to variable memory: map adjusted, JMP, wrong max Failed to create hash map 'Invalid argument'!
  3148. FAIL
  3149. Unexpected error message!
  3150. EXP: R1 min value is outside of the array range
  3151. RES:
  3152. #352/p helper access to variable memory: size = 0 allowed on NULL (ARG_PTR_TO_MEM_OR_NULL) FAIL
  3153. Failed to load prog 'Invalid argument'!
  3154. 0: (b7) r1 = 0
  3155. 1: (b7) r2 = 0
  3156. 2: (b7) r3 = 0
  3157. 3: (b7) r4 = 0
  3158. 4: (b7) r5 = 0
  3159. 5: (85) call 28
  3160. invalid func 28
  3161. #353/p helper access to variable memory: size > 0 not allowed on NULL (ARG_PTR_TO_MEM_OR_NULL) FAIL
  3162. Unexpected error message!
  3163. EXP: R1 type=inv expected=fp
  3164. RES: 0: (b7) r1 = 0
  3165. 1: (b7) r2 = 1
  3166. 2: (7b) *(u64 *)(r10 -128) = r2
  3167. 3: (79) r2 = *(u64 *)(r10 -128)
  3168. 4: (57) r2 &= 64
  3169. 5: (b7) r3 = 0
  3170. 6: (b7) r4 = 0
  3171. 7: (b7) r5 = 0
  3172. 8: (85) call 28
  3173. invalid func 28
  3174.  
  3175. 0: (b7) r1 = 0
  3176. 1: (b7) r2 = 1
  3177. 2: (7b) *(u64 *)(r10 -128) = r2
  3178. 3: (79) r2 = *(u64 *)(r10 -128)
  3179. 4: (57) r2 &= 64
  3180. 5: (b7) r3 = 0
  3181. 6: (b7) r4 = 0
  3182. 7: (b7) r5 = 0
  3183. 8: (85) call 28
  3184. invalid func 28
  3185. #354/p helper access to variable memory: size = 0 allowed on != NULL stack pointer (ARG_PTR_TO_MEM_OR_NULL) FAIL
  3186. Failed to load prog 'Invalid argument'!
  3187. 0: (bf) r1 = r10
  3188. 1: (07) r1 += -8
  3189. 2: (b7) r2 = 0
  3190. 3: (7b) *(u64 *)(r1 +0) = r2
  3191. 4: (57) r2 &= 8
  3192. 5: (b7) r3 = 0
  3193. 6: (b7) r4 = 0
  3194. 7: (b7) r5 = 0
  3195. 8: (85) call 28
  3196. invalid func 28
  3197. #355/p helper access to variable memory: size = 0 allowed on != NULL map pointer (ARG_PTR_TO_MEM_OR_NULL) Failed to create hash map 'Invalid argument'!
  3198. FAIL
  3199. Failed to load prog 'Bad file descriptor'!
  3200. fd -1 is not pointing to valid bpf_map
  3201. #356/p helper access to variable memory: size possible = 0 allowed on != NULL stack pointer (ARG_PTR_TO_MEM_OR_NULL) Failed to create hash map 'Invalid argument'!
  3202. FAIL
  3203. Failed to load prog 'Bad file descriptor'!
  3204. fd -1 is not pointing to valid bpf_map
  3205. #357/p helper access to variable memory: size possible = 0 allowed on != NULL map pointer (ARG_PTR_TO_MEM_OR_NULL) Failed to create hash map 'Invalid argument'!
  3206. FAIL
  3207. Failed to load prog 'Bad file descriptor'!
  3208. fd -1 is not pointing to valid bpf_map
  3209. #358/p helper access to variable memory: size possible = 0 allowed on != NULL packet pointer (ARG_PTR_TO_MEM_OR_NULL) FAIL
  3210. Failed to load prog 'Permission denied'!
  3211. 0: (61) r6 = *(u32 *)(r1 +76)
  3212. invalid bpf_context access off=76 size=4
  3213. #359/p helper access to variable memory: size = 0 not allowed on NULL (!ARG_PTR_TO_MEM_OR_NULL) FAIL
  3214. Unexpected error message!
  3215. EXP: R1 type=inv expected=fp
  3216. RES:
  3217. #360/p helper access to variable memory: size > 0 not allowed on NULL (!ARG_PTR_TO_MEM_OR_NULL) FAIL
  3218. Unexpected error message!
  3219. EXP: R1 type=inv expected=fp
  3220. RES:
  3221. #361/p helper access to variable memory: size = 0 allowed on != NULL stack pointer (!ARG_PTR_TO_MEM_OR_NULL) FAIL
  3222. Failed to load prog 'Invalid argument'!
  3223. #362/p helper access to variable memory: size = 0 allowed on != NULL map pointer (!ARG_PTR_TO_MEM_OR_NULL) Failed to create hash map 'Invalid argument'!
  3224. FAIL
  3225. Failed to load prog 'Invalid argument'!
  3226. #363/p helper access to variable memory: size possible = 0 allowed on != NULL stack pointer (!ARG_PTR_TO_MEM_OR_NULL) Failed to create hash map 'Invalid argument'!
  3227. FAIL
  3228. Failed to load prog 'Invalid argument'!
  3229. #364/p helper access to variable memory: size possible = 0 allowed on != NULL map pointer (!ARG_PTR_TO_MEM_OR_NULL) Failed to create hash map 'Invalid argument'!
  3230. FAIL
  3231. Failed to load prog 'Invalid argument'!
  3232. #365/p helper access to variable memory: 8 bytes leak FAIL
  3233. Unexpected error message!
  3234. EXP: invalid indirect read from stack off -64+32 size 64
  3235. RES:
  3236. #366/p helper access to variable memory: 8 bytes no leak (init memory) FAIL
  3237. Failed to load prog 'Invalid argument'!
  3238. #367/u invalid and of negative number Failed to create hash map 'Invalid argument'!
  3239. FAIL
  3240. Unexpected error message!
  3241. EXP: R0 max value is outside of the array range
  3242. RES: fd -1 is not pointing to valid bpf_map
  3243.  
  3244. fd -1 is not pointing to valid bpf_map
  3245. #367/p invalid and of negative number Failed to create hash map 'Invalid argument'!
  3246. FAIL
  3247. Unexpected error message!
  3248. EXP: R0 max value is outside of the array range
  3249. RES: fd -1 is not pointing to valid bpf_map
  3250.  
  3251. fd -1 is not pointing to valid bpf_map
  3252. #368/u invalid range check Failed to create hash map 'Invalid argument'!
  3253. FAIL
  3254. Unexpected error message!
  3255. EXP: R0 max value is outside of the array range
  3256. RES: fd -1 is not pointing to valid bpf_map
  3257.  
  3258. fd -1 is not pointing to valid bpf_map
  3259. #368/p invalid range check Failed to create hash map 'Invalid argument'!
  3260. FAIL
  3261. Unexpected error message!
  3262. EXP: R0 max value is outside of the array range
  3263. RES: fd -1 is not pointing to valid bpf_map
  3264.  
  3265. fd -1 is not pointing to valid bpf_map
  3266. #369/u map in map access Failed to create array of maps 'Invalid argument'!
  3267. FAIL
  3268. Failed to load prog 'Bad file descriptor'!
  3269. fd -1 is not pointing to valid bpf_map
  3270. #369/p map in map access Failed to create array of maps 'Invalid argument'!
  3271. FAIL
  3272. Failed to load prog 'Bad file descriptor'!
  3273. fd -1 is not pointing to valid bpf_map
  3274. #370/u invalid inner map pointer Failed to create array of maps 'Invalid argument'!
  3275. FAIL
  3276. Unexpected error message!
  3277. EXP: R1 pointer arithmetic on CONST_PTR_TO_MAP prohibited
  3278. RES: fd -1 is not pointing to valid bpf_map
  3279.  
  3280. fd -1 is not pointing to valid bpf_map
  3281. #370/p invalid inner map pointer Failed to create array of maps 'Invalid argument'!
  3282. FAIL
  3283. Unexpected error message!
  3284. EXP: R1 pointer arithmetic on CONST_PTR_TO_MAP prohibited
  3285. RES: fd -1 is not pointing to valid bpf_map
  3286.  
  3287. fd -1 is not pointing to valid bpf_map
  3288. #371/u forgot null checking on the inner map pointer Failed to create array of maps 'Invalid argument'!
  3289. FAIL
  3290. Unexpected error message!
  3291. EXP: R1 type=map_value_or_null expected=map_ptr
  3292. RES: fd -1 is not pointing to valid bpf_map
  3293.  
  3294. fd -1 is not pointing to valid bpf_map
  3295. #371/p forgot null checking on the inner map pointer Failed to create array of maps 'Invalid argument'!
  3296. FAIL
  3297. Unexpected error message!
  3298. EXP: R1 type=map_value_or_null expected=map_ptr
  3299. RES: fd -1 is not pointing to valid bpf_map
  3300.  
  3301. fd -1 is not pointing to valid bpf_map
  3302. #372/u ld_abs: check calling conv, r1 OK
  3303. #372/p ld_abs: check calling conv, r1 OK
  3304. #373/u ld_abs: check calling conv, r2 OK
  3305. #373/p ld_abs: check calling conv, r2 OK
  3306. #374/u ld_abs: check calling conv, r3 OK
  3307. #374/p ld_abs: check calling conv, r3 OK
  3308. #375/u ld_abs: check calling conv, r4 OK
  3309. #375/p ld_abs: check calling conv, r4 OK
  3310. #376/u ld_abs: check calling conv, r5 OK
  3311. #376/p ld_abs: check calling conv, r5 OK
  3312. #377/u ld_abs: check calling conv, r7 Unexpected bpf_prog_test_run error
  3313. 0: (bf) r6 = r1
  3314. 1: (b7) r7 = 0
  3315. 2: (20) r0 = *(u32 *)skb[-2097152]
  3316. 3: (bf) r0 = r7
  3317. 4: (95) exit
  3318. #377/p ld_abs: check calling conv, r7 Unexpected bpf_prog_test_run error
  3319. 0: (bf) r6 = r1
  3320. 1: (b7) r7 = 0
  3321. 2: (20) r0 = *(u32 *)skb[-2097152]
  3322. 3: (bf) r0 = r7
  3323. 4: (95) exit
  3324. #378/p ld_abs: tests on r6 and skb data reload helper Unexpected bpf_prog_test_run error
  3325. 0: (bf) r6 = r1
  3326. 1: (30) r0 = *(u8 *)skb[0]
  3327. 2: (28) r0 = *(u16 *)skb[0]
  3328. 3: (20) r0 = *(u32 *)skb[0]
  3329. 4: (bf) r7 = r6
  3330. 5: (b7) r6 = 0
  3331. 6: (bf) r1 = r7
  3332. 7: (b7) r2 = 1
  3333. 8: (b7) r3 = 2
  3334. 9: (85) call 18
  3335. 10: (bf) r6 = r7
  3336. 11: (30) r0 = *(u8 *)skb[0]
  3337. 12: (28) r0 = *(u16 *)skb[0]
  3338. 13: (20) r0 = *(u32 *)skb[0]
  3339. 14: (b7) r0 = 42
  3340. 15: (95) exit
  3341. #379/u ld_ind: check calling conv, r1 OK
  3342. #379/p ld_ind: check calling conv, r1 OK
  3343. #380/u ld_ind: check calling conv, r2 OK
  3344. #380/p ld_ind: check calling conv, r2 OK
  3345. #381/u ld_ind: check calling conv, r3 OK
  3346. #381/p ld_ind: check calling conv, r3 OK
  3347. #382/u ld_ind: check calling conv, r4 OK
  3348. #382/p ld_ind: check calling conv, r4 OK
  3349. #383/u ld_ind: check calling conv, r5 OK
  3350. #383/p ld_ind: check calling conv, r5 OK
  3351. #384/u ld_ind: check calling conv, r7 Unexpected bpf_prog_test_run error
  3352. 0: (bf) r6 = r1
  3353. 1: (b7) r7 = 1
  3354. 2: (40) r0 = *(u32 *)skb[r7 + -2097152]
  3355. 3: (bf) r0 = r7
  3356. 4: (95) exit
  3357. #384/p ld_ind: check calling conv, r7 Unexpected bpf_prog_test_run error
  3358. 0: (bf) r6 = r1
  3359. 1: (b7) r7 = 1
  3360. 2: (40) r0 = *(u32 *)skb[r7 + -2097152]
  3361. 3: (bf) r0 = r7
  3362. 4: (95) exit
  3363. #385/p check bpf_perf_event_data->sample_period byte load permitted FAIL
  3364. Failed to load prog 'Invalid argument'!
  3365. #386/p check bpf_perf_event_data->sample_period half load permitted FAIL
  3366. Failed to load prog 'Invalid argument'!
  3367. #387/p check bpf_perf_event_data->sample_period word load permitted FAIL
  3368. Failed to load prog 'Invalid argument'!
  3369. #388/p check bpf_perf_event_data->sample_period dword load permitted FAIL
  3370. Failed to load prog 'Invalid argument'!
  3371. #389/u check skb->data half load not permitted OK
  3372. #389/p check skb->data half load not permitted OK
  3373. #390/p check skb->tc_classid half load not permitted for lwt prog FAIL
  3374. Unexpected error message!
  3375. EXP: invalid bpf_context access
  3376. RES:
  3377. #391/u bounds checks mixing signed and unsigned, positive bounds Failed to create hash map 'Invalid argument'!
  3378. FAIL
  3379. Unexpected error message!
  3380. EXP: unbounded min value
  3381. RES: fd -1 is not pointing to valid bpf_map
  3382.  
  3383. fd -1 is not pointing to valid bpf_map
  3384. #391/p bounds checks mixing signed and unsigned, positive bounds Failed to create hash map 'Invalid argument'!
  3385. FAIL
  3386. Unexpected error message!
  3387. EXP: unbounded min value
  3388. RES: fd -1 is not pointing to valid bpf_map
  3389.  
  3390. fd -1 is not pointing to valid bpf_map
  3391. #392/u bounds checks mixing signed and unsigned Failed to create hash map 'Invalid argument'!
  3392. FAIL
  3393. Unexpected error message!
  3394. EXP: unbounded min value
  3395. RES: fd -1 is not pointing to valid bpf_map
  3396.  
  3397. fd -1 is not pointing to valid bpf_map
  3398. #392/p bounds checks mixing signed and unsigned Failed to create hash map 'Invalid argument'!
  3399. FAIL
  3400. Unexpected error message!
  3401. EXP: unbounded min value
  3402. RES: fd -1 is not pointing to valid bpf_map
  3403.  
  3404. fd -1 is not pointing to valid bpf_map
  3405. #393/u bounds checks mixing signed and unsigned, variant 2 Failed to create hash map 'Invalid argument'!
  3406. FAIL
  3407. Unexpected error message!
  3408. EXP: unbounded min value
  3409. RES: fd -1 is not pointing to valid bpf_map
  3410.  
  3411. fd -1 is not pointing to valid bpf_map
  3412. #393/p bounds checks mixing signed and unsigned, variant 2 Failed to create hash map 'Invalid argument'!
  3413. FAIL
  3414. Unexpected error message!
  3415. EXP: unbounded min value
  3416. RES: fd -1 is not pointing to valid bpf_map
  3417.  
  3418. fd -1 is not pointing to valid bpf_map
  3419. #394/u bounds checks mixing signed and unsigned, variant 3 Failed to create hash map 'Invalid argument'!
  3420. FAIL
  3421. Unexpected error message!
  3422. EXP: unbounded min value
  3423. RES: fd -1 is not pointing to valid bpf_map
  3424.  
  3425. fd -1 is not pointing to valid bpf_map
  3426. #394/p bounds checks mixing signed and unsigned, variant 3 Failed to create hash map 'Invalid argument'!
  3427. FAIL
  3428. Unexpected error message!
  3429. EXP: unbounded min value
  3430. RES: fd -1 is not pointing to valid bpf_map
  3431.  
  3432. fd -1 is not pointing to valid bpf_map
  3433. #395/u bounds checks mixing signed and unsigned, variant 4 Failed to create hash map 'Invalid argument'!
  3434. FAIL
  3435. Failed to load prog 'Bad file descriptor'!
  3436. fd -1 is not pointing to valid bpf_map
  3437. #395/p bounds checks mixing signed and unsigned, variant 4 Failed to create hash map 'Invalid argument'!
  3438. FAIL
  3439. Failed to load prog 'Bad file descriptor'!
  3440. fd -1 is not pointing to valid bpf_map
  3441. #396/u bounds checks mixing signed and unsigned, variant 5 Failed to create hash map 'Invalid argument'!
  3442. FAIL
  3443. Unexpected error message!
  3444. EXP: unbounded min value
  3445. RES: fd -1 is not pointing to valid bpf_map
  3446.  
  3447. fd -1 is not pointing to valid bpf_map
  3448. #396/p bounds checks mixing signed and unsigned, variant 5 Failed to create hash map 'Invalid argument'!
  3449. FAIL
  3450. Unexpected error message!
  3451. EXP: unbounded min value
  3452. RES: fd -1 is not pointing to valid bpf_map
  3453.  
  3454. fd -1 is not pointing to valid bpf_map
  3455. #397/u bounds checks mixing signed and unsigned, variant 6 FAIL
  3456. Unexpected error message!
  3457. EXP: R4 min value is negative, either use unsigned
  3458. RES: 0: (b7) r2 = 0
  3459. 1: (bf) r3 = r10
  3460. 2: (07) r3 += -512
  3461. 3: (7a) *(u64 *)(r10 -16) = -8
  3462. 4: (79) r4 = *(u64 *)(r10 -16)
  3463. 5: (b7) r6 = -1
  3464. 6: (2d) if r4 > r6 goto pc+5
  3465. R1=ctx R2=imm0 R3=fp-512 R4=inv R6=imm-1 R10=fp
  3466. 7: (65) if r4 s> 0x1 goto pc+4
  3467. R1=ctx R2=imm0 R3=fp-512 R4=inv R6=imm-1 R10=fp
  3468. 8: (07) r4 += 1
  3469. 9: (b7) r5 = 0
  3470. 10: (6a) *(u16 *)(r10 -512) = 0
  3471. 11: (85) call 26
  3472. invalid func 26
  3473.  
  3474. 0: (b7) r2 = 0
  3475. 1: (bf) r3 = r10
  3476. 2: (07) r3 += -512
  3477. 3: (7a) *(u64 *)(r10 -16) = -8
  3478. 4: (79) r4 = *(u64 *)(r10 -16)
  3479. 5: (b7) r6 = -1
  3480. 6: (2d) if r4 > r6 goto pc+5
  3481. R1=ctx R2=imm0 R3=fp-512 R4=inv R6=imm-1 R10=fp
  3482. 7: (65) if r4 s> 0x1 goto pc+4
  3483. R1=ctx R2=imm0 R3=fp-512 R4=inv R6=imm-1 R10=fp
  3484. 8: (07) r4 += 1
  3485. 9: (b7) r5 = 0
  3486. 10: (6a) *(u16 *)(r10 -512) = 0
  3487. 11: (85) call 26
  3488. invalid func 26
  3489. #397/p bounds checks mixing signed and unsigned, variant 6 FAIL
  3490. Unexpected error message!
  3491. EXP: R4 min value is negative, either use unsigned
  3492. RES: 0: (b7) r2 = 0
  3493. 1: (bf) r3 = r10
  3494. 2: (07) r3 += -512
  3495. 3: (7a) *(u64 *)(r10 -16) = -8
  3496. 4: (79) r4 = *(u64 *)(r10 -16)
  3497. 5: (b7) r6 = -1
  3498. 6: (2d) if r4 > r6 goto pc+5
  3499. R1=ctx R2=imm0 R3=fp-512 R4=inv R6=imm-1 R10=fp
  3500. 7: (65) if r4 s> 0x1 goto pc+4
  3501. R1=ctx R2=imm0 R3=fp-512 R4=inv R6=imm-1 R10=fp
  3502. 8: (07) r4 += 1
  3503. 9: (b7) r5 = 0
  3504. 10: (6a) *(u16 *)(r10 -512) = 0
  3505. 11: (85) call 26
  3506. invalid func 26
  3507.  
  3508. 0: (b7) r2 = 0
  3509. 1: (bf) r3 = r10
  3510. 2: (07) r3 += -512
  3511. 3: (7a) *(u64 *)(r10 -16) = -8
  3512. 4: (79) r4 = *(u64 *)(r10 -16)
  3513. 5: (b7) r6 = -1
  3514. 6: (2d) if r4 > r6 goto pc+5
  3515. R1=ctx R2=imm0 R3=fp-512 R4=inv R6=imm-1 R10=fp
  3516. 7: (65) if r4 s> 0x1 goto pc+4
  3517. R1=ctx R2=imm0 R3=fp-512 R4=inv R6=imm-1 R10=fp
  3518. 8: (07) r4 += 1
  3519. 9: (b7) r5 = 0
  3520. 10: (6a) *(u16 *)(r10 -512) = 0
  3521. 11: (85) call 26
  3522. invalid func 26
  3523. #398/u bounds checks mixing signed and unsigned, variant 7 Failed to create hash map 'Invalid argument'!
  3524. FAIL
  3525. Failed to load prog 'Bad file descriptor'!
  3526. fd -1 is not pointing to valid bpf_map
  3527. #398/p bounds checks mixing signed and unsigned, variant 7 Failed to create hash map 'Invalid argument'!
  3528. FAIL
  3529. Failed to load prog 'Bad file descriptor'!
  3530. fd -1 is not pointing to valid bpf_map
  3531. #399/u bounds checks mixing signed and unsigned, variant 8 Failed to create hash map 'Invalid argument'!
  3532. FAIL
  3533. Unexpected error message!
  3534. EXP: unbounded min value
  3535. RES: fd -1 is not pointing to valid bpf_map
  3536.  
  3537. fd -1 is not pointing to valid bpf_map
  3538. #399/p bounds checks mixing signed and unsigned, variant 8 Failed to create hash map 'Invalid argument'!
  3539. FAIL
  3540. Unexpected error message!
  3541. EXP: unbounded min value
  3542. RES: fd -1 is not pointing to valid bpf_map
  3543.  
  3544. fd -1 is not pointing to valid bpf_map
  3545. #400/u bounds checks mixing signed and unsigned, variant 9 Failed to create hash map 'Invalid argument'!
  3546. FAIL
  3547. Failed to load prog 'Bad file descriptor'!
  3548. fd -1 is not pointing to valid bpf_map
  3549. #400/p bounds checks mixing signed and unsigned, variant 9 Failed to create hash map 'Invalid argument'!
  3550. FAIL
  3551. Failed to load prog 'Bad file descriptor'!
  3552. fd -1 is not pointing to valid bpf_map
  3553. #401/u bounds checks mixing signed and unsigned, variant 10 Failed to create hash map 'Invalid argument'!
  3554. FAIL
  3555. Unexpected error message!
  3556. EXP: unbounded min value
  3557. RES: fd -1 is not pointing to valid bpf_map
  3558.  
  3559. fd -1 is not pointing to valid bpf_map
  3560. #401/p bounds checks mixing signed and unsigned, variant 10 Failed to create hash map 'Invalid argument'!
  3561. FAIL
  3562. Unexpected error message!
  3563. EXP: unbounded min value
  3564. RES: fd -1 is not pointing to valid bpf_map
  3565.  
  3566. fd -1 is not pointing to valid bpf_map
  3567. #402/u bounds checks mixing signed and unsigned, variant 11 Failed to create hash map 'Invalid argument'!
  3568. FAIL
  3569. Unexpected error message!
  3570. EXP: unbounded min value
  3571. RES: fd -1 is not pointing to valid bpf_map
  3572.  
  3573. fd -1 is not pointing to valid bpf_map
  3574. #402/p bounds checks mixing signed and unsigned, variant 11 Failed to create hash map 'Invalid argument'!
  3575. FAIL
  3576. Unexpected error message!
  3577. EXP: unbounded min value
  3578. RES: fd -1 is not pointing to valid bpf_map
  3579.  
  3580. fd -1 is not pointing to valid bpf_map
  3581. #403/u bounds checks mixing signed and unsigned, variant 12 Failed to create hash map 'Invalid argument'!
  3582. FAIL
  3583. Unexpected error message!
  3584. EXP: unbounded min value
  3585. RES: fd -1 is not pointing to valid bpf_map
  3586.  
  3587. fd -1 is not pointing to valid bpf_map
  3588. #403/p bounds checks mixing signed and unsigned, variant 12 Failed to create hash map 'Invalid argument'!
  3589. FAIL
  3590. Unexpected error message!
  3591. EXP: unbounded min value
  3592. RES: fd -1 is not pointing to valid bpf_map
  3593.  
  3594. fd -1 is not pointing to valid bpf_map
  3595. #404/u bounds checks mixing signed and unsigned, variant 13 Failed to create hash map 'Invalid argument'!
  3596. FAIL
  3597. Unexpected error message!
  3598. EXP: unbounded min value
  3599. RES: fd -1 is not pointing to valid bpf_map
  3600.  
  3601. fd -1 is not pointing to valid bpf_map
  3602. #404/p bounds checks mixing signed and unsigned, variant 13 Failed to create hash map 'Invalid argument'!
  3603. FAIL
  3604. Unexpected error message!
  3605. EXP: unbounded min value
  3606. RES: fd -1 is not pointing to valid bpf_map
  3607.  
  3608. fd -1 is not pointing to valid bpf_map
  3609. #405/u bounds checks mixing signed and unsigned, variant 14 Failed to create hash map 'Invalid argument'!
  3610. FAIL
  3611. Unexpected error message!
  3612. EXP: R0 invalid mem access 'inv'
  3613. RES: fd -1 is not pointing to valid bpf_map
  3614.  
  3615. fd -1 is not pointing to valid bpf_map
  3616. #405/p bounds checks mixing signed and unsigned, variant 14 Failed to create hash map 'Invalid argument'!
  3617. FAIL
  3618. Unexpected error message!
  3619. EXP: R0 invalid mem access 'inv'
  3620. RES: fd -1 is not pointing to valid bpf_map
  3621.  
  3622. fd -1 is not pointing to valid bpf_map
  3623. #406/u bounds checks mixing signed and unsigned, variant 15 Failed to create hash map 'Invalid argument'!
  3624. FAIL
  3625. Unexpected error message!
  3626. EXP: unbounded min value
  3627. RES: fd -1 is not pointing to valid bpf_map
  3628.  
  3629. fd -1 is not pointing to valid bpf_map
  3630. #406/p bounds checks mixing signed and unsigned, variant 15 Failed to create hash map 'Invalid argument'!
  3631. FAIL
  3632. Unexpected error message!
  3633. EXP: unbounded min value
  3634. RES: fd -1 is not pointing to valid bpf_map
  3635.  
  3636. fd -1 is not pointing to valid bpf_map
  3637. #407/u subtraction bounds (map value) variant 1 Failed to create hash map 'Invalid argument'!
  3638. FAIL
  3639. Unexpected error message!
  3640. EXP: R0 max value is outside of the array range
  3641. RES: fd -1 is not pointing to valid bpf_map
  3642.  
  3643. fd -1 is not pointing to valid bpf_map
  3644. #407/p subtraction bounds (map value) variant 1 Failed to create hash map 'Invalid argument'!
  3645. FAIL
  3646. Unexpected error message!
  3647. EXP: R0 max value is outside of the array range
  3648. RES: fd -1 is not pointing to valid bpf_map
  3649.  
  3650. fd -1 is not pointing to valid bpf_map
  3651. #408/u subtraction bounds (map value) variant 2 Failed to create hash map 'Invalid argument'!
  3652. FAIL
  3653. Unexpected error message!
  3654. EXP: R0 min value is negative, either use unsigned index or do a if (index >=0) check.
  3655. RES: fd -1 is not pointing to valid bpf_map
  3656.  
  3657. fd -1 is not pointing to valid bpf_map
  3658. #408/p subtraction bounds (map value) variant 2 Failed to create hash map 'Invalid argument'!
  3659. FAIL
  3660. Unexpected error message!
  3661. EXP: R0 min value is negative, either use unsigned index or do a if (index >=0) check.
  3662. RES: fd -1 is not pointing to valid bpf_map
  3663.  
  3664. fd -1 is not pointing to valid bpf_map
  3665. #409/u bounds check based on zero-extended MOV Failed to create hash map 'Invalid argument'!
  3666. FAIL
  3667. Failed to load prog 'Bad file descriptor'!
  3668. fd -1 is not pointing to valid bpf_map
  3669. #409/p bounds check based on zero-extended MOV Failed to create hash map 'Invalid argument'!
  3670. FAIL
  3671. Failed to load prog 'Bad file descriptor'!
  3672. fd -1 is not pointing to valid bpf_map
  3673. #410/u bounds check based on sign-extended MOV. test1 Failed to create hash map 'Invalid argument'!
  3674. FAIL
  3675. Unexpected error message!
  3676. EXP: map_value pointer and 4294967295
  3677. RES: fd -1 is not pointing to valid bpf_map
  3678.  
  3679. fd -1 is not pointing to valid bpf_map
  3680. #410/p bounds check based on sign-extended MOV. test1 Failed to create hash map 'Invalid argument'!
  3681. FAIL
  3682. Unexpected error message!
  3683. EXP: map_value pointer and 4294967295
  3684. RES: fd -1 is not pointing to valid bpf_map
  3685.  
  3686. fd -1 is not pointing to valid bpf_map
  3687. #411/u bounds check based on sign-extended MOV. test2 Failed to create hash map 'Invalid argument'!
  3688. FAIL
  3689. Unexpected error message!
  3690. EXP: R0 min value is outside of the array range
  3691. RES: fd -1 is not pointing to valid bpf_map
  3692.  
  3693. fd -1 is not pointing to valid bpf_map
  3694. #411/p bounds check based on sign-extended MOV. test2 Failed to create hash map 'Invalid argument'!
  3695. FAIL
  3696. Unexpected error message!
  3697. EXP: R0 min value is outside of the array range
  3698. RES: fd -1 is not pointing to valid bpf_map
  3699.  
  3700. fd -1 is not pointing to valid bpf_map
  3701. #412/p bounds check based on reg_off + var_off + insn_off. test1 Failed to create hash map 'Invalid argument'!
  3702. FAIL
  3703. Unexpected error message!
  3704. EXP: value_size=8 off=1073741825
  3705. RES: fd -1 is not pointing to valid bpf_map
  3706.  
  3707. fd -1 is not pointing to valid bpf_map
  3708. #413/p bounds check based on reg_off + var_off + insn_off. test2 Failed to create hash map 'Invalid argument'!
  3709. FAIL
  3710. Unexpected error message!
  3711. EXP: value 1073741823
  3712. RES: fd -1 is not pointing to valid bpf_map
  3713.  
  3714. fd -1 is not pointing to valid bpf_map
  3715. #414/u bounds check after truncation of non-boundary-crossing range Failed to create hash map 'Invalid argument'!
  3716. FAIL
  3717. Failed to load prog 'Bad file descriptor'!
  3718. fd -1 is not pointing to valid bpf_map
  3719. #414/p bounds check after truncation of non-boundary-crossing range Failed to create hash map 'Invalid argument'!
  3720. FAIL
  3721. Failed to load prog 'Bad file descriptor'!
  3722. fd -1 is not pointing to valid bpf_map
  3723. #415/u bounds check after truncation of boundary-crossing range (1) Failed to create hash map 'Invalid argument'!
  3724. FAIL
  3725. Unexpected error message!
  3726. EXP: R0 unbounded memory access
  3727. RES: fd -1 is not pointing to valid bpf_map
  3728.  
  3729. fd -1 is not pointing to valid bpf_map
  3730. #415/p bounds check after truncation of boundary-crossing range (1) Failed to create hash map 'Invalid argument'!
  3731. FAIL
  3732. Unexpected error message!
  3733. EXP: R0 unbounded memory access
  3734. RES: fd -1 is not pointing to valid bpf_map
  3735.  
  3736. fd -1 is not pointing to valid bpf_map
  3737. #416/u bounds check after truncation of boundary-crossing range (2) Failed to create hash map 'Invalid argument'!
  3738. FAIL
  3739. Unexpected error message!
  3740. EXP: R0 unbounded memory access
  3741. RES: fd -1 is not pointing to valid bpf_map
  3742.  
  3743. fd -1 is not pointing to valid bpf_map
  3744. #416/p bounds check after truncation of boundary-crossing range (2) Failed to create hash map 'Invalid argument'!
  3745. FAIL
  3746. Unexpected error message!
  3747. EXP: R0 unbounded memory access
  3748. RES: fd -1 is not pointing to valid bpf_map
  3749.  
  3750. fd -1 is not pointing to valid bpf_map
  3751. #417/u bounds check after wrapping 32-bit addition Failed to create hash map 'Invalid argument'!
  3752. FAIL
  3753. Failed to load prog 'Bad file descriptor'!
  3754. fd -1 is not pointing to valid bpf_map
  3755. #417/p bounds check after wrapping 32-bit addition Failed to create hash map 'Invalid argument'!
  3756. FAIL
  3757. Failed to load prog 'Bad file descriptor'!
  3758. fd -1 is not pointing to valid bpf_map
  3759. #418/u bounds check after shift with oversized count operand Failed to create hash map 'Invalid argument'!
  3760. FAIL
  3761. Unexpected error message!
  3762. EXP: R0 max value is outside of the array range
  3763. RES: fd -1 is not pointing to valid bpf_map
  3764.  
  3765. fd -1 is not pointing to valid bpf_map
  3766. #418/p bounds check after shift with oversized count operand Failed to create hash map 'Invalid argument'!
  3767. FAIL
  3768. Unexpected error message!
  3769. EXP: R0 max value is outside of the array range
  3770. RES: fd -1 is not pointing to valid bpf_map
  3771.  
  3772. fd -1 is not pointing to valid bpf_map
  3773. #419/u bounds check after right shift of maybe-negative number Failed to create hash map 'Invalid argument'!
  3774. FAIL
  3775. Unexpected error message!
  3776. EXP: R0 unbounded memory access
  3777. RES: fd -1 is not pointing to valid bpf_map
  3778.  
  3779. fd -1 is not pointing to valid bpf_map
  3780. #419/p bounds check after right shift of maybe-negative number Failed to create hash map 'Invalid argument'!
  3781. FAIL
  3782. Unexpected error message!
  3783. EXP: R0 unbounded memory access
  3784. RES: fd -1 is not pointing to valid bpf_map
  3785.  
  3786. fd -1 is not pointing to valid bpf_map
  3787. #420/u bounds check map access with off+size signed 32bit overflow. test1 Failed to create hash map 'Invalid argument'!
  3788. FAIL
  3789. Unexpected error message!
  3790. EXP: map_value pointer and 2147483646
  3791. RES: fd -1 is not pointing to valid bpf_map
  3792.  
  3793. fd -1 is not pointing to valid bpf_map
  3794. #420/p bounds check map access with off+size signed 32bit overflow. test1 Failed to create hash map 'Invalid argument'!
  3795. FAIL
  3796. Unexpected error message!
  3797. EXP: map_value pointer and 2147483646
  3798. RES: fd -1 is not pointing to valid bpf_map
  3799.  
  3800. fd -1 is not pointing to valid bpf_map
  3801. #421/u bounds check map access with off+size signed 32bit overflow. test2 Failed to create hash map 'Invalid argument'!
  3802. FAIL
  3803. Unexpected error message!
  3804. EXP: pointer offset 1073741822
  3805. RES: fd -1 is not pointing to valid bpf_map
  3806.  
  3807. fd -1 is not pointing to valid bpf_map
  3808. #421/p bounds check map access with off+size signed 32bit overflow. test2 Failed to create hash map 'Invalid argument'!
  3809. FAIL
  3810. Unexpected error message!
  3811. EXP: pointer offset 1073741822
  3812. RES: fd -1 is not pointing to valid bpf_map
  3813.  
  3814. fd -1 is not pointing to valid bpf_map
  3815. #422/u bounds check map access with off+size signed 32bit overflow. test3 Failed to create hash map 'Invalid argument'!
  3816. FAIL
  3817. Unexpected error message!
  3818. EXP: pointer offset -1073741822
  3819. RES: fd -1 is not pointing to valid bpf_map
  3820.  
  3821. fd -1 is not pointing to valid bpf_map
  3822. #422/p bounds check map access with off+size signed 32bit overflow. test3 Failed to create hash map 'Invalid argument'!
  3823. FAIL
  3824. Unexpected error message!
  3825. EXP: pointer offset -1073741822
  3826. RES: fd -1 is not pointing to valid bpf_map
  3827.  
  3828. fd -1 is not pointing to valid bpf_map
  3829. #423/u bounds check map access with off+size signed 32bit overflow. test4 Failed to create hash map 'Invalid argument'!
  3830. FAIL
  3831. Unexpected error message!
  3832. EXP: map_value pointer and 1000000000000
  3833. RES: fd -1 is not pointing to valid bpf_map
  3834.  
  3835. fd -1 is not pointing to valid bpf_map
  3836. #423/p bounds check map access with off+size signed 32bit overflow. test4 Failed to create hash map 'Invalid argument'!
  3837. FAIL
  3838. Unexpected error message!
  3839. EXP: map_value pointer and 1000000000000
  3840. RES: fd -1 is not pointing to valid bpf_map
  3841.  
  3842. fd -1 is not pointing to valid bpf_map
  3843. #424/u pointer/scalar confusion in state equality check (way 1) Failed to create hash map 'Invalid argument'!
  3844. FAIL
  3845. Unexpected error message!
  3846. EXP: R0 leaks addr as return value
  3847. RES: fd -1 is not pointing to valid bpf_map
  3848.  
  3849. fd -1 is not pointing to valid bpf_map
  3850. #424/p pointer/scalar confusion in state equality check (way 1) Failed to create hash map 'Invalid argument'!
  3851. FAIL
  3852. Failed to load prog 'Bad file descriptor'!
  3853. fd -1 is not pointing to valid bpf_map
  3854. #425/u pointer/scalar confusion in state equality check (way 2) Failed to create hash map 'Invalid argument'!
  3855. FAIL
  3856. Unexpected error message!
  3857. EXP: R0 leaks addr as return value
  3858. RES: fd -1 is not pointing to valid bpf_map
  3859.  
  3860. fd -1 is not pointing to valid bpf_map
  3861. #425/p pointer/scalar confusion in state equality check (way 2) Failed to create hash map 'Invalid argument'!
  3862. FAIL
  3863. Failed to load prog 'Bad file descriptor'!
  3864. fd -1 is not pointing to valid bpf_map
  3865. #426/p variable-offset ctx access FAIL
  3866. Unexpected error message!
  3867. EXP: variable ctx access var_off=(0x0; 0x4)
  3868. RES:
  3869. #427/p variable-offset stack access FAIL
  3870. Unexpected error message!
  3871. EXP: variable stack access var_off=(0xfffffffffffffff8; 0x4)
  3872. RES:
  3873. #428/p indirect variable-offset stack access Failed to create hash map 'Invalid argument'!
  3874. FAIL
  3875. Unexpected error message!
  3876. EXP: variable stack read R2
  3877. RES:
  3878. #429/u direct stack access with 32-bit wraparound. test1 FAIL
  3879. Unexpected error message!
  3880. EXP: fp pointer and 2147483647
  3881. RES: 0: (bf) r1 = r10
  3882. 1: (07) r1 += 2147483647
  3883. 2: (07) r1 += 2147483647
  3884. R1 pointer arithmetic prohibited
  3885.  
  3886. 0: (bf) r1 = r10
  3887. 1: (07) r1 += 2147483647
  3888. 2: (07) r1 += 2147483647
  3889. R1 pointer arithmetic prohibited
  3890. #429/p direct stack access with 32-bit wraparound. test1 FAIL
  3891. Unexpected error message!
  3892. EXP: fp pointer and 2147483647
  3893. RES: 0: (bf) r1 = r10
  3894. 1: (07) r1 += 2147483647
  3895. 2: (07) r1 += 2147483647
  3896. 3: (b4) (u32) r0 = (u32) 0
  3897. 4: (73) *(u8 *)(r1 +0) = r0
  3898. R1 invalid mem access 'inv'
  3899.  
  3900. 0: (bf) r1 = r10
  3901. 1: (07) r1 += 2147483647
  3902. 2: (07) r1 += 2147483647
  3903. 3: (b4) (u32) r0 = (u32) 0
  3904. 4: (73) *(u8 *)(r1 +0) = r0
  3905. R1 invalid mem access 'inv'
  3906. #430/u direct stack access with 32-bit wraparound. test2 FAIL
  3907. Unexpected error message!
  3908. EXP: fp pointer and 1073741823
  3909. RES: 0: (bf) r1 = r10
  3910. 1: (07) r1 += 1073741823
  3911. 2: (07) r1 += 1073741823
  3912. R1 pointer arithmetic prohibited
  3913.  
  3914. 0: (bf) r1 = r10
  3915. 1: (07) r1 += 1073741823
  3916. 2: (07) r1 += 1073741823
  3917. R1 pointer arithmetic prohibited
  3918. #430/p direct stack access with 32-bit wraparound. test2 FAIL
  3919. Unexpected error message!
  3920. EXP: fp pointer and 1073741823
  3921. RES: 0: (bf) r1 = r10
  3922. 1: (07) r1 += 1073741823
  3923. 2: (07) r1 += 1073741823
  3924. 3: (b4) (u32) r0 = (u32) 0
  3925. 4: (73) *(u8 *)(r1 +0) = r0
  3926. R1 invalid mem access 'inv'
  3927.  
  3928. 0: (bf) r1 = r10
  3929. 1: (07) r1 += 1073741823
  3930. 2: (07) r1 += 1073741823
  3931. 3: (b4) (u32) r0 = (u32) 0
  3932. 4: (73) *(u8 *)(r1 +0) = r0
  3933. R1 invalid mem access 'inv'
  3934. #431/u direct stack access with 32-bit wraparound. test3 FAIL
  3935. Unexpected error message!
  3936. EXP: fp pointer offset 1073741822
  3937. RES: 0: (bf) r1 = r10
  3938. 1: (07) r1 += 536870911
  3939. 2: (07) r1 += 536870911
  3940. R1 pointer arithmetic prohibited
  3941.  
  3942. 0: (bf) r1 = r10
  3943. 1: (07) r1 += 536870911
  3944. 2: (07) r1 += 536870911
  3945. R1 pointer arithmetic prohibited
  3946. #431/p direct stack access with 32-bit wraparound. test3 FAIL
  3947. Unexpected error message!
  3948. EXP: fp pointer offset 1073741822
  3949. RES: 0: (bf) r1 = r10
  3950. 1: (07) r1 += 536870911
  3951. 2: (07) r1 += 536870911
  3952. 3: (b4) (u32) r0 = (u32) 0
  3953. 4: (73) *(u8 *)(r1 +0) = r0
  3954. R1 invalid mem access 'inv'
  3955.  
  3956. 0: (bf) r1 = r10
  3957. 1: (07) r1 += 536870911
  3958. 2: (07) r1 += 536870911
  3959. 3: (b4) (u32) r0 = (u32) 0
  3960. 4: (73) *(u8 *)(r1 +0) = r0
  3961. R1 invalid mem access 'inv'
  3962. #432/p liveness pruning and write screening FAIL
  3963. Unexpected error message!
  3964. EXP: R0 !read_ok
  3965. RES:
  3966. #433/u varlen_map_value_access pruning Failed to create hash map 'Invalid argument'!
  3967. FAIL
  3968. Unexpected error message!
  3969. EXP: R0 leaks addr
  3970. RES: fd -1 is not pointing to valid bpf_map
  3971.  
  3972. fd -1 is not pointing to valid bpf_map
  3973. #433/p varlen_map_value_access pruning Failed to create hash map 'Invalid argument'!
  3974. FAIL
  3975. Unexpected error message!
  3976. EXP: R0 unbounded memory access
  3977. RES: fd -1 is not pointing to valid bpf_map
  3978.  
  3979. fd -1 is not pointing to valid bpf_map
  3980. #434/u invalid 64-bit BPF_END FAIL
  3981. Unexpected error message!
  3982. EXP: unknown opcode d7
  3983. RES: 0: (b4) (u32) r0 = (u32) 0
  3984. 1: (d7) r0 endian 32
  3985. BPF_END uses reserved fields
  3986.  
  3987. 0: (b4) (u32) r0 = (u32) 0
  3988. 1: (d7) r0 endian 32
  3989. BPF_END uses reserved fields
  3990. #434/p invalid 64-bit BPF_END FAIL
  3991. Unexpected error message!
  3992. EXP: unknown opcode d7
  3993. RES: 0: (b4) (u32) r0 = (u32) 0
  3994. 1: (d7) r0 endian 32
  3995. BPF_END uses reserved fields
  3996.  
  3997. 0: (b4) (u32) r0 = (u32) 0
  3998. 1: (d7) r0 endian 32
  3999. BPF_END uses reserved fields
  4000. #435/p XDP, using ifindex from netdev FAIL
  4001. Failed to load prog 'Invalid argument'!
  4002. #436/p meta access, test1 FAIL
  4003. Failed to load prog 'Invalid argument'!
  4004. #437/p meta access, test2 FAIL
  4005. Unexpected error message!
  4006. EXP: invalid access to packet, off=-8
  4007. RES:
  4008. #438/p meta access, test3 FAIL
  4009. Unexpected error message!
  4010. EXP: invalid access to packet
  4011. RES:
  4012. #439/p meta access, test4 FAIL
  4013. Unexpected error message!
  4014. EXP: invalid access to packet
  4015. RES:
  4016. #440/p meta access, test5 FAIL
  4017. Unexpected error message!
  4018. EXP: R3 !read_ok
  4019. RES:
  4020. #441/p meta access, test6 FAIL
  4021. Unexpected error message!
  4022. EXP: invalid access to packet
  4023. RES:
  4024. #442/p meta access, test7 FAIL
  4025. Failed to load prog 'Invalid argument'!
  4026. #443/p meta access, test8 FAIL
  4027. Failed to load prog 'Invalid argument'!
  4028. #444/p meta access, test9 FAIL
  4029. Unexpected error message!
  4030. EXP: invalid access to packet
  4031. RES:
  4032. #445/p meta access, test10 FAIL
  4033. Unexpected error message!
  4034. EXP: invalid access to packet
  4035. RES:
  4036. #446/p meta access, test11 FAIL
  4037. Failed to load prog 'Invalid argument'!
  4038. #447/p meta access, test12 FAIL
  4039. Failed to load prog 'Invalid argument'!
  4040. #448/p arithmetic ops make PTR_TO_CTX unusable FAIL
  4041. Unexpected error message!
  4042. EXP: dereference of modified ctx ptr R1 off=68+8, ctx+const is allowed, ctx+const+const is not
  4043. RES: 0: (07) r1 += 68
  4044. 1: (61) r0 = *(u32 *)(r1 +8)
  4045. R1 invalid mem access 'inv'
  4046.  
  4047. 0: (07) r1 += 68
  4048. 1: (61) r0 = *(u32 *)(r1 +8)
  4049. R1 invalid mem access 'inv'
  4050. #449/p pkt_end - pkt_start is allowed FAIL
  4051. Failed to load prog 'Permission denied'!
  4052. 0: (61) r0 = *(u32 *)(r1 +80)
  4053. invalid bpf_context access off=80 size=4
  4054. #450/p XDP pkt read, pkt_end mangling, bad access 1 FAIL
  4055. Unexpected error message!
  4056. EXP: R3 pointer arithmetic on PTR_TO_PACKET_END
  4057. RES:
  4058. #451/p XDP pkt read, pkt_end mangling, bad access 2 FAIL
  4059. Unexpected error message!
  4060. EXP: R3 pointer arithmetic on PTR_TO_PACKET_END
  4061. RES:
  4062. #452/p XDP pkt read, pkt_data' > pkt_end, good access FAIL
  4063. Failed to load prog 'Invalid argument'!
  4064. #453/p XDP pkt read, pkt_data' > pkt_end, bad access 1 FAIL
  4065. Unexpected error message!
  4066. EXP: R1 offset is outside of the packet
  4067. RES:
  4068. #454/p XDP pkt read, pkt_data' > pkt_end, bad access 2 FAIL
  4069. Unexpected error message!
  4070. EXP: R1 offset is outside of the packet
  4071. RES:
  4072. #455/p XDP pkt read, pkt_end > pkt_data', good access FAIL
  4073. Failed to load prog 'Invalid argument'!
  4074. #456/p XDP pkt read, pkt_end > pkt_data', bad access 1 FAIL
  4075. Unexpected error message!
  4076. EXP: R1 offset is outside of the packet
  4077. RES:
  4078. #457/p XDP pkt read, pkt_end > pkt_data', bad access 2 FAIL
  4079. Unexpected error message!
  4080. EXP: R1 offset is outside of the packet
  4081. RES:
  4082. #458/p XDP pkt read, pkt_data' < pkt_end, good access FAIL
  4083. Failed to load prog 'Invalid argument'!
  4084. #459/p XDP pkt read, pkt_data' < pkt_end, bad access 1 FAIL
  4085. Unexpected error message!
  4086. EXP: R1 offset is outside of the packet
  4087. RES:
  4088. #460/p XDP pkt read, pkt_data' < pkt_end, bad access 2 FAIL
  4089. Unexpected error message!
  4090. EXP: R1 offset is outside of the packet
  4091. RES:
  4092. #461/p XDP pkt read, pkt_end < pkt_data', good access FAIL
  4093. Failed to load prog 'Invalid argument'!
  4094. #462/p XDP pkt read, pkt_end < pkt_data', bad access 1 FAIL
  4095. Unexpected error message!
  4096. EXP: R1 offset is outside of the packet
  4097. RES:
  4098. #463/p XDP pkt read, pkt_end < pkt_data', bad access 2 FAIL
  4099. Unexpected error message!
  4100. EXP: R1 offset is outside of the packet
  4101. RES:
  4102. #464/p XDP pkt read, pkt_data' >= pkt_end, good access FAIL
  4103. Failed to load prog 'Invalid argument'!
  4104. #465/p XDP pkt read, pkt_data' >= pkt_end, bad access 1 FAIL
  4105. Unexpected error message!
  4106. EXP: R1 offset is outside of the packet
  4107. RES:
  4108. #466/p XDP pkt read, pkt_data' >= pkt_end, bad access 2 FAIL
  4109. Unexpected error message!
  4110. EXP: R1 offset is outside of the packet
  4111. RES:
  4112. #467/p XDP pkt read, pkt_end >= pkt_data', good access FAIL
  4113. Failed to load prog 'Invalid argument'!
  4114. #468/p XDP pkt read, pkt_end >= pkt_data', bad access 1 FAIL
  4115. Unexpected error message!
  4116. EXP: R1 offset is outside of the packet
  4117. RES:
  4118. #469/p XDP pkt read, pkt_end >= pkt_data', bad access 2 FAIL
  4119. Unexpected error message!
  4120. EXP: R1 offset is outside of the packet
  4121. RES:
  4122. #470/p XDP pkt read, pkt_data' <= pkt_end, good access FAIL
  4123. Failed to load prog 'Invalid argument'!
  4124. #471/p XDP pkt read, pkt_data' <= pkt_end, bad access 1 FAIL
  4125. Unexpected error message!
  4126. EXP: R1 offset is outside of the packet
  4127. RES:
  4128. #472/p XDP pkt read, pkt_data' <= pkt_end, bad access 2 FAIL
  4129. Unexpected error message!
  4130. EXP: R1 offset is outside of the packet
  4131. RES:
  4132. #473/p XDP pkt read, pkt_end <= pkt_data', good access FAIL
  4133. Failed to load prog 'Invalid argument'!
  4134. #474/p XDP pkt read, pkt_end <= pkt_data', bad access 1 FAIL
  4135. Unexpected error message!
  4136. EXP: R1 offset is outside of the packet
  4137. RES:
  4138. #475/p XDP pkt read, pkt_end <= pkt_data', bad access 2 FAIL
  4139. Unexpected error message!
  4140. EXP: R1 offset is outside of the packet
  4141. RES:
  4142. #476/p XDP pkt read, pkt_meta' > pkt_data, good access FAIL
  4143. Failed to load prog 'Invalid argument'!
  4144. #477/p XDP pkt read, pkt_meta' > pkt_data, bad access 1 FAIL
  4145. Unexpected error message!
  4146. EXP: R1 offset is outside of the packet
  4147. RES:
  4148. #478/p XDP pkt read, pkt_meta' > pkt_data, bad access 2 FAIL
  4149. Unexpected error message!
  4150. EXP: R1 offset is outside of the packet
  4151. RES:
  4152. #479/p XDP pkt read, pkt_data > pkt_meta', good access FAIL
  4153. Failed to load prog 'Invalid argument'!
  4154. #480/p XDP pkt read, pkt_data > pkt_meta', bad access 1 FAIL
  4155. Unexpected error message!
  4156. EXP: R1 offset is outside of the packet
  4157. RES:
  4158. #481/p XDP pkt read, pkt_data > pkt_meta', bad access 2 FAIL
  4159. Unexpected error message!
  4160. EXP: R1 offset is outside of the packet
  4161. RES:
  4162. #482/p XDP pkt read, pkt_meta' < pkt_data, good access FAIL
  4163. Failed to load prog 'Invalid argument'!
  4164. #483/p XDP pkt read, pkt_meta' < pkt_data, bad access 1 FAIL
  4165. Unexpected error message!
  4166. EXP: R1 offset is outside of the packet
  4167. RES:
  4168. #484/p XDP pkt read, pkt_meta' < pkt_data, bad access 2 FAIL
  4169. Unexpected error message!
  4170. EXP: R1 offset is outside of the packet
  4171. RES:
  4172. #485/p XDP pkt read, pkt_data < pkt_meta', good access FAIL
  4173. Failed to load prog 'Invalid argument'!
  4174. #486/p XDP pkt read, pkt_data < pkt_meta', bad access 1 FAIL
  4175. Unexpected error message!
  4176. EXP: R1 offset is outside of the packet
  4177. RES:
  4178. #487/p XDP pkt read, pkt_data < pkt_meta', bad access 2 FAIL
  4179. Unexpected error message!
  4180. EXP: R1 offset is outside of the packet
  4181. RES:
  4182. #488/p XDP pkt read, pkt_meta' >= pkt_data, good access FAIL
  4183. Failed to load prog 'Invalid argument'!
  4184. #489/p XDP pkt read, pkt_meta' >= pkt_data, bad access 1 FAIL
  4185. Unexpected error message!
  4186. EXP: R1 offset is outside of the packet
  4187. RES:
  4188. #490/p XDP pkt read, pkt_meta' >= pkt_data, bad access 2 FAIL
  4189. Unexpected error message!
  4190. EXP: R1 offset is outside of the packet
  4191. RES:
  4192. #491/p XDP pkt read, pkt_data >= pkt_meta', good access FAIL
  4193. Failed to load prog 'Invalid argument'!
  4194. #492/p XDP pkt read, pkt_data >= pkt_meta', bad access 1 FAIL
  4195. Unexpected error message!
  4196. EXP: R1 offset is outside of the packet
  4197. RES:
  4198. #493/p XDP pkt read, pkt_data >= pkt_meta', bad access 2 FAIL
  4199. Unexpected error message!
  4200. EXP: R1 offset is outside of the packet
  4201. RES:
  4202. #494/p XDP pkt read, pkt_meta' <= pkt_data, good access FAIL
  4203. Failed to load prog 'Invalid argument'!
  4204. #495/p XDP pkt read, pkt_meta' <= pkt_data, bad access 1 FAIL
  4205. Unexpected error message!
  4206. EXP: R1 offset is outside of the packet
  4207. RES:
  4208. #496/p XDP pkt read, pkt_meta' <= pkt_data, bad access 2 FAIL
  4209. Unexpected error message!
  4210. EXP: R1 offset is outside of the packet
  4211. RES:
  4212. #497/p XDP pkt read, pkt_data <= pkt_meta', good access FAIL
  4213. Failed to load prog 'Invalid argument'!
  4214. #498/p XDP pkt read, pkt_data <= pkt_meta', bad access 1 FAIL
  4215. Unexpected error message!
  4216. EXP: R1 offset is outside of the packet
  4217. RES:
  4218. #499/p XDP pkt read, pkt_data <= pkt_meta', bad access 2 FAIL
  4219. Unexpected error message!
  4220. EXP: R1 offset is outside of the packet
  4221. RES:
  4222. #500/u check deducing bounds from const, 1 FAIL
  4223. Unexpected error message!
  4224. EXP: R0 tried to subtract pointer from scalar
  4225. RES: 0: (b7) r0 = 1
  4226. 1: (75) if r0 s>= 0x1 goto pc+0
  4227. R0=imm1 R1=ctx R10=fp
  4228. 2: (1f) r0 -= r1
  4229. R1 pointer arithmetic prohibited
  4230.  
  4231. 0: (b7) r0 = 1
  4232. 1: (75) if r0 s>= 0x1 goto pc+0
  4233. R0=imm1 R1=ctx R10=fp
  4234. 2: (1f) r0 -= r1
  4235. R1 pointer arithmetic prohibited
  4236. #500/p check deducing bounds from const, 1 FAIL
  4237. Unexpected success to load!
  4238. 0: (b7) r0 = 1
  4239. 1: (75) if r0 s>= 0x1 goto pc+0
  4240. R0=imm1 R1=ctx R10=fp
  4241. 2: (1f) r0 -= r1
  4242. 3: (95) exit
  4243.  
  4244. from 1 to 2: safe
  4245. #501/u check deducing bounds from const, 2 FAIL
  4246. Failed to load prog 'Invalid argument'!
  4247. 0: (b7) r0 = 1
  4248. 1: (75) if r0 s>= 0x1 goto pc+1
  4249. R0=imm1 R1=ctx R10=fp
  4250. 2: (95) exit
  4251.  
  4252. from 1 to 3: R0=imm1 R1=ctx R10=fp
  4253. 3: (d5) if r0 (null) 0x1 goto pc+1
  4254. invalid BPF_JMP opcode d0
  4255. #501/p check deducing bounds from const, 2 FAIL
  4256. Failed to load prog 'Invalid argument'!
  4257. 0: (b7) r0 = 1
  4258. 1: (75) if r0 s>= 0x1 goto pc+1
  4259. R0=imm1 R1=ctx R10=fp
  4260. 2: (95) exit
  4261.  
  4262. from 1 to 3: R0=imm1 R1=ctx R10=fp
  4263. 3: (d5) if r0 (null) 0x1 goto pc+1
  4264. invalid BPF_JMP opcode d0
  4265. #502/u check deducing bounds from const, 3 FAIL
  4266. Unexpected error message!
  4267. EXP: R0 tried to subtract pointer from scalar
  4268. RES: 0: (b7) r0 = 0
  4269. 1: (d5) if r0 (null) 0x0 goto pc+0
  4270. invalid BPF_JMP opcode d0
  4271.  
  4272. 0: (b7) r0 = 0
  4273. 1: (d5) if r0 (null) 0x0 goto pc+0
  4274. invalid BPF_JMP opcode d0
  4275. #502/p check deducing bounds from const, 3 FAIL
  4276. Unexpected error message!
  4277. EXP: R0 tried to subtract pointer from scalar
  4278. RES: 0: (b7) r0 = 0
  4279. 1: (d5) if r0 (null) 0x0 goto pc+0
  4280. invalid BPF_JMP opcode d0
  4281.  
  4282. 0: (b7) r0 = 0
  4283. 1: (d5) if r0 (null) 0x0 goto pc+0
  4284. invalid BPF_JMP opcode d0
  4285. #503/u check deducing bounds from const, 4 FAIL
  4286. Failed to load prog 'Invalid argument'!
  4287. 0: (b7) r0 = 0
  4288. 1: (d5) if r0 (null) 0x0 goto pc+1
  4289. invalid BPF_JMP opcode d0
  4290. #503/p check deducing bounds from const, 4 FAIL
  4291. Failed to load prog 'Invalid argument'!
  4292. 0: (b7) r0 = 0
  4293. 1: (d5) if r0 (null) 0x0 goto pc+1
  4294. invalid BPF_JMP opcode d0
  4295. #504/u check deducing bounds from const, 5 FAIL
  4296. Unexpected error message!
  4297. EXP: R0 tried to subtract pointer from scalar
  4298. RES: 0: (b7) r0 = 0
  4299. 1: (75) if r0 s>= 0x0 goto pc+1
  4300. R0=imm0 R1=ctx R10=fp
  4301. 2: (1f) r0 -= r1
  4302. R1 pointer arithmetic prohibited
  4303.  
  4304. 0: (b7) r0 = 0
  4305. 1: (75) if r0 s>= 0x0 goto pc+1
  4306. R0=imm0 R1=ctx R10=fp
  4307. 2: (1f) r0 -= r1
  4308. R1 pointer arithmetic prohibited
  4309. #504/p check deducing bounds from const, 5 FAIL
  4310. Unexpected success to load!
  4311. 0: (b7) r0 = 0
  4312. 1: (75) if r0 s>= 0x0 goto pc+1
  4313. R0=imm0 R1=ctx R10=fp
  4314. 2: (1f) r0 -= r1
  4315. 3: (95) exit
  4316.  
  4317. from 1 to 3: safe
  4318. #505/u check deducing bounds from const, 6 FAIL
  4319. Unexpected error message!
  4320. EXP: R0 tried to subtract pointer from scalar
  4321. RES: 0: (b7) r0 = 0
  4322. 1: (75) if r0 s>= 0x0 goto pc+1
  4323. R0=imm0 R1=ctx R10=fp
  4324. 2: (95) exit
  4325.  
  4326. from 1 to 3: R0=imm0 R1=ctx R10=fp
  4327. 3: (1f) r0 -= r1
  4328. R1 pointer arithmetic prohibited
  4329.  
  4330. 0: (b7) r0 = 0
  4331. 1: (75) if r0 s>= 0x0 goto pc+1
  4332. R0=imm0 R1=ctx R10=fp
  4333. 2: (95) exit
  4334.  
  4335. from 1 to 3: R0=imm0 R1=ctx R10=fp
  4336. 3: (1f) r0 -= r1
  4337. R1 pointer arithmetic prohibited
  4338. #505/p check deducing bounds from const, 6 FAIL
  4339. Unexpected success to load!
  4340. 0: (b7) r0 = 0
  4341. 1: (75) if r0 s>= 0x0 goto pc+1
  4342. R0=imm0 R1=ctx R10=fp
  4343. 2: (95) exit
  4344.  
  4345. from 1 to 3: R0=imm0 R1=ctx R10=fp
  4346. 3: (1f) r0 -= r1
  4347. 4: (95) exit
  4348. #506/u check deducing bounds from const, 7 FAIL
  4349. Unexpected error message!
  4350. EXP: dereference of modified ctx ptr
  4351. RES: 0: (b7) r0 = -1
  4352. 1: (75) if r0 s>= 0x0 goto pc+0
  4353. R0=imm-1 R1=ctx R10=fp
  4354. 2: (1f) r1 -= r0
  4355. R1 pointer arithmetic prohibited
  4356.  
  4357. 0: (b7) r0 = -1
  4358. 1: (75) if r0 s>= 0x0 goto pc+0
  4359. R0=imm-1 R1=ctx R10=fp
  4360. 2: (1f) r1 -= r0
  4361. R1 pointer arithmetic prohibited
  4362. #506/p check deducing bounds from const, 7 FAIL
  4363. Unexpected error message!
  4364. EXP: dereference of modified ctx ptr
  4365. RES: 0: (b7) r0 = -1
  4366. 1: (75) if r0 s>= 0x0 goto pc+0
  4367. R0=imm-1 R1=ctx R10=fp
  4368. 2: (1f) r1 -= r0
  4369. 3: (61) r0 = *(u32 *)(r1 +8)
  4370. R1 invalid mem access 'inv'
  4371.  
  4372. 0: (b7) r0 = -1
  4373. 1: (75) if r0 s>= 0x0 goto pc+0
  4374. R0=imm-1 R1=ctx R10=fp
  4375. 2: (1f) r1 -= r0
  4376. 3: (61) r0 = *(u32 *)(r1 +8)
  4377. R1 invalid mem access 'inv'
  4378. #507/u check deducing bounds from const, 8 FAIL
  4379. Unexpected error message!
  4380. EXP: dereference of modified ctx ptr
  4381. RES: 0: (b7) r0 = -1
  4382. 1: (75) if r0 s>= 0x0 goto pc+1
  4383. R0=imm-1 R1=ctx R10=fp
  4384. 2: (0f) r1 += r0
  4385. R1 pointer arithmetic prohibited
  4386.  
  4387. 0: (b7) r0 = -1
  4388. 1: (75) if r0 s>= 0x0 goto pc+1
  4389. R0=imm-1 R1=ctx R10=fp
  4390. 2: (0f) r1 += r0
  4391. R1 pointer arithmetic prohibited
  4392. #507/p check deducing bounds from const, 8 FAIL
  4393. Unexpected error message!
  4394. EXP: dereference of modified ctx ptr
  4395. RES: 0: (b7) r0 = -1
  4396. 1: (75) if r0 s>= 0x0 goto pc+1
  4397. R0=imm-1 R1=ctx R10=fp
  4398. 2: (0f) r1 += r0
  4399. 3: (61) r0 = *(u32 *)(r1 +8)
  4400. R1 invalid mem access 'inv'
  4401.  
  4402. 0: (b7) r0 = -1
  4403. 1: (75) if r0 s>= 0x0 goto pc+1
  4404. R0=imm-1 R1=ctx R10=fp
  4405. 2: (0f) r1 += r0
  4406. 3: (61) r0 = *(u32 *)(r1 +8)
  4407. R1 invalid mem access 'inv'
  4408. #508/u check deducing bounds from const, 9 FAIL
  4409. Unexpected error message!
  4410. EXP: R0 tried to subtract pointer from scalar
  4411. RES: 0: (b7) r0 = 0
  4412. 1: (75) if r0 s>= 0x0 goto pc+0
  4413. R0=imm0 R1=ctx R10=fp
  4414. 2: (1f) r0 -= r1
  4415. R1 pointer arithmetic prohibited
  4416.  
  4417. 0: (b7) r0 = 0
  4418. 1: (75) if r0 s>= 0x0 goto pc+0
  4419. R0=imm0 R1=ctx R10=fp
  4420. 2: (1f) r0 -= r1
  4421. R1 pointer arithmetic prohibited
  4422. #508/p check deducing bounds from const, 9 FAIL
  4423. Unexpected success to load!
  4424. 0: (b7) r0 = 0
  4425. 1: (75) if r0 s>= 0x0 goto pc+0
  4426. R0=imm0 R1=ctx R10=fp
  4427. 2: (1f) r0 -= r1
  4428. 3: (95) exit
  4429.  
  4430. from 1 to 2: safe
  4431. #509/u check deducing bounds from const, 10 FAIL
  4432. Unexpected error message!
  4433. EXP: math between ctx pointer and register with unbounded min value is not allowed
  4434. RES: 0: (b7) r0 = 0
  4435. 1: (d5) if r0 (null) 0x0 goto pc+0
  4436. invalid BPF_JMP opcode d0
  4437.  
  4438. 0: (b7) r0 = 0
  4439. 1: (d5) if r0 (null) 0x0 goto pc+0
  4440. invalid BPF_JMP opcode d0
  4441. #509/p check deducing bounds from const, 10 FAIL
  4442. Unexpected error message!
  4443. EXP: math between ctx pointer and register with unbounded min value is not allowed
  4444. RES: 0: (b7) r0 = 0
  4445. 1: (d5) if r0 (null) 0x0 goto pc+0
  4446. invalid BPF_JMP opcode d0
  4447.  
  4448. 0: (b7) r0 = 0
  4449. 1: (d5) if r0 (null) 0x0 goto pc+0
  4450. invalid BPF_JMP opcode d0
  4451. #510/p bpf_exit with invalid return code. test1 FAIL
  4452. Unexpected error message!
  4453. EXP: R0 has value (0x0; 0xffffffff)
  4454. RES:
  4455. #511/p bpf_exit with invalid return code. test2 FAIL
  4456. Failed to load prog 'Invalid argument'!
  4457. #512/p bpf_exit with invalid return code. test3 FAIL
  4458. Unexpected error message!
  4459. EXP: R0 has value (0x0; 0x3)
  4460. RES:
  4461. #513/p bpf_exit with invalid return code. test4 FAIL
  4462. Failed to load prog 'Invalid argument'!
  4463. #514/p bpf_exit with invalid return code. test5 FAIL
  4464. Unexpected error message!
  4465. EXP: R0 has value (0x2; 0x0)
  4466. RES:
  4467. #515/p bpf_exit with invalid return code. test6 FAIL
  4468. Unexpected error message!
  4469. EXP: R0 is not a known value (ctx)
  4470. RES:
  4471. #516/p bpf_exit with invalid return code. test7 FAIL
  4472. Unexpected error message!
  4473. EXP: R0 has unknown scalar value
  4474. RES:
  4475. #517/p calls: basic sanity FAIL
  4476. Failed to load prog 'Invalid argument'!
  4477. #518/u calls: not on unpriviledged FAIL
  4478. Unexpected error message!
  4479. EXP: function calls to other bpf functions are allowed for root only
  4480. RES: unreachable insn 3
  4481.  
  4482. unreachable insn 3
  4483. #518/p calls: not on unpriviledged FAIL
  4484. Failed to load prog 'Invalid argument'!
  4485. unreachable insn 3
  4486. #519/p calls: div by 0 in subprog FAIL
  4487. Failed to load prog 'Invalid argument'!
  4488. unreachable insn 10
  4489. #520/p calls: multiple ret types in subprog 1 FAIL
  4490. Unexpected error message!
  4491. EXP: R0 invalid mem access 'inv'
  4492. RES: unreachable insn 10
  4493.  
  4494. unreachable insn 10
  4495. #521/p calls: multiple ret types in subprog 2 Failed to create hash map 'Invalid argument'!
  4496. FAIL
  4497. Unexpected error message!
  4498. EXP: R0 min value is outside of the array range
  4499. RES: fd -1 is not pointing to valid bpf_map
  4500.  
  4501. fd -1 is not pointing to valid bpf_map
  4502. #522/p calls: overlapping caller/callee FAIL
  4503. Unexpected error message!
  4504. EXP: last insn is not an exit or jmp
  4505. RES:
  4506. #523/p calls: wrong recursive calls FAIL
  4507. Unexpected error message!
  4508. EXP: jump out of range
  4509. RES:
  4510. #524/p calls: wrong src reg FAIL
  4511. Unexpected error message!
  4512. EXP: BPF_CALL uses reserved fields
  4513. RES:
  4514. #525/p calls: wrong off value FAIL
  4515. Unexpected error message!
  4516. EXP: BPF_CALL uses reserved fields
  4517. RES:
  4518. #526/p calls: jump back loop FAIL
  4519. Unexpected error message!
  4520. EXP: back-edge from insn 0 to 0
  4521. RES:
  4522. #527/p calls: conditional call FAIL
  4523. Unexpected error message!
  4524. EXP: jump out of range
  4525. RES:
  4526. #528/p calls: conditional call 2 FAIL
  4527. Failed to load prog 'Invalid argument'!
  4528. #529/p calls: conditional call 3 FAIL
  4529. Unexpected error message!
  4530. EXP: back-edge from insn
  4531. RES:
  4532. #530/p calls: conditional call 4 FAIL
  4533. Failed to load prog 'Invalid argument'!
  4534. #531/p calls: conditional call 5 FAIL
  4535. Unexpected error message!
  4536. EXP: back-edge from insn
  4537. RES:
  4538. #532/p calls: conditional call 6 FAIL
  4539. Unexpected error message!
  4540. EXP: back-edge from insn
  4541. RES:
  4542. #533/p calls: using r0 returned by callee FAIL
  4543. Failed to load prog 'Invalid argument'!
  4544. #534/p calls: using uninit r0 from callee FAIL
  4545. Unexpected error message!
  4546. EXP: !read_ok
  4547. RES:
  4548. #535/p calls: callee is using r1 FAIL
  4549. Failed to load prog 'Invalid argument'!
  4550. unreachable insn 2
  4551. #536/u calls: callee using args1 FAIL
  4552. Unexpected error message!
  4553. EXP: allowed for root only
  4554. RES: unreachable insn 2
  4555.  
  4556. unreachable insn 2
  4557. #536/p calls: callee using args1 FAIL
  4558. Failed to load prog 'Invalid argument'!
  4559. unreachable insn 2
  4560. #537/p calls: callee using wrong args2 FAIL
  4561. Unexpected error message!
  4562. EXP: R2 !read_ok
  4563. RES:
  4564. #538/u calls: callee using two args FAIL
  4565. Unexpected error message!
  4566. EXP: allowed for root only
  4567. RES: unreachable insn 5
  4568.  
  4569. unreachable insn 5
  4570. #538/p calls: callee using two args FAIL
  4571. Failed to load prog 'Invalid argument'!
  4572. unreachable insn 5
  4573. #539/p calls: callee changing pkt pointers FAIL
  4574. Unexpected error message!
  4575. EXP: R6 invalid mem access 'inv'
  4576. RES:
  4577. #540/p calls: two calls with args FAIL
  4578. Failed to load prog 'Invalid argument'!
  4579. unreachable insn 2
  4580. #541/p calls: calls with stack arith FAIL
  4581. Failed to load prog 'Invalid argument'!
  4582. unreachable insn 4
  4583. #542/p calls: calls with misaligned stack access FAIL
  4584. Unexpected error message!
  4585. EXP: misaligned stack access
  4586. RES:
  4587. #543/p calls: calls control flow, jump test Unexpected bpf_prog_test_run error
  4588. 0: (b7) r0 = 42
  4589. 1: (05) goto pc+2
  4590. 4: (05) goto pc-3
  4591. 2: (b7) r0 = 43
  4592. 3: (05) goto pc+1
  4593. 5: (95) exit
  4594. #544/p calls: calls control flow, jump test 2 FAIL
  4595. Unexpected error message!
  4596. EXP: jump out of range from insn 1 to 4
  4597. RES: unreachable insn 2
  4598.  
  4599. unreachable insn 2
  4600. #545/p calls: two calls with bad jump FAIL
  4601. Unexpected error message!
  4602. EXP: jump out of range from insn 11 to 9
  4603. RES:
  4604. #546/p calls: recursive call. test1 FAIL
  4605. Unexpected error message!
  4606. EXP: back-edge
  4607. RES:
  4608. #547/p calls: recursive call. test2 FAIL
  4609. Unexpected error message!
  4610. EXP: back-edge
  4611. RES:
  4612. #548/p calls: unreachable code FAIL
  4613. Unexpected error message!
  4614. EXP: unreachable insn 6
  4615. RES:
  4616. #549/p calls: invalid call FAIL
  4617. Unexpected error message!
  4618. EXP: invalid destination
  4619. RES:
  4620. #550/p calls: invalid call 2 FAIL
  4621. Unexpected error message!
  4622. EXP: invalid destination
  4623. RES:
  4624. #551/p calls: jumping across function bodies. test1 FAIL
  4625. Unexpected error message!
  4626. EXP: jump out of range
  4627. RES:
  4628. #552/p calls: jumping across function bodies. test2 FAIL
  4629. Unexpected error message!
  4630. EXP: jump out of range
  4631. RES:
  4632. #553/p calls: call without exit FAIL
  4633. Unexpected error message!
  4634. EXP: not an exit
  4635. RES:
  4636. #554/p calls: call into middle of ld_imm64 FAIL
  4637. Unexpected error message!
  4638. EXP: last insn
  4639. RES:
  4640. #555/p calls: call into middle of other call FAIL
  4641. Unexpected error message!
  4642. EXP: last insn
  4643. RES:
  4644. #556/p calls: ld_abs with changing ctx data in callee FAIL
  4645. Unexpected error message!
  4646. EXP: BPF_LD_[ABS|IND] instructions cannot be mixed
  4647. RES: unreachable insn 11
  4648.  
  4649. unreachable insn 11
  4650. #557/p calls: two calls with bad fallthrough FAIL
  4651. Unexpected error message!
  4652. EXP: not an exit
  4653. RES:
  4654. #558/p calls: two calls with stack read FAIL
  4655. Failed to load prog 'Invalid argument'!
  4656. #559/p calls: two calls with stack write FAIL
  4657. Failed to load prog 'Invalid argument'!
  4658. #560/p calls: stack overflow using two frames (pre-call access) FAIL
  4659. Unexpected error message!
  4660. EXP: combined stack size
  4661. RES:
  4662. #561/p calls: stack overflow using two frames (post-call access) FAIL
  4663. Unexpected error message!
  4664. EXP: combined stack size
  4665. RES:
  4666. #562/p calls: stack depth check using three frames. test1 FAIL
  4667. Failed to load prog 'Invalid argument'!
  4668. #563/p calls: stack depth check using three frames. test2 FAIL
  4669. Failed to load prog 'Invalid argument'!
  4670. #564/p calls: stack depth check using three frames. test3 FAIL
  4671. Unexpected error message!
  4672. EXP: combined stack
  4673. RES:
  4674. #565/p calls: stack depth check using three frames. test4 FAIL
  4675. Unexpected error message!
  4676. EXP: combined stack
  4677. RES:
  4678. #566/p calls: stack depth check using three frames. test5 FAIL
  4679. Unexpected error message!
  4680. EXP: call stack
  4681. RES:
  4682. #567/p calls: spill into caller stack frame FAIL
  4683. Unexpected error message!
  4684. EXP: cannot spill
  4685. RES:
  4686. #568/p calls: write into caller stack frame FAIL
  4687. Failed to load prog 'Invalid argument'!
  4688. #569/p calls: write into callee stack frame FAIL
  4689. Unexpected error message!
  4690. EXP: cannot return stack pointer
  4691. RES:
  4692. #570/p calls: two calls with stack write and void return FAIL
  4693. Failed to load prog 'Invalid argument'!
  4694. #571/u calls: ambiguous return value FAIL
  4695. Unexpected error message!
  4696. EXP: allowed for root only
  4697. RES: unreachable insn 7
  4698.  
  4699. unreachable insn 7
  4700. #571/p calls: ambiguous return value FAIL
  4701. Unexpected error message!
  4702. EXP: R0 !read_ok
  4703. RES: unreachable insn 7
  4704.  
  4705. unreachable insn 7
  4706. #572/p calls: two calls that return map_value Failed to create hash map 'Invalid argument'!
  4707. FAIL
  4708. Failed to load prog 'Invalid argument'!
  4709. #573/p calls: two calls that return map_value with bool condition Failed to create hash map 'Invalid argument'!
  4710. FAIL
  4711. Failed to load prog 'Invalid argument'!
  4712. #574/p calls: two calls that return map_value with incorrect bool check Failed to create hash map 'Invalid argument'!
  4713. FAIL
  4714. Unexpected error message!
  4715. EXP: invalid read from stack off -16+0 size 8
  4716. RES:
  4717. #575/p calls: two calls that receive map_value via arg=ptr_stack_of_caller. test1 Failed to create hash map 'Invalid argument'!
  4718. FAIL
  4719. Unexpected error message!
  4720. EXP: invalid access to map value, value_size=8 off=2 size=8
  4721. RES: fd -1 is not pointing to valid bpf_map
  4722.  
  4723. fd -1 is not pointing to valid bpf_map
  4724. #576/p calls: two calls that receive map_value via arg=ptr_stack_of_caller. test2 Failed to create hash map 'Invalid argument'!
  4725. FAIL
  4726. Failed to load prog 'Bad file descriptor'!
  4727. fd -1 is not pointing to valid bpf_map
  4728. #577/p calls: two jumps that receive map_value via arg=ptr_stack_of_jumper. test3 Failed to create hash map 'Invalid argument'!
  4729. FAIL
  4730. Unexpected error message!
  4731. EXP: invalid access to map value, value_size=8 off=2 size=8
  4732. RES: fd -1 is not pointing to valid bpf_map
  4733.  
  4734. fd -1 is not pointing to valid bpf_map
  4735. #578/p calls: two calls that receive map_value_ptr_or_null via arg. test1 Failed to create hash map 'Invalid argument'!
  4736. FAIL
  4737. Failed to load prog 'Bad file descriptor'!
  4738. fd -1 is not pointing to valid bpf_map
  4739. #579/p calls: two calls that receive map_value_ptr_or_null via arg. test2 Failed to create hash map 'Invalid argument'!
  4740. FAIL
  4741. Unexpected error message!
  4742. EXP: R0 invalid mem access 'inv'
  4743. RES: fd -1 is not pointing to valid bpf_map
  4744.  
  4745. fd -1 is not pointing to valid bpf_map
  4746. #580/p calls: pkt_ptr spill into caller stack FAIL
  4747. Failed to load prog 'Invalid argument'!
  4748. unreachable insn 4
  4749. #581/p calls: pkt_ptr spill into caller stack 2 FAIL
  4750. Unexpected error message!
  4751. EXP: invalid access to packet
  4752. RES: unreachable insn 6
  4753.  
  4754. unreachable insn 6
  4755. #582/p calls: pkt_ptr spill into caller stack 3 FAIL
  4756. Failed to load prog 'Invalid argument'!
  4757. unreachable insn 7
  4758. #583/p calls: pkt_ptr spill into caller stack 4 FAIL
  4759. Failed to load prog 'Invalid argument'!
  4760. unreachable insn 7
  4761. #584/p calls: pkt_ptr spill into caller stack 5 FAIL
  4762. Unexpected error message!
  4763. EXP: same insn cannot be used with different
  4764. RES: unreachable insn 7
  4765.  
  4766. unreachable insn 7
  4767. #585/p calls: pkt_ptr spill into caller stack 6 FAIL
  4768. Unexpected error message!
  4769. EXP: R4 invalid mem access
  4770. RES: unreachable insn 8
  4771.  
  4772. unreachable insn 8
  4773. #586/p calls: pkt_ptr spill into caller stack 7 FAIL
  4774. Unexpected error message!
  4775. EXP: R4 invalid mem access
  4776. RES: unreachable insn 8
  4777.  
  4778. unreachable insn 8
  4779. #587/p calls: pkt_ptr spill into caller stack 8 FAIL
  4780. Failed to load prog 'Invalid argument'!
  4781. unreachable insn 13
  4782. #588/p calls: pkt_ptr spill into caller stack 9 FAIL
  4783. Unexpected error message!
  4784. EXP: invalid access to packet
  4785. RES: unreachable insn 13
  4786.  
  4787. unreachable insn 13
  4788. #589/p calls: caller stack init to zero or map_value_or_null Failed to create hash map 'Invalid argument'!
  4789. FAIL
  4790. Failed to load prog 'Invalid argument'!
  4791. #590/p calls: stack init to zero and pruning Failed to create hash map 'Invalid argument'!
  4792. FAIL
  4793. Unexpected error message!
  4794. EXP: invalid indirect read from stack off -8+0 size 8
  4795. RES:
  4796. #591/p search pruning: all branches should be verified (nop operation) Failed to create hash map 'Invalid argument'!
  4797. FAIL
  4798. Unexpected error message!
  4799. EXP: R6 invalid mem access 'inv'
  4800. RES:
  4801. #592/p search pruning: all branches should be verified (invalid stack access) Failed to create hash map 'Invalid argument'!
  4802. FAIL
  4803. Unexpected error message!
  4804. EXP: invalid read from stack off -16+0 size 8
  4805. RES:
  4806. #593/u jit: lsh, rsh, arsh by 1 Unexpected bpf_prog_test_run error
  4807. 0: (b7) r0 = 1
  4808. 1: (b7) r1 = 255
  4809. 2: (67) r1 <<= 1
  4810. 3: (64) (u32) r1 <<= (u32) 1
  4811. 4: (15) if r1 == 0x3fc goto pc+1
  4812. R0=imm1 R1=inv R10=fp
  4813. 5: (95) exit
  4814.  
  4815. from 4 to 6: R0=imm1 R1=imm1020 R10=fp
  4816. 6: (77) r1 >>= 1
  4817. 7: (74) (u32) r1 >>= (u32) 1
  4818. 8: (15) if r1 == 0xff goto pc+1
  4819. R0=imm1 R1=inv R10=fp
  4820. 9: (95) exit
  4821.  
  4822. from 8 to 10: R0=imm1 R1=imm255 R10=fp
  4823. 10: (c7) r1 s>>= 1
  4824. 11: (15) if r1 == 0x7f goto pc+1
  4825. R0=imm1 R1=inv R10=fp
  4826. 12: (95) exit
  4827.  
  4828. from 11 to 13: R0=imm1 R1=imm127 R10=fp
  4829. 13: (b7) r0 = 2
  4830. 14: (95) exit
  4831. #593/p jit: lsh, rsh, arsh by 1 Unexpected bpf_prog_test_run error
  4832. 0: (b7) r0 = 1
  4833. 1: (b7) r1 = 255
  4834. 2: (67) r1 <<= 1
  4835. 3: (64) (u32) r1 <<= (u32) 1
  4836. 4: (15) if r1 == 0x3fc goto pc+1
  4837. R0=imm1 R1=inv R10=fp
  4838. 5: (95) exit
  4839.  
  4840. from 4 to 6: R0=imm1 R1=imm1020 R10=fp
  4841. 6: (77) r1 >>= 1
  4842. 7: (74) (u32) r1 >>= (u32) 1
  4843. 8: (15) if r1 == 0xff goto pc+1
  4844. R0=imm1 R1=inv R10=fp
  4845. 9: (95) exit
  4846.  
  4847. from 8 to 10: R0=imm1 R1=imm255 R10=fp
  4848. 10: (c7) r1 s>>= 1
  4849. 11: (15) if r1 == 0x7f goto pc+1
  4850. R0=imm1 R1=inv R10=fp
  4851. 12: (95) exit
  4852.  
  4853. from 11 to 13: R0=imm1 R1=imm127 R10=fp
  4854. 13: (b7) r0 = 2
  4855. 14: (95) exit
  4856. #594/u jit: mov32 for ldimm64, 1 Unexpected bpf_prog_test_run error
  4857. 0: (b7) r0 = 2
  4858. 1: (18) r1 = 0xfeffffffffffffff
  4859. 3: (77) r1 >>= 32
  4860. 4: (18) r2 = 0xfeffffff
  4861. 6: (1d) if r1 == r2 goto pc+1
  4862. R0=imm2 R1=inv R2=inv R10=fp
  4863. 7: (b7) r0 = 1
  4864. 8: (95) exit
  4865.  
  4866. from 6 to 8: R0=imm2 R1=inv R2=inv R10=fp
  4867. 8: (95) exit
  4868. #594/p jit: mov32 for ldimm64, 1 Unexpected bpf_prog_test_run error
  4869. 0: (b7) r0 = 2
  4870. 1: (18) r1 = 0xfeffffffffffffff
  4871. 3: (77) r1 >>= 32
  4872. 4: (18) r2 = 0xfeffffff
  4873. 6: (1d) if r1 == r2 goto pc+1
  4874. R0=imm2 R1=inv R2=inv R10=fp
  4875. 7: (b7) r0 = 1
  4876. 8: (95) exit
  4877.  
  4878. from 6 to 8: R0=imm2 R1=inv R2=inv R10=fp
  4879. 8: (95) exit
  4880. #595/u jit: mov32 for ldimm64, 2 Unexpected bpf_prog_test_run error
  4881. 0: (b7) r0 = 1
  4882. 1: (18) r1 = 0x1ffffffff
  4883. 3: (18) r2 = 0xffffffff
  4884. 5: (1d) if r1 == r2 goto pc+1
  4885. R0=imm1 R1=inv R2=inv R10=fp
  4886. 6: (b7) r0 = 2
  4887. 7: (95) exit
  4888.  
  4889. from 5 to 7: R0=imm1 R1=inv R2=inv R10=fp
  4890. 7: (95) exit
  4891. #595/p jit: mov32 for ldimm64, 2 Unexpected bpf_prog_test_run error
  4892. 0: (b7) r0 = 1
  4893. 1: (18) r1 = 0x1ffffffff
  4894. 3: (18) r2 = 0xffffffff
  4895. 5: (1d) if r1 == r2 goto pc+1
  4896. R0=imm1 R1=inv R2=inv R10=fp
  4897. 6: (b7) r0 = 2
  4898. 7: (95) exit
  4899.  
  4900. from 5 to 7: R0=imm1 R1=inv R2=inv R10=fp
  4901. 7: (95) exit
  4902. #596/u jit: various mul tests Unexpected bpf_prog_test_run error
  4903. 0: (18) r2 = 0xeeff0d413122
  4904. 2: (18) r0 = 0xfefefe
  4905. 4: (18) r1 = 0xefefef
  4906. 6: (2f) r0 *= r1
  4907. 7: (1d) if r0 == r2 goto pc+2
  4908. R0=inv R1=inv R2=inv R10=fp
  4909. 8: (b7) r0 = 1
  4910. 9: (95) exit
  4911.  
  4912. from 7 to 10: R0=inv R1=inv R2=inv R10=fp
  4913. 10: (18) r3 = 0xfefefe
  4914. 12: (2f) r3 *= r1
  4915. 13: (1d) if r3 == r2 goto pc+2
  4916. R0=inv R1=inv R2=inv R3=inv R10=fp
  4917. 14: (b7) r0 = 1
  4918. 15: (95) exit
  4919.  
  4920. from 13 to 16: R0=inv R1=inv R2=inv R3=inv R10=fp
  4921. 16: (bc) (u32) r2 = (u32) r2
  4922. 17: (18) r0 = 0xfefefe
  4923. 19: (2c) (u32) r0 *= (u32) r1
  4924. 20: (1d) if r0 == r2 goto pc+2
  4925. R0=inv R1=inv R2=inv R3=inv R10=fp
  4926. 21: (b7) r0 = 1
  4927. 22: (95) exit
  4928.  
  4929. from 20 to 23: R0=inv R1=inv R2=inv R3=inv R10=fp
  4930. 23: (18) r3 = 0xfefefe
  4931. 25: (2c) (u32) r3 *= (u32) r1
  4932. 26: (1d) if r3 == r2 goto pc+2
  4933. R0=inv R1=inv R2=inv R3=inv R10=fp
  4934. 27: (b7) r0 = 1
  4935. 28: (95) exit
  4936.  
  4937. from 26 to 29: R0=inv R1=inv R2=inv R3=inv R10=fp
  4938. 29: (18) r0 = 0x952a7bbc
  4939. 31: (18) r1 = 0xfefefe
  4940. 33: (18) r2 = 0xeeff0d413122
  4941. 35: (2c) (u32) r2 *= (u32) r1
  4942. 36: (1d) if r2 == r0 goto pc+2
  4943. R0=inv R1=inv R2=inv R3=inv R10=fp
  4944. 37: (b7) r0 = 1
  4945. 38: (95) exit
  4946.  
  4947. from 36 to 39: R0=inv R1=inv R2=inv R3=inv R10=fp
  4948. 39: (b7) r0 = 2
  4949. 40: (95) exit
  4950. #596/p jit: various mul tests Unexpected bpf_prog_test_run error
  4951. 0: (18) r2 = 0xeeff0d413122
  4952. 2: (18) r0 = 0xfefefe
  4953. 4: (18) r1 = 0xefefef
  4954. 6: (2f) r0 *= r1
  4955. 7: (1d) if r0 == r2 goto pc+2
  4956. R0=inv R1=inv R2=inv R10=fp
  4957. 8: (b7) r0 = 1
  4958. 9: (95) exit
  4959.  
  4960. from 7 to 10: R0=inv R1=inv R2=inv R10=fp
  4961. 10: (18) r3 = 0xfefefe
  4962. 12: (2f) r3 *= r1
  4963. 13: (1d) if r3 == r2 goto pc+2
  4964. R0=inv R1=inv R2=inv R3=inv R10=fp
  4965. 14: (b7) r0 = 1
  4966. 15: (95) exit
  4967.  
  4968. from 13 to 16: R0=inv R1=inv R2=inv R3=inv R10=fp
  4969. 16: (bc) (u32) r2 = (u32) r2
  4970. 17: (18) r0 = 0xfefefe
  4971. 19: (2c) (u32) r0 *= (u32) r1
  4972. 20: (1d) if r0 == r2 goto pc+2
  4973. R0=inv R1=inv R2=inv R3=inv R10=fp
  4974. 21: (b7) r0 = 1
  4975. 22: (95) exit
  4976.  
  4977. from 20 to 23: R0=inv R1=inv R2=inv R3=inv R10=fp
  4978. 23: (18) r3 = 0xfefefe
  4979. 25: (2c) (u32) r3 *= (u32) r1
  4980. 26: (1d) if r3 == r2 goto pc+2
  4981. R0=inv R1=inv R2=inv R3=inv R10=fp
  4982. 27: (b7) r0 = 1
  4983. 28: (95) exit
  4984.  
  4985. from 26 to 29: R0=inv R1=inv R2=inv R3=inv R10=fp
  4986. 29: (18) r0 = 0x952a7bbc
  4987. 31: (18) r1 = 0xfefefe
  4988. 33: (18) r2 = 0xeeff0d413122
  4989. 35: (2c) (u32) r2 *= (u32) r1
  4990. 36: (1d) if r2 == r0 goto pc+2
  4991. R0=inv R1=inv R2=inv R3=inv R10=fp
  4992. 37: (b7) r0 = 1
  4993. 38: (95) exit
  4994.  
  4995. from 36 to 39: R0=inv R1=inv R2=inv R3=inv R10=fp
  4996. 39: (b7) r0 = 2
  4997. 40: (95) exit
  4998. #597/p xadd/w check unaligned stack FAIL
  4999. Unexpected error message!
  5000. EXP: misaligned stack access off
  5001. RES: 0: (b7) r0 = 1
  5002. 1: (7b) *(u64 *)(r10 -8) = r0
  5003. 2: (c3) lock *(u32 *)(r10 -7) += r0
  5004. misaligned access off -7 size 4
  5005.  
  5006. 0: (b7) r0 = 1
  5007. 1: (7b) *(u64 *)(r10 -8) = r0
  5008. 2: (c3) lock *(u32 *)(r10 -7) += r0
  5009. misaligned access off -7 size 4
  5010. #598/p xadd/w check unaligned map Failed to create hash map 'Invalid argument'!
  5011. FAIL
  5012. Unexpected error message!
  5013. EXP: misaligned value access off
  5014. RES: fd -1 is not pointing to valid bpf_map
  5015.  
  5016. fd -1 is not pointing to valid bpf_map
  5017. #599/p xadd/w check unaligned pkt FAIL
  5018. Unexpected error message!
  5019. EXP: BPF_XADD stores into R2 packet
  5020. RES:
  5021. Summary: 176 PASSED, 0 SKIPPED, 671 FAILED
  5022. selftests: test_verifier [FAIL]
  5023. (cgroup_helpers.c:61: errno: No such device) mount cgroup2
  5024. (cgroup_helpers.c:96: errno: No such file or directory) Opening Cgroup Procs: /mnt/cgroup.procs
  5025. selftests: test_sock [FAIL]
  5026. ./test_sock_addr has to be run via ./test_sock_addr.sh. Skip direct run.
  5027. selftests: test_sock_addr [PASS]
  5028. selftests: urandom_read [PASS]
  5029. RTNETLINK answers: Operation not supported
  5030. selftests: test_sock_addr.sh [FAkselftest: Running tests in breakpoints
  5031. IL]
  5032.  
  5033. TAP version 13
  5034. Running tests in breakpoints
  5035. ========================================
  5036. PM: Syncing filesystems ... done.
  5037. Freezing user space processes ... (elapsed 0.005 seconds) done.
  5038. Freezing remaining freezable tasks ... (elapsed 0.005 seconds) done.
  5039. Suspending console(s) (use no_console_suspend to debug)
  5040. PM: suspend of devices complete after 38.753 msecs
  5041. PM: late suspend of devices complete after 8.853 msecs
  5042. PM: noirq suspend of devices complete after 10.385 msecs
  5043. Disabling non-boot CPUs ...
  5044. CPU1: shutdown
  5045. psci: CPU1 killed.
  5046. CPU2: shutdown
  5047. psci: Retrying again to check for CPU kill
  5048. psci: CPU2 killed.
  5049. CPU3: shutdown
  5050. psci: Retrying again to check for CPU kill
  5051. psci: CPU3 killed.
  5052. CPU4: shutdown
  5053. psci: Retrying again to check for CPU kill
  5054. psci: CPU4 killed.
  5055. CPU5: shutdown
  5056. psci: Retrying again to check for CPU kill
  5057. psci: CPU5 killed.
  5058. CPU6: shutdown
  5059. psci: Retrying again to check for CPU kill
  5060. psci: CPU6 killed.
  5061. CPU7: shutdown
  5062. psci: Retrying again to check for CPU kill
  5063. psci: CPU7 killed.
  5064. Enabling non-boot CPUs ...
  5065. Detected VIPT I-cache on CPU1
  5066. CPU1: Booted secondary processor [410fd033]
  5067. cache: parent cpu1 should not be sleeping
  5068. CPU1 is up
  5069. Detected VIPT I-cache on CPU2
  5070. CPU2: Booted secondary processor [410fd033]
  5071. cache: parent cpu2 should not be sleeping
  5072. CPU2 is up
  5073. Detected VIPT I-cache on CPU3
  5074. CPU3: Booted secondary processor [410fd033]
  5075. cache: parent cpu3 should not be sleeping
  5076. CPU3 is up
  5077. Detected VIPT I-cache on CPU4
  5078. CPU4: Booted secondary processor [410fd033]
  5079. cache: parent cpu4 should not be sleeping
  5080. CPU4 is up
  5081. Detected VIPT I-cache on CPU5
  5082. CPU5: Booted secondary processor [410fd033]
  5083. cache: parent cpu5 should not be sleeping
  5084. CPU5 is up
  5085. Detected VIPT I-cache on CPU6
  5086. CPU6: Booted secondary processor [410fd033]
  5087. cache: parent cpu6 should not be sleeping
  5088. CPU6 is up
  5089. Detected VIPT I-cache on CPU7
  5090. CPU7: Booted secondary processor [410fd033]
  5091. cache: parent cpu7 should not be sleeping
  5092. CPU7 is up
  5093. PM: noirq resume of devices complete after 4.663 msecs
  5094. PM: early resume of devices complete after 6.243 msecs
  5095. mmc_host mmc0: Bus speed (slot 0) = 24800000Hz (slot req 400000Hz, actual 400000HZ div = 31)
  5096. mmc_host mmc0: Bus speed (slot 0) = 51756522Hz (slot req 52000000Hz, actual 51756522HZ div = 0)
  5097. mmc_host mmc2: Bus speed (slot 0) = 24800000Hz (slot req 400000Hz, actual 400000HZ div = 31)
  5098. mmc_host mmc2: Bus speed (slot 0) = 24800000Hz (slot req 25000000Hz, actual 24800000HZ div = 0)
  5099. PM: resume of devices complete after 231.682 msecs
  5100. Restarting tasks ... done.
  5101. ok 1 CPU 0
  5102. ok 2 CPU 1
  5103. ok 3 CPU 2
  5104. ok 4 CPU 3
  5105. ok 5 CPU 4
  5106. ok 6 CPU 5
  5107. ok 7 CPU 6
  5108. ok 8 CPU 7
  5109. Pass 8 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0kselftest: Running tests in capabilities
  5110.  
  5111. 1..8
  5112. selftests: step_after_suspend_test [PASS]
  5113.  
  5114. TAP version 13
  5115. Running tests in capabilities
  5116. ========================================
  5117. # [RUN] +++ Tests with uid == 0 +++
  5118. # [NOTE] Using global UIDs for tests
  5119. # [RUN] Root => ep
  5120. # validate_cap:: Capabilities after execve were correct
  5121. ok 1 Passed
  5122. # Check cap_ambient manipulation rules
  5123. ok 2 PR_CAP_AMBIENT_RAISE failed on non-inheritable cap
  5124. ok 3 PR_CAP_AMBIENT_RAISE failed on non-permitted cap
  5125. ok 4 PR_CAP_AMBIENT_RAISE worked
  5126. ok 5 Basic manipulation appears to work
  5127. # [RUN] Root +i => eip
  5128. # validate_cap:: Capabilities after execve were correct
  5129. ok 6 Passed
  5130. # [RUN] UID 0 +ia => eipa
  5131. # validate_cap:: Capabilities after execve were correct
  5132. ok 7 Passed
  5133. # [RUN] Root +ia, suidroot => eipa
  5134. # validate_cap:: Capabilities after execve were correct
  5135. ok 8 Passed
  5136. # [RUN] Root +ia, suidnonroot => ip
  5137. # validate_cap:: Capabilities after execve were correct
  5138. ok 9 Passed
  5139. # [RUN] Root +ia, sgidroot => eipa
  5140. # validate_cap:: Capabilities after execve were correct
  5141. ok 10 Passed
  5142. # [RUN] Root, gid != 0, +ia, sgidroot => eip
  5143. # validate_cap:: Capabilities after execve were correct
  5144. ok 11 Passed
  5145. # [RUN] Root +ia, sgidnonroot => eip
  5146. # validate_cap:: Capabilities after execve were correct
  5147. ok 12 Passed
  5148. Pass 12kselftest: Running tests in cpufreq
  5149. Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0
  5150. 1..12
  5151. # ==================================================
  5152. # [RUN] +++ Tests with uid != 0 +++
  5153. # [NOTE] Using global UIDs for tests
  5154. # [RUN] Non-root => no caps
  5155. # validate_cap:: Capabilities after execve were correct
  5156. ok 1 Passed
  5157. # Check cap_ambient manipulation rules
  5158. ok 2 PR_CAP_AMBIENT_RAISE failed on non-inheritable cap
  5159. ok 3 PR_CAP_AMBIENT_RAISE failed on non-permitted cap
  5160. ok 4 PR_CAP_AMBIENT_RAISE worked
  5161. ok 5 Basic manipulation appears to work
  5162. # [RUN] Non-root +i => i
  5163. # validate_cap:: Capabilities after execve were correct
  5164. ok 6 Passed
  5165. # [RUN] UID 1 +ia => eipa
  5166. # validate_cap:: Capabilities after execve were correct
  5167. ok 7 Passed
  5168. # [RUN] Non-root +ia, sgidnonroot => i
  5169. # validate_cap:: Capabilities after execve were correct
  5170. ok 8 Passed
  5171. # [RUN] Non-root +ia, sgidroot => i
  5172. # validate_cap:: Capabilities after execve were correct
  5173. ok 9 Passed
  5174. Pass 9 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0
  5175. 1..9
  5176. selftests: test_execve [PASS]
  5177.  
  5178. TAP version 13
  5179. Running tests in cpufreq
  5180. ========================================
  5181. pid 1802's current affinity mask: ff
  5182. pid 1802's new affinity mask: 1
  5183. CPU1: shutdown
  5184. psci: CPU1 killed.
  5185. CPU2: shutdown
  5186. psci: CPU2 killed.
  5187. CPU3: shutdown
  5188. psci: CPU3 killed.
  5189. CPU4: shutdown
  5190. psci: CPU4 killed.
  5191. CPU5: shutdown
  5192. psci: CPU5 killed.
  5193. CPU6: shutdown
  5194. psci: CPU6 killed.
  5195. CPU7: shutdown
  5196. psci: CPU7 killed.
  5197. Detected VIPT I-cache on CPU1
  5198. CPU1: Booted secondary processor [410fd033]
  5199. Detected VIPT I-cache on CPU2
  5200. CPU2: Booted secondary processor [410fd033]
  5201. Detected VIPT I-cache on CPU3
  5202. CPU3: Booted secondary processor [410fd033]
  5203. Detected VIPT I-cache on CPU4
  5204. CPU4: Booted secondary processor [410fd033]
  5205. Detected VIPT I-cache on CPU5
  5206. CPU5: Booted secondary processor [410fd033]
  5207. Detected VIPT I-cache on CPU6
  5208. CPU6: Booted secondary processor [410fd033]
  5209. Detected VIPT I-cache on CPU7
  5210. CPU7: Booted secondary processor [410fd033]
  5211. CPU1: shutdown
  5212. psci: CPU1 killed.
  5213. CPU2: shutdown
  5214. psci: CPU2 killed.
  5215. CPU3: shutdown
  5216. psci: CPU3 killed.
  5217. CPU4: shutdown
  5218. psci: CPU4 killed.
  5219. CPU5: shutdown
  5220. psci: CPU5 killed.
  5221. CPU6: shutdown
  5222. psci: CPU6 killed.
  5223. CPU7: shutdown
  5224. psci: CPU7 killed.
  5225. Detected VIPT I-cache on CPU1
  5226. CPU1: Booted secondary processor [410fd033]
  5227. Detected VIPT I-cache on CPU2
  5228. CPU2: Booted secondary processor [410fd033]
  5229. Detected VIPT I-cache on CPU3
  5230. CPU3: Booted secondary processor [410fd033]
  5231. Detected VIPT I-cache on CPU4
  5232. CPU4: Booted secondary processor [410fd033]
  5233. Detected VIPT I-cache on CPU5
  5234. CPU5: Booted secondary processor [410fd033]
  5235. Detected VIPT I-cache on CPU6
  5236. CPU6: Booted secondary processor [410fd033]
  5237. Detected VIPT I-cache on CPU7
  5238. CPU7: Booted secondary processor [410fd033]
  5239. CPU1: shutdown
  5240. psci: CPU1 killed.
  5241. CPU2: shutdown
  5242. psci: CPU2 killed.
  5243. CPU3: shutdown
  5244. psci: CPU3 killed.
  5245. CPU4: shutdown
  5246. psci: CPU4 killed.
  5247. CPU5: shutdown
  5248. psci: CPU5 killed.
  5249. CPU6: shutdown
  5250. psci: CPU6 killed.
  5251. CPU7: shutdown
  5252. psci: CPU7 killed.
  5253. Detected VIPT I-cache on CPU1
  5254. CPU1: Booted secondary processor [410fd033]
  5255. Detected VIPT I-cache on CPU2
  5256. CPU2: Booted secondary processor [410fd033]
  5257. Detected VIPT I-cache on CPU3
  5258. CPU3: Booted secondary processor [410fd033]
  5259. Detected VIPT I-cache on CPU4
  5260. CPU4: Booted secondary processor [410fd033]
  5261. Detected VIPT I-cache on CPU5
  5262. CPU5: Booted secondary processor [410fd033]
  5263. Detected VIPT I-cache on CPU6
  5264. CPU6: Booted secondary processor [410fd033]
  5265. Detected VIPT I-cache on CPU7
  5266. CPU7: Booted secondary processor [410fd033]
  5267. CPU1: shutdown
  5268. psci: CPU1 killed.
  5269. CPU2: shutdown
  5270. psci: CPU2 killed.
  5271. CPU3: shutdown
  5272. psci: CPU3 killed.
  5273. CPU4: shutdown
  5274. psci: CPU4 killed.
  5275. CPU5: shutdown
  5276. psci: CPU5 killed.
  5277. CPU6: shutdown
  5278. psci: CPU6 killed.
  5279. CPU7: shutdown
  5280. psci: CPU7 killed.
  5281. Detected VIPT I-cache on CPU1
  5282. CPU1: Booted secondary processor [410fd033]
  5283. Detected VIPT I-cache on CPU2
  5284. CPU2: Booted secondary processor [410fd033]
  5285. Detected VIPT I-cache on CPU3
  5286. CPU3: Booted secondary processor [410fd033]
  5287. Detected VIPT I-cache on CPU4
  5288. CPU4: Booted secondary processor [410fd033]
  5289. Detected VIPT I-cache on CPU5
  5290. CPU5: Booted secondary processor [410fd033]
  5291. Detected VIPT I-cache on CPU6
  5292. CPU6: Booted secondary processor [410fd033]
  5293. Detected VIPT I-cache on CPU7
  5294. CPU7: Booted secondary processor [410fd033]
  5295. CPU1: shutdown
  5296. psci: CPU1 killed.
  5297. CPU2: shutdown
  5298. psci: CPU2 killed.
  5299. CPU3: shutdown
  5300. psci: CPU3 killed.
  5301. CPU4: shutdown
  5302. psci: CPU4 killed.
  5303. CPU5: shutdown
  5304. psci: CPU5 killed.
  5305. CPU6: shutdown
  5306. psci: CPU6 killed.
  5307. CPU7: shutdown
  5308. psci: CPU7 killed.
  5309. Detected VIPT I-cache on CPU1
  5310. CPU1: Booted secondary processor [410fd033]
  5311. Detected VIPT I-cache on CPU2
  5312. CPU2: Booted secondary processor [410fd033]
  5313. Detected VIPT I-cache on CPU3
  5314. CPU3: Booted secondary processor [410fd033]
  5315. Detected VIPT I-cache on CPU4
  5316. CPU4: Booted secondary processor [410fd033]
  5317. Detected VIPT I-cache on CPU5
  5318. CPU5: Booted secondary processor [410fd033]
  5319. Detected VIPT I-cache on CPU6
  5320. CPU6: Booted secondary processor [410fd033]
  5321. Detected VIPT I-cache on CPU7
  5322. CPU7: Booted secondary processor [410fd033]
  5323. selftests: main.sh [PASS]
  5324.  
  5325. TAP version kselftest: Running tests in cpu-hotplug
  5326. 13
  5327. Running tests in cpu-hotplug
  5328. ========================================
  5329. pid 2153's current affinity mask: ff
  5330. pid 2153's new affinity mask: 1
  5331. CPU online/offline summary:
  5332. Cpus in online state: 0-7
  5333. Cpus in offline state: 0
  5334. Limited scope test: one hotplug cpu
  5335. (leaves cpu in the original state):
  5336. online to offline to online: cpu 7
  5337. CPU7: shutdown
  5338. psci: CPU7 killed.
  5339. Detected VIPT I-cache on CPU7
  5340. CPU7: Booted secondary processor [410fd033]
  5341. selftests: cpu-on-off-test.sh [PASS]
  5342. kselftest: Running tests in efivarfs
  5343.  
  5344. TAP version 13
  5345. Runningkselftest: Running tests in exec
  5346. tests in efivarfs
  5347. ========================================
  5348.  
  5349. TAP version 13
  5350. Running tests in exec
  5351. ========================================
  5352. Check success of execveat(3, '../execveat', 0)... [OK]
  5353. Check success of execveat(5, 'execveat', 0)... [OK]
  5354. Check success of execveat(7, 'execveat', 0)... [OK]
  5355. Check success of execveat(-100, '/opt/kselftests/mainline/exec/execveat', 0)... [OK]
  5356. Check success of execveat(99, '/opt/kselftests/mainline/exec/execveat', 0)... [OK]
  5357. Check success of execveat(9, '', 4096)... [OK]
  5358. Check success of execveat(18, '', 4096)... [OK]
  5359. Check success of execveat(10, '', 4096)... [OK]
  5360. Check success of execveat(15, '', 4096)... [OK]
  5361. Check success of execveat(15, '', 4096)... [OK]
  5362. Check success of execveat(16, '', 4096)... [OK]
  5363. Check failure of execveat(9, '', 0) with ENOENT... [OK]
  5364. Check failure of execveat(9, '(null)', 4096) with EFAULT... [OK]
  5365. Check success of execveat(5, 'execveat.symlink', 0)... [OK]
  5366. Check success of execveat(7, 'execveat.symlink', 0)... [OK]
  5367. Check success of execveat(-100, '/opt/kselftests/main...xec/execveat.symlink', 0)... [OK]
  5368. Check success of execveat(11, '', 4096)... [OK]
  5369. Check success of execveat(11, '', 4352)... [OK]
  5370. Check failure of execveat(5, 'execveat.symlink', 256) with ELOOP... [OK]
  5371. Check failure of execveat(7, 'execveat.symlink', 256) with ELOOP... [OK]
  5372. Check failure of execveat(-100, '/opt/kselftests/mainline/exec/execveat.symlink', 256) with ELOOP... [OK]
  5373. Check success of execveat(3, '../script', 0)... [OK]
  5374. Check success of execveat(5, 'script', 0)... [OK]
  5375. Check success of execveat(7, 'script', 0)... [OK]
  5376. Check success of execveat(-100, '/opt/kselftests/mainline/exec/script', 0)... [OK]
  5377. Check success of execveat(14, '', 4096)... [OK]
  5378. Check success of execveat(14, '', 4352)... [OK]
  5379. Check failure of execveat(19, '', 4096) with ENOENT... [OK]
  5380. Check failure of execveat(8, 'script', 0) with ENOENT... [OK]
  5381. Check success of execveat(17, '', 4096)... [OK]
  5382. Check success of execveat(17, '', 4096)... [OK]
  5383. Check success of execveat(4, '../script', 0)... [OK]
  5384. Check success of execveat(4, 'script', 0)... [OK]
  5385. Check success of execveat(4, '../script', 0)... [OK]
  5386. Check failure of execveat(4, 'script', 0) with ENOENT... [OK]
  5387. Check failure of execveat(5, 'execveat', 65535) with EINVAL... [OK]
  5388. Check failure of execveat(5, 'no-such-file', 0) with ENOENT... [OK]
  5389. Check failure of execveat(7, 'no-such-file', 0) with ENOENT... [OK]
  5390. Check failure of execveat(-100, 'no-such-file', 0) with ENOENT... [OK]
  5391. Check failure of execveat(5, '', 4096) with EACCES... [OK]
  5392. Check failure of execveat(5, 'Makefile', 0) with EACCES... [OK]
  5393. Check failure of execveat(12, '', 4096) with EACCES... [OK]
  5394. Check failure of execveat(13, '', 4096) with EACCES... [OK]
  5395. Check failure of execveat(99, '', 4096) with EBADF... [OK]
  5396. Check failure of execveat(99, 'execveat', 0) with EBADF... [OK]
  5397. Check failure of execveat(9, 'execveat', 0) with ENOTDIR... [OK]
  5398. Invoke copy of 'execveat' via filename of length 4094:
  5399. Check success of execveat(20, '', 4096)... [OK]
  5400. Check success of execveat(6, 'opt/kselftests/mainl...yyyyyyyyyyyyyyyyyyyy', 0)... [OK]
  5401. Invoke copy of 'script' via filename of length 4094:
  5402. Check success of execveat(21, '', 4096)... [OK]
  5403. /bin/sh: /dev/fd/6/opt/kselftests/mainline/exec/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxkselftest: Running tests in filesystems
  5404. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxkselftest: Running tests in firmware
  5405. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxkselftest: Running tests in ftrace
  5406. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxkselftest: Running tests in futex
  5407. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xkselftest: Running tests in gpio
  5408. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxkselftest: Running tests in intel_pstate
  5409. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxkselftest: Running tests in ipc
  5410. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxkselftest: Running tests in kcmp
  5411. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy: File name too long
  5412. Check success of execveat(6, 'opt/kselftests/mainl...yyyyyyyyyyyyyyyyyyyy', 0)... [OK]
  5413. selftests: execveat [PASS]
  5414.  
  5415. TAP versionkselftest: Running tests in kvm
  5416. 13
  5417. Running tests in filesystems
  5418. ========================================
  5419. Failed to perform TIOCGPTPEER ioctl
  5420. selftests: devpts_pts [FAIL]
  5421.  
  5422. TAP version 13
  5423. Running tests in firmware
  5424. ========================================
  5425.  
  5426. TAP version 13
  5427. Running tests in ftrace
  5428. ========================================
  5429.  
  5430. TAP version 13
  5431. Running tests in futex
  5432. ========================================
  5433.  
  5434. TAP version 13
  5435. Running tests in gpio
  5436. ========================================
  5437.  
  5438. TAP version 13
  5439. Running tests in intel_pstate
  5440. ========================================
  5441.  
  5442. TAP version 13
  5443. Running tests in ipc
  5444. ========kselftest: Running tests in lib
  5445. ================================
  5446. Pass 0 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0
  5447. 1..0
  5448. selftests: msgque [PASS]
  5449.  
  5450. TAP version 13
  5451. Running tests in kcmp
  5452. ========================================
  5453. pid1: 2206 pid2: 2207 FD: 2 FILES: 1 VM: 1 FS: 2 SIGHAND: 2 IO: 2 SYSVSEM: 0 INV: -1
  5454. PASS: 0 returned as expected
  5455. PASS: 0 returned as expected
  5456. FAIL: 0 expected but -1 returned (Invalid argument)
  5457. Pass 2 Fail 1 Xfail 0 Xpass 0 Skip 0 Error 0
  5458. 1..3
  5459. Bail out!
  5460. Pass 2 Fail 1 Xfail 0 Xpass 0 Skip 0 Error 0
  5461. 1..3
  5462. Pass 0 Fail 0 Xfail 0 Xpass 0 Skipkselftest: Running tests in membarrier
  5463. 0 Error 0
  5464. 1..0
  5465. selftests: kcmp_kselftest: Running tests in memfd
  5466. test [PASS]
  5467.  
  5468. TAP version 13
  5469. Running tests in kvm
  5470. ========================================
  5471. ./run_kselftest.sh: line 127: ./set_sregs_test: No such file or directory
  5472. selftests: set_sregs_test [FAIL]
  5473. ./run_kselftest.sh: line 128: ./sync_regs_test: No such file or directory
  5474. selftests: sync_regs_test [FAIL]
  5475. ./run_kselftest.sh: line 129: ./vmx_tsc_adjust_test: No such file or directory
  5476. selftests: vmx_tsc_adjust_test [FAIL]
  5477.  
  5478. TAP version 13
  5479. Running tests in lib
  5480. ========================================
  5481. printf: [SKIP]
  5482. selftests: printf.sh [FAIL]
  5483.  
  5484. TAP version 13
  5485. Running tests in membarrier
  5486. ========================================
  5487.  
  5488. TAP version 13
  5489. Running tests in memfd
  5490. ========================================
  5491. fuse: device not found, try 'modprobe fuse' first
  5492. memfd: CREATE
  5493. memfd: BASIC
  5494. memfd: SEAL-WRITE
  5495. memfd: SEAL-SHRINK
  5496. memfd: SEAL-GROW
  5497. memfd: SEAL-RESIZE
  5498. memfd: SHARE-DUP
  5499. memfd: SHARE-MMAP
  5500. memfd: SHARE-OPEN
  5501. memfd: SHARE-FORK
  5502. memfd: SHARE-DUP (shared file-table)
  5503. memfd: SHARE-MMAP (shared file-table)
  5504. memfd: SHARE-OPEN (shared file-table)
  5505. memfd: SHARE-FORK (shared file-table)
  5506. memfd: DONE
  5507. run_tests.sh (2218): drop_caches: 3
  5508. memfd-hugetlb: CREATE
  5509. memfd_create("", 0) failed: Invalid argument
  5510. ./run_tests.sh: line 62: 2228 Aborted (core dumped) ./memfd_test hugetlbfs
  5511. fusermount: failed to unmount /opt/kselftests/mainline/memfd/mnt: Invalid argument
  5512. fuse: device not found, try 'modprobe fuse' first
  5513. selftests: run_tests.sh [PASS]
  5514.  
  5515. TAP version 13
  5516. Rukselftest: Running tests in memory-hotplug
  5517. nning tests in memory-hotplug
  5518. =============================kselftest: Running tests in mount
  5519. ===========
  5520.  
  5521. TAP version 13
  5522. Running tests in mount
  5523. ========================================
  5524.  
  5525. TAP version 13
  5526. Rukselftest: Running tests in mqueue
  5527. nning tests in mqueue
  5528. ========================================
  5529.  
  5530. Initial system state:
  5531. Using queue path: /test1
  5532. RLIMIT_MSGQUEUE(soft): 819200
  5533. RLIMIT_MSGQUEUE(hard): 819200
  5534. Maximum Message Size: 8192
  5535. Maximum Queue Size: 10
  5536. Default Message Size: 8192
  5537. Default Queue Size: 10
  5538.  
  5539. Adjusted system state for testing:
  5540. RLIMIT_MSGQUEUE(soft): 819200
  5541. RLIMIT_MSGQUEUE(hard): 819200
  5542. Maximum Message Size: 8192
  5543. Maximum Queue Size: 10
  5544. Default Message Size: 8192
  5545. Default Queue Size: 10
  5546.  
  5547.  
  5548. Test series 1, behavior when no attr struct passed to mq_open:
  5549. Kernel supports setting defaults separately from maximums: PASS
  5550. Given sane values, mq_open without an attr struct succeeds: PASS
  5551. Kernel properly honors default setting knobs: PASS
  5552. Kernel properly limits default values to lesser of default/max: PASS
  5553. Kernel properly fails to create queue when defaults would
  5554. exceed rlimit: PASS
  5555.  
  5556.  
  5557. Test series 2, behavior when attr struct is passed to mq_open:
  5558. Queue open in excess of rlimit max when euid = 0 failed: PASS
  5559. Queue open with mq_maxmsg > limit when euid = 0 succeeded: PASS
  5560. Queue open with mq_msgsize > limit when euid = 0 succeeded: PASS
  5561. Queue open with total size > 2GB when euid = 0 failed: PASS
  5562. Queue open in excess of rlimit max when euid = 99 failed: PASS
  5563. Queue open with mq_maxmsg > limit when euid = 99 failed: PASS
  5564. Queue open with mq_msgsize > limit when euid = 99 failed: PASS
  5565. Queue open with total size > 2GB when euid = 99 failed: PASS
  5566.  
  5567. Initial system state:
  5568. Using queue path: /mq_perf_tests
  5569. RLIMIT_MSGQUEUE(soft): 819200
  5570. RLIMIT_MSGQUEUE(hard): 819200
  5571. Maximum Message Size: 8192
  5572. Maximum Queue Size: 10
  5573. Nice value: 0
  5574.  
  5575. Adjusted system state for testing:
  5576. RLIMIT_MSGQUEUE(soft): (unlimited)
  5577. RLIMIT_MSGQUEUE(hard): (unlimited)
  5578. Maximum Message Size: 16777216
  5579. Maximum Queue Size: 65530
  5580. Nice value: -20
  5581. Continuous mode: (disabled)
  5582. CPUs to pin: 7
  5583.  
  5584. Queue /mq_perf_tests created:
  5585. mq_flags: O_NONBLOCK
  5586. mq_maxmsg: 65530
  5587. mq_msgsize: 16
  5588. mq_curmsgs: 0
  5589.  
  5590. Started mqueue performance test thread on CPU 7
  5591. Max priorities: 32768
  5592. Clock resolution: 1 nsec
  5593.  
  5594. Test #1: Time send/recv message, queue empty
  5595. (10000000 iterations)
  5596. Send msg: 89.551144445s total time
  5597. 8955 nsec/msg
  5598. Recv msg: 107.644725323s total time
  5599. 10764 nsec/msg
  5600.  
  5601. Test #2a: Time send/recv message, queue full, constant prio
  5602. :
  5603. (100000 iterations)
  5604. Filling queue...done. 0.318596668s
  5605. Testing...done.
  5606. Send msg: 0.899125268s total time
  5607. 8991 nsec/msg
  5608. Recv msg: 0.971990014s total time
  5609. 9719 nsec/msg
  5610. Draining queue...done. 0.365185834s
  5611.  
  5612. Test #2b: Time send/recv message, queue full, increasing prio
  5613. :
  5614. (100000 iterations)
  5615. Filling queue...done. 0.375832500s
  5616. Testing...done.
  5617. Send msg: 0.951239014s total time
  5618. 9512 nsec/msg
  5619. Recv msg: 1.89356737s total time
  5620. 10893 nsec/msg
  5621. Draining queue...done. 0.397614167s
  5622.  
  5623. Test #2c: Time send/recv message, queue full, decreasing prio
  5624. :
  5625. (100000 iterations)
  5626. Filling queue...done. 0.374169167s
  5627. Testing...done.
  5628. Send msg: 0.955662572s total time
  5629. 9556 nsec/msg
  5630. Recv msg: 1.60907466s total time
  5631. 10609 nsec/msg
  5632. Draining queue...done. 0.399725000s
  5633.  
  5634. Test #2d: Time send/recv message, queue full, random prio
  5635. :
  5636. (100000 iterations)
  5637. Filling queue...done. 0.403492500s
  5638. Testing...done.
  5639. Send msg: 0.996808351s total time
  5640. 9968 nsec/msg
  5641. Recv msg: 1.89992446s total time
  5642. 10899 nsec/msg
  5643. Draining queue...done. 0.395238333s
  5644.  
  5645. TAP version 13
  5646. Rkselftest: Running tests in net
  5647. unning tests in net
  5648. ========================================
  5649. ---- IPv4 UDP ----
  5650. Testing EBPF mod 10...
  5651. ./reuseport_bpf: failed to set SO_ATTACH_REUSEPORT_EBPF: Protocol not available
  5652. selftests: reuseport_bpf [FAIL]
  5653. ---- UDP IPv4 created before IPv6 ----
  5654. ---- UDP IPv6 created before IPv4 ----
  5655. ---- UDP IPv4 created before IPv6 (large) ----
  5656. ---- UDP IPv6 created before IPv4 (large) ----
  5657. ---- TCP IPv4 created before IPv6 ----
  5658. ---- TCP IPv6 created before IPv4 ----
  5659. SUCCESS
  5660. selftests: reuseport_dualstack [PASS]
  5661. Opening 127.0.0.1:9999
  5662. Opening INADDR_ANY:9999
  5663. bind: Address already in use
  5664. Opening in6addr_any:9999
  5665. Opening INADDR_ANY:9999
  5666. bind: Address already in use
  5667. Opening INADDR_ANY:9999 after closing ipv6 socket
  5668. bind: Address already in use
  5669. Successselftests: reuseaddr_conflict [PASS]
  5670. --------------------
  5671. running socket test
  5672. --------------------
  5673. [PASS]
  5674. selftests: run_netsocktests [PASS]
  5675. selftests: netdevice.sh [PASS]
  5676. RTNETLINK answers: Operation not supported
  5677. veth not supported
  5678. TEST: vti6: PMTU exceptions [SKIP]
  5679. RTNETLINK answers: Operation not supported
  5680. veth not supported
  5681. TEST: vti4: PMTU exceptions [SKIP]
  5682. RTNETLINK answers: Operation not supported
  5683. veth not supported
  5684. TEST: vti4: default MTU assignment [SKIP]
  5685. RTNETLINK answers: Operation not supported
  5686. veth not supported
  5687. TEST: vti6: default MTU assignment [SKIP]
  5688. RTNETLINK answers: Operation not supported
  5689. TEST: vti4: MTU setting on link creation [SKIP]
  5690. vti not supported
  5691. RTNETLINK answers: Operation not supported
  5692. TEST: vti6: MTU setting on link creation [SKIP]
  5693. vti6 not supported
  5694. RTNETLINK answers: Operation not supported
  5695. TEST: vti6: MTU changes on link changes [SKIP]
  5696. dummy not supported
  5697. selftests: kselftest: Running tests in nsfs
  5698. pmtu.sh [PASS]
  5699.  
  5700. TAP versionkselftest: Running tests in powerpc
  5701. 13
  5702. Running tests in nsfs
  5703. ===kselftest: Running tests in proc
  5704. =====================================
  5705.  
  5706. TAP version 13
  5707. Running tests in powerpc
  5708. ========================================
  5709. ./run_kselftest.sh: line 194: cd: powerpc: No such file or directory
  5710.  
  5711. TAP version 13
  5712. Running tests in proc
  5713. ========================================
  5714. selftests: proc-loadavg-001 [PASS]
  5715. selftests: proc-self-map-files-001 [FAIL]
  5716. selftests: proc-self-map-files-002 [FAIL]
  5717. selftests: proc-self-syscall [PASS]
  5718. selftests: proc-self-wchan [PASS]
  5719. selftests: proc-uptime-001 [PASS]
  5720. selftests: proc-uptime-002 [PASS]
  5721. ICMPv6: process `read' is using deprecated sysctl (syscall) net.ipv6.neigh.default.base_reachable_time - use net.ipv6.neigh.default.base_reachable_time_ms instead
  5722. nr_pdflush_threads exported in /proc is scheduled for removal
  5723. sysrq: SysRq : HELP : loglevel(0-9) reboot(b) crash(c) show-all-locks(d) terminate-all-tasks(e) memory-full-oom-kill(f) kill-all-tasks(i) thaw-filesystems(j) sak(k) show-backtrace-all-active-cpus(l) show-memory-usage(m) nice-all-RT-tasks(n) poweroff(o) show-registers(p) show-all-timers(q) unraw(r) sync(s) show-task-states(t) unmount(u) show-blocked-tasks(w) dump-ftrace-buffer(z)
  5724. selftests: read [PASS]
  5725.  
  5726. TAP version 13
  5727. Rkselftest: Running tests in pstore
  5728. unning tests in pstore
  5729. kselftest: Running tests in ptrace
  5730. ========================================
  5731.  
  5732. TAP version 13
  5733. Running tests in ptrace
  5734. ========================================
  5735. PASS
  5736. selftests: peeksiginfo [PASS]
  5737.  
  5738. TAP vkselftest: Running tests in seccomp
  5739. ersion 13
  5740. Running tests in seccomp
  5741. ========================================
  5742. Calibrating reasonable sample size...
  5743. 1529568706.422940066 - 1529568706.422908400 = 31666
  5744. 1529568706.423124233 - 1529568706.423065066 = 59167
  5745. 1529568706.423270066 - 1529568706.423153400 = 116666
  5746. 1529568706.423531733 - 1529568706.423299233 = 232500
  5747. 1529568706.424026733 - 1529568706.423561733 = 465000
  5748. 1529568706.424983400 - 1529568706.424053400 = 930000
  5749. 1529568706.426909233 - 1529568706.425009233 = 1900000
  5750. 1529568706.430683400 - 1529568706.426939233 = 3744167
  5751. 1529568706.438183400 - 1529568706.430710066 = 7473334
  5752. 1529568706.453240900 - 1529568706.438212566 = 15028334
  5753. 1529568706.483212566 - 1529568706.453275900 = 29936666
  5754. 1529568706.544590066 - 1529568706.483254233 = 61335833
  5755. 1529568706.693695900 - 1529568706.544640900 = 149055000
  5756. 1529568706.992448400 - 1529568706.693745900 = 298702500
  5757. 1529568707.480607566 - 1529568706.992530066 = 488077500
  5758. 1529568708.438055066 - 1529568707.480655066 = 957400000
  5759. 1529568710.361870066 - 1529568708.438098399 = 1923771667
  5760. 1529568714.210866732 - 1529568710.361914233 = 3848952499
  5761. 1529568721.908528398 - 1529568714.210910899 = 7697617499
  5762. Benchmarking 8388608 samples...
  5763. 23.179049172 - 15.487610003 = 7691439169
  5764. getpid native: 916 ns
  5765. 32.901651673 - 23.179194172 = 9722457501
  5766. getpid RET_ALLkselftest: Running tests in sigaltstack
  5767. OW: 1159 ns
  5768. Estimated kselftest: Running tests in size
  5769. seccomp overhead per syscall: 243 ns
  5770. selftests: seccomp_benchmark [PASS]
  5771.  
  5772. TAP version 13
  5773. Running tests in sigaltstack
  5774. ========================================
  5775.  
  5776. TAP version 13
  5777. Running tests in size
  5778. ===kselftest: Running tests in splice
  5779. =====================================
  5780. TAP version 13
  5781. # Testing system size.
  5782. ok 1 get runtime memory use
  5783. # System runtime memory report (units in Kilobytes):
  5784. ---
  5785. Total: 1929112
  5786. Free: 1805668
  5787. Buffer: 1816
  5788. In use: 121628
  5789. ...
  5790. 1..1
  5791. selftests: get_size [PASS]
  5792.  
  5793. TAP vekselftest: Running tests in static_keys
  5794. rsion 13
  5795. Running tests in splice
  5796. ========================================
  5797. selftests: default_file_splice_read.sh [PASS]
  5798.  
  5799. TAP version 13
  5800. Running tests in static_keys
  5801. ========================================
  5802. static_key: [kselftest: Running tests in sync
  5803. FAIL]
  5804. selftests: test_kselftest: Running tests in sysctl
  5805. static_keys.sh [FAIL]
  5806. kselftest: Running tests in timers
  5807.  
  5808. TAP version 13
  5809. Running tests in sync
  5810. ========================================
  5811.  
  5812. TAP version 13
  5813. Running tests in sysctl
  5814. ========================================
  5815.  
  5816. TAP version 13
  5817. Running tests in timers
  5818. ========================================
  5819. Testing posix timers. False negative may happen on CPU execution
  5820. based timers if other threads run on the CPU...
  5821. Check itimer virtual... [OK]
  5822. Check itimer prof... [OK]
  5823. Check itimer real... [OK]
  5824. Check timer_create() per thread... [OK]
  5825. Check timer_create() per process... [OK]
  5826. Pass 0 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0
  5827. 1..0
  5828. selftests: posix_timers [PASS]
  5829. Nanosleep CLOCK_REALTIME [OK]
  5830. Nanosleep CLOCK_MONOTONIC [OK]
  5831. Nanosleep CLOCK_MONOTONIC_RAW [UNSUPPORTED]
  5832. Nanosleep CLOCK_REALTIME_COARSE [UNSUPPORTED]
  5833. Nanosleep CLOCK_MONOTONIC_COARSE [UNSUPPORTED]
  5834. Nanosleep CLOCK_BOOTTIME [OK]
  5835. Nanosleep CLOCK_REALTIME_ALARM [OK]
  5836. Nanosleep CLOCK_BOOTTIME_ALARM [OK]
  5837. Nanosleep CLOCK_TAI [OK]
  5838. Pass 0 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0
  5839. 1..0
  5840. selftests: nanosleep [PASS]
  5841. nsleep latency CLOCK_REALTIME [OK]
  5842. nsleep latency CLOCK_MONOTONIC [OK]
  5843. nsleep latency CLOCK_MONOTONIC_RAW [UNSUPPORTED]
  5844. nsleep latency CLOCK_REALTIME_COARSE [UNSUPPORTED]
  5845. nsleep latency CLOCK_MONOTONIC_COARSE [UNSUPPORTED]
  5846. nsleep latency CLOCK_BOOTTIME [OK]
  5847. nsleep latency CLOCK_REALTIME_ALARM [OK]
  5848. nsleep latency CLOCK_BOOTTIME_ALARM [OK]
  5849. nsleep latency CLOCK_TAI [OK]
  5850. Pass 0 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0
  5851. 1..0
  5852. selftests: nsleep-lat [PASS]
  5853. Setting timers for every 1 seconds
  5854. CLOCK_REALTIME ABSTIME PERIODIC timer fired early: 0 : [OK]
  5855. CLOCK_REALTIME ABSTIME PERIODIC max latency: 2843333 ns : [OK]
  5856. CLOCK_REALTIME RELTIME PERIODIC timer fired early: 0 : [OK]
  5857. CLOCK_REALTIME RELTIME PERIODIC max latency: 2971667 ns : [OK]
  5858. CLOCK_REALTIME ABSTIME ONE-SHOT timer fired early: 0 : [OK]
  5859. CLOCK_REALTIME ABSTIME ONE-SHOT max latency: 249167 ns : [OK]
  5860. CLOCK_REALTIME ABSTIME ONE-SHOT count: 1 : [OK]
  5861. CLOCK_REALTIME RELTIME ONE-SHOT timer fired early: 0 : [OK]
  5862. CLOCK_REALTIME RELTIME ONE-SHOT max latency: 535000 ns : [OK]
  5863. CLOCK_REALTIME RELTIME ONE-SHOT count: 1 : [OK]
  5864. CLOCK_MONOTONIC ABSTIME PERIODIC timer fired early: 0 : [OK]
  5865. CLOCK_MONOTONIC ABSTIME PERIODIC max latency: 554166 ns : [OK]
  5866. CLOCK_MONOTONIC RELTIME PERIODIC timer fired early: 0 : [OK]
  5867. CLOCK_MONOTONIC RELTIME PERIODIC max latency: 559999 ns : [OK]
  5868. CLOCK_MONOTONIC ABSTIME ONE-SHOT timer fired early: 0 : [OK]
  5869. CLOCK_MONOTONIC ABSTIME ONE-SHOT max latency: 244166 ns : [OK]
  5870. CLOCK_MONOTONIC ABSTIME ONE-SHOT count: 1 : [OK]
  5871. CLOCK_MONOTONIC RELTIME ONE-SHOT timer fired early: 0 : [OK]
  5872. CLOCK_MONOTONIC RELTIME ONE-SHOT max latency: 529999 ns : [OK]
  5873. CLOCK_MONOTONIC RELTIME ONE-SHOT count: 1 : [OK]
  5874. CLOCK_BOOTTIME ABSTIME PERIODIC timer fired early: 0 : [OK]
  5875. CLOCK_BOOTTIME ABSTIME PERIODIC max latency: 562500 ns : [OK]
  5876. CLOCK_BOOTTIME RELTIME PERIODIC timer fired early: 0 : [OK]
  5877. CLOCK_BOOTTIME RELTIME PERIODIC max latency: 569999 ns : [OK]
  5878. CLOCK_BOOTTIME ABSTIME ONE-SHOT timer fired early: 0 : [OK]
  5879. CLOCK_BOOTTIME ABSTIME ONE-SHOT max latency: 243334 ns : [OK]
  5880. CLOCK_BOOTTIME ABSTIME ONE-SHOT count: 1 : [OK]
  5881. CLOCK_BOOTTIME RELTIME ONE-SHOT timer fired early: 0 : [OK]
  5882. CLOCK_BOOTTIME RELTIME ONE-SHOT max latency: 552500 ns : [OK]
  5883. CLOCK_BOOTTIME RELTIME ONE-SHOT count: 1 : [OK]
  5884. CLOCK_REALTIME_ALARM ABSTIME PERIODIC timer fired early: 0 : [OK]
  5885. CLOCK_REALTIME_ALARM ABSTIME PERIODIC max latency: 540833 ns : [OK]
  5886. CLOCK_REALTIME_ALARM RELTIME PERIODIC timer fired early: 0 : [OK]
  5887. CLOCK_REALTIME_ALARM RELTIME PERIODIC max latency: 567499 ns : [OK]
  5888. CLOCK_REALTIME_ALARM ABSTIME ONE-SHOT timer fired early: 0 : [OK]
  5889. CLOCK_REALTIME_ALARM ABSTIME ONE-SHOT max latency: 266667 ns : [OK]
  5890. CLOCK_REALTIME_ALARM ABSTIME ONE-SHOT count: 1 : [OK]
  5891. CLOCK_REALTIME_ALARM RELTIME ONE-SHOT timer fired early: 0 : [OK]
  5892. CLOCK_REALTIME_ALARM RELTIME ONE-SHOT max latency: 882500 ns : [OK]
  5893. CLOCK_REALTIME_ALARM RELTIME ONE-SHOT count: 1 : [OK]
  5894. CLOCK_BOOTTIME_ALARM ABSTIME PERIODIC timer fired early: 0 : [OK]
  5895. CLOCK_BOOTTIME_ALARM ABSTIME PERIODIC max latency: 536667 ns : [OK]
  5896. CLOCK_BOOTTIME_ALARM RELTIME PERIODIC timer fired early: 0 : [OK]
  5897. CLOCK_BOOTTIME_ALARM RELTIME PERIODIC max latency: 583333 ns : [OK]
  5898. CLOCK_BOOTTIME_ALARM ABSTIME ONE-SHOT timer fired early: 0 : [OK]
  5899. CLOCK_BOOTTIME_ALARM ABSTIME ONE-SHOT max latency: 615834 ns : [OK]
  5900. CLOCK_BOOTTIME_ALARM ABSTIME ONE-SHOT count: 1 : [OK]
  5901. CLOCK_BOOTTIME_ALARM RELTIME ONE-SHOT timer fired early: 0 : [OK]
  5902. CLOCK_BOOTTIME_ALARM RELTIME ONE-SHOT max latency: 567500 ns : [OK]
  5903. CLOCK_BOOTTIME_ALARM RELTIME ONE-SHOT count: 1 : [OK]
  5904. CLOCK_TAI ABSTIME PERIODIC timer fired early: 0 : [OK]
  5905. CLOCK_TAI ABSTIME PERIODIC max latency: 545833 ns : [OK]
  5906. CLOCK_TAI RELTIME PERIODIC timer fired early: 0 : [OK]
  5907. CLOCK_TAI RELTIME PERIODIC max latency: 1289166 ns : [OK]
  5908. CLOCK_TAI ABSTIME ONE-SHOT timer fired early: 0 : [OK]
  5909. CLOCK_TAI ABSTIME ONE-SHOT max latency: 285000 ns : [OK]
  5910. CLOCK_TAI ABSTIME ONE-SHOT count: 1 : [OK]
  5911. CLOCK_TAI RELTIME ONE-SHOT timer fired early: 0 : [OK]
  5912. CLOCK_TAI RELTIME ONE-SHOT max latency: 581666 ns : [OK]
  5913. CLOCK_TAI RELTIME ONE-SHOT count: 1 : [OK]
  5914. Pass 0 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0
  5915. 1..0
  5916. selftests: set-timer-lat [PASS]
  5917. Mqueue latency : [OK]
  5918. Pass 0 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0
  5919. 1..0
  5920. selftests: mqueue-lat [PASS]
  5921. Consistent CLOCK_REALTIME [OK]
  5922. Consistent CLOCK_MONOTONIC [OK]
  5923. Consistent CLOCK_PROCESS_CPUTIME_ID [OK]
  5924. Consistent CLOCK_THREAD_CPUTIME_ID [OK]
  5925. Consistent CLOCK_MONOTONIC_RAW [OK]
  5926. Consistent CLOCK_REALTIME_COARSE [OK]
  5927. Consistent CLOCK_MONOTONIC_COARSE [OK]
  5928. Consistent CLOCK_BOOTTIME [OK]
  5929. Consistent CLOCK_REALTIME_ALARM [OK]
  5930. Consistent CLOCK_BOOTTIME_ALARM [OK]
  5931. Consistent CLOCK_TAI [OK]
  5932. Pass 0 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0
  5933. 1..0
  5934. selftests: inconsistency-check [PASS]
  5935. Estimating clock drift: 0.3(est) 0.0(act) [OK]
  5936. Pass 0 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0
  5937. 1..0
  5938. selftests: raw_skew [PASS]
  5939. Thu, 21 Jun 2018 08:20:45 +0000
  5940. Testing consistency with 8 threads for 30 seconds: [OK]
  5941. Pass 0 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0
  5942. 1..0
  5943. skselftest: Running tests in user
  5944. elftests: threadtest [PASS]
  5945.  
  5946. TAP version 13
  5947. Running tests in user
  5948. ========================================
  5949. user_copy: [FAIL]
  5950. selftests: test_user_ckselftest: Running tests in vm
  5951. opy.sh [FAIL]
  5952.  
  5953. TAP verkselftest: Running tests in x86
  5954. sion 13
  5955. Running tests ikselftest: Running tests in zram
  5956. n vm
  5957. ========================================
  5958.  
  5959. TAP version 13
  5960. Running tests in x86
  5961. ========================================
  5962. ./run_kselftest.sh: line 300: cd: x86: No such file or directory
  5963.  
  5964. TAP version 13
  5965. Running tests in zram
  5966. ========================================
  5967. zram.sh : No zram.ko module or /dev/zram0 device file not found
  5968. zram.sh : CONFIG_ZRAM is not set
  5969. selftests: zram.sh [FAIL]
  5970. hikey:/opt/kselftests/mainline#
Add Comment
Please, Sign In to add comment