Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp648371pxb; Wed, 15 Sep 2021 09:56:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzc19MgBA/LJV9qRPMEVor9abdoPfG3TKB74PWndl4Dua1gPDfVbm8xuuE0lyvlngU/Rv0K X-Received: by 2002:a50:bae6:: with SMTP id x93mr1058549ede.232.1631724967071; Wed, 15 Sep 2021 09:56:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631724967; cv=none; d=google.com; s=arc-20160816; b=azFuzZpg28/meJJ9dAUO6EPRiBLtGNmu/nERhtwKkFOJHbkwA/KhR0jiK9coJ3KZVF 6+6x3nSgOx64ynSmiXS8+wUlOQDz3eac/cJ3TvsRZs8bCB1W8mivNO9HmjxExHbO6oYC JxwXgvlMfi+RvFYzEXhpq5xHc0X4ODfC1o9mcaysrPR5sAaSQReasrMWJpp5zamn/50X GcCzWPLs5RR9tnbFFMmDvuPhuYmssiO3+jZlzfU6M6O7DNamCMP1ZJfaCfvN1/ACTUZy UaFke7dfl88ZRL2JeMiqkb4w80DDFsqWo8pk8SmiHrJejH/Xviu2eLHs0Asfv00EmoK7 UrhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=8OsBQAEmYbQirWbEzOEU0rdx/zbceRiJdgiojyK/op8=; b=Xcm7RnBv5IUfn4lQpSsoGfdh3Bgy+EAYZPOIKJINvWjw5pdIMqo9mlq8kDjY9g7ZkL 0xamXakBacWmJQ3mFmf+rI4p+1L6ZaMqA2EQ7Y62SO0XY1hvs+fk75gjRRiXMeoyJVcs lEEB0e4GKfHHiWtgPPBQZDTCKhNBky2mjQeerWdgYQnXPJFgcsn0QqqcEVFGG1Ra3EYw TG7BzUNeesQgxLnuZEQ+1SGefKioTNqX6Z1bjqbFO7bvD94PRbbwXPii3pP6yVd0hGr/ gvM0fkGsYoDnfdZXI4KBtW6AsZ50dKYOa++1umccIfXFHU2h8jusk7J2NVSDDakaTzZm q8sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.com header.s=s2048 header.b="KJaSrA/C"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h2si457181ejl.676.2021.09.15.09.55.42; Wed, 15 Sep 2021 09:56:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@yahoo.com header.s=s2048 header.b="KJaSrA/C"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229479AbhIOQxX (ORCPT + 99 others); Wed, 15 Sep 2021 12:53:23 -0400 Received: from sonic308-15.consmr.mail.ne1.yahoo.com ([66.163.187.38]:43238 "EHLO sonic308-15.consmr.mail.ne1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229738AbhIOQxW (ORCPT ); Wed, 15 Sep 2021 12:53:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1631724723; bh=8OsBQAEmYbQirWbEzOEU0rdx/zbceRiJdgiojyK/op8=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From:Subject:Reply-To; b=KJaSrA/CeCXCZY+I5vVtsZLAXcBA04vIbkw5aCX74GaLhCRU0FxNXQqmu0WUUXJrFO8YuOcDJz4Ss2LUPirMDgxyLOSvaaDuv2uicHcxFtaqi31pqNGdDZQq8LMG83Ndq5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EN o8I566eNC0WP6pLpHVsmUPw_H6hXPm7AzEBb8QwjvuikjYTkjx46_ZnzBqNvNYp7EaxMJqrbc0p7 nvyL9AGTuYvbFdJDdOtHPY8mrAzmNqR9TrLyFN5KNGweg.0rjzw9cJdABVLbHAfJxPus_aSCLvSG AhxGPvQsYAQ_dPOaHJNaMPPB6Q6yIoDOA8U4KeOlBJTgkWwO8JTuxDpwNKSJIAdjDOZInQRqCGGp PEm8SFXTkyP0QzeeNKwoxq.Pg2JBY_xMKHYxIkbFpUYgxtST8.wDkElVvphjm3ewwvqUDxz4Tnnz rflbsFrwHEj9bHAclnk7GClQgaqIbEpIIIoWPr7JGuFBntSBr5SstZ9PSy68ZSDrKG3d.OMQriax PCsr0u3J2cfCgURGOWI526jD9p0O4DIOHO8EFESYOVyO0yrbFkZKjtOHGwmHmjyCeMaBzwV78ocn qhIfqPFLegObgrpZv4RDxc41mIm4dIwGgsmDTCoGRmJMVfkhGvUqh5.pAs2PgaOjfDQldxfVCtJ2 RkrCcvQeNAicsN6xd.5Cp.hKpCKd51uYPAbAjyZ7OV3d3eOwrr0XF.SZHXR9GULlNQ_iAobFdPe. mjEAhV2hxZv1Aen5n0Hh2cykL1CuB7QMDF8lELdHROPgjEBAn1Shf8uadWoLjYqDHfW3sVUUS_ET uBRRXimldVeXm0sV911qaH7v6vBbyWDVf0LSGPguIeyGoIeSJ6quWyawG4Q_PSdrD6RuUdE3z7Ol 3xWsZ7y2tqeftg3u0.74U5cXkiD62aQIJ5FGvsuLF0x7xoO13WuZ7MzMVT3NfIMPFOPss0ZEU_Ju AByLJoze9ucAzjMySbbrnrPQqTaVu8OLUN9T7DuZHOHY_oZgRpm3sKDusa8b9AeBHJM9Y6Ck- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.ne1.yahoo.com with HTTP; Wed, 15 Sep 2021 16:52:03 +0000 Received: by kubenode584.mail-prod1.omega.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID e7eeaedbd502fe08050235c5f7bd0351; Wed, 15 Sep 2021 16:52:00 +0000 (UTC) Subject: Re: Regression in unix stream sockets with the Smack LSM To: Paul Moore Cc: Jiang Wang , Andrii Nakryiko , Jakub Sitnicki , John Fastabend , LKML , Linux Security Module list , "netdev@vger.kernel.org" , Casey Schaufler References: From: Casey Schaufler Message-ID: Date: Wed, 15 Sep 2021 09:51:58 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Mailer: WebService/1.1.19013 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 16218 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/13/2021 4:47 PM, Paul Moore wrote: > On Mon, Sep 13, 2021 at 6:53 PM Casey Schaufler wrote: >> Commit 77462de14a43f4d98dbd8de0f5743a4e02450b1d >> >> af_unix: Add read_sock for stream socket types >> >> introduced a regression in UDS socket connections for the Smack LSM. >> I have not tracked done the details of why the change broke the code, >> but this is where bisecting the kernel indicates the problem lies, and= >> I have verified that reverting this change repairs the problem. >> >> You can verify the problem with the Smack test suite: >> >> https://github.com/smack-team/smack-testsuite.git >> >> The failing test is tests/uds-access.sh. >> >> I have not looked to see if there's a similar problem with SELinux. >> There may be, but if there isn't it doesn't matter, there's still a >> bug. > FWIW, the selinux-testsuite tests ran clean today with v5.15-rc1 (it > looks like this code is only in v5.15) but as Casey said, a regression > is a regression. > > Casey, what actually fails on the Smack system with this commit? This problem occurs with security=3Dnone as well as with security=3Dsmack= =2E There isn't a problem with connect, that always works correctly. The problem is an unexpected read() failure in the connecting process. This doesn't occur all the time, and sometimes happens in the first of my two tests, sometimes the second, sometimes neither and, you guessed= it, sometimes both. Here's a sample socat log demonstrating the problem. The first run, ending at "uds-access RC=3D0" behaves as expected. The second, ending at "uds-access RC=3D1", demonstrates the read failure. This case was run with Smack enabled, but I see the same problem with the same unpredictability on the same kernel with security=3Dnone. I've tried to convince myself that there's a flaw in the way I've set up the scripts. They've been pretty robust and I've never seen socat behaving erratically before. I've instrumented the kernel code and all the security checks are behaving as expected. Plus, as I mentioned above, the problem also occurs without an LSM. 2021/09/15 08:49:50 socat[2215] D getpid() 2021/09/15 08:49:50 socat[2215] D getpid() -> 2215 2021/09/15 08:49:50 socat[2215] D setenv("SOCAT_PID", "2215", 1) 2021/09/15 08:49:50 socat[2215] D setenv() -> 0 2021/09/15 08:49:50 socat[2215] D setenv("SOCAT_PPID", "2215", 1) 2021/09/15 08:49:50 socat[2215] D setenv() -> 0 2021/09/15 08:49:50 socat[2215] I socat by Gerhard Rieger and contributor= s - see www.dest-unreach.org 2021/09/15 08:49:50 socat[2215] I This product includes software develope= d by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.open= ssl.org/) 2021/09/15 08:49:50 socat[2215] I This product includes software written = by Tim Hudson (tjh@cryptsoft.com) 2021/09/15 08:49:50 socat[2215] D socat version 1.7.4.1 on Jan 27 2021 00= :00:00 2021/09/15 08:49:50 socat[2215] D setenv("SOCAT_VERSION", "1.7.4.1", 1) 2021/09/15 08:49:50 socat[2215] D setenv() -> 0 2021/09/15 08:49:50 socat[2215] D running on Linux version #58 SMP Wed Se= p 15 08:40:38 PDT 2021, release 5.15.0-rc1bisect, machine x86_64 2021/09/15 08:49:50 socat[2215] D argv[0]: "socat" 2021/09/15 08:49:50 socat[2215] D argv[1]: "-d" 2021/09/15 08:49:50 socat[2215] D argv[2]: "-d" 2021/09/15 08:49:50 socat[2215] D argv[3]: "-d" 2021/09/15 08:49:50 socat[2215] D argv[4]: "-d" 2021/09/15 08:49:50 socat[2215] D argv[5]: "-" 2021/09/15 08:49:50 socat[2215] D argv[6]: "UNIX-CONNECT:./targets/uds-no= troot/uds-access-socket" 2021/09/15 08:49:50 socat[2215] D sigaction(1, 0x7fffaec50b50, 0x0) 2021/09/15 08:49:50 socat[2215] D sigaction() -> 0 2021/09/15 08:49:50 socat[2215] D sigaction(2, 0x7fffaec50b50, 0x0) 2021/09/15 08:49:50 socat[2215] D sigaction() -> 0 2021/09/15 08:49:50 socat[2215] D sigaction(3, 0x7fffaec50b50, 0x0) 2021/09/15 08:49:50 socat[2215] D sigaction() -> 0 2021/09/15 08:49:50 socat[2215] D sigaction(4, 0x7fffaec50b50, 0x0) 2021/09/15 08:49:50 socat[2215] D sigaction() -> 0 2021/09/15 08:49:50 socat[2215] D sigaction(6, 0x7fffaec50b50, 0x0) 2021/09/15 08:49:50 socat[2215] D sigaction() -> 0 2021/09/15 08:49:50 socat[2215] D sigaction(7, 0x7fffaec50b50, 0x0) 2021/09/15 08:49:50 socat[2215] D sigaction() -> 0 2021/09/15 08:49:50 socat[2215] D sigaction(8, 0x7fffaec50b50, 0x0) 2021/09/15 08:49:50 socat[2215] D sigaction() -> 0 2021/09/15 08:49:50 socat[2215] D sigaction(11, 0x7fffaec50b50, 0x0) 2021/09/15 08:49:50 socat[2215] D sigaction() -> 0 2021/09/15 08:49:50 socat[2215] D sigaction(15, 0x7fffaec50b50, 0x0) 2021/09/15 08:49:50 socat[2215] D sigaction() -> 0 2021/09/15 08:49:50 socat[2215] D signal(13, 0x1) 2021/09/15 08:49:50 socat[2215] D signal() -> 0x0 2021/09/15 08:49:50 socat[2215] D atexit(0x55aa5d645110) 2021/09/15 08:49:50 socat[2215] D atexit() -> 0 2021/09/15 08:49:50 socat[2215] D xioopen("-") 2021/09/15 08:49:50 socat[2215] D calloc(1, 824) 2021/09/15 08:49:50 socat[2215] D calloc() -> 0x55aa5f0139d0 2021/09/15 08:49:50 socat[2215] D malloc(1024) 2021/09/15 08:49:50 socat[2215] D malloc() -> 0x55aa5f013d30 2021/09/15 08:49:50 socat[2215] D calloc(1, 824) 2021/09/15 08:49:50 socat[2215] D calloc() -> 0x55aa5f014140 2021/09/15 08:49:50 socat[2215] D calloc(1, 824) 2021/09/15 08:49:50 socat[2215] D calloc() -> 0x55aa5f014bc0 2021/09/15 08:49:50 socat[2215] D isatty(0) 2021/09/15 08:49:50 socat[2215] D isatty() -> 0 2021/09/15 08:49:50 socat[2215] D isatty(1) 2021/09/15 08:49:50 socat[2215] D isatty() -> 0 2021/09/15 08:49:50 socat[2215] D malloc(128) 2021/09/15 08:49:50 socat[2215] D malloc() -> 0x55aa5f014f00 2021/09/15 08:49:50 socat[2215] D malloc(128) 2021/09/15 08:49:50 socat[2215] D malloc() -> 0x55aa5f014f90 2021/09/15 08:49:50 socat[2215] N reading from and writing to stdio 2021/09/15 08:49:50 socat[2215] D xioopen("UNIX-CONNECT:./targets/uds-not= root/uds-access-socket") 2021/09/15 08:49:50 socat[2215] D calloc(1, 824) 2021/09/15 08:49:50 socat[2215] D calloc() -> 0x55aa5f015020 2021/09/15 08:49:50 socat[2215] D malloc(1024) 2021/09/15 08:49:50 socat[2215] D malloc() -> 0x55aa5f015360 2021/09/15 08:49:50 socat[2215] D malloc(128) 2021/09/15 08:49:50 socat[2215] D malloc() -> 0x55aa5f015770 2021/09/15 08:49:50 socat[2215] N opening connection to AF=3D1 "./targets= /uds-notroot/uds-access-socket" 2021/09/15 08:49:50 socat[2215] D socket(1, 1, 0) 2021/09/15 08:49:50 socat[2215] I socket(1, 1, 0) -> 5 2021/09/15 08:49:50 socat[2215] D fcntl(5, 2, 1) 2021/09/15 08:49:50 socat[2215] D fcntl() -> 0 2021/09/15 08:49:50 socat[2215] D connect(5, {1,AF=3D1 "./targets/uds-not= root/uds-access-socket"}, 41) 2021/09/15 08:49:50 socat[2215] D connect() -> 0 2021/09/15 08:49:50 socat[2215] D getsockname(5, 0x7fffaec50580, 0x7fffae= c50564{112}) 2021/09/15 08:49:50 socat[2215] D getsockname(, {AF=3D1 ""}, {2}) -= > 0 2021/09/15 08:49:50 socat[2215] N successfully connected from local addre= ss AF=3D1 "uds-notroot/ud\xEE\xEE\xEE\xEEcess-socket")\n" 2021/09/15 08:49:50 socat[2215] I resolved and opened all sock addresses 2021/09/15 08:49:50 socat[2215] D posix_memalign(0x7fffaec50b28, 4096, 16= 385) 2021/09/15 08:49:50 socat[2215] D posix_memalign(...) -> 0 2021/09/15 08:49:50 socat[2215] N starting data transfer loop with FDs [0= ,1] and [5,5] 2021/09/15 08:49:50 socat[2215] D data loop: sock1->eof=3D0, sock2->eof=3D= 0, closing=3D0, wasaction=3D1, total_to=3D{0.000000} 2021/09/15 08:49:50 socat[2215] D select(6, &0x21, &0x22, &0x0, NULL/0.00= 0000) 2021/09/15 08:49:50 socat[2215] D select -> (, 0x21, 0x22, 0x0, NULL/0.00= 0000), 4 2021/09/15 08:49:50 socat[2215] D read(0, 0x55aa5f016000, 8192) 2021/09/15 08:49:50 socat[2215] D read -> 4 2021/09/15 08:49:50 socat[2215] D write(5, 0x55aa5f016000, 4) Pop 2021/09/15 08:49:50 socat[2215] D write -> 4 2021/09/15 08:49:50 socat[2215] I transferred 4 bytes from 0 to 5 2021/09/15 08:49:50 socat[2215] D read(5, 0x55aa5f016000, 8192) 2021/09/15 08:49:50 socat[2215] D read -> 4 2021/09/15 08:49:50 socat[2215] D write(1, 0x55aa5f016000, 4) Pop 2021/09/15 08:49:50 socat[2215] D write -> 4 2021/09/15 08:49:50 socat[2215] I transferred 4 bytes from 5 to 1 2021/09/15 08:49:50 socat[2215] D data loop: sock1->eof=3D0, sock2->eof=3D= 0, closing=3D0, wasaction=3D1, total_to=3D{0.000000} 2021/09/15 08:49:50 socat[2215] D select(6, &0x21, &0x22, &0x0, NULL/0.00= 0000) 2021/09/15 08:49:50 socat[2215] D select -> (, 0x21, 0x22, 0x0, NULL/0.00= 0000), 4 2021/09/15 08:49:50 socat[2215] D read(0, 0x55aa5f016000, 8192) 2021/09/15 08:49:50 socat[2215] D read -> 0 2021/09/15 08:49:50 socat[2215] D read(5, 0x55aa5f016000, 8192) 2021/09/15 08:49:50 socat[2215] D read -> 0 2021/09/15 08:49:50 socat[2215] N socket 1 (fd 0) is at EOF 2021/09/15 08:49:50 socat[2215] I shutdown(5, 1) 2021/09/15 08:49:50 socat[2215] D shutdown() -> 0 2021/09/15 08:49:50 socat[2215] N socket 2 (fd 5) is at EOF 2021/09/15 08:49:50 socat[2215] I shutdown(5, 2) 2021/09/15 08:49:50 socat[2215] D shutdown() -> 0 2021/09/15 08:49:50 socat[2215] N exiting with status 0 2021/09/15 08:49:50 socat[2215] D exit(0) 2021/09/15 08:49:50 socat[2215] D starting xioexit() 2021/09/15 08:49:50 socat[2215] D finished xioexit() uds-access RC=3D0 2021/09/15 08:49:52 socat[2240] D getpid() 2021/09/15 08:49:52 socat[2240] D getpid() -> 2240 2021/09/15 08:49:52 socat[2240] D setenv("SOCAT_PID", "2240", 1) 2021/09/15 08:49:52 socat[2240] D setenv() -> 0 2021/09/15 08:49:52 socat[2240] D setenv("SOCAT_PPID", "2240", 1) 2021/09/15 08:49:52 socat[2240] D setenv() -> 0 2021/09/15 08:49:52 socat[2240] I socat by Gerhard Rieger and contributor= s - see www.dest-unreach.org 2021/09/15 08:49:52 socat[2240] I This product includes software develope= d by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.open= ssl.org/) 2021/09/15 08:49:52 socat[2240] I This product includes software written = by Tim Hudson (tjh@cryptsoft.com) 2021/09/15 08:49:52 socat[2240] D socat version 1.7.4.1 on Jan 27 2021 00= :00:00 2021/09/15 08:49:52 socat[2240] D setenv("SOCAT_VERSION", "1.7.4.1", 1) 2021/09/15 08:49:52 socat[2240] D setenv() -> 0 2021/09/15 08:49:52 socat[2240] D running on Linux version #58 SMP Wed Se= p 15 08:40:38 PDT 2021, release 5.15.0-rc1bisect, machine x86_64 2021/09/15 08:49:52 socat[2240] D argv[0]: "socat" 2021/09/15 08:49:52 socat[2240] D argv[1]: "-d" 2021/09/15 08:49:52 socat[2240] D argv[2]: "-d" 2021/09/15 08:49:52 socat[2240] D argv[3]: "-d" 2021/09/15 08:49:52 socat[2240] D argv[4]: "-d" 2021/09/15 08:49:52 socat[2240] D argv[5]: "-" 2021/09/15 08:49:52 socat[2240] D argv[6]: "UNIX-CONNECT:./targets/uds-no= troot/uds-access-socket" 2021/09/15 08:49:52 socat[2240] D sigaction(1, 0x7ffcca7e26c0, 0x0) 2021/09/15 08:49:52 socat[2240] D sigaction() -> 0 2021/09/15 08:49:52 socat[2240] D sigaction(2, 0x7ffcca7e26c0, 0x0) 2021/09/15 08:49:52 socat[2240] D sigaction() -> 0 2021/09/15 08:49:52 socat[2240] D sigaction(3, 0x7ffcca7e26c0, 0x0) 2021/09/15 08:49:52 socat[2240] D sigaction() -> 0 2021/09/15 08:49:52 socat[2240] D sigaction(4, 0x7ffcca7e26c0, 0x0) 2021/09/15 08:49:52 socat[2240] D sigaction() -> 0 2021/09/15 08:49:52 socat[2240] D sigaction(6, 0x7ffcca7e26c0, 0x0) 2021/09/15 08:49:52 socat[2240] D sigaction() -> 0 2021/09/15 08:49:52 socat[2240] D sigaction(7, 0x7ffcca7e26c0, 0x0) 2021/09/15 08:49:52 socat[2240] D sigaction() -> 0 2021/09/15 08:49:52 socat[2240] D sigaction(8, 0x7ffcca7e26c0, 0x0) 2021/09/15 08:49:52 socat[2240] D sigaction() -> 0 2021/09/15 08:49:52 socat[2240] D sigaction(11, 0x7ffcca7e26c0, 0x0) 2021/09/15 08:49:52 socat[2240] D sigaction() -> 0 2021/09/15 08:49:52 socat[2240] D sigaction(15, 0x7ffcca7e26c0, 0x0) 2021/09/15 08:49:52 socat[2240] D sigaction() -> 0 2021/09/15 08:49:52 socat[2240] D signal(13, 0x1) 2021/09/15 08:49:52 socat[2240] D signal() -> 0x0 2021/09/15 08:49:52 socat[2240] D atexit(0x560590a15110) 2021/09/15 08:49:52 socat[2240] D atexit() -> 0 2021/09/15 08:49:52 socat[2240] D xioopen("-") 2021/09/15 08:49:52 socat[2240] D calloc(1, 824) 2021/09/15 08:49:52 socat[2240] D calloc() -> 0x560591e899d0 2021/09/15 08:49:52 socat[2240] D malloc(1024) 2021/09/15 08:49:52 socat[2240] D malloc() -> 0x560591e89d30 2021/09/15 08:49:52 socat[2240] D calloc(1, 824) 2021/09/15 08:49:52 socat[2240] D calloc() -> 0x560591e8a140 2021/09/15 08:49:52 socat[2240] D calloc(1, 824) 2021/09/15 08:49:52 socat[2240] D calloc() -> 0x560591e8abc0 2021/09/15 08:49:52 socat[2240] D isatty(0) 2021/09/15 08:49:52 socat[2240] D isatty() -> 0 2021/09/15 08:49:52 socat[2240] D isatty(1) 2021/09/15 08:49:52 socat[2240] D isatty() -> 0 2021/09/15 08:49:52 socat[2240] D malloc(128) 2021/09/15 08:49:52 socat[2240] D malloc() -> 0x560591e8af00 2021/09/15 08:49:52 socat[2240] D malloc(128) 2021/09/15 08:49:52 socat[2240] D malloc() -> 0x560591e8af90 2021/09/15 08:49:52 socat[2240] N reading from and writing to stdio 2021/09/15 08:49:52 socat[2240] D xioopen("UNIX-CONNECT:./targets/uds-not= root/uds-access-socket") 2021/09/15 08:49:52 socat[2240] D calloc(1, 824) 2021/09/15 08:49:52 socat[2240] D calloc() -> 0x560591e8b020 2021/09/15 08:49:52 socat[2240] D malloc(1024) 2021/09/15 08:49:52 socat[2240] D malloc() -> 0x560591e8b360 2021/09/15 08:49:52 socat[2240] D malloc(128) 2021/09/15 08:49:52 socat[2240] D malloc() -> 0x560591e8b770 2021/09/15 08:49:52 socat[2240] N opening connection to AF=3D1 "./targets= /uds-notroot/uds-access-socket" 2021/09/15 08:49:52 socat[2240] D socket(1, 1, 0) 2021/09/15 08:49:52 socat[2240] I socket(1, 1, 0) -> 5 2021/09/15 08:49:52 socat[2240] D fcntl(5, 2, 1) 2021/09/15 08:49:52 socat[2240] D fcntl() -> 0 2021/09/15 08:49:52 socat[2240] D connect(5, {1,AF=3D1 "./targets/uds-not= root/uds-access-socket"}, 41) 2021/09/15 08:49:52 socat[2240] D connect() -> 0 2021/09/15 08:49:52 socat[2240] D getsockname(5, 0x7ffcca7e20f0, 0x7ffcca= 7e20d4{112}) 2021/09/15 08:49:52 socat[2240] D getsockname(, {AF=3D1 ""}, {2}) -= > 0 2021/09/15 08:49:52 socat[2240] N successfully connected from local addre= ss AF=3D1 "uds-notroot/ud\xEE\xEE\xEE\xEEcess-socket")\n" 2021/09/15 08:49:52 socat[2240] I resolved and opened all sock addresses 2021/09/15 08:49:52 socat[2240] D posix_memalign(0x7ffcca7e2698, 4096, 16= 385) 2021/09/15 08:49:52 socat[2240] D posix_memalign(...) -> 0 2021/09/15 08:49:52 socat[2240] N starting data transfer loop with FDs [0= ,1] and [5,5] 2021/09/15 08:49:52 socat[2240] D data loop: sock1->eof=3D0, sock2->eof=3D= 0, closing=3D0, wasaction=3D1, total_to=3D{0.000000} 2021/09/15 08:49:52 socat[2240] D select(6, &0x21, &0x22, &0x0, NULL/0.00= 0000) 2021/09/15 08:49:52 socat[2240] D select -> (, 0x1, 0x22, 0x0, NULL/0.000= 000), 3 2021/09/15 08:49:52 socat[2240] D read(0, 0x560591e8c000, 8192) 2021/09/15 08:49:52 socat[2240] D read -> 5 2021/09/15 08:49:52 socat[2240] D write(5, 0x560591e8c000, 5) 2021/09/15 08:49:52 socat[2240] D write -> 5 2021/09/15 08:49:52 socat[2240] I transferred 5 bytes from 0 to 5 2021/09/15 08:49:52 socat[2240] D data loop: sock1->eof=3D0, sock2->eof=3D= 0, closing=3D0, wasaction=3D1, total_to=3D{0.000000} 2021/09/15 08:49:52 socat[2240] D select(6, &0x21, &0x20, &0x0, NULL/0.00= 0000) 2021/09/15 08:49:52 socat[2240] D select -> (, 0x1, 0x20, 0x0, NULL/0.000= 000), 2 2021/09/15 08:49:52 socat[2240] D read(0, 0x560591e8c000, 8192) 2021/09/15 08:49:52 socat[2240] D read -> 0 2021/09/15 08:49:52 socat[2240] N socket 1 (fd 0) is at EOF 2021/09/15 08:49:52 socat[2240] I shutdown(5, 1) 2021/09/15 08:49:52 socat[2240] D shutdown() -> 0 2021/09/15 08:49:52 socat[2240] D data loop: sock1->eof=3D3, sock2->eof=3D= 0, closing=3D1, wasaction=3D1, total_to=3D{0.000000} 2021/09/15 08:49:52 socat[2240] D select(6, &0x20, &0x0, &0x0, &0.500000)= Snap 2021/09/15 08:49:52 socat[2240] D select -> (, 0x20, 0x0, 0x0, &0.500000)= , 1 2021/09/15 08:49:52 socat[2240] D read(5, 0x560591e8c000, 8192) 2021/09/15 08:49:52 socat[2240] D read -> -1 2021/09/15 08:49:52 socat[2240] E read(5, 0x560591e8c000, 8192): Invalid = argument 2021/09/15 08:49:52 socat[2240] N exit(1) 2021/09/15 08:49:52 socat[2240] D starting xioexit() 2021/09/15 08:49:52 socat[2240] I shutdown(5, 2) 2021/09/15 08:49:52 socat[2240] D shutdown() -> 0 2021/09/15 08:49:52 socat[2240] D finished xioexit() uds-access RC=3D1 =C2=A0