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>] [day] [month] [year] [list]
Message-ID: <20200323090648.GW11705@shao2-debian>
Date:   Mon, 23 Mar 2020 17:06:48 +0800
From:   kernel test robot <rong.a.chen@...el.com>
To:     Josef Bacik <josef@...icpanda.com>
Cc:     David Sterba <dsterba@...e.com>, Qu Wenruo <wqu@...e.com>,
        LKML <linux-kernel@...r.kernel.org>, lkp@...ts.01.org
Subject: [btrfs] 3eba67af68:
 WARNING:at_fs/btrfs/ctree.c:#__btrfs_cow_block[btrfs]

FYI, we noticed the following commit (built with gcc-7):

commit: 3eba67af68d7c7944a1810d3672accf73d38c376 ("btrfs: do not init a reloc root if we aren't relocating")
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master

in testcase: xfstests
with following parameters:

	disk: 6HDD
	fs: btrfs
	test: btrfs-group00

test-description: xfstests is a regression test suite for xfs and other files ystems.
test-url: git://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git


on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 8G

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):


+-------------------------------------------------------+------------+------------+
|                                                       | f5565216da | 3eba67af68 |
+-------------------------------------------------------+------------+------------+
| boot_successes                                        | 1          | 0          |
| boot_failures                                         | 62         | 58         |
| BUG:kernel_in_stage                                   | 62         | 57         |
| BUG:kernel_NULL_pointer_dereference,address           | 1          | 1          |
| Oops:#[##]                                            | 1          | 1          |
| RIP:raid#_sse21_gen_syndrome[raid#_pq]                | 1          | 1          |
| Kernel_panic-not_syncing:Fatal_exception              | 1          | 1          |
| WARNING:at_net/sched/sch_generic.c:#dev_watchdog      | 1          |            |
| RIP:dev_watchdog                                      | 1          |            |
| INFO:rcu_sched_self-detected_stall_on_CPU             | 1          | 1          |
| RIP:__memcpy                                          | 1          |            |
| WARNING:at_fs/btrfs/ctree.c:#__btrfs_cow_block[btrfs] | 0          | 53         |
| RIP:__btrfs_cow_block[btrfs]                          | 0          | 53         |
| RIP:__do_softirq                                      | 0          | 1          |
| RIP:copy_user_generic_string                          | 0          | 1          |
| INFO:rcu_sched_detected_stalls_on_CPUs/tasks          | 0          | 1          |
| RIP:smp_call_function_single                          | 0          | 1          |
+-------------------------------------------------------+------------+------------+


If you fix the issue, kindly add following tag
Reported-by: kernel test robot <rong.a.chen@...el.com>


[  360.186179] WARNING: CPU: 1 PID: 28359 at fs/btrfs/ctree.c:1030 __btrfs_cow_block+0x7e/0x570 [btrfs]
[  360.189443] Modules linked in: btrfs blake2b_generic xor zstd_decompress zstd_compress raid6_pq libcrc32c dm_mod intel_rapl_msr intel_rapl_common sr_mod cdrom crct10dif_pclmul sg crc32_pclmul ata_generic pata_acpi crc32c_intel bochs_drm ghash_clmulni_intel drm_vram_helper drm_ttm_helper ttm drm_kms_helper syscopyarea sysfillrect snd_pcm sysimgblt fb_sys_fops snd_timer ata_piix ppdev drm snd aesni_intel crypto_simd soundcore cryptd glue_helper parport_pc joydev serio_raw libata parport pcspkr floppy i2c_piix4 ip_tables
[  360.212572] CPU: 1 PID: 28359 Comm: btrfs Not tainted 5.6.0-rc5-00187-g3eba67af68d7c #1
[  360.215645] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[  360.218809] RIP: 0010:__btrfs_cow_block+0x7e/0x570 [btrfs]
[  360.221243] Code: a8 02 74 11 49 8b 86 90 02 00 00 48 8b 00 48 39 07 74 02 0f 0b 48 8b 43 20 a8 02 74 0f 48 8b 83 40 03 00 00 49 39 04 24 74 02 <0f> 0b 48 8b 85 88 00 00 00 48 2b 05 3a 7e f3 c2 4c 8d 7c 24 2f 48
[  360.227758] RSP: 0018:ffffa6ec03ba3780 EFLAGS: 00010202
[  360.230175] RAX: 0000000000000383 RBX: ffff895b5981e800 RCX: 0000000000000000
[  360.237266] RDX: ffff895b33b47948 RSI: ffff895b5981e800 RDI: ffff895b5d1f94e0
[  360.239752] RBP: ffff895b33b47948 R08: 0000000000000000 R09: ffffa6ec03ba3898
[  360.241260] R10: 00000000ffffffff R11: 0000000000000001 R12: ffff895b5d1f94e0
[  360.242739] R13: 0000000000000000 R14: ffff895b57130000 R15: 0000000000000000
[  360.244250] FS:  00007f3afb3788c0(0000) GS:ffff895bbfd00000(0000) knlGS:0000000000000000
[  360.247088] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  360.249575] CR2: 00000000016e1048 CR3: 00000001b341e000 CR4: 00000000000406e0
[  360.252290] Call Trace:
[  360.254134]  ? __switch_to_asm+0x40/0x70
[  360.256387]  btrfs_cow_block+0xed/0x1b0 [btrfs]
[  360.258823]  btrfs_search_slot+0x402/0x970 [btrfs]
[  360.261324]  replace_path+0x5c8/0x900 [btrfs]
[  360.263675]  merge_reloc_root+0x1f3/0x610 [btrfs]
[  360.266164]  merge_reloc_roots+0x11e/0x330 [btrfs]
[  360.269030]  relocate_block_group+0x1b2/0x6a0 [btrfs]
[  360.271505]  btrfs_relocate_block_group+0x172/0x2e0 [btrfs]
[  360.274027]  btrfs_relocate_chunk+0x25/0xd0 [btrfs]
[  360.276366]  __btrfs_balance+0x8fa/0xb00 [btrfs]
[  360.278620]  btrfs_balance+0x495/0x6f0 [btrfs]
[  360.280950]  btrfs_ioctl_balance+0x2c2/0x370 [btrfs]
[  360.283386]  btrfs_ioctl+0xe90/0x30d0 [btrfs]
[  360.285595]  ? handle_pte_fault+0x411/0xb70
[  360.287741]  ? _copy_to_user+0x69/0x80
[  360.289931]  ? __handle_mm_fault+0x540/0x6a0
[  360.292342]  ? ksys_ioctl+0x92/0xb0
[  360.294415]  ? btrfs_ioctl_get_supported_features+0x30/0x30 [btrfs]
[  360.297144]  ksys_ioctl+0x92/0xb0
[  360.299942]  __x64_sys_ioctl+0x16/0x20
[  360.302212]  do_syscall_64+0x5b/0x1f0
[  360.304395]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[  360.306693] RIP: 0033:0x7f3afa3ff017
[  360.308685] Code: 00 00 00 48 8b 05 81 7e 2b 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 51 7e 2b 00 f7 d8 64 89 01 48
[  360.315566] RSP: 002b:00007ffe113e1878 EFLAGS: 00000206 ORIG_RAX: 0000000000000010
[  360.318500] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f3afa3ff017
[  360.321393] RDX: 00007ffe113e1908 RSI: 00000000c4009420 RDI: 0000000000000004
[  360.324078] RBP: 00007ffe113e1908 R08: 00000000016d9000 R09: 0000000000000000
[  360.327114] R10: 0000000000000541 R11: 0000000000000206 R12: 0000000000000004
[  360.330121] R13: 00007ffe113e3bb6 R14: 0000000000000001 R15: 0000000000000000
[  360.333106] ---[ end trace 02f259af615e9d29 ]---


To reproduce:

        # build kernel
	cd linux
	cp config-5.6.0-rc5-00187-g3eba67af68d7c .config
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage modules
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 INSTALL_MOD_PATH=<mod-install-dir> modules_install
	cd <mod-install-dir>
	find lib/ | cpio -o -H newc --quiet | gzip > modules.cgz


        git clone https://github.com/intel/lkp-tests.git
        cd lkp-tests
        bin/lkp qemu -k <bzImage> -m modules.cgz job-script # job-script is attached in this email



Thanks,
Rong Chen


View attachment "config-5.6.0-rc5-00187-g3eba67af68d7c" of type "text/plain" (203581 bytes)

View attachment "job-script" of type "text/plain" (5453 bytes)

Download attachment "dmesg.xz" of type "application/x-xz" (49204 bytes)

View attachment "xfstests" of type "text/plain" (4227 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ