From owner-freebsd-hackers@freebsd.org Sun Dec 29 21:53:49 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8C9341EB6AD for ; Sun, 29 Dec 2019 21:53:49 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic312-24.consmr.mail.gq1.yahoo.com (sonic312-24.consmr.mail.gq1.yahoo.com [98.137.69.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47mDph1P2Sz49G0 for ; Sun, 29 Dec 2019 21:53:47 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: NuT6VIAVM1lkr0K..FNo7kSONnfOQXoG7Lwh13cY.WJuLxC.vq3rT6pnWwaRecR JwCF0WGv0BI00vmqLyu_Nbi2cofiQPsbEwZCm4jDHzxPNqsd9oKIoSFknx2WUBwUgc9sHqsmEzMF OsfJmYz0dX3qQSkLb.YGCy6N16IaIjhcm5_kui9OxTRi3j8vawT1Aw6dEJiVoetxFlS9IWJRvEjR q2vmzs1pmcZoZd8Rx39nHkNwmCht7SkHnOUGDhX2gveitHmswkOfY3b.PP0L7aUFswDi9m6xpOVP zI.tVm8XoA._4uG5G8mJRilP3mFIvMznEZzSrr2yDyGJZZMBzrFBq4.tJSoCIaTiXu3GXOEN_cnn X5hxBFrtlFvjdPklhZUNYylYLifgHueqiatl32xwcGcTrE9rRHwv7I0ub4LZQpTpJZm5xHNK0Yd2 xXZS4pX4GLXGFIZLnTLlukQjhLvy.9vaNk7dCyXBa7Z4OM2Gn2Bcwt12RmXIoiSLL5whvZlkOcvs Owqs1dwKdwHCYzvM3ZPh2J7myyK.qDD5FI8mmsLy5EgZyw1arsfJj6r5yBmtlZznqc694uxdw3hu 3kESEQCfINpOSeA84V95ZQdpO31Sc1aB8zSwM35ZyMHcW6jd_TpxEOa_uSU0D9qWSVzKKnKFkVz3 r.hTiFkNlCL.lAIW_z0sqMjGke.9u0b7RBNKsmixMe_tGccD.QbenVKKTaVG1KYMPrVFm7chq2qb mKRxYKZb0hL37uuVojgaeYGKYXTxrRhrNsKU803kz1F63HBLMUlkjzSxaqoXoqs60p9wGLFX3N1A pzGvKWVW7EtsccGSVinI8IdxbBqIC1hHQiyUXlYNNIO0uj8sktofuqyIVQoLuYHw2RPq1xsWkqE3 wgrPf8Hr7I_UxlkQ9YzCZzmtYa20m5YoB.yiEWRsFTV7qGT7PdcMc510xCSg7KT4TjVvDPYB6hqK b1GK9MhE1MIFI6MxUOkARn3HLJO3AmJYrYXbao0xxqCGhrl6nnVQ9fhAszFi5hXTSZMRn3ObDJN4 HBfpyX5vW2XA9IAUgiuMbXNESuejuxb7NfNg2jznCre9VksizYrKuaoCQazjmsQ4im4AK0QHbwUM uOXaRf.grOvJJQRu8gcT1iE8RjTcajTBUGFg_Ol8UF77RfS3.KVEjNUd5Bzz.M3qwpuH4hTqPxNe YKaIUjTxxfcQpSpM983I.YjXQhjYAFWngvkb.4GRh11omhR5fuzGvxRFlElkVc6_CfCbaB9Wqn9o Z1IQnMvjqWsMx3qWyKTP59DZvKcpIK8PrP461canjYiCnKEw.oqQqKZaXl13SOGqRxi_xmYx8hVK f20Y_oEjhZsOKZYaAkx2GIV3VA9I4YqDnDNI1iaoZ4FkB2gReVgGbXq4VN2ReXSRFFcwposdkleR qgay3zWsOAbyIZeWH2kHewD3wQwjAKls1mQ-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.gq1.yahoo.com with HTTP; Sun, 29 Dec 2019 21:53:45 +0000 Received: by smtp402.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID fc63e35a929149add8784bf4660eb341; Sun, 29 Dec 2019 21:53:44 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: head -r356109 on 32-bit powerpc (old PowerMac): Memory modified after free during late-stage of boot, most recently used by bus-sc Message-Id: <28FD8632-AC91-40D7-B6E7-36E304D37794@yahoo.com> Date: Sun, 29 Dec 2019 13:53:42 -0800 To: FreeBSD Current , freebsd-hackers@freebsd.org, FreeBSD PowerPC ML X-Mailer: Apple Mail (2.3608.40.2.2.4) References: <28FD8632-AC91-40D7-B6E7-36E304D37794.ref@yahoo.com> X-Rspamd-Queue-Id: 47mDph1P2Sz49G0 X-Spamd-Bar: - X-Spamd-Result: default: False [-1.77 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.40)[-0.399,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-0.87)[-0.867,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.00)[ip: (5.15), ipnet: 98.137.64.0/21(0.89), asn: 36647(0.71), country: US(-0.05)]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[205.69.137.98.list.dnswl.org : 127.0.5.0]; RWL_MAILSPIKE_POSSIBLE(0.00)[205.69.137.98.rep.mailspike.net : 127.0.0.17]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Dec 2019 21:53:49 -0000 The kernel here is from expanding: = https://artifact.ci.freebsd.org/snapshot/head/r356109/powerpc/powerpc/kern= el*.txz (So: not my kernel build.) This is, of course, a debug kernel. World is my build (via system-clang, not gcc 4.2.1) Hand copied from an image of the crash information (no input possible at the db> prompt) . . . . . . Root mount waiting for: CAM usbus0 usbus1 ugen1.2: at usbus1 uhub4 on uhub0 uhub4: on ubus1 Memory modified after free 0x1e4d180(28) val=3D1e5a9c0 0 0x1e4d190 panic: Most recently used by bus-sc cpuid =3D 0 time =3D 2 KDB: stack backtrace: 0xd2630390: at kdb_backtrace+0x5c 0xd2630400: at vpanic+0x1f8 0xd2630470: at panic+0x68 0xd26304c0: at mtrash_ctor+0x9c 0xd26304e0: at item_ctor+0xb4 0xd2630510: at uma_zalloc_arg+0x1b4 0xd2630540: at malloc+0xfc 0xd2630580: at alloc_bounce_pages+0x7c 0xd26305c0: at bus_dmamap_create+0x1e8 0xd26305f0: at bus_dmamem_alloc+0x64 0xd2630620: at usb_pc_alloc_mem+0xbc 0xd2630660: at usbd_transfer_setup_sub_malloc+0x28c 0xd26306c0: at ohci_xfer_setup+0x1e4 0xd2630720: at usbd_trasnfer_setup+0x494 0xd26307a0: at usbd_ctrl_trasnfer_setup+0x184 0xd26307f0: at usbd_do_request_flags+0x300 0xd2630870: at usbd_req_set_address+0xdc 0xd26308b0: at usb_alloc_device+0x3cc 0xd2630940: at uhub_explore+0x678 0xd26309b0: at usb_bus_explore+0x128 0xd26309d0: at usb_process+0x128 0xd2630a10: at fork_exit+0xc0 0xd2630a40: at fork_trampoline+0xc KDB: enter: panic [ thread pid 15 tid 100040 ] Stopped at kdb_enter +0x70: addi r0,r0,0x0 db>=20 Unfortunately, I have no control at that point so this is all the information available about the PowerMac's state. I can report the that following sequences do boot (so far): boot -s then exit at the shell prompt boot -v (I've also seen a Rock64 Cortex-A53 board with boot crashes, where boot -v happened to boot, but only a personal non-debug kernel build was tried at the time.) The PowerMac is a 2-processor G4 model, with FW800. 2 GiBytes of RAM. Note: Historically I've experimented with system-clang and more modern gcc builds for 32-bit powerpc and powerpc64. The above is from me getting ready to jump over to the official system-clang context (and ELFv2 for powerpc64). I wanted to know some of the status of things that I'd see just before those changes so I'd have some clue what might be new vs. old when I switch over. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-hackers@freebsd.org Sun Dec 29 22:05:08 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 703061EBED5; Sun, 29 Dec 2019 22:05:08 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47mF3l3Dbgz4B17; Sun, 29 Dec 2019 22:05:07 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [62.141.129.235]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id D60762605BE; Sun, 29 Dec 2019 23:04:58 +0100 (CET) Subject: Re: head -r356109 on 32-bit powerpc (old PowerMac): Memory modified after free during late-stage of boot, most recently used by bus-sc To: Mark Millard , FreeBSD Current , freebsd-hackers@freebsd.org, FreeBSD PowerPC ML References: <28FD8632-AC91-40D7-B6E7-36E304D37794.ref@yahoo.com> <28FD8632-AC91-40D7-B6E7-36E304D37794@yahoo.com> From: Hans Petter Selasky Message-ID: <42bf7ff5-1279-28cb-5b4b-a0335e819a3a@selasky.org> Date: Sun, 29 Dec 2019 23:04:55 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: <28FD8632-AC91-40D7-B6E7-36E304D37794@yahoo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47mF3l3Dbgz4B17 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 2a01:4f8:c17:6c4b::2 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-4.94 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; IP_SCORE(-2.64)[ip: (-9.19), ipnet: 2a01:4f8::/29(-2.43), asn: 24940(-1.54), country: DE(-0.02)]; FREEMAIL_TO(0.00)[yahoo.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Dec 2019 22:05:08 -0000 On 2019-12-29 22:53, Mark Millard via freebsd-hackers wrote: > 0xd2630510: at uma_zalloc_arg+0x1b4 > 0xd2630540: at malloc+0xfc > 0xd2630580: at alloc_bounce_pages+0x7c > 0xd26305c0: at bus_dmamap_create+0x1e8 Do you know what drivers are using bounce pages? --HPS From owner-freebsd-hackers@freebsd.org Sun Dec 29 22:18:05 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 13CFB1EC702 for ; Sun, 29 Dec 2019 22:18:05 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound2m.ore.mailhop.org (outbound2m.ore.mailhop.org [54.149.155.156]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47mFLh4k8dz4Btp for ; Sun, 29 Dec 2019 22:18:04 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1577657882; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=NEExqKe5LzZ6zs/DWyGL0uaMF6Ih7V878XjuCf7Ou2SyyIY+cfmKZicfEwwhhW09Z22yKUFox1mRK v+fOB++a+gbX+lgRA3t0JEY7uW/J3ZBaRuOY7oz/fLDy/gkr5IXhJyo3kfh7t65lp2dU8vCEhUY5RP HtKdMgT1Ni2q7c77+Meyrb56871x8vkkz4j8FNDqi5VDf5XG3llsy9Dfwet6nOwG7zxM2eBL/EkRSk fsE0FOeY+2GWx/kuT8oERehOb9jiZfOMBvI4J9DMtc6H+DzvWCB1TLrxh+N3KdV04Ni8mIRZjyqtJe v0irfoUngttYUhs6cEWGP0qwpnSkgLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:dkim-signature:from; bh=toCG9VxpbGq2eDSiy5Yj2NLeWr4rHpiQLyKUQALsdQ0=; b=mR0y9e6l2vZAwHu/tqjnye4QLn2Gi8IYiTuZVa+8PIazw5qmFdYU21zoR/9wFq6WQKohItJ15YBnk VDZO8UB9dFqSx2J1KmixQvwNxF+/RotiZoH6Ny6puF98BBYZb5yhpaoXqGUIhkCdUXL4TMFkme8V2B 08D/dFM6xxQOMQc6qwW4w+u8Rn12mwsg0WYRZyuEWG9BdFW6MbnDFx+N9xoeDt1KgLOnT4mXsiCL1z zNFKsp0g8qtiU+H+/47iODrfwA5fsFaXwWtepL/81OMPqvI/O+QRQEjNO200KxCKckBvUo29gvwRUv U8n48dj+Fq/W1MPDYG1Ek4LNdROekZQ== ARC-Authentication-Results: i=1; outbound4.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:from; bh=toCG9VxpbGq2eDSiy5Yj2NLeWr4rHpiQLyKUQALsdQ0=; b=TKQLbBEXFq5Vo+oYpOTYKwSoyScJBCaOvbeV4qRiFU7xJb6lIxNud4FpG0oS/1w3UPnqwwP80B1XW fU+9U/jk7KlZPlprKS6Z+Rbuxihcq6u2c+s+8/H0qLaLJ8S+5rxcuOjiJkVJJlrrG11xzqKFOLzxZN xBar5jzy12Mnf5Dfasn0nudCr2wvPL/we9QSRNDSHhGcR5GL096fdxaX+K9AZt7d3WyC64D9zKQTdB V/3hmOs0KM37PSUrRDBQf1wb82PFnTgkKgkwiSGNWUzqABUntRU0Vp95qVqAQdkMym6mlDXDRuiKZS yDaXTB9QvMsPQ2q7cRvaUe4NG9mrWCA== X-MHO-RoutePath: aGlwcGll X-MHO-User: 12246c86-2a89-11ea-829f-79a40d15cccd X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound4.ore.mailhop.org (Halon) with ESMTPSA id 12246c86-2a89-11ea-829f-79a40d15cccd; Sun, 29 Dec 2019 22:18:01 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id xBTMHwdM098783; Sun, 29 Dec 2019 15:17:59 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: Subject: Re: head -r356109 on 32-bit powerpc (old PowerMac): Memory modified after free during late-stage of boot, most recently used by bus-sc From: Ian Lepore To: Hans Petter Selasky , Mark Millard , FreeBSD Current , freebsd-hackers@freebsd.org, FreeBSD PowerPC ML Date: Sun, 29 Dec 2019 15:17:58 -0700 In-Reply-To: <42bf7ff5-1279-28cb-5b4b-a0335e819a3a@selasky.org> References: <28FD8632-AC91-40D7-B6E7-36E304D37794.ref@yahoo.com> <28FD8632-AC91-40D7-B6E7-36E304D37794@yahoo.com> <42bf7ff5-1279-28cb-5b4b-a0335e819a3a@selasky.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47mFLh4k8dz4Btp X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-1.96 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.97)[-0.969,0]; NEURAL_HAM_LONG(-1.00)[-0.996,0]; ASN(0.00)[asn:16509, ipnet:54.148.0.0/15, country:US] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Dec 2019 22:18:05 -0000 On Sun, 2019-12-29 at 23:04 +0100, Hans Petter Selasky wrote: > On 2019-12-29 22:53, Mark Millard via freebsd-hackers wrote: > > 0xd2630510: at uma_zalloc_arg+0x1b4 > > 0xd2630540: at malloc+0xfc > > 0xd2630580: at alloc_bounce_pages+0x7c > > 0xd26305c0: at bus_dmamap_create+0x1e8 > > Do you know what drivers are using bounce pages? > > busdma isn't the culprit here. It was trying to allocate memory and the uma code found a block that was free and checked it before handing it out, and discovered that it had been modified after being freed. Before being freed, the memory was last used as the softc for some device (perhaps only during probing of a device that never attached). That device would most likely be the culprit (or a wild-pointer write hit that block). -- Ian From owner-freebsd-hackers@freebsd.org Sun Dec 29 22:38:30 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 919D61ED010 for ; Sun, 29 Dec 2019 22:38:30 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic301-22.consmr.mail.gq1.yahoo.com (sonic301-22.consmr.mail.gq1.yahoo.com [98.137.64.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47mFpF3tQJz4Cyr for ; Sun, 29 Dec 2019 22:38:29 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: OtHDFYwVM1nw4x2hTs7fVbQ6U63BeCIVWSGrRh5_K8m.ue3qkGoYswLbZhsXeNL PIgdYI41NWvwlWRT78LcKxkz82gS66GpICVtKo5h_.JUAb_JpA0MaEHF8OPACyfoRo9Zuq2UHMSV 7VS_4E4w1HESherZ.KzRvekRhzlRb.rIAVL41lpqGnIB6gDVFTaas5Rav9TeOgXfB6eEQe6hvXJS 0J81MYF4W5mjOrXzd8ke8184RMxkufOMA.xeNYO4aHdXlDLhd_L7tfzU5dxPxszwN24V.bc0Tmp2 VnugUPQ4Cst2_Jg6jZBIuobPXvxsEFZ_NZbEjhp0Xu8QhTWzJ4Y_FO6_zh7XCcnPf8oWuQ6oaZ9g 2vOnBVmEJjgbe9W5QTWz4N.wn5aUL5DbOXmIVju.92lBTQ5yMPWuTX8pTev1R62XYvBu2M2rxkcv f7idn4U8YDu9up1hArqb40hNd9eYIhe0sKia5T0BXcSZ5OCriSetP48Y5RSXPQ7ceJycnZsIyBc8 ZpA02aLiEx.z7WCVSgN9QMe5VL9.hv0U0nm.DRfy5CnJbKNb5ViVlC0yh5DB_cMl35TQq7HkozvH 7bc1OA693vylfroiSPs36M4tPtmfsr6A5GWWqGjDARSOAJfcieJu1b8pwjQoFV6MSF_Wk7GhoSww YR.0JQquCMibEOZq_bhrz2YGKiMapcg9CCiObRhLsabpF5PSVa0PVJRbN7MuUkwM0QpqaVzhp0A2 yFEWlmmaakNwmunmB22eP3sRLzWWNQ84Pu1f_rx5nI3yqbAOkrK2VQg4qXFyVmYT3MLyEnm2C86Y rGOzbqLQFJXE.LCHPVjyFU0dVyDqaYVPDNvWShVlwSi0T6L5wIx8KnfxruFX_JYK4STiGbWr.Vq. 8tjF_Avv7A.repsTn8hMkxpLT4l98IVvbDMURsJX6mYh7rpMXhC86MhSw3.qRTg2cCctZxmzHAJe KHLR9jinvHm6CWGPlRD4ohLfOPXfYu5YWPAr71wiIHR5DgFQ9JJv2We7oh8RmDZUDpJ7.O97_e6Y gvpFJ7Sw40iZhxPPHjFF9a5HpQlWds4fCphZ27J11VbLXIRwM5K6fak.Sb6wMydVpuB.bFjvKmG_ 3ihlQv6d4bjOldytRgDthDxDV.by1wi1ipMd5p_QI5VRYSk2IYRwOZw77rAOmZSoUT5wiKbjwt3H KqNDzweLEIh7kaMKjTYl2vqls8ZZ5BLkfO7VektpVOp1fGwl065ET.Bo4nBW2t8.51gZ5kAB_qZx X0332seBT7GFl6d51suGLYVodyD7CUQPtIgwlYXI4RHhVmqKWBlqGgizniygxHuHZlnFx02Ooh.P CRZULHglbMn46Qyg3MHOMyx3PnZRnonijPCGvnID4w0P5pMTOIFEN._5azZaqEMbmIaCj4CQdyIS 5yYJvPWqukhJXeD1V6eJD1ZiqOdXOjxa1 Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.gq1.yahoo.com with HTTP; Sun, 29 Dec 2019 22:38:26 +0000 Received: by smtp415.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 3437fd782ca164bedfbfac2ffe024092; Sun, 29 Dec 2019 22:38:22 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Re: head -r356109 on 32-bit powerpc (old PowerMac): Memory modified after free during late-stage of boot, most recently used by bus-sc From: Mark Millard In-Reply-To: <42bf7ff5-1279-28cb-5b4b-a0335e819a3a@selasky.org> Date: Sun, 29 Dec 2019 14:38:20 -0800 Cc: FreeBSD Current , freebsd-hackers@freebsd.org, FreeBSD PowerPC ML Content-Transfer-Encoding: quoted-printable Message-Id: <558A986F-B0C9-447A-A569-4D90A2B44C58@yahoo.com> References: <28FD8632-AC91-40D7-B6E7-36E304D37794.ref@yahoo.com> <28FD8632-AC91-40D7-B6E7-36E304D37794@yahoo.com> <42bf7ff5-1279-28cb-5b4b-a0335e819a3a@selasky.org> To: Hans Petter Selasky X-Mailer: Apple Mail (2.3608.40.2.2.4) X-Rspamd-Queue-Id: 47mFpF3tQJz4Cyr X-Spamd-Bar: - X-Spamd-Result: default: False [-1.99 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.57)[-0.569,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MIME_GOOD(-0.10)[text/plain]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-0.92)[-0.924,0]; TO_DN_SOME(0.00)[]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; RCVD_IN_DNSWL_NONE(0.00)[148.64.137.98.list.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.00)[ip: (4.35), ipnet: 98.137.64.0/21(0.89), asn: 36647(0.71), country: US(-0.05)]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Dec 2019 22:38:30 -0000 On 2019-Dec-29, at 14:04, Hans Petter Selasky = wrote: > On 2019-12-29 22:53, Mark Millard via freebsd-hackers wrote: >> 0xd2630510: at uma_zalloc_arg+0x1b4 >> 0xd2630540: at malloc+0xfc >> 0xd2630580: at alloc_bounce_pages+0x7c >> 0xd26305c0: at bus_dmamap_create+0x1e8 >=20 > Do you know what drivers are using bounce pages? No clue. Looking around a bit I see that there is: if (newtag->lowaddr < ptoa((vm_paddr_t)Maxmem) && newtag->iommu = =3D=3D NULL) newtag->flags |=3D BUS_DMA_COULD_BOUNCE; if (newtag->alignment > 1) newtag->flags |=3D BUS_DMA_COULD_BOUNCE; in bus_dma_tag_create (in sys/powerpc/powerpc/busdma_machdep.c ). But that does not indicate what all specifically might have met one of those 2 conditions for some tag creation. (The material is not familiar.) =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-hackers@freebsd.org Mon Dec 30 21:11:12 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 429301EA0D9 for ; Mon, 30 Dec 2019 21:11:12 +0000 (UTC) (envelope-from yeking@red54.com) Received: from smtpbgeu2.qq.com (smtpbgeu2.qq.com [18.194.254.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47mqq3157Wz4TjS for ; Mon, 30 Dec 2019 21:11:10 +0000 (UTC) (envelope-from yeking@red54.com) X-QQ-FEAT: J2LDBW4VWtrGB/hb/7KD9ngZUsDIUf/xDqtqhM26EqhJqjtg8chq3tvFqZkzQ Tr9FnLo9UNxjhNz5cODA1s3c86VW+8JjGFu6W0fxSlWiz/vnMugV+xNBY7V9uSMGBrXJsfj ikQCf1q+d9rWbZdSnVIP+3JWlyRZgfPsYmMHssWdewZ0euzeuKuPyyWV140BDALqPAmg4z5 uw6mUhZLfZeB1WDCHR0q0cgG5MLU9GnqTsdYkjYeR2sHw/FXmRkNqkAJgAFpd9PGoChdVte wfEGUUfYaWflv9G9BX68hfAPTvCgpQbj9+rni17x+zq00Dm3ozprwRDPE= X-QQ-SSF: 00000000000000F000000000000000U X-HAS-ATTACH: no X-QQ-BUSINESS-ORIGIN: 2 X-Originating-IP: 223.73.97.47 X-QQ-STYLE: X-QQ-mid: webmail304t1577740265t7901241 From: "=?gb18030?B?0LvWwrDuIChYSUUgWmhpYmFuZyk=?=" To: "=?gb18030?B?ZnJlZWJzZC1oYWNrZXJz?=" , "=?gb18030?B?ZnJlZWJzZC1jdXJyZW50?=" , "=?gb18030?B?ZnJlZWJzZC1kb2M=?=" Subject: [PATCH] Fix "Last database update: 2020-12-30 15:16:53 UTC" problem Mime-Version: 1.0 Content-Type: text/plain; charset="gb18030" Content-Transfer-Encoding: base64 Date: Tue, 31 Dec 2019 05:11:05 +0800 X-Priority: 3 Message-ID: X-QQ-MIME: TCMime 1.0 by Tencent X-Mailer: QQMail 2.x X-QQ-Mailer: QQMail 2.x X-QQ-SENDSIZE: 520 Received: from qq.com (unknown [127.0.0.1]) by smtp.qq.com (ESMTP) with SMTP id ; Tue, 31 Dec 2019 05:11:06 +0800 (CST) Feedback-ID: webmail:red54.com:bgforeign:bgforeign12 X-QQ-Bgrelay: 1 X-Rspamd-Queue-Id: 47mqq3157Wz4TjS X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of yeking@red54.com designates 18.194.254.142 as permitted sender) smtp.mailfrom=yeking@red54.com X-Spamd-Result: default: False [0.07 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.88)[-0.877,0]; HAS_XOIP(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:18.194.254.0/24:c]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; NEURAL_HAM_LONG(-0.98)[-0.982,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; MIME_BASE64_TEXT(0.10)[]; HAS_X_PRIO_THREE(0.00)[3]; RCVD_IN_DNSWL_NONE(0.00)[142.254.194.18.list.dnswl.org : 127.0.5.0]; TO_EXCESS_BASE64(1.50)[]; IP_SCORE(0.13)[ipnet: 18.194.0.0/15(1.94), asn: 16509(-1.22), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:16509, ipnet:18.194.0.0/15, country:US]; RCVD_COUNT_TWO(0.00)[2]; RWL_MAILSPIKE_POSSIBLE(0.00)[142.254.194.18.rep.mailspike.net : 127.0.0.17] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Dec 2019 21:11:12 -0000 aHR0cHM6Ly93d3cuZnJlZWJzZC5vcmcvY2dpL3BvcnRzLmNnaT9xdWVyeT1mcmVlYnNkLWRv Yy1hbGwKaHR0cHM6Ly93ZWIuYXJjaGl2ZS5vcmcvd2ViLzIwMTkxMjMwMjEwNDIxL2h0dHBz Oi8vd3d3LmZyZWVic2Qub3JnL2NnaS9wb3J0cy5jZ2k/cXVlcnk9ZnJlZWJzZC1kb2MtYWxs CgpJbmRleDogZG9jL2hlYWQvZW5fVVMuSVNPODg1OS0xL2h0ZG9jcy9jZ2kvcG9ydHMuY2dp Cj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT0KLS0tIGRvYy9oZWFkL2VuX1VTLklTTzg4NTktMS9odGRvY3MvY2dp L3BvcnRzLmNnaQkocmV2aXNpb24gNTM3MjEpCisrKyBkb2MvaGVhZC9lbl9VUy5JU084ODU5 LTEvaHRkb2NzL2NnaS9wb3J0cy5jZ2kJKHdvcmtpbmcgY29weSkKQEAgLTE2Niw3ICsxNjYs NyBAQAogCiAgICAgJG1vZHRpbWUgPSAoIHN0YXQoJGZpbGUpIClbOV07CiAgICAgaWYgKCBk ZWZpbmVkKCRtb2R0aW1lKSAmJiAkbW9kdGltZSA+IDAgKSB7Ci0gICAgICAgICRtb2R0aW1l c3RyID0gc3RyZnRpbWUoICIlRy0lbS0lZCAlSDolTTolUyBVVEMiLCBnbXRpbWUoJG1vZHRp bWUpICk7CisgICAgICAgICRtb2R0aW1lc3RyID0gc3RyZnRpbWUoICIlWS0lbS0lZCAlSDol TTolUyBVVEMiLCBnbXRpbWUoJG1vZHRpbWUpICk7CiAgICAgfQogICAgIGVsc2UgewogICAg ICAgICAkbW9kdGltZXN0ciA9ICJVbmtub3duIjs= From owner-freebsd-hackers@freebsd.org Wed Jan 1 08:10:45 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B0F4A1F7A2E for ; Wed, 1 Jan 2020 08:10:45 +0000 (UTC) (envelope-from yeking@red54.com) Received: from smtpproxy21.qq.com (smtpbg704.qq.com [203.205.195.105]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47nkPY5x2sz4fSQ for ; Wed, 1 Jan 2020 08:10:40 +0000 (UTC) (envelope-from yeking@red54.com) X-QQ-FEAT: 1mVGv73xmHmXRywCohCTw/mlA+iORvafeREA+pMK1t6L4VMyJdn0NwGfVi9c2 DZGmtnCfs1CTEqwB7h6NXY1c3Fv9aRwMi1jm9s9xBAHnGpupYz9Oe7ztaPkckqYVc8qiVmN IlKKQxLm2pOmU/64CiDM+bz5Jt51Vuk4MXu0Wi+jstFHR5HX2uwqb4FbSBx3koKmyEUAAZk nO/4xZw0HtRIp27ozbSh4tAsR2QILtBEJ1f0LDWfiEky1prUTYmS2OejMinKtPvFDvAo7q+ zs4MZxp8d54QyLQ1/rj3A1ivCD2CpOnHgYPhaViWzMr1ii X-QQ-SSF: 00000000000000F000000000000000U X-HAS-ATTACH: no X-QQ-BUSINESS-ORIGIN: 2 X-Originating-IP: 223.73.228.69 X-QQ-STYLE: X-QQ-mid: webmail304t1577866221t2943489 From: "=?utf-8?B?6LCi6Ie06YKmIChYSUUgWmhpYmFuZyk=?=" To: "=?utf-8?B?ZnJlZWJzZC1oYWNrZXJz?=" , "=?utf-8?B?ZnJlZWJzZC1jdXJyZW50?=" , "=?utf-8?B?ZnJlZWJzZC1kb2M=?=" , "=?utf-8?B?Y3JlZXM=?=" , "=?utf-8?B?d29zY2g=?=" Subject: [PATCH] Fix "Last database update: 2020-12-30 15:16:53 UTC" problem Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Date: Wed, 1 Jan 2020 16:10:21 +0800 X-Priority: 3 Message-ID: X-QQ-MIME: TCMime 1.0 by Tencent X-Mailer: QQMail 2.x X-QQ-Mailer: QQMail 2.x X-QQ-SENDSIZE: 520 Received: from qq.com (unknown [127.0.0.1]) by smtp.qq.com (ESMTP) with SMTP id ; Wed, 01 Jan 2020 16:10:21 +0800 (CST) Feedback-ID: webmail:red54.com:bgforeign:bgforeign11 X-QQ-Bgrelay: 1 X-Rspamd-Queue-Id: 47nkPY5x2sz4fSQ X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of yeking@red54.com designates 203.205.195.105 as permitted sender) smtp.mailfrom=yeking@red54.com X-Spamd-Result: default: False [1.10 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.47)[-0.471,0]; HAS_XOIP(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:203.205.195.0/24]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; NEURAL_HAM_LONG(-0.70)[-0.703,0]; RCPT_COUNT_FIVE(0.00)[5]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; MIME_BASE64_TEXT(0.10)[]; HAS_X_PRIO_THREE(0.00)[3]; TO_EXCESS_BASE64(1.50)[]; IP_SCORE(0.47)[asn: 132203(2.35), country: CN(0.02)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:132203, ipnet:203.205.194.0/23, country:CN]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jan 2020 08:10:45 -0000 Rm9yd2FyZCB0byBjcmVlcyBhbmQgd29zY2guCgpodHRwczovL3dlYi5hcmNoaXZlLm9yZy93 ZWIvMjAxOTEyMzAyMTA0MjEvaHR0cHM6Ly93d3cuZnJlZWJzZC5vcmcvY2dpL3BvcnRzLmNn aT9xdWVyeT1mcmVlYnNkLWRvYy1hbGwKaHR0cHM6Ly93ZWIuYXJjaGl2ZS5vcmcvd2ViLzIw MTkxMjMxMDU0MTIzL2h0dHBzOi8vd3d3LmZyZWVic2Qub3JnL2NnaS9wb3J0cy5jZ2k/cXVl cnk9ZnJlZWJzZC1kb2MtYWxsCgpJbmRleDogZG9jL2hlYWQvZW5fVVMuSVNPODg1OS0xL2h0 ZG9jcy9jZ2kvcG9ydHMuY2dpCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIGRvYy9oZWFkL2VuX1VTLklT Tzg4NTktMS9odGRvY3MvY2dpL3BvcnRzLmNnaQkocmV2aXNpb24gNTM3MjEpCisrKyBkb2Mv aGVhZC9lbl9VUy5JU084ODU5LTEvaHRkb2NzL2NnaS9wb3J0cy5jZ2kJKHdvcmtpbmcgY29w eSkKQEAgLTE2Niw3ICsxNjYsNyBAQAogCiAgICAgJG1vZHRpbWUgPSAoIHN0YXQoJGZpbGUp IClbOV07CiAgICAgaWYgKCBkZWZpbmVkKCRtb2R0aW1lKSAmJiAkbW9kdGltZSA+IDAgKSB7 Ci0gICAgICAgICRtb2R0aW1lc3RyID0gc3RyZnRpbWUoICIlRy0lbS0lZCAlSDolTTolUyBV VEMiLCBnbXRpbWUoJG1vZHRpbWUpICk7CisgICAgICAgICRtb2R0aW1lc3RyID0gc3RyZnRp bWUoICIlWS0lbS0lZCAlSDolTTolUyBVVEMiLCBnbXRpbWUoJG1vZHRpbWUpICk7CiAgICAg fQogICAgIGVsc2UgewogICAgICAgICAkbW9kdGltZXN0ciA9ICJVbmtub3duIjs= From owner-freebsd-hackers@freebsd.org Wed Jan 1 19:46:23 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8FE6B1DE1DD for ; Wed, 1 Jan 2020 19:46:23 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-qv1-xf34.google.com (mail-qv1-xf34.google.com [IPv6:2607:f8b0:4864:20::f34]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47p1rG4qt5z4HZH for ; Wed, 1 Jan 2020 19:46:22 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: by mail-qv1-xf34.google.com with SMTP id m14so14365804qvl.3 for ; Wed, 01 Jan 2020 11:46:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=MSFtqHT11occsKFI51aY3MPyUNzsVYJMxGThvVmoDkk=; b=UEv2alHOpXoCYe+xZEIzBkFQTphXcRvYZz3Md9lvkURZhtYsRqeDqpc+djnZwx51vc IT9LtrxVfG4xqVUqEOZAAfwsJoizp67pO3VZ2a2TbnVI+fMRMVrV9VFtopdFilNy7eui HL2rHXdqgX1WM6wbZQPDar2kdV/PxGtuvl0Lc4uOnJ7UlTDrf04dgMbusEt9Xr+ekWey 71EM8JWaHVOjNgIMtfiSW37ceBa+YviUu+x58MiHwEq9v8h8D5oC+Hc5YCaSc62VQzoa M+yXW8S73SyomuKyTuTj9XMPF9/tMy2Y9pVTXzUK4QFr78goiO9jd4XaCRwhw3MTMzey 031Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=MSFtqHT11occsKFI51aY3MPyUNzsVYJMxGThvVmoDkk=; b=F0YoEQwvJULz5uwW4FiJbPEYLx6/E+hRxZlNxxGynoEOGpmZXGg6VNAVyCS3SKOJ7k oqcwr7pu9R4beK+OFYXvvAaW+RCcmTiGQRCF4xAkKCgtdq+gsQQ2TukDzhA5NvdxfezW W+EmtHNonZQ1whh2gEomf2HEICDstJPtB+V07wMPmrfcf4DKvv/bUcRChdyJuMyfyZ23 swsLbXRbFo2Jxj7OcRSYjHm8cUBvyh3U/cf1cAkcXjTUTOZWVNOTtUEDUmAP6vXjKoga +1gr83E9JySqYxa9l/ZEji/n219EFl7aTBnaPFGlh7l8ot6cAahpc5HKe83QEmW4eUHM pYVA== X-Gm-Message-State: APjAAAVAAg16WwYBtdcyBvszDGbD0sx1etIOEsve+P4BaLpS4i+HVRy+ dmscFJI2bi9uAiQIZ7amHQNzzoKiwRAW60xmIcr/hQ== X-Google-Smtp-Source: APXvYqxZxVITK9mZeUkbUHu/E9j9p3SVQBaoxZQM5vLNgvLV6jBqeB3u1M6vm/mgl4JOkAPMg7WWj56U0sx8avIZjeE= X-Received: by 2002:a0c:f68f:: with SMTP id p15mr59173001qvn.79.1577907976491; Wed, 01 Jan 2020 11:46:16 -0800 (PST) MIME-Version: 1.0 From: Ryan Stone Date: Wed, 1 Jan 2020 14:46:05 -0500 Message-ID: Subject: How do I completely disable suspend? To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 47p1rG4qt5z4HZH X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=UEv2alHO; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of rysto32@gmail.com designates 2607:f8b0:4864:20::f34 as permitted sender) smtp.mailfrom=rysto32@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_DN_NONE(0.00)[]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE(0.00)[ipnet: 2607:f8b0::/32(-2.15), asn: 15169(-1.87), country: US(-0.05)]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jan 2020 19:46:23 -0000 I have a laptop on which suspend/resume doesn't work. I don't need suspend/resume and don't want to spend the time debugging it. However, there are some really annoying cases that can trigger a suspend, and I find up having to power off the laptop to get it to boot properly again. How can I completely disable suspend? Playing with the sysctls under hw.acpi doesn't seem to actually do anything. From owner-freebsd-hackers@freebsd.org Wed Jan 1 22:01:24 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EF23A1E1A8F for ; Wed, 1 Jan 2020 22:01:24 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47p4r33s3Gz4QjP for ; Wed, 1 Jan 2020 22:01:23 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x82d.google.com with SMTP id t3so33602338qtr.11 for ; Wed, 01 Jan 2020 14:01:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=W7o/QjJuX4tdJW5KvYq7kuvizFLmYLhD7OeYkYDSUqc=; b=ZI+a8+d0oqKmCIeqseyI34C7wYnEAqchOF7s70HDTOk9gPv59EgUrxU+uNx6xNTDGi vzSjdmlllk5zFq38QCWk94yBZzIVTE0N6ezI6JJCwtreOA0cmDmwHM0avThD926C4+4P HQEt0+ZgJm8KmVGuAurSJ/k5STAKWzijuWXnElZuP1UwbboINj7vDM7X7HZTq9LsXFNa j27wIfeABnLqejFhVqECbgp4JTd9E7/X204mFvJF7iKOBOBDEoxBQea7IrBp3dX4+C7U ujrqvvriDrKVft60wv43I3ifRduLz/FVxFvHUUtUxDmXtPWUtepmB1SeBUBU4w+9T0Zk Sqtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=W7o/QjJuX4tdJW5KvYq7kuvizFLmYLhD7OeYkYDSUqc=; b=sg5IPLrGVjHJYznp+pP5t7WKKclGQEztDIF1ofGJoCFtihGJecUnSx4qlQjnnAUXTm pgr3urXLMoqfERzsdd1oxrQki3Ljggiki76Z1pL25gCpecbVyWnVc/Ocxd9y4/0vliOf pY/Tz6Jgg3EIaDnEnfJl9wanix0t6zBBExrzmfPIVhibeLxT1hLIVyZzfyw6hcOqV7JE ZL38G4pmG4Mg6aqROdeSfKiUa/gaKSdr0zfb8u5sKjlE3ugS9YAzxgEsD2j0jV41DGsC GlcYRtax2XGzM7B3WJYrBLwjO5LZTe0szDdsW9k0FZ7vJ8KdDiXOhliDyhrEpsSSXfIk RE+Q== X-Gm-Message-State: APjAAAW3K5RyOJcSL9agG8SdbsIZyI5xU3T0s6XKxfyHokHFGmuDR9ok DMWJfC4/S/c2a6H61+kclUw1RTWdKzM12wwtqDnhjA== X-Google-Smtp-Source: APXvYqyTd81Zspspz/QKDlDfJd84RRJJ0s7XfOPcsWcwt0BgvvLLiJs2ePhuG8Uf6c+sqRCaPoV0d4DYHMfLTgxIuMk= X-Received: by 2002:aed:3b79:: with SMTP id q54mr47602057qte.187.1577916082324; Wed, 01 Jan 2020 14:01:22 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Wed, 1 Jan 2020 15:01:11 -0700 Message-ID: Subject: Re: How do I completely disable suspend? To: Ryan Stone Cc: FreeBSD Hackers X-Rspamd-Queue-Id: 47p4r33s3Gz4QjP X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=ZI+a8+d0; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::82d) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-2.68 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; IP_SCORE(-2.68)[ip: (-9.32), ipnet: 2607:f8b0::/32(-2.15), asn: 15169(-1.87), country: US(-0.05)]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; URI_COUNT_ODD(1.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[d.2.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; FREEMAIL_TO(0.00)[gmail.com]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jan 2020 22:01:25 -0000 On Wed, Jan 1, 2020, 1:46 PM Ryan Stone wrote: > I have a laptop on which suspend/resume doesn't work. I don't need > suspend/resume and don't want to spend the time debugging it. > However, there are some really annoying cases that can trigger a > suspend, and I find up having to power off the laptop to get it to > boot properly again. How can I completely disable suspend? Playing > with the sysctls under hw.acpi doesn't seem to actually do anything. > You want to make the switch action do nothing. I do this so that I have a custom devd action that sleeps for 60 seconds and then suspends if the lid is still closed. I often close my lid and then go 'oh, crap I forgot to...' and I want some time to recover from that mistake that doesn't force a suspend/resume. hw.acpi.lid_switch_state: NONE and notify 10 { match "system" "ACPI"; match "subsystem" "Lid"; action "/usr/local/bin/imp-lid $notify"; }; in devd.conf for me. And while Ryan won't need it, here's imp-lid: #!/bin/sh lid-wait() { logger "Waiting a minute to suspend" sleep 60 case $(sysctl -n dev.acpi_lid.0.state) in 0) logger "suspending"; zzz ;; *) logger "never mind";; esac } case $1 in 0x00) # lid closed lid-wait & ;; 0x01) ;; # Ignore opening esac exit 0 Warner _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@freebsd.org Thu Jan 2 00:29:28 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7FC6F1E4E9F for ; Thu, 2 Jan 2020 00:29:28 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47p86v3mrJz4YHR for ; Thu, 2 Jan 2020 00:29:27 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: by mail-qk1-x741.google.com with SMTP id z76so30735054qka.2 for ; Wed, 01 Jan 2020 16:29:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=J2F3ffPcFIjcdc6QpuyTnwMlRLYYS2SLGufrwMlzOq0=; b=EFITa/fWaNWHfZXIonmtOlyQgNhDUGHMYbegby5SBgK9fByKTHeVvq9x4Vko7/yry3 b0n2EUAKP2Jws8+h33D6Jy2Wokf1FQCzXOIsh4YkBCKNHRTBalzJKdu6jr0NZiA1sMCp D3Ho6PFmTsCQzV3fvyDC4xJYbYa1xGU3j5VINhaELgldKuahPzrY5JLWpx6CWuyH3Br3 gIpcOXHIgSmf4wjKFbXTOtUwSnX6I+Aupa6Pmo/xhejYoyhzWwXCq12otoNxIDZXMlU9 jcV7q1quPZE/znOHf0SfpadGvS0HvNCq82N6t2rwFrT8L3bdPydxmfTDNsItuKwhI3p+ WaWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=J2F3ffPcFIjcdc6QpuyTnwMlRLYYS2SLGufrwMlzOq0=; b=IiCAazVN2SfIZuLgkfQ1PDZTFLz5W9AC2B8Vg1KLtSnj82uNshLCkxyV1MpIyON5TF ZEzxBu9Bkd5hJAZsiQ2avxfs4/Zm8zsotNLWo/KPU7J+Woloq8goc3t8mMyYk9FM8hBt HAs6bktN5K3JuLdGd6BNWm6WlS8Uv0iLG7AJwD+kvB1QPQYbpa4TK7WvEHU6gk5JJ7Jb wkmsNUQIlHogKD2RKhnC3Joo4fKOc6kkDRvLoOvorp7Ap0rYJctp9c2l4QRq97ZfF/5q szM3SSfI8+DdJXDrnxKRaCOJiJywuagBfkPJBDEehCqYek4imokdeUlbdUdkgTHCQtax /TQA== X-Gm-Message-State: APjAAAVpGJNA/YoN9E8X9BjPQNXcqYAPBGMpA6MH1sZSlxhb5E68GcSo qkKNERHuK+Ep3Xe2gRjrRILvkPTCgHyfDm28CmMiIQ== X-Google-Smtp-Source: APXvYqzAe0t3bHMTaPShPthh3uTQxvXNbTzaw+LoUKfgtwzPEnB3Lvex4MNiFk8IElYnjVKKAQnO68G87G9afVdifuU= X-Received: by 2002:a37:308:: with SMTP id 8mr1916427qkd.98.1577924965583; Wed, 01 Jan 2020 16:29:25 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Ryan Stone Date: Wed, 1 Jan 2020 19:29:14 -0500 Message-ID: Subject: Re: How do I completely disable suspend? To: Warner Losh Cc: FreeBSD Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 47p86v3mrJz4YHR X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=EFITa/fW; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of rysto32@gmail.com designates 2607:f8b0:4864:20::741 as permitted sender) smtp.mailfrom=rysto32@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[1.4.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; IP_SCORE(0.00)[ip: (2.29), ipnet: 2607:f8b0::/32(-2.14), asn: 15169(-1.87), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jan 2020 00:29:28 -0000 On Wed, Jan 1, 2020 at 5:01 PM Warner Losh wrote: > > > > On Wed, Jan 1, 2020, 1:46 PM Ryan Stone wrote: >> >> I have a laptop on which suspend/resume doesn't work. I don't need >> suspend/resume and don't want to spend the time debugging it. >> However, there are some really annoying cases that can trigger a >> suspend, and I find up having to power off the laptop to get it to >> boot properly again. How can I completely disable suspend? Playing >> with the sysctls under hw.acpi doesn't seem to actually do anything. > > > You want to make the switch action do nothing. I do this so that I have = a custom devd action that sleeps for 60 seconds and then suspends if the li= d is still closed. I often close my lid and then go 'oh, crap I forgot to..= .' and I want some time to recover from that mistake that doesn't force a s= uspend/resume. > > hw.acpi.lid_switch_state: NONE > > and > > notify 10 { > match "system" "ACPI"; > match "subsystem" "Lid"; > action "/usr/local/bin/imp-lid $notify"; > }; > > in devd.conf for me. > > And while Ryan won't need it, here's imp-lid: > > #!/bin/sh > lid-wait() { > logger "Waiting a minute to suspend" > sleep 60 > case $(sysctl -n dev.acpi_lid.0.state) in > 0) logger "suspending"; zzz ;; > *) logger "never mind";; > esac > } > > case $1 in > 0x00) # lid closed > lid-wait & > ;; > 0x01) ;; # Ignore opening > esac > exit 0 > > > Warner Thanks, but in my case, the biggest issue isn't closing the lid but some magic extra function button on the keyboard that something has decided should trigger a suspend. From owner-freebsd-hackers@freebsd.org Thu Jan 2 09:09:16 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0714E1F1C98 for ; Thu, 2 Jan 2020 09:09:16 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47pMfg0CQJz46Mw for ; Thu, 2 Jan 2020 09:09:14 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: by mail-lf1-f42.google.com with SMTP id n12so29483520lfe.3 for ; Thu, 02 Jan 2020 01:09:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=np1L9G/mCD7rNFFtPL9VZSqsOhK6wMSjKYyatLBZWBI=; b=RxWjdz1qRh2ck9t0Psr2p9rVGoH0/lYjMJYcPACatEG5JNgM6pALVLp2BLuNwcmv7A LEEiP+e4++zhGFGWdEjP6Nd5XbW4b30dgYGDnnriiCxRF4muNMP9qWyhQuhYBqFvDmOl mOLu5MZY8O1bt+HDQ7sdw+EL72CjW91qeJBPn2Zj+TNmvTVxdbK2IIsnIXrMR9Gcgl7Y fkMpiR94hkfpVYsm7njAzpLOz3ADrvRdB8Mk7ayljELYwDzIt93+xPDLxuD4WJRzBS7u qO1PJyFr4GpuhPwKqPtvzbASx8oute+TfwNcLAEDXsM/0CsLjlL+4NLCbeUPX4blqTfF o4wQ== X-Gm-Message-State: APjAAAWaUE3DrNVyTdCZWCyS4O9pzL5iSsfNPr6crjqdrW9+wMP/uV0c p8/xKUwRBAXpkcXacrn6XAhIp4OUp6s= X-Google-Smtp-Source: APXvYqzosNY1BIpWrA/+QUAjqbH9PcJ656ofibcTYe6/hRo6DP9RISjHnNz9FRn9uAvVaIkta+7eyw== X-Received: by 2002:ac2:5c4b:: with SMTP id s11mr45934386lfp.133.1577956153366; Thu, 02 Jan 2020 01:09:13 -0800 (PST) Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com. [209.85.208.182]) by smtp.gmail.com with ESMTPSA id k5sm22882890lfd.86.2020.01.02.01.09.13 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Jan 2020 01:09:13 -0800 (PST) Received: by mail-lj1-f182.google.com with SMTP id a13so40034691ljm.10 for ; Thu, 02 Jan 2020 01:09:13 -0800 (PST) X-Received: by 2002:a2e:84d0:: with SMTP id q16mr46086887ljh.138.1577956152874; Thu, 02 Jan 2020 01:09:12 -0800 (PST) MIME-Version: 1.0 References: <96ecfc02-04f6-7222-4582-3740c505c7e5@FreeBSD.org> <201912271129.xBRBTrqD050866@kx.truefc.org> In-Reply-To: <201912271129.xBRBTrqD050866@kx.truefc.org> From: Gleb Popov Date: Thu, 2 Jan 2020 13:08:48 +0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Scripting bsdinstall To: freebsd-hackers X-Rspamd-Queue-Id: 47pMfg0CQJz46Mw X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of 6yearold@gmail.com designates 209.85.167.42 as permitted sender) smtp.mailfrom=6yearold@gmail.com X-Spamd-Result: default: False [-3.08 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TO_DN_ALL(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[42.167.85.209.list.dnswl.org : 127.0.5.0]; IP_SCORE(-1.08)[ip: (-0.40), ipnet: 209.85.128.0/17(-3.11), asn: 15169(-1.87), country: US(-0.05)]; FORGED_SENDER(0.30)[arrowd@freebsd.org,6yearold@gmail.com]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[arrowd@freebsd.org,6yearold@gmail.com]; RCVD_TLS_ALL(0.00)[]; TO_DOM_EQ_FROM_DOM(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jan 2020 09:09:16 -0000 Continuing my quest I met another problem. In the setup script I have following line: pkg install -y openvpn python python3 It gets executed in the chroot, the installed system. During package installation I see following warnings: indexinfo: no such file or directory POST-INSTALL script failed However, when I enter the chroot shell, this binary works fine. Any ideas how to fix this? From owner-freebsd-hackers@freebsd.org Thu Jan 2 09:53:48 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AD56A1F306E for ; Thu, 2 Jan 2020 09:53:48 +0000 (UTC) (envelope-from SRS0=g09z=2X=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47pNf364kxz4BTH for ; Thu, 2 Jan 2020 09:53:47 +0000 (UTC) (envelope-from SRS0=g09z=2X=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id A2C4E28426; Thu, 2 Jan 2020 10:53:44 +0100 (CET) Received: from illbsd.quip.test (ip-62-24-92-232.net.upcbroadband.cz [62.24.92.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id E317028417; Thu, 2 Jan 2020 10:53:43 +0100 (CET) Subject: Re: How do I completely disable suspend? To: Ryan Stone , Warner Losh Cc: FreeBSD Hackers References: From: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: Date: Thu, 2 Jan 2020 10:53:43 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.3 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47pNf364kxz4BTH X-Spamd-Bar: +++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of SRS0=g09z=2X=quip.cz=000.fbsd@elsa.codelab.cz has no SPF policy when checking 94.124.105.4) smtp.mailfrom=SRS0=g09z=2X=quip.cz=000.fbsd@elsa.codelab.cz X-Spamd-Result: default: False [5.05 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_TLS_LAST(0.00)[]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[quip.cz]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.98)[0.979,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; IP_SCORE(0.87)[ip: (0.36), ipnet: 94.124.104.0/21(0.18), asn: 42000(3.72), country: CZ(0.09)]; NEURAL_SPAM_LONG(1.00)[0.998,0]; RCVD_IN_DNSWL_NONE(0.00)[4.105.124.94.list.dnswl.org : 127.0.10.0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[000.fbsd@quip.cz,SRS0=g09z=2X=quip.cz=000.fbsd@elsa.codelab.cz]; FREEMAIL_TO(0.00)[gmail.com]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:42000, ipnet:94.124.104.0/21, country:CZ]; FROM_NEQ_ENVFROM(0.00)[000.fbsd@quip.cz,SRS0=g09z=2X=quip.cz=000.fbsd@elsa.codelab.cz]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jan 2020 09:53:48 -0000 Ryan Stone wrote on 2020/01/02 01:29: [...] > Thanks, but in my case, the biggest issue isn't closing the lid but > some magic extra function button on the keyboard that something has > decided should trigger a suspend. I think some laptops can be configured in BIOS to not allow suspend. Probably in power saving option. Miroslav Lachman From owner-freebsd-hackers@freebsd.org Thu Jan 2 11:00:14 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 182E81F4360 for ; Thu, 2 Jan 2020 11:00:14 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47pQ6j51zKz4GfF; Thu, 2 Jan 2020 11:00:13 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wm1-x330.google.com with SMTP id p17so5311636wmb.0; Thu, 02 Jan 2020 03:00:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=b7LfDJ9BdrQ37uleNP6N4dSLUDQ70mInD5yoYqwYZrs=; b=k7hz7MqXEo/bpX4Ez6yAMFTCDhtmPCPbPnXjjqoNbvQFXnNcgojJhFQDqbElHIyRza zuIfuCkmglQjUOGh8vT/mLiXmJWOwnQu3hRNLpV9yke9SulL/C04y7vseQIBcTZiALLX hdE3AY/mWnkk3YGyjzoByIstOyYq1mJDqcd83z+kHx1Bh6A4gBxRoMMxf2bseG7wZ/I/ N33mw6J9P3e9/B6MdEhRLFumL6iIFtiKJygY3vOqrQyxQfXlASauC2Yech9akmvUer+0 2kCcshmxyXb+qMzoVYGVT5dFV1MAvumm2h71uQEQ37SGfk7I9ooLPmYMwXw6gUOTnbXD rJIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=b7LfDJ9BdrQ37uleNP6N4dSLUDQ70mInD5yoYqwYZrs=; b=P/zTfE+eZNWCuakG+u2RQTHz2NvvqgRq43fL0NZ5AZtyiuw3Fv1ud9Rx2erQD+3xMB BGLKhm+pqhNN3j8MT1CaB1BQyWFo4JaMbQ2XCcLXr2hU5ZuoDbzEaYlI6vfl6e8lo5AP qFOAid8q/rRwt0fRIIgsvbHo4agD7vsOLjA61mRX+vGPN/Y9z+hC4Yui7SQwEacZU+eM 91jis3r2ZsdxquHTnPGvXiNQdVjcnLRxXcB5jdv5N9vQ6jIjw/8ywGn+UCb6uzVKxufF UdNo8B64Gqw6p07HAqDqlvvHI32RS/cdy7m9+JrTs3UuWMO34EAZD34ed9/mtVb4EQl0 L7ng== X-Gm-Message-State: APjAAAX9H71sqWs1yWEezSGUDlUDjVMqmMkK9RiXtkPaiiv0Ph6Bk+f4 QybSMaDSeUMq00zu4WkjhJrLYMnY X-Google-Smtp-Source: APXvYqw9mg2p58YajHCyJJVEifCsoJqPegFMmZGUq/5PKtfXrzqSosWWoAs+FI+c/IUyIbJRQO9bqA== X-Received: by 2002:a1c:28d4:: with SMTP id o203mr13837867wmo.123.1577962811946; Thu, 02 Jan 2020 03:00:11 -0800 (PST) Received: from ernst.home (p5B0231C2.dip0.t-ipconnect.de. [91.2.49.194]) by smtp.gmail.com with ESMTPSA id p5sm56288645wrt.79.2020.01.02.03.00.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jan 2020 03:00:11 -0800 (PST) Date: Thu, 2 Jan 2020 12:00:07 +0100 From: Gary Jennejohn To: Gleb Popov Cc: freebsd-hackers Subject: Re: Scripting bsdinstall Message-ID: <20200102120007.3b83af14@ernst.home> In-Reply-To: References: <96ecfc02-04f6-7222-4582-3740c505c7e5@FreeBSD.org> <201912271129.xBRBTrqD050866@kx.truefc.org> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47pQ6j51zKz4GfF X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jan 2020 11:00:14 -0000 On Thu, 2 Jan 2020 13:08:48 +0400 Gleb Popov wrote: > Continuing my quest I met another problem. > > In the setup script I have following line: > > pkg install -y openvpn python python3 > > It gets executed in the chroot, the installed system. During package > installation I see following warnings: > > indexinfo: no such file or directory > POST-INSTALL script failed > > However, when I enter the chroot shell, this binary works fine. > > Any ideas how to fix this? > If you know exactly which binary it is then just put it into its own pkg install line with -I. This flag suppresses running PRE-/ POST-INSTALL scripts. If you don't care which of the three it is then just add -I to the line above. This information is in PKG-INSTALL(8). -- Gary Jennejohn From owner-freebsd-hackers@freebsd.org Thu Jan 2 18:07:49 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2D5941D5B47 for ; Thu, 2 Jan 2020 18:07:49 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: from puchar.net (puchar.net [194.1.144.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47pbc36059z3FMV for ; Thu, 2 Jan 2020 18:07:47 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.15.2/8.15.2) with ESMTPS id 002I7iNI096427 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 2 Jan 2020 19:07:44 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=puchar.net; s=default; t=1577988464; bh=m6wnOGCMO7tOKDpbSHQPFddsYtSCn9YA9D/0Wt7fPZQ=; h=Date:From:To:Subject; b=bxsa7zPIQXazQ9MczvaleNmoqh87l7HbP4yALhUv/gJXzpSt+bGDtuW49YjUWkamh mxYuK6XJilhLOzcK9SJeIKfESaeZQqYSOzJj8C71IDx2V/Rvhpw4MQWPiknVj5fsjj cU6lMrfS/3qZGQMDmVZkINah62RpRYK3xsIV85c0= Received: from localhost (puchar-wojtek@localhost) by puchar.net (8.15.2/8.15.2/Submit) with ESMTP id 002I7iH7096424 for ; Thu, 2 Jan 2020 19:07:44 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) Date: Thu, 2 Jan 2020 19:07:44 +0100 (CET) From: Wojciech Puchar To: freebsd-hackers@freebsd.org Subject: geli - changing keyfile Message-ID: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Rspamd-Queue-Id: 47pbc36059z3FMV X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=fail (rsa verify failed) header.d=puchar.net header.s=default header.b=bxsa7zPI; dmarc=none; spf=pass (mx1.freebsd.org: domain of wojtek@puchar.net designates 194.1.144.90 as permitted sender) smtp.mailfrom=wojtek@puchar.net X-Spamd-Result: default: False [-4.49 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_REJECT(1.00)[puchar.net:s=default]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; DMARC_NA(0.00)[puchar.net]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[puchar.net:-]; RCVD_IN_DNSWL_NONE(0.00)[90.144.1.194.list.dnswl.org : 127.0.10.0]; IP_SCORE(-3.19)[ip: (-8.44), ipnet: 194.1.144.0/24(-4.22), asn: 43476(-3.38), country: PL(0.07)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:43476, ipnet:194.1.144.0/24, country:PL]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jan 2020 18:07:49 -0000 i probably cannot properly read manuals but still not sure how to do that. i have geli encrypted volume with keyfile only - no password created by geli init -s 4096 -P -K now i want to change the key file to . still no password. how to do this? From owner-freebsd-hackers@freebsd.org Thu Jan 2 20:40:06 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 843A91D9E12 for ; Thu, 2 Jan 2020 20:40:06 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47pfzn1bCjz3Q49 for ; Thu, 2 Jan 2020 20:40:04 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: by mail-lj1-f175.google.com with SMTP id w1so19957424ljh.5 for ; Thu, 02 Jan 2020 12:40:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=YTcem6z+Z/9bH0xs4H1jJnudIcD8nX9JaY7qHDriT3o=; b=LWS0QGp5RVAX/BValftMrRSTcGQEzecsSixKolbjzewtVh3PPjp7EHyw1LA09ZXxBk 06CJ+ifN61A/xpacuiDnP8SwsF9/ojzmIcx8PkaWQtQEv3W+RGh9DylTImmq3h8HNO/N ITFB+ZwJrorAtwyMpccw9AOkYp2OdU3lCXUhhi93G4HcLaGRL7o/f7yZSxx8iyVRSr3s mhkIqXoAHEuAx+bIt3MknMB8TN9+9/4QZj9M6gZyxlBL0sbhGmQ3T2kNOPFvjogKtK9S c4T+fFl4OCCHepUQUy6MdJsF1+uuj5ncY0mDOB+WRE7xg5smBghNg/juvQA6eP43W3RV RdVg== X-Gm-Message-State: APjAAAWc7H6c2IYPxiCFzeAROuimv2aL8VPxjMjH/Jv9E3/vutL1btEI fgbfmjlOIgTCZa1W+vy4E0BBR7WEeO8= X-Google-Smtp-Source: APXvYqyPaecRXbUGTdNmKNZi9lps6W0KZoqfiojubKto+xYzsYqbf6TlgzlDRv6C6L/c7ya52DZJ2Q== X-Received: by 2002:a2e:9b03:: with SMTP id u3mr38991306lji.87.1577997602956; Thu, 02 Jan 2020 12:40:02 -0800 (PST) Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com. [209.85.208.174]) by smtp.gmail.com with ESMTPSA id t9sm23575180lfl.51.2020.01.02.12.40.02 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Jan 2020 12:40:02 -0800 (PST) Received: by mail-lj1-f174.google.com with SMTP id l2so41920337lja.6 for ; Thu, 02 Jan 2020 12:40:02 -0800 (PST) X-Received: by 2002:a2e:84d0:: with SMTP id q16mr47592821ljh.138.1577997601542; Thu, 02 Jan 2020 12:40:01 -0800 (PST) MIME-Version: 1.0 References: <96ecfc02-04f6-7222-4582-3740c505c7e5@FreeBSD.org> <201912271129.xBRBTrqD050866@kx.truefc.org> In-Reply-To: From: Gleb Popov Date: Fri, 3 Jan 2020 00:39:36 +0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Scripting bsdinstall To: freebsd-hackers X-Rspamd-Queue-Id: 47pfzn1bCjz3Q49 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of 6yearold@gmail.com designates 209.85.208.175 as permitted sender) smtp.mailfrom=6yearold@gmail.com X-Spamd-Result: default: False [-3.10 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TO_DN_ALL(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[175.208.85.209.list.dnswl.org : 127.0.5.0]; IP_SCORE(-1.10)[ip: (-0.45), ipnet: 209.85.128.0/17(-3.11), asn: 15169(-1.87), country: US(-0.05)]; FORGED_SENDER(0.30)[arrowd@freebsd.org,6yearold@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[175.208.85.209.rep.mailspike.net : 127.0.0.17]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[arrowd@freebsd.org,6yearold@gmail.com]; RCVD_TLS_ALL(0.00)[]; TO_DOM_EQ_FROM_DOM(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jan 2020 20:40:06 -0000 On Thu, Jan 2, 2020 at 1:08 PM Gleb Popov wrote: > Continuing my quest I met another problem. > > In the setup script I have following line: > > pkg install -y openvpn python python3 > > It gets executed in the chroot, the installed system. During package > installation I see following warnings: > > indexinfo: no such file or directory > POST-INSTALL script failed > > However, when I enter the chroot shell, this binary works fine. > > Any ideas how to fix this? > Figured this out. The command should be env PATH=$PATH:/usr/local/bin pkg install ... From owner-freebsd-hackers@freebsd.org Thu Jan 2 22:43:39 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6771E1DD728 for ; Thu, 2 Jan 2020 22:43:39 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47pjkL2XPmz44Tq for ; Thu, 2 Jan 2020 22:43:38 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: by mail-wm1-x32a.google.com with SMTP id 20so7062467wmj.4 for ; Thu, 02 Jan 2020 14:43:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Jdfl/upuIL8y0/kzeZ6OIj42BpfRedK4IpGwjHIb3gk=; b=slZPMKJ8QEelOotI+0Z/6QuZAtiTzJ4BZM4tcFkkGVcx2McRj0IY2G5c6EX9ZJ/WsD CDqxQRzKZcjDNoFXTSnObUyj2wqAIE4IziZFDk61vcH+609kWqKHikGuPnetMPO3ReoH gOIAXhXs30A5Mt4xhKT8H5xIhVGfgQcj7XQ1a86aYWnYPl9sFtjk/RDMgnViXdKnMFtv 3rSvzS3fIl4RK8ulCVN9/YSA0sRrF+Q7UcBV3cyVFw5583yLXlIlsXFECu8pwPmcLo7x e3pciZSPaXcoK2ouYETALumj6hdh8xx3Hqs5/OllxqUf8JcpJt39lmP6r0dPWjg2P7nX oJRw== X-Gm-Message-State: APjAAAXPB20bllcatOhiXLHuA1ym7eqymhZtvKbVXX6bIbrfVEn5d0rJ tlN8oVnasnQAqbFp34aAU1Lc1LI3 X-Google-Smtp-Source: APXvYqxuHKC3y92aDhZOVA9Uf9sIVUBkE9u7D5mJ9zu5AMzTcYRMb7OaH2kyFIDw6l77XF2hQQURUg== X-Received: by 2002:a05:600c:d5:: with SMTP id u21mr15569504wmm.85.1578005016151; Thu, 02 Jan 2020 14:43:36 -0800 (PST) Received: from gumby.homeunix.com ([2.221.16.6]) by smtp.gmail.com with ESMTPSA id z187sm9903060wme.16.2020.01.02.14.43.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jan 2020 14:43:35 -0800 (PST) Date: Thu, 2 Jan 2020 22:43:32 +0000 From: RW To: freebsd-hackers@freebsd.org Subject: Re: geli - changing keyfile Message-ID: <20200102224332.50eabafb@gumby.homeunix.com> In-Reply-To: References: X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47pjkL2XPmz44Tq X-Spamd-Bar: -- X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[googlemail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[googlemail.com:+]; DMARC_POLICY_ALLOW(-0.50)[googlemail.com,quarantine]; RECEIVED_SPAMHAUS_PBL(0.00)[6.16.221.2.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[googlemail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; DWL_DNSWL_NONE(0.00)[googlemail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[googlemail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(0.00)[ip: (-9.47), ipnet: 2a00:1450::/32(-2.63), asn: 15169(-1.87), country: US(-0.05)]; RCVD_IN_DNSWL_NONE(0.00)[a.2.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jan 2020 22:43:39 -0000 On Thu, 2 Jan 2020 19:07:44 +0100 (CET) Wojciech Puchar wrote: > i probably cannot properly read manuals but still not sure how to do > that. > > i have geli encrypted volume with keyfile only - no password > created by geli init -s 4096 -P -K > > now i want to change the key file to . still no > password. I've never had cause to do this, but it would be done with geli setkey. Note that if an attacker has a copy of either the geli metadata sector or a geli metadata back-up file, the old key-file can still be used to access your data. From owner-freebsd-hackers@freebsd.org Thu Jan 2 23:37:31 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 923901DF32E for ; Thu, 2 Jan 2020 23:37:31 +0000 (UTC) (envelope-from theron.tarigo@gmail.com) Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47pkwV5KSqz48yh for ; Thu, 2 Jan 2020 23:37:30 +0000 (UTC) (envelope-from theron.tarigo@gmail.com) Received: by mail-pg1-x535.google.com with SMTP id x7so22603679pgl.11 for ; Thu, 02 Jan 2020 15:37:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=X909/S63MfkULppsdLplmpJy56qCEH/BqrjAEqeiX6M=; b=uE3mLvAzpckBth8oOOKTav3y65jJJ2ErRb3P5hvSOtD0ebSp6D5U7bnmuJKfk7Cxc0 /rqoxaWcT3U0H4GLCnacoei+b1pftCZGSCqsrTaeYQGA1If7qDAtPUqImPGxt4/GCWcy RrPfazDrp6onWNgg4IaM0YJZb/hUH0o4q7OEKMt8ZkekyGlM6UWMIxQPIPjZ3e6IGTR1 6xEavZo1Q0el1mh5wQj3iIijJtCjza71FrR9jdHfl5NO7suxIaoWz6L04oH2Ak0meHzr CrTSFD3qlYC1hTwJ2FnnFtnGuKhC2WbSxDC/FVx1AoHB7qYTe/0vN5bIJqbdsoPxhOM2 UNDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=X909/S63MfkULppsdLplmpJy56qCEH/BqrjAEqeiX6M=; b=PgMih2+zQGa6AJF1kXDOBLD/zs3r4sjE3RZ4QgLIKjWgb0ThZDxN5CCojeVGeMJcbq aGhHRY/hx2x1uByAOd6rHt6K2ruyIjIDxQuwjI3CGv27tX2ls95VqN3DrBThslIOm8Rk a/rAiPiBFFYGnfaWLpqdjFN+Frd6kUJ6IQGPzq+Ig3ZC/PAFDMaKiTxaag+kBPWRnebG zpOfggKICax/EXWpDgybU7sN7lNPsmJdCcU+RhN4H6r0S6W5m+B2GluaDh67gUjBDE8X yx8kFPzpLbboiXB6c58NTUT2MSQQm7hAXmOidG47V31Q/7aml4mwsZng9Ntg5MOWYWKx f2GA== X-Gm-Message-State: APjAAAWd3FuZ0zzqiButVkOc8hyw3p9zu1QjuRn3ws0KhZFLWoXNt7JG HH2Wv5zwI0sYRoUtMRGZXsH4Fqu6 X-Google-Smtp-Source: APXvYqx/01+J0qG9veX5aNSkNNhpTKuO0PltpUFdTnVl5EBFtUPlbI4PI9O+pCtr13K/+G3KK9BnrA== X-Received: by 2002:a63:7944:: with SMTP id u65mr78782230pgc.298.1578008248284; Thu, 02 Jan 2020 15:37:28 -0800 (PST) Received: from [192.168.1.36] (c-76-126-107-221.hsd1.ca.comcast.net. [76.126.107.221]) by smtp.gmail.com with ESMTPSA id 207sm66987816pfu.88.2020.01.02.15.37.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Jan 2020 15:37:27 -0800 (PST) Sender: Theron Tarigo Subject: Re: How do I completely disable suspend? To: Ryan Stone , Warner Losh Cc: FreeBSD Hackers References: From: Theron Message-ID: <29e2145e-ac70-8074-1b02-748bab4b05e0@gmail.com> Date: Thu, 2 Jan 2020 18:37:26 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: 47pkwV5KSqz48yh X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=uE3mLvAz; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of therontarigo@gmail.com designates 2607:f8b0:4864:20::535 as permitted sender) smtp.mailfrom=therontarigo@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[221.107.126.76.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[5.3.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (-9.21), ipnet: 2607:f8b0::/32(-2.14), asn: 15169(-1.87), country: US(-0.05)]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jan 2020 23:37:31 -0000 On 2020-01-01 19:29, Ryan Stone wrote: > Thanks, but in my case, the biggest issue isn't closing the lid but > some magic extra function button on the keyboard that something has > decided should trigger a suspend. In addition to hw.acpi.lid_switch_state there is hw.acpi.sleep_button_state, is that the sysctl which you say has no effect? From owner-freebsd-hackers@freebsd.org Thu Jan 2 23:47:48 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6F11C1DF975 for ; Thu, 2 Jan 2020 23:47:48 +0000 (UTC) (envelope-from crees@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 47pl8N2Qhyz49Vf for ; Thu, 2 Jan 2020 23:47:48 +0000 (UTC) (envelope-from crees@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 533061DF973; Thu, 2 Jan 2020 23:47:48 +0000 (UTC) Delivered-To: hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 52EF41DF972 for ; Thu, 2 Jan 2020 23:47:48 +0000 (UTC) (envelope-from crees@freebsd.org) Received: from mail263c50.megamailservers.eu (mail1421c50.megamailservers.eu [91.136.14.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47pl8M5P8Lz49Vc; Thu, 2 Jan 2020 23:47:47 +0000 (UTC) (envelope-from crees@freebsd.org) X-Authenticated-User: crees@uwclub.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1578008865; bh=e8nNrypZyGtFKYsfAtCWg01RKg4PI6yxtbRSY5c5E18=; h=Date:Subject:To:From:From; b=lG+NpUQ767mno0cerdpZFSxbTwtvtJBRwIIKzX72m5ORUS5gCInIsbsvqXDExbZSW YaHoWSo11oDEqJtjwTTcK8H1pypo2jfvby8KLfPXaFtwfq/Y0cQXZF9i6BG+0ILVvb HD15NohcNzGuI/HBvg51uIivXQZmt8xOQ92ywUwM= Feedback-ID: crees@freebsd.o Received: from pegasus.bayofrum.net (host-92-16-36-61.as13285.net [92.16.36.61]) (authenticated bits=0) by mail263c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 002NlhKS025404; Thu, 2 Jan 2020 23:47:45 +0000 Received: from R.bayofrum.net (R.bayofrum.net [192.168.1.72]) by pegasus.bayofrum.net (Postfix) with ESMTPSA id AA6153A15; Thu, 2 Jan 2020 23:47:41 +0000 (GMT) Date: Thu, 02 Jan 2020 23:47:42 +0000 User-Agent: K-9 Mail for Android MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Fixing audio/oss to use callout instead of timeouts To: hackers@FreeBSD.org, jhb@freebsd.org From: Chris Rees Message-ID: X-bayofrum-MailScanner-Information: Please contact the ISP for more information X-bayofrum-MailScanner-ID: AA6153A15.A8732 X-bayofrum-MailScanner: Found to be clean X-bayofrum-MailScanner-From: crees@freebsd.org X-Spam-Status: No X-CTCH-RefID: str=0001.0A0B020A.5E0E8121.0010, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=II989TnG c=1 sm=1 tr=0 a=ExehvxHEHCe6C2o3spqpZQ==:117 a=ExehvxHEHCe6C2o3spqpZQ==:17 a=IkcTkHD0fZMA:10 a=Jdjhy38mL1oA:10 a=ZB5LerlCAAAA:8 a=6I5d2MoRAAAA:8 a=s7OjfW73dhMWR-UkQPkA:9 a=QEXdDO2ut3YA:10 a=YKPTzOroS2oaEK2QgPcx:22 a=IjZwj45LgO3ly-622nXo:22 a=Z5ABNNGmrOfJ6cZ5bIyy:22 a=bWyr8ysk75zN3GCy5bjg:22 X-Rspamd-Queue-Id: 47pl8M5P8Lz49Vc X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-1.94 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.95)[-0.953,0]; NEURAL_HAM_LONG(-0.99)[-0.989,0]; ASN(0.00)[asn:9115, ipnet:91.136.0.0/17, country:GB] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jan 2020 23:47:48 -0000 Hi Hackers (and perhaps John, as the author of r355732, sorry for the dupli= cate), I've attempted to use the callout functions instead of the now removed time= out functions for audio/oss, and I *think* that the code already stores and= retrieves the list of handlers, so it should be a simple swap out. I've made this modification and run the module with mpg123 for a while and = it hasn't killed my laptop, but I'd just like to check that I have the prin= ciple correct and haven't missed anything obvious. Please would you let me know if there is anything else I should have done? https://www.bayofrum.net/cgi-bin/fossil/oss/vinfo/ad269d7cbc02bf38?diff=3D2 (This is the change I've made to kernel/OS/FreeBSD/os_freebsd.c in oss) https://www.bayofrum.net/cgi-bin/fossil/oss/vinfo/ad269d7cbc02bf38?diff=3D2= &dc=3D9999 (This is the whole file with changes highlighted.) Thanks! Chris https://reviews.freebsd.org/rS355732 --=20 This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From owner-freebsd-hackers@freebsd.org Fri Jan 3 18:00:36 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 18DEB1F6EB6 for ; Fri, 3 Jan 2020 18:00:36 +0000 (UTC) (envelope-from crees@freebsd.org) Received: from mail92c50.megamailservers.eu (mail170c50.megamailservers.eu [91.136.10.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47qCPH3c5Gz475t; Fri, 3 Jan 2020 18:00:34 +0000 (UTC) (envelope-from crees@freebsd.org) X-Authenticated-User: crees@uwclub.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1578074431; bh=OBk6zwPCPKeiTvcRTblbCrC4w33HZyD/0yk0slACHMA=; h=Subject:To:References:From:Date:In-Reply-To:From; b=RnKVAOdDSRe4zlZxOIGEfIMiguAKiHptv2AZAvSic9GZXi7H2iGmISmSouYii//Dn N4NRyWeJB93I2z2lS+dWnOrIP6d2gm3UzNv3KvO+2pn1RkKBYYRXgzFnqTHXTOCzM6 L4UT2HE0iAnmAt93QruBLrJMzSWaDiJvXUF9rln4= Feedback-ID: crees@freebsd.o Received: from pegasus.bayofrum.net (host-92-16-36-61.as13285.net [92.16.36.61]) (authenticated bits=0) by mail92c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 003I0TAb009614; Fri, 3 Jan 2020 18:00:31 +0000 Received: from [192.168.1.149] (unknown [192.168.1.149]) by pegasus.bayofrum.net (Postfix) with ESMTPSA id 5BB17715C; Fri, 3 Jan 2020 18:00:26 +0000 (GMT) Subject: Re: [PATCH] Fix "Last database update: 2020-12-30 15:16:53 UTC" problem To: freebsd-hackers@freebsd.org, wosch@FreeBSD.org, yeking@red54.com References: From: Chris Rees Message-ID: Date: Fri, 3 Jan 2020 18:00:25 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-bayofrum-MailScanner-Information: Please contact the ISP for more information X-bayofrum-MailScanner-ID: 5BB17715C.A9813 X-bayofrum-MailScanner: Found to be clean X-bayofrum-MailScanner-From: crees@freebsd.org X-Spam-Status: No X-CTCH-RefID: str=0001.0A0B0201.5E0F813F.0060, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=RJbN4Lq+ c=1 sm=1 tr=0 a=ExehvxHEHCe6C2o3spqpZQ==:117 a=ExehvxHEHCe6C2o3spqpZQ==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=IkcTkHD0fZMA:10 a=iObKdSDJtaoA:10 a=Jdjhy38mL1oA:10 a=Kdlv8izeAAAA:20 a=6I5d2MoRAAAA:8 a=B7azeRmrAAAA:20 a=7cyCI0ON9tTAlbEFJvwA:9 a=QEXdDO2ut3YA:10 a=IjZwj45LgO3ly-622nXo:22 a=Z5ABNNGmrOfJ6cZ5bIyy:22 a=UDnyf2zBuKT2w-IlGP_r:22 X-Rspamd-Queue-Id: 47qCPH3c5Gz475t X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-1.94 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.95)[-0.952,0]; ASN(0.00)[asn:9115, ipnet:91.136.0.0/17, country:GB]; NEURAL_HAM_LONG(-0.98)[-0.984,0] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jan 2020 18:00:36 -0000 Hey, On 2020-01-01 08:10, 谢致邦 (XIE Zhibang) wrote: > Forward to crees and wosch. > > https://web.archive.org/web/20191230210421/https://www.freebsd.org/cgi/ports.cgi?query=freebsd-doc-all > https://web.archive.org/web/20191231054123/https://www.freebsd.org/cgi/ports.cgi?query=freebsd-doc-all > > Index: doc/head/en_US.ISO8859-1/htdocs/cgi/ports.cgi > =================================================================== > --- doc/head/en_US.ISO8859-1/htdocs/cgi/ports.cgi (revision 53721) > +++ doc/head/en_US.ISO8859-1/htdocs/cgi/ports.cgi (working copy) > @@ -166,7 +166,7 @@ > > $modtime = ( stat($file) )[9]; > if ( defined($modtime) && $modtime > 0 ) { > - $modtimestr = strftime( "%G-%m-%d %H:%M:%S UTC", gmtime($modtime) ); > + $modtimestr = strftime( "%Y-%m-%d %H:%M:%S UTC", gmtime($modtime) ); > } > else { > $modtimestr = "Unknown"; Committed.  Thanks, nice catch! Chris -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From owner-freebsd-hackers@freebsd.org Sat Jan 4 02:46:23 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1DC631DD329 for ; Sat, 4 Jan 2020 02:46:23 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47qR3x5ncNz4g6Y for ; Sat, 4 Jan 2020 02:46:21 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x82c.google.com with SMTP id d18so35549462qtj.10 for ; Fri, 03 Jan 2020 18:46:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SsOynxgT8RY8f4aGNfyMAWLG5y78QIGVtxLrVySNFFo=; b=pHleERa3tUIccDPCiGkVY6Ka3NXYKuKekN8U5TNa/H6AO9odQJDhTbVCA1Hjd22PFo 39UrwALaWQlVyIsd+5IPIKheboheAub+d7a57lzkEDD3LrpsM9ixr8LCxDGdJ4BMU1Gr eUZQBntlo7YyE/dx+6nHWMcwMBy29zfZvkAz1r9l13idPd5Dtd5JJlv8negq64coj5qR pW8icvTxnu8RH6O1t7zgVhC2SoR8RFK7cpOe/aM7Suhpx+7ytXTbSEW7ISVuiDjZnA46 SeWcHgieI5bDsCwsAj2k2gz1wk2pTWeh9U8H9YCNKmhKg9usVooMUUpNvSJGbNx/EDXA FdQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SsOynxgT8RY8f4aGNfyMAWLG5y78QIGVtxLrVySNFFo=; b=e6PGbsjk8EtrEin65kmznQebOEpk0DzD+MYTZ5qGvef3GiWm8/KNYfpUlgqsDinP0u 8AmvgVl7KNoneZNF0mCn/N3VGoq/DL6bQnhvmAqKvHwLp3vB2GLBa8+5C9Gp+vMYVx1F h0wa6Ncdqz2x61m61psph5Wk16sEMi56Vs3o1lc2nN+udztB4KUK1x4APEaRoaMnxIfK OlsjqtNsVxJn3LYkX/9yReVhks1SnR6spGiOEoQxyeLK9Z2iLM3SCXrIiok8HoqHn0xi eeMOolOngffTdrpvhl7XAgM9WV+Kj5rOLaKjUT4SEWtlK2z5tKTQkcj1lVwPDnAqKmC/ nLfw== X-Gm-Message-State: APjAAAXxe0NRo+aXrVvXbr87uiP6Xs6WjZxbJHFDkB3LD9YW/rjx8Qp4 fxHFyuU/mNo4UxfYHHDvKa5+i8Vwq+Xmgqxhw5hVjw== X-Google-Smtp-Source: APXvYqygJN2k1ue35rfvZPARjR8LXJ5CK7Z9qUBQZ22K1SEtivqYGzwTNMPjwTsSoXWYZlVNsnhoftFkj4C8S7bnwuI= X-Received: by 2002:aed:3b79:: with SMTP id q54mr56374185qte.187.1578105980579; Fri, 03 Jan 2020 18:46:20 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Fri, 3 Jan 2020 19:46:09 -0700 Message-ID: Subject: Re: How do I completely disable suspend? To: Ryan Stone Cc: FreeBSD Hackers X-Rspamd-Queue-Id: 47qR3x5ncNz4g6Y X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=pHleERa3; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::82c) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-3.65 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; IP_SCORE(-2.65)[ip: (-9.22), ipnet: 2607:f8b0::/32(-2.14), asn: 15169(-1.86), country: US(-0.05)]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[c.2.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; FREEMAIL_TO(0.00)[gmail.com]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jan 2020 02:46:23 -0000 On Wed, Jan 1, 2020 at 5:29 PM Ryan Stone wrote: > On Wed, Jan 1, 2020 at 5:01 PM Warner Losh wrote: > > > > > > > > On Wed, Jan 1, 2020, 1:46 PM Ryan Stone wrote: > >> > >> I have a laptop on which suspend/resume doesn't work. I don't need > >> suspend/resume and don't want to spend the time debugging it. > >> However, there are some really annoying cases that can trigger a > >> suspend, and I find up having to power off the laptop to get it to > >> boot properly again. How can I completely disable suspend? Playing > >> with the sysctls under hw.acpi doesn't seem to actually do anything. > > > > > > You want to make the switch action do nothing. I do this so that I have > a custom devd action that sleeps for 60 seconds and then suspends if the > lid is still closed. I often close my lid and then go 'oh, crap I forgot > to...' and I want some time to recover from that mistake that doesn't force > a suspend/resume. > > > > hw.acpi.lid_switch_state: NONE > > > > and > > > > notify 10 { > > match "system" "ACPI"; > > match "subsystem" "Lid"; > > action "/usr/local/bin/imp-lid $notify"; > > }; > > > > in devd.conf for me. > > > > And while Ryan won't need it, here's imp-lid: > > > > #!/bin/sh > > lid-wait() { > > logger "Waiting a minute to suspend" > > sleep 60 > > case $(sysctl -n dev.acpi_lid.0.state) in > > 0) logger "suspending"; zzz ;; > > *) logger "never mind";; > > esac > > } > > > > case $1 in > > 0x00) # lid closed > > lid-wait & > > ;; > > 0x01) ;; # Ignore opening > > esac > > exit 0 > > > > > > Warner > > Thanks, but in my case, the biggest issue isn't closing the lid but > some magic extra function button on the keyboard that something has > decided should trigger a suspend. > Oh, in that case you can use kbdcontrol to remap those keys. kbdcontrol -d dumps the keys and you are looking for 104 slock saver slock saver susp nop susp nop O 'susp' is the bit that does keyboard suspend just make them all nop. -l file I think loads the file, but the man page has all the details. Warner From owner-freebsd-hackers@freebsd.org Sat Jan 4 08:21:17 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 933A21F3BD7 for ; Sat, 4 Jan 2020 08:21:17 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47qZVN4wY0z3RLt for ; Sat, 4 Jan 2020 08:21:16 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wm1-x344.google.com with SMTP id p9so10193013wmc.2 for ; Sat, 04 Jan 2020 00:21:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=iIm3y8MHxA45ADWbvQXZukromioHM226/j3T9t/bRbw=; b=DvG3kydpDGx2piNfdr81MvuRaf0uFiyWaPBqWxXdpu/+rvdcnmD1HvBzG51CaDTDSn +NLIoGi31WGTozDqIedFZKftbCosuRE+gCfcEIa1ASwTm/qG5B0zUes4DIwjlebd17Xa rKjT3zQMwL+RP6pSIPFkj2QV3byxkeg7Ha8qN1YdB8s3LmjET0MXbwu72z1xafa3XXCw fJ0+i6MWN0gTpfGrI6P1iC817HxJ1gf7t4Jw7bWc8L7e5s6CFijnn38ljgNYHPFakvB/ TBGTS+yae+/PCtstxCKwoKEk6aJb05Etmtnw2AYlADqkI7uRVPbB1eSPtA8etCembC3t 2Img== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=iIm3y8MHxA45ADWbvQXZukromioHM226/j3T9t/bRbw=; b=ce3hPdXy5WTegx512/kFwsOYG6Jct6mcW8+5cvdcOWmNfsgvIwnzaje2fHb9zFwAc5 b1JEm0L1xHBqLJ/OidBMyOEV+bKN3byhaFoQafzuSyJljguy1EDVbmFebVyvyzh5x4+N 5pHQkVJFI3/FvtIonUAvFpjLHGpLOSou5m0n0HpmID70cnGI7h9KCjx+SrbFjP77TXXH uXZNcogcq6G4Kng1Vy3Tntlg8gS44okOhzPc768CG8IMurAndIfZTLgFOyedVf8zJxtD vc0vCOQBqSL+v7YfEU+wgSqPqw5xWuuiHYr6++sVCbsSKi/BpwbcRsiQZ0ZYdOw0nj8p NGLQ== X-Gm-Message-State: APjAAAVfVBx14HkBUbG/Nd54Ae3ROaork7J10+6fRNGzq0sN2fGT4j94 z242CEUbhCtknC9RnZDYkc214BT2 X-Google-Smtp-Source: APXvYqy/8wbOW0NCbDUwxb8Vx3W6gBhk40cL2ZMz0vdWEDV06C3cdKRWJNjjLBYZqC4qp9D0Bcq87A== X-Received: by 2002:a7b:cf21:: with SMTP id m1mr23296739wmg.170.1578126074888; Sat, 04 Jan 2020 00:21:14 -0800 (PST) Received: from ernst.home (p5B3BEAC3.dip0.t-ipconnect.de. [91.59.234.195]) by smtp.gmail.com with ESMTPSA id y139sm15879594wmd.24.2020.01.04.00.21.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jan 2020 00:21:14 -0800 (PST) Date: Sat, 4 Jan 2020 09:21:12 +0100 From: Gary Jennejohn To: FreeBSD Hackers Subject: Re: How do I completely disable suspend? Message-ID: <20200104092112.17fea0fc@ernst.home> In-Reply-To: References: Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47qZVN4wY0z3RLt X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=DvG3kydp; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of gljennjohn@gmail.com designates 2a00:1450:4864:20::344 as permitted sender) smtp.mailfrom=gljennjohn@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[gljennjohn@gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; RECEIVED_SPAMHAUS_PBL(0.00)[195.234.59.91.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; FREEMAIL_REPLYTO(0.00)[gmail.com]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(0.00)[ip: (2.44), ipnet: 2a00:1450::/32(-2.63), asn: 15169(-1.86), country: US(-0.05)]; RCVD_IN_DNSWL_NONE(0.00)[4.4.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jan 2020 08:21:17 -0000 On Fri, 3 Jan 2020 19:46:09 -0700 Warner Losh wrote: > On Wed, Jan 1, 2020 at 5:29 PM Ryan Stone wrote: > > > On Wed, Jan 1, 2020 at 5:01 PM Warner Losh wrote: > > > > > > > > > > > > On Wed, Jan 1, 2020, 1:46 PM Ryan Stone wrote: > > >> > > >> I have a laptop on which suspend/resume doesn't work. I don't need > > >> suspend/resume and don't want to spend the time debugging it. > > >> However, there are some really annoying cases that can trigger a > > >> suspend, and I find up having to power off the laptop to get it to > > >> boot properly again. How can I completely disable suspend? Playing > > >> with the sysctls under hw.acpi doesn't seem to actually do anything. > > > > > > > > > You want to make the switch action do nothing. I do this so that I have > > a custom devd action that sleeps for 60 seconds and then suspends if the > > lid is still closed. I often close my lid and then go 'oh, crap I forgot > > to...' and I want some time to recover from that mistake that doesn't force > > a suspend/resume. > > > > > > hw.acpi.lid_switch_state: NONE > > > > > > and > > > > > > notify 10 { > > > match "system" "ACPI"; > > > match "subsystem" "Lid"; > > > action "/usr/local/bin/imp-lid $notify"; > > > }; > > > > > > in devd.conf for me. > > > > > > And while Ryan won't need it, here's imp-lid: > > > > > > #!/bin/sh > > > lid-wait() { > > > logger "Waiting a minute to suspend" > > > sleep 60 > > > case $(sysctl -n dev.acpi_lid.0.state) in > > > 0) logger "suspending"; zzz ;; > > > *) logger "never mind";; > > > esac > > > } > > > > > > case $1 in > > > 0x00) # lid closed > > > lid-wait & > > > ;; > > > 0x01) ;; # Ignore opening > > > esac > > > exit 0 > > > > > > > > > Warner > > > > Thanks, but in my case, the biggest issue isn't closing the lid but > > some magic extra function button on the keyboard that something has > > decided should trigger a suspend. > > > > Oh, in that case you can use kbdcontrol to remap those keys. > > kbdcontrol -d dumps the keys and you are looking for > 104 slock saver slock saver susp nop susp nop O > 'susp' is the bit that does keyboard suspend just make them all nop. -l > file I think loads the file, but the man page has all the details. > Note that kbdcontrol -d only appears to work in a console. I tried to run it under Xorg and got errors, probably because Xorg had grabbed the keyboard. In VT1 it worked. This problem is sort of addressed in the man page, which I of course didn't read until later. -- Gary Jennejohn From owner-freebsd-hackers@freebsd.org Sat Jan 4 09:07:50 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 596A81D06A1 for ; Sat, 4 Jan 2020 09:07:50 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47qbX46Ytmz42Fg for ; Sat, 4 Jan 2020 09:07:48 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [188.174.60.254] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1infPN-0003Wq-WE for freebsd-hackers@freebsd.org; Sat, 04 Jan 2020 10:07:46 +0100 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id 00497iIC003173 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Sat, 4 Jan 2020 10:07:44 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id 00497h4f003172 for freebsd-hackers@freebsd.org; Sat, 4 Jan 2020 10:07:43 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Sat, 4 Jan 2020 10:07:43 +0100 From: Matthias Apitz To: freebsd-hackers@freebsd.org Subject: getting the name of a C-function in the C-code based on a pointer to the function Message-ID: <20200104090743.GA3017@c720-r342378> Reply-To: Matthias Apitz Mail-Followup-To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="J/dobhs11T7y2rNN" Content-Disposition: inline X-Operating-System: FreeBSD 13.0-CURRENT r342378 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.11.1 (2018-12-01) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 188.174.60.254 X-Rspamd-Queue-Id: 47qbX46Ytmz42Fg X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of guru@unixarea.de has no SPF policy when checking 178.254.4.101) smtp.mailfrom=guru@unixarea.de X-Spamd-Result: default: False [-3.88 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[guru@unixarea.de]; HAS_XOIP(0.00)[]; HAS_XAW(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; SIGNED_PGP(-2.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[254.60.174.188.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; RCVD_IN_DNSWL_LOW(-0.10)[101.4.254.178.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:42730, ipnet:178.254.0.0/19, country:DE]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[unixarea.de]; R_SPF_NA(0.00)[]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[]; IP_SCORE(-1.08)[ip: (-8.03), ipnet: 178.254.0.0/19(1.41), asn: 42730(1.25), country: DE(-0.02)] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jan 2020 09:07:50 -0000 --J/dobhs11T7y2rNN Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello hackers, What I'm locking for is how to get the name of a function, into a string po= inter for logging purpose as printf("function called: %s\n", p); based on a pointer to the function because in our realworld code it looks l= ike this: int fun(*module(), ...) { char *p =3D .... printf("calling module %s\n", p); (*module)(int i); } i.e. the function fun() gets only a pointer to a function to be called (one of around 400 different functions of a shared lib)=20 Any (portable idea)? Thanks matthias --=20 Matthias Apitz, =E2=9C=89 guru@unixarea.de, http://www.unixarea.de/ +49-176= -38902045 Public GnuPG key: http://www.unixarea.de/key.pub "Glaube wenig, hinterfrage alles, denke selbst: Wie man Manipulationen durc= hschaut" "Believe little, scrutinise all, think by your own: How see through manipul= ations" ISBN-10: 386489218X --J/dobhs11T7y2rNN Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXmn7rBYYViyzy/vBR8z35Hb+nREFAl4QVdwACgkQR8z35Hb+ nREjeA//VHh2BUuyGQqaueFkBwab6HreLD0d8zuCv07j9Dsf3R9SKGcKV76+rWcx 5iuR9xdVhqiBttLsPuOBSLZVEo8rcFFsfRjHhZVLAqycdIrP2NVmdJaSVijx0xBp xKa02uVq/wp2ChKY6xKJjNjpGuoSS6l71qPJv6IieRftwPzXdWRVFU8sXqSObUru 5HSx5I9oKJAzXIgwWtSJO1biyrrcJrRg8pPPG64+pqZQ5DdRjrGhxBlHz9UUf1Ek yxlBi9dcC+vpsW/429hZdPdtg4DuGh+kpBZ6ILQJPlaflLHbVSlYvGleA9qwbA7E MMDzmonreeqeab+8dgTG895jzjgdR8iq0gaxcfz7Wf6UKKG1MK6f1kRmx/tdIf5y IFQ7LuTaoCuEiN64S8mSDmKNKmVEgPplios3feVfKIIyD6wDbEVwNQqm5sobza5f TlGOlx/SKug0M4SO6y2P9MTow5ueYkRRjgo3dgSeZg5hczuO0quo8Ef4Lc3hy33s Db4B+C0L6zmVvlendGl0Q6H+TEpUAO8XZjsD9wpDyIWN8f35DN2XSYowgG7rauGM kRmgza++O33qhijfLJZEYGW88nXDTgBuSLfzpvov12HBuUxeo/CBgKY+Gl7TQ/lf +6SzzyqflKvbK8vlN3yvclbkv0fbLgATpvy2pVwcOgRhb7RRQZU= =vTii -----END PGP SIGNATURE----- --J/dobhs11T7y2rNN-- From owner-freebsd-hackers@freebsd.org Sat Jan 4 09:23:00 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BEF201D213B for ; Sat, 4 Jan 2020 09:23:00 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47qbsb1T1tz42yj for ; Sat, 4 Jan 2020 09:22:58 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (v-critter.freebsd.dk [192.168.55.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by phk.freebsd.dk (Postfix) with ESMTPS id A94731AF135; Sat, 4 Jan 2020 09:22:51 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.15.2/8.15.2) with ESMTPS id 0049MovY036242 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 4 Jan 2020 09:22:51 GMT (envelope-from phk@critter.freebsd.dk) Received: (from phk@localhost) by critter.freebsd.dk (8.15.2/8.15.2/Submit) id 0049Mobg036241; Sat, 4 Jan 2020 09:22:50 GMT (envelope-from phk) To: Matthias Apitz cc: freebsd-hackers@freebsd.org Subject: Re: getting the name of a C-function in the C-code based on a pointer to the function In-reply-to: <20200104090743.GA3017@c720-r342378> From: "Poul-Henning Kamp" References: <20200104090743.GA3017@c720-r342378> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <36239.1578129770.1@critter.freebsd.dk> Content-Transfer-Encoding: quoted-printable Date: Sat, 04 Jan 2020 09:22:50 +0000 Message-ID: <36240.1578129770@critter.freebsd.dk> X-Rspamd-Queue-Id: 47qbsb1T1tz42yj X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of phk@critter.freebsd.dk designates 130.225.244.222 as permitted sender) smtp.mailfrom=phk@critter.freebsd.dk X-Spamd-Result: default: False [-1.92 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.992,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-0.97)[-0.972,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[freebsd.dk]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(0.05)[ip: (0.07), ipnet: 130.225.0.0/16(0.07), asn: 1835(0.09), country: EU(-0.00)]; FORGED_SENDER(0.30)[phk@phk.freebsd.dk,phk@critter.freebsd.dk]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:1835, ipnet:130.225.0.0/16, country:EU]; FROM_NEQ_ENVFROM(0.00)[phk@phk.freebsd.dk,phk@critter.freebsd.dk]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jan 2020 09:23:00 -0000 -------- In message <20200104090743.GA3017@c720-r342378>, Matthias Apitz writes: >What I'm locking for is how to get the name of a function, into a string = pointer See dlsym(3) and/or backtrace(3) -- = Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe = Never attribute to malice what can adequately be explained by incompetence= . From owner-freebsd-hackers@freebsd.org Sat Jan 4 13:39:34 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8AEFC1EDCC4 for ; Sat, 4 Jan 2020 13:39:34 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 47qjYf3ClBz4Fgp for ; Sat, 4 Jan 2020 13:39:34 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id 6C63B1EDCC3; Sat, 4 Jan 2020 13:39:34 +0000 (UTC) Delivered-To: hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6C29E1EDCC2 for ; Sat, 4 Jan 2020 13:39:34 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47qjYf2C07z4Fgn; Sat, 4 Jan 2020 13:39:34 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from John-Baldwins-MacBook-Pro-7.local (unknown [IPv6:2601:648:8881:1e90:8d3e:cb31:1f4e:f50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 00E411F048; Sat, 4 Jan 2020 13:39:33 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Subject: Re: Fixing audio/oss to use callout instead of timeouts To: Chris Rees , hackers@FreeBSD.org References: From: John Baldwin Openpgp: preference=signencrypt Autocrypt: addr=jhb@FreeBSD.org; keydata= mQGiBETQ+XcRBADMFybiq69u+fJRy/0wzqTNS8jFfWaBTs5/OfcV7wWezVmf9sgwn8TW0Dk0 c9MBl0pz+H01dA2ZSGZ5fXlmFIsee1WEzqeJzpiwd/pejPgSzXB9ijbLHZ2/E0jhGBcVy5Yo /Tw5+U/+laeYKu2xb0XPvM0zMNls1ah5OnP9a6Ql6wCgupaoMySb7DXm2LHD1Z9jTsHcAQMD /1jzh2BoHriy/Q2s4KzzjVp/mQO5DSm2z14BvbQRcXU48oAosHA1u3Wrov6LfPY+0U1tG47X 1BGfnQH+rNAaH0livoSBQ0IPI/8WfIW7ub4qV6HYwWKVqkDkqwcpmGNDbz3gfaDht6nsie5Z pcuCcul4M9CW7Md6zzyvktjnbz61BADGDCopfZC4of0Z3Ka0u8Wik6UJOuqShBt1WcFS8ya1 oB4rc4tXfSHyMF63aPUBMxHR5DXeH+EO2edoSwViDMqWk1jTnYza51rbGY+pebLQOVOxAY7k do5Ordl3wklBPMVEPWoZ61SdbcjhHVwaC5zfiskcxj5wwXd2E9qYlBqRg7QeSm9obiBCYWxk d2luIDxqaGJARnJlZUJTRC5vcmc+iGAEExECACAFAkTQ+awCGwMGCwkIBwMCBBUCCAMEFgID AQIeAQIXgAAKCRBy3lIGd+N/BI6RAJ9S97fvbME+3hxzE3JUyUZ6vTewDACdE1stFuSfqMvM jomvZdYxIYyTUpC5Ag0ERND5ghAIAPwsO0B7BL+bz8sLlLoQktGxXwXQfS5cInvL17Dsgnr3 1AKa94j9EnXQyPEj7u0d+LmEe6CGEGDh1OcGFTMVrof2ZzkSy4+FkZwMKJpTiqeaShMh+Goj XlwIMDxyADYvBIg3eN5YdFKaPQpfgSqhT+7El7w+wSZZD8pPQuLAnie5iz9C8iKy4/cMSOrH YUK/tO+Nhw8Jjlw94Ik0T80iEhI2t+XBVjwdfjbq3HrJ0ehqdBwukyeJRYKmbn298KOFQVHO EVbHA4rF/37jzaMadK43FgJ0SAhPPF5l4l89z5oPu0b/+5e2inA3b8J3iGZxywjM+Csq1tqz hltEc7Q+E08AAwUIAL+15XH8bPbjNJdVyg2CMl10JNW2wWg2Q6qdljeaRqeR6zFus7EZTwtX sNzs5bP8y51PSUDJbeiy2RNCNKWFMndM22TZnk3GNG45nQd4OwYK0RZVrikalmJY5Q6m7Z16 4yrZgIXFdKj2t8F+x613/SJW1lIr9/bDp4U9tw0V1g3l2dFtD3p3ZrQ3hpoDtoK70ioIAjjH aIXIAcm3FGZFXy503DOA0KaTWwvOVdYCFLm3zWuSOmrX/GsEc7ovasOWwjPn878qVjbUKWwx Q4QkF4OhUV9zPtf9tDSAZ3x7QSwoKbCoRCZ/xbyTUPyQ1VvNy/mYrBcYlzHodsaqUDjHuW+I SQQYEQIACQUCRND5ggIbDAAKCRBy3lIGd+N/BCO8AJ9j1dWVQWxw/YdTbEyrRKOY8YZNwwCf afMAg8QvmOWnHx3wl8WslCaXaE8= Message-ID: <33a74368-73a7-fdc0-4655-cfce88d865e6@FreeBSD.org> Date: Sat, 4 Jan 2020 05:39:31 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jan 2020 13:39:34 -0000 On 1/2/20 3:47 PM, Chris Rees wrote: > Hi Hackers (and perhaps John, as the author of r355732, sorry for the duplicate), > > I've attempted to use the callout functions instead of the now removed timeout functions for audio/oss, and I *think* that the code already stores and retrieves the list of handlers, so it should be a simple swap out. > > I've made this modification and run the module with mpg123 for a while and it hasn't killed my laptop, but I'd just like to check that I have the principle correct and haven't missed anything obvious. > > Please would you let me know if there is anything else I should have done? > > https://www.bayofrum.net/cgi-bin/fossil/oss/vinfo/ad269d7cbc02bf38?diff=2 > > (This is the change I've made to kernel/OS/FreeBSD/os_freebsd.c in oss) > > https://www.bayofrum.net/cgi-bin/fossil/oss/vinfo/ad269d7cbc02bf38?diff=2&dc=9999 A few suggestions: 1) You should do the callout_init() during a SYSINIT or MOD_LOAD event to initialize all the timers at once instead of doing it in oss_timeout(). 2) You should then add a SYSUNINIT or MOD_UNLOAD that uses callout_drain(). 3) You should add a mutex to protect the tmouts array and timeout_random, etc. and use callout_init_mtx with that lock, but probably use CALLOUT_RETURNUNLOCKED and drop the mutex right before calling the function (you can store the function pointer and void * argument in local variables before dropping the lock to be safe. 4) If possible, you should really alter the oss API so that drivers don't use a timeout()-like interface, but instead use a callout directly (or an interface that wraps callout). This would let drivers take advantage of callout_init_mtx with their own locks, etc. Does audio/oss contain all the code that makes use of oss_timeout? -- John Baldwin From owner-freebsd-hackers@freebsd.org Sat Jan 4 15:17:57 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 552BE1D820E for ; Sat, 4 Jan 2020 15:17:57 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47qll80lpLz4KXp for ; Sat, 4 Jan 2020 15:17:55 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk1-x735.google.com with SMTP id r14so36110218qke.13 for ; Sat, 04 Jan 2020 07:17:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=d8wZ4rSVWvOsDFGJCDbLWYXoWF53pEg2C2dpd20HQSw=; b=JNe/93sPO/R87rgVuYo9gdq0LJhhlJrH+zVFHGtJUXNfY3QbWkECkxZyaPO/XZ+/4O JZiVJCPpW9dbmai8xxL38plM/3DhFtLpOdXv961Odkw5t+NgNRxz3VluQ49ZYs1UKff/ 5qOK5qORQVNs4XFoAy9nDhoMEQbwopMbd6oCsUgegiwLFvJ02XrQNKqrSFceQ+qPpJL0 IhZ2bBMRtahHEPzcrNjvnwqb/XeuX/fGeUjQDmj6iBV8kAPxadjdNNMfYVMpLTH9f5Xr Qo4tvSWbtB8guPQ2UhQC5gU/dxBWJJ7EPgi8OKWRYZXefQpXPz8HBKX6RJoZPPfEcVAh q4wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=d8wZ4rSVWvOsDFGJCDbLWYXoWF53pEg2C2dpd20HQSw=; b=fVTPu5BnLr9rtIciz/wekW8KZqyuCWpCH3INk7hz17rT1gHl0Pvw29X/9jBl6m7krL 3gLdCQDru3iPShiRfpRPUDPgmTqvY0At9W4ao2YoZZKp8/CgV34LLj7D2tNO+ZRiGNRa K79Hjup14j8GvKKEH/Tia4X+tCvhr+TZWavJlRX4pdyNFhuPivCsPkppn27ZxKbiRtvt x2a9G+X8BB4MOUTwh5dcCa+S/eewCZmAYx4uhVFBJ1cEpfhgOrAMlB2cRWxnyZumQhNE LbL9W9fnQX4/APr7DTD0EDrPhvKYBzfG4Y6QXyhB39eWk1PVeXRNSBwEK9rC/v1tmcPD rhLg== X-Gm-Message-State: APjAAAVXwIUy1mMksPRjViGQ7JQOMUxJ1OGzm9FvHjO7sZ0G7cYITRV9 FR5HBPWkFJR1eqvUUzpKW0gY8F0RmIJVFgP50ywBkA== X-Google-Smtp-Source: APXvYqy9YTW4BaISVq7zhERYlmaHmgistEcxMB4k+KINL1m6UKXENploungOuYYu+zdcnq9vg8OR1buM9GSVBVAGyAY= X-Received: by 2002:a37:4f8e:: with SMTP id d136mr75386039qkb.495.1578151074737; Sat, 04 Jan 2020 07:17:54 -0800 (PST) MIME-Version: 1.0 References: <20200104092112.17fea0fc@ernst.home> In-Reply-To: <20200104092112.17fea0fc@ernst.home> From: Warner Losh Date: Sat, 4 Jan 2020 09:17:42 -0600 Message-ID: Subject: Re: How do I completely disable suspend? To: Gary Jennejohn Cc: FreeBSD Hackers X-Rspamd-Queue-Id: 47qll80lpLz4KXp X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=JNe/93sP; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::735) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-2.67 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; IP_SCORE(-2.67)[ip: (-9.31), ipnet: 2607:f8b0::/32(-2.14), asn: 15169(-1.86), country: US(-0.05)]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; URI_COUNT_ODD(1.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[5.3.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; FREEMAIL_TO(0.00)[gmail.com]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jan 2020 15:17:57 -0000 On Sat, Jan 4, 2020, 2:21 AM Gary Jennejohn wrote: > On Fri, 3 Jan 2020 19:46:09 -0700 > Warner Losh wrote: > > > On Wed, Jan 1, 2020 at 5:29 PM Ryan Stone wrote: > > > > > On Wed, Jan 1, 2020 at 5:01 PM Warner Losh wrote: > > > > > > > > > > > > > > > > On Wed, Jan 1, 2020, 1:46 PM Ryan Stone wrote: > > > >> > > > >> I have a laptop on which suspend/resume doesn't work. I don't need > > > >> suspend/resume and don't want to spend the time debugging it. > > > >> However, there are some really annoying cases that can trigger a > > > >> suspend, and I find up having to power off the laptop to get it to > > > >> boot properly again. How can I completely disable suspend? Playing > > > >> with the sysctls under hw.acpi doesn't seem to actually do > anything. > > > > > > > > > > > > You want to make the switch action do nothing. I do this so that I > have > > > a custom devd action that sleeps for 60 seconds and then suspends if > the > > > lid is still closed. I often close my lid and then go 'oh, crap I > forgot > > > to...' and I want some time to recover from that mistake that doesn't > force > > > a suspend/resume. > > > > > > > > hw.acpi.lid_switch_state: NONE > > > > > > > > and > > > > > > > > notify 10 { > > > > match "system" "ACPI"; > > > > match "subsystem" "Lid"; > > > > action "/usr/local/bin/imp-lid $notify"; > > > > }; > > > > > > > > in devd.conf for me. > > > > > > > > And while Ryan won't need it, here's imp-lid: > > > > > > > > #!/bin/sh > > > > lid-wait() { > > > > logger "Waiting a minute to suspend" > > > > sleep 60 > > > > case $(sysctl -n dev.acpi_lid.0.state) in > > > > 0) logger "suspending"; zzz ;; > > > > *) logger "never mind";; > > > > esac > > > > } > > > > > > > > case $1 in > > > > 0x00) # lid closed > > > > lid-wait & > > > > ;; > > > > 0x01) ;; # Ignore opening > > > > esac > > > > exit 0 > > > > > > > > > > > > Warner > > > > > > Thanks, but in my case, the biggest issue isn't closing the lid but > > > some magic extra function button on the keyboard that something has > > > decided should trigger a suspend. > > > > > > > Oh, in that case you can use kbdcontrol to remap those keys. > > > > kbdcontrol -d dumps the keys and you are looking for > > 104 slock saver slock saver susp nop susp nop O > > 'susp' is the bit that does keyboard suspend just make them all nop. -l > > file I think loads the file, but the man page has all the details. > > > > Note that kbdcontrol -d only appears to work in a console. I tried to > run it under Xorg and got errors, probably because Xorg had grabbed the > keyboard. In VT1 it worked. This problem is sort of addressed in the > man page, which I of course didn't read until later. > Yea. This sort of thing needs to be done before you start X. Warner -- > Gary Jennejohn > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@freebsd.org Sat Jan 4 15:48:22 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 353631DB4E2 for ; Sat, 4 Jan 2020 15:48:22 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47qmQF1FJdz4M18 for ; Sat, 4 Jan 2020 15:48:20 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wr1-x443.google.com with SMTP id j42so45036975wrj.12 for ; Sat, 04 Jan 2020 07:48:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=ZJQAq60Zop8r9VouEzl6Of7h9mu40tvzwMzSTekl+DQ=; b=FxIPPNeRGqo8IJw1xoEbqK2GidNyjjXtYAHmpHbMZY6vPYhmvbgz2AHqL8Ei5Dq0FV uXYRD3HNt+SelyRcziJI9xobnMElKzhjrMtmTmAo8+gcGdVxA/iH2REz68fkhL/q22// 5fC8/9Gm/Jg9vZiPvwCumkPVSCQRdEqm1A3caOhnhqTq6Vye9ddLzbLEvSUhhF+2Tmh+ rInGrRQZkrDfvl37sLZfGy9XKhuAGIbJiGWEdd2nIe4amcSNrM7kW82y8cr+xNeyGh8z JC21d5b9CMaMJcHVTqGhJBba/n8ScN/y+vx9w4NmlcL2uARtLFKU0z6IQIa+8cGORGFa 0yag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=ZJQAq60Zop8r9VouEzl6Of7h9mu40tvzwMzSTekl+DQ=; b=oADaTc/OeguBiFu+BjluNPYftIp4xTXCpdcU0eI1P5Jhq5PTDNyOBU6PE2iTLFrNDT HXckKj7P2rMZai/CFO99i3y38Mm+1xuooAcYVgI94G5VtRKmH9epz9g8/xtMXa2DGmE+ uvKn7knxmg4BQhWWRgLivoVuTOUwZ404VObThVoW4rYHCUa+MrA2r1WP+Hsuy71pOpP5 NJmyH0MpR0VIkDmxcjxOSGlO/HbAuMhiCGIAHsCXLCzoigI8bDKPSRBveGJ+ycaob+WR ZS/Vshv9WOz/UPpO4W5N8XmfurghaFYsG93qsktN6W2NlTWnPyxNw8XUN9LFSZgvZ9xX w5yw== X-Gm-Message-State: APjAAAWaLvG0T0Vl7huyVeHV6Ww5yXgS63wwROreNIhCuLbRQ3D2DJcw 6w/1ErVD0DLdVN8JC0SVwdCEaBaU X-Google-Smtp-Source: APXvYqxUwqHUdjpqxkwGqsOru6yEuFsduB/0HS7Av3h3GOHGDfXQnVf3LVE0dFVDJmAHPmPrLSNwJQ== X-Received: by 2002:adf:f8c8:: with SMTP id f8mr91032183wrq.331.1578152899298; Sat, 04 Jan 2020 07:48:19 -0800 (PST) Received: from ernst.home (p5B3BEAC3.dip0.t-ipconnect.de. [91.59.234.195]) by smtp.gmail.com with ESMTPSA id x10sm62090081wrv.60.2020.01.04.07.48.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jan 2020 07:48:18 -0800 (PST) Date: Sat, 4 Jan 2020 16:48:17 +0100 From: Gary Jennejohn To: FreeBSD Hackers Subject: Re: How do I completely disable suspend? Message-ID: <20200104164817.2dd4dd0d@ernst.home> In-Reply-To: References: <20200104092112.17fea0fc@ernst.home> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47qmQF1FJdz4M18 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=FxIPPNeR; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of gljennjohn@gmail.com designates 2a00:1450:4864:20::443 as permitted sender) smtp.mailfrom=gljennjohn@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[gljennjohn@gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MIME_TRACE(0.00)[0:+]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; RECEIVED_SPAMHAUS_PBL(0.00)[195.234.59.91.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; FREEMAIL_REPLYTO(0.00)[gmail.com]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(0.00)[ip: (2.23), ipnet: 2a00:1450::/32(-2.62), asn: 15169(-1.86), country: US(-0.05)]; RCVD_IN_DNSWL_NONE(0.00)[3.4.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jan 2020 15:48:22 -0000 On Sat, 4 Jan 2020 09:17:42 -0600 Warner Losh wrote: > On Sat, Jan 4, 2020, 2:21 AM Gary Jennejohn wrote: > > > On Fri, 3 Jan 2020 19:46:09 -0700 > > Warner Losh wrote: > > > > > On Wed, Jan 1, 2020 at 5:29 PM Ryan Stone wrote: > > > > > > > On Wed, Jan 1, 2020 at 5:01 PM Warner Losh wrote: > > > > > > > > > > > > > > > > > > > > On Wed, Jan 1, 2020, 1:46 PM Ryan Stone wrote: > > > > >> > > > > >> I have a laptop on which suspend/resume doesn't work. I don't need > > > > >> suspend/resume and don't want to spend the time debugging it. > > > > >> However, there are some really annoying cases that can trigger a > > > > >> suspend, and I find up having to power off the laptop to get it to > > > > >> boot properly again. How can I completely disable suspend? Playing > > > > >> with the sysctls under hw.acpi doesn't seem to actually do > > anything. > > > > > > > > > > > > > > > You want to make the switch action do nothing. I do this so that I > > have > > > > a custom devd action that sleeps for 60 seconds and then suspends if > > the > > > > lid is still closed. I often close my lid and then go 'oh, crap I > > forgot > > > > to...' and I want some time to recover from that mistake that doesn't > > force > > > > a suspend/resume. > > > > > > > > > > hw.acpi.lid_switch_state: NONE > > > > > > > > > > and > > > > > > > > > > notify 10 { > > > > > match "system" "ACPI"; > > > > > match "subsystem" "Lid"; > > > > > action "/usr/local/bin/imp-lid $notify"; > > > > > }; > > > > > > > > > > in devd.conf for me. > > > > > > > > > > And while Ryan won't need it, here's imp-lid: > > > > > > > > > > #!/bin/sh > > > > > lid-wait() { > > > > > logger "Waiting a minute to suspend" > > > > > sleep 60 > > > > > case $(sysctl -n dev.acpi_lid.0.state) in > > > > > 0) logger "suspending"; zzz ;; > > > > > *) logger "never mind";; > > > > > esac > > > > > } > > > > > > > > > > case $1 in > > > > > 0x00) # lid closed > > > > > lid-wait & > > > > > ;; > > > > > 0x01) ;; # Ignore opening > > > > > esac > > > > > exit 0 > > > > > > > > > > > > > > > Warner > > > > > > > > Thanks, but in my case, the biggest issue isn't closing the lid but > > > > some magic extra function button on the keyboard that something has > > > > decided should trigger a suspend. > > > > > > > > > > Oh, in that case you can use kbdcontrol to remap those keys. > > > > > > kbdcontrol -d dumps the keys and you are looking for > > > 104 slock saver slock saver susp nop susp nop O > > > 'susp' is the bit that does keyboard suspend just make them all nop. -l > > > file I think loads the file, but the man page has all the details. > > > > > > > Note that kbdcontrol -d only appears to work in a console. I tried to > > run it under Xorg and got errors, probably because Xorg had grabbed the > > keyboard. In VT1 it worked. This problem is sort of addressed in the > > man page, which I of course didn't read until later. > > > > Yea. This sort of thing needs to be done before you start X. > Actually, I simply switched to VT1 from X. The console then grabbed the keyboard and everything worked. I then switched to VT9 and was back in X. -- Gary Jennejohn From owner-freebsd-hackers@freebsd.org Sat Jan 4 17:24:40 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3020B1E5B40 for ; Sat, 4 Jan 2020 17:24:40 +0000 (UTC) (envelope-from jrm@ftfl.ca) Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47qpYM0Xjhz4QqQ for ; Sat, 4 Jan 2020 17:24:38 +0000 (UTC) (envelope-from jrm@ftfl.ca) Received: by mail-qk1-f175.google.com with SMTP id t129so36316582qke.10 for ; Sat, 04 Jan 2020 09:24:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=nKe//bv548+nv50GXv8950DOdJR3V3meNHhx+IEVDWg=; b=Wh5qaUXunhwTO8vRC26v6tXODcRok/Bvsbi5nuhV3dt6YofEuCBWRunSR+72p1oyo2 0oQNJBcMhNA81o/e4bqrBU424JsCuuJ+kEIeL3HVpEYGaEhIFJd6MyJv4RZ9DFl1B3QW A2NytSBdVNO432tV7VyipINcIhQ7ewnRVhLYHdWi47jTZ0pqHqW02QLZUX48qcc1UYWM qthr9ggIiCuWJy3uVkT4LOQ0kgVQb3VFdvudgvkW3xPYYgF1U4+07PyQSpyR8kAeZyyx 4uG4zyHOlgjsbSdUwFKnSJkrjL2wXbk8/V0O7R5eHYIoiBv2xfkVonUECfvfa0+bAjVf dfBg== X-Gm-Message-State: APjAAAUtFKMGOGF/gcEp2tC4xq7BHULP/XwJcDcV/Xw1kszOhzkWMpr4 fRU65D5tzbMUiO2S8/ScCyC5AYriv3k= X-Google-Smtp-Source: APXvYqzCLaShco9xg3cFkma9IjJ95Djp7Z76KcBVYWQdek4GZ23ctnUYX+Honl7FndBQoMlE94TgEQ== X-Received: by 2002:a37:8505:: with SMTP id h5mr75161116qkd.281.1578158677115; Sat, 04 Jan 2020 09:24:37 -0800 (PST) Received: from phe.ftfl.ca.ftfl.ca (drmons0544w-142-177-170-6.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.177.170.6]) by smtp.gmail.com with ESMTPSA id h32sm20704669qth.2.2020.01.04.09.24.35 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 04 Jan 2020 09:24:35 -0800 (PST) From: FreeBSD Core Team Secretary To: freebsd-hackers@freebsd.org Subject: Bruce D Evans Date: Sat, 04 Jan 2020 13:24:05 -0400 Message-ID: <86imlrnnii.fsf@phe.ftfl.ca> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Rspamd-Queue-Id: 47qpYM0Xjhz4QqQ X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of jrm@ftfl.ca designates 209.85.222.175 as permitted sender) smtp.mailfrom=jrm@ftfl.ca X-Spamd-Result: default: False [-6.02 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[6.170.177.142.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[FreeBSD.org]; IP_SCORE(-1.92)[ip: (-4.57), ipnet: 209.85.128.0/17(-3.11), asn: 15169(-1.86), country: US(-0.05)]; RCVD_IN_DNSWL_NONE(0.00)[175.222.85.209.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; SIGNED_PGP(-2.00)[]; FORGED_SENDER(0.30)[core-secretary@FreeBSD.org,jrm@ftfl.ca]; RWL_MAILSPIKE_POSSIBLE(0.00)[175.222.85.209.rep.mailspike.net : 127.0.0.17]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[core-secretary@FreeBSD.org,jrm@ftfl.ca]; RCVD_TLS_ALL(0.00)[]; TO_DOM_EQ_FROM_DOM(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jan 2020 17:24:40 -0000 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello everyone, Julie Saravanos, Bruce's sister, recently shared some sad news. =2D------------------- Start of forwarded message -------------------- Subject: Bruce D Evans Cc: core-secretary@FreeBSD.org From: Julie Saravanos <***@***> Date: Thu, 26 Dec 2019 16:36:54 +1100 To: jrm@FreeBSD.org Hello Joseph, I would like to share some sad news with the FreeBSD community, my brillian= t but humble brother, Dr Bruce David Evans of Sydney Australia, passed away= last week on the 18th December 2019 aged 68 years. From=20what I understand Bruce made important contributions to the computin= g world; he was the author of Minix 386 patches and served on the FreeBSD c= ore team from its inception, continuing to contribute to the project for th= e duration of his life. He studied at Macquarie University in Sydney and at= The University of Pennsylvania. Bruce did not marry or have children instead pursuing his interests and ded= icating his life to the computing world. He also had a passion for online b= ridge, science fiction, maths and physics. His philosophy in life and work = was to keep things as simple as possible. His death was sudden, therefore, = he leaves behind a mess of books and computers which may contain items of i= nterest. I would be grateful if you could share the news of Bruce=E2=80=99s passing = with the FreeBSD community and would be more than happy to be contacted by = anyone who had an interest or connection with him. Yours Truly, Julie Saravanos =2D------------------- End of forwarded message -------------------- If you would like to send condolences directly to Julie, please contact me off list and I will share her email or mailing address. =2D-=20 Joseph (with core-secretary@ hat on) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGvBAEBCgCZFiEEnwKDb1DTrVq3WsWIDLQD5OlbluwFAl4QyjVfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDlG MDI4MzZGNTBEM0FENUFCNzVBQzU4ODBDQjQwM0U0RTk1Qjk2RUMbHGNvcmUtc2Vj cmV0YXJ5QGZyZWVic2Qub3JnAAoJEAy0A+TpW5bsWU8H/RiN+DnbDIx48397GMt/ AOJNE6w0eBwMSjzucjbw+5QOpV5tluN82mfRJpKLFiix83GkQTNMbs4HqXR0CsxC kkdPV6JWN9TzZrkI7FTKhPFxcxbEa9+g4155s/7lQ87V9/h09tdp7e8zJbnZaWh7 8hlp/WaA69X0fT04iwgXjMXpZTX30hvxHeHgw7HXZ8ZoHB/DaaJRNtrOMxuctiO+ 720k+5sFvt1sqKwcEX2YmUtdB+uHEPCCRWu70y4pxRkBYGvzzeXa6kbHeaBq2wzA ezF7i9SJ0gGOIGHqZ1sxGHwD9h5LLfAmIMFelQuv44R9sqIKs5bD2ENO5bAEYFAb pvI= =9nl5 -----END PGP SIGNATURE----- --=-=-=-- From owner-freebsd-hackers@freebsd.org Sat Jan 4 21:29:17 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0A4F91D4FAC for ; Sat, 4 Jan 2020 21:29:17 +0000 (UTC) (envelope-from crees@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 47qvzc6TTCz4fJN for ; Sat, 4 Jan 2020 21:29:16 +0000 (UTC) (envelope-from crees@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id DE4BA1D4FAB; Sat, 4 Jan 2020 21:29:16 +0000 (UTC) Delivered-To: hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DE10C1D4FAA for ; Sat, 4 Jan 2020 21:29:16 +0000 (UTC) (envelope-from crees@freebsd.org) Received: from mail118c50.megamailservers.eu (mail1420c50.megamailservers.eu [91.136.14.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47qvzc2ClYz4fJM; Sat, 4 Jan 2020 21:29:15 +0000 (UTC) (envelope-from crees@freebsd.org) X-Authenticated-User: crees@uwclub.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1578173353; bh=J6v0x+UNw2tucTKMENXcF04FZ0SejcNOKRHOiAN67/c=; h=Subject:From:To:References:Date:In-Reply-To:From; b=b0ca2z6L6KSB/utXcRSRIeewDFSNXbUfJn3hx40SeEgOTpswNlXr9rEODk2VBnzYm 28Jegx/EGCpt/wFJbuQiFNodcU1eFQNS+2M33FWZbpU4+bFAdYH7Vf0SYs1R6FB1AX 6yUn7jID6DU4LOETtkMwiGdogoXj6W5FRW/cfrS4= Feedback-ID: crees@freebsd.o Received: from pegasus.bayofrum.net (host-92-16-36-61.as13285.net [92.16.36.61]) (authenticated bits=0) by mail118c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 004LTCNs005476; Sat, 4 Jan 2020 21:29:13 +0000 Received: from [192.168.1.149] (unknown [192.168.1.149]) by pegasus.bayofrum.net (Postfix) with ESMTPSA id CF6D6B3FE; Sat, 4 Jan 2020 21:29:10 +0000 (GMT) Subject: Re: Fixing audio/oss to use callout instead of timeouts From: Chris Rees To: Chris Rees , hackers@FreeBSD.org References: <33a74368-73a7-fdc0-4655-cfce88d865e6@FreeBSD.org> Message-ID: <39ea5ba8-00d6-c5b2-4719-fba23bb53856@bayofrum.net> Date: Sat, 4 Jan 2020 21:29:10 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-bayofrum-MailScanner-Information: Please contact the ISP for more information X-bayofrum-MailScanner-ID: CF6D6B3FE.AC373 X-bayofrum-MailScanner: Found to be clean X-bayofrum-MailScanner-From: crees@freebsd.org X-Spam-Status: No X-CTCH-RefID: str=0001.0A0B0214.5E1103A9.003A, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=dLXYZ9Rb c=1 sm=1 tr=0 a=ExehvxHEHCe6C2o3spqpZQ==:117 a=ExehvxHEHCe6C2o3spqpZQ==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=IkcTkHD0fZMA:10 a=Jdjhy38mL1oA:10 a=ZB5LerlCAAAA:8 a=46YcauF8XkfZqN-N9H4A:9 a=QEXdDO2ut3YA:10 a=YKPTzOroS2oaEK2QgPcx:22 a=pHzHmUro8NiASowvMSCR:22 a=Ew2E2A-JSTLzCXPT_086:22 X-Rspamd-Queue-Id: 47qvzc2ClYz4fJM X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-1.94 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.95)[-0.953,0]; NEURAL_HAM_LONG(-0.98)[-0.985,0]; ASN(0.00)[asn:9115, ipnet:91.136.0.0/17, country:GB] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jan 2020 21:29:17 -0000 [Keeping -hackers CC'd as again I've failed with from address :/] On 2020-01-04 21:27, Chris Rees wrote: > Hi John, > > On 2020-01-04 13:39, John Baldwin wrote: >> On 1/2/20 3:47 PM, Chris Rees wrote: >>> Hi Hackers (and perhaps John, as the author of r355732, sorry for >>> the duplicate), >>> >>> I've attempted to use the callout functions instead of the now >>> removed timeout functions for audio/oss, and I *think* that the code >>> already stores and retrieves the list of handlers, so it should be a >>> simple swap out. >>> >>> I've made this modification and run the module with mpg123 for a >>> while and it hasn't killed my laptop, but I'd just like to check >>> that I have the principle correct and haven't missed anything obvious. >>> >>> Please would you let me know if there is anything else I should have >>> done? >>> >>> https://www.bayofrum.net/cgi-bin/fossil/oss/vinfo/ad269d7cbc02bf38?diff=2 >>> >>> >>> (This is the change I've made to kernel/OS/FreeBSD/os_freebsd.c in oss) >>> >>> https://www.bayofrum.net/cgi-bin/fossil/oss/vinfo/ad269d7cbc02bf38?diff=2&dc=9999 >>> >> A few suggestions: >> >> 1) You should do the callout_init() during a SYSINIT or MOD_LOAD >> event to initialize >>     all the timers at once instead of doing it in oss_timeout(). >> >> 2) You should then add a SYSUNINIT or MOD_UNLOAD that uses >> callout_drain(). >> >> 3) You should add a mutex to protect the tmouts array and >> timeout_random, etc. >>     and use callout_init_mtx with that lock, but probably use >> CALLOUT_RETURNUNLOCKED >>     and drop the mutex right before calling the function (you can >> store the function >>     pointer and void * argument in local variables before dropping >> the lock to >>     be safe. >> >> 4) If possible, you should really alter the oss API so that drivers >> don't use >>     a timeout()-like interface, but instead use a callout directly >> (or an interface >>     that wraps callout).  This would let drivers take advantage of >> callout_init_mtx >>     with their own locks, etc. >> >> Does audio/oss contain all the code that makes use of oss_timeout? >> > Thanks so much for your feedback!  You've probably seen from the naive > change my level of kernel hacking. > > 1-2, I think I've done here: > > https://www.bayofrum.net/cgi-bin/fossil/oss/vdiff?from=ae2a86&to=b4376737b9d4a127 > > > (full context: > https://www.bayofrum.net/cgi-bin/fossil/oss/vdiff?from=ae2a86&to=b4376737b9d4a127&dc=9999) > > 3. The function pointer is constant, and the argument is a local > variable I think. > > 4. I agree, but I think it'd kill portability, and to be honest, the > only reason I even use OSS is just for my CMI8788 soundcard. If I've > managed this, I'm looking at porting the driver to FreeBSD's native > sound driver.  I don't think anyone uses OSS for any other reason. > > (5.) Yes, it doesn't appear elsewhere. > > Have I correctly understood you? > > Chris > > -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From owner-freebsd-hackers@freebsd.org Sat Jan 4 22:30:21 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6A68F1DB9FE for ; Sat, 4 Jan 2020 22:30:21 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: from puchar.net (puchar.net [194.1.144.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47qxL40fmfz4hps for ; Sat, 4 Jan 2020 22:30:19 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.15.2/8.15.2) with ESMTPS id 004MUFeL019606 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 4 Jan 2020 23:30:16 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=puchar.net; s=default; t=1578177016; bh=OFWeHtKqS7BBFhylWykhSifdO6Tfk3I3/hTP4c9JXos=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=U1SA8JlL3nk57sC1nRR3GSHWoga6hSLFZir+PfPlhH3dAMsO4WxLnRkmDn1vJNEfe h1NBV1tlVHkLh9Ld/zjwmFYTTjARLULIRfnRMP9sw2IJPgIpDfI/FXYuqfU38msEE1 BWr4T+prVeU7h9MCU8Y+H1tyZxgDM3Vg8kFYs3Uc= Received: from localhost (puchar-wojtek@localhost) by puchar.net (8.15.2/8.15.2/Submit) with ESMTP id 004MUFGt019603; Sat, 4 Jan 2020 23:30:15 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) Date: Sat, 4 Jan 2020 23:30:15 +0100 (CET) From: Wojciech Puchar To: RW cc: freebsd-hackers@freebsd.org Subject: Re: geli - changing keyfile In-Reply-To: <20200102224332.50eabafb@gumby.homeunix.com> Message-ID: References: <20200102224332.50eabafb@gumby.homeunix.com> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Rspamd-Queue-Id: 47qxL40fmfz4hps X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=fail (rsa verify failed) header.d=puchar.net header.s=default header.b=U1SA8JlL; dmarc=none; spf=pass (mx1.freebsd.org: domain of wojtek@puchar.net designates 194.1.144.90 as permitted sender) smtp.mailfrom=wojtek@puchar.net X-Spamd-Result: default: False [-4.48 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_DKIM_REJECT(1.00)[puchar.net:s=default]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[puchar.net]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[puchar.net:-]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[90.144.1.194.list.dnswl.org : 127.0.10.0]; IP_SCORE(-3.18)[ip: (-8.41), ipnet: 194.1.144.0/24(-4.20), asn: 43476(-3.36), country: PL(0.07)]; FREEMAIL_TO(0.00)[googlemail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:43476, ipnet:194.1.144.0/24, country:PL]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jan 2020 22:30:21 -0000 >> password. > > I've never had cause to do this, but it would be done with geli setkey. > > Note that if an attacker has a copy of either the geli metadata sector > or a geli metadata back-up file, the old key-file can still be used to > access your data. nobody have my keyfiles. i just moved disk to other server and want them use the same keyfile than other disks From owner-freebsd-hackers@freebsd.org Sat Jan 4 22:35:35 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C8BA11DC6A1 for ; Sat, 4 Jan 2020 22:35:35 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: from puchar.net (puchar.net [194.1.144.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47qxS670NKz4jHP for ; Sat, 4 Jan 2020 22:35:34 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.15.2/8.15.2) with ESMTPS id 004MZXUv020756 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sat, 4 Jan 2020 23:35:33 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=puchar.net; s=default; t=1578177333; bh=pd9TR5hHjJ4XRSgnt7/SvB4C6TocI48LHBAXECbtNkY=; h=Date:From:To:Subject; b=QgimCu92faMxMTuxQzSvydZ+JXf/gi0PByJA0aL14imDcaWb2CRxEoWWtc2k12WZP ftn0ZqKJ1BRhklz54WP48honp9aG8rW5pfKZnmHf259YDkLf04NbWzUInbc+2Majp2 k+DGfNGdoVMIjisGEfnBiguKcn6iMj1GcXNYKD5c= Received: from localhost (puchar-wojtek@localhost) by puchar.net (8.15.2/8.15.2/Submit) with ESMTP id 004MZXgh020753 for ; Sat, 4 Jan 2020 23:35:33 +0100 (CET) (envelope-from puchar-wojtek@puchar.net) Date: Sat, 4 Jan 2020 23:35:33 +0100 (CET) From: Wojciech Puchar To: freebsd-hackers@freebsd.org Subject: processes are killed because of out of swap space Message-ID: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Rspamd-Queue-Id: 47qxS670NKz4jHP X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=fail (rsa verify failed) header.d=puchar.net header.s=default header.b=QgimCu92; dmarc=none; spf=pass (mx1.freebsd.org: domain of wojtek@puchar.net designates 194.1.144.90 as permitted sender) smtp.mailfrom=wojtek@puchar.net X-Spamd-Result: default: False [-4.47 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx:c]; R_DKIM_REJECT(1.00)[puchar.net:s=default]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; DMARC_NA(0.00)[puchar.net]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[puchar.net:-]; RCVD_IN_DNSWL_NONE(0.00)[90.144.1.194.list.dnswl.org : 127.0.10.0]; IP_SCORE(-3.17)[ip: (-8.38), ipnet: 194.1.144.0/24(-4.19), asn: 43476(-3.35), country: PL(0.07)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:43476, ipnet:194.1.144.0/24, country:PL]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jan 2020 22:35:35 -0000 when i try to use more virtual memory (tested by putting files to tmpfs /tmp). like that pid 16977 (bhyve), jid 0, uid 0, was killed: out of swap space the problem is that it's less than 10GB swap used while i have 120GB available. before processed begin to be killed system stalls for a while. any idea what to check? below my sysctl -a vm vm.vmtotal: System wide totals computed every five seconds: (values in kilobytes) =============================================== Processes: (RUNQ: 2 Disk Wait: 13 Page Wait: 0 Sleep: 614) Virtual Memory: (Total: 35115848K Active: 34336216K) Real Memory: (Total: 17559404K Active: 17498736K) Shared Virtual Memory: (Total: 819960K Active: 231808K) Shared Real Memory: (Total: 117712K Active: 59860K) Free Memory: 707048K vm.loadavg: { 1,56 1,61 1,82 } vm.v_free_min: 51326 vm.v_free_target: 173333 vm.v_free_reserved: 10657 vm.v_inactive_target: 259999 vm.v_pageout_free_min: 34 vm.swap_enabled: 1 vm.overcommit: 1 vm.kvm_free: 2160297242624 vm.kvm_size: 2199023251456 vm.pmap.pdpe.demotions: 3 vm.pmap.pde.promotions: 60330 vm.pmap.pde.p_failures: 42765 vm.pmap.pde.mappings: 14905 vm.pmap.pde.demotions: 15645 vm.pmap.allow_2m_x_ept: 1 vm.pmap.pcid_save_cnt: 142000859 vm.pmap.pti: 1 vm.pmap.invpcid_works: 1 vm.pmap.pcid_enabled: 1 vm.pmap.pg_ps_enabled: 1 vm.pmap.pat_works: 1 vm.idlezero_enable: 0 vm.swap_idle_threshold2: 360 vm.swap_idle_threshold1: 180 vm.swap_idle_enabled: 1 vm.reserv.reclaimed: 10817 vm.reserv.partpopq: LEVEL SIZE NUMBER -1: 0K, 0 vm.reserv.fullpop: 380 vm.reserv.freed: 97537 vm.reserv.broken: 11002 vm.default_policy: rr vm.ndomains: 1 vm.phys_segs: SEGMENT 0: start: 0x10000 end: 0x96000 domain: 0 free list: 0xffffffff80d5bf10 SEGMENT 1: start: 0x100000 end: 0x200000 domain: 0 free list: 0xffffffff80d5bf10 SEGMENT 2: start: 0x200000 end: 0x1000000 domain: 0 free list: 0xffffffff80d5bf10 SEGMENT 3: start: 0x1000000 end: 0x1372000 domain: 0 free list: 0xffffffff80d5bca0 SEGMENT 4: start: 0x1378000 end: 0x13a3000 domain: 0 free list: 0xffffffff80d5bca0 SEGMENT 5: start: 0x1400000 end: 0x791c9000 domain: 0 free list: 0xffffffff80d5bca0 SEGMENT 6: start: 0x100000000 end: 0x849e72000 domain: 0 free list: 0xffffffff80d5bca0 vm.phys_free: DOMAIN 0: FREE LIST 0: ORDER (SIZE) | NUMBER | POOL 0 | POOL 1 -- -- -- -- -- -- 12 ( 16384K) | 0 | 0 11 ( 8192K) | 0 | 0 10 ( 4096K) | 0 | 0 9 ( 2048K) | 0 | 0 8 ( 1024K) | 0 | 0 7 ( 512K) | 0 | 0 6 ( 256K) | 52 | 1 5 ( 128K) | 462 | 6 4 ( 64K) | 2152 | 9 3 ( 32K) | 9950 | 36 2 ( 16K) | 10623 | 125 1 ( 8K) | 182 | 121 0 ( 4K) | 0 | 3 FREE LIST 1: ORDER (SIZE) | NUMBER | POOL 0 | POOL 1 -- -- -- -- -- -- 12 ( 16384K) | 0 | 0 11 ( 8192K) | 0 | 0 10 ( 4096K) | 0 | 0 9 ( 2048K) | 0 | 0 8 ( 1024K) | 0 | 0 7 ( 512K) | 0 | 0 6 ( 256K) | 0 | 0 5 ( 128K) | 0 | 0 4 ( 64K) | 8 | 0 3 ( 32K) | 9 | 0 2 ( 16K) | 15 | 0 1 ( 8K) | 18 | 0 0 ( 4K) | 21 | 0 vm.max_wired: 2659648 vm.background_launder_max: 20480 vm.background_launder_rate: 4096 vm.background_launder_target: 12200 vm.act_scan_laundry_weight: 3 vm.pageout_oom_seq: 12 vm.pageout_lock_miss: 0 vm.disable_swapspace_pageouts: 0 vm.lowmem_period: 1 vm.pageout_update_period: 600 vm.pageout_wakeup_thresh: 56452 vm.panic_on_oom: 0 vm.page_blacklist: vm.tryrelock_restart: 31748 vm.boot_pages: 64 vm.old_msync: 0 vm.mincore_mapped: 1 vm.old_mlock: 0 vm.stats.object.bypasses: 18723 vm.stats.object.collapses: 78824 vm.stats.misc.cnt_prezero: 0 vm.stats.misc.zero_page_count: 325 vm.stats.vm.v_kthreadpages: 0 vm.stats.vm.v_rforkpages: 100 vm.stats.vm.v_vforkpages: 52157 vm.stats.vm.v_forkpages: 1018587 vm.stats.vm.v_kthreads: 103 vm.stats.vm.v_rforks: 2 vm.stats.vm.v_vforks: 1484 vm.stats.vm.v_forks: 18704 vm.stats.vm.v_interrupt_free_min: 2 vm.stats.vm.v_pageout_free_min: 34 vm.stats.vm.v_cache_count: 0 vm.stats.vm.v_laundry_count: 841044 vm.stats.vm.v_inactive_count: 2695784 vm.stats.vm.v_inactive_target: 259999 vm.stats.vm.v_active_count: 3536963 vm.stats.vm.v_wire_count: 883581 vm.stats.vm.v_free_count: 176747 vm.stats.vm.v_free_min: 51326 vm.stats.vm.v_free_target: 173333 vm.stats.vm.v_free_reserved: 10657 vm.stats.vm.v_page_count: 8134081 vm.stats.vm.v_page_size: 4096 vm.stats.vm.v_tfree: 714905915 vm.stats.vm.v_pfree: 38188448 vm.stats.vm.v_dfree: 139195941 vm.stats.vm.v_tcached: 0 vm.stats.vm.v_pdshortfalls: 114 vm.stats.vm.v_pdpages: 381445429 vm.stats.vm.v_pdwakeups: 1093 vm.stats.vm.v_reactivated: 1829047 vm.stats.vm.v_intrans: 1165647 vm.stats.vm.v_vnodepgsout: 780 vm.stats.vm.v_vnodepgsin: 407218 vm.stats.vm.v_vnodeout: 383 vm.stats.vm.v_vnodein: 74309 vm.stats.vm.v_swappgsout: 11838348 vm.stats.vm.v_swappgsin: 2406191 vm.stats.vm.v_swapout: 825054 vm.stats.vm.v_swapin: 1142018 vm.stats.vm.v_ozfod: 1020 vm.stats.vm.v_zfod: 33027903 vm.stats.vm.v_cow_optim: 2572 vm.stats.vm.v_cow_faults: 2530416 vm.stats.vm.v_io_faults: 310268 vm.stats.vm.v_vm_faults: 44268076 vm.stats.sys.v_soft: 5808251 vm.stats.sys.v_intr: 8974021 vm.stats.sys.v_syscall: 251679096 vm.stats.sys.v_trap: 272835752 vm.stats.sys.v_swtch: 260966303 vm.v_free_severe: 30991 vm.max_kernel_address: 18446744073709547520 vm.min_kernel_address: 18446741874686296064 vm.kstacks: 1130 vm.kstack_cache_size: 128 vm.zone_warnings: 1 vm.zone_count: 120 vm.nswapdev: 1 vm.dmmax: 32 vm.swap_fragmentation: Free space on device gpt/swap.eli: number of maximal free ranges: 20935 largest free range: 20512000 average maximal free range size: 1418 number of maximal free ranges of different sizes: count | size range ----- | ---------- 12501 | 1 2117 | 2 1473 | 3 to 4 789 | 5 to 7 658 | 8 to 12 593 | 13 to 20 906 | 21 to 33 298 | 34 to 54 298 | 55 to 88 240 | 89 to 143 191 | 144 to 232 176 | 233 to 376 137 | 377 to 609 92 | 610 to 986 105 | 987 to 1596 91 | 1597 to 2583 76 | 2584 to 4180 51 | 4181 to 6764 37 | 6765 to 10945 33 | 10946 to 17710 27 | 17711 to 28656 10 | 28657 to 46367 14 | 46368 to 75024 9 | 75025 to 121392 3 | 121393 to 196417 2 | 196418 to 317810 4 | 317811 to 514228 3 | 514229 to 832039 1 | 20512000 vm.swap_async_max: 4 vm.swap_maxpages: 65072752 vm.swzone: 553118392 vm.swap_reserved: 11839164416 vm.swap_total: 128849018880 vm.phys_pager_cluster: 1024 vm.kmem_map_free: 32650514432 vm.kmem_map_size: 666681344 vm.kmem_size_scale: 1 vm.kmem_size_max: 1319413950874 vm.kmem_size_min: 0 vm.kmem_zmax: 65536 vm.kmem_size: 33317195776 vm.md_malloc_wait: 0