================================================================================ UBSAN: Undefined behaviour in ./include/net/red.h:272:18 shift exponent 100 is too large for 64-bit type 'long unsigned int' CPU: 1 PID: 8813 Comm: syz-executor.2 Not tainted 4.19.150-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:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline] RIP: 0010:kmem_cache_free+0x11c/0x2b0 mm/slab.c:3766 Code: 11 48 63 75 74 48 89 df e8 21 f2 f7 01 e9 68 ff ff ff e8 57 6c cc ff 48 83 3d 67 a9 b8 07 00 0f 84 36 01 00 00 4c 89 e7 57 9d <0f> 1f 44 00 00 eb 86 65 8b 05 96 a0 56 7e 83 f8 3f 0f 87 45 01 00 RSP: 0018:ffff888066277828 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000007 RBX: ffff888083bced20 RCX: 1ffff1101488d1ad RDX: 0000000000000000 RSI: ffff8880a4468d48 RDI: 0000000000000286 RBP: ffff88812c25a380 R08: 0000000000400000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000286 R13: ffffffff81c4155a R14: dffffc0000000000 R15: ffff8880597e5c48 free_buffer_head+0x4a/0x100 fs/buffer.c:3403 try_to_free_buffers+0x38b/0x600 fs/buffer.c:3318 ext4_releasepage+0x3a8/0x4d0 fs/ext4/inode.c:3415 try_to_release_page+0x242/0x3b0 mm/filemap.c:3358 block_invalidatepage+0x48f/0x530 fs/buffer.c:1511 do_invalidatepage mm/truncate.c:165 [inline] truncate_cleanup_page+0x3a4/0x5c0 mm/truncate.c:187 truncate_inode_pages_range+0x626/0x1e80 mm/truncate.c:367 ext4_evict_inode+0x4d4/0x1830 fs/ext4/inode.c:249 evict+0x2ed/0x780 fs/inode.c:559 iput_final fs/inode.c:1555 [inline] iput+0x511/0x890 fs/inode.c:1581 do_unlinkat+0x40b/0x660 fs/namei.c:4071 do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45dba7 Code: 00 66 90 b8 58 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 b8 57 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 8d b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fffdbb47408 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000045dba7 RDX: 00007fffdbb47420 RSI: 00007fffdbb47420 RDI: 00007fffdbb474b0 RBP: 0000000000000b75 R08: 0000000000000000 R09: 0000000000000019 R10: 0000000000000012 R11: 0000000000000246 R12: 00007fffdbb48540 R13: 0000000002cd4a60 R14: 0000000000000000 R15: 00007fffdbb48540 ================================================================================ audit: type=1804 audit(1602366460.325:163): pid=8346 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir323318832/syzkaller.NKmmbJ/1082/cgroup.controllers" dev="sda1" ino=16190 res=1 audit: type=1804 audit(1602366460.835:164): pid=8367 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir323318832/syzkaller.NKmmbJ/1083/cgroup.controllers" dev="sda1" ino=15838 res=1 xt_SECMARK: invalid security context 'system_u:object_r:systemd_systemctl_exec_t:s0' xt_SECMARK: invalid security context 'system_u:object_r:systemd_systemctl_exec_t:s0' xt_SECMARK: invalid security context 'system_u:object_r:systemd_systemctl_exec_t:s0' xt_SECMARK: invalid security context 'system_u:object_r:systemd_systemctl_exec_t:s0' nla_parse: 19 callbacks suppressed netlink: 24 bytes leftover after parsing attributes in process `syz-executor.3'. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.3'. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.3'. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.3'. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.3'. EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue audit: type=1800 audit(1602366468.616:165): pid=8869 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.2" name="bus" dev="sda1" ino=15918 res=0 audit: type=1800 audit(1602366468.616:166): pid=8869 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.2" name="bus" dev="sda1" ino=15918 res=0 EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue audit: type=1800 audit(1602366469.126:167): pid=8902 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=15896 res=0 syz-executor.5 (8886) used greatest stack depth: 22168 bytes left audit: type=1800 audit(1602366469.126:168): pid=8897 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.2" name="bus" dev="sda1" ino=16229 res=0 EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue audit: type=1800 audit(1602366469.136:169): pid=8897 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="syz-executor.2" name="bus" dev="sda1" ino=16229 res=0 audit: type=1800 audit(1602366469.176:170): pid=8902 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=15896 res=0