kernel - Fix sync() system call