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:	Tue, 26 Nov 2013 17:21:52 +0800
From:	Yuanhan Liu <yuanhan.liu@...ux.intel.com>
To:	Tejun Heo <tj@...nel.org>
Cc:	linux-kernel@...r.kernel.org,
	Fengguang Wu <fengguang.wu@...el.com>,
	Yuanhan Liu <yuanhan.liu@...ux.intel.com>
Subject: BUG: unable to handle kernel NULL pointer dereference at
 0000000000000098

Greetings,

I got the below dmesg and the first bad commit is

commit 98de48a0e011f2ef497a0f0c40b79169198cf797
Author:     Tejun Heo <tj@...nel.org>
AuthorDate: Sat Nov 23 18:01:54 2013 -0500
Commit:     Tejun Heo <tj@...nel.org>
CommitDate: Sat Nov 23 18:01:54 2013 -0500

    sysfs, kernfs: make sysfs_dirent definition public
    
    sysfs_dirent includes some information which should be available to
    kernfs users - the type, flags, name and parent pointer.  This patch
    moves sysfs_dirent definition from kernfs/kernfs-internal.h to
    include/linux/kernfs.h so that kernfs users can access them.
    
    The type part of flags is exported as enum kernfs_node_type, the flags
    kernfs_node_flag, sysfs_type() and kernfs_enable_ns() are moved to
    include/linux/kernfs.h and the former is updated to return the enum
    type.  sysfs_dirent->s_parent and ->s_name are marked explicitly as
    public.
    
    This patch doesn't introduce any functional changes.
    
    v2: Flags exported too and kernfs_enable_ns() definition moved.
    
    Signed-off-by: Tejun Heo <tj@...nel.org>

+-----------------------------------------------------------+----+
|                                                           |    |
+-----------------------------------------------------------+----+
| boot_successes                                            | 0  |
| boot_failures                                             | 19 |
| BUG:unable_to_handle_kernel_NULL_pointer_dereference_at   | 19 |
| Oops:PREEMPT_SMP_DEBUG_PAGEALLOC                          | 19 |
| Kernel_panic-not_syncing:Attempted_to_kill_init_exitcode= | 19 |
+-----------------------------------------------------------+----+

[    0.370006] PCI: pci_cache_line_size set to 64 bytes
[    0.371089] e820: reserve RAM buffer [mem 0x0009fc00-0x0009ffff]
[    0.371976] e820: reserve RAM buffer [mem 0x0fffe000-0x0fffffff]
[    0.372911] BUG: unable to handle kernel NULL pointer dereference at 0000000000000098
[    0.374091] IP: [<ffffffff812fdbbb>] kobject_add_internal+0x1cb/0x6c0
[    0.375061] PGD 0 
[    0.375395] Oops: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC
[    0.376262] Modules linked in:
[    0.376738] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.13.0-rc1-00043-gd4b259a #1861
[    0.377871] task: ffff88000e180000 ti: ffff88000e188000 task.ti: ffff88000e188000
[    0.378952] RIP: 0010:[<ffffffff812fdbbb>]  [<ffffffff812fdbbb>] kobject_add_internal+0x1cb/0x6c0
[    0.380000] RSP: 0000:ffff88000e189dd0  EFLAGS: 00010246
[    0.380000] RAX: 0000000000000002 RBX: ffff88000e23fc58 RCX: 0000000000000000
[    0.380000] RDX: 0000000000000003 RSI: 0000000000000000 RDI: ffffffff81ad25f0
[    0.380000] RBP: ffff88000e189df8 R08: 0000000000000006 R09: 0000000000000000
[    0.380000] R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000
[    0.380000] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[    0.380000] FS:  0000000000000000(0000) GS:ffff88000ee00000(0000) knlGS:0000000000000000
[    0.380000] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[    0.380000] CR2: 0000000000000098 CR3: 0000000001a09000 CR4: 00000000000006f0
[    0.380000] Stack:
[    0.380000]  ffff88000e23fc58 ffffffff81a873c0 ffffffff828e87a8 0000000000000000
[    0.380000]  0000000000000000 ffff88000e189e10 ffffffff812fe2fb ffff88000e23fc00
[    0.380000]  ffff88000e189e48 ffffffff814049be 0000000000000000 0000000000000000
[    0.380000] Call Trace:
[    0.380000]  [<ffffffff812fe2fb>] kset_register+0x3b/0x70
[    0.380000]  [<ffffffff814049be>] __class_register+0x12e/0x280
[    0.380000]  [<ffffffff81f0a750>] ? netdev_init+0xa8/0xa8
[    0.380000]  [<ffffffff81493998>] netdev_kobject_init+0x28/0x30
[    0.380000]  [<ffffffff81f0a793>] net_dev_init+0x43/0x2a0
[    0.380000]  [<ffffffff81f0a750>] ? netdev_init+0xa8/0xa8
[    0.380000]  [<ffffffff810021e2>] do_one_initcall+0x172/0x220
[    0.380000]  [<ffffffff810b2db8>] ? parse_args+0x398/0x4c0
[    0.380000]  [<ffffffff81ec34a9>] kernel_init_freeable+0x1e8/0x2aa
[    0.380000]  [<ffffffff81ec2a1a>] ? do_early_param+0xc1/0xc1
[    0.380000]  [<ffffffff814ace80>] ? rest_init+0xd0/0xd0
[    0.380000]  [<ffffffff814ace8e>] kernel_init+0xe/0x1b0
[    0.380000]  [<ffffffff814ccecc>] ret_from_fork+0x7c/0xb0
[    0.380000]  [<ffffffff814ace80>] ? rest_init+0xd0/0xd0
[    0.380000] Code: e6 e8 ca da e7 ff 49 63 c4 48 83 c0 02 48 83 04 c5 00 90 c2 81 01 45 85 e4 74 02 0f 0b 4c 8b 6b 30 45 31 f6 48 c7 c7 f0 25 ad 81 <41> 0f b7 85 98 00 00 00 83 e0 0f 66 83 e8 01 41 0f 95 c6 31 d2 
[    0.380000] RIP  [<ffffffff812fdbbb>] kobject_add_internal+0x1cb/0x6c0
[    0.380000]  RSP <ffff88000e189dd0>
[    0.380000] CR2: 0000000000000098
[    0.380000] ---[ end trace 9bbf72a254dab526 ]---
[    0.380040] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009

git bisect start d4b259af1cffd6328bef5504d99e5a6fc1d41b87 6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae --
git bisect good f350d355ca11b9dc6188e4f2d1c5f11a1d3bd183  # 03:23     20+      0  sysfs, kernfs: remove sysfs_add_one()
git bisect good 42346deb79beac84ccbcef613b69a69c377a7866  # 03:27     20+      0  sysfs, kernfs: drop unused params from sysfs_fill_super()
git bisect good a56324773def6b40ea5ed1f7972cf37ae56aef92  # 03:31     20+      0  sysfs, kernfs: make inode number ida per kernfs_root
git bisect good d208332aad28490723750cac144a6f691380cea9  # 03:31     60+      0  sysfs, kernfs: move mount core code to fs/kernfs/mount.c
git bisect  bad afd27d9d3d1c69c4057343b3ed5c370af93d7491  # 03:31      0-     20  sysfs, kernfs: implement kernfs_ns_enabled()
git bisect  bad 98de48a0e011f2ef497a0f0c40b79169198cf797  # 03:31      0-     20  sysfs, kernfs: make sysfs_dirent definition public
# first bad commit: [98de48a0e011f2ef497a0f0c40b79169198cf797] sysfs, kernfs: make sysfs_dirent definition public
git bisect good d208332aad28490723750cac144a6f691380cea9  # 03:31     60+      0  sysfs, kernfs: move mount core code to fs/kernfs/mount.c
git bisect  bad d4b259af1cffd6328bef5504d99e5a6fc1d41b87  # 03:31      0-     19  sysfs, kernfs: remove cross inclusions of internal headers
git bisect good 7e3528c3660a2e8602abc7858b0994d611f74bc3  # 03:31     60+      0  slab.h: remove duplicate kmalloc declaration and fix kernel-doc warnings
git bisect good a05e9dfb656cd9184443f2e807c9c53c13a3815d  # 03:31     60+      0  Add linux-next specific files for 20131125


	--yliu

View attachment "dmesg-yocto-stoakley-3:20131124081957:x86_64-randconfig-a4-1124:3.13.0-rc1-00043-gd4b259a:1861" of type "text/plain" (30982 bytes)

View attachment "config-3.13.0-rc1-00043-gd4b259a" of type "text/plain" (50574 bytes)

Powered by blists - more mailing lists