From owner-soc-status@freebsd.org Sun Jun 21 18:19:07 2020 Return-Path: Delivered-To: soc-status@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 F20D435727F for ; Sun, 21 Jun 2020 18:19:07 +0000 (UTC) (envelope-from denis.sale@gmail.com) Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com [209.85.208.172]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49qgmC21Hvz4NxL for ; Sun, 21 Jun 2020 18:19:07 +0000 (UTC) (envelope-from denis.sale@gmail.com) Received: by mail-lj1-f172.google.com with SMTP id 9so16823305ljc.8 for ; Sun, 21 Jun 2020 11:19:07 -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=rEAfaOEtWM/e36eF1ijU6OxbMpGkZVfYb5fOLrtBrqY=; b=qpN+BXkdbBjFxaqzkQm1cYyAQyVitr3BIg5CL7EQilUnQepa9hB6rIHBpKiSUTepPz 8QZkqrEco20HNhO/cUC2YEkkDVkNcOLooVn1Ooz259VCW6ypiaw4+OrxzqQudchMP10N j9L/9WbptotjFYSL2D3TGOwhgEeyTAdGSiWFTe3rFDl8v9hyks3dopsvANqJtrke04Qa ScjxC9L6VPmXaBY+GVwuwLv3vOQenpJl72FmJfaK7Dk8X+F6VIU0Sh+hFxvg6uKk/qsf czB01Sd/NMVLeKIoNq8BdAHCTM4EFDoL7F2cpEsbcTYs4+ojxORciSpAfLd+TwAXcZ4u 0Bgg== X-Gm-Message-State: AOAM531pgarKIAd7bZRl5FU9BslohZglOypj53UvRSkgnapkZt2pIB0Y Kmm8u3GUKBGOXOjL4UEyTHLvSs+TeG8= X-Google-Smtp-Source: ABdhPJxmSiS7mGnU3jy8vjgKc7Ht9Tifcgb3jiv3pT5XIEKDT4rLyK1SuNu9A7VBSx8/vGaip3/49A== X-Received: by 2002:a2e:a37c:: with SMTP id i28mr7152352ljn.111.1592763545498; Sun, 21 Jun 2020 11:19:05 -0700 (PDT) Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com. [209.85.208.180]) by smtp.gmail.com with ESMTPSA id c20sm2875795lfb.33.2020.06.21.11.19.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 21 Jun 2020 11:19:05 -0700 (PDT) Received: by mail-lj1-f180.google.com with SMTP id c17so16781970lji.11 for ; Sun, 21 Jun 2020 11:19:05 -0700 (PDT) X-Received: by 2002:a2e:b4b9:: with SMTP id q25mr6860925ljm.313.1592763544851; Sun, 21 Jun 2020 11:19:04 -0700 (PDT) MIME-Version: 1.0 From: Denis Salopek Date: Sun, 21 Jun 2020 20:19:04 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: [GSoC'20 Weekly update #3] - NetFPGA SUME reference NIC device driver To: soc-status@freebsd.org X-Rspamd-Queue-Id: 49qgmC21Hvz4NxL X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of denissale@gmail.com designates 209.85.208.172 as permitted sender) smtp.mailfrom=denissale@gmail.com X-Spamd-Result: default: False [-0.82 / 15.00]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[soc-status@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.33)[-0.328]; RCVD_COUNT_THREE(0.00)[4]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_SPAM_SHORT(0.18)[0.177]; DMARC_NA(0.00)[freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[209.85.208.172:from]; NEURAL_HAM_MEDIUM(-0.66)[-0.664]; FORGED_SENDER(0.30)[denissal@freebsd.org,denissale@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.208.172:from]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; TAGGED_FROM(0.00)[]; FROM_NEQ_ENVFROM(0.00)[denissal@freebsd.org,denissale@gmail.com]; TO_DOM_EQ_FROM_DOM(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.33 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: Sun, 21 Jun 2020 18:19:08 -0000 Hello everyone, This week I managed to implement reading/writing from/to the registers on board with interrupt handles and locks. It works with simple tests, but I still don't get any traffic to/from the interfaces, so my next step is to implement packet RX/TX and do some real tests. I need to catch incoming packets and build mbufs with them so I can forward them to different interfaces. Along with receiving, I also need to work on sending traffic out (building mbufs and DMA-ing them to SUME). Project github with more details: https://github.com/denisSal/freebsd-sume Regards, Denis Salopek From owner-soc-status@freebsd.org Tue Jun 23 17:46:10 2020 Return-Path: Delivered-To: soc-status@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 2B1EC334297 for ; Tue, 23 Jun 2020 17:46:10 +0000 (UTC) (envelope-from ankur.kothiwal99@gmail.com) Received: from mail-qv1-f52.google.com (mail-qv1-f52.google.com [209.85.219.52]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49rtxF07qhz3cbm for ; Tue, 23 Jun 2020 17:46:08 +0000 (UTC) (envelope-from ankur.kothiwal99@gmail.com) Received: by mail-qv1-f52.google.com with SMTP id a14so3755466qvq.6 for ; Tue, 23 Jun 2020 10:46:08 -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=LG11SCFb3IerxfR10bfCLkKlwFcPTCq8JoALA5OWAQA=; b=jdpa1lrWc8Wv1HHuYkgWAf1UHTy1YIx4BGpu73sU6A4LZM/UNzb3O//2NdT+QM8l/z 9JImLaioyFNDn2FfbJJF0SifuOSJ+DU/SLCcgassu4Y73Tq6W+/moCrre5/uNtm//7eo UYXDWTdJk40653lrOyTXALXD+0CS2Kv2N1MXJckNa6mS3xSSJykKNRItCxZ5x4zgda7y XNs3SY6vTOoK298Yxbrf3pS0YZb9YGM4ICAwxsZOghw9VaThmYkkngB/vouXKKQxOYXQ 2IsnP/1LeMpCjNPvvgKQqWOH/HSmMxXegCHzJ8hXtFg5m4QigasYK6S1s3iWQby4M2xA Q2Xg== X-Gm-Message-State: AOAM533DVjNYWCj7a5IyB4AgqeEUFVbb2P54sNDKKzeyv6N6VT91Ns2c rYjZp4nPHZXWDCxcH8sYiu8ke7QqfA4= X-Google-Smtp-Source: ABdhPJx/C8ovHtkK3cMQynD173bvd0ZTWYcw2Z3zJ3ng/f2dYSExbj4+Fc6UTI0XVwbfYKa9RpLz+Q== X-Received: by 2002:a05:6214:1447:: with SMTP id b7mr28412869qvy.83.1592934367715; Tue, 23 Jun 2020 10:46:07 -0700 (PDT) Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com. [209.85.222.170]) by smtp.gmail.com with ESMTPSA id c24sm1305557qtd.82.2020.06.23.10.46.06 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Jun 2020 10:46:07 -0700 (PDT) Received: by mail-qk1-f170.google.com with SMTP id q198so11783352qka.2 for ; Tue, 23 Jun 2020 10:46:06 -0700 (PDT) X-Received: by 2002:a05:620a:68a:: with SMTP id f10mr21206189qkh.419.1592934366693; Tue, 23 Jun 2020 10:46:06 -0700 (PDT) MIME-Version: 1.0 From: Ankur Kothiwal Date: Tue, 23 Jun 2020 23:15:37 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: [GSoC'20 Weekly Update - Week 2] eBPF XDP Hook To: soc-status@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 49rtxF07qhz3cbm X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of ankurkothiwal99@gmail.com designates 209.85.219.52 as permitted sender) smtp.mailfrom=ankurkothiwal99@gmail.com X-Spamd-Result: default: False [-1.38 / 15.00]; RCVD_TLS_ALL(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[soc-status@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.67)[-0.672]; RCVD_COUNT_THREE(0.00)[4]; ARC_NA(0.00)[]; NEURAL_SPAM_SHORT(0.23)[0.234]; RCVD_IN_DNSWL_NONE(0.00)[209.85.219.52:from]; NEURAL_HAM_MEDIUM(-0.94)[-0.940]; FORGED_SENDER(0.30)[ankur@freebsd.org,ankurkothiwal99@gmail.com]; DMARC_NA(0.00)[freebsd.org]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.219.52:from]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; TAGGED_FROM(0.00)[]; FROM_NEQ_ENVFROM(0.00)[ankur@freebsd.org,ankurkothiwal99@gmail.com]; TO_DOM_EQ_FROM_DOM(0.00)[] X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.33 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, 23 Jun 2020 17:46:10 -0000 Hi all, Project: Implement eBPF XDP for FreeBSD by extending VirtIO ethernet driver if_vtnet The goal of this project is to extend an existing FreeBSD network driver,VirtIO if_vtnet to be able to call into an eBPF program when processing a newly received packet. The driver will perform the basic actions of XDP like PASS and DROP the packet as specified by the program. The project will also implement new map type and other eBPF helper functions.The aim of this project is to add new probe sites into the kernel that will call eBPF functions. Mentor: Ryan Stone and Hiroki Sato This week I fixed the compilation errors we were getting while compiling the kernel due to the changes made for activating probes. Also we tested that the probes are correctly listed and activated. Project GSoC Wiki: https://wiki.freebsd.org/SummerOfCodeIdeas#eBPF_XDP_Hooks Github Repo for the code: https://github.com/rysto32/freebsd/tree/ebpf-import For above related commits refer: https://github.com/Ankurk99/freebsd/tree/ebpf-import Thank you for reading. Please feel free to share your feedback and suggestions. Thanks and Regards From owner-soc-status@freebsd.org Tue Jun 23 18:24:39 2020 Return-Path: Delivered-To: soc-status@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 1649533504C for ; Tue, 23 Jun 2020 18:24:39 +0000 (UTC) (envelope-from shivankgarg98@gmail.com) Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49rvnf2qMQz3gDx; Tue, 23 Jun 2020 18:24:38 +0000 (UTC) (envelope-from shivankgarg98@gmail.com) Received: by mail-ej1-x62f.google.com with SMTP id a1so8569468ejg.12; Tue, 23 Jun 2020 11:24:38 -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:cc; bh=oUhXNS7sw3Vq0tFju7AE70gGZ+IuvDf0Pnn5iVQxMBE=; b=j6o9sivFv/uVOQrxwqbjUiXFYkPuLbcqBSxLl/wcuMmscUgu6fWqvtd9k7ruIAqFPr dYaZ2hCUjaO8mlkt/va8TWx0gE/G6IAdi3VvzXp0reAr4ZwHGyGbvhbAIHbXQMjzNGGT r6JFXNrFSUW+y2nNT+FW+As4wyIsp3bJhSogrnXRAjwAOgdgCrpztzReRahkiPmzjPNG DNqJ3sH8LMlEFXscQ2AiuCjTwZPL+3pIrpzydA9SfcquHv8sGr0tM2Zs0cuGWZHOJIwx jnhaJYUHhELNvw9vClm6CnZAPu4RCQBFRa+AthT8PBSaxMQt2xeJnBTuE+hk4xXXZuHV wFXQ== 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=oUhXNS7sw3Vq0tFju7AE70gGZ+IuvDf0Pnn5iVQxMBE=; b=dqMCd8JqEW+fK32urCupzvxJXpqktCUAFEKm/PSNvbNQZgk5o95Xsu+FtinTO5Apnv xB7gdUd/cEwbky+XYjPsvv7stOwwaflzHxWYEL3o9L0iTUW335mFUJD7T98GGSk2qVDo 8q8i43im5R9bhiSE+VmeFOBIr4CUyibGiCT8S+fX5NF+Hdukfw8kTy3mo7l5b6wznMce XY+luvrsroeZr1n6YSl45fdWaXPhzGadjSsBZNhdnaRM6sBcX50BLW0JxmPxjuuB8MR1 AsG8RYQBcqb4WjP7+1I8W0OS8svoy9j06c8yYscQq+PLFsV3P8NC3cBDQYsIVGeFvL2p voVg== X-Gm-Message-State: AOAM530x6soJwGVpeOwM1dLBhWBUBiZcG5vG2jNwdn7r3oUNCoQLrlJu zFsOQvVPhWcVqiNazNE4JtbtapUhTPn40mDUhGE+jV/j3LU= X-Google-Smtp-Source: ABdhPJzrZCj7hKEQPXqyu1uzi0jvrg+4pjiP1htINW1bkqv566Q/iT+wne8XMkvCU5KgLR8aQMqdH1jOmxGTpPQO9s4= X-Received: by 2002:a17:906:a772:: with SMTP id fu18mr9009113ejb.324.1592936676507; Tue, 23 Jun 2020 11:24:36 -0700 (PDT) MIME-Version: 1.0 From: Shivank Garg Date: Tue, 23 Jun 2020 23:54:19 +0530 Message-ID: Subject: [GSoC'20 Weekly Update] Adding audit(4) support to NFS To: soc-status@freebsd.org Cc: Alan Somers X-Rspamd-Queue-Id: 49rvnf2qMQz3gDx X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=j6o9sivF; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of shivankgarg98@gmail.com designates 2a00:1450:4864:20::62f as permitted sender) smtp.mailfrom=shivankgarg98@gmail.com X-Spamd-Result: default: False [-3.35 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.03)[-1.029]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; NEURAL_HAM_LONG(-1.00)[-1.002]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::62f:from]; NEURAL_HAM_SHORT(-0.32)[-0.322]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.33 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, 23 Jun 2020 18:24:39 -0000 Hi, This project aims to add audit(4) support to NFS, which will allow auditd(8) to just run on the NFS server and audit all activities within the NFS network. Audit works mostly on the syscall level and NFS is implemented within the kernel, which means the NFS RPCs don't generate any audit records on the server. Note that audit(4) can still be used on the NFS network but auditd(8) must run on every NFS client. This week I made the following progress: * generate audit tokens for NFS RPC events. * added NFSRPC audit events to kernel audit_bsm_db Currently, I am: * looking into audit kernel code and userspace contrib/openbsm for inserting event-class mapping for NFS RPC events to kernel db. * do audit preselection based on audit_control * looking into net/libnfs port to write tests for NFS audit. Please, do Check this project on Github: https://github.com/shivankgarg98/freebsd/tree/user/shivank/nfs_audit Project wiki: https://wiki.freebsd.org/SummerOfCode2020Projects/AddAuditSupportToNFS Please feel free to share your ideas and feedback on this project. Best Regards, Shivank Garg