^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) * JFFS2 -- Journalling Flash File System, Version 2.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) * Copyright © 2001-2007 Red Hat, Inc.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * Copyright © 2004-2010 David Woodhouse <dwmw2@infradead.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) * Created by David Woodhouse <dwmw2@infradead.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) * For licensing information, see the file 'LICENCE' in this directory.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #if !defined(__KERNEL__) && !defined(__ECOS)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #error "The userspace support got too messy and was removed. Update your mkfs.jffs2"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #include <linux/kernel.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #include <linux/zlib.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #include <linux/zutil.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #include "nodelist.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) #include "compr.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) /* Plan: call deflate() with avail_in == *sourcelen,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) avail_out = *dstlen - 12 and flush == Z_FINISH.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) If it doesn't manage to finish, call it again with
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) avail_in == 0 and avail_out set to the remaining 12
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) bytes for it to clean up.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) Q: Is 12 bytes sufficient?
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #define STREAM_END_SPACE 12
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) static DEFINE_MUTEX(deflate_mutex);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) static DEFINE_MUTEX(inflate_mutex);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) static z_stream inf_strm, def_strm;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) #ifdef __KERNEL__ /* Linux-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) #include <linux/vmalloc.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) #include <linux/init.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) #include <linux/mutex.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) static int __init alloc_workspaces(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) def_strm.workspace = vmalloc(zlib_deflate_workspacesize(MAX_WBITS,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) MAX_MEM_LEVEL));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) if (!def_strm.workspace)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) return -ENOMEM;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) jffs2_dbg(1, "Allocated %d bytes for deflate workspace\n",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) inf_strm.workspace = vmalloc(zlib_inflate_workspacesize());
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) if (!inf_strm.workspace) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) vfree(def_strm.workspace);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) return -ENOMEM;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) jffs2_dbg(1, "Allocated %d bytes for inflate workspace\n",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) zlib_inflate_workspacesize());
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) static void free_workspaces(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) vfree(def_strm.workspace);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) vfree(inf_strm.workspace);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) #define alloc_workspaces() (0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) #define free_workspaces() do { } while(0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) #endif /* __KERNEL__ */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) static int jffs2_zlib_compress(unsigned char *data_in,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) unsigned char *cpage_out,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) uint32_t *sourcelen, uint32_t *dstlen)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) int ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) if (*dstlen <= STREAM_END_SPACE)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) return -1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) mutex_lock(&deflate_mutex);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) if (Z_OK != zlib_deflateInit(&def_strm, 3)) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) pr_warn("deflateInit failed\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) mutex_unlock(&deflate_mutex);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) return -1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) def_strm.next_in = data_in;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) def_strm.total_in = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) def_strm.next_out = cpage_out;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) def_strm.total_out = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) while (def_strm.total_out < *dstlen - STREAM_END_SPACE && def_strm.total_in < *sourcelen) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) def_strm.avail_out = *dstlen - (def_strm.total_out + STREAM_END_SPACE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97) def_strm.avail_in = min_t(unsigned long,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) (*sourcelen-def_strm.total_in), def_strm.avail_out);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) jffs2_dbg(1, "calling deflate with avail_in %ld, avail_out %ld\n",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) def_strm.avail_in, def_strm.avail_out);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) ret = zlib_deflate(&def_strm, Z_PARTIAL_FLUSH);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) jffs2_dbg(1, "deflate returned with avail_in %ld, avail_out %ld, total_in %ld, total_out %ld\n",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) def_strm.avail_in, def_strm.avail_out,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) def_strm.total_in, def_strm.total_out);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) if (ret != Z_OK) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) jffs2_dbg(1, "deflate in loop returned %d\n", ret);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) zlib_deflateEnd(&def_strm);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) mutex_unlock(&deflate_mutex);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) return -1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) def_strm.avail_out += STREAM_END_SPACE;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) def_strm.avail_in = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) ret = zlib_deflate(&def_strm, Z_FINISH);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) zlib_deflateEnd(&def_strm);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) if (ret != Z_STREAM_END) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) jffs2_dbg(1, "final deflate returned %d\n", ret);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) ret = -1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) goto out;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) if (def_strm.total_out >= def_strm.total_in) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) jffs2_dbg(1, "zlib compressed %ld bytes into %ld; failing\n",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) def_strm.total_in, def_strm.total_out);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) ret = -1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) goto out;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) jffs2_dbg(1, "zlib compressed %ld bytes into %ld\n",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) def_strm.total_in, def_strm.total_out);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) *dstlen = def_strm.total_out;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) *sourcelen = def_strm.total_in;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) ret = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) out:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) mutex_unlock(&deflate_mutex);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) return ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) static int jffs2_zlib_decompress(unsigned char *data_in,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) unsigned char *cpage_out,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) uint32_t srclen, uint32_t destlen)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) int ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) int wbits = MAX_WBITS;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) mutex_lock(&inflate_mutex);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) inf_strm.next_in = data_in;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) inf_strm.avail_in = srclen;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) inf_strm.total_in = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) inf_strm.next_out = cpage_out;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) inf_strm.avail_out = destlen;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) inf_strm.total_out = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) /* If it's deflate, and it's got no preset dictionary, then
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) we can tell zlib to skip the adler32 check. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) if (srclen > 2 && !(data_in[1] & PRESET_DICT) &&
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) ((data_in[0] & 0x0f) == Z_DEFLATED) &&
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) !(((data_in[0]<<8) + data_in[1]) % 31)) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) jffs2_dbg(2, "inflate skipping adler32\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) wbits = -((data_in[0] >> 4) + 8);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) inf_strm.next_in += 2;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) inf_strm.avail_in -= 2;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) } else {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) /* Let this remain D1 for now -- it should never happen */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) jffs2_dbg(1, "inflate not skipping adler32\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) if (Z_OK != zlib_inflateInit2(&inf_strm, wbits)) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) pr_warn("inflateInit failed\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) mutex_unlock(&inflate_mutex);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) return 1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) while((ret = zlib_inflate(&inf_strm, Z_FINISH)) == Z_OK)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) ;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) if (ret != Z_STREAM_END) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) pr_notice("inflate returned %d\n", ret);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) zlib_inflateEnd(&inf_strm);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) mutex_unlock(&inflate_mutex);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) static struct jffs2_compressor jffs2_zlib_comp = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) .priority = JFFS2_ZLIB_PRIORITY,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) .name = "zlib",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) .compr = JFFS2_COMPR_ZLIB,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) .compress = &jffs2_zlib_compress,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) .decompress = &jffs2_zlib_decompress,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) #ifdef JFFS2_ZLIB_DISABLED
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) .disabled = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) .disabled = 0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) int __init jffs2_zlib_init(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) int ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) ret = alloc_workspaces();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) if (ret)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) return ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) ret = jffs2_register_compressor(&jffs2_zlib_comp);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) if (ret)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) free_workspaces();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) return ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) void jffs2_zlib_exit(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) jffs2_unregister_compressor(&jffs2_zlib_comp);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) free_workspaces();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) }