Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6016937rdb; Thu, 14 Dec 2023 06:18:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IGfGcYOWyTs5OUHgsP2R2LAX4Qp5tq5MupYf4DjgjBf7hrsgtXBwvTLoTQBPDId7Nkdg4pk X-Received: by 2002:a17:90a:3908:b0:286:b272:d9a0 with SMTP id y8-20020a17090a390800b00286b272d9a0mr7282763pjb.45.1702563527933; Thu, 14 Dec 2023 06:18:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702563527; cv=none; d=google.com; s=arc-20160816; b=k6ernXmWjKYlRuhhXLAw76veOR2LpgpoM3mAzeyl5hPdlziBRwH2nqGq3VDmy8VYQR ASHZmk9S/w5RMBH4OaMgf2tYoBTEf06BJdKkmVPB1qPbbFNU0aJxxoMPUhUrNl3cuNlW Dkvq2nRyURe76OeU8GRnu337zllCjWq6eEH9zMdhbKzQzeYgCdcUw2i+djvgHjAsxREg c9oqKHlnI9M861sFP4k0Sf0Vb3E0lDrGX1bEtz75kZHK81viPnHHY9jMB0Iln7GPnxiB BW+2qAmqsFjsE6UjP/t7hPUzTKzMRV+y+Ri40lJ07NV45TwlsMA3stMTLYpvW6WyQF0j yRiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:in-reply-to:date :mime-version; bh=yYmHvjaMcnOxaQfPI0jt2Vd4L/LtrS8+UpyNZqvEuik=; fh=V9AeBafJgTW96HdC48wsxGAfd7Fe9P2uAL8tLCjpUN4=; b=ZZ2hLVX23RaGFvGahRc2KKlmLL77uhcxsvmumqryLSN2/8baQRQ8zn9AfqhajacTWX BTkArHxRKInWBOQtAQEhhmC8ebMwv6+cYsTqAgReZncG0vJdYDajPpOnulMLftg2EkTJ hKrtj5UfWDDhT6M2mhgeRPksb7VmTUVYgpYjc2U5knUzfNnmW/qDtnMsrYtWiPMmK/zm 0FQRoOM4ccORuJYbFEvj9xlSWkB3EjiHarJjoQO4W8Q6ndi/S2eq0C7CMxH/OiR6BYbG 0Zhd7ryYGOxc5WNaJ7Ikb4pYW/YlPgsLo9pXzQk3u3+R6xNT3OfoZm1XuvWl145sJ0Qq 0AGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id na11-20020a17090b4c0b00b0028aa258b51bsi6102395pjb.5.2023.12.14.06.18.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 06:18:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 6EBBF803E9E7; Thu, 14 Dec 2023 06:18:43 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230226AbjLNOS2 (ORCPT + 99 others); Thu, 14 Dec 2023 09:18:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230172AbjLNOS1 (ORCPT ); Thu, 14 Dec 2023 09:18:27 -0500 Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A1409C for ; Thu, 14 Dec 2023 06:18:34 -0800 (PST) Received: by mail-pf1-f198.google.com with SMTP id d2e1a72fcca58-6cef51efdb6so787108b3a.0 for ; Thu, 14 Dec 2023 06:18:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702563514; x=1703168314; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yYmHvjaMcnOxaQfPI0jt2Vd4L/LtrS8+UpyNZqvEuik=; b=mpHmVesq0roO8YdbWjNUu51LFY64zAekJ0fKxrr7HnxOkvVKe8/wWo5syQO9NgFP/1 7jEJFcnP08WppIHxrjv9ChAcMq8jPr22BXDYAJKK04H9EzACYciaHDF8Dt/KOwXRZFM3 hJHnK2p9ur6d87Yzet1EuLpEfpsJB5d0f3VTjLtn9ZqBp4T2FfJNN4hdJxj1hnBnZvsA uqvGuR8Si0o0Xh9mdJL6YsePWEvSP0hSjreVQu6Npf3HFUW+QCgURqXVr4/99jDqNtzg 2zivOQX3FsiE9AwDsb3Av4wdX8zWVWqPSMu2+dzIBvzty17Tnux6Ora+Y/GlIWpITECm 9e5g== X-Gm-Message-State: AOJu0Yz1oZr9DuGpitqsJDzd8XyBjj45Q1X/Uf6yD5R3qs6jCISirleM S0b4fX2AektH63OEkThkPQr61guiAQLG2pdxyfT4Ssx5D7sR5Ko= MIME-Version: 1.0 X-Received: by 2002:a05:6a00:c81:b0:6c6:9f26:3a00 with SMTP id a1-20020a056a000c8100b006c69f263a00mr1669008pfv.2.1702563513996; Thu, 14 Dec 2023 06:18:33 -0800 (PST) Date: Thu, 14 Dec 2023 06:18:33 -0800 In-Reply-To: <0000000000009b39bc060c73e209@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000759c2d060c78f55b@google.com> Subject: Re: [syzbot] [net?] KASAN: slab-out-of-bounds Read in dns_resolver_preparse From: syzbot To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.4 required=5.0 tests=FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Thu, 14 Dec 2023 06:18:43 -0800 (PST) For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org. *** Subject: [net?] KASAN: slab-out-of-bounds Read in dns_resolver_preparse Author: eadavis@qq.com please test slab-out-of-bounds Read in dns_resolver_preparse #syz test https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 48e8992e33ab diff --git a/net/dns_resolver/dns_key.c b/net/dns_resolver/dns_key.c index 3233f4f25fed..15f19521021c 100644 --- a/net/dns_resolver/dns_key.c +++ b/net/dns_resolver/dns_key.c @@ -104,7 +104,7 @@ dns_resolver_preparse(struct key_preparsed_payload *prep) if (data[0] == 0) { /* It may be a server list. */ - if (datalen <= sizeof(*bin)) + if (datalen <= sizeof(*v1)) return -EINVAL; bin = (const struct dns_payload_header *)data;