From patchwork Fri Oct 30 02:25:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Safonov X-Patchwork-Id: 11868251 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3D5FC4363A for ; Fri, 30 Oct 2020 02:26:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7490220756 for ; Fri, 30 Oct 2020 02:26:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=arista.com header.i=@arista.com header.b="nwBNL/0/" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725996AbgJ3C0E (ORCPT ); Thu, 29 Oct 2020 22:26:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725780AbgJ3C0E (ORCPT ); Thu, 29 Oct 2020 22:26:04 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF2E6C0613CF for ; Thu, 29 Oct 2020 19:26:03 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id s9so4813404wro.8 for ; Thu, 29 Oct 2020 19:26:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arista.com; s=googlenew; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yFzxhyb3nLK2fRbNQ6gME5zHkWsuyomDuw38FJHECsg=; b=nwBNL/0/nLX9P0oMVDk9hbq2+Nn+JCKItGnIS9DQCFbKUSA3KAezCLY8fdU6YyMWtm EZrdNORYYiX62XDaVikhegNScld0lQmXqsONRGV63nnnBBd5aXK3mjxjTCfUgQ6jDK30 z3QE3rYVn8gnJX8RCl8TLtpNUkG3IAnTWATxmck/kIQd7LK24Jr+4yw3YcyaDlbcUhlB lPgMDhiZ9UuFFaNZqtkL0ZehNYFpT6snJtwVvk9GJNa2bRYP9l2nvkGj1tSe2iatOxBm vVq7LzdXsG1AnfErg1/CyTAavjTM8zUkwPxW48eWawUvCBxbmZacHtNSRJ1GSQAN+9CQ Eigw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yFzxhyb3nLK2fRbNQ6gME5zHkWsuyomDuw38FJHECsg=; b=FVgw9Z/f4RRfuAxY/N42a3jK9IiNzZQlUhhofUdYCsHcmaFhcn3BsvUEIUDoPUOqKG 5UWIR8EGfMp4nKPa6BANRuT3LE6ouIl6/wpW7MNT421aPKDTVLqhQMiK4s6htCW2QKv7 T4tPxVcT/bphbqgSLKueQw6HSO4qlvEYXPDUHjWwYcYPq0BXQ9eHx5dIhn9U49TgOS54 pPflUuwkpLLK8avlOpL/urNE+mVFF80KZL8RQHSE9Y7wquCv0f6ETkaCKjtzxr2r+rwn JS57+03Q0fgi4jajYdvAdfr7KDgrOfud2nODJoYWUYHj6WXjyVDP1dwVWVHfqtXVKSFt NuYQ== X-Gm-Message-State: AOAM530vj05IMWKBPT33ljaPFs2376hjN7FOs1s/U4PLwZ5mmFwFvS3G 3Y5YbXqiSc2cv4/4rwXL4uY2ew== X-Google-Smtp-Source: ABdhPJwO0OzT66WL2IB5tQji/aDCSeBdwm6by4A9533PkDSTCekpwS4oaZw7HtdnrMlQgxUe9CIbuA== X-Received: by 2002:adf:cd81:: with SMTP id q1mr91760wrj.410.1604024762575; Thu, 29 Oct 2020 19:26:02 -0700 (PDT) Received: from localhost.localdomain ([2a02:8084:e84:2480:228:f8ff:fe6f:83a8]) by smtp.gmail.com with ESMTPSA id i14sm2757170wml.24.2020.10.29.19.26.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 19:26:02 -0700 (PDT) From: Dmitry Safonov To: linux-kernel@vger.kernel.org Cc: Dmitry Safonov <0x7f454c46@gmail.com>, Dmitry Safonov , Steffen Klassert , "David S. Miller" , Jakub Kicinski , Herbert Xu , Hillf Danton , netdev@vger.kernel.org, syzbot+a7e701c8385bd8543074@syzkaller.appspotmail.com, syzbot+c43831072e7df506a646@syzkaller.appspotmail.com Subject: [PATCH 0/3] xfrm/compat: syzbot-found fixes Date: Fri, 30 Oct 2020 02:25:57 +0000 Message-Id: <20201030022600.724932-1-dima@arista.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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 net/xfrm/xfrm_compat.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) base-commit: 07e0887302450a62f51dba72df6afb5fabb23d1c