From owner-soc-status@freebsd.org Mon Jul 9 11:17:43 2018 Return-Path: Delivered-To: soc-status@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 82B581040278 for ; Mon, 9 Jul 2018 11:17:43 +0000 (UTC) (envelope-from lakhanshiva@gmail.com) Received: from mail-oi0-f66.google.com (mail-oi0-f66.google.com [209.85.218.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 19E4191ED1 for ; Mon, 9 Jul 2018 11:17:43 +0000 (UTC) (envelope-from lakhanshiva@gmail.com) Received: by mail-oi0-f66.google.com with SMTP id c6-v6so35191843oiy.0 for ; Mon, 09 Jul 2018 04:17:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=YS0kyscQBKqaeVXNrGlVwbDVFzgS8hMeDXapg/URYrU=; b=W2Ez97rMHxZigKKSbSpkdq8jjrzqSz3aEoH3mPaKaOkAVLkpI3fQYYSMyAiV6EnAK8 Wqwxo1ayMq+T91fGGq8NNo1ZQvJc/u7hnUxeXhluoiQJcgP4X87M1P96XnYpLuT9e8R0 Vlj0v6SiyXb70GyBqVpqhSHlDQt8Igy10iEpPfGbgf5N9y9TKgPIYXeSpQFSI7mI24/Z /rycW4DaQjl9cuRxLd+OuGbNHVHZk08KTi0aelUpYN7Iq3PNT7NAL21clK0TGgrUaGX1 ftmKcpr1oMovtOgdcPSZ1MuI0/62kK2G8oieiSXtJIbpsN8Z9F4LSgse891tL8sD9pA7 gLgQ== X-Gm-Message-State: APt69E2bDETYqKge9Gh3f3oPhfksyUTDK/5KkhOfOP7vDWdIAQmgsGpC o3uXTgrt1GK/bZNsM6iUBGjju/pT X-Google-Smtp-Source: AAOMgpdOVKQdkl7aVPxS/6m4jdIazSgAeTa6KT8hxR7zQs2VtlOn4yla9I3p3FCcymdjGf1aX5QKow== X-Received: by 2002:aca:bdc4:: with SMTP id n187-v6mr7042492oif.3.1531134633131; Mon, 09 Jul 2018 04:10:33 -0700 (PDT) Received: from mail-oi0-f43.google.com (mail-oi0-f43.google.com. [209.85.218.43]) by smtp.gmail.com with ESMTPSA id k133-v6sm11151922oia.36.2018.07.09.04.10.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jul 2018 04:10:32 -0700 (PDT) Received: by mail-oi0-f43.google.com with SMTP id n84-v6so35098518oib.9 for ; Mon, 09 Jul 2018 04:10:32 -0700 (PDT) X-Received: by 2002:aca:e30b:: with SMTP id a11-v6mr21274904oih.303.1531134632684; Mon, 09 Jul 2018 04:10:32 -0700 (PDT) MIME-Version: 1.0 From: Lakhan Shiva Kamireddy Date: Mon, 9 Jul 2018 16:40:20 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: [GSOC-18] Convert PCI drivers to be table driven - Week 8 To: soc-status@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jul 2018 11:17:43 -0000 Hi All, As you are aware, my project is to convert PCI drivers to be table driven. This week, I've worked on some of the PCI drivers which needed some modification. As we decided to create a new macro - PCI_MATCH, there was a change in strategy for conversion. Firstly as per the earlier strategy I pushed the code to bsdimp fork. Then from there I began the conversion process to consolidate the PCI drivers to conform to our new strategy. Most of last week went into changing the probe routines to use the new device tables that i created. I have also fixed numerous style issues that came up. I have already started the conversion process after rebasing to the latest FreeBSD build. After the work on probe routines has been completed, I worked on the earlier drivers such as amdsmb, ismt, iir, iwm, ips, ignore [1]. We need to convert the drivers in a certain way so that kldxref can find it and record it in linker hints. I am working on PCI drivers so as to make it easy for kldxref to find them. I am also learning the internals of the kernel, this will help our goal ultimately - Automatic module loading. [5] Please find my updated project homepage here. [6] Thank you, Lakhan [1] https://github.com/bsdimp/freebsd/pull/8 [2] https://reviews.freebsd.org/D15995 [3] https://reviews.freebsd.org/D15996 [4] https://reviews.freebsd.org/D15979 [5] http://bsdimp.blogspot.in/2016/01/details-on-coming-automatic-module.html [6] https://wiki.freebsd.org/SummerOfCode2018Projects/ConvertPCIdriverAttachmentsToTables From owner-soc-status@freebsd.org Mon Jul 9 11:40:27 2018 Return-Path: Delivered-To: soc-status@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9D1811042011 for ; Mon, 9 Jul 2018 11:40:27 +0000 (UTC) (envelope-from pratiy0100@gmail.com) Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 27A2992D63; Mon, 9 Jul 2018 11:40:27 +0000 (UTC) (envelope-from pratiy0100@gmail.com) Received: by mail-ed1-f54.google.com with SMTP id u11-v6so13669518eds.10; Mon, 09 Jul 2018 04:40:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=ohFGlZmPxFUlAHTidBB0Ay+Efy3WmjvgmsOhHgAi0uc=; b=l0yM61HzBVfOYSDvKY/p8KehDB6tk+SaqsCRkOSDbxsVIGtzNYt3LdxdDJeqhuTo7t P3fsuxr1uVVqtUbOTA+3klhlq7JQDOrUkDCeuYozEik/cap07CodXpB/MMbY1tx5X1lW XM5m6nE694hQmNtu+mMwsav57O/+DdtslbcIXFqHl5nRvlLyq9ohydGTR6rRyW5FTcsD /MhuxMJK0kQ8BhQUdJp0iP9edlTesAx/4ouXpG9jYa42RmDDUCNxvj+qIjLMi5yHT6C6 oAftZvK/FCCR1+B5SqgGWW0bz0ulJ5Llnp0E7dby9A927hX05kSjCp9NLTY/vH0YQ2Y1 lm0g== X-Gm-Message-State: APt69E0njTNqKAkwidj5OIiFx7O3f6d0/e9wwLGsjniflwu4QhltRMK/ 0dRAqXFEl7kSn/6KmYwPN3oAYELf X-Google-Smtp-Source: AAOMgpdSt9bH97Y3XOWpol4haUmEVQYGxAWjLz66B81v3bHuVvNlWCis/68qi09Lb6b9fxSHnN+gRw== X-Received: by 2002:a50:cb0d:: with SMTP id g13-v6mr21505417edi.81.1531136419778; Mon, 09 Jul 2018 04:40:19 -0700 (PDT) Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com. [209.85.208.44]) by smtp.gmail.com with ESMTPSA id y26-v6sm6704628edr.51.2018.07.09.04.40.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jul 2018 04:40:19 -0700 (PDT) Received: by mail-ed1-f44.google.com with SMTP id i20-v6so661014eds.12; Mon, 09 Jul 2018 04:40:19 -0700 (PDT) X-Received: by 2002:a50:a9e2:: with SMTP id n89-v6mr7544999edc.158.1531136419601; Mon, 09 Jul 2018 04:40:19 -0700 (PDT) MIME-Version: 1.0 From: Pratyush Yadav Date: Mon, 9 Jul 2018 17:09:43 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: [Week 8] Import the Xen grant-table bus_dma(9) handlers from OpenBSD To: soc-status@freebsd.org Cc: Akshay Jaggi , Edward Napierala Content-Type: text/plain; charset="UTF-8" X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jul 2018 11:40:27 -0000 Hi, Last week I went through the Xen blkfront driver code to understand how it works, and how it uses the grant references. It took me quite some time because the driver is huge and I was often chasing functions all over the place. After that, I started to convert the blkfront driver to use the new busdma implementation. There are two places where foreign access is granted: - xbd_connect() (blkfront.c:1341). Here, access is granted to the xbd's indirect pages. - xbd_mksegarray() (blkfront.c:162). This is called from the dma load callback to the loads in xbd_queue_request() (blkfront.c:301). xbd_connect() seems simpler so I started with it. I have managed to update xbd_connect() to use the new busdma implementation, and now I will start to update xbd_mksegarray(). I also made further improvements to the busdma implementation, like the ability to pass flags to the grant table allocation methods, and improved error checking. Also, I fixed an infinite recursion bug. You can check the code here [0]. I maintain a blog on Blogger where I publish my progress every few days. Check it out if you want more details on what I'm doing [1]. [0] https://github.com/prati0100/freebsd/tree/busdma_xen_clean [1] https://pratyushgsoc.blogspot.com/ -- Regards, Pratyush Yadav From owner-soc-status@freebsd.org Tue Jul 10 10:20:25 2018 Return-Path: Delivered-To: soc-status@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 08180103C70B for ; Tue, 10 Jul 2018 10:20:25 +0000 (UTC) (envelope-from aniket.ezio41@gmail.com) Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7CCAD8E9C7 for ; Tue, 10 Jul 2018 10:20:24 +0000 (UTC) (envelope-from aniket.ezio41@gmail.com) Received: by mail-ed1-f49.google.com with SMTP id i20-v6so3154436eds.12 for ; Tue, 10 Jul 2018 03:20:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=YL/569Z2JZpX4yvX2ms2qEeohxng4en1OxgEZz8hEOc=; b=NhClaWovedeABJmU8HvCy+5rL024Fi8pLTfzdt2rsrZBSp7TNVAzakoVvuP5zTYjSD Wwa5/KblSEUY+pUpS3ljXhxlU89BDZ3DH2NxzBSJOKZa2ucFJaRr25jz7CIbUfAzsP9O Z0t6oE/Nl97grWU69g7+yAU+xdbatOQIQO46rcCcO9w5xsZurhI8xbRZYymXfTc3/3VB Q6AgHYAMEsej3PD2fuE2GZbiCCLeB4tqba/eh+CY4qPUrVcMfbvh/fwF3eZfc4ROWXtu eeoAoxTxVKsXdboKktjzE+YV9351T1navpCZWaRkZGzEK9KRzGEafW4c75++oOpiskjO 0xxg== X-Gm-Message-State: APt69E0gvRFS1IVv0WtboATgmvca92XRFT1t4sbX6sF3K2mz8fNWsINq ZnNgqljhkuRtnB4BPwwpiyH2dDiO X-Google-Smtp-Source: AAOMgpfYNdHyiTRFtZ7XzoChloYbAKsoocJAGcyLuD1tn85RJj1AOQXbgz7R7LCOzC1M6dOwqEjiaA== X-Received: by 2002:a50:ba6e:: with SMTP id 43-v6mr26699040eds.292.1531218023200; Tue, 10 Jul 2018 03:20:23 -0700 (PDT) Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com. [74.125.82.50]) by smtp.gmail.com with ESMTPSA id u9-v6sm4934015edk.16.2018.07.10.03.20.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Jul 2018 03:20:23 -0700 (PDT) Received: by mail-wm0-f50.google.com with SMTP id z13-v6so23733815wma.5 for ; Tue, 10 Jul 2018 03:20:23 -0700 (PDT) X-Received: by 2002:a1c:815:: with SMTP id 21-v6mr13637999wmi.151.1531218022929; Tue, 10 Jul 2018 03:20:22 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a5d:4151:0:0:0:0:0 with HTTP; Tue, 10 Jul 2018 03:20:22 -0700 (PDT) In-Reply-To: References: From: Aniket Pandey Date: Tue, 10 Jul 2018 15:50:22 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: Fwd: [GSoC-18] Regression Test-Suite for Audit Framework [Week-8] To: soc-status@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2018 10:20:25 -0000 Hello all, I had been traveling for the last couple of days so couldn't update you all about my progress earlier. This week, I was able to create regression tests for sysctl(3), sysarch(2), cap_getmode(2), cap_enter(2) completely and audit(2) & jail(2) in failure mode. Also, in the previous mail, I had mentioned about setpriority(2) being in the "miscellaneous" audit class. Well, it turns out that I had not carefully looked at the section in which the specific event-class mapping was listed. setpriority(2) is exclusively a process-control system call. It was mentioned under the section of deprecated Darwin audit events which might conflict with Solaris mapping, later on, so that essentially rules out setpriority(2) being a miscellaneous audit event. For sysarch(2), I had to consider different architectures on which it would be called. sysarch(2) is included within which in turn includes the header for respective architecture, for my case, . On further analysis of supported machine instructions, I could only come up with possible testing scenarios for AMD64, i386, ARM, and MIPS. For Sparc64, ARM64 & PowerPC, I could either not find any safe machine instruction or none existed for them. To write the tests, I followed the strategy of using the macros which were defined in the , that would generate only those tests which were supported by the architecture in which the tests were compiled. All macros retrieved some info about the system, so they can be considered safe. Currently, the tests are under review and you can find the respective macro used here[1]. cap_getmode(2) and sysctl(3) were cakewalks as I had to just check whether Capsicum is enabled in the system or not (for the former) and use the standard sysctl to retrieve the maximum allowed processes using KERN_MAXPROC (for the later). With cap_enter(2), I again faced the intermittency issues. With a lot of debugging and help from Alan, we figured out that auditpipe(4) gets buffered when capability mode is entered. Hence, auditpipe does not show anything after fork(2) is called (Yes, I had to call cap_enter() from a child process since we can't put the main test in capability mode :P). A solution was to flush the auditpipe(4) right after cap_enter(2) is called, using a provided ioctl AUDITPIPE_FLUSH, that allowed cap_enter(2) to show up after the noise is cleaned. The updated tests for capability mode syscalls can be found here [2]. In the coming weeks, I'll try to convert the regression tests[3] for auditpipe(4) itself in ATF. And will have a look at the ways in which we can test auditdistd(8) and auditreduce(1). Thank you, With best regards, Aniket Pandey [1] https://reviews.freebsd.org/D16116 [2] https://reviews.freebsd.org/D16099 [3] https://github.com/freebsd/freebsd/blob/master/ tools/regression/audit/audit_pipe_ioctl/audit_pipe_ioctl.c From owner-soc-status@freebsd.org Tue Jul 10 11:23:27 2018 Return-Path: Delivered-To: soc-status@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C3C261041BCA for ; Tue, 10 Jul 2018 11:23:27 +0000 (UTC) (envelope-from aniket.ezio41@gmail.com) Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 44849714FE; Tue, 10 Jul 2018 11:23:27 +0000 (UTC) (envelope-from aniket.ezio41@gmail.com) Received: by mail-ed1-f45.google.com with SMTP id d17-v6so4223076eds.11; Tue, 10 Jul 2018 04:23:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=LOclLuiG5RjVb3KPTDmSUIS728OyKz2QcUy/4oCIoTc=; b=JR2INLIwLPGnPuDhWaBDvqrcIDS8jH0ssrobzXwRW/BTRu99bt3dg1Abw85Tvkb+wR NWKoj7oS5rgzxlbtE1CrOBCQPRL+lBNElt6bUIf1ycsSnX1lyUfsoHy0rWp2EScEz7wH HXSEDBfy0Wl6k9pvJH9Fo+KzzEAhqOYyJccE2tIiqV6BilTCoVDeY7KqXoIag4NpfirG KCzYqYqaWXURZSYDohqwTroxw/p32j2CgtSk1WC1doCVhw+9SkTVIlV9bUZH/WWtyqlz MZGRgd7ZIzk7z3KSmnboXTotMUL/HrhThVCIHMJQBGEPAVBMoDELpH/ZMU8aGytRPpWI RXmg== X-Gm-Message-State: APt69E1cQUWQ5Qzu7prIELH1hVSSZWLfpbNtMPcZ7hli7WpGFKYNV+tK SvJBZHsgzbs2NFRZODF/mvnwYu80 X-Google-Smtp-Source: AAOMgpdXAGsHSSTrs4yAP4bzIXO23zkbfJvKNr++NUpTyjNgBAx8S2oLg0M6Ri6tDI8khbYBktGcgA== X-Received: by 2002:a50:b410:: with SMTP id b16-v6mr14113191edh.190.1531214624077; Tue, 10 Jul 2018 02:23:44 -0700 (PDT) Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com. [74.125.82.50]) by smtp.gmail.com with ESMTPSA id b22-v6sm8228596edn.0.2018.07.10.02.23.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Jul 2018 02:23:43 -0700 (PDT) Received: by mail-wm0-f50.google.com with SMTP id z6-v6so13050606wma.0; Tue, 10 Jul 2018 02:23:43 -0700 (PDT) X-Received: by 2002:a1c:ec06:: with SMTP id k6-v6mr15424529wmh.39.1531214623417; Tue, 10 Jul 2018 02:23:43 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a5d:4151:0:0:0:0:0 with HTTP; Tue, 10 Jul 2018 02:23:43 -0700 (PDT) From: Aniket Pandey Date: Tue, 10 Jul 2018 14:53:43 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: [GSoC-18] Regression Test-Suite for Audit Framework [Week-8] To: soc-status@freebsd.org Cc: Alan Somers , George Neville-Neil , robert.watson@cl.cam.ac.uk Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2018 11:23:28 -0000 Hello all, I had been traveling for the last couple of days so couldn't update you all about my progress earlier. This week, I was able to create regression tests for sysctl(3), sysarch(2), cap_getmode(2), cap_enter(2) completely and audit(2) & jail(2) in failure mode. Also, in the previous mail, I had mentioned about setpriority(2) being in the "miscellaneous" audit class. Well, it turns out that I had not carefully looked at the section in which the specific event-class mapping was listed. setpriority(2) is exclusively a process-control system call. It was mentioned under the section of deprecated Darwin audit events which might conflict with Solaris mapping, later on, so that essentially rules out setpriority(2) being a miscellaneous audit event. For sysarch(2), I had to consider different architectures on which it would be called. sysarch(2) is included within which in turn includes the header for respective architecture, for my case, . On further analysis of supported machine instructions, I could only come up with possible testing scenarios for AMD64, i386, ARM, and MIPS. For Sparc64, ARM64 & PowerPC, I could either not find any safe machine instruction or none existed for them. To write the tests, I followed the strategy of using the macros which were defined in the , that would generate only those tests which were supported by the architecture in which the tests were compiled. All macros retrieved some info about the system, so they can be considered safe. Currently, the tests are under review and you can find the respective macro used here[1]. cap_getmode(2) and sysctl(3) were cakewalks as I had to just check whether Capsicum is enabled in the system or not (for the former) and use the standard sysctl to retrieve the maximum allowed processes using KERN_MAXPROC (for the later). With cap_enter(2), I again faced the intermittency issues. With a lot of debugging and help from Alan, we figured out that auditpipe(4) gets buffered when capability mode is entered. Hence, auditpipe does not show anything after fork(2) is called (Yes, I had to call cap_enter() from a child process since we can't put the main test in capability mode :P). A solution was to flush the auditpipe(4) right after cap_enter(2) is called, using a provided ioctl AUDITPIPE_FLUSH, that allowed cap_enter(2) to show up after the noise is cleaned. The updated tests for capability mode syscalls can be found here [2]. In the coming weeks, I'll try to convert the regression tests[3] for auditpipe(4) itself in ATF. And will have a look at the ways in which we can test auditdistd(8) and auditreduce(1). Thank you, With best regards, Aniket Pandey [1] https://reviews.freebsd.org/D16116 [2] https://reviews.freebsd.org/D16099 [3] https://github.com/freebsd/freebsd/blob/master/tools/regression/audit/audit_pipe_ioctl/audit_pipe_ioctl.c From owner-soc-status@freebsd.org Tue Jul 10 21:59:18 2018 Return-Path: Delivered-To: soc-status@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 36A3610316C1 for ; Tue, 10 Jul 2018 21:59:18 +0000 (UTC) (envelope-from duostefano93@gmail.com) Received: from mail-it0-x235.google.com (mail-it0-x235.google.com [IPv6:2607:f8b0:4001:c0b::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C09038E4A4 for ; Tue, 10 Jul 2018 21:59:17 +0000 (UTC) (envelope-from duostefano93@gmail.com) Received: by mail-it0-x235.google.com with SMTP id p17-v6so821699itc.2 for ; Tue, 10 Jul 2018 14:59:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Zude6XztkTdWUurKI6RV80cNU+537/v2+doni5IFV+c=; b=iDQtQamyTm/9z5INL5PfI6e6halEQDel9ZeiMMx53zM4lQ/lDU9V1dVEoIFoxbq3a6 7BHZOT1uUVULp75NnICqFxQdVYsjJ44WRDKTk+ZAMQQeIvyAqkO9kolfLTQvpJv8ep/f ekMJdtZXjP/2+QodX2Xqo+GYpVJIBOsje9/BhtAVb0oKfPYO1/TuOOuYU8qnH06EAWvf jSaatUi6fkkjT/+NOhC2Xn684AsSOX4h24V2pDkvgIMq/+7RAONfXNU+iUFCzHpcjhjc wOASKoO80Kir/ZNVRsIVENIssV9IJwqJddYqWfAUUpXq5KOVkLBdrAvv/SwTOCPw3aeT yhkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Zude6XztkTdWUurKI6RV80cNU+537/v2+doni5IFV+c=; b=GEsrvmsfvPlqsm0sUSLRs8s7u5dlnkPhuU4Ijdo+LExXi1Pf3X4ESTb1RkeVFPOHxT fcQ5GFIVRm8IaFkH1fiNhnRhqlQvaCigwefNbX5iJGjiCN4y52Sx8lC3EbM2tkevzh3P +qU9SYbA5u34FFcXYLaFIxP14u2YaLlcPBnjem6u1o12vHMzYLhWq816dFgwWp6XxlYC M0+xO/dgIoIQ67oaNLPcoJKq3+u8mSwrcK0XayS1c+p7Kdq/T7DHlGHerlWaT11Wb/99 ljeaMK6soHwQUPTshiEcv4wlvKF6eIEDCW0yPlhYmN5PPmxWSYzNTVdDHnZw4aj+QjtN 3JcQ== X-Gm-Message-State: APt69E3EcaIfxfSmuXOGfFYrLXme1hTMyilV5qOU6bJJMPNhgQiJ6F9s eRa6lNn9nE/XdhcZ7oXyZEXBFfA8e1TJtgGXcB5cZWxX X-Google-Smtp-Source: AAOMgpdsRHRECttV76indfPJVT8ji9MPg1Qi2ofAgGUswbJARr1HmLcHv5Oe2LlvPyuqoo9hpMx/zxogs2YRGj1TBsg= X-Received: by 2002:a24:57cc:: with SMTP id u195-v6mr20743959ita.142.1531259956859; Tue, 10 Jul 2018 14:59:16 -0700 (PDT) MIME-Version: 1.0 From: Stefano Duo Date: Tue, 10 Jul 2018 23:59:05 +0200 Message-ID: Subject: Extensions to the netmap framework - Week 8 To: soc-status@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2018 21:59:18 -0000 Hi, during this week i finished writing the netmap test suite. Each test begins with a comment explaining the objective of the test, and how that objective is tested. Tests involving packets exchanges accept command line arguments to specify the length of the packets being sent, the filler character and the number of packets. Moreover i wrote randomized_tests, a main script which runs every test script with randomized cli arguments, so that we can find values that cause problems faster. Finally i added a new target to run the entire test suite has been added to the utils Makefile. Project wiki: https://wiki.freebsd.org/SummerOfCode2018Projects/ExtensionsToNetmap SVN repository: https://svnweb.freebsd.org/socsvn/soc2018/sduo/ Stefano. From owner-soc-status@freebsd.org Thu Jul 12 16:54:20 2018 Return-Path: Delivered-To: soc-status@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 664251025E80 for ; Thu, 12 Jul 2018 16:54:20 +0000 (UTC) (envelope-from uddka@student.kit.edu) Received: from scc-mailout-kit-02.scc.kit.edu (scc-mailout-kit-02.scc.kit.edu [IPv6:2a00:1398:9:f712::810d:e752]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EFF7A72D10; Thu, 12 Jul 2018 16:54:19 +0000 (UTC) (envelope-from uddka@student.kit.edu) Received: from tr-v1239-fse.scc.kit.edu ([2a00:1398:e:28::2] helo=server-01.fs-etec.kit.edu) by scc-mailout-kit-02.scc.kit.edu with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (envelope-from ) id 1fder9-00063m-Cf; Thu, 12 Jul 2018 18:54:17 +0200 Received: from Chris-TP (unknown [IPv6:2a00:1398:9:fb03:1ce1:aee5:584f:44e4]) by server-01.fs-etec.kit.edu (Postfix) with ESMTPSA id 5BDACF91; Thu, 12 Jul 2018 18:54:14 +0200 (CEST) Date: Thu, 12 Jul 2018 18:53:07 +0200 From: Christian =?ISO-8859-1?Q?Kr=E4mer?= To: soc-status@freebsd.org Cc: Chuck Tuffli , Luiz Otavio O Souza Subject: User space interface for GPIO interrupts / Status Report Week 8 Message-Id: <20180712185307.b88853daad8a30b329ad5543@student.kit.edu> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd11.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jul 2018 16:54:20 -0000 Hi all, in the course of last week I implemented pin distinction using per file descriptor configuration. This is one of the two possibilities to implement this feature. The second one (having one character device for each mapped pin) was discarded. This week I started to investigate the migration of the code into the gpioc driver as suggested by one of my mentors. As advantage there is no more need to maintain redundant data structures. Moreover the already existing functions and flags in libgpio can be used to handle the interrupt functionality. Special attention hereby is needed in order to not break support for any device that do not support INTRNG. The source code of the driver can be found in my fork of the FreeBSD src tree on GitHub [1]. The utilities for configuration and testing are located in a separate repository [2]. Regards, Chris [1] [2] From owner-soc-status@freebsd.org Fri Jul 13 20:49:20 2018 Return-Path: Delivered-To: soc-status@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C6C4F104C246 for ; Fri, 13 Jul 2018 20:49:19 +0000 (UTC) (envelope-from mateus@mateus.tech) Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0120.outbound.protection.outlook.com [104.47.33.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT TLS CA 4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 29BFD77C6D; Fri, 13 Jul 2018 20:49:18 +0000 (UTC) (envelope-from mateus@mateus.tech) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mateusrodrigueslive.onmicrosoft.com; s=selector1-mateus-tech; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4yAl2DWeOiCRB9iKmsdFdIGAyw6kKZ+mbaSyRmEClUc=; b=iIBPd3zMgqxB7BoGcNmoXzFvjzjlKOyCwN3VVCpJHgSFZcvWrkArKC32v2ntNJpsdX7FAOwQg4bTCxY4Ngsuyvx/crE4sLG4XJJSdst+/qoo4ZNfD0NcqOQ2dwbWcVHGjL0nxyaWWXQ9rtPYPi2Ukh81HZIwzexVuxfJaCLE2Tc= Received: from CP2P152MB1124.LAMP152.PROD.OUTLOOK.COM (10.171.53.11) by CP2P152MB1523.LAMP152.PROD.OUTLOOK.COM (10.171.56.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.952.17; Fri, 13 Jul 2018 20:49:15 +0000 Received: from CP2P152MB1124.LAMP152.PROD.OUTLOOK.COM ([fe80::d54c:8928:d835:d021]) by CP2P152MB1124.LAMP152.PROD.OUTLOOK.COM ([fe80::d54c:8928:d835:d021%8]) with mapi id 15.20.0952.017; Fri, 13 Jul 2018 20:49:15 +0000 From: Mateus Rodrigues de Morais To: "soc-status@freebsd.org" CC: David Naylor , "theraven@freebsd.org" Subject: [Week 8] Porting Microsoft's CoreCLR, CoreFX, and PowerShell to FreeBSD Thread-Topic: [Week 8] Porting Microsoft's CoreCLR, CoreFX, and PowerShell to FreeBSD Thread-Index: AQHUGuqp+aQcFj8bkkKD7fH0lPETVQ== Date: Fri, 13 Jul 2018 20:49:15 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=mateus@mateus.tech; x-originating-ip: [2804:54:18d0:c900:e40c:5a9d:3281:65a0] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; CP2P152MB1523; 7:Eh2cjySjOxVpXGVUa3sIaANPzx6di1rAhVHz/yLLKB45pl2imEuWrHcyShMGcJrjLf3HFMWfDs82+l0UKTrGNLCNv/nCUVr3j+AfdwVvGGYU16eS7xrN9x4FijvDx/CMT3tfnwISJZniaFqJ5GvaZkYQ0C1z7I20xsJCQpEBXsGdq71Mdos0dRwDIWmp0E9nCnWFwUpWwjiYGoM067f9zBZoqi0DIvZiohCLArKZ8W8lGAGiy0Fs+69LBvU2phZF x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 61a1ae7a-ef6c-44be-1a16-08d5e90218cb x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(7021125)(8989117)(5600053)(711020)(4534165)(7022125)(4603075)(4627221)(201702281549075)(8990107)(7048125)(7024125)(7027125)(7028125)(7023125)(2017052603328)(7153060)(7193020); SRVR:CP2P152MB1523; x-ms-traffictypediagnostic: CP2P152MB1523: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(21748063052155); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(3002001)(3231311)(2017060905117)(944501410)(52105095)(10201501046)(93006095)(93001095)(149027)(150027)(6041310)(20161123562045)(20161123564045)(20161123560045)(20161123558120)(2016111802025)(6043046)(6072148)(201708071742011)(7699016); SRVR:CP2P152MB1523; BCL:0; PCL:0; RULEID:; SRVR:CP2P152MB1523; x-forefront-prvs: 07326CFBC4 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(366004)(136003)(39830400003)(346002)(396003)(376002)(47530400004)(53754006)(199004)(189003)(52230400001)(102836004)(186003)(7696005)(6506007)(2900100001)(6116002)(8676002)(2906002)(5660300001)(2351001)(14454004)(74316002)(97736004)(476003)(5640700003)(25786009)(99286004)(33656002)(45080400002)(7736002)(4326008)(68736007)(81156014)(6916009)(106356001)(46003)(81166006)(5250100002)(105586002)(6306002)(53936002)(55016002)(9686003)(6436002)(54896002)(54906003)(486006)(316002)(8936002)(558084003)(450100002)(256004)(478600001)(86362001)(2501003); DIR:OUT; SFP:1102; SCL:1; SRVR:CP2P152MB1523; H:CP2P152MB1124.LAMP152.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mateus.tech does not designate permitted sender hosts) x-microsoft-antispam-message-info: 7aYtlattTHeNNdo24HvRhPNzQmXRvUx4M6lw4Sx6ma7cNX/Jp3ZF1Og1ZnCXcAoIIRN83KDemdcz8IfDkMkCShURNzuF1isxfEmp5UVans4XTliuzecjYaP7pkuBedy3WiESPXo9wJJ9nHvF0SyFLaTLaCj9cg2vhkL3oez7TgN15bvAApnkduYM05/gk960ZfObsD8cosTyBtlD2i1zyoHgUecIyHJh/BxN+McsNqicPLhJz/JiVKK420Lxle0acviX98Jxy+XZRZr7HDC+ysMFSjxUIGbZCcGJa4PuMpZKR2nBL9jpKe5Q0YFVtpv52b/bDT5LpJjKPbPF9XHsoL2rlUeZ3kuNC3ld/nqxhHg= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: mateus.tech X-MS-Exchange-CrossTenant-Network-Message-Id: 61a1ae7a-ef6c-44be-1a16-08d5e90218cb X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Jul 2018 20:49:15.6662 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3cb2d6d7-8d6e-44b8-954d-3085729d2030 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CP2P152MB1523 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jul 2018 20:49:20 -0000 Hi all, During this past week I worked on investigating the PowerShell issue where = characters were being repeated when typed in. I still haven=92t been able t= o pinpoint the exact cause of the issue. I=92ve also updated progress documentation over at the FreeBSD Wiki. -- Mateus de Morais