@nxtedition/rocksdb 6.0.2 → 6.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (257) hide show
  1. package/BUILDING.md +12 -4
  2. package/binding.cc +2 -0
  3. package/deps/rocksdb/rocksdb/CMakeLists.txt +9 -0
  4. package/deps/rocksdb/rocksdb/Makefile +16 -5
  5. package/deps/rocksdb/rocksdb/TARGETS +23 -2
  6. package/deps/rocksdb/rocksdb/cmake/modules/CxxFlags.cmake +7 -0
  7. package/deps/rocksdb/rocksdb/cmake/modules/FindJeMalloc.cmake +29 -0
  8. package/deps/rocksdb/rocksdb/cmake/modules/FindNUMA.cmake +29 -0
  9. package/deps/rocksdb/rocksdb/cmake/modules/FindSnappy.cmake +29 -0
  10. package/deps/rocksdb/rocksdb/cmake/modules/FindTBB.cmake +33 -0
  11. package/deps/rocksdb/rocksdb/cmake/modules/Findgflags.cmake +29 -0
  12. package/deps/rocksdb/rocksdb/cmake/modules/Findlz4.cmake +29 -0
  13. package/deps/rocksdb/rocksdb/cmake/modules/Finduring.cmake +26 -0
  14. package/deps/rocksdb/rocksdb/cmake/modules/Findzstd.cmake +29 -0
  15. package/deps/rocksdb/rocksdb/cmake/modules/ReadVersion.cmake +10 -0
  16. package/deps/rocksdb/rocksdb/db/builder.cc +12 -4
  17. package/deps/rocksdb/rocksdb/db/c.cc +26 -0
  18. package/deps/rocksdb/rocksdb/db/c_test.c +3 -0
  19. package/deps/rocksdb/rocksdb/db/column_family.cc +8 -2
  20. package/deps/rocksdb/rocksdb/db/compaction/compaction_job.cc +29 -6
  21. package/deps/rocksdb/rocksdb/db/compaction/compaction_job.h +8 -2
  22. package/deps/rocksdb/rocksdb/db/compaction/compaction_job_test.cc +16 -4
  23. package/deps/rocksdb/rocksdb/db/compaction/compaction_picker_test.cc +2 -1
  24. package/deps/rocksdb/rocksdb/db/compaction/compaction_service_test.cc +16 -0
  25. package/deps/rocksdb/rocksdb/db/db_basic_test.cc +402 -30
  26. package/deps/rocksdb/rocksdb/db/db_impl/db_impl.cc +2 -12
  27. package/deps/rocksdb/rocksdb/db/db_impl/db_impl.h +14 -0
  28. package/deps/rocksdb/rocksdb/db/db_impl/db_impl_compaction_flush.cc +7 -5
  29. package/deps/rocksdb/rocksdb/db/db_impl/db_impl_experimental.cc +1 -1
  30. package/deps/rocksdb/rocksdb/db/db_impl/db_impl_open.cc +33 -7
  31. package/deps/rocksdb/rocksdb/db/db_impl/db_impl_readonly.cc +54 -23
  32. package/deps/rocksdb/rocksdb/db/db_impl/db_impl_readonly.h +3 -0
  33. package/deps/rocksdb/rocksdb/db/db_impl/db_impl_secondary.cc +8 -1
  34. package/deps/rocksdb/rocksdb/db/db_options_test.cc +16 -0
  35. package/deps/rocksdb/rocksdb/db/db_rate_limiter_test.cc +14 -15
  36. package/deps/rocksdb/rocksdb/db/db_readonly_with_timestamp_test.cc +331 -0
  37. package/deps/rocksdb/rocksdb/db/db_secondary_test.cc +5 -0
  38. package/deps/rocksdb/rocksdb/db/db_test.cc +16 -0
  39. package/deps/rocksdb/rocksdb/db/db_test2.cc +221 -92
  40. package/deps/rocksdb/rocksdb/db/db_test_util.cc +6 -2
  41. package/deps/rocksdb/rocksdb/db/db_test_util.h +4 -2
  42. package/deps/rocksdb/rocksdb/db/db_with_timestamp_basic_test.cc +1 -171
  43. package/deps/rocksdb/rocksdb/db/db_with_timestamp_test_util.cc +96 -0
  44. package/deps/rocksdb/rocksdb/db/db_with_timestamp_test_util.h +126 -0
  45. package/deps/rocksdb/rocksdb/db/experimental.cc +1 -1
  46. package/deps/rocksdb/rocksdb/db/external_sst_file_basic_test.cc +57 -0
  47. package/deps/rocksdb/rocksdb/db/external_sst_file_ingestion_job.cc +13 -2
  48. package/deps/rocksdb/rocksdb/db/external_sst_file_ingestion_job.h +2 -0
  49. package/deps/rocksdb/rocksdb/db/flush_job.cc +10 -11
  50. package/deps/rocksdb/rocksdb/db/import_column_family_job.cc +11 -1
  51. package/deps/rocksdb/rocksdb/db/import_column_family_test.cc +6 -0
  52. package/deps/rocksdb/rocksdb/db/repair.cc +12 -1
  53. package/deps/rocksdb/rocksdb/db/repair_test.cc +32 -10
  54. package/deps/rocksdb/rocksdb/db/snapshot_impl.h +3 -1
  55. package/deps/rocksdb/rocksdb/db/table_cache.cc +19 -127
  56. package/deps/rocksdb/rocksdb/db/table_cache.h +3 -2
  57. package/deps/rocksdb/rocksdb/db/table_cache_sync_and_async.h +140 -0
  58. package/deps/rocksdb/rocksdb/db/version_builder_test.cc +130 -128
  59. package/deps/rocksdb/rocksdb/db/version_edit.cc +20 -0
  60. package/deps/rocksdb/rocksdb/db/version_edit.h +13 -4
  61. package/deps/rocksdb/rocksdb/db/version_edit_test.cc +14 -14
  62. package/deps/rocksdb/rocksdb/db/version_set.cc +205 -212
  63. package/deps/rocksdb/rocksdb/db/version_set.h +11 -0
  64. package/deps/rocksdb/rocksdb/db/version_set_sync_and_async.h +154 -0
  65. package/deps/rocksdb/rocksdb/db/version_set_test.cc +10 -9
  66. package/deps/rocksdb/rocksdb/db_stress_tool/db_stress_common.h +2 -0
  67. package/deps/rocksdb/rocksdb/db_stress_tool/db_stress_gflags.cc +13 -0
  68. package/deps/rocksdb/rocksdb/db_stress_tool/db_stress_test_base.cc +15 -0
  69. package/deps/rocksdb/rocksdb/file/file_prefetch_buffer.cc +159 -65
  70. package/deps/rocksdb/rocksdb/file/file_prefetch_buffer.h +43 -21
  71. package/deps/rocksdb/rocksdb/file/prefetch_test.cc +142 -17
  72. package/deps/rocksdb/rocksdb/file/writable_file_writer.cc +23 -27
  73. package/deps/rocksdb/rocksdb/file/writable_file_writer.h +2 -3
  74. package/deps/rocksdb/rocksdb/include/rocksdb/advanced_options.h +23 -5
  75. package/deps/rocksdb/rocksdb/include/rocksdb/c.h +14 -1
  76. package/deps/rocksdb/rocksdb/include/rocksdb/file_system.h +2 -0
  77. package/deps/rocksdb/rocksdb/include/rocksdb/options.h +17 -0
  78. package/deps/rocksdb/rocksdb/include/rocksdb/perf_context.h +2 -0
  79. package/deps/rocksdb/rocksdb/include/rocksdb/snapshot.h +4 -1
  80. package/deps/rocksdb/rocksdb/include/rocksdb/statistics.h +3 -0
  81. package/deps/rocksdb/rocksdb/include/rocksdb/utilities/options_type.h +189 -0
  82. package/deps/rocksdb/rocksdb/include/rocksdb/version.h +1 -1
  83. package/deps/rocksdb/rocksdb/monitoring/perf_context.cc +5 -0
  84. package/deps/rocksdb/rocksdb/monitoring/statistics.cc +1 -1
  85. package/deps/rocksdb/rocksdb/options/cf_options.cc +13 -0
  86. package/deps/rocksdb/rocksdb/options/db_options.cc +8 -0
  87. package/deps/rocksdb/rocksdb/options/db_options.h +1 -0
  88. package/deps/rocksdb/rocksdb/options/options.cc +7 -0
  89. package/deps/rocksdb/rocksdb/options/options_helper.cc +4 -0
  90. package/deps/rocksdb/rocksdb/options/options_settable_test.cc +6 -4
  91. package/deps/rocksdb/rocksdb/options/options_test.cc +107 -9
  92. package/deps/rocksdb/rocksdb/src.mk +4 -1
  93. package/deps/rocksdb/rocksdb/table/block_based/block_based_table_builder.cc +9 -4
  94. package/deps/rocksdb/rocksdb/table/block_based/block_based_table_iterator.cc +80 -6
  95. package/deps/rocksdb/rocksdb/table/block_based/block_based_table_iterator.h +8 -2
  96. package/deps/rocksdb/rocksdb/table/block_based/block_based_table_reader.cc +81 -757
  97. package/deps/rocksdb/rocksdb/table/block_based/block_based_table_reader.h +21 -15
  98. package/deps/rocksdb/rocksdb/table/block_based/block_based_table_reader_impl.h +9 -3
  99. package/deps/rocksdb/rocksdb/table/block_based/block_based_table_reader_sync_and_async.h +754 -0
  100. package/deps/rocksdb/rocksdb/table/block_based/block_based_table_reader_test.cc +2 -1
  101. package/deps/rocksdb/rocksdb/table/block_based/block_prefetcher.cc +8 -0
  102. package/deps/rocksdb/rocksdb/table/block_based/filter_block.h +1 -10
  103. package/deps/rocksdb/rocksdb/table/block_based/filter_block_reader_common.cc +59 -1
  104. package/deps/rocksdb/rocksdb/table/block_based/filter_block_reader_common.h +18 -0
  105. package/deps/rocksdb/rocksdb/table/block_based/full_filter_block.cc +0 -61
  106. package/deps/rocksdb/rocksdb/table/block_based/full_filter_block.h +0 -13
  107. package/deps/rocksdb/rocksdb/table/block_based/index_reader_common.cc +1 -1
  108. package/deps/rocksdb/rocksdb/table/block_based/partitioned_filter_block.cc +3 -2
  109. package/deps/rocksdb/rocksdb/table/block_based/partitioned_index_iterator.cc +2 -2
  110. package/deps/rocksdb/rocksdb/table/block_based/partitioned_index_reader.cc +2 -1
  111. package/deps/rocksdb/rocksdb/table/block_based/uncompression_dict_reader.cc +2 -1
  112. package/deps/rocksdb/rocksdb/table/block_fetcher.cc +60 -2
  113. package/deps/rocksdb/rocksdb/table/block_fetcher.h +2 -0
  114. package/deps/rocksdb/rocksdb/table/merging_iterator.cc +39 -0
  115. package/deps/rocksdb/rocksdb/table/multiget_context.h +46 -2
  116. package/deps/rocksdb/rocksdb/table/sst_file_dumper.cc +2 -1
  117. package/deps/rocksdb/rocksdb/table/sst_file_dumper.h +1 -1
  118. package/deps/rocksdb/rocksdb/table/table_reader.h +13 -0
  119. package/deps/rocksdb/rocksdb/table/unique_id.cc +27 -0
  120. package/deps/rocksdb/rocksdb/table/unique_id_impl.h +3 -0
  121. package/deps/rocksdb/rocksdb/test_util/testutil.cc +2 -0
  122. package/deps/rocksdb/rocksdb/tools/db_bench_tool.cc +23 -7
  123. package/deps/rocksdb/rocksdb/tools/sst_dump_tool.cc +9 -1
  124. package/deps/rocksdb/rocksdb/util/async_file_reader.cc +72 -0
  125. package/deps/rocksdb/rocksdb/util/async_file_reader.h +144 -0
  126. package/deps/rocksdb/rocksdb/util/compression.h +49 -0
  127. package/deps/rocksdb/rocksdb/util/coro_utils.h +111 -0
  128. package/deps/rocksdb/rocksdb/util/single_thread_executor.h +55 -0
  129. package/deps/rocksdb/rocksdb.gyp +16 -15
  130. package/package-lock.json +23687 -0
  131. package/package.json +2 -30
  132. package/prebuilds/darwin-arm64/node.napi.node +0 -0
  133. package/prebuilds/darwin-x64/node.napi.node +0 -0
  134. package/prebuilds/linux-x64/node.napi.node +0 -0
  135. package/deps/liburing/liburing/README +0 -46
  136. package/deps/liburing/liburing/test/232c93d07b74-test.c +0 -305
  137. package/deps/liburing/liburing/test/35fa71a030ca-test.c +0 -329
  138. package/deps/liburing/liburing/test/500f9fbadef8-test.c +0 -89
  139. package/deps/liburing/liburing/test/7ad0e4b2f83c-test.c +0 -93
  140. package/deps/liburing/liburing/test/8a9973408177-test.c +0 -106
  141. package/deps/liburing/liburing/test/917257daa0fe-test.c +0 -53
  142. package/deps/liburing/liburing/test/Makefile +0 -312
  143. package/deps/liburing/liburing/test/a0908ae19763-test.c +0 -58
  144. package/deps/liburing/liburing/test/a4c0b3decb33-test.c +0 -180
  145. package/deps/liburing/liburing/test/accept-link.c +0 -251
  146. package/deps/liburing/liburing/test/accept-reuse.c +0 -164
  147. package/deps/liburing/liburing/test/accept-test.c +0 -79
  148. package/deps/liburing/liburing/test/accept.c +0 -476
  149. package/deps/liburing/liburing/test/across-fork.c +0 -283
  150. package/deps/liburing/liburing/test/b19062a56726-test.c +0 -53
  151. package/deps/liburing/liburing/test/b5837bd5311d-test.c +0 -77
  152. package/deps/liburing/liburing/test/ce593a6c480a-test.c +0 -135
  153. package/deps/liburing/liburing/test/close-opath.c +0 -122
  154. package/deps/liburing/liburing/test/config +0 -10
  155. package/deps/liburing/liburing/test/connect.c +0 -398
  156. package/deps/liburing/liburing/test/cq-full.c +0 -96
  157. package/deps/liburing/liburing/test/cq-overflow.c +0 -294
  158. package/deps/liburing/liburing/test/cq-peek-batch.c +0 -102
  159. package/deps/liburing/liburing/test/cq-ready.c +0 -94
  160. package/deps/liburing/liburing/test/cq-size.c +0 -58
  161. package/deps/liburing/liburing/test/d4ae271dfaae-test.c +0 -96
  162. package/deps/liburing/liburing/test/d77a67ed5f27-test.c +0 -65
  163. package/deps/liburing/liburing/test/defer.c +0 -307
  164. package/deps/liburing/liburing/test/double-poll-crash.c +0 -186
  165. package/deps/liburing/liburing/test/eeed8b54e0df-test.c +0 -114
  166. package/deps/liburing/liburing/test/empty-eownerdead.c +0 -42
  167. package/deps/liburing/liburing/test/eventfd-disable.c +0 -151
  168. package/deps/liburing/liburing/test/eventfd-ring.c +0 -97
  169. package/deps/liburing/liburing/test/eventfd.c +0 -112
  170. package/deps/liburing/liburing/test/fadvise.c +0 -202
  171. package/deps/liburing/liburing/test/fallocate.c +0 -249
  172. package/deps/liburing/liburing/test/fc2a85cb02ef-test.c +0 -138
  173. package/deps/liburing/liburing/test/file-register.c +0 -843
  174. package/deps/liburing/liburing/test/file-update.c +0 -173
  175. package/deps/liburing/liburing/test/files-exit-hang-poll.c +0 -128
  176. package/deps/liburing/liburing/test/files-exit-hang-timeout.c +0 -134
  177. package/deps/liburing/liburing/test/fixed-link.c +0 -90
  178. package/deps/liburing/liburing/test/fsync.c +0 -224
  179. package/deps/liburing/liburing/test/hardlink.c +0 -136
  180. package/deps/liburing/liburing/test/helpers.c +0 -135
  181. package/deps/liburing/liburing/test/helpers.h +0 -67
  182. package/deps/liburing/liburing/test/io-cancel.c +0 -537
  183. package/deps/liburing/liburing/test/io_uring_enter.c +0 -296
  184. package/deps/liburing/liburing/test/io_uring_register.c +0 -664
  185. package/deps/liburing/liburing/test/io_uring_setup.c +0 -192
  186. package/deps/liburing/liburing/test/iopoll.c +0 -366
  187. package/deps/liburing/liburing/test/lfs-openat-write.c +0 -117
  188. package/deps/liburing/liburing/test/lfs-openat.c +0 -273
  189. package/deps/liburing/liburing/test/link-timeout.c +0 -1107
  190. package/deps/liburing/liburing/test/link.c +0 -496
  191. package/deps/liburing/liburing/test/link_drain.c +0 -229
  192. package/deps/liburing/liburing/test/madvise.c +0 -195
  193. package/deps/liburing/liburing/test/mkdir.c +0 -108
  194. package/deps/liburing/liburing/test/multicqes_drain.c +0 -383
  195. package/deps/liburing/liburing/test/nop-all-sizes.c +0 -107
  196. package/deps/liburing/liburing/test/nop.c +0 -115
  197. package/deps/liburing/liburing/test/open-close.c +0 -146
  198. package/deps/liburing/liburing/test/openat2.c +0 -240
  199. package/deps/liburing/liburing/test/personality.c +0 -204
  200. package/deps/liburing/liburing/test/pipe-eof.c +0 -81
  201. package/deps/liburing/liburing/test/pipe-reuse.c +0 -105
  202. package/deps/liburing/liburing/test/poll-cancel-ton.c +0 -139
  203. package/deps/liburing/liburing/test/poll-cancel.c +0 -135
  204. package/deps/liburing/liburing/test/poll-link.c +0 -227
  205. package/deps/liburing/liburing/test/poll-many.c +0 -208
  206. package/deps/liburing/liburing/test/poll-mshot-update.c +0 -273
  207. package/deps/liburing/liburing/test/poll-ring.c +0 -48
  208. package/deps/liburing/liburing/test/poll-v-poll.c +0 -353
  209. package/deps/liburing/liburing/test/poll.c +0 -109
  210. package/deps/liburing/liburing/test/probe.c +0 -137
  211. package/deps/liburing/liburing/test/read-write.c +0 -876
  212. package/deps/liburing/liburing/test/register-restrictions.c +0 -633
  213. package/deps/liburing/liburing/test/rename.c +0 -134
  214. package/deps/liburing/liburing/test/ring-leak.c +0 -173
  215. package/deps/liburing/liburing/test/ring-leak2.c +0 -249
  216. package/deps/liburing/liburing/test/rsrc_tags.c +0 -449
  217. package/deps/liburing/liburing/test/runtests-loop.sh +0 -16
  218. package/deps/liburing/liburing/test/runtests.sh +0 -170
  219. package/deps/liburing/liburing/test/rw_merge_test.c +0 -97
  220. package/deps/liburing/liburing/test/self.c +0 -91
  221. package/deps/liburing/liburing/test/send_recv.c +0 -291
  222. package/deps/liburing/liburing/test/send_recvmsg.c +0 -345
  223. package/deps/liburing/liburing/test/sendmsg_fs_cve.c +0 -198
  224. package/deps/liburing/liburing/test/shared-wq.c +0 -84
  225. package/deps/liburing/liburing/test/short-read.c +0 -75
  226. package/deps/liburing/liburing/test/shutdown.c +0 -163
  227. package/deps/liburing/liburing/test/sigfd-deadlock.c +0 -74
  228. package/deps/liburing/liburing/test/socket-rw-eagain.c +0 -156
  229. package/deps/liburing/liburing/test/socket-rw.c +0 -147
  230. package/deps/liburing/liburing/test/splice.c +0 -511
  231. package/deps/liburing/liburing/test/sq-full-cpp.cc +0 -45
  232. package/deps/liburing/liburing/test/sq-full.c +0 -45
  233. package/deps/liburing/liburing/test/sq-poll-dup.c +0 -200
  234. package/deps/liburing/liburing/test/sq-poll-kthread.c +0 -168
  235. package/deps/liburing/liburing/test/sq-poll-share.c +0 -137
  236. package/deps/liburing/liburing/test/sq-space_left.c +0 -159
  237. package/deps/liburing/liburing/test/sqpoll-cancel-hang.c +0 -159
  238. package/deps/liburing/liburing/test/sqpoll-disable-exit.c +0 -195
  239. package/deps/liburing/liburing/test/sqpoll-exit-hang.c +0 -77
  240. package/deps/liburing/liburing/test/sqpoll-sleep.c +0 -68
  241. package/deps/liburing/liburing/test/statx.c +0 -172
  242. package/deps/liburing/liburing/test/stdout.c +0 -232
  243. package/deps/liburing/liburing/test/submit-link-fail.c +0 -154
  244. package/deps/liburing/liburing/test/submit-reuse.c +0 -239
  245. package/deps/liburing/liburing/test/symlink.c +0 -116
  246. package/deps/liburing/liburing/test/teardowns.c +0 -58
  247. package/deps/liburing/liburing/test/thread-exit.c +0 -131
  248. package/deps/liburing/liburing/test/timeout-new.c +0 -246
  249. package/deps/liburing/liburing/test/timeout-overflow.c +0 -204
  250. package/deps/liburing/liburing/test/timeout.c +0 -1354
  251. package/deps/liburing/liburing/test/unlink.c +0 -111
  252. package/deps/liburing/liburing/test/wakeup-hang.c +0 -162
  253. package/deps/rocksdb/rocksdb/README.md +0 -32
  254. package/deps/rocksdb/rocksdb/microbench/README.md +0 -60
  255. package/deps/rocksdb/rocksdb/plugin/README.md +0 -43
  256. package/deps/rocksdb/rocksdb/port/README +0 -10
  257. package/deps/rocksdb/rocksdb/utilities/transactions/lock/range/range_tree/lib/README +0 -13
@@ -1,312 +0,0 @@
1
- prefix ?= /usr
2
- datadir ?= $(prefix)/share
3
-
4
- INSTALL=install
5
-
6
- ifneq ($(MAKECMDGOALS),clean)
7
- include ../config-host.mak
8
- endif
9
-
10
- CPPFLAGS ?=
11
- override CPPFLAGS += -D_GNU_SOURCE -D__SANE_USERSPACE_TYPES__ \
12
- -I../src/include/ -include ../config-host.h
13
- CFLAGS ?= -g -O2
14
- XCFLAGS =
15
- override CFLAGS += -D_GNU_SOURCE \
16
- -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare \
17
- -L../src/
18
-
19
- ifdef CONFIG_HAVE_STRINGOP_OVERFLOW
20
- XCFLAGS += -Wstringop-overflow=0
21
- endif
22
- ifdef CONFIG_HAVE_ARRAY_BOUNDS
23
- XCFLAGS += -Warray-bounds=0
24
- endif
25
-
26
- CXXFLAGS ?=
27
- override CXXFLAGS += $(CFLAGS) -std=c++11
28
-
29
- test_targets += \
30
- 232c93d07b74-test \
31
- 35fa71a030ca-test \
32
- 500f9fbadef8-test \
33
- 7ad0e4b2f83c-test \
34
- 8a9973408177-test \
35
- 917257daa0fe-test \
36
- a0908ae19763-test \
37
- a4c0b3decb33-test \
38
- accept \
39
- accept-link \
40
- accept-reuse \
41
- accept-test \
42
- across-fork splice \
43
- b19062a56726-test \
44
- b5837bd5311d-test \
45
- ce593a6c480a-test \
46
- close-opath \
47
- connect \
48
- cq-full \
49
- cq-overflow \
50
- cq-peek-batch \
51
- cq-ready \
52
- cq-size \
53
- d4ae271dfaae-test \
54
- d77a67ed5f27-test \
55
- defer \
56
- double-poll-crash \
57
- eeed8b54e0df-test \
58
- empty-eownerdead \
59
- eventfd \
60
- eventfd-disable \
61
- eventfd-ring \
62
- fadvise \
63
- fallocate \
64
- fc2a85cb02ef-test \
65
- file-register \
66
- file-update \
67
- files-exit-hang-poll \
68
- files-exit-hang-timeout \
69
- fixed-link \
70
- fsync \
71
- hardlink \
72
- io-cancel \
73
- io_uring_enter \
74
- io_uring_register \
75
- io_uring_setup \
76
- iopoll \
77
- lfs-openat \
78
- lfs-openat-write \
79
- link \
80
- link-timeout \
81
- link_drain \
82
- madvise \
83
- mkdir \
84
- multicqes_drain \
85
- nop \
86
- nop-all-sizes \
87
- open-close \
88
- openat2 \
89
- personality \
90
- pipe-eof \
91
- pipe-reuse \
92
- poll \
93
- poll-cancel \
94
- poll-cancel-ton \
95
- poll-link \
96
- poll-many \
97
- poll-mshot-update \
98
- poll-ring \
99
- poll-v-poll \
100
- probe \
101
- read-write \
102
- register-restrictions \
103
- rename \
104
- ring-leak \
105
- ring-leak2 \
106
- rw_merge_test \
107
- self \
108
- send_recv \
109
- send_recvmsg \
110
- shared-wq \
111
- short-read \
112
- shutdown \
113
- sigfd-deadlock \
114
- socket-rw \
115
- socket-rw-eagain \
116
- sq-full \
117
- sq-poll-dup \
118
- sq-poll-kthread \
119
- sq-poll-share \
120
- sqpoll-disable-exit \
121
- sqpoll-exit-hang \
122
- sqpoll-cancel-hang \
123
- sqpoll-sleep \
124
- sq-space_left \
125
- stdout \
126
- submit-reuse \
127
- submit-link-fail \
128
- symlink \
129
- teardowns \
130
- thread-exit \
131
- timeout \
132
- timeout-new \
133
- timeout-overflow \
134
- unlink \
135
- wakeup-hang \
136
- sendmsg_fs_cve \
137
- rsrc_tags \
138
- # EOL
139
-
140
- all_targets += $(test_targets)
141
-
142
- include ../Makefile.quiet
143
-
144
- ifdef CONFIG_HAVE_STATX
145
- test_targets += statx
146
- endif
147
- all_targets += statx
148
-
149
- ifdef CONFIG_HAVE_CXX
150
- test_targets += sq-full-cpp
151
- endif
152
- all_targets += sq-full-cpp
153
-
154
- helpers = helpers.o
155
-
156
- all: ${helpers} $(test_targets)
157
-
158
- helpers.o: helpers.c helpers.c
159
- $(QUIET_CC)$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $< -luring
160
-
161
- %: %.c ${helpers} helpers.h
162
- $(QUIET_CC)$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< ${helpers} -luring $(XCFLAGS)
163
-
164
- %: %.cc ${helpers} helpers.h
165
- $(QUIET_CXX)$(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $@ $< ${helpers} -luring $(XCFLAGS)
166
-
167
- test_srcs := \
168
- helpers.c \
169
- 232c93d07b74-test.c \
170
- 35fa71a030ca-test.c \
171
- 500f9fbadef8-test.c \
172
- 7ad0e4b2f83c-test.c \
173
- 8a9973408177-test.c \
174
- 917257daa0fe-test.c \
175
- a0908ae19763-test.c \
176
- a4c0b3decb33-test.c \
177
- accept-link.c \
178
- accept-reuse.c \
179
- accept-test.c \
180
- accept.c \
181
- across-fork.c \
182
- b19062a56726-test.c \
183
- b5837bd5311d-test.c \
184
- ce593a6c480a-test.c \
185
- close-opath.c \
186
- connect.c \
187
- cq-full.c \
188
- cq-overflow.c \
189
- cq-peek-batch.c \
190
- cq-ready.c\
191
- cq-size.c \
192
- d4ae271dfaae-test.c \
193
- d77a67ed5f27-test.c \
194
- defer.c \
195
- double-poll-crash.c \
196
- eeed8b54e0df-test.c \
197
- empty-eownerdead.c \
198
- eventfd-disable.c \
199
- eventfd-ring.c \
200
- eventfd.c \
201
- fadvise.c \
202
- fallocate.c \
203
- fc2a85cb02ef-test.c \
204
- file-register.c \
205
- file-update.c \
206
- files-exit-hang-poll.c \
207
- files-exit-hang-timeout.c \
208
- fixed-link.c \
209
- fsync.c \
210
- hardlink.c \
211
- io-cancel.c \
212
- io_uring_enter.c \
213
- io_uring_register.c \
214
- io_uring_setup.c \
215
- iopoll.c \
216
- lfs-openat-write.c \
217
- lfs-openat.c \
218
- link-timeout.c \
219
- link.c \
220
- link_drain.c \
221
- madvise.c \
222
- mkdir.c \
223
- multicqes_drain.c \
224
- nop-all-sizes.c \
225
- nop.c \
226
- open-close.c \
227
- openat2.c \
228
- personality.c \
229
- pipe-eof.c \
230
- pipe-reuse.c \
231
- poll-cancel-ton.c \
232
- poll-cancel.c \
233
- poll-link.c \
234
- poll-many.c \
235
- poll-mshot-update.c \
236
- poll-ring.c \
237
- poll-v-poll.c \
238
- poll.c \
239
- probe.c \
240
- read-write.c \
241
- register-restrictions.c \
242
- rename.c \
243
- ring-leak.c \
244
- ring-leak2.c \
245
- rw_merge_test.c \
246
- self.c \
247
- send_recvmsg.c \
248
- shared-wq.c \
249
- short-read.c \
250
- shutdown.c \
251
- sigfd-deadlock.c \
252
- socket-rw.c \
253
- socket-rw-eagain.c \
254
- splice.c \
255
- sq-full-cpp.cc \
256
- sq-full.c \
257
- sq-poll-dup.c \
258
- sq-poll-kthread.c \
259
- sq-poll-share.c \
260
- sqpoll-disable-exit.c \
261
- sqpoll-exit-hang.c \
262
- sqpoll-cancel-hang.c \
263
- sqpoll-sleep.c \
264
- sq-space_left.c \
265
- statx.c \
266
- stdout.c \
267
- submit-reuse.c \
268
- submit-link-fail.c \
269
- symlink.c \
270
- teardowns.c \
271
- thread-exit.c \
272
- timeout-new.c \
273
- timeout-overflow.c \
274
- timeout.c \
275
- unlink.c \
276
- wakeup-hang.c \
277
- sendmsg_fs_cve.c \
278
- rsrc_tags.c \
279
- # EOL
280
-
281
- test_objs := $(patsubst %.c,%.ol,$(patsubst %.cc,%.ol,$(test_srcs)))
282
-
283
- 35fa71a030ca-test: XCFLAGS = -lpthread
284
- 232c93d07b74-test: XCFLAGS = -lpthread
285
- send_recv: XCFLAGS = -lpthread
286
- send_recvmsg: XCFLAGS = -lpthread
287
- poll-link: XCFLAGS = -lpthread
288
- accept-link: XCFLAGS = -lpthread
289
- submit-reuse: XCFLAGS = -lpthread
290
- poll-v-poll: XCFLAGS = -lpthread
291
- across-fork: XCFLAGS = -lpthread
292
- ce593a6c480a-test: XCFLAGS = -lpthread
293
- wakeup-hang: XCFLAGS = -lpthread
294
- pipe-eof: XCFLAGS = -lpthread
295
- timeout-new: XCFLAGS = -lpthread
296
- thread-exit: XCFLAGS = -lpthread
297
- ring-leak2: XCFLAGS = -lpthread
298
- poll-mshot-update: XCFLAGS = -lpthread
299
-
300
- install: $(test_targets) runtests.sh runtests-loop.sh
301
- $(INSTALL) -D -d -m 755 $(datadir)/liburing-test/
302
- $(INSTALL) -D -m 755 $(test_targets) $(datadir)/liburing-test/
303
- $(INSTALL) -D -m 755 runtests.sh $(datadir)/liburing-test/
304
- $(INSTALL) -D -m 755 runtests-loop.sh $(datadir)/liburing-test/
305
- clean:
306
- @rm -f $(all_targets) $(test_objs) helpers.o output/*
307
- @rm -rf output/
308
-
309
- runtests: all
310
- @./runtests.sh $(test_targets)
311
- runtests-loop: all
312
- @./runtests-loop.sh $(test_targets)
@@ -1,58 +0,0 @@
1
- /* SPDX-License-Identifier: MIT */
2
- // autogenerated by syzkaller (https://github.com/google/syzkaller)
3
-
4
- #include <endian.h>
5
- #include <stdint.h>
6
- #include <stdio.h>
7
- #include <stdlib.h>
8
- #include <string.h>
9
- #include <sys/types.h>
10
- #include <sys/mman.h>
11
- #include <unistd.h>
12
-
13
- #include "liburing.h"
14
- #include "../src/syscall.h"
15
-
16
- uint64_t r[1] = {0xffffffffffffffff};
17
-
18
- int main(int argc, char *argv[])
19
- {
20
- if (argc > 1)
21
- return 0;
22
- mmap((void *) 0x20000000, 0x1000000, 3, 0x32, -1, 0);
23
- intptr_t res = 0;
24
- *(uint32_t*)0x20000080 = 0;
25
- *(uint32_t*)0x20000084 = 0;
26
- *(uint32_t*)0x20000088 = 0;
27
- *(uint32_t*)0x2000008c = 0;
28
- *(uint32_t*)0x20000090 = 0;
29
- *(uint32_t*)0x20000094 = 0;
30
- *(uint32_t*)0x20000098 = 0;
31
- *(uint32_t*)0x2000009c = 0;
32
- *(uint32_t*)0x200000a0 = 0;
33
- *(uint32_t*)0x200000a4 = 0;
34
- *(uint32_t*)0x200000a8 = 0;
35
- *(uint32_t*)0x200000ac = 0;
36
- *(uint32_t*)0x200000b0 = 0;
37
- *(uint32_t*)0x200000b4 = 0;
38
- *(uint32_t*)0x200000b8 = 0;
39
- *(uint32_t*)0x200000bc = 0;
40
- *(uint32_t*)0x200000c0 = 0;
41
- *(uint32_t*)0x200000c4 = 0;
42
- *(uint64_t*)0x200000c8 = 0;
43
- *(uint32_t*)0x200000d0 = 0;
44
- *(uint32_t*)0x200000d4 = 0;
45
- *(uint32_t*)0x200000d8 = 0;
46
- *(uint32_t*)0x200000dc = 0;
47
- *(uint32_t*)0x200000e0 = 0;
48
- *(uint32_t*)0x200000e4 = 0;
49
- *(uint32_t*)0x200000e8 = 0;
50
- *(uint32_t*)0x200000ec = 0;
51
- *(uint64_t*)0x200000f0 = 0;
52
- res = __sys_io_uring_setup(0xa4, (struct io_uring_params *) 0x20000080);
53
- if (res != -1)
54
- r[0] = res;
55
- *(uint32_t*)0x20000280 = -1;
56
- __sys_io_uring_register(r[0], 2, (const void *) 0x20000280, 1);
57
- return 0;
58
- }
@@ -1,180 +0,0 @@
1
- /* SPDX-License-Identifier: MIT */
2
- // autogenerated by syzkaller (https://github.com/google/syzkaller)
3
-
4
- #include <dirent.h>
5
- #include <endian.h>
6
- #include <errno.h>
7
- #include <fcntl.h>
8
- #include <signal.h>
9
- #include <stdarg.h>
10
- #include <stdbool.h>
11
- #include <stdint.h>
12
- #include <stdio.h>
13
- #include <stdlib.h>
14
- #include <string.h>
15
- #include <sys/prctl.h>
16
- #include <sys/stat.h>
17
- #include <sys/types.h>
18
- #include <sys/wait.h>
19
- #include <sys/mman.h>
20
- #include <time.h>
21
- #include <unistd.h>
22
-
23
- #include "liburing.h"
24
- #include "../src/syscall.h"
25
-
26
- static void sleep_ms(uint64_t ms)
27
- {
28
- usleep(ms * 1000);
29
- }
30
-
31
- static uint64_t current_time_ms(void)
32
- {
33
- struct timespec ts;
34
- if (clock_gettime(CLOCK_MONOTONIC, &ts))
35
- exit(1);
36
- return (uint64_t)ts.tv_sec * 1000 + (uint64_t)ts.tv_nsec / 1000000;
37
- }
38
-
39
- static bool write_file(const char* file, const char* what, ...)
40
- {
41
- char buf[1024];
42
- va_list args;
43
- va_start(args, what);
44
- vsnprintf(buf, sizeof(buf), what, args);
45
- va_end(args);
46
- buf[sizeof(buf) - 1] = 0;
47
- int len = strlen(buf);
48
- int fd = open(file, O_WRONLY | O_CLOEXEC);
49
- if (fd == -1)
50
- return false;
51
- if (write(fd, buf, len) != len) {
52
- int err = errno;
53
- close(fd);
54
- errno = err;
55
- return false;
56
- }
57
- close(fd);
58
- return true;
59
- }
60
-
61
- static void kill_and_wait(int pid, int* status)
62
- {
63
- kill(-pid, SIGKILL);
64
- kill(pid, SIGKILL);
65
- int i;
66
- for (i = 0; i < 100; i++) {
67
- if (waitpid(-1, status, WNOHANG | __WALL) == pid)
68
- return;
69
- usleep(1000);
70
- }
71
- DIR* dir = opendir("/sys/fs/fuse/connections");
72
- if (dir) {
73
- for (;;) {
74
- struct dirent* ent = readdir(dir);
75
- if (!ent)
76
- break;
77
- if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0)
78
- continue;
79
- char abort[300];
80
- snprintf(abort, sizeof(abort), "/sys/fs/fuse/connections/%s/abort",
81
- ent->d_name);
82
- int fd = open(abort, O_WRONLY);
83
- if (fd == -1) {
84
- continue;
85
- }
86
- if (write(fd, abort, 1) < 0) {
87
- }
88
- close(fd);
89
- }
90
- closedir(dir);
91
- } else {
92
- }
93
- while (waitpid(-1, status, __WALL) != pid) {
94
- }
95
- }
96
-
97
- static void setup_test()
98
- {
99
- prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0);
100
- setpgrp();
101
- write_file("/proc/self/oom_score_adj", "1000");
102
- }
103
-
104
- static void execute_one(void);
105
-
106
- #define WAIT_FLAGS __WALL
107
-
108
- static void loop(void)
109
- {
110
- int iter;
111
- for (iter = 0; iter < 5000; iter++) {
112
- int pid = fork();
113
- if (pid < 0)
114
- exit(1);
115
- if (pid == 0) {
116
- setup_test();
117
- execute_one();
118
- exit(0);
119
- }
120
- int status = 0;
121
- uint64_t start = current_time_ms();
122
- for (;;) {
123
- if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid)
124
- break;
125
- sleep_ms(1);
126
- if (current_time_ms() - start < 5 * 1000)
127
- continue;
128
- kill_and_wait(pid, &status);
129
- break;
130
- }
131
- }
132
- }
133
-
134
- void execute_one(void)
135
- {
136
- *(uint32_t*)0x20000080 = 0;
137
- *(uint32_t*)0x20000084 = 0;
138
- *(uint32_t*)0x20000088 = 3;
139
- *(uint32_t*)0x2000008c = 3;
140
- *(uint32_t*)0x20000090 = 0x175;
141
- *(uint32_t*)0x20000094 = 0;
142
- *(uint32_t*)0x20000098 = 0;
143
- *(uint32_t*)0x2000009c = 0;
144
- *(uint32_t*)0x200000a0 = 0;
145
- *(uint32_t*)0x200000a4 = 0;
146
- *(uint32_t*)0x200000a8 = 0;
147
- *(uint32_t*)0x200000ac = 0;
148
- *(uint32_t*)0x200000b0 = 0;
149
- *(uint32_t*)0x200000b4 = 0;
150
- *(uint32_t*)0x200000b8 = 0;
151
- *(uint32_t*)0x200000bc = 0;
152
- *(uint32_t*)0x200000c0 = 0;
153
- *(uint32_t*)0x200000c4 = 0;
154
- *(uint64_t*)0x200000c8 = 0;
155
- *(uint32_t*)0x200000d0 = 0;
156
- *(uint32_t*)0x200000d4 = 0;
157
- *(uint32_t*)0x200000d8 = 0;
158
- *(uint32_t*)0x200000dc = 0;
159
- *(uint32_t*)0x200000e0 = 0;
160
- *(uint32_t*)0x200000e4 = 0;
161
- *(uint32_t*)0x200000e8 = 0;
162
- *(uint32_t*)0x200000ec = 0;
163
- *(uint64_t*)0x200000f0 = 0;
164
- __sys_io_uring_setup(0x983, (struct io_uring_params *) 0x20000080);
165
- }
166
-
167
- static void sig_int(int sig)
168
- {
169
- exit(0);
170
- }
171
-
172
- int main(int argc, char *argv[])
173
- {
174
- if (argc > 1)
175
- return 0;
176
- signal(SIGINT, sig_int);
177
- mmap((void *) 0x20000000, 0x1000000, 3, 0x32, -1, 0);
178
- loop();
179
- return 0;
180
- }