Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3135268pxx; Mon, 2 Nov 2020 00:23:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJw9sDhHi2G5Hm+Ej+4q6lJQVv6Np8tkA44nYXlL/kW4Uxj0pymDVf3Nk/2AHuHsm3IOlXZO X-Received: by 2002:a05:6402:1583:: with SMTP id c3mr1186829edv.273.1604305413748; Mon, 02 Nov 2020 00:23:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604305413; cv=none; d=google.com; s=arc-20160816; b=BwrGB21xCdnT7z+WDysW6yzWB6wdtgM2m2EL/8e/J48kWYmQ1/Re6eC8rFIKQrhrSU Jsqu04UxrohRfWjCPrs/Fk4oanrCuTXmxkA99i/VEJ2Rz5IqMyZjOjHFzvD6P3AK9xup thd+EJG5m+4ci6yZg4udkZaqACj8cIGposPU0/tiPfokIX4cI97ZbT4jlri4Lm/SUAoz M53/h7nGB66E+uPiUblK+Oafvl8YHsN88Og8J5f50kMm76Dcbqd5ltL2KtUY4Vg+7i6Y /T0xrbC46e4fX5UynFD8VKcl4votobpZxNh+dSS20Fm9AHNgGDOcgyy/cPlpimB4nUY0 DTvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=7D9FYURGIe3cgRNRSiXhgt2bpi6LS4HBBqg0HwPc4jQ=; b=W/4rcNDA0TSnUXntTe+9Du4n/dAe9iOfoKIucnzLpHEUVlTh2yrlkiIaaoBrbVDiCu Gp+2itH5EKJSH4LMiCoY65uJ95c2XI5aUZTtxhZK2FOBAQFwhepMYDOqp8qX+3NZqYnl X07HmiBO9vyOlFjBl5PKbNq7KgmkZanAStmRu1f0iJCmViB9VgpR19ycmK6eLQhmnc+x 1TAI4o7gDxvkRUw8elbD1KojIF8nP5V0O2jMbxRZgKRQEs5QDzboFaBhVz4xpCmVE2Jb SU75aqdoAdF6fv78kk9KGLXdofhfnu+odpy2IDiMunMq6H/cbT292tHlqZoDK56SPWlq AEYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qq1si1846601ejb.240.2020.11.02.00.23.11; Mon, 02 Nov 2020 00:23:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728197AbgKBIVa (ORCPT + 99 others); Mon, 2 Nov 2020 03:21:30 -0500 Received: from a.mx.secunet.com ([62.96.220.36]:58298 "EHLO a.mx.secunet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727818AbgKBIVa (ORCPT ); Mon, 2 Nov 2020 03:21:30 -0500 Received: from localhost (localhost [127.0.0.1]) by a.mx.secunet.com (Postfix) with ESMTP id 4646F204FD; Mon, 2 Nov 2020 09:21:28 +0100 (CET) X-Virus-Scanned: by secunet Received: from a.mx.secunet.com ([127.0.0.1]) by localhost (a.mx.secunet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xf-tTB2zwMVo; Mon, 2 Nov 2020 09:21:24 +0100 (CET) Received: from cas-essen-02.secunet.de (unknown [10.53.40.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by a.mx.secunet.com (Postfix) with ESMTPS id B6ADA2026E; Mon, 2 Nov 2020 09:21:24 +0100 (CET) Received: from mbx-essen-01.secunet.de (10.53.40.197) by cas-essen-02.secunet.de (10.53.40.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Mon, 2 Nov 2020 09:21:24 +0100 Received: from gauss2.secunet.de (10.182.7.193) by mbx-essen-01.secunet.de (10.53.40.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2044.4; Mon, 2 Nov 2020 09:21:24 +0100 Received: by gauss2.secunet.de (Postfix, from userid 1000) id A365531844C7; Mon, 2 Nov 2020 09:21:23 +0100 (CET) Date: Mon, 2 Nov 2020 09:21:23 +0100 From: Steffen Klassert To: Dmitry Safonov CC: , Dmitry Safonov <0x7f454c46@gmail.com>, "David S. Miller" , Jakub Kicinski , Herbert Xu , Hillf Danton , , , Subject: Re: [PATCH 0/3] xfrm/compat: syzbot-found fixes Message-ID: <20201102082123.GC8805@gauss3.secunet.de> References: <20201030022600.724932-1-dima@arista.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20201030022600.724932-1-dima@arista.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-ClientProxiedBy: cas-essen-01.secunet.de (10.53.40.201) To mbx-essen-01.secunet.de (10.53.40.197) X-EXCLAIMER-MD-CONFIG: 2c86f778-e09b-4440-8b15-867914633a10 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 30, 2020 at 02:25:57AM +0000, Dmitry Safonov wrote: > WARN_ON() for XFRMA_UNSPEC translation which likely no-one except > syzkaller uses; properly zerofy tail-padding for 64-bit attribute; > don't use __GFP_ZERO as the memory is initialized during translation. > > Cc: Steffen Klassert > Cc: "David S. Miller" > Cc: Jakub Kicinski > Cc: Herbert Xu > Cc: Hillf Danton > Cc: netdev@vger.kernel.org > > Thanks, > Dmitry > > Dmitry Safonov (3): > xfrm/compat: Translate by copying XFRMA_UNSPEC attribute > xfrm/compat: memset(0) 64-bit padding at right place > xfrm/compat: Don't allocate memory with __GFP_ZERO Can you please add 'Fixes' tags to all the patches. Thanks!