[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible bug? DOM-U network stopped working after fatal error reported in DOM0
- To: G.R. <firemeteor@xxxxxxxxxxxxxxxxxxxxx>
- From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Date: Tue, 21 Dec 2021 20:12:42 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=qWdKMvlEoWxZybBEeTsgWO7k5zIOnb5fTz8ugdNq/Nc=; b=hJMQuQUMkHwi1lmy6IIyclH8A/vzO+eKQv9XqaBrxZqEPtqspjn00aComSIWYT3c80LdwiJpDkpsGweSJ0dMBUItW0NDTc1uVyEMbSHBr0DAwweWzOrrXyq1EPSxXdojvJGrC+4u/KCn3StKkSZv9TgjLkJLG6ZZLe3pYKu5ztwxWTcdKoahrTx6Yp+ezAFqSLiNmg46Jy1h97ppqAaOZHSgNKaz8A89gXH4VlELu5UQNB8yQ842CiUg6VfrXmYP0A3+/OFHpr6aYxzepwDbB31n3ZVPwFc1ZPS7AaFvXv2L4xsUJ8lms21lvVMmWy/2OnEhVJEF0Dy/KAw2WhpLew==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hYtNcnpWL3GGTnmsKfMBzLA0U5TUfrCYsr7Cs9ct/8UeXKNM351eZy/hD8IDuv1lddOP2yJ8/83glr/HL342WyBU9FfTeTUfqxn7t22GLqmgIRYB4ifBq5Rh9xUSNnQe1BiloDEYd7gby7yU0I/cwEotPcgicDdEzprwdrlpdrg9yoZu/i8SKggd13nQGQZUhDefcwi5ncPv52o+mdgYqHf0xF4rtHY3Fq15aPvyQXCVBW4Xoe+D0rJpUX0URq86DkxbIj10I95lvUv0/Pexh/u4OUzDkaxlPlGcVy618RxuO52aF7NFt1sKjeCghTdkimL6M2pCZXhLQNhTX8zu+Q==
- Authentication-results: esa5.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
- Cc: xen-devel <xen-devel@xxxxxxxxxxxxx>
- Delivery-date: Tue, 21 Dec 2021 19:13:18 +0000
- Ironport-data: A9a23:eRFOHqyU/Fd/NNYScGR6t+fkwSrEfRIJ4+MujC+fZmUNrF6WrkUDx jNLUWGFaPbZN2SnKN8gPti3/UJQsZGHmoJrSAQ9riAxQypGp/SeCIXCJC8cHc8zwu4v7q5Dx 59DAjUVBJlsFhcwnvopW1TYhSEUOZugH9IQM8aZfHAhLeNYYH1500s6wbRg2tUAbeWRWGthh /uj+6UzB3f9s9JEGjp8B3Wr8U4HUFza4Vv0j3RmDRx5lAa2e0o9VfrzEZqZPXrgKrS4K8bhL wr1IBNVyUuCl/slIovNfr8W6STmSJaKVeSFoiI+t6RPHnGuD8H9u0o2HKN0VKtZt9mGt/Fty 8tdrZmgdTkSLLbXs9YEURoJQwgraMWq+JefSZS+mcmazkmAeHrw2fR+SkoxOOX0+M4uXzsIr 6ZBbmlQMFbT3Ipaw5riIgVort4kI8TxepsWp1lrzC3DDOZgSpfGK0nPzYEAhGxr25kQdRrYT 9AHWB1WUzbmXwBeHFctVo8etqS2nFCqJlW0r3rK/PFqsgA/1jdZwLXrddbYZNGObcFUhVqD4 HLL+SL+GB5yHNKe0zeA/26hgfXngDj2QplUD7ql7PVnjlqJyWFVDhAKPWZXutHg1BT4AYgGb RVJpGx+9sDe6XBHUPHcQx6msGaBriIiYMhLCMYI8QOOm/r9tlPx6nc/chZNb9kvtckTTDMs1 0OUk96BOQGDoIF5WlrGqO7K8Gra1Tw9aDZbOHRaFVdtD8zL+dlr1nryosBf/LlZZzEfMRX52 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ue77q4PMXY9dmcaABDlt0LR1ILH
- Ironport-sdr: /S3n8RiVb1RLYUV4Ld5A+Og+9p3VApUCnCx1lKB7ssGMHR7K3CKMfyJM8K7wcmzO5QXUNLSe0H QWalU54Mig6/Pwo20eAuBoTXbb3HcREoq+wAQv06XkWMtRfEBiGJZ92+8GG1vhPbXHX0HPqzky PKWr3XIisiGc0sYE/SrQoPoPMCfESqsxfh9SdXsFKYVB0RER9uYtJIADmVMxU6FGAVl26oYYPy b6odSz+IMwtzi4Ivxno5g8moDJjIjppZKRPT3XPBF5lbir7HzYTkMVIS+h26F0fIrbQGCB60IG DRzYnmT6s7/+hqP4+YkJtm37
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Wed, Dec 22, 2021 at 02:19:03AM +0800, G.R. wrote:
> > > I omitted all operational details with the assumption that you are
> > > familiar
> > > with TrueNAS and iSCSI setup.
> >
> > Not really. Ideally I would like a way to reproduce that can be done
> > using iperf, nc or similar simple command line tool, without requiring
> > to setup iSCSI.
> I think it would be tricky then. The problem hide itself well enough
> that I wasn't
> aware soon after upgrading since everything else works flawlessly --
> nfs, ssh, web etc.
>
> > Can you also paste the output of `ifconfig xn0`?
> Here it is:
> xn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
> options=503<RXCSUM,TXCSUM,TSO4,LRO>
> ether 00:18:3c:51:6e:4c
> inet 192.168.1.9 netmask 0xffffff00 broadcast 192.168.1.255
> media: Ethernet manual
> status: active
> nd6 options=1<PERFORMNUD>
>
> >
> > If I provided a patch for the FreeBSD kernel, would you be able to
> > apply and test it?
> Probably. I did this before when your XEN support for freeBSD was not
> available out-of-box.
> Just need to recreate all the required environments to apply the patch.
Could you build a debug kernel with the following patch applied and
give me the trace when it explodes?
Thanks, Roger.
---
diff --git a/sys/dev/xen/netfront/netfront.c b/sys/dev/xen/netfront/netfront.c
index fd2d97a7c70c..87bc3ecfc4dd 100644
--- a/sys/dev/xen/netfront/netfront.c
+++ b/sys/dev/xen/netfront/netfront.c
@@ -1519,8 +1519,12 @@ xn_count_frags(struct mbuf *m)
{
int nfrags;
- for (nfrags = 0; m != NULL; m = m->m_next)
+ for (nfrags = 0; m != NULL; m = m->m_next) {
+ KASSERT(
+ (mtod(m, vm_offset_t) & PAGE_MASK) + m->m_len <= PAGE_SIZE,
+ ("mbuf fragment crosses a page boundary"));
nfrags++;
+ }
return (nfrags);
}
|