The problem is not fixed. I saw your patch to limit open_max to 1024*1024, but the application still locks up:
$ qemu-system-x86_64 --version QEMU emulator version 9.0.2 (Debian 1:9.0.2+ds-5) Copyright (c) 2003-2024 Fabrice Bellard and the QEMU Project developers $ strace -f qemu-system-x86_64 -netdev bridge,id=n1 ... [pid 38879] close(1504358) = -1 EBADF (Bad file descriptor) [pid 38879] close(1504359) = -1 EBADF (Bad file descriptor) [pid 38879] close(1504360) = -1 EBADF (Bad file descriptor) [pid 38879] close(1504361) = -1 EBADF (Bad file descriptor) [pid 38879] close(1504362) = -1 EBADF (Bad file descriptor) [pid 38879] close(1504363) = -1 EBADF (Bad file descriptor) [pid 38879] close(1504364) = -1 EBADF (Bad file descriptor) [pid 38879] close(1504365) = -1 EBADF (Bad file descriptor) [pid 38879] close(1504366) = -1 EBADF (Bad file descriptor) [pid 38879] close(1504367) = -1 EBADF (Bad file descriptor) [pid 38879] close(1504368) = -1 EBADF (Bad file descriptor) [pid 38879] close(1504369) = -1 EBADF (Bad file descriptor) [pid 38879] close(1504370) = -1 EBADF (Bad file descriptor) [pid 38879] close(1504371) = -1 EBADF (Bad file descriptor) [pid 38879] close(1504372) = -1 EBADF (Bad file descriptor) [pid 38879] close(1504373) = -1 EBADF (Bad file descriptor) [pid 38879] close(1504374) = -1 EBADF (Bad file descriptor) [pid 38879] close(1504375) = -1 EBADF (Bad file descriptor) [pid 38879] close(1504376) = -1 EBADF (Bad file descriptor) [pid 38879] close(1504377) = -1 EBADF (Bad file descriptor) ... On Sun, Aug 25, 2024 at 1:15 PM Debian Bug Tracking System <ow...@bugs.debian.org> wrote: > > This is an automatic notification regarding your Bug report > which was filed against the qemu-system-x86 package: > > #1078757: qemu-system-x86: program hangs after the upgrade to 9.0.2 if a > network bridge is used > > It has been closed by Debian FTP Masters <ftpmas...@ftp-master.debian.org> > (reply to Michael Tokarev <m...@tls.msk.ru>). > > Their explanation is attached below along with your original report. > If this explanation is unsatisfactory and you have not received a > better one in a separate message then please contact Debian FTP Masters > <ftpmas...@ftp-master.debian.org> (reply to Michael Tokarev > <m...@tls.msk.ru>) by > replying to this email. > > > -- > 1078757: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1078757 > Debian Bug Tracking System > Contact ow...@bugs.debian.org with problems > > > > ---------- Forwarded message ---------- > From: Debian FTP Masters <ftpmas...@ftp-master.debian.org> > To: 1078757-cl...@bugs.debian.org > Cc: > Bcc: > Date: Sun, 25 Aug 2024 17:13:26 +0000 > Subject: Bug#1078757: fixed in qemu 1:9.0.2+ds-5 > Source: qemu > Source-Version: 1:9.0.2+ds-5 > Done: Michael Tokarev <m...@tls.msk.ru> > > We believe that the bug you reported is fixed in the latest version of > qemu, which is due to be installed in the Debian FTP archive. > > A summary of the changes between this version and the previous one is > attached. > > Thank you for reporting the bug, which will now be closed. If you > have further comments please address them to 1078...@bugs.debian.org, > and the maintainer will reopen the bug report if appropriate. > > Debian distribution maintenance software > pp. > Michael Tokarev <m...@tls.msk.ru> (supplier of updated qemu package) > > (This message was generated automatically at their request; if you > believe that there is a problem with it please contact the archive > administrators by mailing ftpmas...@ftp-master.debian.org) > > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > Format: 1.8 > Date: Sun, 25 Aug 2024 18:50:52 +0300 > Source: qemu > Architecture: source > Version: 1:9.0.2+ds-5 > Distribution: unstable > Urgency: medium > Maintainer: Debian QEMU Team <pkg-qemu-de...@lists.alioth.debian.org> > Changed-By: Michael Tokarev <m...@tls.msk.ru> > Closes: 1078757 > Changes: > qemu (1:9.0.2+ds-5) unstable; urgency=medium > . > [ Sergio Durigan Junior ] > * d/rules: Unset ELF_PACKAGE_METADATA when building ROMs. > Ubuntu started setting ELF_PACKAGE_METADATA during builds, but that > can badly affect ROMs (see LP #2077431). > . > [ Michael Tokarev ] > * d/control: add alpha to utils-arch > * d/control: remove kfreebsd-* > * +gnu-hurd.patch (test) > * d/rules: split-out d/control.mk > * d/binfmt-install: remove s390x leftover (covered by last "*" entry) > * d/rules: disable-bpf for qemu-user[-static] builds, > it is leaked into the link uselessly > * d/control: add the forgotten <!pkg.qemu.omit-system> for qemu-system-gui > * d/rules: remove --disable-install-blobs from xen build > (it is in common options already) > * d/rules: pass --extra-cflags explicitly to each build > * d/rules: pass --extra-ldflags to each build explicitly too > * d/rules: generate Built-Using: for qemu-user-static from a linker .map > file > * d/patches,d/binfmt-install: stop patching qemu to support > old kernel binfmt interface (remove linux-user-binfmt-P.diff) > * refine build-depend-arch: qemu-system-data for ubuntu > and refine comment around this > * cap-OPEN_MAX.diff - temporary, Closes: #1078757 (fixed for good in 9.1) > * virtio-pci-Fix-the-use-of-an-uninitialized-irqfd.patch - > refresh from upstream > * +nbd-server-CVE-2024-7409-Avoid-use-after-free-when-c.patch - > one more fix for CVE-2024-7409 > Checksums-Sha1: > 6f8f343a3bc9f01d118ff829bfbcd3c5e6271451 11393 qemu_9.0.2+ds-5.dsc > 355f6b869e8749858b5d7f766feaf268389f5b24 126256 qemu_9.0.2+ds-5.debian.tar.xz > fb47ea5c4475da39763cdc1475e6a0054ad97a78 8255 > qemu_9.0.2+ds-5_source.buildinfo > Checksums-Sha256: > 980be705354c8b99849109ca8c6ab5e24432c30d734dc0882e0632e35e7cee82 11393 > qemu_9.0.2+ds-5.dsc > 3f04df5cb1f3ed188d215f548728e138ebada163eee0e5df5aa67a9abf85f525 126256 > qemu_9.0.2+ds-5.debian.tar.xz > c20799922e622993e5dd6d12f6da3fc7f5665890c1ad88ea32c4d1a711246225 8255 > qemu_9.0.2+ds-5_source.buildinfo > Files: > faef48952089abbd50a470e1081c737d 11393 otherosfs optional qemu_9.0.2+ds-5.dsc > 37cb12c5395414c08498180b5627b390 126256 otherosfs optional > qemu_9.0.2+ds-5.debian.tar.xz > c5a44258903613f6a69fa77a07c27bb1 8255 otherosfs optional > qemu_9.0.2+ds-5_source.buildinfo > > -----BEGIN PGP SIGNATURE----- > > iQFDBAEBCgAtFiEEe3O61ovnosKJMUsicBtPaxppPlkFAmbLWkwPHG1qdEB0bHMu > bXNrLnJ1AAoJEHAbT2saaT5ZPugH/jgb6duRU/GTZQSfLYA/1/iWAY6N34iyCY0G > 8BMBIwCer8FnFBMD04KaJkvTB6zUn/0Yi/xslsrAFKeXTJpNlAOPc8n9KHqp/CXD > OUq8OcW/mQL7Bn+cmV068g4a3uHYZ71tT/UGkgZjOXgRntIACSU82CSpYKgZW1fy > 2fQssL1WaPuGcfmBYNvwGi218Itq7lz1rBAkE0FNXMlkdglvJPyHQRG1eS2fBqL1 > oXv5yHVwXoujsMjSOgFiMPDrnpUUYQRVxaq5I9fREDOWOdIjedxXxhAcvLqstiqX > y8do7YuPe4JEtAX2SQhdQSi/jo47Zp91InOSJHa13x7cNNd+pu8= > =gWj2 > -----END PGP SIGNATURE----- > > > > > ---------- Forwarded message ---------- > From: bblinux <bblinux2...@gmail.com> > To: Debian Bug Tracking System <sub...@bugs.debian.org> > Cc: > Bcc: > Date: Thu, 15 Aug 2024 10:37:31 -0400 > Subject: qemu-system-x86: program hangs after the upgrade to 9.0.2 if a > network bridge is used > Package: qemu-system-x86 > Version: 1:9.0.2+ds-4 > Severity: important > > Dear Maintainer, > > The application worked fine before the upgrade to 9.0.2. Here is a > minimal example: > > $ qemu-system-x86_64 --version > QEMU emulator version 8.2.5 (Debian 1:8.2.5+ds-1) > Copyright (c) 2003-2023 Fabrice Bellard and the QEMU Project developers > > # qemu-system-x86_64 -netdev bridge,id=n1 > qemu-system-x86_64: warning: netdev n1 has no peer > VNC server running on 127.0.0.1:5900 > > Now the command just hangs. It can be killed with ^C. > > -- System Information: > Debian Release: trixie/sid > APT prefers unstable > APT policy: (500, 'unstable') > Architecture: amd64 (x86_64) > > Kernel: Linux 6.10.3-amd64 (SMP w/20 CPU threads; PREEMPT) > Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set > Shell: /bin/sh linked to /usr/bin/dash > Init: systemd (via /run/systemd/system) > > Versions of packages qemu-system-x86 depends on: > ii ipxe-qemu 1.0.0+git-20190125.36a4c85-5.1 > ii libaio1t64 0.3.113-8 > ii libbpf1 1:1.4.5-1 > ii libc6 2.39-6 > ii libcapstone4 4.0.2-5.1 > ii libfdt1 1.7.0-2+b1 > ii libfuse3-3 3.14.0-6 > ii libglib2.0-0t64 2.81.1-3 > ii libgmp10 2:6.3.0+dfsg-2+b1 > ii libgnutls30t64 3.8.6-2 > ii libhogweed6t64 3.10-1 > ii libibverbs1 52.0-2 > ii libjpeg62-turbo 1:2.1.5-3 > ii libnettle8t64 3.10-1 > ii libnuma1 2.0.18-1 > ii libpixman-1-0 0.42.2-1+b1 > ii libpmem1 1.13.1-1.1+b1 > ii libpng16-16t64 1.6.43-5 > ii librdmacm1t64 52.0-2 > ii libsasl2-2 2.1.28+dfsg1-7 > ii libseccomp2 2.5.5-1+b1 > ii libslirp0 4.8.0-1 > ii libudev1 256.4-3 > ii liburing2 2.6-1 > ii libvdeplug2t64 4.0.1-5.1 > ii libzstd1 1.5.6+dfsg-1 > ii qemu-system-common 1:9.0.2+ds-4 > ii qemu-system-data 1:9.0.2+ds-4 > ii seabios 1.16.3-2 > ii zlib1g 1:1.3.dfsg+really1.3.1-1 > > Versions of packages qemu-system-x86 recommends: > pn ovmf <none> > pn qemu-block-extra <none> > pn qemu-system-gui <none> > pn qemu-system-modules-opengl <none> > pn qemu-system-modules-spice <none> > pn qemu-utils <none> > > Versions of packages qemu-system-x86 suggests: > pn samba <none> > pn vde2 <none> > > -- no debconf information