Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#62664 - [nbd] nbd server with whitespace in authorization file

Attached to Project: Arch Linux
Opened by Jonathan Steel (jsteel) - Friday, 17 May 2019, 14:58 GMT
Last edited by Christian Hesse (eworm) - Wednesday, 18 March 2020, 07:28 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Christian Hesse (eworm)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No


Updating glibc from 2.28-6 to 2.29-1 breaks nbd-client access.

Server config:

# /etc/nbd-server/config
user = nbd
group = disk
exportname = /dev/vg_test/lv_test
authfile = /etc/nbd-server/authfile

# /etc/nbd-server/authfile

Steps to reproduce:
Have glibc 2.28-6 installed on the nbd server. On the client run "nbd-client -N test /dev/nbd0":
Negotiation: ..size = 51196MB
Connected /dev/nbd0

Update to glibc 2.29-1 and restart ndb on the server. On the client run the same command and:
Negotiation: ..Error: Connection not allowed by server policy. Server said: Access denied by server configuration

On the server I see:
nbd_server[7845]: Spawned a child process
nbd_server[12331]: virtstyle ipliteral
nbd_server[12331]: connect from, assigned file is /dev/vg_test/lv_test
nbd_server[12331]: Client '' is not authorized to access
nbd_server[12331]: Negotiation failed: Connection reset by peer
nbd_server[12331]: Exiting.
nbd_server[7845]: Child exited with 1
This task depends upon

Closed by  Christian Hesse (eworm)
Wednesday, 18 March 2020, 07:28 GMT
Reason for closing:  Fixed
Additional comments about closing:  nbd-3.20-2
Comment by Jonathan Liu (net147) - Wednesday, 18 March 2020, 00:24 GMT
  • Field changed: Percent Complete (100% → 0%)
Issue still exists with nbd 3.20-1 and glibc 2.31-2.
Fix for nbd is available upstream:
Comment by Jonathan Liu (net147) - Wednesday, 18 March 2020, 01:34 GMT
Please reassign to nbd package maintainer as it is nbd issue.