From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f69.google.com (mail-ot1-f69.google.com [209.85.210.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 2EF4B3AA1A9 for ; Sat, 15 Aug 2026 07:43:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.69 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786779838; cv=none; b=rIkvzLreSBr5dCOQDJSz3Zh2vCohjdROSgnz21SGSqaEpDIHssR8SDUBZa6Zz0ixmSQ9pqCEpid9fORhpFXCwXLwoYhh199O5FJwGW27m3H+Bd11fGyej9phhlAu4cluT/a1Fa5eYKAQXgxGARIbhjP/aSAqSzultT+J2HM4fmo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786779838; c=relaxed/simple; bh=VrVf1QFXCN5W5MnaGY+VrkeChb8izgs/Llx+KGWNTck=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=J2BRMuFfZQGK0wxaDiZhwri/n1z/0CtMi1g/82vawkdbia73CYR91K2NvptCTP+kHQ/L+cElXOQmubsQ+Ava/+eyn1HdVVGJPTFKoiPWojf/akegQk3ha8AHBVpKSvZwsNk2abuxO8SlyQH6nefTQWYAuHrOge+3HhLceAxYwhM= 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.210.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-ot1-f69.google.com with SMTP id 46e09a7af769-7f3cc4f6604so2144459a34.0 for ; Sat, 15 Aug 2026 00:43:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786779836; x=1787384636; h=content-type:to:from:subject:message-id:in-reply-to:date :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=SSZKfIIg0viDcSchdpWIFT2F29yMFY1ODg7S1O9TK98=; b=OwtYbNd/bIJ05z3PWR99i77S24iWanufSBFOWB4x7iJ6SDYJFC9bfBHEvccw4C/NaX 7VGWnn5B2bw8S+dazSv9uTonUWxvCDuEhRVDwAp3tzbRs0n2wMisNcfEr2oECDc8D1nD wenfWQyD59cqmI2JPurPlLX1T69WKl+ZDnCl32pqsimE9ZKwSOaOg8OP3XBQ6uQbX5kd 5K3X7/xK0CQCZaNiTD4S359JUKP1BOqtG8wRTjYAp9HUME0CM1K9PRolmrkAxNkYLpFE rqPFnxXSMG2D2yT2Zm0hOfBjtATVm7QDLsoRAoWUA66Tt8QYzPWP6LVgqpkpfncaO+7A vFdw== X-Gm-Message-State: AOJu0YxBoY5M0qypBoBuHvgkHrv7SzpBu/rXojOuRU7OcyamtS4zN8Jf JHRkKvwJPpLBcttx2oBQPmsFmK8KjzuYqXM0Ap4GWPQ08m/ey53d/vIzgTBJR8qDvtm4FOJtsd0 b3E+3YgSdpeKng78RCgXkQKBYQ42DV7o+YqjoW2vbjoMeADqm+QxG4xSFcL0= 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:1527:b0:6ac:b1ae:6ce3 with SMTP id 006d021491bc7-6b0d7312218mr9389019eaf.32.1786779836063; Sat, 15 Aug 2026 00:43:56 -0700 (PDT) Date: Sat, 15 Aug 2026 00:43:56 -0700 In-Reply-To: <6a78d12c.01d0871a.3a0d52.008f.GAE@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6a8018bc.10853dc7.22f513.0008.GAE@google.com> Subject: Forwarded: [PATCH] check keys size before checksum calculation From: syzbot To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com. *** Subject: [PATCH] check keys size before checksum calculation Author: subasris1210@gmail.com #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git ba5cc80fd32665ed609037ff30ede8d194f24aab Signed-off-by: Subasri S --- drivers/md/bcache/super.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c index 97d9adb0bf96..49b3a2231820 100644 --- a/drivers/md/bcache/super.c +++ b/drivers/md/bcache/super.c @@ -204,6 +204,11 @@ static const char *read_super(struct cache_sb *sb, struct block_device *bdev, if (memcmp(sb->magic, bcache_magic, 16)) goto err; + + err = "Too many journal buckets"; + if (sb->keys > SB_JOURNAL_BUCKETS) + goto err; + err = "Bad checksum"; if (s->csum != csum_set(s)) goto err; -- 2.43.0