Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1994196imn; Mon, 1 Aug 2022 07:28:01 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vZbIB2BYuxHqR6jS9d6UYDcyHwJMIEIkapUh9t99wZAbEzvnf+14XkrhuGufKlFJtZ+xXN X-Received: by 2002:a17:907:b11:b0:72b:54a5:7d2f with SMTP id h17-20020a1709070b1100b0072b54a57d2fmr12939743ejl.173.1659364081215; Mon, 01 Aug 2022 07:28:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659364081; cv=none; d=google.com; s=arc-20160816; b=KEMxqOr2Qyq13QV2VTekQRWpmB/Tba/gH/ufIxIhQZVXw5V3ilZu7rgm3yNubhm32a ZoOq8zt9NYfOl0xrolhy1DikgqT0FLyYuNV+g3Z2BqsUmn4drru5SXOo3wtqWZzFWK5F O3NGkPhUOEBMiS8jnwF8nqytdAkeFeUrqtVb/GauHR94Io3OHRFNokLd2gvOztM67YCE DdyKA6Ff1gVtQSYZrN+DJs5Y++NNJUTgOT2s/5r7cBMPapj8wqKBnQ7H+E7RocJPd7aY K9MjH+iKcfCRPgF7qa1dS50txZ5br081e0p9NZsIOf5z1wXQZce4ZSFDt7GbLymYtQYS Kyyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=KXRHooAKp8lJMCsyLPrXClHqY60FiEvjC4GCVlS1kYM=; b=BHAL2uHayrQQWn4cBzLPmwjj3OMgaTDy/xpkiqUyc3LibmG9FoDRoRkqEhAVvJ26ED /kxZneIq3n9i0bVgGr0HCXcr92aus4b3l2WQlNu1moSDnA/MCKwX6R+48E96GRMJu/Cb 20KPCtWUYpvedFtNRpgGwSKhkCLziWLuTnfq+BHAp1KUAbO0k7w8uRpnZxkxnV0crfCq ZJYo4VT2yCdxKshjLpkqTWOxhfbvSx94XJVDgLOx6rrNTa/slq9WQD/cmwdfc70S0ZjG AjU2kdTmVdiLvobzd8EDJt3fJyG/DsHCS1wI8+jlJatwLiEPvPC/zM1eApJqEwCqqR9u T0dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=LZgC777P; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc16-20020a1709078a1000b0072b51dd6c22si11214509ejc.1004.2022.08.01.07.27.24; Mon, 01 Aug 2022 07:28:01 -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=@gmail.com header.s=20210112 header.b=LZgC777P; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232305AbiHAOHS (ORCPT + 99 others); Mon, 1 Aug 2022 10:07:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229943AbiHAOHR (ORCPT ); Mon, 1 Aug 2022 10:07:17 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCA6D1759C for ; Mon, 1 Aug 2022 07:07:16 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id d16so2434987pll.11 for ; Mon, 01 Aug 2022 07:07:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=KXRHooAKp8lJMCsyLPrXClHqY60FiEvjC4GCVlS1kYM=; b=LZgC777P8F+nWqEHaVOTTn3qXZ5NYO4gN3RMYOlR567D+cMNr8Nqi9m+pE4Dvhckv6 viwg84jKHzufFyBbG0RVhWw5S+Z0KKSiAYEMmE9yMDVHcyrmA1vnLc/Q6i033hAPxGqu ALMxNBvAjiADAWDBh+llV4tUmJu0oWqcVaLFxekM6iUibqBcQ74WCcuDTL9DYMNLN8O5 CW5WHXA+Za4FlCwDcPcHjwzCyAgc7G6Y3axwV9xXYeUL5vrO9+NaV2vmj5RT66LEO/3I 0WXOrOZDWFzN0xOkDbldkguOtjzpQ1YPtiu0TZ69OjnGa9JgGdM4GF8mCuQDHvJxaDD5 8vhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=KXRHooAKp8lJMCsyLPrXClHqY60FiEvjC4GCVlS1kYM=; b=SvJhUCoXPdAqEPpu7EuqJpFInYHMdptHQMNxSNEMUkpQP8m+Q61SVOl6a9EZngHlja Rc4XOuoASGj+Bx0WE8JGLvOoU7Os0MYrSeA8v8ULLdfJWaQXxfPEWDVzXrqPOoHT+nqh Ti3bhCQfSMZ4vp1Mr++Rov2c0Aw4+dyhZIITj9kk9WW1sk9b08EWMbT7ob5a74+DFkF1 rlkAtj78LD15q1znfFin1SdCFiqjXhVV5Ub5jjePDA0cSOG8H+Sfp4gBahLJ7yIwQt0/ nHc3/Lt6lcfjrp1+Vk+ZD66xfSav9UYSVozT5KUrW6QR2hVlmhn4GOJuzimJMj606SvN UdYA== X-Gm-Message-State: ACgBeo1Np1l7LJahTbh38saqQWtH3p8ng1Uw3oyz/inJx+gUVROqWe+6 sAC6BLPCQCBNdGhHfNHpzcQDqX1jdWPRUw== X-Received: by 2002:a17:903:264b:b0:16d:b891:593 with SMTP id je11-20020a170903264b00b0016db8910593mr17355407plb.133.1659362836258; Mon, 01 Aug 2022 07:07:16 -0700 (PDT) Received: from [192.168.0.110] ([103.159.189.144]) by smtp.gmail.com with ESMTPSA id m3-20020a170902f64300b0016d66d49b85sm9594636plg.239.2022.08.01.07.07.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 01 Aug 2022 07:07:16 -0700 (PDT) Message-ID: Date: Mon, 1 Aug 2022 20:06:58 +0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [syzbot] KASAN: vmalloc-out-of-bounds Write in imageblit (2) Content-Language: en-US To: Dan Carpenter Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, syzbot+14b0e8f3fd1612e35350@syzkaller.appspotmail.com, khalid.masum@aol.com References: <000000000000bbdd0405d120c155@google.com> <20220730081246.4567-1-khalid.masum.92@gmail.com> <20220801104343.GA3438@kadam> From: Khalid Masum In-Reply-To: <20220801104343.GA3438@kadam> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 8/1/22 16:43, Dan Carpenter wrote: > > These are precendence bugs. The ! will be done before the >=. Write it > as: > > if (pos < vc->vc_origin || pos >= vc->vc_scr_end || > ret >= vc->vc_scr_end) { > > >> /* Should not happen */ >> x = y = 0; >> ret = vc->vc_origin; > > regards, > dan carpenter > Thanks for the catch. I shall send another syz-test patch with these fixed. thanks, -- Khalid Masum