Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2992260pxb; Tue, 19 Jan 2021 10:48:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJxzquabwnbmmd/v0RnP2+r4S5ynUMZBZ0zASsjFOj3uF/4JvswMaRlImgUoqre/JbcqDNIY X-Received: by 2002:a17:906:90c3:: with SMTP id v3mr3878769ejw.461.1611082097169; Tue, 19 Jan 2021 10:48:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611082097; cv=none; d=google.com; s=arc-20160816; b=ZdiZIY4lvdw3Y40MqKltQbGkKz65HI/byC47eILLGfpR4F3GfNHqaT5kAm+X9nKdtN GslLGtUp8M/hnhnykP7lqSLz4cEI/yiUPEvAMK52Ybaj7whwtN3Xmq3zOcz6Y/Guq4iZ S0ng069uaxAvXlUslMLc7zbjpm61/Hm3ywvtrDk6y740WfpITRaj09ZNpV9AbnL46eSF NeHPNvHBNCCyKXPNnhBjQIKmCNgyD2wMfAUMBO/9PF3bdq4Tz98pZsekwmkwQCE5x1dq K/S8zAwI/OJ41UwFjmThWBANyoKTqMVCEOy2WoNE1Vu3V2JkneeCIvgBxcyy3x5f5Bku 2F0Q== 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:date:mime-version; bh=WdkBn9riwIbRJJ+uSYY9Jvm7Ton9pmCnypyx0bUimvQ=; b=EjR2FEeduiZZWx300CWRVp4AZTrzXPc3FL9maYaILAWBpNBNkMkYBCocGiygGAbULV r4yz8fiMwSvxvaFexy9OpPRqav3phZWxp/2b3+VGn+ZULfdt9p1pKbqC5xCzwM0Q5YPS rpvwF5+GVpc3xAbDBeNFwdRi2uGbUyZOiKNuYyD5u6ruvecL3ZXnK949eLxEk8s5ut3q p94Cad+mxmhwRkibBFz+r6LAgkvlKxF5EMhD2ufHDN94Hwu951WLrX3hmx6oZwRZDGQe shnVqGGXKb6nrb8+L/waGgx00H5oHwfPsis2NrQkIkcP5PgqapaFp/SLvEJM76UkNapP hOhg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m13si10444677edi.155.2021.01.19.10.47.53; Tue, 19 Jan 2021 10:48:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726122AbhASSrR (ORCPT + 99 others); Tue, 19 Jan 2021 13:47:17 -0500 Received: from mail-io1-f70.google.com ([209.85.166.70]:39641 "EHLO mail-io1-f70.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391584AbhASSj6 (ORCPT ); Tue, 19 Jan 2021 13:39:58 -0500 Received: by mail-io1-f70.google.com with SMTP id i143so14363283ioa.6 for ; Tue, 19 Jan 2021 10:39:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=WdkBn9riwIbRJJ+uSYY9Jvm7Ton9pmCnypyx0bUimvQ=; b=ayzvcVF2eVGO87nkiOT0YeKmKqCB88cN1o3uBEecpMckBEn8Dxy83CF+Xs9z65qNrI euUxRcfiWkgcaEXl5hP1rTZ8YYLtZby/0cR2XneKFSxG7rVGNYh5HBzPkIJBzY1y//7W /W9xGi2GCtcJnClcjeeCkbIGSLJAVZInnsSM6MghFH+lYyv8uo4KFhLqJHIMwQRtTeqM ZBfeNfRIJCj0fkHsgcJYfjPTCNFzQiF3txuqVmPB0l4RHFh7e/FjaNunEahKeRjjfBhQ 1Gm7Qc5LhobVY2UMNTTeQ0LXgobpgvesEAGUXOmLg9Bx4nHDamiR/YUG6+HjO4ywX2/V hGQg== X-Gm-Message-State: AOAM530F0ij+eoHLpwsGjOst2Tim3JhRy3t4cuCRbc7MW+lbG2jmJaqe F2OSm6E76nRO9C5S133g5z/7KdWz00l0N+QHgF+TuTdqngGN MIME-Version: 1.0 X-Received: by 2002:a05:6e02:c25:: with SMTP id q5mr4535832ilg.286.1611081557543; Tue, 19 Jan 2021 10:39:17 -0800 (PST) Date: Tue, 19 Jan 2021 10:39:17 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000f1136d05b9452773@google.com> Subject: UBSAN: shift-out-of-bounds in std_validate From: syzbot To: ezequiel@collabora.com, hverkuil-cisco@xs4all.nl, jacopo@jmondi.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, mchehab@kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: 1e2a199f Merge tag 'spi-fix-v5.11-rc4' of git://git.kernel.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=146e0c94d00000 kernel config: https://syzkaller.appspot.com/x/.config?x=41e68e7e8a23ad09 dashboard link: https://syzkaller.appspot.com/bug?extid=42d8c7c3d3e594b34346 compiler: gcc (GCC) 10.1.0-syz 20200507 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12166d58d00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14dfc294d00000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+42d8c7c3d3e594b34346@syzkaller.appspotmail.com ================================================================================ UBSAN: shift-out-of-bounds in drivers/media/v4l2-core/v4l2-ctrls.c:2168:36 shift exponent 100 is too large for 64-bit type 'long long unsigned int' CPU: 0 PID: 8469 Comm: syz-executor534 Not tainted 5.11.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x107/0x163 lib/dump_stack.c:120 ubsan_epilogue+0xb/0x5a lib/ubsan.c:148 __ubsan_handle_shift_out_of_bounds.cold+0xb1/0x181 lib/ubsan.c:395 std_validate.cold+0x19/0x1e drivers/media/v4l2-core/v4l2-ctrls.c:2168 validate_new drivers/media/v4l2-core/v4l2-ctrls.c:2477 [inline] set_ctrl+0x207/0x4a0 drivers/media/v4l2-core/v4l2-ctrls.c:4425 set_ctrl_lock drivers/media/v4l2-core/v4l2-ctrls.c:4448 [inline] v4l2_s_ctrl+0x2fd/0x4f0 drivers/media/v4l2-core/v4l2-ctrls.c:4469 v4l_s_ctrl+0x324/0x390 drivers/media/v4l2-core/v4l2-ioctl.c:2253 __video_do_ioctl+0xb94/0xe20 drivers/media/v4l2-core/v4l2-ioctl.c:2993 video_usercopy+0x23d/0x12d0 drivers/media/v4l2-core/v4l2-ioctl.c:3345 v4l2_ioctl+0x1b3/0x250 drivers/media/v4l2-core/v4l2-dev.c:360 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl fs/ioctl.c:739 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:739 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x443ee9 Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 0f 83 fb d7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffe02e7df08 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 0000000000443ee9 RDX: 0000000020000140 RSI: 00000000c008561c RDI: 0000000000000003 RBP: 00000000006ce018 R08: 0000000000000000 R09: 00000000004002e0 R10: 000000000000000f R11: 0000000000000246 R12: 0000000000401b70 R13: 0000000000401c00 R14: 0000000000000000 R15: 0000000000000000 ================================================================================ --- 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. syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches