From owner-freebsd-emulation@freebsd.org Sun Jan 6 00:08:07 2019 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9F3E4142A147 for ; Sun, 6 Jan 2019 00:08:07 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic313-11.consmr.mail.ne1.yahoo.com (sonic313-11.consmr.mail.ne1.yahoo.com [66.163.185.34]) (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 AF3C774E07 for ; Sun, 6 Jan 2019 00:08:06 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: 76LtlWIVM1mONS_5AJcjJiLibmwmaDGgKtEJ_vAyPzmuOs2UgYbR3BRsoiGPoNq mxiZwaufhrobHLp6JseeJuiE4DX6F9JMPMF0m7X4prU.e67oIuIom2u0bRz6bd9X_9CAGf10fGdX HG7fZRNF6YiXAOs.Pvk54cxI5rTRR2VRL8LFVtBQDGpkShFKJxNAi4Hc9eiUI02XRZztRDhvQ_2S k3tkgAa7MfRfBKmnD0ISxuBS79kpSPr2f.25iteWMkXeMV278O5lsiO0o8gDyM6gLgJhI4aGyPtX iy2wlD7yPHHqK.0_EDKiHhYed8XA3W0PHqY78AfUyxNYnIz9zqHv62FHEfZ4j2Qd1Ne3NqXawJ9A cdtfTWG9GZ7K_3dpxVPnjJE7Z14Ar9bihAJMUtufGFMo3HReYdiWa4jvtEaw_2KbYnO4mtQ7UFa6 aHQUmNZligcJEbV39uNtnJiSyNBineFOZ8urgfBIG5hOanG.H7Us.iWig18ikX0vag_gCD4hCBpE zJshonBjpo39JEepPn0GFkkvkB6c6YhzTDqDvWuF7fJq5Gb7qhGCxgjroNvuzdioB0jq_cN6Tk1h yVqRmYQj4HYKze6zXDomF8zqd6ji3FXgZvtB2hSr0PKFsz4dxB6VDbw.8Vg3Dhbh.qRkf5G..vhO MkgbyhMGnK7WfeSHeseBk31peFMapl51q0HkZ5ahIlfqooNRE6wg63TGU1bfzy1Rg6SA8Lskc8NH sAmhV0W6E7goLUDuVaqeXDs20K5lbaoC6r559hRleybwWLwhaDixkukZnJ6ToEL6QkdP8p8BDx7C KXhQneeDD_vmSO3UxE5lzqXsmqPx1cHYEIeEYd5LX.sDaNFTTHV5eY3sLbjmGu7UaQYMFySf_i4D biZMshndX3w4ZfnvZ524toUAavfGOJfJLncj9VOO53PDK74bcHLP7TXA4aH2uHLRs9jWvwW95rXW KRY3bqMERubyUGSLiPJYg.Q3O96BUn5rCLnQU9GSyTw6Hd5MPSn3SoQLOTq2LG4.2fQRNxM1mVht nukvJJxoIom.aglGlu2bQxtXVuAECUhT1vtmTDFpymfl8ZfZ_RulauQQ5vPP8pv4T2FWk8wPf3tu x Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ne1.yahoo.com with HTTP; Sun, 6 Jan 2019 00:08:00 +0000 Received: from c-67-170-167-181.hsd1.or.comcast.net (EHLO [192.168.1.109]) ([67.170.167.181]) by smtp416.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 9a1f6b9d10e94375947f0748fc3e99e3; Sun, 06 Jan 2019 00:07:57 +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 12.2 \(3445.102.3\)) Subject: qemu-*-static struct target_msgbuf is greatly mismatched with /usr/include/sys/msgbuf.h 's struct msgbuf Message-Id: <17753D21-4E88-41BB-91AE-D5BE4149CB18@yahoo.com> Date: Sat, 5 Jan 2019 16:07:56 -0800 Cc: Sean Bruno To: Kyle Evans , freebsd-emulation@freebsd.org, ports-list freebsd X-Mailer: Apple Mail (2.3445.102.3) X-Rspamd-Queue-Id: AF3C774E07 X-Spamd-Bar: + X-Spamd-Result: default: False [1.38 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MV_CASE(0.50)[]; FREEMAIL_FROM(0.00)[yahoo.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[yahoo.com:+]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36646, ipnet:66.163.184.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)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_SPAM_SHORT(0.94)[0.945,0]; NEURAL_HAM_LONG(-0.39)[-0.389,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(1.00)[ip: (3.13), ipnet: 66.163.184.0/21(1.09), asn: 36646(0.87), country: US(-0.08)]; NEURAL_SPAM_MEDIUM(0.34)[0.336,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[34.185.163.66.list.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jan 2019 00:08:07 -0000 [The context here is FreeBSD head -r341836 based and ports head -r488859 = based.] /usr/include/sys/msgbuf.h has: struct msgbuf { char *msg_ptr; /* pointer to buffer */ #define MSG_MAGIC 0x063062 u_int msg_magic; u_int msg_size; /* size of buffer area */ u_int msg_wseq; /* write sequence number */ u_int msg_rseq; /* read sequence number */ u_int msg_cksum; /* checksum of contents */ u_int msg_seqmod; /* range for sequence numbers */ int msg_lastpri; /* saved priority value */ u_int msg_flags; #define MSGBUF_NEEDNL 0x01 /* set when newline needed */ struct mtx msg_lock; /* mutex to protect the buffer = */ }; = /wrkdirs/usr/ports/emulators/qemu-user-static/work/qemu-bsd-user-4ef7d07/b= sd-user/syscall_defs.h has: struct target_msgbuf { abi_long mtype; /* message type */ char mtext[1]; /* body of message */ }; I'm guessing here that target_msgbuf is not meant to be a match to msgbuf . Either way, there is no point in comparing sizes or field offsets as things are now. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-emulation@freebsd.org Sun Jan 6 00:38:12 2019 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8F1AE142AE59 for ; Sun, 6 Jan 2019 00:38:12 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic316-9.consmr.mail.gq1.yahoo.com (sonic316-9.consmr.mail.gq1.yahoo.com [98.137.69.33]) (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 A12C276293 for ; Sun, 6 Jan 2019 00:38:10 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: HxWLYuEVM1kIblDh8KxYkwwohrGVBoQ.JbX7UCObAprJG6D8szlCUPyK_mJJp8a h7BT6aFwTK4_2LvmwKTGTsJSgJoDOudaYq.2xf9.vvMx.LOaTbWwb.yyFxBozz3AqyMNlna6u3F2 4wguU59P4v5AlLJzxie1IHF_WwmcjhlOhIqCn6bawJrlrI59p1O6pd1UUBIsdnrW3j1kBM5ok3Ow 7sTSasJKFhjL2GM4VQxBdfFakhc.VXuGCPvzwis6oU4QaHL8cmzcBRr144lLbIw9j24cOjcjFr5V yEv5YLSCo5reN8QbwSwgTl0ugSfQjoy9D37xNhyfHZtvOGtTmeP651rHIsK4Pt1P9AFe7PhZWTJs JC7P4AS3c0LtYVl_3R11VAMofCxupYGh83.qZgUCDd5iFvIc3TNWmJfOo_Z_LyA8H_0XX2C1VV_g o87KbtCaFMv943drc5A14yAIPdvr0QvjP1NBiG0DKCEzHfURqXYfySJY26TqTp1h_83d6hASNTc5 5T0w.PlvR7izOE3.I.q9CpF8gUvp9zdvGZ6tft0O7azEmxiy7JV99rbsp94nF13GfRDe96WBBwlh Gt8taq_XI5HUtvrogFi3HLdvme.fajEHlX1AyxjblIX4HgYq4zoCvDE6sVxejYdW83T1OFim.rNO YqFUddwnhndb2VnyYUtQKdtAR2NSffvA3roNKZmVv15f5yp7lg7YSoukaF6Q7OdUE0inVtOq4G6l 0UPQXGkpiLtaXDObLkT1xKnZFSBQgnS6.dZNNBhjgqUKo7bhxfBbC3Bkwe86p0SzkeXB0Xq.pNzY gO9RQIw3lNAUnxpnZWtUZ9cuxZmLPcMtpOMyi8bdnTa.AzUq0.ZFlgu2vs3T.y.B1zfFIUNXhkaO QHmO.MP.IbJJIw1MhC_uBVIGL1QFyt1f5F6ykK7lUEqR89xTpbscogdLUAIAG9urvePET57_fN68 so2vRhE2Jf7EDxUvjZ5H4REr_m0gAMwIKtaI9o3Vz1oq78m7D3kYGMY9eZtvuekW.tiXPEaLA7ZA .7pYdrqvZpWZuPhUURas4mND702lPCcfPtgeC7PZyvu0r1IsUwQNR4ISLC_2JlE8BtmPdh7k0Jp7 2TmS.RQ-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.gq1.yahoo.com with HTTP; Sun, 6 Jan 2019 00:38:03 +0000 Received: from c-67-170-167-181.hsd1.or.comcast.net (EHLO [192.168.1.109]) ([67.170.167.181]) by smtp403.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 38d7065d9c12fa5f9f3ace1278fddde8; Sun, 06 Jan 2019 00:38:00 +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 12.2 \(3445.102.3\)) Subject: qemu-arm-static has target_msqid_ds too small vs. arm natives msqid_ds Message-Id: Date: Sat, 5 Jan 2019 16:37:59 -0800 Cc: Sean Bruno , freebsd-arm To: Kyle Evans , freebsd-emulation@freebsd.org, ports-list freebsd X-Mailer: Apple Mail (2.3445.102.3) X-Rspamd-Queue-Id: A12C276293 X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.90 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MV_CASE(0.50)[]; FREEMAIL_FROM(0.00)[yahoo.com]; RCPT_COUNT_FIVE(0.00)[5]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[yahoo.com:+]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-0.74)[-0.736,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(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)[]; DWL_DNSWL_NONE(0.00)[yahoo.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)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(-0.66)[ip: (-4.28), ipnet: 98.137.64.0/21(0.60), asn: 36647(0.48), country: US(-0.08)]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[33.69.137.98.list.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jan 2019 00:38:12 -0000 [The context here is FreeBSD head -r341836 based and ports head -r488859 = based.] Note: I assume that "struct target_msqid_ds" is meant to match the = memory layout of the target's native "struct msqid_ds". Otherwise the reported = differences below could be irrelevant. For armv7 (and likely armv6) the following code: printf("sizeof(struct msqid_ds) =3D %lu\n", (unsigned long) = sizeof(struct msqid_ds)); printf("msg_perm %lu\n", (unsigned long) offsetof(struct = msqid_ds, msg_perm)); printf("__msg_first %lu\n", (unsigned long) offsetof(struct = msqid_ds, __msg_first)); printf("__msg_last %lu\n", (unsigned long) offsetof(struct = msqid_ds, __msg_last)); printf("msg_cbytes %lu\n", (unsigned long) offsetof(struct = msqid_ds, msg_cbytes)); printf("msg_qnum %lu\n", (unsigned long) offsetof(struct = msqid_ds, msg_qnum)); printf("msg_qbytes %lu\n", (unsigned long) offsetof(struct = msqid_ds, msg_qbytes)); printf("msg_lspid %lu\n", (unsigned long) offsetof(struct = msqid_ds, msg_lspid)); printf("msg_lrpid %lu\n", (unsigned long) offsetof(struct = msqid_ds, msg_lrpid)); printf("msg_stime %lu\n", (unsigned long) offsetof(struct = msqid_ds, msg_stime)); printf("msg_rtime %lu\n", (unsigned long) offsetof(struct = msqid_ds, msg_rtime)); printf("msg_ctime %lu\n", (unsigned long) offsetof(struct = msqid_ds, msg_ctime)); produces: sizeof(struct msqid_ds) =3D 80 msg_perm 0 __msg_first 24 __msg_last 28 msg_cbytes 32 msg_qnum 36 msg_qbytes 40 msg_lspid 44 msg_lrpid 48 msg_stime 56 msg_rtime 64 msg_ctime 72 However gdb reports for qemu-arm-static (on amd64): (gdb) p/d sizeof(struct target_msqid_ds) $14 =3D 64 (gdb) p/d &((struct target_msqid_ds *)0)->msg_first $15 =3D 24 (gdb) p/d &((struct target_msqid_ds *)0)->msg_last=20 $16 =3D 28 (gdb) p/d &((struct target_msqid_ds *)0)->msg_cbytes $17 =3D 32 (gdb) p/d &((struct target_msqid_ds *)0)->msg_qnum =20 $18 =3D 36 (gdb) p/d &((struct target_msqid_ds *)0)->msg_qbytes $19 =3D 40 (gdb) p/d &((struct target_msqid_ds *)0)->msg_lspid=20 $20 =3D 44 (gdb) p/d &((struct target_msqid_ds *)0)->msg_lrpid $21 =3D 48 (gdb) p/d &((struct target_msqid_ds *)0)->msg_stime $22 =3D 52 (gdb) p/d &((struct target_msqid_ds *)0)->msg_rtime $23 =3D 56 (gdb) p/d &((struct target_msqid_ds *)0)->msg_ctime $24 =3D 60 so after msg_lrpid the offsets are different. /usr/include/sys/msg.h has: struct msqid_ds { struct ipc_perm msg_perm; /* msg queue permission bits */ struct msg *__msg_first; /* first message in the queue */ struct msg *__msg_last; /* last message in the queue */ msglen_t msg_cbytes; /* number of bytes in use on the queue = */ msgqnum_t msg_qnum; /* number of msgs in the queue */ msglen_t msg_qbytes; /* max # of bytes on the queue */ pid_t msg_lspid; /* pid of last msgsnd() */ pid_t msg_lrpid; /* pid of last msgrcv() */ time_t msg_stime; /* time of last msgsnd() */ time_t msg_rtime; /* time of last msgrcv() */ time_t msg_ctime; /* time of last msgctl() */ }; = /wrkdirs/usr/ports/emulators/qemu-user-static/work/qemu-bsd-user-4ef7d07/b= sd-user/syscall_defs.h has: struct target_msqid_ds { struct target_ipc_perm msg_perm; /* msg queue permission bits */ abi_ulong msg_first; /* first message in the queue */ abi_ulong msg_last; /* last message in the queue */ abi_ulong msg_cbytes; /* # of bytes in use on the queue */ abi_ulong msg_qnum; /* number of msgs in the queue */ abi_ulong msg_qbytes; /* max # of bytes on the queue */ int32_t msg_lspid; /* pid of last msgsnd() */ int32_t msg_lrpid; /* pid of last msgrcv() */ abi_ulong msg_stime; /* time of last msgsnd() */ abi_ulong msg_rtime; /* time of last msgrcv() */ abi_ulong msg_ctime; /* time of last msgctl() */ }; abi_ulong's for msg_stime, msg_rtime, and msg_ctime are the wrong size for armv7: arm uses 64-bit time_t. As of 12+ only i386 uses 32-bit time_t if I understand right. In 11.x 32-bit powerpc also uses 32-bit time_t. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-emulation@freebsd.org Sun Jan 6 01:02:19 2019 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F4022142BBB4 for ; Sun, 6 Jan 2019 01:02:18 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic301-2.consmr.mail.bf2.yahoo.com (sonic301-2.consmr.mail.bf2.yahoo.com [74.6.129.41]) (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 DD06477770 for ; Sun, 6 Jan 2019 01:02:17 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: RAkBoQQVM1lJTECdJTspKxtAYzmg9uKso.YOU3wfvUJ_TuJE0lJ213S2kyCFSdH 3Dqr9_NEw4z7w4fOxlCws1K1PPpAZKeWnhjXQRdH1EPcoBFiEdPRZyW9Uh8LeoErdOabCpjf4odH Gp7oxKw4sWloZYnL6_xQrc_H68mZAm56dxnU0roREulrez8KUvRipuAzrUtZwsqYdl2RJD19f.W_ LmsrIO1Q9oGVShyetCEYe8a7fSHtByreib8.jsz9DIu.4EK.t5lbkIwXuLkIBw6VhAv11KPjmQtL AWxp3.FMn5iiuOvytamaJD_H.7ijVF3IAkBS40eqMS6cwMKXOtWBuYOC6FxdWrTvy88KNWMqGy06 SdmDGNDGBY9eMfA1Zld4.XG0CFs_LLcTaoi26GdS_e8SaLsKbsS9O3e9rT7PfCi25ZikHEgyljPh w5mOwdiAbkDbAdTRvMxjBFKKpx33vbqC4S_TvQln2CFiy0IZFwiI_nEBpAJNarKHsLt.2ro5lfJy EjnMZBaTPN29WihjBpUETahW1mCJNtQ1tLI9Mo5xX7itubvfa8OPDMRI.VEKb5aqafm.j0ybFXOj .gulvsLvPpUrgDSl9NTl4AstS6xJpDSxRO_vaxERcJ1iKtUtP8lqJ9yQ0BC7AF3jftU_hBlYHolS FEm2NVc33ZGYtOfrq9Ewpzy3qDVmsNupB_.k49lG3C4Exs28OF_R3O6l0oa6NIotIAkqZlg0F1bO 6rqSjERUjfSmcM2FzaKF9UXyLLBi7VLrA17_rUT19hXcY2y7t4gf1V2Wt2u8inSNZVE_EP1YpfrK RSSOla5SBxcwDRg5PF4d.YRZYoDE07jRIPBAXFfz3ea2KCHjUX8Zad2UGBlph21QiY6teoaAvRof FmMqhUb3h5LgwJFRoVKNoKTSSf8djul7XTwJ7aBum0s72pwPriKe__71NEvjTrr3FlNcBlh7Ze9W 6UL.MsP7TeDnRJYHJQnLzu45Q057gOUb11BKqNVF8dy1q4bGPfsh4FMrXlY3EeajnOQeUDau_NfB WqUywHH5ZTkdDA92Lr0cdGCkZdKEwQdVAA22VYLkFy3OjZgPSRaddkU_B9BUtsnM8U0ffsJ8fGjP PNWAzRLGd Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.bf2.yahoo.com with HTTP; Sun, 6 Jan 2019 01:02:16 +0000 Received: from c-67-170-167-181.hsd1.or.comcast.net (EHLO [192.168.1.109]) ([67.170.167.181]) by smtp421.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 78e25cd842cd36be75c62a6ccd5821ed; Sun, 06 Jan 2019 01:02:16 +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 12.2 \(3445.102.3\)) Subject: qemu-arm-static has target_semd_ds too small vs. arm natives semid_ds Message-Id: <3480CAB5-6F8C-4160-97C7-AF38A5F55078@yahoo.com> Date: Sat, 5 Jan 2019 17:02:13 -0800 Cc: Sean Bruno , freebsd-arm To: Kyle Evans , freebsd-emulation@freebsd.org, ports-list freebsd X-Mailer: Apple Mail (2.3445.102.3) X-Rspamd-Queue-Id: DD06477770 X-Spamd-Bar: +++ X-Spamd-Result: default: False [3.09 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MV_CASE(0.50)[]; FREEMAIL_FROM(0.00)[yahoo.com]; RCPT_COUNT_FIVE(0.00)[5]; RCVD_COUNT_THREE(0.00)[3]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:26101, ipnet:74.6.128.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)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.98)[0.975,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(1.45)[ip: (4.72), ipnet: 74.6.128.0/21(1.45), asn: 26101(1.16), country: US(-0.08)]; NEURAL_SPAM_MEDIUM(0.75)[0.753,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.42)[0.423,0]; RCVD_IN_DNSWL_NONE(0.00)[41.129.6.74.list.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jan 2019 01:02:19 -0000 [The context here is FreeBSD head -r341836 based and ports head -r488859 = based.] Note: I assume that "struct target_semd_ds" is meant to match the memory = layout of the target's native "struct semid_ds". Otherwise the reported = differences below could be irrelevant. For armv7 (and likely armv6) the following code: printf("sizeof(struct semid_ds) =3D %lu\n", (unsigned long) = sizeof(struct semid_ds)); printf("sem_perm %lu\n", (unsigned long) offsetof(struct = semid_ds, sem_perm)); printf("__sem_base %lu\n", (unsigned long) offsetof(struct = semid_ds, __sem_base)); printf("sem_nsems %lu\n", (unsigned long) offsetof(struct = semid_ds, sem_nsems)); printf("sem_otime %lu\n", (unsigned long) offsetof(struct = semid_ds, sem_otime)); printf("sem_ctime %lu\n", (unsigned long) offsetof(struct = semid_ds, sem_ctime)); =20 produces: sizeof(struct semid_ds) =3D 48 sem_perm 0 __sem_base 24 sem_nsems 28 sem_otime 32 sem_ctime 40 However gdb reports for qemu-arm-static (on amd64): (gdb) p/d sizeof(struct target_semid_ds) $25 =3D 40 (gdb) p/d &((struct target_semid_ds *)0)->sem_perm=20 $26 =3D 0 (gdb) p/d &((struct target_semid_ds *)0)->sem_base =20 $27 =3D 24 (gdb) p/d &((struct target_semid_ds *)0)->sem_nsems $28 =3D 28 (gdb) p/d &((struct target_semid_ds *)0)->sem_otime $29 =3D 32 (gdb) p/d &((struct target_semid_ds *)0)->sem_ctime $30 =3D 36 so after sem_otime the offsets are different. /usr/include/sys/sem.h has: struct semid_ds { struct ipc_perm sem_perm; /* operation permission struct = */ struct sem *__sem_base; /* pointer to first semaphore in = set */ unsigned short sem_nsems; /* number of sems in set */ time_t sem_otime; /* last operation time */ time_t sem_ctime; /* last change time */ /* Times measured in secs since = */ /* 00:00:00 UTC, Jan. 1, 1970, = without leap seconds */ }; = /wrkdirs/usr/ports/emulators/qemu-user-static/work/qemu-bsd-user-4ef7d07/b= sd-user/syscall_defs.h has: struct target_semid_ds { struct target_ipc_perm sem_perm; /* operation permission struct */ abi_ulong sem_base; /* pointer to first semaphore in set */ uint16_t sem_nsems; /* number of sems in set */ abi_ulong sem_otime; /* last operation time */ abi_ulong sem_ctime; /* times measured in secs */ }; abi_ulong's for sem_otime, and sem_otime are the wrong size for armv7: arm uses 64-bit time_t. As of 12+ only i386 uses 32-bit time_t if I understand right. In 11.x 32-bit powerpc also uses 32-bit time_t. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-emulation@freebsd.org Sun Jan 6 01:14:42 2019 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1CEE7142C9E3 for ; Sun, 6 Jan 2019 01:14:42 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic305-22.consmr.mail.ne1.yahoo.com (sonic305-22.consmr.mail.ne1.yahoo.com [66.163.185.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 60332803BC for ; Sun, 6 Jan 2019 01:14:41 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: rqlVTQkVM1mle7vVVQHzbBati3W4pbVhylEbVBIRWZj9txFuvti4ZZGSjZ0iIl1 ut_oXcnNnjT9Tv3iA6ZjnDdAMqo7cOn0LtdiaRne2JMDQTQ1RaUzCcb4wNkbNkVJQ0Gb6TMYloi5 1oSGgrxdctx6LjWbcDvHh7RgjUkEXvNVS4XPs1wyrBifmePJ8_Fj.CrGOrZzvcSULpA6bSWmYg_y GkaFUk63AUvmSJpX.aKDpVxEtSXepjegapKuM7jB7tPjpgCoO5Pz6AH..MJQ6sah4aob3gvKoMt7 Dxn64J9Sckv1O2W0au5HNMP3I16jJbOexrjBib_FnpYV1LoC0uKrIis76tTMVx4nzRb5NTmbF3ex Ugf5eRtCeYqJKE_OjnnJruIIsc9bst7S3HED7Y9RCvxtaYkBUOU6UpKTyNngeajhz5RAEzToVq6s TeX2ozfB0yN.j1sEHvkMqjpB8YDPQMX.xM7jZixa8vuk4iYzlMInRN3zJM.0zmaq23VyWgSs65HN jwd_yh0lJExMcnavjvM7KouOxsjq_AXwa__0KPspf2qdhjvuhZmeqxWSXIAwJrsNP8rYA7wbNHF2 NglM2pd2cvqNJwv1iPFEqisN6IvY_yJWVKTf.XSYXpd57K5MeCI71Mo_40gqPFjic4B80yiccY.c R85FqwbGEXMXzdU6bSxABow4JyeQOeFRCl8Kmp0BZquQLSvU5CBYCeZ0e1DXZtrEIdyPxoY6SB3_ 9FMgNdcga_HCsTc2myeTn_rZrNaq1AHLiXrC4jo29VoV62J71TfTD482sFYJGwanLwwVprV6hdf5 aA80rr9jLzwMeYB9dMfCSif__R1foIfHaVs2Nrze8FpewLf8.2_MbjlSrE0l0ROPz2Vs1YZt7Ahw D5k6zzFurAXdTCslSt4K6Iv_8_cBgzF_UWSvyus8nCntKQun7tMoTBdIJvl.uUo4TdX6bbK7J34I OMDo0uvWv3vcMvnmfbT6r7B9m22Ix0SSt_6eztmk3b1K6hN6g3akG4OVPWGGaGN59drndQQ9UUKO K1aBaOdtenLGWZM0qoOwMksgfNXU_SNvIszlLYyj5Lk1Kiotk_MVTnDcVDX.yxn9ykbbs6xOD5r9 6AQ5aD7nct0o- Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.ne1.yahoo.com with HTTP; Sun, 6 Jan 2019 01:14:34 +0000 Received: from c-67-170-167-181.hsd1.or.comcast.net (EHLO [192.168.1.109]) ([67.170.167.181]) by smtp415.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 963a94ea3428a8a4c9e56e4a682cf370; Sun, 06 Jan 2019 01:14:30 +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 12.2 \(3445.102.3\)) Subject: qemu-arm-static has target_shmd_ds too small vs. arm native's shmid_ds Message-Id: <6B222E96-A644-46A7-9D1C-D164ED465631@yahoo.com> Date: Sat, 5 Jan 2019 17:14:27 -0800 Cc: Sean Bruno , freebsd-arm To: Kyle Evans , freebsd-emulation@freebsd.org, ports-list freebsd X-Mailer: Apple Mail (2.3445.102.3) X-Rspamd-Queue-Id: 60332803BC X-Spamd-Bar: + X-Spamd-Result: default: False [1.13 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MV_CASE(0.50)[]; FREEMAIL_FROM(0.00)[yahoo.com]; RCPT_COUNT_FIVE(0.00)[5]; RCVD_COUNT_THREE(0.00)[3]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36646, ipnet:66.163.184.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)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.95)[0.945,0]; NEURAL_HAM_LONG(-0.47)[-0.469,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.93)[ip: (2.77), ipnet: 66.163.184.0/21(1.09), asn: 36646(0.87), country: US(-0.08)]; NEURAL_SPAM_MEDIUM(0.23)[0.230,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[148.185.163.66.list.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jan 2019 01:14:42 -0000 [The context here is FreeBSD head -r341836 based and ports head -r488859 = based.] Note: I assume that "struct target_shmd_ds" is meant to match the memory = layout of the target's native "struct shmid_ds". Otherwise the reported = differences below could be irrelevant. For armv7 (and likely armv6) the following code: printf("sizeof(struct shmid_ds) =3D %lu\n", (unsigned long) = sizeof(struct shmid_ds)); printf("shm_perm %lu\n", (unsigned long) offsetof(struct = shmid_ds, shm_perm)); printf("shm_segsz %lu\n", (unsigned long) offsetof(struct = shmid_ds, shm_segsz)); printf("shm_lpid %lu\n", (unsigned long) offsetof(struct = shmid_ds, shm_lpid)); printf("shm_cpid %lu\n", (unsigned long) offsetof(struct = shmid_ds, shm_cpid)); printf("shm_nattch %lu\n", (unsigned long) offsetof(struct = shmid_ds, shm_nattch)); printf("shm_atime %lu\n", (unsigned long) offsetof(struct = shmid_ds, shm_atime)); printf("shm_dtime %lu\n", (unsigned long) offsetof(struct = shmid_ds, shm_dtime)); printf("shm_ctime %lu\n", (unsigned long) offsetof(struct = shmid_ds, shm_ctime)); produces: sizeof(struct shmid_ds) =3D 64 shm_perm 0 shm_segsz 24 shm_lpid 28 shm_cpid 32 shm_nattch 36 shm_atime 40 shm_dtime 48 shm_ctime 56 However gdb reports for qemu-arm-static (on amd64): (gdb) p/d &((struct target_shmid_ds *)0)->shm_perm $33 =3D 0 (gdb) p/d &((struct target_shmid_ds *)0)->shm_segsz $34 =3D 24 (gdb) p/d &((struct target_shmid_ds *)0)->shm_lpid=20 $35 =3D 28 (gdb) p/d &((struct target_shmid_ds *)0)->shm_cpid $36 =3D 32 (gdb) p/d &((struct target_shmid_ds *)0)->shm_nattch $37 =3D 36 (gdb) p/d &((struct target_shmid_ds *)0)->shm_atime=20 $38 =3D 40 (gdb) p/d &((struct target_shmid_ds *)0)->shm_dtime $39 =3D 44 (gdb) p/d &((struct target_shmid_ds *)0)->shm_ctime $40 =3D 48 so after shm_atime the offsets are different. /usr/include/sys/shm.h has: struct shmid_ds { struct ipc_perm shm_perm; /* operation permission = structure */ size_t shm_segsz; /* size of segment in bytes */ pid_t shm_lpid; /* process ID of last shared memory = op */ pid_t shm_cpid; /* process ID of creator */ shmatt_t shm_nattch; /* number of current attaches */ time_t shm_atime; /* time of last shmat() */ time_t shm_dtime; /* time of last shmdt() */ time_t shm_ctime; /* time of last change by = shmctl() */ }; = /wrkdirs/usr/ports/emulators/qemu-user-static/work/qemu-bsd-user-4ef7d07/b= sd-user/syscall_defs.h has: struct target_shmid_ds { struct target_ipc_perm shm_perm; /* peration permission structure = */ abi_ulong shm_segsz; /* size of segment in bytes */ int32_t shm_lpid; /* process ID of last shared memory op */ int32_t shm_cpid; /* process ID of creator */ int32_t shm_nattch; /* number of current attaches */ abi_ulong shm_atime; /* time of last shmat() */ abi_ulong shm_dtime; /* time of last shmdt() */ abi_ulong shm_ctime; /* time of last change by shmctl() */ }; abi_ulong's for shm_atime, shm_dtime, and shm_ctime are the wrong size for armv7: arm uses 64-bit time_t. As of 12+ only i386 uses 32-bit time_t if I understand right. In 11.x 32-bit powerpc also uses 32-bit time_t. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-emulation@freebsd.org Sun Jan 6 05:16:02 2019 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E40281435870 for ; Sun, 6 Jan 2019 05:16:01 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic301-30.consmr.mail.ne1.yahoo.com (sonic301-30.consmr.mail.ne1.yahoo.com [66.163.184.199]) (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 9BEC38933D for ; Sun, 6 Jan 2019 05:16:00 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: K3siBVEVM1mKmInREghJ4j9LGRe3n769QmR0HPI7RfuOKTMdENjM..wcazcmhMz lDG_hxcl02h9D1koLOz2r0TOCV2Ccrf7z4wfwSyzziMpu49vtpcVjNamins_Fva98.4XunzFauyy 73TdEHfhjWSRM3H5ABG3creVDg10e_ZtoLXk7X7OS8qZBgpSJ5nPf479ssHsMNRUY3NjGg.4iHZs tCtbU3CnP4v.lPRla6jT31jTqLJcd08.t.56U3tbSJF2SkeCpR9f8L4jQz9ZO94BrmtWxKhNlFRa Bs4iDX4UI8jY4rF.pMA7SHnYHBnxeW84Rjh11QC07zpYZvSp1JqsPO6sFZyrkUK2dONr300q8Ne4 XlIraNcapTaXWiAgOsi.ZfxelU32II4ANr2_TgidY3wQBovVC.7VTqHrwigshG2Ff.kADOCf.a95 WwJKrdBWQIfMecEfghtaqbvbLQerXO.HEsGXjN4YSaTGa0zQltzYffR820PujMytdYSkl55h_5_F XuROJqKKaT0CfCGG2oUHKQPEeFVZk5g2inpbYNeuneoA4Zvgho7fcgXwhUbtXHWqNzRTFtj2iUNQ tIYnW9IVbe7V3e_qeIyuKN.cbwR1mp8HPrBxAcdFzybeCngvXj2UzPFakJpbUCTUQSH6PC9YFj0f yCrqUZHz3W3SfsQogGPjCVPZ7IUfvNd7qsq4cOJVbv9at2GcHTcp8bGvMNp.uOF0nHm3xdnmlItw gv2gLMKVnQ.btdEXo3Ya4AoB8fZoS89HNjxXVm1F34cebegdBgn2W0Vo5B0RnZgUJq29JpaEpB_E lV5nzCpEhOuKX7mh4g5pEdHgQO8mnEd634RQ2XQvTHUu4.bMyRUDxt82DzS6MdFdVN0VbK_KG5jd oMMmrs.ypwlPcrs25bkwq6nxBLUCyczLElyNdMM3_ksub.H6QzXrsSUglRp56aAYpNlHA9C5V5hi RQ6kWiZqFe4svbpzA41ulf99dsb0KdyL6VrzQ870qQefT42eTApprN4l1P5Uwc2TujCEqOWz4Psq PMpHPknvSGuc58wKwyy4082.QMKl5mfKQTIAqCal9GFIKElKI3L98DC8CmsoW9eU.xcILaRJvlHE Wm8tf6YHvqQ-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Sun, 6 Jan 2019 05:15:53 +0000 Received: from c-67-170-167-181.hsd1.or.comcast.net (EHLO [192.168.1.109]) ([67.170.167.181]) by smtp409.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 8cab793bfb3bbecbcae688229725c3cd; Sun, 06 Jan 2019 05:15:52 +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 12.2 \(3445.102.3\)) Subject: qemu-arm-static has target_freebsd11_nstat too small vs. arm native's struct nstat Message-Id: <62F581E3-EBB6-4980-BD20-4E121D64BBC5@yahoo.com> Date: Sat, 5 Jan 2019 21:15:51 -0800 Cc: Sean Bruno , freebsd-arm To: Kyle Evans , freebsd-emulation@freebsd.org, ports-list freebsd X-Mailer: Apple Mail (2.3445.102.3) X-Rspamd-Queue-Id: 9BEC38933D X-Spamd-Bar: + X-Spamd-Result: default: False [1.08 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MV_CASE(0.50)[]; FREEMAIL_FROM(0.00)[yahoo.com]; RCPT_COUNT_FIVE(0.00)[5]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[yahoo.com:+]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36646, ipnet:66.163.184.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)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.97)[0.972,0]; NEURAL_HAM_LONG(-0.63)[-0.628,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(1.07)[ip: (3.47), ipnet: 66.163.184.0/21(1.09), asn: 36646(0.87), country: US(-0.08)]; NEURAL_SPAM_MEDIUM(0.17)[0.175,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[199.184.163.66.list.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jan 2019 05:16:02 -0000 [The context here is FreeBSD head -r341836 based and ports head -r488859 = based.] Note: I assume that "struct target_shmd_ds" is meant to match the memory = layout of the target's native "struct shmid_ds". Otherwise the reported = differences below could be irrelevant. For armv7 (and likely armv6) the following code: printf("sizeof(struct nstat) =3D %lu\n", (unsigned long) = sizeof(struct nstat)); printf("st_dev %lu\n", (unsigned long) offsetof(struct nstat, = st_dev)); printf("st_ino %lu\n", (unsigned long) offsetof(struct nstat, = st_ino)); printf("st_mode %lu\n", (unsigned long) offsetof(struct nstat, = st_mode)); printf("st_nlink %lu\n", (unsigned long) offsetof(struct nstat, = st_nlink)); printf("st_uid %lu\n", (unsigned long) offsetof(struct nstat, = st_uid)); printf("st_gid %lu\n", (unsigned long) offsetof(struct nstat, = st_gid)); printf("st_rdev %lu\n", (unsigned long) offsetof(struct nstat, = st_rdev)); printf("st_atim %lu\n", (unsigned long) offsetof(struct nstat, = st_atim)); printf("st_mtim %lu\n", (unsigned long) offsetof(struct nstat, = st_mtim)); printf("st_ctim %lu\n", (unsigned long) offsetof(struct nstat, = st_ctim)); printf("st_size %lu\n", (unsigned long) offsetof(struct nstat, = st_size)); printf("st_blocks %lu\n", (unsigned long) offsetof(struct nstat, = st_blocks)); printf("st_blksize %lu\n", (unsigned long) offsetof(struct = nstat, st_blksize)); printf("st_flags %lu\n", (unsigned long) offsetof(struct nstat, = st_flags)); printf("st_gen %lu\n", (unsigned long) offsetof(struct nstat, = st_gen)); printf("st_birthtim %lu\n", (unsigned long) offsetof(struct = nstat, st_birthtim)); produces: sizeof(struct nstat) =3D 128 st_dev 0 st_ino 4 st_mode 8 st_nlink 12 st_uid 16 st_gid 20 st_rdev 24 st_atim 32 st_mtim 48 st_ctim 64 st_size 80 st_blocks 88 st_blksize 96 st_flags 100 st_gen 104 st_birthtim 112 However gdb reports for qemu-arm-static (on amd64): (gdb) p/d sizeof(struct target_freebsd11_nstat) $41 =3D 116 (gdb) p/d &((struct target_freebsd11_nstat *)0)->st_dev =20 $42 =3D 0 (gdb) p/d &((struct target_freebsd11_nstat *)0)->st_ino $43 =3D 4 (gdb) p/d &((struct target_freebsd11_nstat *)0)->st_mode $44 =3D 8 (gdb) p/d &((struct target_freebsd11_nstat *)0)->st_nlink $45 =3D 10 (gdb) p/d &((struct target_freebsd11_nstat *)0)->st_uid =20 $46 =3D 12 (gdb) p/d &((struct target_freebsd11_nstat *)0)->st_gid $47 =3D 16 (gdb) p/d &((struct target_freebsd11_nstat *)0)->st_rdev $48 =3D 20 (gdb) p/d &((struct target_freebsd11_nstat *)0)->st_atim $49 =3D 24 (gdb) p/d &((struct target_freebsd11_nstat *)0)->st_mtim =20 $50 =3D 40 (gdb) p/d &((struct target_freebsd11_nstat *)0)->st_ctim $51 =3D 56 (gdb) p/d &((struct target_freebsd11_nstat *)0)->st_size =20 $52 =3D 72 (gdb) p/d &((struct target_freebsd11_nstat *)0)->st_blocks $53 =3D 80 (gdb) p/d &((struct target_freebsd11_nstat *)0)->st_blksize $54 =3D 88 (gdb) p/d &((struct target_freebsd11_nstat *)0)->st_flags =20 $55 =3D 92 (gdb) p/d &((struct target_freebsd11_nstat *)0)->st_gen =20 $56 =3D 96 (gdb) p/d &((struct target_freebsd11_nstat *)0)->st_birthtim $57 =3D 100 So after st_mode the offsets are wrong relative to struct nstat (native to armv7). /usr/include/sys/stat.h has: struct nstat { __uint32_t st_dev; /* inode's device */ __uint32_t st_ino; /* inode's number */ __uint32_t st_mode; /* inode protection mode */ __uint32_t st_nlink; /* number of hard links */ uid_t st_uid; /* user ID of the file's owner = */ gid_t st_gid; /* group ID of the file's group = */ __uint32_t st_rdev; /* device type */ struct timespec st_atim; /* time of last access */ struct timespec st_mtim; /* time of last data = modification */ struct timespec st_ctim; /* time of last file status = change */ off_t st_size; /* file size, in bytes */ blkcnt_t st_blocks; /* blocks allocated for file */ blksize_t st_blksize; /* optimal blocksize for I/O */ fflags_t st_flags; /* user defined flags for file = */ __uint32_t st_gen; /* file generation number */ struct timespec st_birthtim; /* time of file creation */ /* * See comment in the definition of struct freebsd11_stat * above about the following padding. */ unsigned int :(8 / 2) * (16 - (int)sizeof(struct timespec)); unsigned int :(8 / 2) * (16 - (int)sizeof(struct timespec)); }; = /wrkdirs/usr/ports/emulators/qemu-user-static/work/qemu-bsd-user-4ef7d07/b= sd-user/syscall_defs.h has: struct target_freebsd11_nstat { uint32_t st_dev; /* inode's device */ uint32_t st_ino; /* inode's number */ int16_t st_mode; /* inode protection mode */ int16_t st_nlink; /* number of hard links */ uint32_t st_uid; /* user ID of the file's owner */ uint32_t st_gid; /* group ID of the file's group */ uint32_t st_rdev; /* device type */ struct target_freebsd_timespec st_atim; /* time last accessed */ struct target_freebsd_timespec st_mtim; /* time last data = modification */ struct target_freebsd_timespec st_ctim; /* time last file status = change */ int64_t st_size; /* file size, in bytes */ int64_t st_blocks; /* blocks allocated for file */ uint32_t st_blksize; /* optimal blocksize for I/O */ uint32_t st_flags; /* user defined flags for file */ __uint32_t st_gen; /* file generation number */ /* __int32_t st_lspare; */ struct target_freebsd_timespec st_birthtim; /* time of file creation = */ /* * Explicitly pad st_birthtim to 16 bytes so that the size of * struct stat is backwards compatible. We use bitfields instead * of an array of chars so that this doesn't require a C99 compiler * to compile if the size of the padding is 0. We use 2 bitfields * to cover up to 64 bits on 32-bit machines. We assume that * CHAR_BIT is 8... */ unsigned int:(8 / 2) * (16 - (int)sizeof(struct = target_freebsd_timespec)); unsigned int:(8 / 2) * (16 - (int)sizeof(struct = target_freebsd_timespec)); } __packed; There are multiple issues here, for example: __uint32_t (native nstat) = vs. int16_t (target_nstat) for st_mode. Similarly for st_nlink. And there is = __packed changing the padding for another example. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-emulation@freebsd.org Sun Jan 6 21:00:54 2019 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 523D2149A8F1 for ; Sun, 6 Jan 2019 21:00:54 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id C8967902E6 for ; Sun, 6 Jan 2019 21:00:53 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 86BB0149A8D3; Sun, 6 Jan 2019 21:00:53 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 61D21149A8D1 for ; Sun, 6 Jan 2019 21:00:53 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (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 "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 03C24902D7 for ; Sun, 6 Jan 2019 21:00:53 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: by freefall.freebsd.org (Postfix) id 8FC281F6B7; Sun, 6 Jan 2019 21:00:52 +0000 (UTC) Delivered-To: vbox@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 40AFE1F6B5 for ; Sun, 6 Jan 2019 21:00:52 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (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 "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BE8F1902C8 for ; Sun, 6 Jan 2019 21:00:51 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id EA1E1CB72 for ; Sun, 6 Jan 2019 21:00:50 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x06L0oPI063886 for ; Sun, 6 Jan 2019 21:00:50 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x06L0oM7063881 for vbox@FreeBSD.org; Sun, 6 Jan 2019 21:00:50 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <201901062100.x06L0oM7063881@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: vbox@FreeBSD.org Subject: Problem reports for vbox@FreeBSD.org that need special attention Date: Sun, 6 Jan 2019 21:00:50 +0000 MIME-Version: 1.0 X-Rspamd-Queue-Id: 03C24902D7 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.99 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.99)[-0.988,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-Mailman-Approved-At: Sun, 06 Jan 2019 22:06:50 +0000 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jan 2019 21:00:54 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- New | 226073 | emulators/virtualbox-ose-additions -- fix two min 1 problems total for which you should take action. From owner-freebsd-emulation@freebsd.org Mon Jan 7 18:36:09 2019 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 413FE149B93D for ; Mon, 7 Jan 2019 18:36:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id B815772CFD for ; Mon, 7 Jan 2019 18:36:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 7BEB2149B93B; Mon, 7 Jan 2019 18:36:08 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 59806149B93A for ; Mon, 7 Jan 2019 18:36:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (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 "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E3E6D72CFA for ; Mon, 7 Jan 2019 18:36:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id 97928124C9; Mon, 7 Jan 2019 18:36:07 +0000 (UTC) Delivered-To: vbox@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 92E39124C8 for ; Mon, 7 Jan 2019 18:36:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (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 "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 57AFF72CF6 for ; Mon, 7 Jan 2019 18:36:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id A12D618C29 for ; Mon, 7 Jan 2019 18:36:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x07Ia6v7053024 for ; Mon, 7 Jan 2019 18:36:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x07Ia6gQ053020 for vbox@FreeBSD.org; Mon, 7 Jan 2019 18:36:06 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: vbox@FreeBSD.org Subject: [Bug 232969] emulators/virtualbox-ose: link error while linking the RDP client Date: Mon, 07 Jan 2019 18:36:06 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: guru@unixarea.de X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: vbox@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Rspamd-Queue-Id: E3E6D72CFA X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.97)[-0.975,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-Mailman-Approved-At: Mon, 07 Jan 2019 18:52:34 +0000 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jan 2019 18:36:09 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232969 --- Comment #18 from Matthias Apitz --- (In reply to Naram Qashat from comment #15) I copied your patch into the poudriere port's tree as: # ls -ltr /usr/local/poudriere/ports/ports-20181223/emulators/virtualbox-ose/files/ ... -rw-r--r-- 1 root wheel 397 Dec 23 19:45 patch-src-VBox-Installer-freebsd-virtualbox.desktop -rw-r--r-- 1 root wheel 629 Dec 23 19:45 patch-src-recompiler-Sun-testmath.c -rw-r--r-- 1 root wheel 6916 Jan 7 19:11 vbox-ose.patch and the result is: no change. I'm even not sure if your patch gets applied = at all if I have a look into the names of the other patch files... Can you please provide a patch which fits into mulators/virtualbox-ose/file= s/ ? --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.= From owner-freebsd-emulation@freebsd.org Tue Jan 8 11:15:34 2019 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2365B149C37B for ; Tue, 8 Jan 2019 11:15:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id B10A8859B7 for ; Tue, 8 Jan 2019 11:15:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 7485B149C37A; Tue, 8 Jan 2019 11:15:33 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 63052149C379 for ; Tue, 8 Jan 2019 11:15:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (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 "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 01179859B1 for ; Tue, 8 Jan 2019 11:15:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 46FF61F79 for ; Tue, 8 Jan 2019 11:15:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x08BFWAR095996 for ; Tue, 8 Jan 2019 11:15:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x08BFWfU095995 for emulation@FreeBSD.org; Tue, 8 Jan 2019 11:15:32 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: emulation@FreeBSD.org Subject: [Bug 230160] linuxulator doesn't implement madvise(MADV_DONTNEED) correctly Date: Tue, 08 Jan 2019 11:15:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: theraven@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: emulation@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jan 2019 11:15:34 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230160 David Chisnall changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |theraven@FreeBSD.org --- Comment #1 from David Chisnall --- It's actually worse than as described. Linux's value for `MADV_DONTNEED` i= s 8, which corresponds to FreeBSD's `MADV_NOCORE`, so we're not even getting the FreeBSD `MADV_DONTNEED` behaviour. This test program demonstrates the problem. Compiled on Linux, it runs to completion on a real Linux system and dies in the last assert on FreeBSD. ``` #include #include int main(void) { char *page =3D mmap(0, 4096, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); assert(page !=3D MAP_FAILED); page[0] =3D 42; assert(page[0] =3D=3D 42); madvise(page, 4096, MADV_DONTNEED); assert(page[0] =3D=3D 0); } ``` This `madvise` flag is commonly used by memory allocators to guarantee zero= ed memory for reuse. It would be nice if we had a `MADV_ZERO` that did the sa= me thing as Linux's `MADV_DONTNEED` for shared memory as well as anonymous mem= ory. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-emulation@freebsd.org Tue Jan 8 15:08:09 2019 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0862214A2528 for ; Tue, 8 Jan 2019 15:08:09 +0000 (UTC) (envelope-from pkg-fallout@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 92A388DE52 for ; Tue, 8 Jan 2019 15:08:08 +0000 (UTC) (envelope-from pkg-fallout@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 5384E14A2527; Tue, 8 Jan 2019 15:08:08 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1875014A2525; Tue, 8 Jan 2019 15:08:08 +0000 (UTC) (envelope-from pkg-fallout@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 853888DE4F; Tue, 8 Jan 2019 15:08:07 +0000 (UTC) (envelope-from pkg-fallout@FreeBSD.org) Received: from beefy11.nyi.freebsd.org (beefy11.nyi.freebsd.org [IPv6:2610:1c1:1:6080::16:ee]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6394915B4; Tue, 8 Jan 2019 15:08:07 +0000 (UTC) (envelope-from pkg-fallout@FreeBSD.org) Received: from beefy11.nyi.freebsd.org (localhost [127.0.0.1]) by beefy11.nyi.freebsd.org (8.15.2/8.15.2) with ESMTP id x08F87Vl092603; Tue, 8 Jan 2019 15:08:07 GMT (envelope-from pkg-fallout@FreeBSD.org) Received: (from root@localhost) by beefy11.nyi.freebsd.org (8.15.2/8.15.2/Submit) id x08F87hR092585; Tue, 8 Jan 2019 15:08:07 GMT (envelope-from pkg-fallout@FreeBSD.org) Date: Tue, 8 Jan 2019 15:08:07 GMT From: pkg-fallout@FreeBSD.org Message-Id: <201901081508.x08F87hR092585@beefy11.nyi.freebsd.org> To: emulation@FreeBSD.org Subject: [package - head-i386-default][www/linux-flashplayer] Failed for linux-flashplayer-32.0.0.101 in fetch Cc: pkg-fallout@FreeBSD.org X-Rspamd-Queue-Id: 853888DE4F X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.97)[-0.973,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-0.999,0] X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jan 2019 15:08:09 -0000 You are receiving this mail as a port that you maintain is failing to build on the FreeBSD package build server. Please investigate the failure and submit a PR to fix build. Maintainer: emulation@FreeBSD.org Last committer: jkim@FreeBSD.org Ident: $FreeBSD: head/www/linux-flashplayer/Makefile 486739 2018-12-06 07:39:08Z jkim $ Log URL: http://beefy11.nyi.freebsd.org/data/head-i386-default/p489631_s342855/logs/linux-flashplayer-32.0.0.101.log Build URL: http://beefy11.nyi.freebsd.org/build.html?mastername=head-i386-default&build=p489631_s342855 Log: =>> Building www/linux-flashplayer build started at Tue Jan 8 15:08:04 UTC 2019 port directory: /usr/ports/www/linux-flashplayer package name: linux-flashplayer-32.0.0.101 building for: FreeBSD head-i386-default-job-12 13.0-CURRENT FreeBSD 13.0-CURRENT 1300008 i386 maintained by: emulation@FreeBSD.org Makefile ident: $FreeBSD: head/www/linux-flashplayer/Makefile 486739 2018-12-06 07:39:08Z jkim $ Poudriere version: 3.2.8 Host OSVERSION: 1300002 Jail OSVERSION: 1300008 Job Id: 12 !!! Jail is newer than host. (Jail: 1300008, Host: 1300002) !!! !!! This is not supported. !!! !!! Host kernel must be same or newer than jail. !!! !!! Expect build failures. !!! ---Begin Environment--- SHELL=/bin/csh UNAME_p=i386 UNAME_m=i386 OSVERSION=1300008 UNAME_v=FreeBSD 13.0-CURRENT 1300008 UNAME_r=13.0-CURRENT BLOCKSIZE=K MAIL=/var/mail/root STATUS=1 HOME=/root PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin LOCALBASE=/usr/local USER=root LIBEXECPREFIX=/usr/local/libexec/poudriere POUDRIERE_VERSION=3.2.8 MASTERMNT=/usr/local/poudriere/data/.m/head-i386-default/ref POUDRIERE_BUILD_TYPE=bulk PACKAGE_BUILDING=yes SAVED_TERM= PWD=/usr/local/poudriere/data/.m/head-i386-default/ref/.p/pool P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS MASTERNAME=head-i386-default SCRIPTPREFIX=/usr/local/share/poudriere OLDPWD=/usr/local/poudriere/data/.m/head-i386-default/ref/.p SCRIPTPATH=/usr/local/share/poudriere/bulk.sh POUDRIEREPATH=/usr/local/bin/poudriere ---End Environment--- ---Begin Poudriere Port Flags/Env--- PORT_FLAGS= PKGENV= FLAVOR= DEPENDS_ARGS= MAKE_ARGS= ---End Poudriere Port Flags/Env--- ---Begin OPTIONS List--- ---End OPTIONS List--- --MAINTAINER-- emulation@FreeBSD.org --End MAINTAINER-- --CONFIGURE_ARGS-- --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- XDG_DATA_HOME=/wrkdirs/usr/ports/www/linux-flashplayer/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/www/linux-flashplayer/work HOME=/wrkdirs/usr/ports/www/linux-flashplayer/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/www/linux-flashplayer/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh --End CONFIGURE_ENV-- --MAKE_ENV-- XDG_DATA_HOME=/wrkdirs/usr/ports/www/linux-flashplayer/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/www/linux-flashplayer/work HOME=/wrkdirs/usr/ports/www/linux-flashplayer/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/www/linux-flashplayer/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local CC="cc" CFLAGS="-O2 -pipe -fstack-protector -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -fstack-protector " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector -fno-strict-aliasing " MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -m 555" BSD_INSTALL_LIB="install -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" --End MAKE_ENV-- --PLIST_SUB-- WEBPLUGIN_DIR="lib/browser_plugins/linux-flashplayer" OSREL=13.0 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/flashplayer" EXAMPLESDIR="share/examples/flashplayer" DATADIR="share/flashplayer" WWWDIR="www/flashplayer" ETCDIR="etc/flashplayer" --End PLIST_SUB-- --SUB_LIST-- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/flashplayer DOCSDIR=/usr/local/share/doc/flashplayer EXAMPLESDIR=/usr/local/share/examples/flashplayer WWWDIR=/usr/local/www/flashplayer ETCDIR=/usr/local/etc/flashplayer --End SUB_LIST-- ---Begin make.conf--- USE_PACKAGE_DEPENDS=yes BATCH=yes WRKDIRPREFIX=/wrkdirs PORTSDIR=/usr/ports PACKAGES=/packages DISTDIR=/distfiles PACKAGE_BUILDING=yes PACKAGE_BUILDING_FLAVORS=yes MACHINE=i386 MACHINE_ARCH=i386 ARCH=${MACHINE_ARCH} #### /usr/local/etc/poudriere.d/make.conf #### # XXX: We really need this but cannot use it while 'make checksum' does not # try the next mirror on checksum failure. It currently retries the same # failed mirror and then fails rather then trying another. It *does* # try the next if the size is mismatched though. #MASTER_SITE_FREEBSD=yes # Build ALLOW_MAKE_JOBS_PACKAGES with 2 jobs MAKE_JOBS_NUMBER=2 # stable/10 includes src.conf too late but make.conf is in sys.mk .if ${.CURDIR:M/poudriere/jails/10*/usr/src/usr.bin/xlint*} # Disable build of llib now that head no longer has lint(1) LINT= true .endif #### /usr/ports/Mk/Scripts/ports_env.sh #### _CCVERSION_921dbbb2=FreeBSD clang version 7.0.1 (tags/RELEASE_701/final 349250) (based on LLVM 7.0.1) Target: i386-unknown-freebsd13.0 Thread model: posix InstalledDir: /usr/bin _ALTCCVERSION_921dbbb2=none _CXXINTERNAL_acaad9ca=FreeBSD clang version 7.0.1 (tags/RELEASE_701/final 349250) (based on LLVM 7.0.1) Target: i386-unknown-freebsd13.0 Thread model: posix InstalledDir: /usr/bin "/usr/bin/ld" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld-elf.so.1" "--hash-style=both" "--enable-new-dtags" "-m" "elf_i386_fbsd" "-o" "a.out" "/usr/lib/crt1.o" "/usr/lib/crti.o" "/usr/lib/crtbegin.o" "-L/usr/lib" "/dev/null" "-lc++" "-lm" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "/usr/lib/crtend.o" "/usr/lib/crtn.o" CC_OUTPUT_921dbbb2_58173849=yes CC_OUTPUT_921dbbb2_9bdba57c=yes CC_OUTPUT_921dbbb2_6a4fe7f5=yes CC_OUTPUT_921dbbb2_6bcac02b=yes CC_OUTPUT_921dbbb2_67d20829=yes CC_OUTPUT_921dbbb2_bfa62e83=yes CC_OUTPUT_921dbbb2_f0b4d593=yes CC_OUTPUT_921dbbb2_308abb44=yes CC_OUTPUT_921dbbb2_f00456e5=yes CC_OUTPUT_921dbbb2_65ad290d=yes CC_OUTPUT_921dbbb2_f2776b26=yes CC_OUTPUT_921dbbb2_b2657cc3=yes CC_OUTPUT_921dbbb2_380987f7=yes CC_OUTPUT_921dbbb2_160933ec=yes CC_OUTPUT_921dbbb2_fb62803b=yes _OBJC_CCVERSION_921dbbb2=FreeBSD clang version 7.0.1 (tags/RELEASE_701/final 349250) (based on LLVM 7.0.1) Target: i386-unknown-freebsd13.0 Thread model: posix InstalledDir: /usr/bin _OBJC_ALTCCVERSION_921dbbb2=none ARCH=i386 OPSYS=FreeBSD _OSRELEASE=13.0-CURRENT OSREL=13.0 OSVERSION=1300008 PYTHONBASE=/usr/local CONFIGURE_MAX_CMD_LEN=262144 HAVE_PORTS_ENV=1 #### Misc Poudriere #### GID=0 UID=0 DISABLE_MAKE_JOBS=poudriere ---End make.conf--- --Resource limits-- cpu time (seconds, -t) unlimited file size (512-blocks, -f) unlimited data seg size (kbytes, -d) 524288 stack size (kbytes, -s) 65536 core file size (512-blocks, -c) unlimited max memory size (kbytes, -m) unlimited locked memory (kbytes, -l) unlimited max user processes (-u) 89999 open files (-n) 1024 virtual mem size (kbytes, -v) unlimited swap limit (kbytes, -w) unlimited socket buffer size (bytes, -b) unlimited pseudo-terminals (-p) unlimited kqueues (-k) unlimited umtx shared locks (-o) unlimited --End resource limits-- =================================================== =========================================================================== =================================================== ===> linux-flashplayer-32.0.0.101 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.10.5_5.txz [head-i386-default-job-12] Installing pkg-1.10.5_5... [head-i386-default-job-12] Extracting pkg-1.10.5_5: .......... done ===> linux-flashplayer-32.0.0.101 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of linux-flashplayer-32.0.0.101 =========================================================================== =================================================== =========================================================================== =================================================== => flash_player_npapi_linux.i386.tar.gz doesn't seem to exist in /portdistfiles/flashplayer/32.0.0.101. => Attempting to fetch https://fpdownload.macromedia.com/get/flashplayer/pdc/32.0.0.101/flash_player_npapi_linux.i386.tar.gz fetch: https://fpdownload.macromedia.com/get/flashplayer/pdc/32.0.0.101/flash_player_npapi_linux.i386.tar.gz: Not Found => Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/flashplayer/32.0.0.101/flash_player_npapi_linux.i386.tar.gz fetch: http://distcache.FreeBSD.org/ports-distfiles/flashplayer/32.0.0.101/flash_player_npapi_linux.i386.tar.gz: Not Found => Couldn't fetch it - please try to retrieve this => port manually into /portdistfiles/flashplayer/32.0.0.101 and try again. *** Error code 1 Stop. make: stopped in /usr/ports/www/linux-flashplayer From owner-freebsd-emulation@freebsd.org Tue Jan 8 16:27:30 2019 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 71E161482A7F for ; Tue, 8 Jan 2019 16:27:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 0BE146BA27 for ; Tue, 8 Jan 2019 16:27:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id BD96C1482A7C; Tue, 8 Jan 2019 16:27:29 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ABCE11482A7A for ; Tue, 8 Jan 2019 16:27:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (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 "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 42AED6BA20 for ; Tue, 8 Jan 2019 16:27:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 86A314FFD for ; Tue, 8 Jan 2019 16:27:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x08GRSbk070389 for ; Tue, 8 Jan 2019 16:27:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x08GRSPv070388 for emulation@FreeBSD.org; Tue, 8 Jan 2019 16:27:28 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: emulation@FreeBSD.org Subject: [Bug 234713] under linux emulation listxattr returns incorrect result Date: Tue, 08 Jan 2019 16:27:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.2-RELEASE X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: emulation@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jan 2019 16:27:30 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234713 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch Assignee|bugs@FreeBSD.org |emulation@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-emulation@freebsd.org Wed Jan 9 09:56:00 2019 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 76A1E149D955 for ; Wed, 9 Jan 2019 09:56:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 090D57654B for ; Wed, 9 Jan 2019 09:56:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id BACBF149D954; Wed, 9 Jan 2019 09:55:59 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A90F1149D953 for ; Wed, 9 Jan 2019 09:55:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (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 "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3422C76549 for ; Wed, 9 Jan 2019 09:55:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 5FA0BEA97 for ; Wed, 9 Jan 2019 09:55:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x099twYh070172 for ; Wed, 9 Jan 2019 09:55:58 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x099tw8P070171 for emulation@FreeBSD.org; Wed, 9 Jan 2019 09:55:58 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: emulation@FreeBSD.org Subject: [Bug 234713] under linux emulation listxattr returns incorrect result Date: Wed, 09 Jan 2019 09:55:58 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.2-RELEASE X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: fsu@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: emulation@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jan 2019 09:56:00 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234713 --- Comment #2 from Fedor Uporov --- The listxattr and other extattr related linux emulator calls are implemente= d as dummy calls. See DUMMY_XATTR macro in the linux_dummy.c. The dummy calls return values a= re ENOATTR in all cases. After the bsd_to_linux_errno mapping the linux ENODATA (-61) will be returned. Before the r326282 it was linux EOPNOTSUPP (-95). It is possible to change dummy calls return values from ENOATTR to EOPNOTSU= PP. I am not clearly understand, why it was not done from beginning? Is it poss= ible to affect someone if the error code will be changed? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-emulation@freebsd.org Wed Jan 9 14:41:53 2019 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DDC021481C1B for ; Wed, 9 Jan 2019 14:41:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 8D70C889C8 for ; Wed, 9 Jan 2019 14:41:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 489751481C17; Wed, 9 Jan 2019 14:41:52 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0DFD21481C16 for ; Wed, 9 Jan 2019 14:41:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (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 "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A65F9889BA for ; Wed, 9 Jan 2019 14:41:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id 926EE111E; Wed, 9 Jan 2019 14:41:51 +0000 (UTC) Delivered-To: vbox@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 7463B111D for ; Wed, 9 Jan 2019 14:41:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (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 "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3520E889B5 for ; Wed, 9 Jan 2019 14:41:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 6288611421 for ; Wed, 9 Jan 2019 14:41:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x09EfoIY060407 for ; Wed, 9 Jan 2019 14:41:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x09Efobf060405 for vbox@FreeBSD.org; Wed, 9 Jan 2019 14:41:50 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: vbox@FreeBSD.org Subject: maintainer-feedback requested: [Bug 234789] emulators/virtualbox-ose: fails to link on i386 with lld as system linker Date: Wed, 09 Jan 2019 14:41:50 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: vbox@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Rspamd-Queue-Id: A65F9889BA X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.98 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.98)[-0.981,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-Mailman-Approved-At: Wed, 09 Jan 2019 14:55:22 +0000 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jan 2019 14:41:53 -0000 Bugzilla Automation has asked vbox@FreeBSD.org for maintainer-feedback: Bug 234789: emulators/virtualbox-ose: fails to link on i386 with lld as sys= tem linker https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234789 --- Description --- http://package18.nyi.freebsd.org/build.html?mastername=3Dheadi386PR214864-d= efault &build=3D2019-01-05_21h00m02s http://package18.nyi.freebsd.org/data/headi386PR214864-default/2019-01-05_2= 1h00 m02s/logs/errors/virtualbox-ose-5.2.22_2.log kBuild: Linking VBoxRT ld: error: relocation R_386_PC32 cannot be used against symbol RTMemAllocTa= g; recompile with -fPIC >>> defined in /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.22/out/free= bsd. x86/release/obj/VBoxRT/r3/alloc.o >>> referenced by alloc.cpp:44 (/wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.22/src/VBo= x/Ru ntime/common/alloc/alloc.cpp:44) >>>=09=09=20 /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.22/out/free= bsd. x86/release/obj/VBoxRT/common/alloc/alloc.o:(RTMemDupTag) ld: error: relocation R_386_PC32 cannot be used against symbol memcpy; recompile with -fPIC >>> defined in /lib/libc.so.7 >>> referenced by alloc.cpp:46 (/wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.22/src/VBo= x/Ru ntime/common/alloc/alloc.cpp:46) >>>=09=09=20 /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.22/out/free= bsd. x86/release/obj/VBoxRT/common/alloc/alloc.o:(RTMemDupTag) ld: error: relocation R_386_PC32 cannot be used against symbol RTMemAllocTa= g; recompile with -fPIC >>> defined in /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.22/out/free= bsd. x86/release/obj/VBoxRT/r3/alloc.o >>> referenced by alloc.cpp:54 (/wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.22/src/VBo= x/Ru ntime/common/alloc/alloc.cpp:54) >>>=09=09=20 /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.22/out/free= bsd. x86/release/obj/VBoxRT/common/alloc/alloc.o:(RTMemDupExTag) ... Similar issues in: emulators/virtualbox-ose-additions http://package18.nyi.freebsd.org/data/headi386PR214864-default/2019-01-05_2= 1h00 m02s/logs/errors/virtualbox-ose-additions-5.2.22_2.log emulators/virtualbox-ose-additions-nox11 http://package18.nyi.freebsd.org/data/headi386PR214864-default/2019-01-05_2= 1h00 m02s/logs/errors/virtualbox-ose-additions-nox11-5.2.22_2.log emulators/virtualbox-ose-nox11 http://package18.nyi.freebsd.org/data/headi386PR214864-default/2019-01-05_2= 1h00 m02s/logs/errors/virtualbox-ose-nox11-5.2.22_2.log Most likely the link stage needs -z notext (e.g. -Wl,-z,notext in LDFLAGS). From owner-freebsd-emulation@freebsd.org Wed Jan 9 14:41:53 2019 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3F1141481C1D for ; Wed, 9 Jan 2019 14:41:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id E41BE889CD for ; Wed, 9 Jan 2019 14:41:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id A4D281481C19; Wed, 9 Jan 2019 14:41:52 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 678661481C18 for ; Wed, 9 Jan 2019 14:41:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (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 "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0626C889BC for ; Wed, 9 Jan 2019 14:41:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id D1D511120; Wed, 9 Jan 2019 14:41:51 +0000 (UTC) Delivered-To: vbox@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id CDEFC111F for ; Wed, 9 Jan 2019 14:41:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (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 "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9750D889B8 for ; Wed, 9 Jan 2019 14:41:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id C0EEA11424 for ; Wed, 9 Jan 2019 14:41:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x09Efo4D060462 for ; Wed, 9 Jan 2019 14:41:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x09EfomK060461 for vbox@FreeBSD.org; Wed, 9 Jan 2019 14:41:50 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: vbox@FreeBSD.org Subject: [Bug 234789] emulators/virtualbox-ose: fails to link on i386 with lld as system linker Date: Wed, 09 Jan 2019 14:41:50 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: vbox@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter blocked flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Rspamd-Queue-Id: 0626C889BC X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.98 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.98)[-0.978,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-Mailman-Approved-At: Wed, 09 Jan 2019 14:55:32 +0000 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jan 2019 14:41:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234789 Bug ID: 234789 Summary: emulators/virtualbox-ose: fails to link on i386 with lld as system linker Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: vbox@FreeBSD.org Reporter: emaste@freebsd.org Blocks: 214864 Assignee: vbox@FreeBSD.org Flags: maintainer-feedback?(vbox@FreeBSD.org) http://package18.nyi.freebsd.org/build.html?mastername=3Dheadi386PR214864-d= efault&build=3D2019-01-05_21h00m02s http://package18.nyi.freebsd.org/data/headi386PR214864-default/2019-01-05_2= 1h00m02s/logs/errors/virtualbox-ose-5.2.22_2.log kBuild: Linking VBoxRT ld: error: relocation R_386_PC32 cannot be used against symbol RTMemAllocTa= g; recompile with -fPIC >>> defined in /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-= 5.2.22/out/freebsd.x86/release/obj/VBoxRT/r3/alloc.o >>> referenced by alloc.cpp:44 (/wrkdirs/usr/ports/emulators/virtualbox-ose= /work/VirtualBox-5.2.22/src/VBox/Runtime/common/alloc/alloc.cpp:44) >>> /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualB= ox-5.2.22/out/freebsd.x86/release/obj/VBoxRT/common/alloc/alloc.o:(RTMemDup= Tag) ld: error: relocation R_386_PC32 cannot be used against symbol memcpy; recompile with -fPIC >>> defined in /lib/libc.so.7 >>> referenced by alloc.cpp:46 (/wrkdirs/usr/ports/emulators/virtualbox-ose= /work/VirtualBox-5.2.22/src/VBox/Runtime/common/alloc/alloc.cpp:46) >>> /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualB= ox-5.2.22/out/freebsd.x86/release/obj/VBoxRT/common/alloc/alloc.o:(RTMemDup= Tag) ld: error: relocation R_386_PC32 cannot be used against symbol RTMemAllocTa= g; recompile with -fPIC >>> defined in /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-= 5.2.22/out/freebsd.x86/release/obj/VBoxRT/r3/alloc.o >>> referenced by alloc.cpp:54 (/wrkdirs/usr/ports/emulators/virtualbox-ose= /work/VirtualBox-5.2.22/src/VBox/Runtime/common/alloc/alloc.cpp:54) >>> /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualB= ox-5.2.22/out/freebsd.x86/release/obj/VBoxRT/common/alloc/alloc.o:(RTMemDup= ExTag) ... Similar issues in: emulators/virtualbox-ose-additions http://package18.nyi.freebsd.org/data/headi386PR214864-default/2019-01-05_2= 1h00m02s/logs/errors/virtualbox-ose-additions-5.2.22_2.log emulators/virtualbox-ose-additions-nox11 http://package18.nyi.freebsd.org/data/headi386PR214864-default/2019-01-05_2= 1h00m02s/logs/errors/virtualbox-ose-additions-nox11-5.2.22_2.log emulators/virtualbox-ose-nox11 http://package18.nyi.freebsd.org/data/headi386PR214864-default/2019-01-05_2= 1h00m02s/logs/errors/virtualbox-ose-nox11-5.2.22_2.log Most likely the link stage needs -z notext (e.g. -Wl,-z,notext in LDFLAGS). Referenced Bugs: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214864 [Bug 214864] [exp-run] test build with lld as /usr/bin/ld --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-emulation@freebsd.org Wed Jan 9 16:41:18 2019 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D266E14867FD for ; Wed, 9 Jan 2019 16:41:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 6C5FE8FFFE for ; Wed, 9 Jan 2019 16:41:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 2FE2014867FC; Wed, 9 Jan 2019 16:41:18 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1CE7C14867FB for ; Wed, 9 Jan 2019 16:41:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (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 "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AB7E68FFFB for ; Wed, 9 Jan 2019 16:41:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id F026E12809 for ; Wed, 9 Jan 2019 16:41:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x09GfG0g037721 for ; Wed, 9 Jan 2019 16:41:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x09GfGAQ037719 for emulation@FreeBSD.org; Wed, 9 Jan 2019 16:41:16 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: emulation@FreeBSD.org Subject: [Bug 234713] under linux emulation listxattr returns incorrect result Date: Wed, 09 Jan 2019 16:41:16 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.2-RELEASE X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: emulation@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jan 2019 16:41:19 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234713 --- Comment #3 from Mark Johnston --- (In reply to Fedor Uporov from comment #2) Indeed, I think the stubs should be modified to return EOPNOTSUPP. I'm not sure why it wasn't that way before... with the previous translation of ENOA= TTR it just "worked" so I guess it was a bug that nobody noticed. Since you we= re in that area, would you like to fix it? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-emulation@freebsd.org Wed Jan 9 16:55:12 2019 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1A3C114870B4 for ; Wed, 9 Jan 2019 16:55:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id A0F996A120 for ; Wed, 9 Jan 2019 16:55:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 645B814870B1; Wed, 9 Jan 2019 16:55:11 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 513E214870B0 for ; Wed, 9 Jan 2019 16:55:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (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 "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E0DC86A11A for ; Wed, 9 Jan 2019 16:55:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 29D51129B0 for ; Wed, 9 Jan 2019 16:55:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x09GtAeh071564 for ; Wed, 9 Jan 2019 16:55:10 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x09GtAeZ071563 for emulation@FreeBSD.org; Wed, 9 Jan 2019 16:55:10 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: emulation@FreeBSD.org Subject: [Bug 234713] under linux emulation listxattr returns incorrect result Date: Wed, 09 Jan 2019 16:55:10 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.2-RELEASE X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: fsu@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: emulation@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jan 2019 16:55:12 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234713 --- Comment #4 from Fedor Uporov --- (In reply to Mark Johnston from comment #3) Ok, I will prepare the phabricator review soon. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-emulation@freebsd.org Wed Jan 9 17:54:10 2019 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1894D1488739 for ; Wed, 9 Jan 2019 17:54:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id A73A26C603 for ; Wed, 9 Jan 2019 17:54:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 6AB1E1488737; Wed, 9 Jan 2019 17:54:09 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 579A31488736 for ; Wed, 9 Jan 2019 17:54:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (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 "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E3B5B6C5FD for ; Wed, 9 Jan 2019 17:54:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 1AE4113291 for ; Wed, 9 Jan 2019 17:54:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x09Hs7bP022825 for ; Wed, 9 Jan 2019 17:54:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x09Hs7rR022824 for emulation@FreeBSD.org; Wed, 9 Jan 2019 17:54:07 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: emulation@FreeBSD.org Subject: [Bug 230160] linuxulator doesn't implement madvise(MADV_DONTNEED) correctly Date: Wed, 09 Jan 2019 17:54:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: emulation@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jan 2019 17:54:10 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230160 --- Comment #2 from Mark Johnston --- Yes, we should probably just extend our madvise(2) to implement Linux's MADV_DONTNEED. Some care is needed, as we currently assume that madvise(2)= is advisory and so may be ignored for pages in some transient busy state.=20 However, we cannot correctly do this when implementing Linux MADV_DONTNEED = for private anonymous memory. I don't really like the idea of having a generic MADV_ZERO. First, Linux MADV_DONTNEED only "zeroes" the page if it belongs to a private mapping. P= ages belonging to shared mappings should be handled the same way as FreeBSD's MADV_DONTNEED, from my reading of the man page. So that name would be misleading. Second, I think it's pretty widely agreed that Linux's implementation choice here is a historical mistake. We should emulate it, = but I don't think it makes much sense to do so in a generic fashion. I'd just = add an undocumented MADV_DONTNEED_LINUX. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-emulation@freebsd.org Thu Jan 10 11:00:06 2019 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7DD1B1486493 for ; Thu, 10 Jan 2019 11:00:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 00212764A2 for ; Thu, 10 Jan 2019 11:00:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id B1D9F1486492; Thu, 10 Jan 2019 11:00:05 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A051E1486491 for ; Thu, 10 Jan 2019 11:00:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (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 "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3FDDE7649E for ; Thu, 10 Jan 2019 11:00:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 6C8F81C7A0 for ; Thu, 10 Jan 2019 11:00:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x0AB049f054707 for ; Thu, 10 Jan 2019 11:00:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x0AB04nw054698 for emulation@FreeBSD.org; Thu, 10 Jan 2019 11:00:04 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: emulation@FreeBSD.org Subject: [Bug 230160] linuxulator doesn't implement madvise(MADV_DONTNEED) and any MADV_ flags with values >= 8 correctly Date: Thu, 10 Jan 2019 11:00:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: theraven@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: emulation@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jan 2019 11:00:06 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230160 David Chisnall changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|linuxulator doesn't |linuxulator doesn't |implement |implement |madvise(MADV_DONTNEED) |madvise(MADV_DONTNEED) and |correctly |any MADV_ flags with values | |>=3D 8 correctly --- Comment #3 from David Chisnall --- (In reply to Mark Johnston from comment #2) Sorry, wanting MADV_ZERO is an unrelated issue: we have some code that would get a very nice perf improvement if we had it. In our own code, we implement a FreeBSD equivalent of Linux's MADV_DONTNEED= by doing an mmap with MAP_FIXED over the address range. This works fine for anonymous memory mappings (which is all that Linux supports), but it means = that we have to fall back to bzero for shared memory (which means that, among ot= her things, we get a unique physical page for each virtual page, even though there's a good chance that the pages are going to stay zero for a while). --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-emulation@freebsd.org Fri Jan 11 05:54:25 2019 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CBF6B1482047 for ; Fri, 11 Jan 2019 05:54:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 65EDC8A05D for ; Fri, 11 Jan 2019 05:54:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 29D3C1482046; Fri, 11 Jan 2019 05:54:25 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 16D051482045 for ; Fri, 11 Jan 2019 05:54:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (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 "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A525A8A057 for ; Fri, 11 Jan 2019 05:54:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id CC415719A for ; Fri, 11 Jan 2019 05:54:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x0B5sN4Z076551 for ; Fri, 11 Jan 2019 05:54:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x0B5sNWY076550 for emulation@FreeBSD.org; Fri, 11 Jan 2019 05:54:23 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: emulation@FreeBSD.org Subject: [Bug 230160] linuxulator doesn't implement madvise(MADV_DONTNEED) and any MADV_ flags with values >= 8 correctly Date: Fri, 11 Jan 2019 05:54:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: instructionset@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: emulation@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jan 2019 05:54:26 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230160 Bill Sorenson changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |instructionset@gmail.com --- Comment #4 from Bill Sorenson --- Illumos added MADV_PURGE to do this very thing for their Linux ABI support. Personally I'd recommend adopting it. https://illumos.org/issues/6818 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-emulation@freebsd.org Fri Jan 11 05:58:13 2019 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 193851482276 for ; Fri, 11 Jan 2019 05:58:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id A4E258A473 for ; Fri, 11 Jan 2019 05:58:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 665F91482274; Fri, 11 Jan 2019 05:58:12 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 541F21482272 for ; Fri, 11 Jan 2019 05:58:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (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 "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E34618A46C for ; Fri, 11 Jan 2019 05:58:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 28BA171A2 for ; Fri, 11 Jan 2019 05:58:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x0B5wBdw080346 for ; Fri, 11 Jan 2019 05:58:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x0B5wBG4080345 for emulation@FreeBSD.org; Fri, 11 Jan 2019 05:58:11 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: emulation@FreeBSD.org Subject: [Bug 230160] linuxulator doesn't implement madvise(MADV_DONTNEED) and any MADV_ flags with values >= 8 correctly Date: Fri, 11 Jan 2019 05:58:11 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: instructionset@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: emulation@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jan 2019 05:58:13 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230160 --- Comment #5 from Bill Sorenson --- (In reply to Bill Sorenson from comment #4) For what its worth, newer version of Jemalloc use MADV_FREE on Linux if available (kernels ~4.15 or newer). Hopefully Linux MADV_DONTNEED is going = away slowly. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-emulation@freebsd.org Fri Jan 11 11:21:06 2019 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 16277148B0DA for ; Fri, 11 Jan 2019 11:21:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id A3B2E947DF for ; Fri, 11 Jan 2019 11:21:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 6719D148B0D9; Fri, 11 Jan 2019 11:21:05 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 55533148B0D7 for ; Fri, 11 Jan 2019 11:21:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (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 "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E631C947D8 for ; Fri, 11 Jan 2019 11:21:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 38C0DA152 for ; Fri, 11 Jan 2019 11:21:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x0BBL4wK084688 for ; Fri, 11 Jan 2019 11:21:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x0BBL4PX084680 for emulation@FreeBSD.org; Fri, 11 Jan 2019 11:21:04 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: emulation@FreeBSD.org Subject: [Bug 230160] linuxulator doesn't implement madvise(MADV_DONTNEED) and any MADV_ flags with values >= 8 correctly Date: Fri, 11 Jan 2019 11:21:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: theraven@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: emulation@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jan 2019 11:21:06 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230160 --- Comment #6 from David Chisnall --- (In reply to Bill Sorenson from comment #5) `MADV_FREE` and Linux's `MADV_DONTNEED` have different use cases. For C, w= here malloc is called a lot more often than calloc, `MADV_FREE` provides much be= tter semantics. For higher-level languages or for higher-security applications where we need to guarantee zero initialisation, `MADV_FREE` is useless beca= use we have to `bzero` on either allocation or deallocation. As I said, at $WORK, we have a number of use cases where Linux's behaviour gives significantly better performance (less cache churn from redundant zeroing). We have to fall back to the zeroing behaviour when using anonymo= us shared memory though and that's a big perf hit for us. A `MADV_ZERO` would= be a big win. Note, however, that `MADV_FREE` is currently broken in the Linuxulator, bec= ause the constant has a different value in FreeBSD and Linux and the Linuxulator just passes the flags through unmodified. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-emulation@freebsd.org Fri Jan 11 15:01:31 2019 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6960A1493003 for ; Fri, 11 Jan 2019 15:01:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id F3ACF6F8F7 for ; Fri, 11 Jan 2019 15:01:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id B52A11493002; Fri, 11 Jan 2019 15:01:30 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A1D961492FFE for ; Fri, 11 Jan 2019 15:01:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (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 "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3A3F36F8F2 for ; Fri, 11 Jan 2019 15:01:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 8DE0DC4D4 for ; Fri, 11 Jan 2019 15:01:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x0BF1T9M008673 for ; Fri, 11 Jan 2019 15:01:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x0BF1T6Z008640 for emulation@FreeBSD.org; Fri, 11 Jan 2019 15:01:29 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: emulation@FreeBSD.org Subject: [Bug 230160] linuxulator doesn't implement madvise(MADV_DONTNEED) and any MADV_ flags with values >= 8 correctly Date: Fri, 11 Jan 2019 15:01:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: instructionset@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: emulation@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jan 2019 15:01:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230160 --- Comment #7 from Bill Sorenson --- (In reply to David Chisnall from comment #6) I'm aware they have different use cases. My main point is that if we are go= ing to adopt a Linux-MADV_DONTNEED equivalent we use Illumos' MADV_PURGE rather than invent a new argument. I don't object to adding MADV_PURGE or MADV_ZERO for Linux compatibility bu= t to me it seems like it would usually be better to call munmap() directly than = to use some bizarre madvise() semantics to simulate it although admittedly I d= on't know the specifics. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-emulation@freebsd.org Fri Jan 11 18:17:29 2019 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 423111497A44 for ; Fri, 11 Jan 2019 18:17:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id D0C5176DFD for ; Fri, 11 Jan 2019 18:17:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 94AAE1497A42; Fri, 11 Jan 2019 18:17:28 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8355E1497A40 for ; Fri, 11 Jan 2019 18:17:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (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 "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 222F776DF7 for ; Fri, 11 Jan 2019 18:17:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 6A374E10E for ; Fri, 11 Jan 2019 18:17:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x0BIHRVg076005 for ; Fri, 11 Jan 2019 18:17:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x0BIHR2q075994 for emulation@FreeBSD.org; Fri, 11 Jan 2019 18:17:27 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: emulation@FreeBSD.org Subject: [Bug 230160] linuxulator doesn't implement madvise(MADV_DONTNEED) and any MADV_ flags with values >= 8 correctly Date: Fri, 11 Jan 2019 18:17:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: theraven@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: emulation@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jan 2019 18:17:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230160 --- Comment #8 from David Chisnall --- (In reply to Bill Sorenson from comment #7) As I said above, there is no mechanism for doing this with shared memory segments - we cannot zero pages in the middle of a shared-memory segment without using memset / bzero and this does not allow the kernel to decommit= the physical pages. I haven't tested whether MAV_FREE allows the kernel to laz= ily replace the pages with zeroed pages, but for our uses we need to guarantee zeroing. On Linux you can do this with some forms of shared memory using fallocate to punch a hole in the underlying object, though apparently it isn't very reliable. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-emulation@freebsd.org Fri Jan 11 18:35:53 2019 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 487D214981CC for ; Fri, 11 Jan 2019 18:35:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id CED7577AED for ; Fri, 11 Jan 2019 18:35:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 8B4CA14981CA; Fri, 11 Jan 2019 18:35:52 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7983C14981C9 for ; Fri, 11 Jan 2019 18:35:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (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 "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1641F77AE8 for ; Fri, 11 Jan 2019 18:35:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 418FDE3F1 for ; Fri, 11 Jan 2019 18:35:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x0BIZpqJ092213 for ; Fri, 11 Jan 2019 18:35:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x0BIZpOr092212 for emulation@FreeBSD.org; Fri, 11 Jan 2019 18:35:51 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: emulation@FreeBSD.org Subject: [Bug 230160] linuxulator doesn't implement madvise(MADV_DONTNEED) and any MADV_ flags with values >= 8 correctly Date: Fri, 11 Jan 2019 18:35:51 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: emulation@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jan 2019 18:35:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230160 --- Comment #9 from Mark Johnston --- (In reply to David Chisnall from comment #8) MADV_FREE has no effect on shared memory (or anything other than private anonymous memory); see vm_object_advice_applies(). We should update the man page to that effect. Aside from emulating Linux's MADV_DONTNEED, I'm not crazy about following t= he precedent set by Linux by adding a MADV_ZERO that is required to have speci= fic side effects. msync(2) might be a better entry point for this functionalit= y? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-emulation@freebsd.org Fri Jan 11 18:40:14 2019 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 856E314984A4 for ; Fri, 11 Jan 2019 18:40:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 0DA2877E74 for ; Fri, 11 Jan 2019 18:40:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id C415F149849D; Fri, 11 Jan 2019 18:40:13 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 86D84149849C for ; Fri, 11 Jan 2019 18:40:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (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 "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2906D77E71 for ; Fri, 11 Jan 2019 18:40:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id 00B8114DD6; Fri, 11 Jan 2019 18:40:13 +0000 (UTC) Delivered-To: vbox@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id F1CDD14DD5 for ; Fri, 11 Jan 2019 18:40:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (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 "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BA4C277E6F for ; Fri, 11 Jan 2019 18:40:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 13A8EE3FD for ; Fri, 11 Jan 2019 18:40:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x0BIeBfm096725 for ; Fri, 11 Jan 2019 18:40:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x0BIeBNw096724 for vbox@FreeBSD.org; Fri, 11 Jan 2019 18:40:11 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: vbox@FreeBSD.org Subject: [Bug 234878] emulators/virtualbox-ose: Update to 6.0 Date: Fri, 11 Jan 2019 18:40:11 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: tobik@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: vbox@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: assigned_to keywords short_desc flagtypes.name cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Rspamd-Queue-Id: 2906D77E71 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.97)[-0.974,0]; ASN(0.00)[asn:11403, ipnet:96.47.64.0/20, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-Mailman-Approved-At: Fri, 11 Jan 2019 18:53:15 +0000 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jan 2019 18:40:14 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234878 Tobias Kortkamp changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|ports-bugs@FreeBSD.org |vbox@FreeBSD.org Keywords| |needs-patch Summary|virtualemulators/virtualbox |emulators/virtualbox-ose: |-ose: Update to 6.0 |Update to 6.0 Flags| |maintainer-feedback?(vbox@F | |reeBSD.org) CC| |vbox@FreeBSD.org --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.= From owner-freebsd-emulation@freebsd.org Fri Jan 11 18:40:14 2019 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1AF3714984A0 for ; Fri, 11 Jan 2019 18:40:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 7844277E73 for ; Fri, 11 Jan 2019 18:40:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 372E1149849B; Fri, 11 Jan 2019 18:40:13 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 252141498499 for ; Fri, 11 Jan 2019 18:40:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (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 "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BDB9C77E70 for ; Fri, 11 Jan 2019 18:40:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id 9665614DD4; Fri, 11 Jan 2019 18:40:12 +0000 (UTC) Delivered-To: vbox@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 9344914DD3 for ; Fri, 11 Jan 2019 18:40:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (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 "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5435177E6C for ; Fri, 11 Jan 2019 18:40:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 967B8E3FA for ; Fri, 11 Jan 2019 18:40:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x0BIeBJh096712 for ; Fri, 11 Jan 2019 18:40:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x0BIeBjF096711 for vbox@FreeBSD.org; Fri, 11 Jan 2019 18:40:11 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: vbox@FreeBSD.org Subject: maintainer-feedback requested: [Bug 234878] emulators/virtualbox-ose: Update to 6.0 Date: Fri, 11 Jan 2019 18:40:11 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: vbox@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Rspamd-Queue-Id: BDB9C77E70 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.97)[-0.974,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-Mailman-Approved-At: Fri, 11 Jan 2019 18:53:25 +0000 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jan 2019 18:40:14 -0000 Tobias Kortkamp has asked vbox@FreeBSD.org for maintainer-feedback: Bug 234878: emulators/virtualbox-ose: Update to 6.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234878