From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oo1-f69.google.com (mail-oo1-f69.google.com [209.85.161.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6484B1891A9 for ; Sun, 21 Dec 2025 01:24:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.69 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766280279; cv=none; b=Dcu8bK56YsUFhi6jHZACjMybylNAkbzjYAcWTqJdsS+N92LVIuP//t8h+2qnJK0C+9sGBLJ+drvHTSsLykdaFxook0fSVhT3b1390HkaCiMhmLprPANd4MfCzEbTRPzTSxeOGkWvTOMbck5Q9MC+nH1zfFdlt1CXtNgBs2qnLJ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766280279; c=relaxed/simple; bh=yjmURZ02NkInLWmBt4N4e16gCowomv9XNsi8+HNJswg=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To:Cc: Content-Type; b=NEKmkHnR+81Pj+DnqsXOREWgcAAIkSOIko0At82d5nw4gH7KYWY6ptOkmFGQZoLuxzQvbjwf8uPwo8BoU5Rg4d/UxRB/3ElqbkmWvoFVyq8+Pm+MGE/iJ9byKDZje8Ojk5Vb6ieS9fIV40xdcaGV0y0jRZb1eXL7eI1OzFkZOrk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.161.69 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-oo1-f69.google.com with SMTP id 006d021491bc7-656b7cf5c66so4380843eaf.2 for ; Sat, 20 Dec 2025 17:24:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766280276; x=1766885076; h=cc: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=DlaivU6khbq+H4gGSGhiP4ZojYz6+EckF6yCmLt2N4M=; b=HwmdUzHeGD0+qsU+qqyGk1GQomtkJWN3ZmRoua4a0UJ8ZjammP6+sfQm0tI1DUOTKU N74uI3BLHPXmjN2QrtJ1+7h6D92nxuc7GJCV+Qrw73QCPwgOafRWrw/pvElmWk3hvleG Rt6esdEu8TYVdYMS/LAAa3NXNlMbXz1MCRRVANSvcv8dWx1eur+D8MMexc47KE9lwXwY nUVAa2LCGwmqSKI0H+h2FZNS5rkLqL3rPLQydpvMp3tUPdrH8dtjfhM8nxM/O9oR7HPi nRAoMWkdrzCnG6iOA8x/B+o6fTxY5ZonEDzBt1R30rQLkh1KIZ1JIgNYw3dkmCjxRH9+ HQ0g== X-Forwarded-Encrypted: i=1; AJvYcCWyq9FxJRxtTiJWmA15zSLRBA+9O1HUlfjeKusG+JlBf/vOUcI899jb89dFXSvuwzZjoga9RiUKYEe7ULk=@vger.kernel.org X-Gm-Message-State: AOJu0Yzl6MCobp2f32NKofA1bXLS/xu2p69IokHhsfX914rquSM1Id7C 6Cvz9RLF6/X/PCmeCN8F41E7dejAwDh5ZPxp9uUHL4E6HtNSCZ0c/Ca2LH9TPoROu4UmseZqSWv RxkEOP1p8PLT9RfBK/slQoatg71eXuCx6Jg23AbvsIMwuvWMKH8CE+5Up5Jk= X-Google-Smtp-Source: AGHT+IH+3U0qxpXqSt2znP5azbSRtxeGiVcScp7xuFDXGkI7KaBiwhRhA56N66pgM47IIb6IgFNwUuSwgjmLVQsyft8Gz5mZYCuO Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6820:2223:b0:659:9a49:8f2d with SMTP id 006d021491bc7-65d0eae1f9fmr3113949eaf.62.1766280276329; Sat, 20 Dec 2025 17:24:36 -0800 (PST) Date: Sat, 20 Dec 2025 17:24:36 -0800 In-Reply-To: <20251220192210.399423-1-szymonwilczek@gmx.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <69474c54.a70a0220.25eec0.006a.GAE@google.com> Subject: Re: [PATCH] dma-buf: fix WARNING in dma_buf_vmap From: syzbot To: szymonwilczek@gmx.com Cc: christian.koenig@amd.com, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, sumit.semwal@linaro.org, syzkaller-bugs@googlegroups.com, szymonwilczek@gmx.com Content-Type: text/plain; charset="UTF-8" > When a driver's vmap callback returns an error (e.g. -ENOMEM), dma_buf_vmap() > triggers a WARN_ON_ONCE(). This is incorrect as vmap operations can legitimately > fail due to resource exhaustion or other transient conditions, as documented. > > Fix this by removing the WARN_ON_ONCE(). The error code is already correctly > propagated to the caller. > > Reported-by: syzbot+cd944c467e4d4bc24cf6@syzkaller.appspotmail.com > Closes: https://syzkaller.appspot.com/bug\?extid\=4317d7108e14e5d56308 > Signed-off-by: Szymon Wilczek > --- > drivers/dma-buf/dma-buf.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/dma-buf/dma-buf.c b/drivers/dma-buf/dma-buf.c > index edaa9e4ee4ae..14b55f67ee1c 100644 > --- a/drivers/dma-buf/dma-buf.c > +++ b/drivers/dma-buf/dma-buf.c > @@ -1525,7 +1525,7 @@ int dma_buf_vmap(struct dma_buf *dmabuf, struct iosys_map *map) > BUG_ON(iosys_map_is_set(&dmabuf->vmap_ptr)); > > ret = dmabuf->ops->vmap(dmabuf, &ptr); > - if (WARN_ON_ONCE(ret)) > + if (ret) > return ret; > > dmabuf->vmap_ptr = ptr; > -- > 2.52.0 > > -- > You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group. > To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@googlegroups.com. > To view this discussion visit https://groups.google.com/d/msgid/syzkaller-bugs/20251220192210.399423-1-szymonwilczek%40gmx.com. I see the command but can't find the corresponding bug. The email is sent to syzbot+HASH@syzkaller.appspotmail.com address but the HASH does not correspond to any known bug. Please double check the address.