[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unfortunate error message for invalid executable

From: Chet Ramey
Subject: Re: Unfortunate error message for invalid executable
Date: Fri, 3 Jun 2022 10:05:07 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.9.0

On 5/29/22 7:33 AM, Martin D Kealey wrote:
On Sun, 29 May 2022, 06:56 AA via Bug reports for the GNU Bourne Again
SHell, <bug-bash@gnu.org> wrote:

Maybe the concern is that any additional calls (such as checking for path
existence) may have unintended consequences [but that] seems unlikely.

Therefore, IMHO it is very hard to argue with the fact that the file
passed to the kernel does in fact exist

Actually it's quite easy to argue with that: a race condition between when
execve fails and when we subsequently check whether the file exists means
we could be hoodwinked into reporting the wrong error message in both

Yes, it's clearly a kernel problem that the shell is trying to overcome.
There was a lot of discussion about this the last time it came up. I think
Andrea even filed a Linux kernel bug report.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]