Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp642938rwi; Wed, 26 Oct 2022 05:36:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5B5CK8qq+jazOvcDqwTLw0bXcVTwcGJVzK089m+mjBVIvdq896e8RFyUWbpiOxgPMKBsbR X-Received: by 2002:a17:902:d3cc:b0:186:9720:b19b with SMTP id w12-20020a170902d3cc00b001869720b19bmr19759051plb.3.1666787803818; Wed, 26 Oct 2022 05:36:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666787803; cv=pass; d=google.com; s=arc-20160816; b=CW+XEXB4nK1JsKtK+3fXj/Rs6QzPt/UGihsKixM6g9PIew9E17PKNBeloKROHBIWmG z5i5S3nSfD/X+sAGZreGZyhNuATRaZhy6JJTxFA3HnT5hpKQ9jKCaphqoOCR05Qzn0TY 1tVuyZlDC+9xSudL4IHaPH36mAfce/034EpF/fmBv1My92pQgHQAKTAUiTNUrGZNYDe6 NV5HcxJwZr3ETsQFKQkBjbeZvNJ2FAtyCvLZj3W3M1oju1cWzCRiUEZSTBzzzknFXgwr 1fb5dP+BmZSxqNl9LoqhPZh6ZAOQ+sQEKTlLX8sWzLKoEleN8bxdfVW9NXB7vBNLjrFR nnPQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=OA8g5BQrR8jqkyiv2RIlCGEKGnQYB4aZQ7oHPdbQtwA=; b=cyWZWzffXF1XFa4YAABGBltQcKJn2n58FmQ54AfNDQyRg9e9yjCDau+AjbnbCplxF5 zsjxvHnQhwKhZpGTLydXSuuGAHGUrCBLYgI7xstY2Vagdd50eN/H4NZsbLWbeqdBhadi v1a8c1WIckEdheQduQOXsV5vry9MMpXjuILKIjKZKCGQSdwn6J0l2uSWno9h+FjJQI5y n5WPTFX/vELkvaIhWttMtUrDM3BONeS6O8T4h6gisEdhSGdqxhXdcTvKEQPz3pN1Pi5D /EgzVlYB0KFXEA+5bQnj4Fnm234kww/2M+CbEaOdWt3G5SFHYaB2dW9MbatkesHvQzFw gcLA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=GXVJzJ+a; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id br11-20020a17090b0f0b00b001fe4eebefe5si2194515pjb.135.2022.10.26.05.36.29; Wed, 26 Oct 2022 05:36:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=GXVJzJ+a; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233661AbiJZMOf (ORCPT + 99 others); Wed, 26 Oct 2022 08:14:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233472AbiJZMOc (ORCPT ); Wed, 26 Oct 2022 08:14:32 -0400 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70050.outbound.protection.outlook.com [40.107.7.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41F685F68; Wed, 26 Oct 2022 05:14:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=md9fUixSRxbJ2gOR9p/GYeHbwr0iyINUuW+B39BJMfLiYglAphFkmqG5JFXA5RQZRw3o02/LlbZqvhWN5jVquyHqPK3n7NyQwU5kVFcHSX99+mA9ti8vjSg8LlD27NtmlUg7ICTznIP8mqmMSk1gUGzlv75Kz+G4hMT9MWlHLOmcjSxhYTSTmta1ia7kcnyleUXKtcKWc9eyiLujgMTxk8SpL2tR2oZ7HMTTt9kvUQS313VkRr0hsHb76N7W5IBLL3lsLXtM4+7ppkWUgGT6XXyYSl4114R1XkxwYA4GhbN78Hr7dAVNVu42lrOtWXPgMPmOcBrg9bbQdXcE2H0+0A== 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=OA8g5BQrR8jqkyiv2RIlCGEKGnQYB4aZQ7oHPdbQtwA=; b=CFBwE+pUkClUJuxI6JE3qHgHNkcq7jcU8t7Pd5pjGmqZgPWBPKqbVYHwwnLjXFzmyxLshfnrnKlMsDp/lsDGTvbP9lKdyhjHJYUC0p5SQSAC0+zXkcKqKgZ3ycgTwmDt9of8VsrFCO+D8j4OGsQldKOTVPJ/bFlB1xzhzvGLd0FudyHazwAg+JBgomQh7pLMg8SPkYGupVDjZDoCfs86TaNkkvrsCPMzsqGJBWbjZVL1MM9mNKnRNtq0GRIucFRY9h07mj57NIRdymrGcFuRNhEt7l+vUXNLqJsZX8yvfM+D40+JNhq6Msq5EoyCZmQX4PKriqOUfNE0KliQKSDd1g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OA8g5BQrR8jqkyiv2RIlCGEKGnQYB4aZQ7oHPdbQtwA=; b=GXVJzJ+amA9bkincYl7ECtHUXsveggwiq1Ko9g0x5AWhmpA9pvfHzAvozc9VKP0FQZU3buvlP6CZ6DyvnO/y14zLITobTLXcdR6ar8cPeMgcn3WMSEJdRsf3WRQQWjv9Acpa/Ef4OxE5FXLvb6bPFy7v5YUF5DffXwea9B3bme8= Received: from VI1PR04MB5136.eurprd04.prod.outlook.com (2603:10a6:803:55::19) by AM7PR04MB7109.eurprd04.prod.outlook.com (2603:10a6:20b:117::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.21; Wed, 26 Oct 2022 12:14:25 +0000 Received: from VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::6710:c5fd:bc88:2035]) by VI1PR04MB5136.eurprd04.prod.outlook.com ([fe80::6710:c5fd:bc88:2035%6]) with mapi id 15.20.5746.023; Wed, 26 Oct 2022 12:14:25 +0000 From: Vladimir Oltean To: "netdev@vger.kernel.org" CC: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Claudiu Manoil , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH net] net: enetc: zeroize buffer descriptors in enetc_dma_alloc_bdr() Thread-Topic: [PATCH net] net: enetc: zeroize buffer descriptors in enetc_dma_alloc_bdr() Thread-Index: AQHY58z/UOKKnjnr/UCCCxbobVhRlK4fxFEAgADVDQA= Date: Wed, 26 Oct 2022 12:14:25 +0000 Message-ID: <20221026121424.2r3ul2bzve5sbxns@skbuf> References: <20221024172049.4187400-1-vladimir.oltean@nxp.com> <20221025233152.idxmtikicu3kmedo@skbuf> In-Reply-To: <20221025233152.idxmtikicu3kmedo@skbuf> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: VI1PR04MB5136:EE_|AM7PR04MB7109:EE_ x-ms-office365-filtering-correlation-id: 01b71782-364e-45fd-7807-08dab74b9fd3 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 2Q3yf4W4CzDRXaMfoWDEbmOn/rPbw6gycfGuIZJEvOJY+efiozDQPMjUngsQlR0gbxew04t9MPAHU8+gvrIpOFukCeTiXSl9cyFP24/hwiMD3Xo0tE5fz20zMnHKSpo57t0OcSkVwXejnXnde55TpAhMXJlC9AY2lZ+nTvh/+xGBNF7l/8fi+Kl8OtG6XnoSDN5SLRTzPCt8rNpaRT73+wWXlMRYn0uGvqBgZ8rO5Yh7GUR2jzBBaIxjqTqtYXiaDwvdtk6ydrlb1OY5lEjlizWfRqajb79mAIZjgjlgNbHJctbgwx9c43rLWW/dpAT0ZXd6E5CvTMugovksOxs4TgCoQoxMJTUdm0/JM8HJjWO1FpiSAXEDyso5AeqfdessUtgcjkBVWT5XaRLA7q0UW0C0Wrpas8BiQBiylX/ncYfZLxQvgGGF23fRw1WKnTlY/fZfOk4Q17ZQdOfpG/zdA5zWrUHSVGbsfNG7oGuK0Bg3ZFKfFI1WJBFiIgc/gJgFtwpbnhyuf+8Y20K2mjX3itf1gLjCLbXUCAdJJRjnNRJWUecjCieSvWQ/3fVFLZR48g57s/tv49seoxlsqhWecjK8pnxunkxcULDM/xsAKwLWEy1w+fqosRMRtY60vFmRHhnrzXyiYJVy5BTpxmrLguoI2ArY78ClemW7sB7OzKdfp4J5cx2b+PO2+1oZEJBbCpD/sTyNwAC8nC8qP7i1AKB5ykCvVLSOvQRyiA1EYiJeUMMwLfJgRILrTNQeyX589pZF7QbD6Y656Ruio1K+EJ6l0URJUcO/7JYteez66xs= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5136.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(7916004)(4636009)(346002)(366004)(396003)(376002)(136003)(39860400002)(451199015)(1076003)(6506007)(186003)(6512007)(26005)(4744005)(9686003)(44832011)(8936002)(5660300002)(33716001)(478600001)(54906003)(6916009)(71200400001)(66556008)(66446008)(966005)(4326008)(91956017)(41300700001)(8676002)(316002)(64756008)(66946007)(6486002)(76116006)(66476007)(86362001)(2906002)(122000001)(38100700002)(38070700005);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?1CkwFdFIWHff1+nRBlIdDDqoCnu8dyGDgC6I0WMf1M7k+WM86biEJVzArkIQ?= =?us-ascii?Q?u+7Sa8ldDxvYS/Wuzw7f4GjWxMjQM1QlkSMfFxdLxrU9LudMbbDt/jDS6FeL?= =?us-ascii?Q?leNVHScSlEraRYmElTufw4jYjy/L64hSJ5m7p6jVGdQmm5FYx5f0axdInyxv?= =?us-ascii?Q?rqqHj/lCMo6mXn8Mz2PRcempypCWcg79kkZ/xGvIabLIg39r+1jMnhujWxhj?= =?us-ascii?Q?ntroe/7bI4rVHqYs+wH2vez9ucYF0SybUWamRU4ZHjop4nkaxROSSp1vimFO?= =?us-ascii?Q?d3WWYsUwf5bwzVHOnRxp60uzDb5UV7EE5qD/5TxhqM3LFvVlFCntSJnBQW+d?= =?us-ascii?Q?5vl0Oh681df+eUkyTeoPKP35+t7q0e456W8LocsYK3zXnRBcYPhgqoL0vgC7?= =?us-ascii?Q?vncWxOd5vBPXaXOrOGtFG5QRHHjdATudK3JFZNdKmj/ANy/CTCd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5pInbdpYL0xtEr8Xj4vcptydILqiCdpI?= =?us-ascii?Q?/eHtwU094lXnim5IWNQ8LtOGUAnZwkb8bcU7X8njYQYFvmS3VUuG0YX/mP8v?= =?us-ascii?Q?XPScaHx+LW1uLFN+XYwtn7FYCPSzVQd9J9lKLB9OanKewg1wemyeqGSh74tJ?= =?us-ascii?Q?mS67ViVWY9vyb9oLHrWP4ubIC7MX0a5KZvWabRFVm2It7/ZPq+KTfpl3SncO?= =?us-ascii?Q?7HDxQ0z/GFL5aEn2aSaV/GAe6CW2nSmaDj+0nrAodiq5ohXDmxXzgNnJpnXg?= =?us-ascii?Q?Gg=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-ID: <02C93D536D904E498CCF09B37C647A7E@eurprd04.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5136.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 01b71782-364e-45fd-7807-08dab74b9fd3 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Oct 2022 12:14:25.7587 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: xaYsGRqDs0OKX5rOAwB6uYJensNGOBNMH5Qw7VhWMiQciux7Ztk1kSlUoXqdZWlCxggSnAetJP/fIG+ZNcu49A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR04MB7109 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 26, 2022 at 02:31:52AM +0300, Vladimir Oltean wrote: > On Mon, Oct 24, 2022 at 08:20:49PM +0300, Vladimir Oltean wrote: > > Under memory pressure, enetc_refill_rx_ring() may fail, and when called > > during the enetc_open() -> enetc_setup_rxbdr() procedure, this is not > > checked for. >=20 > Please don't apply this yet, I'm still investigating a crash which has > the symptoms described here, and I'm not sure why the patch didn't fix it= . Superseded by v2: https://patchwork.kernel.org/project/netdevbpf/patch/20221026121330.2042989= -1-vladimir.oltean@nxp.com/=