From: Mirsad Goran Todorovac <mirsad.todorovac@alu.unizg.hr>
To: Kuniyuki Iwashima <kuniyu@amazon.com>, mirsad.todorovac@alu.hr
Cc: davem@davemloft.net, edumazet@google.com, fw@strlen.de,
kuba@kernel.org, kuniyu@amazon.co.jp,
linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org,
netdev@vger.kernel.org, pabeni@redhat.com, shuah@kernel.org
Subject: Re: [PATCH net v4] af_unix: selftest: Fix the size of the parameter to connect()
Date: Mon, 9 Jan 2023 09:53:42 +0100 [thread overview]
Message-ID: <00edc00c-7e44-3641-ded7-e9f908946514@alu.unizg.hr> (raw)
In-Reply-To: <20230109011512.15267-1-kuniyu@amazon.com>
On 9.1.2023. 2:15, Kuniyuki Iwashima wrote:
> From: Mirsad Goran Todorovac <mirsad.todorovac@alu.hr>
> Date: Sat, 7 Jan 2023 04:40:20 +0100 (CET)
>> From: Mirsad Goran Todorovac <mirsad.todorovac@alu.unizg.hr>
>>
>> Adjust size parameter in connect() to match the type of the parameter, to
>> fix "No such file or directory" error in selftests/net/af_unix/
>> test_oob_unix.c:127.
>>
>> The existing code happens to work provided that the autogenerated pathname
>> is shorter than sizeof (struct sockaddr), which is why it hasn't been
>> noticed earlier.
>>
>> Visible from the trace excerpt:
>>
>> bind(3, {sa_family=AF_UNIX, sun_path="unix_oob_453059"}, 110) = 0
>> clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fa6a6577a10) = 453060
>> [pid <child>] connect(6, {sa_family=AF_UNIX, sun_path="unix_oob_45305"}, 16) = -1 ENOENT (No such file or directory)
>>
>> BUG: The filename is trimmed to sizeof (struct sockaddr).
>>
>> Cc: "David S. Miller" <davem@davemloft.net>
>> Cc: Eric Dumazet <edumazet@google.com>
>> Cc: Jakub Kicinski <kuba@kernel.org>
>> Cc: Paolo Abeni <pabeni@redhat.com>
>> Cc: Shuah Khan <shuah@kernel.org>
>> Cc: Kuniyuki Iwashima <kuniyu@amazon.co.jp>
>> Cc: Florian Westphal <fw@strlen.de>
>> Reviewed-by: Florian Westphal <fw@strlen.de>
>> Fixes: 314001f0bf92 ("af_unix: Add OOB support")
>> Signed-off-by: Mirsad Goran Todorovac <mirsad.todorovac@alu.unizg.hr>
>
> Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
>
> You can check the current status here.
> https://patchwork.kernel.org/project/netdevbpf/patch/alpine.DEB.2.21.2301070437400.26826@domac.alu.hr/
Thank you very much for your time on this, Koniyuki, Jakub.
> PS: you may want to check config not to send a mail as multipart next time.
Done! Thanks for the hint. This should work:
[ Sending Preferences ]
[X] Do Not Generate Sender Header
[ ] Use Sender Instead of X-X-Sender
[X] Do Not Send Flowed Text
[X] Downgrade Multipart to Text
Maybe add this to Documentation/process/email-clients.rst, section
Alpine? It could save some round-trips ...
Thanks,
Mirsad
--
Mirsad Todorovac
System engineer
Faculty of Graphic Arts | Academy of Fine Arts
University of Zagreb
Republic of Croatia, the European Union
--
Sistem inženjer
Grafički fakultet | Akademija likovnih umjetnosti
Sveučilište u Zagrebu
next prev parent reply other threads:[~2023-01-09 9:02 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-06 17:18 [PATCH selftest/net/af_unix 1/1] Fix size of parameter to connect() Mirsad Goran Todorovac
2023-01-06 17:58 ` Kuniyuki Iwashima
2023-01-06 19:19 ` Mirsad Goran Todorovac
2023-01-06 19:28 ` [PATCH net v2] af_unix: selftest: Fix the size of the " Mirsad Goran Todorovac
2023-01-07 0:14 ` Jakub Kicinski
2023-01-07 1:37 ` [PATCH net v3] " Mirsad Goran Todorovac
2023-01-07 1:42 ` [PATCH net v2] " Mirsad Goran Todorovac
2023-01-07 2:08 ` Jakub Kicinski
2023-01-07 3:36 ` Mirsad Goran Todorovac
2023-01-07 3:40 ` [PATCH net v4] " Mirsad Goran Todorovac
2023-01-09 1:15 ` Kuniyuki Iwashima
2023-01-09 8:53 ` Mirsad Goran Todorovac [this message]
2023-01-09 8:20 ` patchwork-bot+netdevbpf
2023-01-08 21:30 ` [PATCH net v2] " Mirsad Goran Todorovac
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=00edc00c-7e44-3641-ded7-e9f908946514@alu.unizg.hr \
--to=mirsad.todorovac@alu.unizg.hr \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=fw@strlen.de \
--cc=kuba@kernel.org \
--cc=kuniyu@amazon.co.jp \
--cc=kuniyu@amazon.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=mirsad.todorovac@alu.hr \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=shuah@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).