proot icon indicating copy to clipboard operation
proot copied to clipboard

referer not a subpath of "/proc" cause proot crash

Open yushiqie opened this issue 1 year ago • 0 comments

Expected Behavior

path referrer not a strict subpath of "/proc"

Actual Behavior

path referrer not a strict subpath of "/proc" may cause proot crash

20240814162742

Steps to Reproduce the Problem

  1. proot -S /home/test -w /root bash
  2. ls -al /proc

Specifications

  • Proot/Care version: v5.4.0
  • Kernel version: 5.10.134-16.1.an8.aarch64
  • Host distribution: Anolis OS 8.8
  • Guest distribution:

Command Output

root@1c4be79bcecc:/# proot -S /home/test --kill-on-exit -b /home/test/root:/root bash
[root@1c4be79bcecc /]# 
[root@1c4be79bcecc /]# 
[root@1c4be79bcecc /]# ls -al /proc
proot: ./path/proc.c:52: readlink_proc: Assertion `comparison == compare_paths("/proc", base)' failed.
proot warning: signal 6 received from process 3615

-OR-

Attached log

yushiqie avatar Aug 15 '24 06:08 yushiqie