From owner-freebsd-net@freebsd.org Mon Jul 22 01:31:42 2019 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4EA0EA43D1 for ; Mon, 22 Jul 2019 01:31:42 +0000 (UTC) (envelope-from laurie_jennings_1977@yahoo.com) Received: from sonic316-55.consmr.mail.gq1.yahoo.com (sonic316-55.consmr.mail.gq1.yahoo.com [98.137.69.31]) (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 88477727F0 for ; Mon, 22 Jul 2019 01:31:41 +0000 (UTC) (envelope-from laurie_jennings_1977@yahoo.com) X-YMail-OSG: na.ksVAVM1mU2tDBkjV3WgFZ7VU7BH8LvytwivLAowQpnBZX8vuOebw_L.wLZxV hagM3gmmv.RCULLqlk5IC4fwE3TAjwZAe_GerFQ6XVCyCCdYTPCqUb1hpKap5osU1qrPZtVI686N OV8vxxONqoxvbquQLhBBc96tYORgVrpG4053mxdLsWqUX1Sh6Q3BpNVRxPQugNtk1KlU6mihvWkA bHBHKYQ6apTmgsceZJl35amV26Ea8wXf9oamuckmm0Kyas2aim.Pyo14AlboISp9zZhFwHDCY2c9 e1eYEFRjFafVlzIMR08U8wWJJNCQNSJWbgg3RQESZqB8.MrkzKMgJsmE5C1gaSS7mcpnsYvy3rzs 4vRmvybdJhOZXAOypX95Bqpcam_NiAXi5MzklboQBs5FJatxgksOTS86lm7Abkaofvmzpn0hROf2 yCxc0lis3sgKpue2buoUF7VVAXNhS3GEGRG2f2Tx655ngHJ0K4cEOVqdlE60dKcziyCz_2qg5Rvy ie6AqnKMrdW3zT_5E9c8TLQx88qOjuTzahTIbeHMSO5v8mm_.vPbDkrsTo7b5rmR98i1cojyiuw4 UGCgv.N.ntQ9olETa6VFfybRTW3v7m6rh7HMog9T7UURCGOGqctz_kZxIsrBtwu48d4QATLcA1xw cmVaonzPDpCgcQATt7cWZ_bd.BYBFYSRgtjaHCZnLWWZGqwXIVrOfO7HvTpd1Qu6fbJwYzgECx1. FpXjyFwhGFKjcwWiqBX...7w9mUZU0cpJaT6n6XtCdVSU.qqo91Q4MIs.oEN9XkLaGzvzGZnrmwz hlgiohCmPoWG3HXcRb04Wz9OTP6if71.5r7uVOp9DNjxBYrzUnH5QjECNjXKeafxB_920WnvGiWb kcaULuJNSmEty1reeYgzUP46UERDhhDZJlP9.QZuuDJQR6DkIQJpbt1lw2E9e4Q1xEOCJSZlOPr3 DuAVWDgcIyNAD8pQUUmH0zm6WFe_.4ivWLMDkj6d06KSf51.NQeHIj51NSzInMgvFYP7zj9gEYEg fk4S938sXFM0se_lpoCedjv5krb8xqNpJdalQjVnnAE281ujgyAQuycVbt9KNOARdBL_967zHq0k aWWGcM_PNfRzR_g0qj5PtFTc8xwi7Zti2jVhoCfDtFW77o59g2rSgy8MRp1Zt4McIOOTVNPhiPpw eBRjlon6dObyiQNtZokxoeQNAZvKqsUvrX37ZEARfXUD5SkvVCqx6Pk40LvCi9YiBv60X5A-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.gq1.yahoo.com with HTTP; Mon, 22 Jul 2019 01:31:34 +0000 Date: Mon, 22 Jul 2019 01:21:25 +0000 (UTC) From: Laurie Jennings To: FreeBSD Net Cc: John Baldwin , Konstantin Belousov Message-ID: <2146491394.4652133.1563758485195@mail.yahoo.com> Subject: mmap kernel chunk into user space MIME-Version: 1.0 References: <2146491394.4652133.1563758485195.ref@mail.yahoo.com> X-Mailer: WebService/1.1.13991 YMailNorrin Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15 X-Rspamd-Queue-Id: 88477727F0 X-Spamd-Bar: +++ X-Spamd-Result: default: False [3.56 / 15.00]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_TLS_LAST(0.00)[]; NEURAL_SPAM_MEDIUM(0.95)[0.946,0]; NEURAL_SPAM_SHORT(0.98)[0.983,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; DKIM_TRACE(0.00)[yahoo.com:+]; RCVD_IN_DNSWL_NONE(0.00)[31.69.137.98.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; IP_SCORE(1.72)[ip: (7.05), ipnet: 98.137.64.0/21(0.90), asn: 36647(0.72), country: US(-0.05)]; NEURAL_SPAM_LONG(0.91)[0.914,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/21, country:US]; RCVD_COUNT_TWO(0.00)[2]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jul 2019 01:31:42 -0000 Im wondering if there have been changes to the api since FreeBSD 9 as I can't get some code I'm porting to work. I have a block of kernel memory wired down and I want to map it to user space. Its just a big structure that has stats and other volatile info. In 9.x I was able to simply do: // kptr has the kernel address obtained from an ioctl call fd=open("/dev/kmem",O_RDWR);memp=mmap(0,size,PROT_READ|PROT_WRITE,MAP_SHARED,fd,(off_t)kptr); And it just worked. In 11.3 it fails, and I havent been able to get ANYTHING to work with this method. I'm open to another method; I read something about mmap no longer supportinjgkmem. In which case, what can I do? LJ From owner-freebsd-net@freebsd.org Mon Jul 22 13:25:48 2019 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EDBADB1D2F for ; Mon, 22 Jul 2019 13:25:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id CF3A76F210 for ; Mon, 22 Jul 2019 13:25:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id CCDDCB1D2E; Mon, 22 Jul 2019 13:25:48 +0000 (UTC) Delivered-To: net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CC900B1D2D for ; Mon, 22 Jul 2019 13:25:48 +0000 (UTC) (envelope-from bugzilla-noreply@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 AF9F26F20E for ; Mon, 22 Jul 2019 13:25:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 88398DA72 for ; Mon, 22 Jul 2019 13:25:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x6MDPmC7001464 for ; Mon, 22 Jul 2019 13:25:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x6MDPmXE001463 for net@FreeBSD.org; Mon, 22 Jul 2019 13:25:48 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: net@FreeBSD.org Subject: [Bug 184141] [ppp] [patch] Kernel PPPoE sends bad echo-req magic number on big endian machines Date: Mon, 22 Jul 2019 13:25:48 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: sparc64 X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: emaste@freebsd.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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-Rspamd-Queue-Id: CF3A76F210 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]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jul 2019 13:25:49 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D184141 Ed Maste changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|net@FreeBSD.org |emaste@freebsd.org --=20 You are receiving this mail because: You are the assignee for the bug.=