From owner-freebsd-hackers@freebsd.org Wed Oct 21 22:07:22 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F065742FAA6 for ; Wed, 21 Oct 2020 22:07:22 +0000 (UTC) (envelope-from debdrup@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 4CGl3G5dhDz3c1C for ; Wed, 21 Oct 2020 22:07:22 +0000 (UTC) (envelope-from debdrup@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id B7A7242FB81; Wed, 21 Oct 2020 22:07:22 +0000 (UTC) Delivered-To: hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B69F842FB1D; Wed, 21 Oct 2020 22:07:22 +0000 (UTC) (envelope-from debdrup@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 4CGl3G4mnNz3cGj; Wed, 21 Oct 2020 22:07:22 +0000 (UTC) (envelope-from debdrup@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1603318042; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=3k/7cOhY3ykWXAyGhMTeKCk5//0GlnJUC6835QYUvCM=; b=JYou8eONS62AFyGj+y1ES3C0NJGsYC2mc6IZIjxVnb6QMN0De1r5sL0yBYfiqpcUBRIUl4 KYN/C4eUvS2LxTkrY+ne4YtqgR05H51jons9avgonDASFEEgCbHWqpepKgG8cmEfohtyWI 2CD5MBt6lxTFLrcOCvTAWVBtbKGKRevG2CkzakXj9ZREaDa/6RVNyAdGebnXWP69z5Y4Lg 6fx4MwP0cRwSyQ6vpFYCHOivz18eFuM9mx4fJgnOWPSC3eAJHgpm2d2D9QbLrNX1yfmA1L kuG8ZhdUCPd15AkoRCEsalTyExFVodyVJWzEl7nJ93OtwnMGZ5LRPb9zfvFw0w== Received: by freefall.freebsd.org (Postfix, from userid 1471) id 9593F1955C; Wed, 21 Oct 2020 22:07:22 +0000 (UTC) Date: Thu, 22 Oct 2020 00:07:20 +0200 From: Daniel Ebdrup Jensen To: hackers@freebsd.org Cc: current@freebsd.org, stable@freebsd.org Subject: FreeBSD Quarterly Status Report - Third Quarter 2020 Message-ID: <20201021220720.mehxu5cjqcysztzt@nerd-thinkpad.local> Mail-Followup-To: Daniel Ebdrup Jensen , hackers@freebsd.org, current@freebsd.org, stable@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="u3hngvn2nte45ec7" Content-Disposition: inline ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1603318042; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=3k/7cOhY3ykWXAyGhMTeKCk5//0GlnJUC6835QYUvCM=; b=tV4iX0Bh9k9knz+fYfW+3x38mBPBxj/JzDj+DL+rg5qSkthXXMM6CuQSpskV138n2micq0 Orxnw4seKGmsVBDazgg2g0pkeL9aFbSsNf8lVXx8zEW6/ZIdn/NUH+KveAAndfRer0jTry EX8KcxHaJ9RWU1doab+ZthtX72E9Kf48oDxiqiIyDRcp/SOuQnknPvpx3HJToUGTtQ/xgd Psqace19HJHcZ3LO0vlNF74fcYvT9AU+GpcLdHHalVo6++OaUwAO1cITLjkCZLVK6V+Q+a u6T3Kda9a+BNoSKq3CC9ZOrBai01C5BqI6KRegPf+zwAjdxww/LOPDRo2opH8Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1603318042; a=rsa-sha256; cv=none; b=J5KDIiI0oNlp9pCfuZG9KDMUnxdRqC93yyV7S5eAEzBvRnFwnwaEgBGBxCbDl9WHw2mU6e dHHDA2VSbDeG2vmvNQEZ4ppecfili8F+9ek7XtrFOB2kkuGGBwkFLfzGF5zj0QIShIm0hF MuHYtAbSmS+o7D91yU3Td2rIfDi0krTOrpM0nrO0y/F/fBBW7OgHPORgo3aMQeb+abx7cY 0tN7z/4kR2UHpxWu96St1GDe7K1faUsF30A7K5lGoei6kulk7Q/5VTNhUZPqmR1XDDcvqO Ij0Ymk5pBrLWV4uVe67nsKP1+9v1mcvjDHg/7TgyN+n8mEE+zYbs2on+fq6kCQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Oct 2020 22:07:23 -0000 --u3hngvn2nte45ec7 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable FreeBSD Project Quarterly Status Report - Third Quarter 2020 Introduction This report covers FreeBSD related projects for the period between July and September, and is the third of four planned reports for 2020. This quarter brings a good mix of additions and changes to the FreeBSD Project and community, from a diverse number of teams and people covering everything from architectures, continuous integration, wireless networking and drivers, over drm, desktop and third-party project work, as well as several team reports, along with many other interesting subjects too numerous to mention. As the world is still affected by the epidemic, we hope that this report can also serve as a good reminder that there is good work that can be done by people working together, even if we're apart. We hope you'll be as interested in reading it, as we've been in making it. Daniel Ebdrup Jensen, on behalf of the quarterly team. __________________________________________________________________ FreeBSD Team Reports * FreeBSD Foundation * FreeBSD Release Engineering Team * Cluster Administration Team * Continuous Integration * Ports Collection * FreeBSD Office team - 3rd quarter 2020 report * FreeBSD Graphics Team status report Projects * FreeBSD on Microsoft HyperV and Azure * Building FreeBSD on non-FreeBSD hosts * Git Migration Working Group * Linux compatibility layer update * LLDB Debugger Improvements * Lua usage in FreeBSD * NFS over TLS implementation * syzkaller on FreeBSD Kernel * DRM Drivers Update * DTS Update * DesignWare Ethernet adapter driver improvements * Google Summer of Code'20 Project - eBPF XDP Hooks * ENA FreeBSD Driver Update * IPSec Extended Sequence Number (ESN) support * NXP ARM64 SoC support * Addition of PowerPC64LE Architecture * ure - USB 3.0 Gigabit Ethernet Driver update * Stateless hardware offloads for VXLANs * Wireless updates * ZSTD Compression in ZFS Architectures * CheriBSD 2020 Q3 * FreeBSD/RISC-V Project Ports * Update to grub-bhyve * KDE on FreeBSD Documentation * DOCNG on FreeBSD Third-Party Projects * Potluck - Flavour & Image Repository for pot __________________________________________________________________ FreeBSD Team Reports Entries from the various official and semi-official teams, as found in the Administration Page. FreeBSD Foundation Contact: Deb Goodkin The FreeBSD Foundation is a 501(c)(3) non-profit organization dedicated to supporting and promoting the FreeBSD Project and community worldwide. Funding comes from individual and corporate donations and is used to fund and manage software development projects, conferences and developer summits, and provide travel grants to FreeBSD contributors. The Foundation purchases and supports hardware to improve and maintain FreeBSD infrastructure and provides resources to improve security, quality assurance, and release engineering efforts; publishes marketing material to promote, educate, and advocate for the FreeBSD Project; facilitates collaboration between commercial vendors and FreeBSD developers; and finally, represents the FreeBSD Project in executing contracts, license agreements, and other legal arrangements that require a recognized legal entity. Here are some highlights of what we did to help FreeBSD last quarter: COVID-19 Impact to the Foundation Like other organizations, we put policies in place for all of our staff members to work from home. We also put a temporary ban on travel for staff members. We are continuing our work supporting the community and Project, but some of our work and responses may be delayed because of changes in some of our priorities and the impact of limited childcare for a few of our staff members. Partnerships and Commercial User Support We help facilitate collaboration between commercial users and FreeBSD developers. We also meet with companies to discuss their needs and bring that information back to the Project. Not surprisingly, the stay at home orders, combined with our company ban on travel during Q3 made in-person meetings non-existent. However, the team was able to continue meeting with our partners and commercial users virtually. These meetings help us understand some of the applications where FreeBSD is used. We are currently scheduling Zoom company meetings for Q4, please reach out if you would like to schedule a meeting with us. Fundraising Efforts Last quarter we raised $192,874.43! Thank you to the individuals and organizations that stepped in, to help fund our efforts. We'd like to thank Arm for their large contribution last quarter, which helped bring our 2020 fundraising effort to $521k. We hope other organizations will follow their lead and give back to help us continue supporting FreeBSD. These are trying times, and we deeply appreciate every donation that has come in from $5 to $150,000. We're still here giving 110% to supporting FreeBSD! We are 100% funded by donations, and those funds go towards software development work to improve FreeBSD, FreeBSD advocacy around the world, keeping FreeBSD secure, continuous integration improvements, sponsoring BSD-related and computing conferences (even the virtual events!), legal support for the Project, and many other areas. Please consider making a donation to help us continue and increase our support for FreeBSD. We also have the Partnership Program, to provide more benefits for our larger commercial donors. Find out more information about the partnership program and share with your companies! OS Improvements A number of FreeBSD Foundation grant recipients started, continued working on, or completed projects during the third quarter. These include: * Ongoing WiFi and Linux KPI layer improvements. * Linuxulator application compatibility. * DRM / Graphics driver updates. * Zstd compression for OpenZFS. * Online RAID-Z expansion. * Modernized LLDB target support for FreeBSD. You can find more details about most of these projects in other quarterly reports. Staff members also worked on a number of larger projects, including: * Run-Time Dynamic Linker (rtld) and kernel ELF loader improvements. * Rewritten UNIX domain socket locking. * Build infrastructure. * Open system call path handling support for O_BENEATH, O_RESOLVE_BENEATH. * arm64 support. * Migration to a Git repository. Many of these projects also have detailed entries in other quarterly report entries. Staff members also put in significant effort in many ways other than larger, individual projects. These include assisting with code reviews, bug report triage, security report triage and advisory handling, addressing syzkaller reports, and ongoing maintenance and bug fixes in functional areas such as the tool chain, developer tools, virtual memory kernel subsystem, low-level x86 infrastructure, sockets and protocols, and others. University of Waterloo Co-op With the transition to working from home, the Foundation decided to again take on three University of Waterloo Co-op students for the Fall 2020 term (September to December). Tiger returns for a second term, joined by new students Yang and Zac. Projects for the term include more work on ELF Tool Chain, application of Capsicum to additional utilities, testing and integration of FreePBX and Asterisk VOIP software, pkgbase, and exploring containerization tooling. Continuous Integration and Quality Assurance The Foundation provides a full-time staff member and funds projects on improving continuous integration, automated testing, and overall quality assurance efforts for the FreeBSD project. During the third quarter of 2020, Foundation staff continued improving and monitoring the Project's CI infrastructure, and working with experts to fix the failing builds and the regressions found by tests. The setting up of dedicated VM host for running tests is completed. New feature developments and the CI staging environment is in progress. We are also working with other teams in the Project for their testing needs. For example, tests of non-x86 architectures now run periodically, and improve the CI of the embedded systems. We are also working with many external projects and companies to improve the CI between their products and FreeBSD. See the FreeBSD CI section of this report for completed work items and detailed information. Supporting FreeBSD Infrastructure The Foundation provides hardware and support to improve the FreeBSD infrastructure. Last quarter, we continued supporting FreeBSD hardware located around the world. We coordinated efforts between the new NYI Chicago facility and clusteradm to start working on getting the facility prepared for some of the new FreeBSD hardware we are planning on purchasing. NYI generously provides this for free to the Project. We also worked on connecting with the new owners of the Bridgewater site, where most of the FreeBSD infrastructure is located. Some of the purchases we made for the Project last quarter to support infrastructure includes: * Spamhaus spam filtering software to limit the amount of spam on the mailing lists. * 5 application servers to run tasks like bugzilla, wiki, website, cgi, Phabricator, host git, etc. * 1 server to replace the old pkg server and provide a lot more IOPS to avoid the slowdowns seen during peak times of the day where the disks just cannot keep up with the request volume. * 1 server for exp-runs to make them faster. * 1 server to build packages more frequently. FreeBSD Advocacy and Education A large part of our efforts are dedicated to advocating for the Project. This includes promoting work being done by others with FreeBSD; producing advocacy literature to teach people about FreeBSD and help make the path to starting using FreeBSD or contributing to the Project easier; and attending and getting other FreeBSD contributors to volunteer to run FreeBSD events, staff FreeBSD tables, and give FreeBSD presentations. The FreeBSD Foundation sponsors many conferences, events, and summits around the globe. These events can be BSD-related, open source, or technology events geared towards underrepresented groups. We support the FreeBSD-focused events to help provide a venue for sharing knowledge, to work together on projects, and to facilitate collaboration between developers and commercial users. This all helps provide a healthy ecosystem. We support the non-FreeBSD events to promote and raise awareness of FreeBSD, to increase the use of FreeBSD in different applications, and to recruit more contributors to the Project. As is the case for most of us in this industry, COVID-19 has put our in-person events on hold. In addition to attending virtual events, we are continually working on new training initiatives and updating our selection of how-to guides to facilitate getting more folks to try out FreeBSD. Check out some of the advocacy and education work we did last quarter: * Launched our FreeBSD Fridays series of 101 classes. Topics included an Introduction to FreeBSD, FreeBSD Installfest, Introduction to Security, Introduction to ZFS and more. Videos of the past sessions and a schedule of upcoming events can be found here. * Attended and presented at OSI's State of the Source conference. The event was held virtually, September 9-11, 2020. * Launched the redesign of the FreeBSD Foundation Website. * Announced the 20th Anniversary of the FreeBSD Foundation. * Participated as an Admin for Google Summer of Code 2020 * Continued to promote the FreeBSD Office Hours series including holding our own Foundation led office hours. Videos from the one hour sessions can be found on the Project's YouTube Channel. You can watch ours here. * Interviewed members of the outgoing FreeBSD Core Team to get their thoughts on their term. * Began working with the FreeBSD Vendor Summit planning committee on the November 2020 Vendor Summit. * Promoted the Foundation's 20th Anniversary and our work to support the FreeBSD Project in the It's FOSS Article. FreeBSD Foundation Celebrates 20 Years of Promoting and Supporting FreeBSD Project. * Authored a Beginners Guide to FreeBSD for Fosslife. * Committed to sponsoring All Things Open as a media Sponsor. * Committed to sponsoring the OpenZFS Developers Summit at the Bronze level. * Became an International RISC-V Member. * Committed to giving a FreeBSD talk at the nerdear.la conference on October 20th. Keep up to date with our latest work in our monthly newsletters. Netflix provided an update on how and why they use FreeBSD in our latest Contributor Case Study. We help educate the world about FreeBSD by publishing the professionally produced FreeBSD Journal. As we mentioned previously, the FreeBSD Journal is now a free publication. Find out more and access the latest issues at https://www.FreeBSDfoundation.org/journal/. You can find out more about events we attended and upcoming events at https://www.FreeBSDfoundation.org/news-and-events/. Legal/FreeBSD IP The Foundation owns the FreeBSD trademarks, and it is our responsibility to protect them. We also provide legal support for the core team to investigate questions that arise. We updated our Trademark Usage Terms and Conditions on July 1, 2020. Go to the FreeBSD Foundation's web site to find out how we support FreeBSD and how we can help you! ### Other We welcomed Andrew Wafaa and Kevin Bowling to our board of directors, to help govern the Foundation and guide us with our strategic direction. We have more information about our new board members on our website. __________________________________________________________________ FreeBSD Release Engineering Team Links FreeBSD 12.2-RELEASE schedule=20 URL: https://www.freebsd.org/releases/12.2R/schedule.html FreeBSD 12.2 test builds=20 URL: https://www.freebsd.org/where.html#helptest FreeBSD development snapshots=20 URL: https://download.freebsd.org/ftp/snapshots/ISO-IMAGES/ Contact: FreeBSD Release Engineering Team The FreeBSD Release Engineering Team is responsible for setting and publishing release schedules for official project releases of FreeBSD, announcing code freezes and maintaining the respective branches, among other things. During the third quarter of 2020, the Release Engineering Team started work on the 12.2-RELEASE cycle, the third release from the stable/12 branch. As of this writing, two BETA builds have been released, with the expectation there will be a third BETA build currently remaining on the schedule. The 12.2-RELEASE cycle will continue throughout October, with two RC builds currently planned, and RC3 scheduled on an as-needed basis. The 12.2-RELEASE is so far scheduled for final release on October 27. In addition to the 12.2-RELEASE, Glen Barber of the Release Engineering Team finished work to the release build tools and scripts to prepare for the conversion from Subversion to Git for the 13.0-RELEASE cycle. There are no plans to merge these changes to stable branches at this time; as discussed within the Git working group, we feel such a change on a stable branch would be too intrusive to our user base as well as downstream FreeBSD consumers. Development snapshot builds for 13.0-CURRENT have recently been built from the Git tree within the project, and further snapshot builds for 12.x and 11.x will continue to be built from Subversion. Additionally throughout the quarter, several development snapshots builds were released for the head, stable/12, and stable/11 branches. Finally, the Release Engineering Team would like to thank Marius Strobl for his time serving on the team; he had recently stepped down from the Deputy RE Lead role due to constraints on his time. The Team welcomes Colin Percival, who has accepted fulfilling this role. Much of this work was sponsored by Rubicon Communications, LLC (netgate.com) and the FreeBSD Foundation. __________________________________________________________________ Cluster Administration Team Links Cluster Administration Team members=20 URL: https://www.freebsd.org/administration.html#t-clusteradm Contact: Cluster Administration Team The FreeBSD Cluster Administration Team consists of the people responsible for administering the machines that the Project relies on for its distributed work and communications to be synchronised. In this quarter, the team has worked on the following: * Work with the FreeBSD Foundation on hardware update for web services, mirror and package building servers. * Disable directory indexing on the package mirrors to resolve performance issues of the machine. + This was later relaxed to allow indexing of the parent directories but still disallow the large package directories. * Ongoing systems administration work: + Accounts management for committers. + Backups of critical infrastructure. + Keeping up with security updates in 3rd party software. Work in progress: * Setup Malaysia (KUL) mirror. * Setup Brazil (BRA) mirror. * Review the service jails and service administrators operation. * Infrastructure of building aarch64 and powerpc64 packages. + NVMe issues on PowerPC64 POWER9 blocking dual socket machine from being used as pkg builder. + Drive upgrade test for pkg builders (SSDs) courtesy of the FreeBSD Foundation. + Boot issues with Aarch64 reference machines. * New NYI.net sponsored colocation space in Chicago-land area. * Work with git working group for the git repository. * Searching for more providers that can fit the requirements for a generic mirrored layout or a tiny mirror. __________________________________________________________________ Continuous Integration Links FreeBSD Jenkins Instance=20 URL: https://ci.FreeBSD.org FreeBSD Hardware Testing Lab=20 URL: https://ci.FreeBSD.org/hwlab FreeBSD CI artifact archive=20 URL: https://artifact.ci.FreeBSD.org FreeBSD CI weekly report=20 URL: https://hackmd.io/@FreeBSD-CI FreeBSD Jenkins wiki=20 URL: https://wiki.freebsd.org/Jenkins Hosted CI wiki=20 URL: https://wiki.freebsd.org/HostedCI 3rd Party Software CI=20 URL: https://wiki.freebsd.org/3rdPartySoftwareCI Tickets related to freebsd-testing@=20 URL: https://preview.tinyurl.com/y9maauwg FreeBSD CI Repository=20 URL: https://github.com/freebsd/freebsd-ci Contact: Jenkins Admin Contact: Li-Wen Hsu Contact: freebsd-testing Mailing List Contact: IRC #freebsd-ci channel on EFNet The FreeBSD CI team maintains the continuous integration system of the FreeBSD project. The CI system firstly checks the committed changes can be successfully built, then performs various tests and analysis over the newly built results. The artifacts from those builds are archived in the artifact server for further testing and debugging needs. The CI team members examine the failing builds and unstable tests and work with the experts in that area to fix the codes or adjust test infrastructure. The details of these efforts are available in the weekly CI reports. During the third quarter of 2020, we continued working with the contributors and developers in the project to fulfill their testing needs and also keep collaborating with external projects and companies to improve their products and FreeBSD. Important changes: * All !x86 -test builds now trigger a new build on 22:00 UTC daily; this was not running very often because running all the tests in qemu takes lots of time. The work on improving the test execution speed and parallelism is in progress. The following is a list of the jobs affected: + Test build for FreeBSD HEAD on ARMv7. + Test build for FreeBSD HEAD on AArch64. + Test build for FreeBSD HEAD on MIPS64. + Test build for FreeBSD HEAD on PowerPC64. + Test build for FreeBSD HEAD on RISC-V64. * The build and test results will be sent to the dev-ci mailing list soon. Feedback and help with analysis is very appreciated! + A builder dedicated to run jobs using provisioned VMs is setup, this improves the stableness and reduces the execution time. + The result of FreeBSD-head-amd64-test_zfs is changed after OpenZFS importing; we encourage everyone to check and fix the failing and skipped test cases. New jobs added: * CI build for FreeBSD HEAD on PowerPC64LE. Work in progress: * Collecting and sorting CI tasks and ideas here. * Testing and merging pull requests in the the FreeBSD-ci repo. * Designing and implementing pre-commit CI building and testing, * Reduce the procedures of CI/test environment setting up for contributors and developers. * Setting up the CI stage environment and putting the experimental jobs on it. * Setting up public network access for the VM guest running tests. * Implementing automatic tests on bare metal hardware. * Adding drm ports building tests against -CURRENT. * Planning to run ztest and network stack tests. * Adding more external toolchain related jobs. * Improving the hardware lab to be more mature and adding more hardware. * Helping more 3rd software get CI on FreeBSD through a hosted CI solution. * Working with hosted CI providers to have better FreeBSD support. Please see freebsd-testing@ related tickets for more WIP information, and don't hesitate to join the effort! Sponsor: The FreeBSD Foundation __________________________________________________________________ Ports Collection Links About FreeBSD Ports=20 URL: https://www.FreeBSD.org/ports/ Contributing to Ports=20 URL: https://www.freebsd.org/doc/en_US.ISO8859-1/articles/contributing/= ports -contributing.html FreeBSD Ports Monitoring=20 URL: http://portsmon.freebsd.org/index.html Ports Management Team=20 URL: https://www.freebsd.org/portmgr/index.html Contact: Ren=C3=A9 Ladan Contact: FreeBSD Ports Management Team The Ports Management Team is responsible for overseeing the overall direction of the Ports Tree, building packages, and personnel matters. Below is what happened in the last quarter. We passed the landmark of 40,000 ports in the Ports Collection and are now around 40,400 ports. The last quarter saw 9335 commits to the HEAD branch and 481 commits to the 2020Q3 branch by respectively 167 and 63 committers. There are currently 2525 open problem reports of which 595 are unassigned. Compared to last quarter, this means a slight decrease in activity and also a slight increase in open PRs. During the last quarter we welcomed Rainer Hurling (rhurlin@) and said goodbye to Kevin Lo (kevlo@) and Grzegorz Blach (gblach@). The last three months saw new default versions for Perl (5.32), PostgreSQL (12) and PHP (7.4). Various packages also got updated: Firefox to 81.0.1, Chromium to 84.0.4147.135, Gnome to 3.36, Xorg to 1.20.9, Qt5 to 5.15.0, Emacs to 27.1, KDE Frameworks to 5.74.0 and pkg itself to 1.15.8. Never tired, antoine@ ran 30 exp-runs to test port version updates, on such diverse matters as: * Updating byacc in base to 20200330. * Check balancing of sed "y" command. * Use of brackets. * Removing the now redundant "port" argument from USES=3Dreadline. __________________________________________________________________ FreeBSD Office team - 3rd quarter 2020 report Links The FreeBSD Office project=20 URL: https://wiki.freebsd.org/Office Contact: FreeBSD Office team ML Contact: Dima Panov Contact: Li-Wen Hsu The FreeBSD Office team works on a number of office-related software suites and tools such as OpenOffice and LibreOffice. Work during this quarter focused on providing the latest stable release of LibreOffice suite and companion apps to all FreeBSD users. * Alongside with updating old stable branch to latest 6.4.x releases, current ports-tree now have a full-featured cutting-edge 7.0.1 bundle. * Conservative users can keep 6.4.x stable version by switching to use all-in-one editors/libreoffice6 port and even with i18n language pack (off by default). It will be kept updated at least till 7.1.0 version is released. We are looking for people to help the project. All unstable work with LibreOffice snapshots is staged in our WIP repository. The open bugs list contains all filed issues which need some attention. Patches, comments and objections are always welcome in the mailing list and bugzilla. __________________________________________________________________ FreeBSD Graphics Team status report Links Project GitHub page=20 URL: https://github.com/FreeBSDDesktop Contact: FreeBSD Graphics Team Contact: Niclas Zeising The FreeBSD X11/Graphics team maintains the lower levels of the FreeBSD graphics stack. This includes graphics drivers, graphics libraries such as the MESA OpenGL implementation, the X.org xserver with related libraries and applications, and Wayland with related libraries and applications. There have been several updates to the FreeBSD graphics stack and related libraries since the last report. Most notably, MESA related ports were changed to use the meson build system, instead of the autotools based one. This was needed since mesa upstream has deprecated and removed the autotools build system, and this paved the way for further mesa updates. While there was a need for a few minor corrections after the initial update, this update has been successful and made it possible to further update and improve the FreeBSD mesa port. There have also been several security fixes for xorg-server and libX11, so these ports have been updated to fix these issues. During the period, FreeBSD 12 was changed to improve the compatibility with input devices using udev/evdev and libinput. This change removes the need for local configuration and makes most mice, touchpads and keyboards work out of the box. This change will be in the upcoming FreeBSD 12.2 release. There have also been several updates to various libraries, both in the graphics and input stacks, and several userland drivers have been updated. Libraries such as libdrm and libevdev have been updated to include new FreeBSD support, developed by team members and added upstream. There has also been ongoing work to keep the various drm-kmod ports and packages up to date, mostly in response to changes in various FreeBSD versions. We have also continued our regularly scheduled bi-weekly meetings. People who are interested in helping out can find us on the x11@FreeBSD.org mailing list, or on our gitter chat. We are also available in #freebsd-xorg on EFNet. We also have a team area on GitHub where our work repositories can be found. __________________________________________________________________ Projects Projects that span multiple categories, from the kernel and userspace to the Ports Collection or external projects. FreeBSD on Microsoft HyperV and Azure Links Microsoft Azure article on FreeBSD wiki =20 URL: https://wiki.freebsd.org/MicrosoftAzure Microsoft HyperV article on FreeBSD wiki=20 URL: https://wiki.freebsd.org/HyperV Contact: FreeBSD Integration Services Team Contact: Wei Hu Contact: Li-Wen Hsu Li-Wen is working on the FreeBSD release code related to Azure for the -CURRENT, 12-STABLE and 11-STABLE branches. The work-in-progress is available here. The 11.4-RELEASE image on Azure Marketplace is published. We are testing the releng/12.2 branch and 12.2-RELEASE image will be published to Azure Marketplace soon after released. This project is sponsored by The FreeBSD Foundation, with resources provided by Microsoft. __________________________________________________________________ Building FreeBSD on non-FreeBSD hosts Links Wiki=20 URL: https://wiki.freebsd.org/BuildingOnNonFreeBSD Contact: Alex Richardson Until recently FreeBSD could only be built on a FreeBSD host. However, many popular free CI tools only allow building on Linux or macOS and therefore can not be used for building the FreeBSD base system. Furthermore, it is sometimes useful to cross-build FreeBSD for a remote machine or an emulator even if the build machine is not running FreeBSD. The goal of this project is to allow building the base system on Linux and macOS hosts. I started this project in 2017 to allow building CheriBSD on the Linux servers and desktops that many of us working on the CHERI project use. The first few patches were upstreamed in 2018 (see the 2018q3 report) and I merged the full set of patches to CheriBSD shortly after. Over the past two years I have slowly been upstreaming the remaining patches and finally committed the last required change in time for this report. As of September 2020 it should be possible to use the buildworld and buildkernel make targets to build a fully-functional FreeBSD installation on macOS and Linux hosts. We use this in our continuous integration system to build and test CheriBSD disk images for multiple architectures. I have also committed a GitHub Actions configuration upstream that takes approximately 10 minutes to build an amd64 kernel. This will ensure that changes that break crossbuilding from Linux/macOS can be detected easily. Upstreaming the crossbuilding changes has resulted in various build system cleanups. For example, we now no longer need to use lorder.sh when building libraries which speeds up the linking step a bit. The portability and bootstrapping changes should also make it easier to upgrade from older versions since we no longer rely on host headers in /usr/include matching those of the target system (e.g. when bootstrapping localedef, etc.). While this support for building on Linux and macOS should still be considered experimental, it should work in many cases. If you would like to give it a try, the following command line should successfully build an amd64 world on Linux and macOS systems that have packages for LLVM 10 (or newer) installed: MAKEOBJDIRPREFIX=3D/somewhere ./tools/build/make.py TARGET=3Damd64 TARGET_ARCH=3Damd64 buildworld Buil= ds must be performed using the ./tools/build/make.py wrapper script since most Linux and macOS systems do not ship an appropriate version of bmake. Please let me know if you encounter any issues. Sponsor: DARPA __________________________________________________________________ Git Migration Working Group Links Git conversion tooling repo=20 URL: https://github.com/freebsd/git_conv FreeBSD-git mailing list=20 URL: https://lists.freebsd.org/mailman/listinfo/freebsd-git Beta doc git repo=20 URL: https://cgit-beta.FreeBSD.org/doc Beta ports git repo=20 URL: https://cgit-beta.FreeBSD.org/ports Beta src git repo=20 URL: https://cgit-beta.FreeBSD.org/src Contact: Ed Maste Contact: Warner Losh Contact: Ulrich Sp=C3=B6rlein Work continues on FreeBSD's migration from Subversion to Git. Ulrich has addressed all known issues with svn2git and has been able to work around the inconsistent metadata and forced commit issues in the Subversion history. We still have additional documentation to write, and need to finish installing commit hooks (e.g. restricting branch creation, or ensuring appropriate data exists on cherry-pick commits). We expect to open the beta repository to test commits before the end of October. This is to allow testing of the commit hooks, and to allow developers to test access and become familiar with git operation. Commits in this repository will be deleted and the repository will be recreated at least once prior to the final migration. Those with an interest in the migration to Git are encouraged to subscribe to the FreeBSD-git mailing list and test out the beta src, ports, and/or doc repositories. You are also welcome check out the wiki, issues, README and other documentation at the Git conversion tooling repo. We currently expect to transition the src and doc repositories in mid-November. Additional investigation and experimentation with the ports repository is still underway. Sponsor: The FreeBSD Foundation (in part) __________________________________________________________________ Linux compatibility layer update Contact: Edward Tomasz Napierala Contact: Mark Johnston Earlier Linuxulator work focused on code cleanups and improving diagnostic tools. Work has now shifted from cleanups to fixing actual applications. Current status is being tracked at Linux app status Wiki page. Initial focus was on applications that don't involve X11, mostly because they tend to be easier to test and debug, and the bug fixes are not application-specific. Foundation-sponsored work during this quarter included implementing a devfs(5) workaround to fix gettynam(3) inside jail/chroot, and workaround for the missing splice(2) syscall, which caused problems for grep and autotools. The Linux version reported to userspace was bumped to 3.10.0, which matches the kernel shipped with RHEL 7 and is neccessary for IBM's DB2 database installation to succeed. The BLKPBSZGET ioctl neccessary for Oracle database is supported now. There is now support for kcov(4), neccessary for syzcaller; as well as a number of fixes for issues reported by syzcaller, such as futex lock leaks. There were also more cleanups, including moving some Linuxulator-specific functionality related to error handling off from the syscall's fast code paths. The sysutils/debootstrap port, which provides an easy way to create Debian or Ubuntu jail, was updated to version 1.0.123. Finally there were some improvements to the documentation. Most of those changes have been merged to FreeBSD 12-STABLE, in order to ship with 12.2-RELEASE. There is increased involvement from other developers; this includes termios performance fixes, improved memfd support, implementing CLOCK_MONOTONIC_RAW required for Steam, madvise improvements, new compat.linux.use_emul_path sysctl. There is also ongoing work on tracking down the causes of failures related to Steam and WebKit, with fixes being first implemented in linuxulator-steam-utils. Sponsor: The FreeBSD Foundation __________________________________________________________________ LLDB Debugger Improvements Links Moritz Systems Project Description=20 URL: https://www.moritz.systems/blog/lldb-debugger-improvements-for-fre= ebsd/ Git Repository=20 URL: https://github.com/moritz-systems/llvm-project Contact: Kamil Rytarowski Contact: Michal G=C3=B3rny FreeBSD includes LLDB, the debugger in the LLVM family, in the base system. At present it has some limitations in comparison with the GNU GDB debugger, and does not yet provide a complete replacement. It relies on an obsolete plugin model in LLDB that causes growing technical debt. This project aims to bring LLDB closer to a fully featured replacement for GDB, and therefore for FreeBSD to feature a modern debugger for software developers. The legacy monolithic target supports the executed application being debugged in the same process space as the debugger. The modern LLDB plugin approach, used on other supported targets, executes the target process under a separate lldb-server process. This improves reliability and simplifies the process / thread model in LLDB itself. In addition, remote and local debugging will both be performed using the same approach. After the migration to the new process model is complete, the project will include reviewing the results of LLDB's test suite and fixing tests as time permits. The work is expected to be complete in 2020. The project schedule is divided into three milestones, each taking approximately one month: 1. Introduce new FreeBSD Remote Process Plugin for x86_64 with basic support and upstream to LLVM. 2. Ensure and add the mandated features in the project (process launch, process attach (pid), process attach (name), userland core files, breakpoints, watchpoints, threads, remote debugging) for FreeBSD/amd64 and FreeBSD/i386. 3. Iterate over the LLDB tests. Detect, and as time permits, fix bugs. Ensure bug reports for each non-fixed and known problem. Add missing man pages and update the FreeBSD Handbook. We are nearing the completion of the first milestone. The new plugin is getting into shape, and it can already run simple single-threaded programs. The supported features include single-stepping, breakpoints, memory and register I/O on amd64. Both plugins are supported simultaneously. The new plugin is used if FREEBSD_REMOTE_PLUGIN environment variable is set to any value, or if lldb-server is spawned directly. Otherwise, the old plugin is used for compatibility. Once the new plugin matures, we are planning to enable it unconditionally on the architectures that it is ported to. Sponsor: The FreeBSD Foundation __________________________________________________________________ Lua usage in FreeBSD Contact: Ed Maste Contact: Kyle Evans Contact: Ryan Moeller During this quarter, flua (FreeBSD Lua) was taught where to find base .lua modules in order to support require of .lua modules to be provided by the base system. flua also gained support for require of binary modules. A review for libjail bindings has also been submitted, pending review. libjail is an essential component if one wants to be able to write jail management utilities in flua. People interested in working with Lua in FreeBSD are welcome to get in contact to discuss other project ideas. To name a couple of potential projects, some interesting modules that have not been started but could prove useful (listed in no particular order): * libcrypt * libexpat * libnv * libxo There is also a small list of scripts that would do well with a port to flua: * certctl(8) __________________________________________________________________ NFS over TLS implementation Contact: Rick Macklem In an effort to improve NFS security, an internet draft which I expect will become an RFC soon specifies the use of TLS 1.3 to encrypt all data traffic on a Sun RPC connection used for NFS. Although NFS has been able to use sec=3Dkrb5p to encrypt data on the wire, this requires a Kerberos environment and, as such, has not been widely adopted. It also required that encryption/decryption be done in software, since only the RPC message NFS arguments are encrypted. Since Kernel TLS is capable of using hardware assist to improve performance and does not require Kerberos, NFS over TLS may be more widely adopted, once implementations are available. The coding for this project has now been completed. All required changes to the NFS and kernel RPC code have been committed to -CURRENT. The daemons are now believed to be complete, but will remain in base/projects/nfs-over-tls until -CURRENT has an OpenSSL library with the kernel TLS support incorporated in it. If this does not happen for FreeBSD-13, hopefully the patched OpenSSL and the daemons can become ports. To support clients such as laptops, the daemons that perform the TLS handshake may optionally handle client X.509 certificates from a site local CA. There are now exports(5) options to require client(s) to provide a valid X.509 certificate. While setting up system(s) for testing is still a little awkward, the documentation is now available for those who want to help with testing. The main limitation in the current implementation is that it uses TLS1.2 and not TLS1.3. This should change once the KERN_TLS rx patch includes TLS1.3 support. Third party testing would be appreciated. __________________________________________________________________ syzkaller on FreeBSD Contact: Mark Johnston See the syzkaller entry in the 2019q1 quarterly report for an introduction to syzkaller. syzkaller, especially the public syzbot instance, continues to find bugs in the FreeBSD kernel. A number of these bugs have been fixed in subsystems such as the VFS name cache, the TCP and SCTP stacks, pf(4), the unix domain socket implementation, and the Linuxulator. The FreeBSD Foundation sponsored some work to enable cross-OS fuzzing. This makes it possible to fuzz the Linuxulator using syzkaller's Linux target. This effort quickly found several bugs; once the support is committed upstream we will hopefully be able to leverage syzbot to gain continuous testing of the Linux system call interface in addition to the native and 32-bit compatibility interfaces. Some work was also done to enable running syzkaller in a FreeBSD jail, with the eventual aim of making it easy to distribute binary images containing everything required to immediately start running syzkaller on a new host. Currently a number of setup steps are required, making deployment somewhat painful. Sponsor: The FreeBSD Foundation __________________________________________________________________ Kernel Updates to kernel subsystems/features, driver support, filesystems, and more. DRM Drivers Update Links drm-kmod=20 URL: https://github.com/freebsd/drm-kmod/ Contact: Emmanuel Vadot The drm drivers for FreeBSD 13-CURRENT have been updated to match Linux 5.4.62 Then graphics/drm-current-kmod have been updated to follow this LTS release of Linux. For now graphics/drm-devel-kmod is also tracking this release but will be updated to a later revision of Linux drm drivers in the near future. A lot of linuxkpi code was removed from the ports or replaced with a BSD licenced implementation. Sponsor: The FreeBSD Foundation __________________________________________________________________ DTS Update Contact: Emmanuel Vadot DTS files (Device Tree Sources) were updated to be on par with Linux 5.8 for HEAD and 5.6 for the 12-STABLE branch. __________________________________________________________________ DesignWare Ethernet adapter driver improvements Links WIP branch=20 URL: https://github.com/gonzoua/freebsd/tree/rk_eth Contact: Oleksandr Tymoshenko DesignWare Ethernet adapter IP is used in Rockchip and Allwinner SoCs. The driver was updated with following fixes: * Initialize clocks instead of relying on u-boot to do the right thing. * Sense media type and adjust controller configuration accordingly. * Add support for RMII PHY mode. Yet uncommitted changes include performance optimisation by adding support for multi-segment mbuf transmission. The next step is to try to get more performance boost by using interrupt coalescence. __________________________________________________________________ Google Summer of Code'20 Project - eBPF XDP Hooks Links Github diff link=20 URL: https://github.com/Ankurk99/freebsd/tree/ebpf-import Project wiki =20 URL: https://wiki.freebsd.org/SummerOfCode2020Projects/eBPFXDPHooksl Contact: Ankur Kothiwal The eBPF eXpress Data Path (XDP) allows eBPF programs to be run to filter received packets as early as possible, avoiding unnecessary processing overhead before the filter is run. The goal of this project is to extend an existing FreeBSD network driver (a virtual NIC like a VirtIO if_vtnet) to be able to call into an eBPF program when processing a newly received packet. In short, with XDP the driver must PASS (accept and process normally), DROP, TX or REDIRECT the packet as specified by the program. eBPF helper functions and maps for aiding in packet filtering will also be implemented. Implemented: * Register a eBPF probe when an interface is registered with pfil. * Activating eBPF probe. * Create hooks and link them to the pfil head when the eBPF XDP probe is activated and successfully list the XDP probes. * Create a xdp_rx function which will pass the received packets to the eBPF program where the packets can be further processed. This function will return XDP actions: DROP and PASS. * Register the xdp hook and link it to the pfil head. * Write an eBPF program to process (currently drop and pass) ICMP traffic - This is to test that the hook is working properly. * Write a loader function to load the ICMP filter program to the kernel. Future Work: * Currently we can only attach the XDP hook to PASS and DROP the packets - The work on detaching the hook is left. * The XDP action to "TX" and "REDIRECT" the packets. Final Deliverables: * Implemented XDP hook to pass and drop packets. * Created a loader program to attach the eBPF program to the kernel. * A test program to DROP ICMP filter. This code was done under the Google Summer of Code 2020 under the guidance of Ryan Stone (rstone@). The eBPF implementation for FreeBSD is still a work in progress and FreeBSD doesn't support eBPF yet. The basic implementation for eBPF was a GSoC'18 project, and is still under development. This project is based on that implementation so the XDP implementation for FreeBSD can only be merged into the FreeBSD source code once it supports eBPF. Currently this code is a work in progress and is merged to Ryan Stone's branch with support for the eBPF implementation. Sponsor: Google Summer of Code __________________________________________________________________ ENA FreeBSD Driver Update Links ENA README=20 URL: https://github.com/amzn/amzn-drivers/blob/master/kernel/fbsd/ena/R= EADME Contact: Michal Krawczyk Contact: Artur Rojek Contact: Marcin Wojtas ENA (Elastic Network Adapter) is the smart NIC available in the virtualized environment of Amazon Web Services (AWS). The ENA driver supports multiple transmit and receive queues and can handle up to 100 Gb/s of network traffic, depending on the instance type on which it is used. Completed since the last update: * Fix ENA compilation in case it is integrated into the kernel binary. * MFC of the ENA v2.2.0 driver to the FreeBSD 12.2. Work in progress: * Add feature that allows reading extra ENI (Elastic Network Interface) metrics about exceeding BW/pps limits. * Introduce full kernel RSS API support. * Allow reconfiguration of the RSS indirection table and hash key. * Evaluation and prototyping of the driver port to the iflib framework. Sponsor: Amazon.com Inc __________________________________________________________________ IPSec Extended Sequence Number (ESN) support Contact: Grzegorz Jaszczyk Contact: Patryk Duda Contact: Marcin Wojtas Extended Sequence Number (ESN) is IPSec extension defined in RFC4303 Section 2.2.1. It makes possible to implement high-speed IPSec implementations where standard, 32-bit sequence number is not sufficient. A key feature of the ESN is that only low order 32 bits of sequence number are transmitted over the wire. High-order 32 bits are maintained by sender and receiver. Additionally high-order bits are included in the computation of Integrity Check Value (ICV) field. Extended Sequence Number support contains following: * Modification of existing anti-replay algorithm to fulfil ESN requirements. * Trigger soft lifetime expiration at 80% of UINT32_MAX when ESN is disabled. * Implement support for including ESN into ICV in cryptosoft engine in both encrypt and authenticate mode (eg. AES-CBC and SHA256 HMAC) and combined mode (eg. AES-GCM). * Implement support for including ESN into ICV in AES-NI engine in both encrypt and authenticate mode and combined mode. Completed since the last update: * Adjust implementation of crypto part to the reworked Open Crypto Framework. * Move the core ESN implementation from the crypto drivers to netipsec layer. * Make use of the newly introduced crp_aad mechanism for combined modes. * Introduce minor fixes and improvements. TODO: * Complete review process in Phabricator and merge patches in the tree. Sponsor: Stormshield __________________________________________________________________ NXP ARM64 SoC support Contact: Marcin Wojtas Contact: Artur Rojek Contact: Dawid Gorecki The Semihalf team initiated working on FreeBSD support for the NXP LS1046A SoC LS1046A are quad-core 64-bit ARMv8 Cortex-A72 processors with integrated packet processing acceleration and high speed peripherals including 10 Gb Ethernet, PCIe 3.0, SATA 3.0 and USB 3.0 for a wide range of networking, storage, security and industrial applications. Completed since the last update: * Upstreaming of the QorIQ SDHCI driver (r365054). With above the current Semihalf upstreaming activity is complete. The major out-of-tree supported components: * DPAA network controller support. * QSPI controller support. They work on 11.2-RELEASE, but still require significant effort to adopt to FreeBSD-CURRENT. Sponsor: Alstom Group __________________________________________________________________ Addition of PowerPC64LE Architecture Links Early notes=20 URL: https://lists.freebsd.org/pipermail/freebsd-ppc/2020-August/012043= =2Ehtml Announcement=20 URL: https://lists.freebsd.org/pipermail/freebsd-ppc/2020-September/012= 098.h tml Contact: Brandon Bergren As of r366063, experimental support for little-endian PowerPC64 (PowerPC64LE) is available in -CURRENT for POWER8 and POWER9 machines. In 2010, when FreeBSD was ported to PowerPC64, the average user would have been using a G5 PowerMac, a purely big-endian machine. While, at the time, a 32-bit PowerPC machine could run in little-endian, as well as POWER6 and POWER7, in practice, the complexities involved in managing it at the kernel level and lack of firmware support made it infeasible to support. When IBM designed POWER8, one main focus was to improve little-endian support, and bring it up to parity with big-endian. This improved support makes it practical to support a little-endian operating environment on what is traditionally a primarily big-endian platform. In 2020, with POWER9 being affordable for many users thanks to the Raptor Blackbird, semi-easy access to surplus POWER8 hardware, IBM having a major future focus on POWER little-endian, and the decay of big-endian support in modern video cards and graphical environments, there is demand for a little-endian version of FreeBSD on POWER. With FreeBSD/PowerPC64's transition in 2019 to the ELFv2 ABI as part of the 2019q4 PowerPC on Clang effort, the last major barrier to a little-endian port was eliminated. Since nobody else was working on it, and I had the skillset required to do the port, I decided to experiment one weekend with a little-endian kernel to see how difficult it would be to port. It turned out to be a lot more trivial than I was expecting. Three days later I had console support in qemu, and after another week of debugging, I had it fully up and running on hardware. FreeBSD PowerPC64LE is now an experimental MACHINE_ARCH in base, and is continuing to evolve at a rapid pace. Big-endian PowerPC64 is still the preferred platform for the foreseeable future, and will not be deprecated. Sponsor: Tag1 Consulting, Inc. __________________________________________________________________ ure - USB 3.0 Gigabit Ethernet Driver update Links svn commit: r365648=20 URL: https://svnweb.freebsd.org/changeset/base/365648 FreeBSD-SA-20:27.ure=20 URL: https://www.freebsd.org/security/advisories/FreeBSD-SA-20:27.ure.a= sc D25809 major update to if_ure=20 URL: https://reviews.freebsd.org/D25809 Contact: John-Mark Gurney The ure is a driver for handling the RealTek ethernet adapters, including the RTL8153 USB 3.0 Gigabit ethernet adapters. It is used in many ethernet dongles and docking stations. Previous to this update, the driver was limited in speed. In my testing, I was only able to get ~91Mbps. This limit was due to one packet per USB transfer. USB has a limit of 8000 transfers per second (1500 bytes/pkt * 8000 pkts/sec * 8bits/byte =3D=3D 96 Mbps). This was acceptable for fast ethernet (RTL8152, 100Mbps), but with the additional support for Gigabit ethernet, it became a bottleneck. The updates add sending and receiving multiple packets in a single USB transfer, VLAN hardware tagging, and enable TCP and UDP checksum offloading. This increased the speed on gigabit ethernet to ~940 Mbps. In doing this work, a security vulnerability was discovered in the driver. Due to improper setting of a device register, on some devices, it caused packets to be fragmented when they shouldn't be and the driver was unable to handle them correctly. This allowed an attacker, who could generate large frames (say, ping packets, or large TCP transfers), to inject arbitrary packets into the network stack. This could allow the attacker to spoof traffic from other machines, and bypass VLAN protections. See the SA for more information. As part of this work, a script was created to run tests to validate that basic functionality of the driver (w/o options) work properly, and then iterate over each option to make sure that they function properly. This will be released at some point in the future. If you're interested in helping out, or testing it, let me know. __________________________________________________________________ Stateless hardware offloads for VXLANs Links r365867=20 URL: https://svnweb.freebsd.org/base?view=3Drevision&revision=3Dr365867 r365868=20 URL: https://svnweb.freebsd.org/base?view=3Drevision&revision=3Dr365868 r365869=20 URL: https://svnweb.freebsd.org/base?view=3Drevision&revision=3Dr365869 r365870=20 URL: https://svnweb.freebsd.org/base?view=3Drevision&revision=3Dr365870 r365871=20 URL: https://svnweb.freebsd.org/base?view=3Drevision&revision=3Dr365871 RFC6935=20 URL: https://tools.ietf.org/html/rfc6935 Contact: Navdeep Parhar VXLAN (Virtual eXtensible LAN) is a tunneling protocol in which Layer 2 traffic for a virtual LAN is encapsulated in UDP and transferred over Layer 3 networks between VTEPs (VXLAN Tunnel End Points). Traffic on the wire has two sets of networking headers: the headers for the encapsulation and the headers of the traffic being encapsulated. VXLANs are supported by if_vxlan(4) on FreeBSD. Modern NICs commonly support header checksum insertion and verification, TSO (TCP Segmentation Offload) on transmit, and RSS for load distribution on receive. But the default is to operate on the outermost headers. Some NICs can operate on the inner encapsulated frames as well. The commits listed above allow if_vxlan(4) to take advantage of such NICs. r365867 and r365868 add new mbuf checksum flags and ifnet capabilities. r365870 implements the kernel parts of the new capabilities and updates if_vxlan(4) to make use of them. r365871 implements driver support for the new capabilities in cxgbe(4). VXLAN and other tunneling protocols that use UDP explicitly allow zero checksum in the outer UDP header, even with IPv6. r365869 adds support for configuring one UDP/IPv6 port where zero checksums are allowed. This work was sponsored by Chelsio Communications and was implemented and tested using T6 (Terminator 6) NICs supported by cxgbe(4). It is available in 13.0-CURRENT (head) right now and will be available in 12-STABLE in the future. VXLANs can be created as usual and will automatically have checksum and TSO capabilities if the underlying physical interface supports VXLAN stateless offloads. Use ifconfig to list, disable, and enable checksum capabilities on the VXLAN interface. Use https://bugs.freebsd.org/bugzilla/ to report bugs. Future work: * Direct call into a vxlan input routine from the driver's receive routine. * LRO support in if_vxlan(4). * GENEVE support. Sponsor: Chelsio Communications __________________________________________________________________ Wireless updates Links The freebsd-wireless mailing list=20 URL: https://lists.freebsd.org/mailman/listinfo/freebsd-wireless athp github repository=20 URL: https://github.com/erikarn/athp Contact: Adrian Chadd Contact: Bjoern A. Zeeb The following works happened in FreeBSD HEAD (some already in Q2) and were merged for 12.2-BETA2 and include net80211 and driver updates for better 11n and upcoming 11ac support. In more detail, this includes an ath(4) update, some run(4) 11n support, 11n for otus(4), A-MPDU, A-MSDU, A-MPDU+A-MSDU and Fast frames options, scanning fixes, enhanced PRIV checks for jails, restored parent device name printing, improvements for upcoming VHT support, lots of under-the-hood infrastructure improvements, new device IDs, and debug tools updates. If you have a chance please test before the release. Atheros 11ac driver athp In the last three months the athp(4) port of the ath10k driver has progressed well. Adrian reports the following important changes: * Per-node transmit buffering was implemented, required for correct hostap and QCA6174 behaviour. * Issues with ignoring sending some management frames got fixed; null-data frames were being filtered out and this caused undesirable hostap behaviour. * Transmit path refactoring reduced code duplication. * A fix on firmware start / VAP running tracking no longer stops the first VAP from coming active after VAP creation / ifconfig up. * Correcting hostap mode PHY configuration now allows non-VHT stations to associate and correctly exchange data with a VHT AP. * Addition of a crypto key configuration cache in the driver ensures the ieee80211_key details are available after the key is deleted; net80211 would reuse or free the state before the driver task would finish the firmware command. Newer Intel Wireless device support Initial work was done to integrate net80211 support in the LinuxKPI compat layer to get the wireless parts going. In addition, upstreaming code changes and working through problems and review started on two sides. One was trying to get mostly compile time changes upstreamed to the iwlwifi driver. The other is sorting out conflicting LinuxKPI changes to not break the DRM graphics drivers. Bjoern hopes that with some of that sorted out, he can soon go back to focus on the wireless parts and produce a new snapshot. rtw88 and brcmfmac As the Intel driver port and LinuxKPI advance, both the rtw88, and to a lower degree the brcmfmac, ports benefit from that. Bjoern lately also got a brcmfmac PCIe card and started to port support for that. This for the moment remains a free-time project. Work by Bjoern was sponsored by: Rubicon Communications, LLC (d/b/a "Netgate") and The FreeBSD Foundation __________________________________________________________________ ZSTD Compression in ZFS Contact: Allan Jude Zstandard (ZSTD) is a modern high-performance compression algorithm designed to provide the compression ratios of gzip while offering much better performance. ZSTD has been adopted in FreeBSD for a number of other uses, including compressing kernel crash dumps, as a replacement for gzip or bzip for compressing log files, and for future versions of pkg(8). This effort to complete the integration of ZSTD into ZFS is funded by the FreeBSD Foundation. During the third quarter the integrating of ZSTD into OpenZFS was completed in the upstream OpenZFS repository, and the new OpenZFS 2.0 codebase was imported into 13-CURRENT. Completed milestones in this project: * Importing ZSTD 1.4.5 into OpenZFS, using the recent upstream zstd features that make it easier to embed zstd in other projects. * Changing the way compression levels are tracked and inherited. * Save and restore the compression level via an embedded block header. * Also store the version of zstd used in the embedded block header, for future-proofing. The checksum of a block may not match if zstd is upgraded, since it may compress the block more. * Add tests to ensure zstd compression and metadata survive ZFS replication. * Resolve possible negative interactions with L2ARC and ZFS Native Encryption. * Fix bug with L2ARC if the Compressed ARC feature is disabled. * Improve the ZFS feature activation code, so that zstd cannot create pools that will panic older versions of ZFS. With these changes, upgraded pools can compress data with zstd or zstd-fast, across a wide range of different compression levels. This will allow the storage administrator to select the performance-vs-compression tradeoff that best suits their needs. Tasks remaining to be completed: * Add a section to the FreeBSD Handbook ZFS chapter about zstd * Create more documentation around selecting a suitable compression level * Finish support for ZSTD in the FreeBSD boot loader (Warner Losh imp@freebsd.org) Sponsor: The FreeBSD Foundation __________________________________________________________________ Architectures Updating platform-specific features and bringing in support for new hardware platforms. CheriBSD 2020 Q3 Links Contact: Alex Richardson Contact: Andrew Turner Contact: Brooks Davis Contact: Edward Tomasz Napierala Contact: George Neville-Neil Contact: Jessica Clarke Contact: John Baldwin Contact: Robert Watson Contact: Ruslan Bukin CheriBSD extends FreeBSD to implement memory protection and software compartmentalization features supported by the CHERI instruction-set extensions. There are three architectural implementations of the CHERI protection model: CHERI-MIPS, CHERI-RISC-V, and Arm's forthcoming experimental Morello processor (due late 2021). CheriBSD is a research operating system with a stable baseline implementation into which various new research features have been, or are currently being, merged: * Arm Morello - We are preparing to open source our adaptation of CheriBSD to Arm's Morello architecture. The Morello branch is being updated to the most recent CheriBSD baseline, and patches are in review for upstreaming to our open-source repository. CheriBSD currently boots and runs statically linked CheriABI binaries on the Morello simulator, and dynamic linking support is in progress, with OS and toolchain bugs being worked on. We aim to make a first CheriBSD/Morello snapshot available alongside other open-source Morello software in mid-October 2020, however, our target for a more mature and usable implementation is December 2020. * Kernel spatial memory safety (pure-capability kernel) - The current CheriBSD kernel is a hybrid C program where only pointers to userspace are CHERI capabilities. This ensures that the kernel follows the intent of the application runtime and cannot be used to defeat bounds on application pointers. We have developed and will soon merge a pure-capability kernel where all pointers in the kernel are appropriately bounded capabilities. This vastly reduces the opportunity for buffer overflows. This spatial memory safety lays the groundwork for future work such as device driver compartmentalization and kernel temporal safety. * Userspace heap temporal memory safety (Cornucopia) - CHERI capabilities provide the necessary features to enable robust and efficient revocation of freed pointers. With Cornucopia we have implemented a light-weight revocation framework providing protection from use-after-reallocation bugs with an average cost below 2%. We aim to bring these overheads down further over the next year and merge this functionality into the mainline CheriBSD. * We have been working on updating the arm64 bhyve from Politehnica University of Bucharest to have it committed to FreeBSD. We have been upstreaming initial changes to help support this. * Baseline FreeBSD improvements - We are upstreaming (to FreeBSD) various bug fixes and tweaks for PCIe support, and support for the System MMU (SMMU) that will be present on the N1SDP and Morello SoCs. We have upstreamed support for cross-building FreeBSD from macOS and Linux (with some limitations; see separate entry on crossbuilding). We have also fixed implementation bugs in the RISC-V ABI. CHERI Documentation and Exercises * We have released [Capability Hardware Enhanced RISC Instructions: CHERI Instruction-Set Architecture (Version 8)](https://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-951.pdf). Notable changes include promotion of CHERI-RISC-V to non-experimental and discussion of Arm's Morello prototype. * We have developed a set of [Adversarial CHERI Exercises and Missions](https://ctsrd-cheri.github.io/cheri-exercises) to introduce security researchers to CHERI protections. __________________________________________________________________ FreeBSD/RISC-V Project Links Wiki=20 URL: https://wiki.freebsd.org/riscv Contact: Mitchell Horne Contact: freebsd-riscv Mailing List Contact: IRC #freebsd-riscv on freenode The FreeBSD/RISC-V project is providing support for running FreeBSD on the RISC-V Instruction Set Architecture. This quarter saw several important bug fixes. A number of hangs in the system were identified and addressed, and a bug in QEMU's implementation of the Platform Level Interrupt Controller was fixed. This fix is included in the new devel/qemu50 and devel/qemu-devel ports. The end result of these fixes is that the test suite can now be reliably run to completion in QEMU. The entire run takes several hours, so CI has been configured to run the job once a day. There is active effort into reducing the time it takes to run the entire test suite. A new u-boot port was created: sysutils/u-boot-qemu-riscv64. This variant can be used as a secondary bootloader alongside OpenSBI to load and launch FreeBSD's loader(8) from an EFI System Partition. Next quarter will likely bring further fixes to address some of the failing test cases. __________________________________________________________________ Ports Changes affecting the Ports Collection, whether sweeping changes that touch most of the tree, or individual ports themselves. Update to grub-bhyve Links grub-bhyve Git Repository=20 URL: https://gitlab.com/ctuffli/grub Contact: Chuck Tuffli bhyve is the hypervisor included in FreeBSD and other operating systems used to run virtual machines. When not using a boot ROM (i.e. UEFI), the user must load the guest operating system for bhyve. For non-FreeBSD guests, the loader is a version of GNU GRUB (a.k.a the GNU GRand Unified Bootloader) modified to interface with bhyve. This work is an effort to both update the base GRUB code to the latest version as well as improve the usability on FreeBSD. The current grub-bhyve is based on an older version of GRUB (circa 2015) and thus is missing more recent additions such as XFS file system and syslinux support. With the update, installing CentOS, for example, now does not require the extra step of changing the default file system to something other than XFS. Internally, the code has been restructured to be its own "platform" which should make it easier to keep in sync with upstream development. The major improvement is the ability to automatically find and load the GRUB configuration file from the guest disk image. With this change, it is not necessary to create a device map file or specify which Linux kernel or initrd image to use. More importantly, if the guest image updates its GRUB configuration, for example after updating the kernel, no changes are needed when invoking grub-bhyve. Note, this feature requires a new "disk" option: # grub-bhyve --disk=3D/zroot/vms/u18-mini/disk0.img --vm=3Du18-mini The automatic configuration file detection works with both GRUB configuration files (e.g. CentOS, Ubuntu) as well as syslinux configuration (e.g. Alpine). For the adventurous, there is experimental support for Fedora's BootLoaderSpec (a.k.a. blscfg) on the blscfg branch of the grub-bhyve Git repository. The code has been tested on a few Linux variants, but it would benefit from wider testing (and bug reports!). The new version does not have a Port but is easily built on FreeBSD. After cloning / downloading the source, run: $ PYTHON=3Dpython3.7 ./bootstrap $ MAKE=3Dgmake ./configure --with-platform=3Dbhyve $ gmake The resulting binary, grub-bhyve, will be in the grub-core/ directory. If you have success or troubles with it, please let me know. __________________________________________________________________ KDE on FreeBSD Links KDE FreeBSD =20 URL: https://freebsd.kde.org/ KDE Community FreeBSD=20 URL: https://community.kde.org/FreeBSD Contact: Adriaan de Groot The KDE on FreeBSD project aims to package all of the software produced by the KDE Community for the FreeBSD ports tree. The software includes a full desktop environment called KDE Plasma, an IDE with the name KDevelop, a PIM suite known as Kontact and hundreds of other applications that can be used on any FreeBSD machine. With the continuation of the ever-so-peculiar era of almost-only-online, the KDE community has shifted gears and also gone for online events. The yearly conference, Akademy, was conducted online over video calls. Meanwhile, software continues to be released, so this quarter the kde@ team: * Put the beta of the next version of KDE Plasma, scheduled for official release in October 2020, into the Area51 development tree. Area51 is a fork of the FreeBSD ports tree where new development for KDE ports happens. * The monthly regular updates to the KDE Plasma desktop landed on-time and safely. * With three months in a quarter, there were also three releases of KDE Frameworks 5, including a new framework for handling DAV jobs. * The June applications update and its .1 release landed a bit late, but brings with it the usual raft of updates to KDE applications and libraries, * A new Digikam release, which arrived in the ports tree on the day of its release. * A new KDevelop release arrived a day after its release. This update contains a number of crash fixes for refactoring support. * Qt was updated to Qt 5.15, the last in the Qt5 series and an LTS version. Bugfix releases are expected, but the next major Qt will be Qt 6. On the infrastructure front, August saw some minor updates to CMake and ninja. As usual, kde@ continues to support the work of xorg@ and gnome@ in maintaining the Free Desktop stack on FreeBSD, including XOrg, poppler, and xdg-utils. A new MAINTAINER group, desktop@, has been created to provide shared ownership of that shared stack. With Python2 deprecation looming, the build system for QtWebEngine -- itself a fork of Chromium -- is becoming a pressing issue in Q4 and will no doubt chew up a lot of time in the coming months. __________________________________________________________________ Documentation Noteworthy changes in the documentation tree, in manpages, or in external books/documents. DOCNG on FreeBSD Links DOCNG Website Repo=20 URL: https://gitlab.com/carlavilla/freebsd-hugo-website DOCNG Documentation Repo=20 URL: https://gitlab.com/carlavilla/freebsd-hugo-documentation DOCNG Share Repo=20 URL: https://gitlab.com/carlavilla/freebsd-hugo-data Contact: Sergio Carlavilla The Doc New Generation project aims to convert the website and all existing documentation to Hugo/AsciiDoctor. Right now almost everything is converted as you can see in the repositories. The objective of using Hugo and AsciiDoctor is to reduce the learning curve and let people to start quickly with our documentation system. Other benefits of using Hugo is that we can use other technologies aside from AsciiDoctor, like MarkDown, RST, Pandoc, etc. The remaining tasks include: * Finish the conversion of some books to AsciiDoctor. * Get some tweaks in the CSS to be responsive. * Add AsciiDoctor extensions to create an index of tables and figures. * Make a general review. The dates for making the migration have yet to be discussed. Patches, comments and objections are always welcome. __________________________________________________________________ Third-Party Projects Many projects build upon FreeBSD or incorporate components of FreeBSD into their project. As these projects may be of interest to the broader FreeBSD community, we sometimes include brief updates submitted by these projects in our quarterly report. The FreeBSD project makes no representation as to the accuracy or veracity of any claims in these submissions. Potluck - Flavour & Image Repository for pot Links Potluck Repository & Project=20 URL: https://potluck.honeyguide.net/ Potluck on github =20 URL: https://github.com/hny-gd/potluck pot project =20 URL: https://pot.pizzamig.dev Contact: <> pot is a jail management tool that also supports orchestration through nomad. Potluck aims to be to FreeBSD and pot what Dockerhub is to Linux and Docker: A repository of pot flavours and complete images for usage with pot. In the last quarter, an initial set of Nomad, Consul and Traefik images has been created that are sufficient to run a simple virtual datacenter out of the box. A three-part article series explaining how to set this up is also available now. Furthermore, ready-made images suitable for scheduling via Nomad and Consul in such an environment have been created, e.g. a BackupPC or a Postfix Backup MX service. Future plans include additional images and exposing more configuration options in the existing images to allow a more flexible usage. Beside general feedback and tests, additional flavours and patches are very welcome! Sponsors: Honeyguide GmbH & Honeyguide Group (Pty) Ltd ## Puppet Puppet Puppet's FreeBSD slack channel Bolt Choria Puppet Team puppet@FreeBSD.org Since out last status report a few years ago, the puppet@ team regularly updated the various Puppet ports to follow upstream releases of Puppet 4, Puppet 5 and Puppet 6. Puppet 4 was removed when it reached EOL. More recently, an effort was made to enhance Facter 4 so that it can be used as a drop-in replacement of Facter 3 on FreeBSD. Facter 4 is a Ruby rewrite of Facter 3, the C++ rewrite of Facter 2 which was initially in Ruby. As a consequence we have two ports for Facter: sysutils/facter is the C++ implementation (Facter 3) and sysutils/rubygems-facter is the Ruby implementation (updated from Facter 2 to Facter 4 a few weeks ago). The Puppet 5 and Puppet 6 ports already allow to choose which version of Facter to use. Facter 4 will be the default version of Facter with Puppet 7 which is expected to be released soon. We are getting ready to add a port for Puppet 7 as sysutils/puppet7 when it is available, along with PuppetServer 7 (sysutils/puppetserver7), and PuppetDB 7 (databases/puppetdb7). Regarding orchestration, most Marionette Collective ports have been deprecated for a long time, and the last component sysutils/mcollective is expected to be deprecated soon: Marionette Collective was not shipped anymore with Puppet 6 and Bolt has been made available as a lightweight replacement. Bolt is already available in the ports tree as sysutils/rubygems-bolt), but if you are using Marionette Collective, you are invited to look into Choria which will reach the ports tree soon as sysutils/choria. Choria is a direct evolution of Marionette Collective allowing a smooth transition from MCollective. Once Choria is available in the ports tree, Marionette Collective will be deprecated. __________________________________________________________________ News Home | Status Home Site Map | Legal Notices | =C2=A9 1995-2020 The FreeBSD Project. All rig= hts reserved. --u3hngvn2nte45ec7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGTBAABCgB9FiEEDonNJPbg/JLIMoS6Ps5hSHzN87oFAl+QsRhfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDBF ODlDRDI0RjZFMEZDOTJDODMyODRCQTNFQ0U2MTQ4N0NDREYzQkEACgkQPs5hSHzN 87pGWQf6AvmDxeRYsxL7wxau9nX/Vlg7G1OcEVVhIuJaZAGb+zItXHsDjiqScFAF Q/DH+8wf2F719Sxdp2AA844cAm1FktjERua6ZmjZtGXx89OPpZf9YfEiexzBJshX rW/a7Vl2kNhB9768wT6PhjB/LrRWi2vq7C5oyKCncD+K10DbdZsGm4ImiBvM8Oxn xGTRNvkpisukm4Fta0idrGIvnJj3w9Nlen6mKCXWCcYugdEnBtpV4Y2JZM6qaW78 WCCkPekA+YLIhaWBe4bmRswMeztPntllBD90XBiDRpeJ6NTxgiDdGMN1s9b3WtOC D0YYpR7nJXRLGbZvHIMfBzMu2TbGOg== =7BFi -----END PGP SIGNATURE----- --u3hngvn2nte45ec7-- From owner-freebsd-hackers@freebsd.org Fri Oct 23 11:03:41 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5FEFE443517 for ; Fri, 23 Oct 2020 11:03:41 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: from puchar.net (puchar.net [194.1.144.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4CHhDX2K6wz40W3 for ; Fri, 23 Oct 2020 11:03:39 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.15.2/8.16.1) with ESMTPS id 09NB3Uh0012919 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Fri, 23 Oct 2020 13:03:31 +0200 (CEST) (envelope-from puchar-wojtek@puchar.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=puchar.net; s=default; t=1603451011; bh=0hjxX79k5efcyjjjziQHHZ8AmGKLtJf3TbmGhCwGLhA=; h=Date:From:To:Subject; b=ul5tcLk5dfeIiIkLd9bOthY5yenOJ0y3FrslZ3Hi3YZRUj50XxQ5rwS8NjnDK6aRa YlxXgi5Z41UPZkxNwZ4CZWXcnaVynmB/Jv5viSTLr3Vih45jBLo4Y+PQ7J6UT3bQl2 p6BwQDsM5GfXhmVc4lnX3GCfbbuXBh3ibAezO9Ec= Received: from localhost (puchar-wojtek@localhost) by puchar.net (8.16.1/8.16.1/Submit) with ESMTP id 09NB3U1q012916 for ; Fri, 23 Oct 2020 13:03:30 +0200 (CEST) (envelope-from puchar-wojtek@puchar.net) Date: Fri, 23 Oct 2020 13:03:30 +0200 (CEST) From: Wojciech Puchar To: freebsd-hackers@freebsd.org Subject: displaying total CPU usage Message-ID: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Rspamd-Queue-Id: 4CHhDX2K6wz40W3 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=fail (headers rsa verify failed) header.d=puchar.net header.s=default header.b=ul5tcLk5; dmarc=none; spf=pass (mx1.freebsd.org: domain of wojtek@puchar.net designates 194.1.144.90 as permitted sender) smtp.mailfrom=wojtek@puchar.net X-Spamd-Result: default: False [-1.64 / 15.00]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.95)[-0.946]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.78)[-0.780]; DMARC_NA(0.00)[puchar.net]; R_DKIM_REJECT(1.00)[puchar.net:s=default]; DKIM_TRACE(0.00)[puchar.net:-]; NEURAL_HAM_SHORT(-0.61)[-0.611]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:43476, ipnet:194.1.144.0/24, country:PL]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-hackers] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Oct 2020 11:03:41 -0000 how to do it in batch - something like this line CPU: 0.8% user, 0.0% nice, 1.3% system, 0.0% interrupt, 97.9% idle from top but produced in non terminal/batch mode all my attempts to do it with top failed - this line is missing From owner-freebsd-hackers@freebsd.org Fri Oct 23 11:20:39 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 24BEC443A51 for ; Fri, 23 Oct 2020 11:20:39 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from mx.catwhisker.org (mx.catwhisker.org [107.204.234.170]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4CHhc56W71z40f4 for ; Fri, 23 Oct 2020 11:20:37 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.16.1/8.15.2) with ESMTP id 09NBKUB5050780; Fri, 23 Oct 2020 11:20:30 GMT (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.16.1/8.16.1/Submit) id 09NBKUEH050779; Fri, 23 Oct 2020 04:20:30 -0700 (PDT) (envelope-from david) Date: Fri, 23 Oct 2020 04:20:30 -0700 From: David Wolfskill To: Wojciech Puchar Cc: freebsd-hackers@freebsd.org Subject: Re: displaying total CPU usage Message-ID: <20201023112030.GF1427@albert.catwhisker.org> Mail-Followup-To: David Wolfskill , Wojciech Puchar , freebsd-hackers@freebsd.org References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Lfdj09rG01n7l08B" Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4CHhc56W71z40f4 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of david@catwhisker.org designates 107.204.234.170 as permitted sender) smtp.mailfrom=david@catwhisker.org X-Spamd-Result: default: False [-5.44 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[david]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:107.204.234.170]; NEURAL_HAM_LONG(-1.01)[-1.006]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; DMARC_NA(0.00)[catwhisker.org]; NEURAL_HAM_MEDIUM(-0.97)[-0.975]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-1.06)[-1.058]; RCPT_COUNT_TWO(0.00)[2]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:7018, ipnet:107.192.0.0/12, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-hackers] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Oct 2020 11:20:39 -0000 --Lfdj09rG01n7l08B Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 23, 2020 at 01:03:30PM +0200, Wojciech Puchar wrote: > how to do it in batch - something like this line >=20 > CPU: 0.8% user, 0.0% nice, 1.3% system, 0.0% interrupt, 97.9% idle >=20 > from top but produced in non terminal/batch mode >=20 > all my attempts to do it with top failed - this line is missing > .... Measuring CPU usage requires sampling the per-state counters at the beginning and at the end of an interval: it's thus done over a time period, not an "instant." It's a bit of arthmetic, but you can get the counters via `sysctl kern.cp_time` (if you want per-core, use `sysctl kern.cp_times`). The result is a (per-core array, in the latter case) array of counters: system, interrupt, user, nice, and idle. Each difference will be the numerator; the sum of the differences will be the denominator for each state. Multiply each fraction by 100 if you want percentages. Peace, david --=20 David H. Wolfskill david@catwhisker.org My ballot status: "Your ballot has been accepted! Your ballot was received by your county elections office and will be counted." See http://www.catwhisker.org/~david/publickey.gpg for my public key. --Lfdj09rG01n7l08B Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGTBAEBCgB9FiEE4owz2QxMJyaxAefyQLJg+bY2PckFAl+SvH1fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEUy OEMzM0Q5MEM0QzI3MjZCMTAxRTdGMjQwQjI2MEY5QjYzNjNEQzkACgkQQLJg+bY2 PclYYAf/WWMkW8QNyye8u98qgrsazO6bcc8TGYZoaceGU3sD9ap2eDWejBunNdP/ +zY+ppo1V1iEoyLvy7IaENgk7KeoVTyAvOzRnQ2EoTCDHNN3yYJg8YPnD/0SVI+N JgVmUEEbVQwmf9jreNy2gYlqK6p8NzOiHqds1A+NoLapdLWr1tJizUif7S45Co6p QrCJOAGMVySXnyx0Mqw7jvv+Q0XLa2XBSISQwDP2g5b3+lxwUiZ64EaxeiseUKin SI40PKiPoJPopyA5/rcdnL7GyTgLLTDA7/e+rdZVzRKcLuUCPKW4/XIuJds5pjvy B6GRKOyjq8fpjBqoGtrOuTL0L7bFSg== =eSJb -----END PGP SIGNATURE----- --Lfdj09rG01n7l08B-- From owner-freebsd-hackers@freebsd.org Fri Oct 23 11:46:12 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 33606444418 for ; Fri, 23 Oct 2020 11:46:12 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4CHj9b3TYkz42Kp for ; Fri, 23 Oct 2020 11:46:11 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.16.1/8.16.1) with ESMTPS id 09NBjvwZ018769 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 23 Oct 2020 14:46:00 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua 09NBjvwZ018769 Received: (from kostik@localhost) by tom.home (8.16.1/8.16.1/Submit) id 09NBjv5P018768; Fri, 23 Oct 2020 14:45:57 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 23 Oct 2020 14:45:57 +0300 From: Konstantin Belousov To: David Wolfskill , Wojciech Puchar , freebsd-hackers@freebsd.org Subject: Re: displaying total CPU usage Message-ID: <20201023114557.GX2643@kib.kiev.ua> References: <20201023112030.GF1427@albert.catwhisker.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201023112030.GF1427@albert.catwhisker.org> X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on tom.home X-Rspamd-Queue-Id: 4CHj9b3TYkz42Kp X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=gmail.com (policy=none); spf=softfail (mx1.freebsd.org: 2001:470:d5e7:1::1 is neither permitted nor denied by domain of kostikbel@gmail.com) smtp.mailfrom=kostikbel@gmail.com X-Spamd-Result: default: False [0.13 / 15.00]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[gmail.com]; NEURAL_HAM_LONG(-0.02)[-0.022]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all:c]; NEURAL_SPAM_MEDIUM(0.09)[0.088]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.06)[0.065]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-hackers]; DMARC_POLICY_SOFTFAIL(0.10)[gmail.com : No valid SPF, No valid DKIM,none] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Oct 2020 11:46:12 -0000 On Fri, Oct 23, 2020 at 04:20:30AM -0700, David Wolfskill wrote: > On Fri, Oct 23, 2020 at 01:03:30PM +0200, Wojciech Puchar wrote: > > how to do it in batch - something like this line > > > > CPU: 0.8% user, 0.0% nice, 1.3% system, 0.0% interrupt, 97.9% idle > > > > from top but produced in non terminal/batch mode > > > > all my attempts to do it with top failed - this line is missing > > .... > > Measuring CPU usage requires sampling the per-state counters at the > beginning and at the end of an interval: it's thus done over a time > period, not an "instant." > > It's a bit of arthmetic, but you can get the counters via `sysctl > kern.cp_time` (if you want per-core, use `sysctl kern.cp_times`). > > The result is a (per-core array, in the latter case) array of counters: > system, interrupt, user, nice, and idle. > > Each difference will be the numerator; the sum of the differences will > be the denominator for each state. Multiply each fraction by 100 if you > want percentages. `vmstat 1' readily provides the measurements. From owner-freebsd-hackers@freebsd.org Fri Oct 23 13:15:38 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 22C8244674B for ; Fri, 23 Oct 2020 13:15:38 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [IPv6:2a01:4f8:c2c:26d8::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CHl8n0lRlz46Ts for ; Fri, 23 Oct 2020 13:15:36 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (eg.sd.rdtc.ru [IPv6:2a03:3100:c:13:0:0:0:5]) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id 09NDFFBD015777 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 23 Oct 2020 13:15:17 GMT (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: wojtek@puchar.net Received: from [10.58.0.10] (dadvw [10.58.0.10]) by eg.sd.rdtc.ru (8.16.1/8.16.1) with ESMTPS id 09NDFIkE027818 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 23 Oct 2020 20:15:18 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: displaying total CPU usage To: Wojciech Puchar , freebsd-hackers@freebsd.org References: From: Eugene Grosbein Message-ID: Date: Fri, 23 Oct 2020 20:15:10 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,LOCAL_FROM, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record * -0.0 SPF_PASS SPF: sender matches SPF record * 2.6 LOCAL_FROM From my domains * -0.1 NICE_REPLY_A Looks like a legit reply (A) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on hz.grosbein.net X-Rspamd-Queue-Id: 4CHl8n0lRlz46Ts X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=permerror (mx1.freebsd.org: domain of eugen@grosbein.net uses mechanism not recognized by this client) smtp.mailfrom=eugen@grosbein.net X-Spamd-Result: default: False [-2.47 / 15.00]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[eugen]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-0.96)[-0.956]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[grosbein.net]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_PERMFAIL(0.00)[empty SPF record]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.41)[-0.415]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-hackers] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Oct 2020 13:15:38 -0000 23.10.2020 18:03, Wojciech Puchar wrote: > how to do it in batch - something like this line > > CPU: 0.8% user, 0.0% nice, 1.3% system, 0.0% interrupt, 97.9% idle > > from top but produced in non terminal/batch mode > > all my attempts to do it with top failed - this line is missing $ top -s3 -d2 | grep '^CPU' CPU: 0.3% user, 0.0% nice, 0.5% system, 0.0% interrupt, 99.2% idle -s3 specifies 3 seconds interval for sampling data. From owner-freebsd-hackers@freebsd.org Sat Oct 24 01:00:42 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 332B142A856; Sat, 24 Oct 2020 01:00:42 +0000 (UTC) (envelope-from dewayne.geraghty@heuristicsystems.com.au) Received: from hermes.heuristicsystems.com.au (hermes.heuristicsystems.com.au [203.41.22.115]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2560 bits) client-digest SHA256) (Client CN "hermes.heuristicsystems.com.au", Issuer "Heuristic Systems Type 4 Host CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CJ2pJ2x1sz3XV9; Sat, 24 Oct 2020 01:00:38 +0000 (UTC) (envelope-from dewayne.geraghty@heuristicsystems.com.au) Received: from [10.0.5.3] (noddy.hs [10.0.5.3]) (authenticated bits=0) by hermes.heuristicsystems.com.au (8.15.2/8.15.2) with ESMTPSA id 09O0woi1094942 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Sat, 24 Oct 2020 11:58:51 +1100 (AEDT) (envelope-from dewayne.geraghty@heuristicsystems.com.au) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=heuristicsystems.com.au; s=hsa; t=1603501131; x=1604105932; bh=Xv6l2z8cAbTRfP4eVgvJZoU9QKizrY4BmXkMYy5Oy1Y=; h=Subject:To:From:Message-ID:Date; b=NmDWeUgWxN03ERR8UdBysjOVEN9xQjwvEM33HHPodCpW6CfDeOOvou9kaGusZwGqS yKo+MeDhpBnRFHi7gymPxAKDAHS+vNuvzi2T8ypJyLvsD4hqtB1DNQTPLRDa1vF16G s1PKYZ1QZgx165Dv39n7dSo4q6FyOjhMaVDjTbwewtlzs8nVYO4vC X-Authentication-Warning: b3.hs: Host noddy.hs [10.0.5.3] claimed to be [10.0.5.3] Subject: Re: Allow PING(8) in jails without raw socket access permissions To: carlos antonio neira bustos , freebsd-net , FreeBSD Hackers References: From: Dewayne Geraghty Message-ID: <9ffe565d-65cb-cbfa-f0dc-189ee8d7215e@heuristicsystems.com.au> Date: Sat, 24 Oct 2020 11:50:05 +1100 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:78.0) Gecko/20100101 Thunderbird/78.3.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4CJ2pJ2x1sz3XV9 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=fail (headers rsa verify failed) header.d=heuristicsystems.com.au header.s=hsa header.b=NmDWeUgW; dmarc=none; spf=pass (mx1.freebsd.org: domain of dewayne.geraghty@heuristicsystems.com.au designates 203.41.22.115 as permitted sender) smtp.mailfrom=dewayne.geraghty@heuristicsystems.com.au X-Spamd-Result: default: False [-1.60 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_REJECT(1.00)[heuristicsystems.com.au:s=hsa]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; ARC_NA(0.00)[]; DMARC_NA(0.00)[heuristicsystems.com.au]; NEURAL_HAM_LONG(-0.83)[-0.825]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[203.41.22.115:from]; DKIM_TRACE(0.00)[heuristicsystems.com.au:-]; NEURAL_HAM_SHORT(-0.54)[-0.539]; NEURAL_HAM_MEDIUM(-0.74)[-0.739]; FREEMAIL_TO(0.00)[gmail.com,freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:1221, ipnet:203.40.0.0/13, country:AU]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-hackers,freebsd-net] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Oct 2020 01:00:42 -0000 On 15/10/2020 9:00 am, carlos antonio neira bustos wrote: > Hello, > > I have currently a patch in review with jamie which is the current jail > maintainer and kyle evans, if anyone else could comment/review this patch : > https://reviews.freebsd.org/D26782 > > What has been done is the following : > > Raw socket access is allowed for ICMP protocol as is required by > PING(8) but option IP_HDRINCL is not allowed. to accomplish this > a new privilege PRIV_NETINET_ICMP_ACCESS has been added by default for > jails. > > > Bests > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > Thanks for the heads-up Carlos. I have a use for allowing only icmp traffic, so its beneficial. However I do agree with BZ that it should not be enabled by default, as it weakens the security model, enabling a broken jail to more easily enumerate the wider network environment. From owner-freebsd-hackers@freebsd.org Sat Oct 24 07:57:58 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 13B8343FEEC for ; Sat, 24 Oct 2020 07:57:58 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: from puchar.net (puchar.net [194.1.144.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4CJD3m6Hd3z4Cv6 for ; Sat, 24 Oct 2020 07:57:56 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.15.2/8.16.1) with ESMTPS id 09O7vgPl031514 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 24 Oct 2020 09:57:42 +0200 (CEST) (envelope-from puchar-wojtek@puchar.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=puchar.net; s=default; t=1603526262; bh=9bdZrxs50AxPRmDZKp9uKos3JxsVmS9bE4/9I82k6mw=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=e6hFzhltRE4nt2+ld6EkncG60LV0QW1HEwwz0JzJniympOMavVsl6p7LM/MkQDIlF tSg0nP+rKiPdTMhrcJgumzGc3WT866gcYThXhSrwJ8UkMvP3iRb0A+EJEii/Fj9A4q Ra/py8QRfi+PLwbV1SdnzKJIqPSbam8OhV84XR18= Received: from localhost (puchar-wojtek@localhost) by puchar.net (8.16.1/8.16.1/Submit) with ESMTP id 09O7vgQR031510; Sat, 24 Oct 2020 09:57:42 +0200 (CEST) (envelope-from puchar-wojtek@puchar.net) Date: Sat, 24 Oct 2020 09:57:42 +0200 (CEST) From: Wojciech Puchar To: Konstantin Belousov cc: David Wolfskill , Wojciech Puchar , freebsd-hackers@freebsd.org Subject: Re: displaying total CPU usage In-Reply-To: <20201023114557.GX2643@kib.kiev.ua> Message-ID: References: <20201023112030.GF1427@albert.catwhisker.org> <20201023114557.GX2643@kib.kiev.ua> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Rspamd-Queue-Id: 4CJD3m6Hd3z4Cv6 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=fail (headers rsa verify failed) header.d=puchar.net header.s=default header.b=e6hFzhlt; dmarc=none; spf=pass (mx1.freebsd.org: domain of wojtek@puchar.net designates 194.1.144.90 as permitted sender) smtp.mailfrom=wojtek@puchar.net X-Spamd-Result: default: False [-2.09 / 15.00]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.04)[-1.044]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; R_DKIM_REJECT(1.00)[puchar.net:s=default]; DMARC_NA(0.00)[puchar.net]; NEURAL_HAM_LONG(-0.96)[-0.959]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[puchar.net:-]; NEURAL_HAM_SHORT(-0.78)[-0.785]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:43476, ipnet:194.1.144.0/24, country:PL]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-hackers] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Oct 2020 07:57:58 -0000 >> be the denominator for each state. Multiply each fraction by 100 if you >> want percentages. > > `vmstat 1' readily provides the measurements. > _______________________________________________ exactly what i needed. thank you From owner-freebsd-hackers@freebsd.org Sat Oct 24 11:31:39 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 60D7A445FDB for ; Sat, 24 Oct 2020 11:31:39 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [IPv6:2a01:4f8:c2c:26d8::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CJJpL3G4Xz4RCW for ; Sat, 24 Oct 2020 11:31:38 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (eg.sd.rdtc.ru [IPv6:2a03:3100:c:13:0:0:0:5]) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id 09OBVJh8028589 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 24 Oct 2020 11:31:22 GMT (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: wojtek@puchar.net Received: from [10.58.0.10] (dadvw [10.58.0.10]) by eg.sd.rdtc.ru (8.16.1/8.16.1) with ESMTPS id 09OBVMEL037483 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Sat, 24 Oct 2020 18:31:23 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: displaying total CPU usage To: Wojciech Puchar References: <20201023112030.GF1427@albert.catwhisker.org> <20201023114557.GX2643@kib.kiev.ua> Cc: freebsd-hackers@freebsd.org From: Eugene Grosbein Message-ID: <2eb77b40-99a5-c4cf-3df4-ceead23ad218@grosbein.net> Date: Sat, 24 Oct 2020 18:31:17 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,LOCAL_FROM, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.0 SPF_PASS SPF: sender matches SPF record * 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record * 2.6 LOCAL_FROM From my domains * -0.1 NICE_REPLY_A Looks like a legit reply (A) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on hz.grosbein.net X-Rspamd-Queue-Id: 4CJJpL3G4Xz4RCW X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=permerror (mx1.freebsd.org: domain of eugen@grosbein.net uses mechanism not recognized by this client) smtp.mailfrom=eugen@grosbein.net X-Spamd-Result: default: False [-2.48 / 15.00]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[eugen]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-1.06)[-1.061]; NEURAL_HAM_LONG(-0.96)[-0.956]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[grosbein.net]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_PERMFAIL(0.00)[empty SPF record]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.36)[-0.359]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-hackers] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Oct 2020 11:31:39 -0000 24.10.2020 14:57, Wojciech Puchar wrote: >>> be the denominator for each state. Multiply each fraction by 100 if you >>> want percentages. >> >> `vmstat 1' readily provides the measurements. Please note that for multi-core CPU averaging might yield misleading results indicating lots of available/under-loaded CPU power when one of cores it already 100% bound. You can see real picture with per-core counters obtained with sysctl kern.cp_times that shows 5 values for each CPU core: user/nice/system/interrupts/idle. For each core, exactly one of counters is incremented every "tick" at "stathz" frequency, see sysctl kern.clockrate. I use these counters to compute diffs between samples then normalize diffs to sampling interval and stathz to obtain resulting percents. They are useful for graphs. For example, mrtg performs such computations and normalization all by itself. From owner-freebsd-hackers@freebsd.org Sat Oct 24 16:09:15 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2F2A044D271; Sat, 24 Oct 2020 16:09:15 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CJQyg0TJdz3V1B; Sat, 24 Oct 2020 16:09:15 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id E2E4A2DC7B; Sat, 24 Oct 2020 16:09:14 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-qk1-f175.google.com with SMTP id h140so4535698qke.7; Sat, 24 Oct 2020 09:09:14 -0700 (PDT) X-Gm-Message-State: AOAM532azOVmaMvYy2Ye5JS+Sj0bfgPHTCdubbuSggbLSppsOKiYSERj i26djK3uHjkcmnPLnQuFPK3TmSB9ZHoyLSQPKtA= X-Google-Smtp-Source: ABdhPJzaxzYeJuS0dxC9Na2VBmOqzBQol7XUXG+YLT63POag9M8BrcWXaaXqsnvH1NGh1HNIbTHiN/hhquFnwRbTy64= X-Received: by 2002:a05:620a:a8a:: with SMTP id v10mr8008963qkg.430.1603555754446; Sat, 24 Oct 2020 09:09:14 -0700 (PDT) MIME-Version: 1.0 From: Kyle Evans Date: Sat, 24 Oct 2020 11:09:03 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Testing with lua/atf-lua reviews To: freebsd-testing@freebsd.org, FreeBSD Hackers Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Oct 2020 16:09:15 -0000 Hello! I've just put up for review some work I've done to allow us to write tests in lua, primarily intended to test the lua libs we're writing. Please feel free to add yourself or drop in for some commentary: - https://reviews.freebsd.org/D26928 - atf-lua(1)/atf-lua(3) itself - https://reviews.freebsd.org/D26929 - Build glue for atf-lua - https://reviews.freebsd.org/D26930 - atf.tests.mk infrastructure for adding tests - https://reviews.freebsd.org/D26931 - Build glue for atf-lua tests - https://reviews.freebsd.org/D26932 - jail(3lua) tests, as a sample Note that D26932 has an additional hard dependency on the libjail bindings and some additions I've made to them, notably: D26080, D26756, and D26927. Thanks, Kyle Evans