[Bug 2069305] Re: scp fails to copy files from sysfs

Mitchell Dzurick 2069305 at bugs.launchpad.net
Sat Jun 15 00:48:56 UTC 2024


** Changed in: openssh (Ubuntu)
       Status: New => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/2069305

Title:
  scp fails to copy files from sysfs

Status in openssh package in Ubuntu:
  Triaged

Bug description:
  When I try to copy some files from sysfs directly using scp it fails.
  This can be reproduced locally with:

  ubuntu at ubuntu:~$ scp ubuntu at localhost:/sys/firmware/efi/efivars/BootOrder-8be4df61-93ca-11d2-aa0d-00e098032b8c .
  ubuntu at localhost's password: 
  BootOrder-8be4df61-93ca-11d2-aa0d-00e098032b8c                                                                  0%    0     0.0KB/s   --:-- ETA
  scp: read remote "/sys/firmware/efi/efivars/BootOrder-8be4df61-93ca-11d2-aa0d-00e098032b8c" : Failure

  The file is readable:

  ubuntu at ubuntu:~$ od -b /sys/firmware/efi/efivars/BootOrder-8be4df61-93ca-11d2-aa0d-00e098032b8c
  0000000 007 000 000 000 002 000 003 000 000 000 004 000
  0000014

  And I see this in the journal:

  Jun 13 13:30:49 ubuntu sftp-server[5115]: error: process_read: seek
  "/sys/firmware/efi/efivars/BootOrder-8be4df61-93ca-11d2-aa0d-00e098032b8c":
  Illegal seek

  This was working fine in 22.04. Interestingly, using a scp 22.04
  client with a 24.04 kernel works fine.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/2069305/+subscriptions




More information about the foundations-bugs mailing list