================================================================================ UBSAN: Undefined behaviour in ./include/net/red.h:272:18 shift exponent 71 is too large for 64-bit type 'long unsigned int' CPU: 1 PID: 6486 Comm: syz-executor.5 Not tainted 4.19.147-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x22c/0x33e lib/dump_stack.c:118 ubsan_epilogue+0xe/0x3a lib/ubsan.c:161 __ubsan_handle_shift_out_of_bounds.cold+0x1c4/0x250 lib/ubsan.c:422 red_calc_qavg_from_idle_time include/net/red.h:272 [inline] red_adaptative_algo include/net/red.h:404 [inline] red_adaptative_timer+0x7ed/0x870 net/sched/sch_red.c:266 call_timer_fn+0x177/0x760 kernel/time/timer.c:1338 expire_timers+0x243/0x500 kernel/time/timer.c:1375 __run_timers kernel/time/timer.c:1703 [inline] run_timer_softirq+0x259/0x730 kernel/time/timer.c:1716 __do_softirq+0x27d/0xad2 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x22d/0x270 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:544 [inline] smp_apic_timer_interrupt+0x15f/0x5d0 arch/x86/kernel/apic/apic.c:1094 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894 RIP: 0010:check_memory_region+0xb1/0x170 mm/kasan/kasan.c:268 Code: 08 48 39 d0 74 7b 48 83 38 00 74 f1 48 8d 50 08 eb 09 48 83 c0 01 48 39 d0 74 0e 80 38 00 74 f2 48 85 c0 0f 85 9c 00 00 00 5b <5d> 41 5c c3 48 85 d2 74 f6 48 01 ea eb 09 48 83 c0 01 48 39 d0 74 RSP: 0018:ffff88805454fa08 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: fffff940002b436f RBX: ffffea00015a0034 RCX: ffffffff819e5f31 RDX: fffff940002b436f RSI: 0000000000000004 RDI: ffffea00015a1b70 RBP: fffff940002b436e R08: 0000000000000001 R09: fffff940002b436e R10: ffffea00015a1b73 R11: 0000000000000004 R12: ffffea00015a1b48 R13: dffffc0000000000 R14: ffffea00015a1b40 R15: 0000000000000008 atomic_inc include/asm-generic/atomic-instrumented.h:109 [inline] page_dup_rmap include/linux/rmap.h:189 [inline] copy_one_pte mm/memory.c:1041 [inline] copy_pte_range mm/memory.c:1102 [inline] copy_pmd_range mm/memory.c:1153 [inline] copy_pud_range mm/memory.c:1187 [inline] copy_p4d_range mm/memory.c:1209 [inline] copy_page_range+0x10d1/0x3380 mm/memory.c:1271 dup_mmap kernel/fork.c:549 [inline] dup_mm kernel/fork.c:1288 [inline] copy_mm kernel/fork.c:1344 [inline] copy_process.part.0+0x5c68/0x7fb0 kernel/fork.c:1897 copy_process kernel/fork.c:1694 [inline] _do_fork+0x22f/0x1020 kernel/fork.c:2207 do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c74a Code: f7 d8 64 89 04 25 d4 02 00 00 64 4c 8b 0c 25 10 00 00 00 31 d2 4d 8d 91 d0 02 00 00 31 f6 bf 11 00 20 01 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 f5 00 00 00 85 c0 41 89 c5 0f 85 fc 00 00 RSP: 002b:00007ffc8a8328d0 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007ffc8a8328d0 RCX: 000000000045c74a RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 00007ffc8a832910 R08: 0000000000000001 R09: 00000000017f7940 R10: 00000000017f7c10 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 0000000000000001 R15: 00007ffc8a832960 ================================================================================ EXT4-fs (loop0): bad geometry: block count 128 exceeds size of device (1 blocks) EXT4-fs (loop0): bad geometry: block count 128 exceeds size of device (1 blocks) audit: type=1800 audit(1600867516.703:145): pid=24628 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="sda1" ino=15809 res=0 EXT4-fs (loop0): bad geometry: block count 128 exceeds size of device (1 blocks) audit: type=1800 audit(1600867517.153:146): pid=24654 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="loop1" ino=67 res=0 EXT4-fs (loop0): bad geometry: block count 128 exceeds size of device (1 blocks) EXT4-fs (loop0): bad geometry: block count 128 exceeds size of device (1 blocks) EXT4-fs (loop0): Unrecognized mount option "inode_readahead_bl" or missing value audit: type=1800 audit(1600867518.083:147): pid=24702 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="loop1" ino=68 res=0 EXT4-fs (loop0): Unrecognized mount option "inode_readahead_bl" or missing value EXT4-fs (loop0): Unrecognized mount option "inode_readahead_bl" or missing value audit: type=1800 audit(1600867518.883:148): pid=24744 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="loop1" ino=69 res=0 EXT4-fs (loop0): bad geometry: block count 128 exceeds size of device (1 blocks) audit: type=1800 audit(1600867519.204:149): pid=24769 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="loop1" ino=70 res=0 EXT4-fs (loop0): bad geometry: block count 128 exceeds size of device (1 blocks) audit: type=1800 audit(1600867519.474:150): pid=24791 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="loop1" ino=71 res=0 EXT4-fs (loop0): bad geometry: block count 128 exceeds size of device (1 blocks) audit: type=1800 audit(1600867519.724:151): pid=24808 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="loop1" ino=72 res=0 EXT4-fs (loop0): bad geometry: block count 128 exceeds size of device (1 blocks) audit: type=1800 audit(1600867520.074:152): pid=24830 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="loop1" ino=73 res=0 EXT4-fs (loop0): bad geometry: block count 128 exceeds size of device (1 blocks) audit: type=1800 audit(1600867520.434:153): pid=24849 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="loop1" ino=74 res=0 audit: type=1800 audit(1600867520.604:154): pid=24863 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="loop1" ino=75 res=0 EXT4-fs (loop0): bad geometry: block count 128 exceeds size of device (1 blocks) audit: type=1800 audit(1600867520.894:155): pid=24881 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="loop1" ino=76 res=0 EXT4-fs (loop0): bad geometry: block count 128 exceeds size of device (1 blocks) EXT4-fs (loop0): bad geometry: block count 128 exceeds size of device (1 blocks) FAT-fs (loop3): bogus number of reserved sectors FAT-fs (loop3): Can't find a valid FAT filesystem EXT4-fs (loop0): bad geometry: block count 128 exceeds size of device (1 blocks) kauditd_printk_skb: 1 callbacks suppressed audit: type=1800 audit(1600867522.354:157): pid=24928 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="loop1" ino=78 res=0 audit: type=1400 audit(1600867522.454:158): avc: denied { sys_admin } for pid=24924 comm="syz-executor.4" capability=21 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=cap_userns permissive=1 EXT4-fs (loop0): bad geometry: block count 128 exceeds size of device (1 blocks) audit: type=1800 audit(1600867522.824:159): pid=24948 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="loop1" ino=79 res=0 EXT4-fs (loop0): bad geometry: block count 128 exceeds size of device (1 blocks) IPVS: ftp: loaded support on port[0] = 21 audit: type=1800 audit(1600867523.244:160): pid=24969 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="loop1" ino=80 res=0 EXT4-fs (loop0): bad geometry: block count 128 exceeds size of device (1 blocks) audit: type=1800 audit(1600867523.644:161): pid=25011 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="loop1" ino=81 res=0 IPVS: ftp: loaded support on port[0] = 21 audit: type=1800 audit(1600867523.984:162): pid=25038 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="loop1" ino=82 res=0 audit: type=1800 audit(1600867524.344:163): pid=25067 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="loop1" ino=83 res=0 audit: type=1800 audit(1600867524.764:164): pid=25089 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="loop1" ino=84 res=0 IPVS: ftp: loaded support on port[0] = 21 audit: type=1800 audit(1600867525.234:165): pid=25107 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="loop1" ino=85 res=0 audit: type=1800 audit(1600867525.544:166): pid=25154 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.1" name="bus" dev="loop1" ino=86 res=0