lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 15 Jul 2016 09:51:20 +0800
From:	kernel test robot <xiaolong.ye@...el.com>
To:	Omar Sandoval <osandov@...com>
Cc:	0day robot <fengguang.wu@...el.com>,
	Anatoly Pugachev <matorola@...il.com>,
	LKML <linux-kernel@...r.kernel.org>, lkp@...org
Subject: [lkp] [Btrfs]  e5a7b11a5c: shift exponent 32 is too large for 32-bit
 type 'int'


FYI, we noticed the following commit:

https://github.com/0day-ci/linux Omar-Sandoval/Btrfs-fix-extent-buffer-bitmap-tests-on-big-endian-systems/20160713-074511
commit e5a7b11a5caa8d42fe3fb4ff2d75b6811aeb8eb7 ("Btrfs: fix extent buffer bitmap tests on big-endian systems")

in testcase: boot

on test machine: 2 threads qemu-system-x86_64 -enable-kvm -cpu Haswell,+smep,+smap with 1G memory

caused below changes:


+------------------------------------------------------------------+----------+------------+
|                                                                  | v4.7-rc7 | e5a7b11a5c |
+------------------------------------------------------------------+----------+------------+
| boot_successes                                                   | 0        | 0          |
| boot_failures                                                    | 80       | 8          |
| invoked_oom-killer:gfp_mask=0x                                   | 59       | 2          |
| Mem-Info                                                         | 59       | 2          |
| Kernel_panic-not_syncing:Out_of_memory_and_no_killable_processes | 59       | 2          |
| backtrace:btrfs_test_extent_io                                   | 35       | 6          |
| backtrace:init_btrfs_fs                                          | 35       | 6          |
| backtrace:kernel_init_freeable                                   | 59       | 8          |
| BUG:kernel_test_oversize                                         | 11       | 4          |
| backtrace:vfs_write                                              | 24       | 2          |
| backtrace:SyS_write                                              | 24       | 2          |
| backtrace:populate_rootfs                                        | 24       | 2          |
| kernel_BUG_at_mm/filemap.c                                       | 1        |            |
| invalid_opcode:#[##]PREEMPT_SMP                                  | 1        |            |
| RIP:unlock_page                                                  | 1        |            |
| Kernel_panic-not_syncing:Fatal_exception                         | 1        |            |
| backtrace:kswapd                                                 | 1        |            |
| BUG:kernel_boot_hang                                             | 9        |            |
| BUG:kernel_torture_test_oversize                                 | 0        | 2          |
+------------------------------------------------------------------+----------+------------+



[   74.703186] UBSAN: Undefined behaviour in fs/btrfs/tests/extent-io-tests.c:367:4
[   74.703359] shift exponent 32 is too large for 32-bit type 'int'
[   74.703359] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.7.0-rc7-00001-ge5a7b11 #1
[   74.703359] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[   74.703359]  00000000ffffffff 0000000000000097 0000000000000001 0000000000000001
[   74.703359]  0000000000000000 0000000000000001 ffff880035143c48 ffffffff82046359
[   74.703359]  ffffffff813e786b 000000007a4be528 000000007a4be500 0000000000000020
[   74.703359] Call Trace:
[   74.703359]  [<ffffffff82046359>] dump_stack+0x290/0x3f0
[   74.703359]  [<ffffffff813e786b>] ? printk+0x5d/0x65
[   74.703359]  [<ffffffff8212cbd9>] ubsan_epilogue+0x12/0x3f
[   74.703359]  [<ffffffff8212d61b>] __ubsan_handle_shift_out_of_bounds+0x19c/0x1d1
[   74.703359]  [<ffffffff81ca5a42>] ? extent_buffer_bitmap_set+0x508/0x517
[   74.703359]  [<ffffffff81e142e6>] __test_eb_bitmaps+0x5f1/0x7a7
[   74.703359]  [<ffffffff81e142e6>] ? __test_eb_bitmaps+0x5f1/0x7a7
[   74.703359]  [<ffffffff81e16479>] btrfs_test_extent_io+0x281/0x427
[   74.703359]  [<ffffffff81d2b075>] ? cleanup_write_cache_enospc+0x88/0x88
[   74.703359]  [<ffffffff8606d299>] init_btrfs_fs+0x926/0xd88
[   74.703359]  [<ffffffff8606c973>] ? trace_event_define_fields_btrfs_space_reservation+0x32f/0x32f
[   74.703359]  [<ffffffff81000884>] do_one_initcall+0x240/0x4ed
[   74.703359]  [<ffffffff85fd107c>] kernel_init_freeable+0x3b7/0x628
[   74.703359]  [<ffffffff83033b7f>] kernel_init+0x1c/0x49c
[   74.703359]  [<ffffffff830600cf>] ret_from_fork+0x1f/0x40
[   74.703359]  [<ffffffff83033b63>] ? rest_init+0x2aa/0x2aa
[   74.703359] ================================================================================
[   75.122581] BTRFS: selftest: Extent I/O tests finished
[   75.123550] BTRFS: selftest: Running btrfs_get_extent tests


FYI, raw QEMU command line is:

	qemu-system-x86_64 -enable-kvm -cpu Haswell,+smep,+smap -kernel /pkg/linux/x86_64-randconfig-s5-07130857/gcc-6/e5a7b11a5caa8d42fe3fb4ff2d75b6811aeb8eb7/vmlinuz-4.7.0-rc7-00001-ge5a7b11 -append 'root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-kbuild-1G-4/bisect_boot-1-debian-x86_64-2015-02-07.cgz-x86_64-randconfig-s5-07130857-e5a7b11a5caa8d42fe3fb4ff2d75b6811aeb8eb7-20160715-475-o45csx-1.yaml ARCH=x86_64 kconfig=x86_64-randconfig-s5-07130857 branch=linux-devel/devel-spot-201607130837 commit=e5a7b11a5caa8d42fe3fb4ff2d75b6811aeb8eb7 BOOT_IMAGE=/pkg/linux/x86_64-randconfig-s5-07130857/gcc-6/e5a7b11a5caa8d42fe3fb4ff2d75b6811aeb8eb7/vmlinuz-4.7.0-rc7-00001-ge5a7b11 max_uptime=600 RESULT_ROOT=/result/boot/1/vm-kbuild-1G/debian-x86_64-2015-02-07.cgz/x86_64-randconfig-s5-07130857/gcc-6/e5a7b11a5caa8d42fe3fb4ff2d75b6811aeb8eb7/0 LKP_SERVER=inn earlyprintk=ttyS0,115200 systemd.log_level=err debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 panic=-1 softlockup_panic=1 nmi_watchdog=panic oops=panic load_ramdisk=2 prompt_ramdisk=0 console=ttyS0,115200 console=tty0 vga=normal rw ip=::::vm-kbuild-1G-4::dhcp'  -initrd /fs/sdf1/initrd-vm-kbuild-1G-4 -m 1024 -smp 2 -device e1000,netdev=net0 -netdev user,id=net0,hostfwd=tcp::23003-:22 -boot order=nc -no-reboot -watchdog i6300esb -rtc base=localtime -device virtio-scsi-pci,id=scsi0 -drive file=/fs/sdf1/disk0-vm-kbuild-1G-4,if=none,id=hd0,media=disk,aio=native,cache=none -device scsi-hd,bus=scsi0.0,drive=hd0,scsi-id=1,lun=0 -drive file=/fs/sdf1/disk1-vm-kbuild-1G-4,if=none,id=hd1,media=disk,aio=native,cache=none -device scsi-hd,bus=scsi0.0,drive=hd1,scsi-id=1,lun=1 -drive file=/fs/sdf1/disk2-vm-kbuild-1G-4,if=none,id=hd2,media=disk,aio=native,cache=none -device scsi-hd,bus=scsi0.0,drive=hd2,scsi-id=1,lun=2 -drive file=/fs/sdf1/disk3-vm-kbuild-1G-4,if=none,id=hd3,media=disk,aio=native,cache=none -device scsi-hd,bus=scsi0.0,drive=hd3,scsi-id=1,lun=3 -drive file=/fs/sdf1/disk4-vm-kbuild-1G-4,if=none,id=hd4,media=disk,aio=native,cache=none -device scsi-hd,bus=scsi0.0,drive=hd4,scsi-id=1,lun=4 -pidfile /dev/shm/kboot/pid-vm-kbuild-1G-4 -serial file:/dev/shm/kboot/serial-vm-kbuild-1G-4 -daemonize -display none -monitor null 





Thanks,
Xiaolong

View attachment "config-4.7.0-rc7-00001-ge5a7b11" of type "text/plain" (100797 bytes)

Download attachment "dmesg.xz" of type "application/octet-stream" (80224 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ