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]
Date:   Thu, 17 Dec 2020 11:10:10 +0800
From:   kernel test robot <oliver.sang@...el.com>
To:     Miquel Raynal <miquel.raynal@...tlin.com>
Cc:     LKML <linux-kernel@...r.kernel.org>, lkp@...ts.01.org,
        lkp@...el.com
Subject: [mtd]  19b2ce184b:
 WARNING:at_drivers/mtd/nand/raw/nand_base.c:#nand_scan_with_ids


Greeting,

FYI, we noticed the following commit (built with clang-12):

commit: 19b2ce184b9f404d6620adf667a9019e6abcae51 ("mtd: nand: ecc-hamming: Stop using raw NAND structures")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master


in testcase: trinity
version: trinity-x86_64-af355e9-1_2019-12-03
with following parameters:

	runtime: 300s

test-description: Trinity is a linux system call fuzz tester.
test-url: http://codemonkey.org.uk/projects/trinity/


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):


+-----------------------------------------------------------------+------------+------------+
|                                                                 | 90ccf0a019 | 19b2ce184b |
+-----------------------------------------------------------------+------------+------------+
| WARNING:at_drivers/mtd/nand/raw/nand_base.c:#nand_scan_with_ids | 0          | 16         |
| RIP:nand_scan_with_ids                                          | 0          | 16         |
+-----------------------------------------------------------------+------------+------------+


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


[   24.075484] WARNING: CPU: 0 PID: 1 at drivers/mtd/nand/raw/nand_base.c:5856 nand_scan_with_ids+0x13c1/0x1850
[   24.076283] Modules linked in:
[   24.076542] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.10.0-rc6-00016-g19b2ce184b9f #1
[   24.077185] RIP: 0010:nand_scan_with_ids+0x13c1/0x1850
[   24.077613] Code: 9e 98 82 31 c0 e8 8f c6 92 ff 90 0f 0b 90 90 41 bc ea ff ff ff e9 30 04 00 00 90 48 c7 c7 c5 14 a9 82 31 c0 e8 70 c6 92 ff 90 <0f> 0b 90 90 41 bc ea ff ff ff e9 11 04 00 00 48 89 df e8 38 d1 fd
[   24.079123] RSP: 0000:ffff888100117c30 EFLAGS: 00010246
[   24.079558] RAX: 30a3860978805c00 RBX: ffff8881493d8000 RCX: ffffffff82c51b00
[   24.080129] RDX: c0000000ffff7fff RSI: ffffffff811996f4 RDI: ffffffff8119a021
[   24.080703] RBP: ffff888100117ca8 R08: 0000000000000000 R09: ffffffff82d11cc0
[   24.081292] R10: 00000000ffff7fff R11: 0000000000000000 R12: 00000000fffffff4
[   24.081864] R13: ffffffff830d4898 R14: 0000000000000001 R15: 0000000000000001
[   24.082455] FS:  0000000000000000(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000
[   24.083101] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   24.083571] CR2: 0000000000000000 CR3: 0000000002c22000 CR4: 00000000000406f0
[   24.084144] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[   24.084720] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[   24.085299] Call Trace:
[   24.085508]  ? inftl_partscan+0x2d4/0x2d4
[   24.085837]  ns_init_module+0x48f/0x8b8
[   24.086157]  ? inftl_partscan+0x2d4/0x2d4
[   24.086495]  ? inftl_partscan+0x2d4/0x2d4
[   24.086823]  do_one_initcall+0x113/0x230
[   24.087147]  ? rcu_read_lock_sched_held+0x44/0xa0
[   24.087538]  do_initcall_level+0x95/0xab
[   24.087862]  ? kernel_init+0x9/0x180
[   24.088156]  do_initcalls+0x49/0x75
[   24.088452]  do_basic_setup+0x1f/0x21
[   24.088753]  kernel_init_freeable+0x15d/0x1b3
[   24.089109]  ? rest_init+0x1f0/0x1f0
[   24.089411]  kernel_init+0x9/0x180
[   24.089693]  ret_from_fork+0x22/0x30
[   24.089987] irq event stamp: 7045039
[   24.090300] hardirqs last  enabled at (7045049): [<ffffffff8119a021>] console_unlock+0x6f1/0x790
[   24.091000] hardirqs last disabled at (7045056): [<ffffffff81199abb>] console_unlock+0x18b/0x790
[   24.091708] softirqs last  enabled at (7044862): [<ffffffff82000ea2>] asm_call_irq_on_stack+0x12/0x20
[   24.092450] softirqs last disabled at (7044853): [<ffffffff82000ea2>] asm_call_irq_on_stack+0x12/0x20
[   24.093197] ---[ end trace b33334ce9dfe4ae9 ]---


To reproduce:

        # build kernel
	cd linux
	cp config-5.10.0-rc6-00016-g19b2ce184b9f .config
	make HOSTCC=clang-12 CC=clang-12 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage

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



Thanks,
Oliver Sang


View attachment "config-5.10.0-rc6-00016-g19b2ce184b9f" of type "text/plain" (126459 bytes)

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ