From nobody Mon Sep 4 10:13:49 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RfPcQ42jJz4rnQL; Mon, 4 Sep 2023 10:13:58 +0000 (UTC) (envelope-from schakrabarti@microsoft.com) Received: from HK2P15301CU002.outbound.protection.outlook.com (mail-eastasiaazon11020019.outbound.protection.outlook.com [52.101.128.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RfPcP4RbXz3Gxg; Mon, 4 Sep 2023 10:13:57 +0000 (UTC) (envelope-from schakrabarti@microsoft.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=microsoft.com header.s=selector2 header.b=hwpSOYqt; spf=pass (mx1.freebsd.org: domain of schakrabarti@microsoft.com designates 52.101.128.19 as permitted sender) smtp.mailfrom=schakrabarti@microsoft.com; dmarc=pass (policy=reject) header.from=microsoft.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kL7sdteuycGMxRJqC6ydjGB4lJVvVY2M803L7Ik4Gt204j6NbUMcHMYRXPoQo3nCFKrsP+9xw8CksuihxYpe88F69bCtKDvnODX99vCSdY+G9nzeVXJ3RGDPZFq8zvOWBSPEg0o9HdLzAp61yZceZG8kOJ5H9hm/nTq1G82SLMjRIrpzSHfao2kglS7974cnk8vaAUDhGN2Rrrpx3c7JbiR27HJu9QO2/lh2CByALjgRNjiGU+0mgkuXQUQlmAeBrB3mIn40gKcpg9mE9u0+gjPg9mc24rDPO+gDEL9R8+IT4QkKLwPLkrxI9Aqj6mSyFAX1Z3GWKvW3ljAj3a+66Q== 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=VaEyMDittsLacfYxZ6lfnZxp/IDWIyYbplZys6kl8tw=; b=TTJ2CgzWryCrMTner4NSVSRcHmC3KrEZQtB4Fun2baEsqvdWy9g1xqAq4Uo8ax4Wx/Ix6Rzl0A9MFzY+sWc1+md272PBq004YGyotFATrtCZcsAnZuxKQVqwLJzO7Fhz0N4a90ywl3nxSD4X4dcntWBf2rbwd0aROA+8BGjonI5tzIdjUbFRbUUbasIIWEAofb4zWJ+v1xJND3gSdjzgoqZuNQhUox6CUu7GmQg2xejt7UQFYbE8TVyLqSDV8ohn2OBVC9Fl7HmsOuriPY+x9277h9o1/4qS6Ksw/RaZqCysJheQ0U2SgJt0vbaiB7HDncFdzGPOuyBCJupjz9DyRA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VaEyMDittsLacfYxZ6lfnZxp/IDWIyYbplZys6kl8tw=; b=hwpSOYqtNU2mi6tzVmtSQrZiTYSlXa22li73JB41AopQ/3gj7kcJU9eN7Zja0B/g483eLZEzdMc2T5DcpniIRdX3gQMbaRnGBaFidC7N33KAIQl9fp3+hKsH0e4btmPA9IQrSQKo7EYpjbK/qpm1S4iF3lLBJ78lxlzxTQHVZxM= Received: from PUZP153MB0788.APCP153.PROD.OUTLOOK.COM (2603:1096:301:fc::10) by SEYP153MB0975.APCP153.PROD.OUTLOOK.COM (2603:1096:101:13a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.5; Mon, 4 Sep 2023 10:13:49 +0000 Received: from PUZP153MB0788.APCP153.PROD.OUTLOOK.COM ([fe80::5fb0:29af:489c:c7ff]) by PUZP153MB0788.APCP153.PROD.OUTLOOK.COM ([fe80::5fb0:29af:489c:c7ff%5]) with mapi id 15.20.6768.016; Mon, 4 Sep 2023 10:13:49 +0000 From: Souradeep Chakrabarti To: "freebsd-hackers@FreeBSD.org" , "freebsd-arm@FreeBSD.org" CC: Wei Hu Subject: FreeBSD arm64 Azure panic during reboot in add_route Thread-Topic: FreeBSD arm64 Azure panic during reboot in add_route Thread-Index: AdnfF7lOhUxtnO2/QGOtxi7unOWoqA== Date: Mon, 4 Sep 2023 10:13:49 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=5fffec4e-36c2-495b-85f2-60bced5f31b4;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2023-09-04T10:07:28Z;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PUZP153MB0788:EE_|SEYP153MB0975:EE_ x-ms-office365-filtering-correlation-id: dd562deb-9041-4dfe-484d-08dbad2fa211 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 8gGbpIkuXzTAa4hUO6oekw6FLz5XNkxEhIrw6TLXgKCVl2gwpz9w3u/9ZCoRqfeHglVzuxqTtPDAsYAWX4zovf2J0bPuvZwxdTa4LVQdf3vqkUmDW7QNgF5bTlh1azpRGgE5DynhOJR+/cIIna5X7BvCktAJQqw+ooqKSEd2btSTaquxPsb3ZHTtR1lQM4Qlw2gS8ERcgTf09nMDo8cvi6k0O9M5BLPnOWG/rfGg2jhrD9rS5Rb+CrRDVbhvo8sqpZ23dHt8ENXLovb+iJzpyqPEv4VQ4lVQZd40NaWolc4nDo2ML8aEWtXYDAajjrpGZoWqXeI4ww69UV+CMojXUxqL1jL4LoJClgDHg2FDupuJ1KyrLcfrddTNgrI51klAGZ8M6y0LdtEdmBeikrfvvrIzvFXmgJuSUMvIIbLchfuIEHUwb9A40IeU6m5ernWvnkUg8HcQT02s9Mbaj2BAe+CRBpaOMM2cxCnSn53p3dt+4q4v6wlJU1+oMJixduoRUHVqVkdAf7cjCag6IRMXHJ8ewxHVJ0nBAtxIKnvvKZ6BMlUj1gs5Kym7YN0mKN2JqgYAOgV64in11CWaVyqkv1zXxvvpPAkvYI7BCB8CNiiOUvGWA23fKa6QFKkKRVSoBbWJWv0AP5NkzLKAvBJgFg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PUZP153MB0788.APCP153.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(366004)(376002)(346002)(396003)(136003)(186009)(1800799009)(451199024)(71200400001)(7696005)(6506007)(9686003)(966005)(10290500003)(83380400001)(478600001)(107886003)(26005)(2906002)(41300700001)(8990500004)(316002)(64756008)(66556008)(66446008)(66476007)(66946007)(110136005)(52536014)(76116006)(4326008)(8936002)(5660300002)(450100002)(8676002)(82960400001)(122000001)(33656002)(86362001)(38100700002)(55016003)(38070700005)(82950400001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?jrYR6JIBTdsWWsafWfHpMLo/v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IvX?= =?us-ascii?Q?mhf0fctH++SWTTOatp/+5FJbhdV0uToUnHpA2l5bBb7WG430TtYgVnWeIO97?= =?us-ascii?Q?AwYC/Mn+tAmvmYkjSmlcVdBCCGHz4ntIXXP1v8qen/hZ1wq8sl8w+yjQ/w5T?= =?us-ascii?Q?coSjF2Bc0QfUsUU8yF7lTO4kF5og3SHxQ3qxBKIQ7vc3S3D+5k1AN6oFkaoD?= =?us-ascii?Q?fe/62KvBWdWDt0RE1SoF/bM9njZ/1uoPih16j2BTTRJGpBapzcX2UYCIk2sT?= =?us-ascii?Q?jbUw3IT6xcqUmdtZlsGafSKrHz4jy1NJc8s4qanvGGeoHKFjlZ4Auat5HWiQ?= =?us-ascii?Q?35pnLxa0RaYxJH7DwzTFaBeLaC7sc/jnLrrpp3SOiJSlB0aR+FcMSzOpLO1J?= =?us-ascii?Q?BAWBPibWLZDy+inaN9ZOLUaCOnltYzjNDHkslPoornTGH3njWSVyFubwwHqL?= =?us-ascii?Q?mgClmnxam5keOJ+rYN7yj+2EQlfXgG5yEo0XFaIYURaqJS4tBq6N6DqZlos7?= =?us-ascii?Q?cef9UlWIcT9ulOXJxORDE+sS4X+8K/lPHoj7P+c3Zktyl6TPi0+8UY5XXSwA?= =?us-ascii?Q?FD+bcGenfCzBmdzflVrtvJoiqp9yGSz2z20au/MnoiAdpn3dqTwATYs4Qg7S?= =?us-ascii?Q?n+Bniyk+HHVLUTcQ13fIP+BOYCmruq5TCLSD?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PUZP153MB0788.APCP153.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: dd562deb-9041-4dfe-484d-08dbad2fa211 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Sep 2023 10:13:49.6934 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: FLa5jJxF1jdE5G3IeL0fJfUEyR2RItXoZDZXr9XfyDKLXCYdZZkh148SQxlSZhCWsr6FcubfCNQlZw9KmSDpCrGyW5q2FzRxkRPWm4POCjI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYP153MB0975 X-Spamd-Bar: -------- X-Spamd-Result: default: False [-9.00 / 15.00]; WHITELIST_SPF_DKIM(-3.00)[microsoft.com:d:+,microsoft.com:s:+]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; DWL_DNSWL_LOW(-1.00)[microsoft.com:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[microsoft.com,reject]; R_SPF_ALLOW(-0.20)[+ip4:52.100.0.0/14]; R_DKIM_ALLOW(-0.20)[microsoft.com:s=selector2]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org,freebsd-arm@FreeBSD.org]; ASN(0.00)[asn:8075, ipnet:52.96.0.0/12, country:US]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[microsoft.com:+]; FROM_HAS_DN(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[52.101.128.19:from]; RCPT_COUNT_THREE(0.00)[3]; RCVD_COUNT_TWO(0.00)[2]; TO_DN_SOME(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[] X-Rspamd-Queue-Id: 4RfPcP4RbXz3Gxg Hi I am working on bringing FreeBSD on Azure ARM64. When I am rebooting the Fr= eeBSD arm64 in Azure public preview, we are hitting following panic sometime for page fault: db_trace_self_wrapper() at db_trace_self_wrapper+0x30 vpanic() at vpanic+0x13c panic() at panic+0x44 data_abort() at data_abort+0x30c handle_el1h_sync() at handle_el1h_sync+0x14 --- exception, esr 0x8600000e (null)() at 0xffffa0000c93bb00 add_route() at add_route+0xc4 add_route_flags() at add_route_flags+0x1b0 rib_add_route() at rib_add_route+0x324 ifa_maintain_loopback_route() at ifa_maintain_loopback_route+0xf4 in6_update_ifa() at in6_update_ifa+0x994 in6_ifattach() at in6_ifattach+0x1bc in6_if_up() at in6_if_up+0x90 if_up() at if_up+0xd8 ifhwioctl() at ifhwioctl+0xb7c ifioctl() at ifioctl+0x860 kern_ioctl() at kern_ioctl+0x2dc sys_ioctl() at sys_ioctl+0x118 do_el0_sync() at do_el0_sync+0x520 handle_el0_sync() at handle_el0_sync+0x44 The panic is coming when add_route is called for loopback interface ipv6 at= tachment. Upon more investigating it looks like the panic happens in rib_notify() . Please let me know how to debug it further to find the RC. I have already opened a bug to track it : https://bugs.freebsd.org/bugzilla= /show_bug.cgi?id=3D272666 Regards, Souradeep