openembedded-core.lists.openembedded.org archive mirror
 help / color / mirror / Atom feed
* pseudo gets confused by tar and aborts
@ 2022-01-17 20:25 Andrej Shadura
  2022-01-17 20:40 ` Andrej Shadura
  0 siblings, 1 reply; 2+ messages in thread
From: Andrej Shadura @ 2022-01-17 20:25 UTC (permalink / raw)
  To: openembedded-core; +Cc: Helmut Grohne

Hi,

Helmut Grohne reported a bug in pseudo, which, upon further 
investigation, happens when tar (at least v1.34) is extracting a file.

My initial reproducer was this:

$ cd /tmp
$ PSEUDO_PREFIX=/usr PSEUDO_LOCALSTATEDIR=/tmp/state pseudo /bin/bash
# mkdir -p foobar
# tar -C /lib -c -f - . | tar -C /tmp/foobar -xv
./
./cryptsetup/
./cryptsetup/cryptdisks-functions
./cryptsetup/functions
./cryptsetup/scripts/
./cryptsetup/scripts/decrypt_ssl
./cryptsetup/scripts/decrypt_keyctl
./cryptsetup/scripts/decrypt_gnupg
./cryptsetup/scripts/decrypt_gnupg-sc
./cryptsetup/scripts/passdev
./cryptsetup/scripts/decrypt_opensc
./cryptsetup/scripts/decrypt_derived
./cryptsetup/askpass
abort()ing pseudo client by server request. See 
https://wiki.yoctoproject.org/wiki/Pseudo_Abort for more details on this.
Check logfile: /tmp/state/pseudo.log
Aborted
# cat /tmp/state/pseudo.log
debug_logfile: fd 2
pid 977255 [parent 977254], doing new pid setup and server start
Setup complete, sending SIGUSR1 to pid 977254.
path mismatch [2 links]: ino 18745211 db 
'/tmp/foobar/cryptsetup/scripts' req '/proc/self/fd/4'.
#

However, the same happened when I pre-tarred /lib and extracted it:

# tar -C /lib -c -f /tmp/test.tar .
# tar -C /tmp/foobar -xv -f /tmp/test.tar
./
./cryptsetup/
./cryptsetup/cryptdisks-functions
./cryptsetup/functions
./cryptsetup/scripts/
./cryptsetup/scripts/decrypt_ssl
./cryptsetup/scripts/decrypt_keyctl
./cryptsetup/scripts/decrypt_gnupg
./cryptsetup/scripts/decrypt_gnupg-sc
./cryptsetup/scripts/passdev
./cryptsetup/scripts/decrypt_opensc
./cryptsetup/scripts/decrypt_derived
./cryptsetup/askpass
./cryptsetup/checks/
./cryptsetup/checks/ext2
./cryptsetup/checks/un_blkid
./cryptsetup/checks/swap
./cryptsetup/checks/blkid
./cryptsetup/checks/xfs
./linux-sound-base/
abort()ing pseudo client by server request. See 
https://wiki.yoctoproject.org/wiki/Pseudo_Abort for more details on this.
Check logfile: /tmp/state/pseudo.log
Aborted


-- 
Cheers,
   Andrej


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: pseudo gets confused by tar and aborts
  2022-01-17 20:25 pseudo gets confused by tar and aborts Andrej Shadura
@ 2022-01-17 20:40 ` Andrej Shadura
  0 siblings, 0 replies; 2+ messages in thread
From: Andrej Shadura @ 2022-01-17 20:40 UTC (permalink / raw)
  To: openembedded-core

On 17/01/2022 21:25, Andrej Shadura wrote:
> Hi,
> 
> Helmut Grohne reported a bug in pseudo, which, upon further 
> investigation, happens when tar (at least v1.34) is extracting a file.
...
> # tar -C /lib -c -f /tmp/test.tar .
> # tar -C /tmp/foobar -xv -f /tmp/test.tar
> ./
...
> ./linux-sound-base/
> abort()ing pseudo client by server request. See 
> https://wiki.yoctoproject.org/wiki/Pseudo_Abort for more details on this.
> Check logfile: /tmp/state/pseudo.log

A bit more with extra verbosity:

chown /tmp/foobar/udev/hwdb.d [18745405]: incoming: 
'/tmp/foobar/udev/hwdb.d'+ [18745405]+
owner 0:0 completed chown.
open /tmp/foobar/udev/hwdb.d [18745405]: incoming: 
'/tmp/foobar/udev/hwdb.d'+ [18745405]+
completed open.
stat /tmp/foobar/udev/hwdb.d [18745405]: incoming: 
'/tmp/foobar/udev/hwdb.d'+ [18745405]+
stat, ino 18745405 (old mode 040700): mode 040700
completed stat.
chmod /proc/self/fd/5 [18745405]: incoming: '/proc/self/fd/5'- [18745405]+
path mismatch [2 links]: ino 18745405 db '/tmp/foobar/udev/hwdb.d' req 
'/proc/self/fd/5'.
completed chmod.

I understand this is related to the latest commit to pseudo:
https://git.yoctoproject.org/pseudo/commit/?h=oe-core&id=300d7570720bc1

-- 
Cheers,
   Andrej


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-17 20:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-17 20:25 pseudo gets confused by tar and aborts Andrej Shadura
2022-01-17 20:40 ` Andrej Shadura

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).