lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <416aa1ad0704020554u54ec3720oe99eba180ffa11eb@mail.gmail.com>
Date:	Mon, 2 Apr 2007 18:24:15 +0530
From:	"kalash nainwal" <kalash.nainwal@...il.com>
To:	linux-kernel@...r.kernel.org
Subject: [PATCH] (re)register_binfmt returns with -EBUSY

When a binary format is unregistered and re-registered,
register_binfmt fails with -EBUSY. The reason is that
unregister_binfmt does not set fmt->next to NULL, and seeing
(fmt->next != NULL), register_binfmt fails with -EBUSY.

One can find his way around by explicitly setting fmt->next to NULL
after unregistering, but that is kind of unclean (one should better be
using only the interfaces, and not the interal members, isn't it?)

Attached one-liner can fix it (for 2.6.20).

Regards,
-Kalash


Signed-off-by: Kalash Nainwal <kalash.nainwal@...il.com>

Download attachment "lnx_binfmt.patch" of type "application/octet-stream" (330 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ