@@ -90,7 +90,7 @@ impl FileDescriptor for io::Stdin {
9090 fn read < ' tcx > ( & mut self , communicate_allowed : bool , bytes : & mut [ u8 ] ) -> InterpResult < ' tcx , io:: Result < usize > > {
9191 if !communicate_allowed {
9292 // We want isolation mode to be deterministic, so we have to disallow all reads, even stdin.
93- helpers:: isolation_error ( "read" ) ?;
93+ helpers:: isolation_error ( "` read` from stdin " ) ?;
9494 }
9595 Ok ( Read :: read ( self , bytes) )
9696 }
@@ -417,7 +417,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
417417 ) -> InterpResult < ' tcx , i32 > {
418418 let this = self . eval_context_mut ( ) ;
419419
420- this. check_no_isolation ( "open" ) ?;
420+ this. check_no_isolation ( "` open` " ) ?;
421421
422422 let flag = this. read_scalar ( flag_op) ?. to_i32 ( ) ?;
423423
@@ -510,7 +510,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
510510 ) -> InterpResult < ' tcx , i32 > {
511511 let this = self . eval_context_mut ( ) ;
512512
513- this. check_no_isolation ( "fcntl" ) ?;
513+ this. check_no_isolation ( "` fcntl` " ) ?;
514514
515515 if args. len ( ) < 2 {
516516 throw_ub_format ! ( "incorrect number of arguments for fcntl: got {}, expected at least 2" , args. len( ) ) ;
@@ -574,8 +574,6 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
574574 fn close ( & mut self , fd_op : OpTy < ' tcx , Tag > ) -> InterpResult < ' tcx , i32 > {
575575 let this = self . eval_context_mut ( ) ;
576576
577- this. check_no_isolation ( "close" ) ?;
578-
579577 let fd = this. read_scalar ( fd_op) ?. to_i32 ( ) ?;
580578
581579 if let Some ( file_descriptor) = this. machine . file_handler . handles . remove ( & fd) {
@@ -709,7 +707,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
709707 fn unlink ( & mut self , path_op : OpTy < ' tcx , Tag > ) -> InterpResult < ' tcx , i32 > {
710708 let this = self . eval_context_mut ( ) ;
711709
712- this. check_no_isolation ( "unlink" ) ?;
710+ this. check_no_isolation ( "` unlink` " ) ?;
713711
714712 let path = this. read_path_from_c_str ( this. read_scalar ( path_op) ?. check_init ( ) ?) ?;
715713
@@ -739,7 +737,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
739737
740738 let this = self . eval_context_mut ( ) ;
741739
742- this. check_no_isolation ( "symlink" ) ?;
740+ this. check_no_isolation ( "` symlink` " ) ?;
743741
744742 let target = this. read_path_from_c_str ( this. read_scalar ( target_op) ?. check_init ( ) ?) ?;
745743 let linkpath = this. read_path_from_c_str ( this. read_scalar ( linkpath_op) ?. check_init ( ) ?) ?;
@@ -755,7 +753,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
755753 ) -> InterpResult < ' tcx , i32 > {
756754 let this = self . eval_context_mut ( ) ;
757755 this. assert_target_os ( "macos" , "stat" ) ;
758- this. check_no_isolation ( "stat" ) ?;
756+ this. check_no_isolation ( "` stat` " ) ?;
759757 // `stat` always follows symlinks.
760758 this. macos_stat_or_lstat ( true , path_op, buf_op)
761759 }
@@ -768,7 +766,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
768766 ) -> InterpResult < ' tcx , i32 > {
769767 let this = self . eval_context_mut ( ) ;
770768 this. assert_target_os ( "macos" , "lstat" ) ;
771- this. check_no_isolation ( "lstat" ) ?;
769+ this. check_no_isolation ( "` lstat` " ) ?;
772770 this. macos_stat_or_lstat ( false , path_op, buf_op)
773771 }
774772
@@ -780,7 +778,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
780778 let this = self . eval_context_mut ( ) ;
781779
782780 this. assert_target_os ( "macos" , "fstat" ) ;
783- this. check_no_isolation ( "fstat" ) ?;
781+ this. check_no_isolation ( "` fstat` " ) ?;
784782
785783 let fd = this. read_scalar ( fd_op) ?. to_i32 ( ) ?;
786784
@@ -802,7 +800,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
802800 let this = self . eval_context_mut ( ) ;
803801
804802 this. assert_target_os ( "linux" , "statx" ) ;
805- this. check_no_isolation ( "statx" ) ?;
803+ this. check_no_isolation ( "` statx` " ) ?;
806804
807805 let statxbuf_scalar = this. read_scalar ( statxbuf_op) ?. check_init ( ) ?;
808806 let pathname_scalar = this. read_scalar ( pathname_op) ?. check_init ( ) ?;
@@ -961,7 +959,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
961959 ) -> InterpResult < ' tcx , i32 > {
962960 let this = self . eval_context_mut ( ) ;
963961
964- this. check_no_isolation ( "rename" ) ?;
962+ this. check_no_isolation ( "` rename` " ) ?;
965963
966964 let oldpath_scalar = this. read_scalar ( oldpath_op) ?. check_init ( ) ?;
967965 let newpath_scalar = this. read_scalar ( newpath_op) ?. check_init ( ) ?;
@@ -987,7 +985,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
987985 ) -> InterpResult < ' tcx , i32 > {
988986 let this = self . eval_context_mut ( ) ;
989987
990- this. check_no_isolation ( "mkdir" ) ?;
988+ this. check_no_isolation ( "` mkdir` " ) ?;
991989
992990 #[ cfg_attr( not( unix) , allow( unused_variables) ) ]
993991 let mode = if this. tcx . sess . target . target . target_os == "macos" {
@@ -1020,7 +1018,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
10201018 ) -> InterpResult < ' tcx , i32 > {
10211019 let this = self . eval_context_mut ( ) ;
10221020
1023- this. check_no_isolation ( "rmdir" ) ?;
1021+ this. check_no_isolation ( "` rmdir` " ) ?;
10241022
10251023 let path = this. read_path_from_c_str ( this. read_scalar ( path_op) ?. check_init ( ) ?) ?;
10261024
@@ -1032,7 +1030,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
10321030 fn opendir ( & mut self , name_op : OpTy < ' tcx , Tag > ) -> InterpResult < ' tcx , Scalar < Tag > > {
10331031 let this = self . eval_context_mut ( ) ;
10341032
1035- this. check_no_isolation ( "opendir" ) ?;
1033+ this. check_no_isolation ( "` opendir` " ) ?;
10361034
10371035 let name = this. read_path_from_c_str ( this. read_scalar ( name_op) ?. check_init ( ) ?) ?;
10381036
@@ -1063,7 +1061,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
10631061 let this = self . eval_context_mut ( ) ;
10641062
10651063 this. assert_target_os ( "linux" , "readdir64_r" ) ;
1066- this. check_no_isolation ( "readdir64_r" ) ?;
1064+ this. check_no_isolation ( "` readdir64_r` " ) ?;
10671065
10681066 let dirp = this. read_scalar ( dirp_op) ?. to_machine_usize ( this) ?;
10691067
@@ -1150,7 +1148,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
11501148 let this = self . eval_context_mut ( ) ;
11511149
11521150 this. assert_target_os ( "macos" , "readdir_r" ) ;
1153- this. check_no_isolation ( "readdir_r" ) ?;
1151+ this. check_no_isolation ( "` readdir_r` " ) ?;
11541152
11551153 let dirp = this. read_scalar ( dirp_op) ?. to_machine_usize ( this) ?;
11561154
@@ -1233,7 +1231,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
12331231 fn closedir ( & mut self , dirp_op : OpTy < ' tcx , Tag > ) -> InterpResult < ' tcx , i32 > {
12341232 let this = self . eval_context_mut ( ) ;
12351233
1236- this. check_no_isolation ( "closedir" ) ?;
1234+ this. check_no_isolation ( "` closedir` " ) ?;
12371235
12381236 let dirp = this. read_scalar ( dirp_op) ?. to_machine_usize ( this) ?;
12391237
@@ -1252,7 +1250,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
12521250 ) -> InterpResult < ' tcx , i32 > {
12531251 let this = self . eval_context_mut ( ) ;
12541252
1255- this. check_no_isolation ( "ftruncate64" ) ?;
1253+ this. check_no_isolation ( "` ftruncate64` " ) ?;
12561254
12571255 let fd = this. read_scalar ( fd_op) ?. to_i32 ( ) ?;
12581256 let length = this. read_scalar ( length_op) ?. to_i64 ( ) ?;
@@ -1287,7 +1285,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
12871285
12881286 let this = self . eval_context_mut ( ) ;
12891287
1290- this. check_no_isolation ( "fsync" ) ?;
1288+ this. check_no_isolation ( "` fsync` " ) ?;
12911289
12921290 let fd = this. read_scalar ( fd_op) ?. to_i32 ( ) ?;
12931291 if let Some ( file_descriptor) = this. machine . file_handler . handles . get ( & fd) {
@@ -1303,7 +1301,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
13031301 fn fdatasync ( & mut self , fd_op : OpTy < ' tcx , Tag > ) -> InterpResult < ' tcx , i32 > {
13041302 let this = self . eval_context_mut ( ) ;
13051303
1306- this. check_no_isolation ( "fdatasync" ) ?;
1304+ this. check_no_isolation ( "` fdatasync` " ) ?;
13071305
13081306 let fd = this. read_scalar ( fd_op) ?. to_i32 ( ) ?;
13091307 if let Some ( file_descriptor) = this. machine . file_handler . handles . get ( & fd) {
@@ -1325,7 +1323,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
13251323 ) -> InterpResult < ' tcx , i32 > {
13261324 let this = self . eval_context_mut ( ) ;
13271325
1328- this. check_no_isolation ( "sync_file_range" ) ?;
1326+ this. check_no_isolation ( "` sync_file_range` " ) ?;
13291327
13301328 let fd = this. read_scalar ( fd_op) ?. to_i32 ( ) ?;
13311329 let offset = this. read_scalar ( offset_op) ?. to_i64 ( ) ?;
0 commit comments