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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20220407135909.GB13500@xsang-OptiPlex-9020>
Date:   Thu, 7 Apr 2022 21:59:09 +0800
From:   kernel test robot <oliver.sang@...el.com>
To:     Christoph Hellwig <hch@....de>
Cc:     Christoph Hellwig <hch@....de>, lkp@...ts.01.org, lkp@...el.com,
        LKML <linux-kernel@...r.kernel.org>
Subject: [block]  ee3286a02b:
 WARNING:at_block/blk-lib.c:#__blkdev_issue_discard



Greeting,

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

commit: ee3286a02b37a8800589038af9ea33e1a8059933 ("block: add a bdev_max_discard_sectors helper")
git://git.infradead.org/users/hch/misc.git block-api

in testcase: blktests
version: blktests-x86_64-bd6b882-1_20220323
with following parameters:

	test: nbd-group-01
	ucode: 0xec



on test machine: 4 threads Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz with 32G memory

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



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


[ 38.109204][ T1084] WARNING: CPU: 3 PID: 1084 at block/blk-lib.c:62 __blkdev_issue_discard (block/blk-lib.c:62 (discriminator 1)) 
[   38.118536][ T1084] Modules linked in: nbd loop dm_multipath dm_mod btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal intel_powerclamp sd_mod t10_pi coretemp crc64_rocksoft_generic crc64_rocksoft crc64 kvm_intel sg ipmi_devintf ipmi_msghandler i915 kvm intel_gtt drm_buddy drm_dp_helper ttm irqbypass drm_kms_helper crct10dif_pclmul mei_wdt syscopyarea crc32_pclmul sysfillrect sysimgblt wmi_bmof fb_sys_fops crc32c_intel ghash_clmulni_intel ahci rapl libahci intel_cstate mei_me mei intel_uncore drm libata intel_pch_thermal wmi video intel_pmc_core acpi_pad ip_tables
[   38.173935][ T1084] CPU: 3 PID: 1084 Comm: mkfs.ext4 Tainted: G          I       5.18.0-rc1-00023-gee3286a02b37 #1
[   38.184294][ T1084] Hardware name: Dell Inc. OptiPlex 7040/0Y7WYT, BIOS 1.1.1 10/07/2015
[ 38.192381][ T1084] RIP: 0010:__blkdev_issue_discard (block/blk-lib.c:62 (discriminator 1)) 
[ 38.198405][ T1084] Code: 84 ff 44 8b 44 24 10 e9 e1 fb ff ff 44 89 44 24 18 48 89 44 24 10 e8 e5 c6 84 ff 44 8b 44 24 18 48 8b 44 24 10 e9 8a fc ff ff <0f> 0b 48 8d 6c 24 60 4c 89 e7 48 89 ee e8 c4 f2 02 00 48 c7 c6 40
All code
========
   0:	84 ff                	test   %bh,%bh
   2:	44 8b 44 24 10       	mov    0x10(%rsp),%r8d
   7:	e9 e1 fb ff ff       	jmpq   0xfffffffffffffbed
   c:	44 89 44 24 18       	mov    %r8d,0x18(%rsp)
  11:	48 89 44 24 10       	mov    %rax,0x10(%rsp)
  16:	e8 e5 c6 84 ff       	callq  0xffffffffff84c700
  1b:	44 8b 44 24 18       	mov    0x18(%rsp),%r8d
  20:	48 8b 44 24 10       	mov    0x10(%rsp),%rax
  25:	e9 8a fc ff ff       	jmpq   0xfffffffffffffcb4
  2a:*	0f 0b                	ud2    		<-- trapping instruction
  2c:	48 8d 6c 24 60       	lea    0x60(%rsp),%rbp
  31:	4c 89 e7             	mov    %r12,%rdi
  34:	48 89 ee             	mov    %rbp,%rsi
  37:	e8 c4 f2 02 00       	callq  0x2f300
  3c:	48                   	rex.W
  3d:	c7                   	.byte 0xc7
  3e:	c6                   	.byte 0xc6
  3f:	40                   	rex

Code starting with the faulting instruction
===========================================
   0:	0f 0b                	ud2    
   2:	48 8d 6c 24 60       	lea    0x60(%rsp),%rbp
   7:	4c 89 e7             	mov    %r12,%rdi
   a:	48 89 ee             	mov    %rbp,%rsi
   d:	e8 c4 f2 02 00       	callq  0x2f2d6
  12:	48                   	rex.W
  13:	c7                   	.byte 0xc7
  14:	c6                   	.byte 0xc6
  15:	40                   	rex
[   38.217854][ T1084] RSP: 0018:ffffc9000151fad0 EFLAGS: 00010246
[   38.223772][ T1084] RAX: 0000000000000000 RBX: ffff888852c30000 RCX: 1ffff1110a58603e
[   38.231600][ T1084] RDX: 00000000ffffffff RSI: 0000000000000008 RDI: ffff888852c301f0
[   38.239428][ T1084] RBP: 0000000000000000 R08: 0000000000000000 R09: ffff88885723bc6f
[   38.247253][ T1084] R10: ffffed110ae4778d R11: 0000000000000001 R12: ffff8881a246de80
[   38.255092][ T1084] R13: 0000000000000000 R14: ffff888852c30000 R15: 0000000000008000
[   38.262943][ T1084] FS:  00007f11e903f780(0000) GS:ffff8887da180000(0000) knlGS:0000000000000000
[   38.271739][ T1084] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   38.278203][ T1084] CR2: 00005574b09733e8 CR3: 000000024b478002 CR4: 00000000003706e0
[   38.286030][ T1084] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[   38.293855][ T1084] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[   38.301683][ T1084] Call Trace:
[   38.304825][ T1084]  <TASK>
[ 38.307620][ T1084] ? blk_add_timer (block/blk-lib.c:42) 
[ 38.312253][ T1084] ? lru_lazyfree_fn (mm/swap.c:901) 
[ 38.317047][ T1084] blkdev_issue_discard (block/blk-lib.c:120) 
[ 38.322012][ T1084] ? __blkdev_issue_discard (block/blk-lib.c:114) 
[ 38.327412][ T1084] ? __cond_resched (kernel/sched/core.c:8171) 
[ 38.331944][ T1084] ? down_write_killable (kernel/locking/rwsem.c:1512) 
[ 38.337082][ T1084] blk_ioctl_discard (block/ioctl.c:118) 
[ 38.341874][ T1084] ? blkdev_bszset (block/ioctl.c:87) 
[ 38.346494][ T1084] ? __handle_mm_fault (mm/memory.c:4763) 
[ 38.351576][ T1084] blkdev_common_ioctl (block/ioctl.c:455) 
[ 38.356648][ T1084] ? blk_ioctl_discard (block/ioctl.c:444) 
[ 38.361636][ T1084] blkdev_ioctl (block/ioctl.c:582) 
[ 38.366012][ T1084] ? blkdev_common_ioctl (block/ioctl.c:532) 
[ 38.371336][ T1084] ? up_read (arch/x86/include/asm/atomic64_64.h:160 include/linux/atomic/atomic-long.h:71 include/linux/atomic/atomic-instrumented.h:1318 kernel/locking/rwsem.c:1293 kernel/locking/rwsem.c:1557) 
[ 38.375266][ T1084] __x64_sys_ioctl (fs/ioctl.c:52 fs/ioctl.c:870 fs/ioctl.c:856 fs/ioctl.c:856) 
[ 38.379918][ T1084] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) 
[ 38.384222][ T1084] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:115) 
[   38.390011][ T1084] RIP: 0033:0x7f11e9153427
[ 38.394306][ T1084] Code: 00 00 90 48 8b 05 69 aa 0c 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 39 aa 0c 00 f7 d8 64 89 01 48
All code
========
   0:	00 00                	add    %al,(%rax)
   2:	90                   	nop
   3:	48 8b 05 69 aa 0c 00 	mov    0xcaa69(%rip),%rax        # 0xcaa73
   a:	64 c7 00 26 00 00 00 	movl   $0x26,%fs:(%rax)
  11:	48 c7 c0 ff ff ff ff 	mov    $0xffffffffffffffff,%rax
  18:	c3                   	retq   
  19:	66 2e 0f 1f 84 00 00 	nopw   %cs:0x0(%rax,%rax,1)
  20:	00 00 00 
  23:	b8 10 00 00 00       	mov    $0x10,%eax
  28:	0f 05                	syscall 
  2a:*	48 3d 01 f0 ff ff    	cmp    $0xfffffffffffff001,%rax		<-- trapping instruction
  30:	73 01                	jae    0x33
  32:	c3                   	retq   
  33:	48 8b 0d 39 aa 0c 00 	mov    0xcaa39(%rip),%rcx        # 0xcaa73
  3a:	f7 d8                	neg    %eax
  3c:	64 89 01             	mov    %eax,%fs:(%rcx)
  3f:	48                   	rex.W

Code starting with the faulting instruction
===========================================
   0:	48 3d 01 f0 ff ff    	cmp    $0xfffffffffffff001,%rax
   6:	73 01                	jae    0x9
   8:	c3                   	retq   
   9:	48 8b 0d 39 aa 0c 00 	mov    0xcaa39(%rip),%rcx        # 0xcaa49
  10:	f7 d8                	neg    %eax
  12:	64 89 01             	mov    %eax,%fs:(%rcx)
  15:	48                   	rex.W
[   38.413757][ T1084] RSP: 002b:00007ffcf674fff8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[   38.422021][ T1084] RAX: ffffffffffffffda RBX: 00007ffcf6750120 RCX: 00007f11e9153427
[   38.429851][ T1084] RDX: 00007ffcf6750000 RSI: 0000000000001277 RDI: 0000000000000004
[   38.437693][ T1084] RBP: 00005574b0964b30 R08: 0000000000000004 R09: 0000000000000000
[   38.445534][ T1084] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000280000
[   38.453359][ T1084] R13: 00005574b0964b30 R14: 0000000000000000 R15: 0000000000000000
[   38.461206][ T1084]  </TASK>
[   38.464100][ T1084] ---[ end trace 0000000000000000 ]---
[   38.469424][ T1084] nbd0: Error: discard_granularity is 0.
[   38.706467][ T1092] block nbd0: shutting down sockets
[   38.773247][ T1017] I/O error, dev nbd0, sector 2 op 0x0:(READ) flags 0x1000 phys_seg 1 prio class 0
[   38.782387][ T1091] EXT4-fs (nbd0): unable to read superblock
[   38.788931][  T169] I/O error, dev nbd0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   38.797813][  T169] Buffer I/O error on dev nbd0, logical block 0, async page read
[   38.805465][  T169] I/O error, dev nbd0, sector 2 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   38.814355][  T169] Buffer I/O error on dev nbd0, logical block 1, async page read
[   38.821971][  T169] I/O error, dev nbd0, sector 4 op 0x0:(READ) flags 0x0 phys_seg 2 prio class 0
[   38.830852][  T169] Buffer I/O error on dev nbd0, logical block 2, async page read
[   38.838423][  T169] Buffer I/O error on dev nbd0, logical block 3, async page read
[   38.846146][ T1017] I/O error, dev nbd0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   38.855036][ T1017] Buffer I/O error on dev nbd0, logical block 0, async page read
[   38.862674][ T1017] I/O error, dev nbd0, sector 2 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   38.871577][ T1017] Buffer I/O error on dev nbd0, logical block 1, async page read
[   38.879159][ T1017] I/O error, dev nbd0, sector 4 op 0x0:(READ) flags 0x0 phys_seg 2 prio class 0
[   38.888045][ T1017] Buffer I/O error on dev nbd0, logical block 2, async page read
[   38.895609][ T1017] Buffer I/O error on dev nbd0, logical block 3, async page read
[   38.903347][ T1096]  nbd0: unable to read partition table
[   38.909026][ T1016] I/O error, dev nbd0, sector 2 op 0x0:(READ) flags 0x1000 phys_seg 1 prio class 0
[   38.918342][ T1096] EXT4-fs (nbd0): unable to read superblock
[   38.924919][ T1016] I/O error, dev nbd0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   38.933826][ T1016] Buffer I/O error on dev nbd0, logical block 0, async page read
[   38.941535][  T169] I/O error, dev nbd0, sector 2 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   38.950454][  T169] Buffer I/O error on dev nbd0, logical block 1, async page read
[   38.958083][ T1098]  nbd0: unable to read partition table
[   38.963537][ T1098] nbd0: partition table beyond EOD, truncated
[   38.969853][ T1098] EXT4-fs (nbd0): unable to read superblock
[   38.976388][ T1100] EXT4-fs (nbd0): unable to read superblock
[   38.982774][ T1102] EXT4-fs (nbd0): unable to read superblock
[   38.989165][ T1104] EXT4-fs (nbd0): unable to read superblock
[   38.995975][ T1106] EXT4-fs (nbd0): unable to read superblock
[   39.002331][ T1108] EXT4-fs (nbd0): unable to read superblock
[   39.008945][ T1110] EXT4-fs (nbd0): unable to read superblock
[   39.015317][ T1112] EXT4-fs (nbd0): unable to read superblock
[   39.022027][ T1114] EXT4-fs (nbd0): unable to read superblock
[   39.028378][ T1116] EXT4-fs (nbd0): unable to read superblock
[   39.034996][ T1118] EXT4-fs (nbd0): unable to read superblock
[   39.041317][ T1120] EXT4-fs (nbd0): unable to read superblock
[   39.047908][ T1122] EXT4-fs (nbd0): unable to read superblock
[   39.054388][ T1124] EXT4-fs (nbd0): unable to read superblock
[   39.060821][ T1126] EXT4-fs (nbd0): unable to read superblock
[   39.067138][ T1128] EXT4-fs (nbd0): unable to read superblock
[   39.073768][ T1130] EXT4-fs (nbd0): unable to read superblock


To reproduce:

        git clone https://github.com/intel/lkp-tests.git
        cd lkp-tests
        sudo bin/lkp install job.yaml           # job file is attached in this email
        bin/lkp split-job --compatible job.yaml # generate the yaml file for lkp run
        sudo bin/lkp run generated-yaml-file

        # if come across any failure that blocks the test,
        # please remove ~/.lkp and /lkp dir to run from a clean state.



-- 
0-DAY CI Kernel Test Service
https://01.org/lkp



View attachment "config-5.18.0-rc1-00023-gee3286a02b37" of type "text/plain" (167336 bytes)

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

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

View attachment "blktests" of type "text/plain" (2033 bytes)

View attachment "job.yaml" of type "text/plain" (4584 bytes)

View attachment "reproduce" of type "text/plain" (85 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ