You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
local start = os.clock();
local f = io.open("/root/dev/write.lua", 'r')
local s = f:read('all')
f:close()
os.remove("/root/dev/out.txt");
local fout = io.open("/root/dev/out.txt", 'w+')
fout:write(s)
fout:close()
print("os.clock(): " .. (os.clock() - start) .. " seconds")
If we run that in user space - all is fine!
If we run that in kernel space we got copy of write.lua (content is code in listing).
If we try big file for example syssrc.tgz (~50MiB) we got freeze, try bigger (~150MiB) and got kernel crash (fatal page fault). Problem is in read_all function.
The text was updated successfully, but these errors were encountered:
Consider the following code (write.lua):
If we run that in user space - all is fine!
If we run that in kernel space we got copy of write.lua (content is code in listing).
If we try big file for example syssrc.tgz (~50MiB) we got freeze, try bigger (~150MiB) and got kernel crash (fatal page fault). Problem is in read_all function.
The text was updated successfully, but these errors were encountered: