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-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220424144627.GB13403@xsang-OptiPlex-9020>
Date:   Sun, 24 Apr 2022 22:46:27 +0800
From:   kernel test robot <oliver.sang@...el.com>
To:     Vasily Averin <vvs@...nvz.org>
Cc:     0day robot <lkp@...el.com>, LKML <linux-kernel@...r.kernel.org>,
        lkp@...ts.01.org, Vlastimil Babka <vbabka@...e.cz>,
        Shakeel Butt <shakeelb@...gle.com>, kernel@...nvz.org,
        Florian Westphal <fw@...len.de>,
        Roman Gushchin <roman.gushchin@...ux.dev>,
        Michal Hocko <mhocko@...e.com>, cgroups@...r.kernel.org,
        netdev@...r.kernel.org, "David S. Miller" <davem@...emloft.net>,
        Jakub Kicinski <kuba@...nel.org>,
        Paolo Abeni <pabeni@...hat.com>
Subject: [net]  3b379e5391: BUG:kernel_NULL_pointer_dereference,address



Greeting,

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

commit: 3b379e5391e36e13b9f36305aa6d233fb03d4e58 ("[PATCH] net: set proper memcg for net_init hooks allocations")
url: https://github.com/intel-lab-lkp/linux/commits/Vasily-Averin/net-set-proper-memcg-for-net_init-hooks-allocations/20220423-160759
base: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git c00c5e1d157bec0ef0b0b59aa5482eb8dc7e8e49
patch link: https://lore.kernel.org/lkml/6f38e02b-9af3-4dcf-9000-1118a04b13c7@openvz.org

in testcase: boot

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

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


+---------------------------------------------+------------+------------+
|                                             | c00c5e1d15 | 3b379e5391 |
+---------------------------------------------+------------+------------+
| boot_successes                              | 9          | 0          |
| boot_failures                               | 0          | 32         |
| BUG:kernel_NULL_pointer_dereference,address | 0          | 32         |
| Oops:#[##]                                  | 0          | 32         |
| EIP:__register_pernet_operations            | 0          | 32         |
| Kernel_panic-not_syncing:Fatal_exception    | 0          | 32         |
+---------------------------------------------+------------+------------+


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



[    1.054816][    T0] BUG: kernel NULL pointer dereference, address: 0000002c
[    1.055472][    T0] #PF: supervisor read access in kernel mode
[    1.056034][    T0] #PF: error_code(0x0000) - not-present page
[    1.056650][    T0] *pdpt = 0000000000000000 *pde = f000ff53f000ff53
[    1.056795][    T0] Oops: 0000 [#1] SMP PTI
[    1.056795][    T0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.18.0-rc3-00191-g3b379e5391e3 #1
[    1.056795][    T0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[    1.056795][    T0] EIP: __register_pernet_operations+0x169/0x340
[    1.056795][    T0] Code: 1e d4 8b 40 08 a8 03 0f 85 44 01 00 00 64 ff 00 64 ff 0d d4 06 1e d4 e9 1d ff ff ff 8d 74 26 00 90 8b 45 e0 89 b8 0c 0f 00 00 <
f6> 43 2c 01 0f 85 68 ff ff ff 64 ff 05 d4 06 1e d4 8b 43 08 a8 03
[    1.056795][    T0] EAX: d3cf4740 EBX: 00000000 ECX: 00000000 EDX: 00000cc0
[    1.056795][    T0] ESI: d4331340 EDI: 00000000 EBP: d3cedf58 ESP: d3cedf34
[    1.056795][    T0] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 EFLAGS: 00210246
[    1.056795][    T0] CR0: 80050033 CR2: 0000002c CR3: 141f8000 CR4: 000406b0
[    1.056795][    T0] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[    1.056795][    T0] DR6: fffe0ff0 DR7: 00000400
[    1.056795][    T0] Call Trace:
[    1.056795][    T0]  ? setup_net+0x44/0x300
[    1.056795][    T0]  register_pernet_operations+0x5c/0xc0
[    1.056795][    T0]  register_pernet_subsys+0x21/0x40
[    1.056795][    T0]  net_ns_init+0xb1/0xf1
[    1.056795][    T0]  start_kernel+0x403/0x46d
[    1.056795][    T0]  i386_start_kernel+0x48/0x4a
[    1.056795][    T0]  startup_32_smp+0x161/0x164
[    1.056795][    T0] Modules linked in:
[    1.056795][    T0] CR2: 000000000000002c
[    1.056795][    T0] ---[ end trace 0000000000000000 ]---
[    1.056795][    T0] EIP: __register_pernet_operations+0x169/0x340
[    1.056795][    T0] Code: 1e d4 8b 40 08 a8 03 0f 85 44 01 00 00 64 ff 00 64 ff 0d d4 06 1e d4 e9 1d ff ff ff 8d 74 26 00 90 8b 45 e0 89 b8 0c 0f 00 00 <f6> 43 2c 01 0f 85 68 ff ff ff 64 ff 05 d4 06 1e d4 8b 43 08 a8 03
[    1.056795][    T0] EAX: d3cf4740 EBX: 00000000 ECX: 00000000 EDX: 00000cc0
[    1.056795][    T0] ESI: d4331340 EDI: 00000000 EBP: d3cedf58 ESP: d3cedf34
[    1.056795][    T0] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 EFLAGS: 00210246
[    1.056795][    T0] CR0: 80050033 CR2: 0000002c CR3: 141f8000 CR4: 000406b0
[    1.056795][    T0] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[    1.056795][    T0] DR6: fffe0ff0 DR7: 00000400
[    1.056795][    T0] Kernel panic - not syncing: Fatal exception



To reproduce:

        # build kernel
	cd linux
	cp config-5.18.0-rc3-00191-g3b379e5391e3 .config
	make HOSTCC=gcc-11 CC=gcc-11 ARCH=i386 olddefconfig prepare modules_prepare bzImage modules
	make HOSTCC=gcc-11 CC=gcc-11 ARCH=i386 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

        # 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-rc3-00191-g3b379e5391e3" of type "text/plain" (141846 bytes)

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ