Skip to content

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

Open
@yushiqie

Description

@yushiqie

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions