From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f78.google.com (mail-io1-f78.google.com [209.85.166.78]) (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 9861AA935 for ; Fri, 31 Jan 2025 17:38:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.78 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738345106; cv=none; b=KmARkWEt6Lh+ZQXMoSIqsltPI2/9NoiFsFBPuXEfYM5m2kFWdwz1g0yKA8GNFMDAKMy3Z/o5CgDs221guSJeNmrh9BBCzXOj/+5dAHj0zU8/Gxao9c1/Z/BLdcRNfNDBKJsVDOVhQS9ccjvlvetZWOVCOmwLWr3AqWIUdzRAfOs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738345106; c=relaxed/simple; bh=NEH0MRkJ45+7UAL0BEcHu0hHjjirnpLTQ9K5aqFEZps=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=laCVYf7mOIVjDt7227eEfZNaBhA92+nb1p3YZk6h6wjQ48kS4yr+v/TcaLdboNa/VvEs+7MVGVMpgTLv9bDZz//SgNhKcBuk1U1UBs1+Ewapb8vdlRgQWRAw5/YD94IRgTC+zcr0WMJX65fGSGQ4uS9bc4eqkhAjDit3d6cJdCI= 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.166.78 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-io1-f78.google.com with SMTP id ca18e2360f4ac-8521d7980beso146315539f.0 for ; Fri, 31 Jan 2025 09:38:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738345103; x=1738949903; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=bQN8Hl8aILe6f0kGxWFgZSDOzoDHnNcZ9k8ywzy2mdI=; b=iSUriFJhuUNsI1y+Jc7Qh7qPDRTC1ojBHB0qraCeephSO9/EzIbsTO/JJ/M0e3RnJ2 tapKwhUsbGeGfUfyUs+XII4eahwHRNbUSz4Bh7K55BaeQNFFSnBYBYT8fuQn09/0cG5Q hPHpKKD0kTti5rRcLJ/M4gKZ02G36+mn+eQK4jaJDsDjow0NMQ24YSturGHUzIG7Fi+2 5S381ZIe/eDix5j6eA6KQGnCq0M0IvaKoP3OmLWgxzrpWg7qDEEVcWq7uOugnrLKcqi8 +tP/mvLXD6RMLURKOlioJwaTyDvhd1gGvIPdbqipvrFazWVBIaRsdS+jjZa/bmNSdGD3 3AQQ== X-Forwarded-Encrypted: i=1; AJvYcCUNH7cylkkL3woU8xIrAhzljKuCE1bS4J2KMLalEKFmJMED6m+B06Uhe4CoiRSMjwL6e2OD/NetYeQZNg==@vger.kernel.org X-Gm-Message-State: AOJu0YxO08RCqQz+DvQykWRYFTp4IgwypeAOt7OmPIr8hmlHDkG1ll9f bY7EVmZQiMGHReug+Oikakclxd9wImZ4Wo9bR/ie4OmAyqgpMUDwMBpKkQiagHqyufTS3Gi0IE3 XfWk5bSpGTjciXhEOhzxSJfdmKTipSVvbRxXnCKDNsnRblqDxVkn4DV0= X-Google-Smtp-Source: AGHT+IEhvAB+5AypiuaRHXww+07iCdlXgyqBAjMlVpHIFanzTHdtNW2wrrrT9beQ5Ni2o8rnUy9dey6j/27k1MXvVj8tdT4Icn8v Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:3b83:b0:3ce:80b8:7328 with SMTP id e9e14a558f8ab-3cffe3ffb5cmr114132665ab.3.1738345103719; Fri, 31 Jan 2025 09:38:23 -0800 (PST) Date: Fri, 31 Jan 2025 09:38:23 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <679d0a8f.050a0220.163cdc.000c.GAE@google.com> Subject: [syzbot] [fbdev?] UBSAN: array-index-out-of-bounds in fbcon_info_from_console From: syzbot To: deller@gmx.de, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, simona@ffwll.ch, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: 9c5968db9e62 Merge tag 'mm-stable-2025-01-26-14-59' of git.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15045118580000 kernel config: https://syzkaller.appspot.com/x/.config?x=e0b04511e541daf8 dashboard link: https://syzkaller.appspot.com/bug?extid=a7d4444e7b6e743572f7 compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 Unfortunately, I don't have any reproducer for this issue yet. Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/28361a445db1/disk-9c5968db.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/3341d04d577f/vmlinux-9c5968db.xz kernel image: https://storage.googleapis.com/syzbot-assets/e5b54cd0e552/bzImage-9c5968db.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+a7d4444e7b6e743572f7@syzkaller.appspotmail.com netlink: zone id is out of range netlink: zone id is out of range netlink: zone id is out of range netlink: zone id is out of range netlink: zone id is out of range ------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in drivers/video/fbdev/core/fbcon.c:122:28 index -1 is out of range for type 'fb_info *[32]' CPU: 1 UID: 0 PID: 8491 Comm: syz.4.565 Not tainted 6.13.0-syzkaller-08265-g9c5968db9e62 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120 ubsan_epilogue lib/ubsan.c:231 [inline] __ubsan_handle_out_of_bounds+0x110/0x150 lib/ubsan.c:429 fbcon_info_from_console+0x192/0x1a0 drivers/video/fbdev/core/fbcon.c:122 fbcon_new_modelist+0xbf/0x2d0 drivers/video/fbdev/core/fbcon.c:3048 fb_new_modelist+0x328/0x440 drivers/video/fbdev/core/fbmem.c:673 store_modes+0x1c9/0x3e0 drivers/video/fbdev/core/fbsysfs.c:113 dev_attr_store+0x55/0x80 drivers/base/core.c:2439 sysfs_kf_write+0x117/0x170 fs/sysfs/file.c:139 kernfs_fop_write_iter+0x33d/0x500 fs/kernfs/file.c:334 new_sync_write fs/read_write.c:586 [inline] vfs_write+0x5ae/0x1150 fs/read_write.c:679 ksys_write+0x12b/0x250 fs/read_write.c:731 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe6d0f8cd29 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe6d1daa038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fe6d11a5fa0 RCX: 00007fe6d0f8cd29 RDX: 000000000000a3d9 RSI: 0000000020000400 RDI: 0000000000000009 RBP: 00007fe6d100e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe6d11a5fa0 R15: 00007ffe594083d8 ---[ end trace ]--- --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. If the report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title If you want to overwrite report's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the report is a duplicate of another one, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup