Commit Graph
2 Commits
Author SHA1 Message Date
Rishabh Sinha 11ec2397fe [Cache] Store cached kernel params as JSON instead of cloudpickle (#3143)
The kernel cache and the autotuner result cache loaded params.pkl with
cloudpickle.load(), so a writable cache directory allowed arbitrary code
execution on the next cache hit. Kernel params are plain data, so store
them as JSON via TVM's reflection (tvm.ir.save_json / load_json), which
rebuilds IR nodes without executing code. Entries without params.json are
treated as incomplete and rebuilt.

Fixes #2817
2026-09-06 16:06:20 +08:00
Lei Wang fded655836 [Runtime][Cache] Detect and repair corrupted cache entries (#3074)
Harden cache entries against partial writes
2026-08-24 17:15:45 +08:00