From 65048eb27d6ae03db72c66bb26d76f96ee02e674 Mon Sep 17 00:00:00 2001 From: Liu Yuntao Date: Tue, 29 Aug 2023 19:27:20 +0800 Subject: [PATCH] fix bug when loading rto --- src/binfmt_rto/binfmt_rto_604.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/binfmt_rto/binfmt_rto_604.c b/src/binfmt_rto/binfmt_rto_604.c index 981e51c..03f4304 100644 --- a/src/binfmt_rto/binfmt_rto_604.c +++ b/src/binfmt_rto/binfmt_rto_604.c @@ -1166,9 +1166,9 @@ static int load_elf_binary(struct linux_binprm *bprm) if (!use_rto) { goto out; } - is_rto_symbolic_link = IS_SYSBOOST_RTO_SYMBOLIC_LINK(bprm->file->f_inode); load_rto: + is_rto_symbolic_link = IS_SYSBOOST_RTO_SYMBOLIC_LINK(bprm->file->f_inode); elf_ex = (struct elfhdr *)bprm->buf; is_rto_format = elf_ex->e_flags & OS_SPECIFIC_FLAG_RTO; @@ -1193,11 +1193,11 @@ load_rto: goto load_rto; } - if (!is_rto_format || !is_rto_symbolic_link) { - if (debug) - pr_info("directly load rto file is not supported now\n"); - goto out; - } + // if (!is_rto_format || !is_rto_symbolic_link) { + // if (debug) + // pr_info("directly load rto file is not supported now\n"); + // goto out; + // } /* loading rto from now on */ if (debug) { -- Gitee