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)