From owner-freebsd-users-jp@freebsd.org Fri Apr 23 00:28:47 2021 Return-Path: Delivered-To: freebsd-users-jp@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 29620622EEF for ; Fri, 23 Apr 2021 00:28:47 +0000 (UTC) (envelope-from katsu@miyoshi.matsuyama.ehime.jp) Received: from mo-sw.po.2iij.net (mo-sw1511.po.2iij.net [210.128.50.33]) (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 4FRFWy0Dkwz3DBR for ; Fri, 23 Apr 2021 00:28:44 +0000 (UTC) (envelope-from katsu@miyoshi.matsuyama.ehime.jp) Received: by mo-sw.po.2iij.net (po-mo-sw1511) id 13N0SZlS022188; Fri, 23 Apr 2021 09:28:36 +0900 Received: from kmgw.miyoshi.matsuyama.ehime.jp (14.23.31.150.dy.iij4u.or.jp [150.31.23.14]) by mbox.po.2iij.net (po-mbox1510) id 13N0SZCU014748 for ; Fri, 23 Apr 2021 09:28:35 +0900 Received: from kmgw.miyoshi.matsuyama.ehime.jp (localhost [127.0.0.1]) by kmgw.miyoshi.matsuyama.ehime.jp (Postfix) with ESMTP id 56C73511F for ; Fri, 23 Apr 2021 09:28:35 +0900 (JST) From: Katsuyuki Miyoshi To: freebsd-users-jp@freebsd.org Cc: References: Date: Fri, 23 Apr 2021 09:28:34 +0900 In-Reply-To: (Nst's message of "Thu, 22 Apr 2021 18:35:12 +0900") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp X-Rspamd-Queue-Id: 4FRFWy0Dkwz3DBR X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of katsu@miyoshi.matsuyama.ehime.jp has no SPF policy when checking 210.128.50.33) smtp.mailfrom=katsu@miyoshi.matsuyama.ehime.jp X-Spamd-Result: default: False [-2.10 / 15.00]; ARC_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[210.128.50.33:from]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-users-jp@freebsd.org]; TO_DN_NONE(0.00)[]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[210.128.50.33:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[miyoshi.matsuyama.ehime.jp]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:2497, ipnet:210.128.0.0/16, country:JP]; RCVD_TLS_LAST(0.00)[]; MAILMAN_DEST(0.00)[freebsd-users-jp] Subject: [FreeBSD-users-jp 96795] Re: =?iso-2022-jp?b?RnJlZUJTRDEzGyRCJEckThsoQlJJUHYy?= X-BeenThere: freebsd-users-jp@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussion relevant to FreeBSD communities in Japan List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Apr 2021 00:28:47 -0000 みよし です。 Nst writes: > syslogを見たところ以下のようなエラーが発生しています > --- syslog --- > Apr 22 18:20:29 host1 routed[554]: write(rt_sock) RTM_ADD 10.0.0.0 > (mask 0xffff0000)-->192.168.0.XXX metric=1 flags=0x2: Invalid argument > Apr 22 18:20:29 host1 kernel: mask sin_len too small > --- > > 少し検索したところ以下を見つけました > https://lists.freebsd.org/pipermail/dev-commits-src-branches/2021-March/001341.html > これの影響なのでしょうか? Bug 255273 辺りで報告があって、main ブランチ (current) では ====================================================================== commit b31fbebeb3d59af359a3417cddfbcf666b2c56c9 Author: Alexander V. Chernikov Date: Mon Apr 19 20:49:18 2021 +0000 Relax rtsock message restrictions. Address multiple issues with strict rtsock message validation. D28668 "normalisation" approach was based on the assumption that we always have at least "standard" sockaddr len. It turned out to be false - certain older applications like quagga or routed abuse sin[6]_len field and set it to the offset to the first fully-zero bit in the mask. It is impossible to normalise such sockaddrs without reallocation. With that in mind, change the approach to use a distinct memory buffer for the altered sockaddrs. This allows supporting the older software while maintaining the guarantee on the "standard" sockaddrs. PR: 255273,255089 Differential Revision: https://reviews.freebsd.org/D29826 MFC after: 3 days ====================================================================== で既に修正が入っているようです。これがマージされれば直りそうな気がします。 -- 三好勝幸 (Katsuyuki Miyoshi)