From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,LOTS_OF_MONEY, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: from second.openwall.net (second.openwall.net [193.110.157.125]) by inbox.vuxu.org (Postfix) with SMTP id ACD102284F for ; Thu, 26 Sep 2024 11:09:17 +0200 (CEST) Received: (qmail 11675 invoked by uid 550); 26 Sep 2024 09:09:11 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com x-ms-reactions: disallow Received: (qmail 11638 invoked from network); 26 Sep 2024 09:09:11 -0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=yTgIob/riPpp/lJJNl427AYS3feRY+F/qKd91lLVgsZlWxItKmLC3QYdT4F3mi5hA7QbLHALXSKpbGaMvX4HGgUKnYv1gsaxan9QyrIZuc1nsaiVAxLo8SB/J8m6KGjk01XavOMR7hbqxpvPRXwaa7wwsxPYpce2w7S97XfOejOSHSPmjUsD8GcvhgID+VJP7xg2VJdv8Be/sVZCc2l7Hwr2/DTb214kg05BQB05WoxCVTq+MBfWnozYlQq1Y6lAQvMTqaJM/ZkrdycS95n/NmN0SO0WxjL6diHyScGfu7G4nqYgHHgtjilcy9s+dDHWOHPkHbBiOx/odG0GbibZ+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=bVFZA4Dxw0xB8iChzK5zGlSqAMSMaNECNNCtWqZP8ps=; b=IWDaJYamEhs+fZXGywDmNHS6oSjP2q8b9xyrASdciAH/PHK97LO3h3CxZTT4+kJ9shbvjQWxm4/r6NVWE/wwnIGs0JlMGngLZkcVL3Y4pRid3V+R0NgrbByZ+LoodePai6uE/cE4D+BSWR6DlPRTjCb5Zdb0R6Q2JYoiyAXtv2+JimeEvzR0pLhKuWl4fwqmK3WxzZ5+QNjt9ZTFtqyiPWhaOxxQOK6H61+E1XmxYwUcf14FcDLzoyKHfBmIEl3fStAChlHO2njpx8ghZm9AOjxhk2QRCvADaiNkQTRxhxQtC6FvsKukEjLcnpkRP83qsY8+shZy7raee81dd3U6wA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=softathome.com; dmarc=pass action=none header.from=softathome.com; dkim=pass header.d=softathome.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=softathome1.onmicrosoft.com; s=selector1-softathome1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bVFZA4Dxw0xB8iChzK5zGlSqAMSMaNECNNCtWqZP8ps=; b=JhtHpHewAp4Lsf5k3zdNWfrdc1YyltTKlWcnGmgI+joiMc+oWertvhndchXujLieLOJzEMQvJgxgQsKD3Vbp/6H081wYmDcZXYqz7xDtvwf6rDx9DqiWwb3RStJyhcH3RsKPBhuwidcnpuglMi3kq4L8ZGvCVe2lvhTYxtJHUQsKvu6iLsMWzCzGaHHJzzaIL3wZUGx1BpX2MGzHnImu7yvbal/Unviw3rT52O3oedR8FF+GpFQLE2oq59xao5Je/tge1LbE4uEQ4A51im/bQp0tdlZ4eWCjqzXwCK0Zde4DekzNubHrMW0geLuPSxi3rGWBsWXVs/E4XQKV9dYKWQ== From: "Jef STEELANT (EXT)" To: "musl@lists.openwall.com" Thread-Topic: syslog does not detect a closed file descriptor Thread-Index: AQHbD/G2OVQkE8lRmUW/WqPkdX7aTA== Date: Thu, 26 Sep 2024 09:08:59 +0000 Message-ID: Accept-Language: en-BE, fr-FR, en-US Content-Language: aa X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_1925f328-931c-4d86-9b48-4db24b002721_Enabled=True;MSIP_Label_1925f328-931c-4d86-9b48-4db24b002721_SiteId=aa10e044-e405-4c10-8353-36b4d0cce511;MSIP_Label_1925f328-931c-4d86-9b48-4db24b002721_SetDate=2024-09-26T09:08:59.211Z;MSIP_Label_1925f328-931c-4d86-9b48-4db24b002721_Name=All Employees (unrestricted);MSIP_Label_1925f328-931c-4d86-9b48-4db24b002721_ContentBits=0;MSIP_Label_1925f328-931c-4d86-9b48-4db24b002721_Method=Standard; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=softathome.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MR1P264MB2481:EE_|PARP264MB4666:EE_ x-ms-office365-filtering-correlation-id: 18eac450-e8b9-44eb-13d5-08dcde0adb92 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|1800799024|376014|366016|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?2kFvSAdyuC6LzZqk8nTrBs9WqGsMQI+c26GDm+Vlcli9eeZJ3xUYtQmty4+V?= =?us-ascii?Q?BvDlWIzOt0C/yengFBzbaLSBHB7iJPEZj7WBlmbDPzYoLHxStpsXFBhNEQ2k?= =?us-ascii?Q?lC3lc9/h8pM/wibjlHKxznyAZ6Pux4xWQI9CPCB76CsoJWCighTJ14ZfYjZt?= =?us-ascii?Q?5NcVoDvf0HD/X3LEeowDIBSquFmSpp4hSITl+8TT7jIN76LB4GJMK7xNYHsz?= =?us-ascii?Q?r+9oLR0Yg53NUBXu6WJxa0B5t8EFSJWMTyZ/TI1eUuQNrTlDSG5ClIQsioW5?= =?us-ascii?Q?1v32Zup7CKDKMlvPlN7QyaPTZBMPeX6o0cJz7lJnKGIkTM98ERRxIEWMVSJt?= =?us-ascii?Q?IH1vP17RbaEF65NEuuYnsi5Fh2O304GFeb0A9U+lPZ/FamuUOwpCAdkeJbiD?= =?us-ascii?Q?cOp78bB/YulyBEAv7af4/oraz0ssJX6v829dXbOHLdyFxKZuBrmOkDCh+krc?= =?us-ascii?Q?kCGf2rfzvQlt2VBevOgsgNrRBH+c3ABPPdGZuJKouE9KoX3ZGz6y8FmghFQw?= =?us-ascii?Q?itRxpaTZ2I1YnhA61SuzlzraWM65szaAxAPqS57EqX1q2tBlK+u+Zbi34RbK?= =?us-ascii?Q?6ypTR5U4cDPEoH3DI5uxy0WCCuT75kQafj4e+c40htDOY14JdL2DsnckcQH3?= =?us-ascii?Q?xp2RKkM2f5vQE6kBIpSL4pBuWc8igqcJyYDpbSErFrtzVl7qlsWVZapes79O?= =?us-ascii?Q?5VJCUJOvsEikHc5shAX3pQeRabiuFx443q2PTvCIDZs0vAFpdqbBQidbUqHF?= =?us-ascii?Q?DihuYsq99qzjdUP1OlhtQduY4ut/x1tPhHkgnqHReB+ObRyZqbAnE/y+WcFa?= =?us-ascii?Q?NQTzETudiPcoF4UUYaz46wNbWljwftmGDwGmkixhwPplDnmy0pNFW00v3YuK?= =?us-ascii?Q?glQET9tkdd2xgDtRWTG3SLQCgYQg1IiH89V//rAZQ4q5omM8B45v+WX9WhGq?= =?us-ascii?Q?OOaWdr0wb06D0CPNKjIvjr6FxJXYoFvsBSIHHr+MWmOwpH1DJkX80LaqEJqQ?= =?us-ascii?Q?wsH8fkQJyva+dUw6CWiKZL7SFSGcTXv6QBeL20WCJeaEK4up/OMZV7fj0Hd4?= =?us-ascii?Q?oz2yb25PqDo1VVEOxVKa8rfhtGkx3FQuPEK+l0tSMPBEagyJ7MTFz8DX2kHi?= =?us-ascii?Q?GcO/GCwyQidPQMtJrTNe9QN0hFu1dNocV49FiMhr+bEXKxy9/S/xRrIY0oKT?= =?us-ascii?Q?JrQT5iVUh4iXBWBQQzpjV+05o9y/3mp5cm8fOp6EgRjDi9uQfCgo9atgSb+o?= =?us-ascii?Q?mNNu/10T9ZCQ5RdQ6v6k04EkbLIYdybsbdZ3KQ0fDtg3VIYLlK5ukJFsa1TY?= =?us-ascii?Q?7XS5HKpvjZrByCgupDMreAoRM9iSimWwJWSosoP4u96mGJpZCEJBs+GXDY75?= =?us-ascii?Q?48aFBbAgVc6aN0sob3JWTR4/Qf6umGK4VRZMhinRmttJjZUHtQ=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MR1P264MB2481.FRAP264.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(376014)(366016)(38070700018);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?2tf7OgrsI9cMVGYFxFea31EDFNKM+GPQq3iRoD3HqFCi2/fyoNt5XBBqMYRi?= =?us-ascii?Q?QY0Z9o6plZeA5O/m6ve3R9KHyyAk1PxJGbNIvo6v54NeuafEBsyvRRa8B1Jp?= =?us-ascii?Q?s6lkJQsCvzLUcfC7mOe6jUZcGABY8brflFrj4V3Q5MoedjuvnW9hVhZHD1FE?= =?us-ascii?Q?ES/YZaDdkCOmxjh7j+hn59RTjQLKk6GN62lUVh4lvRBU/azoIy7Ic+ExOfxE?= =?us-ascii?Q?BmM99TG0JzqlEQ7eVXEu7YPn3KLkm/0SPx8NIWBSN0jywbR7yNEQi+Wzk3Jh?= =?us-ascii?Q?yqfhhDbEJHo5IhWE19330wfeIlZSUWUe+fDy3Gnm5gxM3YZ4oS/8w/RFOsOx?= =?us-ascii?Q?VJgwnzmHUT4IiCUyoIVdGb2UvdNrfB2RcVUugmEC2Wg/4T77GpTHbNbDIeJ/?= =?us-ascii?Q?gqmBLJZpfj5lD6SEY7/M7eGi+lS6j6Lju9D0GpBEdo6RRwJLu0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UV4ArZ4dl1ozrxru7Qp5gu/as?= =?us-ascii?Q?5p+PrWZoMHjy9vPRmRXpONaSTJzQVC/R2xaWlwVyQT7SM1ExQ7JefixmsuDc?= =?us-ascii?Q?nZta3z8QdWLU6H1A2toHoyZQhOEtD9S8XF5OJi6oteNGX4ymuM3g5Na6dVef?= =?us-ascii?Q?0OSV2ihJpiWwVRoZ465Q09Es87A7VfDTQKyZpnm01PNTKDId4KijSeMa9kGS?= =?us-ascii?Q?5zFoqBF8PXb/VXJ8aYn7vi9+HQB+Tj39seu1bBm2Vqh6EehYO+Vm31PZgTH/?= =?us-ascii?Q?eQ=3D=3D?= Content-Type: multipart/alternative; boundary="_000_MR1P264MB2481E332F0FB7A51B6A7FD7BC06A2MR1P264MB2481FRAP_" MIME-Version: 1.0 X-OriginatorOrg: softathome.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MR1P264MB2481.FRAP264.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 18eac450-e8b9-44eb-13d5-08dcde0adb92 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Sep 2024 09:08:59.4233 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: aa10e044-e405-4c10-8353-36b4d0cce511 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 3B6Grn0ynIT0yhdDQQ9hNhKb/F5EYN9mH/1zbRJ8jZhM9FVitvFjt1PpnXQZV9OLO8/r7TQMzwpfIVsEZue2TO4DIrhKO+rzstqEkY0lyPg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PARP264MB4666 Subject: [musl] syslog does not detect a closed file descriptor --_000_MR1P264MB2481E332F0FB7A51B6A7FD7BC06A2MR1P264MB2481FRAP_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable The syslog implementation does not detect if the file descriptor of /dev/lo= g is closed, and keeps on logging to an invalid fd. This happens for instance when using lxc with musl libc ( see issue https:/= /github.com/lxc/lxc/issues/4485). LXC will at a certain point close the fd = of /dev/log, in the assumption that a next call to syslog will detect an EB= ADF when writing data, and that the log will be reopened. glibc does this, = but musl does not. It would be better if syslog would either stop logging t= o the invalid fd, or reopen the log when s send returns EBADF. Jef -- This message and any attachments herein are, unless otherwise stated, co= nfidential, intended solely for the addressees and are SoftAtHome's ownersh= ip. Any unauthorized use, reproduction or dissemination is prohibited unles= s formaly agreed beforehand by the sender. If you are not the intended addr= essee of this message, please immediately delete it and all its attachments= from your computer system and notify the sender. SoftAtHome reserves the r= ight to monitor all email communications through its networks. Any views or= opinions presented are solely those of its author and do not necessarily r= epresent those of SoftAtHome. The internet cannot guarantee the integrity o= f this message. SoftAtHome not shall be liable for the message if altered, = changed or falsified. While we take all reasonable precautions to ensure th= at viruses are not transmitted via emails, we recommend that you take your = own measures to prevent viruses from entering your computer system. SoftAtH= ome is a French Soci?t? Anonyme with a Board of Directors, having a capital= of 6 450 699 Euros having its registered office located at 9-11 rue du d?b= arcad?re - 92700 - Colombes - France - Tel + 33 (0)1 57 66 88 88 - Fax + 33= (0)1 57 66 88 89 - RCS Nanterre B 500 440 813 - Intra-Community VAT: FR 04= 500440813 -- Ce message et toutes les pi?ces jointes qui y sont incluses so= nt, sauf indication contraire, confidentiels, destin?s uniquement aux desti= nataires et sont la propri?t? de SoftAtHome. Toute utilisation non autoris?= e, reproduction ou diffusion est interdite, sauf accord formel pr?alable de= l'exp?diteur. Si vous n'?tes pas le destinataire pr?vu de ce message, veui= llez le supprimer imm?diatement ainsi que toutes ses pi?ces jointes de votr= e syst?me informatique et en informer l'exp?diteur. SoftAtHome se r?serve l= e droit de surveiller toutes les communications par e-mail via ses r?seaux.= Les opinions exprim?es dans ce message sont celles de leur auteur et ne re= pr?sentent pas n?cessairement celles de SoftAtHome. L'Internet ne permettan= t pas d'assurer l'int?grit? de ce message, SoftAtHome d?cline toute respons= abilit? ? ce titre, dans l'hypoth?se o? il aurait ?t? alt?r?, d?form? ou fa= lsifi?. Par ailleurs et malgr? toutes les pr?cautions prises pour ?viter la= pr?sence de virus dans nos envois, nous vous recommandons de prendre, de v= otre c?t?, les mesures permettant d'assurer la non-introduction de virus da= ns votre syst?me informatique. SoftAtHome est une Soci?t? Anonyme fran?aise= ? Conseil d'Administration ayant un capital de 6 450 699 euros, dont le si= ?ge social est situ? au 9-11 rue du d?barcad?re - 92700 - Colombes - France= - Tel + 33 (0)1 57 66 88 88 - Fax + 33 (0)1 57 66 88 89 RCS Nanterre B 500= 440 813 - TVA intracommunautaire : FR 04500440813 --_000_MR1P264MB2481E332F0FB7A51B6A7FD7BC06A2MR1P264MB2481FRAP_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
The syslog implementation does not detect if the file descriptor of /dev/lo= g is closed, and keeps on logging to an invalid fd.
This happens for instance when using lxc with musl libc ( see issue https://github.com/lxc/lxc/issues/4485). LXC will at a certain point cl= ose the fd of /dev/log, in the assumption that a next call to syslog will d= etect an EBADF when writing data, and that the log will be reopened. glibc = does this, but musl does not. It would be better if syslog would either stop logging to the invalid fd, or = reopen the log when s send returns EBADF.

Jef
-- This message and any attachments herein are, unless otherwise stated, co= nfidential, intended solely for the addressees and are SoftAtHome’s o= wnership. Any unauthorized use, reproduction or dissemination is prohibited= unless formaly agreed beforehand by the sender. If you are not the intended addressee of this message, please imme= diately delete it and all its attachments from your computer system and not= ify the sender. SoftAtHome reserves the right to monitor all email communic= ations through its networks. Any views or opinions presented are solely those of its author and do not nece= ssarily represent those of SoftAtHome. The internet cannot guarantee the in= tegrity of this message. SoftAtHome not shall be liable for the message if = altered, changed or falsified. While we take all reasonable precautions to ensure that viruses are not transmit= ted via emails, we recommend that you take your own measures to prevent vir= uses from entering your computer system. SoftAtHome is a French Socié= ;té Anonyme with a Board of Directors, having a capital of 6 450 699 Euros having its registered office located a= t 9-11 rue du débarcadère – 92700 – Colombes R= 11; France – Tel + 33 (0)1 57 66 88 88 – Fax + 33 (0)1 57 66 88= 89 - RCS Nanterre B 500 440 813 – Intra-Community VAT: FR 0450044081= 3 -- Ce message et toutes les pièces jointes qui y sont incluses sont, sauf= indication contraire, confidentiels, destinés uniquement aux destin= ataires et sont la propriété de SoftAtHome. Toute utilisation= non autorisée, reproduction ou diffusion est interdite, sauf accord formel préalable de l'expéditeur. Si vous n'ête= s pas le destinataire prévu de ce message, veuillez le supprimer imm= édiatement ainsi que toutes ses pièces jointes de votre syst&= egrave;me informatique et en informer l'expéditeur. SoftAtHome se r&= eacute;serve le droit de surveiller toutes les communications par e-mail via ses réseaux.= Les opinions exprimées dans ce message sont celles de leur auteur e= t ne représentent pas nécessairement celles de SoftAtHome. L&= #8217;Internet ne permettant pas d’assurer l’intégrit&ea= cute; de ce message, SoftAtHome décline toute responsabilité à ce titre, d= ans l’hypothèse où il aurait été alt&eacu= te;ré, déformé ou falsifié. Par ailleurs et mal= gré toutes les précautions prises pour éviter la pr&ea= cute;sence de virus dans nos envois, nous vous recommandons de prendre, de votre côté, les mesures permettant d'assurer la non-introduct= ion de virus dans votre système informatique. SoftAtHome est une Soc= iété Anonyme française à Conseil d’Admini= stration ayant un capital de 6 450 699 euros, dont le siège social e= st situé au 9-11 rue du débarcadère - 92700 - Colombes - France - Tel + 33 (0)1 5= 7 66 88 88 - Fax + 33 (0)1 57 66 88 89 RCS Nanterre B 500 440 813 - TVA int= racommunautaire : FR 04500440813 --_000_MR1P264MB2481E332F0FB7A51B6A7FD7BC06A2MR1P264MB2481FRAP_--