Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1525765rdb; Mon, 2 Oct 2023 12:15:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFTUtZSlnNhhmkfjeHG7Zkyo7JphJQHw8YQCvKV8qH3wgTMPLUW+0wFRhvk5nnCwf9BQoDA X-Received: by 2002:a05:6a00:3912:b0:690:2ecd:a593 with SMTP id fh18-20020a056a00391200b006902ecda593mr15505886pfb.26.1696274109464; Mon, 02 Oct 2023 12:15:09 -0700 (PDT) Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id ef7-20020a056a002c8700b00689f1186cfdsi27783970pfb.29.2023.10.02.12.15.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 12:15:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=e4+Ao3Yf; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 6B5AF80A99BA; Mon, 2 Oct 2023 06:54:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237564AbjJBNxv (ORCPT + 99 others); Mon, 2 Oct 2023 09:53:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237554AbjJBNxu (ORCPT ); Mon, 2 Oct 2023 09:53:50 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C36F7B0; Mon, 2 Oct 2023 06:53:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696254827; x=1727790827; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=NQmGP6/3JEqMk2jwaz2lMPVo/R/x0fQEOxSfErvG4xs=; b=e4+Ao3Yf5MPxK58T47wxJuPcklf4QMVu9cuEwnMY37bcZRU0RRonDG7O adEPSWDO+gMjaKA4f8itdNnKrj52IPTG8TyQWbCKZdsBjvoPeTFaO4ARK yE4/piNixTgEvCOZHb5km3bF27ldDEKJyHPxoV6rc2RqQXu5RCpFXEIoC n4LZlr/sFaRH1aNil0zLuJxIU5xa4L1jHaaF0h3XaB7T+6cwaWXIozqe2 kDBmTNh+1msB9+dv2NCzQjNVIS59ujyavGspi2mKz0glIsu4P8CiciayS ryX/HACmeLzlTRQXPzjxfKYvQCCS0Azq8/vBS7DOBFeq9x0S/9NTlgbSJ g==; X-IronPort-AV: E=McAfee;i="6600,9927,10851"; a="372995177" X-IronPort-AV: E=Sophos;i="6.03,194,1694761200"; d="scan'208";a="372995177" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Oct 2023 06:53:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10851"; a="924280571" X-IronPort-AV: E=Sophos;i="6.03,194,1694761200"; d="scan'208";a="924280571" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga005.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 02 Oct 2023 06:53:46 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Mon, 2 Oct 2023 06:53:45 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Mon, 2 Oct 2023 06:53:45 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32 via Frontend Transport; Mon, 2 Oct 2023 06:53:45 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.168) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.32; Mon, 2 Oct 2023 06:53:45 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Zmp5iwBBWx4HYGA1tk/uxKEsNgbaTFH3SEQR5ngBSMrm46J4Wh14zGOmd7Dnpk3xXmcExr26tz3NHs9QWYQQNfuNxTkyTDb5VleIUxhIiN+g/pB6TLaOE1uIvM3Svmrq33tNKGAHL8/63N5xecl5DG9uGY01YME9vlNUdPG98U01P7HLMMQcgKea6SIExBr0ep98TVpRZcPxSyWNldN6plqenwc2gnX2OjrhqhSNX13KIUfpTwagr7TyZZ0uPj6tTuKGx020PGjyiur8QaMaOsl9E5o5bDrLTUKHjv5HTLNupltT3TgiQwmnUWpnrrE4s8ezVwu+YqW+K0ygmQgflg== 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=e5yBm8h7QQOfF9IBFieKu8K8Ub7iZWVdDf04239Kutk=; b=UKuCLOaDttC4Cocz2pV65hibLjA3G+Bqv/tEtkr2Moxw/9Fa6LRNg3vpDkRtrHeBamWIBP+JPH/EehH6eKbh9cJAgSO6iR240cIJExRpUB0W01Gq5rZnOtZESK8YpqjakQ98SP64w8nNITRlfiNh1WY/VThZ5+DkRvlvRRtMIGFdYcAKK/eoJ/NjSz3k6H+f/3ssey3j8GxZKRoOiYQmzTg5sRrZZQEyaCrKjNJ9Mv7jy27JCp7i5dQI6MKdblh9D/E62/EOCRTq6eMqHBgBixDc/TwkkT4kmwaVg8BwxucS096qQDL0U5ky1G73kYd4GC75M5hDp4Pr2JWeoZ7XYQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DM6PR11MB3625.namprd11.prod.outlook.com (2603:10b6:5:13a::21) by IA1PR11MB6371.namprd11.prod.outlook.com (2603:10b6:208:3ad::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.30; Mon, 2 Oct 2023 13:53:43 +0000 Received: from DM6PR11MB3625.namprd11.prod.outlook.com ([fe80::bede:bd20:31e9:fcb4]) by DM6PR11MB3625.namprd11.prod.outlook.com ([fe80::bede:bd20:31e9:fcb4%7]) with mapi id 15.20.6768.029; Mon, 2 Oct 2023 13:53:42 +0000 Message-ID: <2165e4a3-a717-f715-f7c3-e520d45ec21c@intel.com> Date: Mon, 2 Oct 2023 15:52:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH net-next v1] net/xdp: fix zero-size allocation warning in xskq_create() To: Andrew Kanner CC: , , , , , , , , , , , , , References: <000000000000c84b4705fb31741e@google.com> <20230928204440.543-1-andrew.kanner@gmail.com> Content-Language: en-US From: Alexander Lobakin In-Reply-To: <20230928204440.543-1-andrew.kanner@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BE1P281CA0274.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:84::19) To DM6PR11MB3625.namprd11.prod.outlook.com (2603:10b6:5:13a::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR11MB3625:EE_|IA1PR11MB6371:EE_ X-MS-Office365-Filtering-Correlation-Id: fd4b8e19-3bef-4d45-8657-08dbc34efd3a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?utf-8?B?MW5YbGZOVHZxODFZcTF2andnR2EyKzBCQWRtKzZ0dnpTcFh6eFB4dFFxSnh6?= =?utf-8?B?RzdNUllSbWx3NDF2b2lWcDZ4N08zeTdHUnA3OHZZakhjRUdQK1JxZWFFOEpL?= =?utf-8?B?Z3g1K0M2SjlKZUJHdlNta0tpVkxaTUhIMkNUUmtURmEyZ3JBMjVqMkd0WEE1?= =?utf-8?B?WjVsTGVjUTZVZW5vbC9tWVhhRDlGVVpFem5zVEw4OTltbkJFQTJkdjN3c2N6?= =?utf-8?B?dmsrVFp1enZ2WWp4QUZRbE9KcGpYNFQzcDVoMk5pUmxqY3N4YVFFZEF1TTkx?= =?utf-8?B?NENlZGt1UFZ2amFha1dRUXFNYSt0U296M2FxUU1EVWxnREFLZkJOZ1hDZEZJ?= =?utf-8?B?OEQvSkNGOUdYN0RXMVBNZ0tMOVYyZ1VmQS9xRndLNi84dEkxNFp3bEJaK2lk?= =?utf-8?B?UGF4RzdvRDFOQkJIcy9xeU5peVo2MnU0M1ljUERvSzlObX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ront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR11MB3625.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(396003)(136003)(39860400002)(366004)(346002)(230922051799003)(451199024)(186009)(1800799009)(64100799003)(36756003)(4744005)(2906002)(7416002)(26005)(966005)(478600001)(8676002)(4326008)(8936002)(6512007)(6486002)(6506007)(2616005)(41300700001)(6916009)(316002)(31686004)(66476007)(66556008)(66946007)(5660300002)(38100700002)(31696002)(86362001)(82960400001)(99710200001)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?bVVUeXBIY3hrbS9tL3pKdVE1WFl2cCtsc0hNcFVFTzJmZ2ZYQzVLZXR5YThr?= =?utf-8?B?MmhQaHlsaHR0bGQrS21iSjQwQTcyRDEzSW8yTnM4L1UrWnEwaG4wS1A1eWhZ?= =?utf-8?B?WmpIOENNR0V6UldSL21lQ2ZwckxKL1ZERHY3bDJFcUNWbkNjL2d6RWhyVERi?= =?utf-8?B?SEVYbUxjRjRNem1EQ2I4SEhUd0paYU9HM2FhUGZ0Zm0relphbzB4enNxSnY5?= =?utf-8?B?YU0xdXRyZFNZcDlGTW8xL1JPMFI0S08rSDRUWGZmb2JIbnRrc2FTVVJaWi9L?= =?utf-8?B?cHRnWUZuVWcrMDA5cUdRbnVBdFViVDh1UHdtZzRESFZQWnE5NmNqQzA3R2xW?= =?utf-8?B?dktzdHY5SlgreHBIN1pxK2swZXVoSFlxZFBDU0xmWkZOWk1qV0x5M1ZOZDJi?= =?utf-8?B?TzZwYXU5U3pkOXFnUkVIWERqZTlHck1aZjMrV2tuSWNsUDVQWVdrSy9JRzgz?= =?utf-8?B?aURzQkdMZkFHMjUyU3ZjWndqQVFhS09OL01YVTAvQVh5RDhOZ0dXU1h3dUp2?= =?utf-8?B?OUZ0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=?utf-8?B?SjdZcFBQV1FXdXpkSjEvWFZHaWxaWXhvU1Nkc2gvYTZBek9TeDJzNXhoWGVR?= =?utf-8?B?dEFVc2orbEF0WTlvZnQxd3RCM25BcnIyeUlqcndpTnZhOW0raUFDR05jMWhP?= =?utf-8?B?b1pJUXFSZENLRm0wYmZrcVEyTzNDKzZoYWhIV01zV3E5djBYZGwweXZWNk8y?= =?utf-8?B?SDlHa1gvSWVYdjFPWUQ3dGh0ZmUxU25weEk5b2lTUXVyT0hkS3ExVVU0bUc3?= =?utf-8?B?cWdiY3dFMVF4VXlyMUt4anROYjFZa1RmanVyT3ZjMnZCVC90cXZJOENFREY4?= =?utf-8?B?dHVsL1VVNTEyZGN4NHpaZzRwZkg3dDNRemxLdUxrUXBwS2NQSlVEdzdsTVV3?= =?utf-8?B?WGFoQmIyTEJxaTVuYjhxN1NaUk10NW90ajJsNGNFTloxU1hqNnAzbnoxeXV1?= =?utf-8?B?dmVhaFNmUU1uWC82cDB2Q2k1MjRacnJ4ZzRIbU5ocVYxSHBPZUFqTkZwRklW?= =?utf-8?B?YnlTZGFvM3lINlRpTTZVWEl2Z1dBbndIcmtpdHBqUXpuOTZ1clpTRUhxOWYv?= =?utf-8?B?SVdWK2pkdE5wSGh2aS9lM0IwdGpRZkRYbG1tVmpOcGdhb0tyS25XNml0MmVU?= =?utf-8?B?NFUzYTNRaFFFbHYyK2pGbDQ0RFlINlBXZTArUFhrVGNvU2NUT21CZjhhNkJI?= =?utf-8?B?OXFvdFRoaG5vVHhqZlJnUTdIaWNma0N6dTNFb1o3Nm9CZGVSNjhVRWtldE9x?= =?utf-8?B?UWc9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: fd4b8e19-3bef-4d45-8657-08dbc34efd3a X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB3625.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Oct 2023 13:53:42.9184 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: zJ58jjTf0UhmZqySfojvXY3DmNfPFRHtHH79770Y96c421OUwbmIaMxeNSDSw4POj1V2a4ApDCT39m9gP0MDEzHjupuA+kpz5DXmo6cqeBU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR11MB6371 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-3.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 02 Oct 2023 06:54:28 -0700 (PDT) From: Andrew Kanner Date: Thu, 28 Sep 2023 23:44:40 +0300 > Syzkaller reported the following issue: [...] > PS: the initial number of entries is 0x20000000 in syzkaller repro: > syscall(__NR_setsockopt, (intptr_t)r[0], 0x11b, 3, 0x20000040, 0x20); > > Link: https://syzkaller.appspot.com/text?tag=ReproC&x=10910f18280000 > > net/xdp/xsk_queue.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/net/xdp/xsk_queue.c b/net/xdp/xsk_queue.c > index f8905400ee07..1bc7fb1f14ae 100644 > --- a/net/xdp/xsk_queue.c > +++ b/net/xdp/xsk_queue.c > @@ -34,6 +34,9 @@ struct xsk_queue *xskq_create(u32 nentries, bool umem_queue) > q->ring_mask = nentries - 1; > > size = xskq_get_ring_size(q, umem_queue); > + if (size == SIZE_MAX) unlikely(). > + return NULL; > + > size = PAGE_ALIGN(size); > > q->ring = vmalloc_user(size); Thanks, Olek