Bug 196565 - BUG: unable to handle kernel NULL pointer; IP: sysfs_kf_seq_show+0xaa/0x1a0
Summary: BUG: unable to handle kernel NULL pointer; IP: sysfs_kf_seq_show+0xaa/0x1a0
Status: NEW
Alias: None
Product: File System
Classification: Unclassified
Component: Other (show other bugs)
Hardware: Intel Linux
: P1 normal
Assignee: fs_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-02 09:09 UTC by JianhongYin
Modified: 2017-08-02 09:11 UTC (History)
0 users

See Also:
Kernel Version: 4.13.0-rc3
Subsystem:
Regression: No
Bisected commit-id:


Attachments
full console log (102.41 KB, application/x-gtar)
2017-08-02 09:11 UTC, JianhongYin
Details

Description JianhongYin 2017-08-02 09:09:42 UTC
always panic on my workstation, during update latest upstream kernel-4.13-rc3

System:
  Host Hypervisor (not virtualized)
  Vendor 	HPE / SGI
  Model 	UV300
  Serial Number 	UV300-00000113
  MAC Address 	08:00:69:17:3A:0B
  Memory 	1001512 MB
  NUMA Nodes 	4
CPU
  Vendor 	GenuineIntel
  Model Name 	Intel(R) Xeon(R) CPU E7-8857 v2 @ 3.00GHz
  Family 	6
  Model 	62
  Stepping 	7
  Speed 	2999.99
  Processors 	48
  Cores 	48
  Sockets 	4
  Hyper 	False
  Flags 	fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
  Arch(s) 	x86_64 


'''
[   27.411374] BUG: unable to handle kernel NULL pointer dereference at           (null) 
[   27.420133] IP: sysfs_kf_seq_show+0xaa/0x1a0 
[   27.424900] PGD bd0504d067  
[   27.424901] P4D bd0504d067  
[   27.428008] PUD bcfefbe067  
[   27.431125] PMD 0  
[   27.434241]  
[   27.438147] Oops: 0000 [#1] SMP 
[   27.441645] Modules linked in: intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm vfat fat irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel ipmi_si(+) crypto_simd iTCO_wdt ipmi_devintf glue_helper iTCO_vendor_support nfsd cryptd sg joydev ipmi_msghandler pcspkr ioatdma shpchp i2c_i801 lpc_ich wmi auth_rpcgss nfs_acl lockd grace sunrpc ip_tables xfs libcrc32c sr_mod cdrom raid0 sd_mod mgag200 drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops ttm igb drm ahci ptp libahci crc32c_intel pps_core libata dca i2c_algo_bit i2c_core uas usb_storage dm_mirror dm_region_hash dm_log dm_mod 
[   27.504587] CPU: 23 PID: 2077 Comm: lspci Not tainted 4.13.0-rc3 #1 
[   27.511583] Hardware name: SGI UV300/UV300, BIOS SGI UV 300 series BIOS 05/25/2016 
[   27.520025] task: ffff9a7083ff5d00 task.stack: ffffa9a15c91c000 
[   27.526633] RIP: 0010:sysfs_kf_seq_show+0xaa/0x1a0 
[   27.531978] RSP: 0018:ffffa9a15c91fd50 EFLAGS: 00010246 
[   27.537809] RAX: 0000000000000000 RBX: ffff9a33f8575c80 RCX: 0000000000000000 
[   27.545773] RDX: ffff9a708462a000 RSI: ffff9a7086bb1c80 RDI: ffff9a708462b000 
[   27.553740] RBP: ffffa9a15c91fd60 R08: ffff99f3ffdf70b0 R09: 0000000000000000 
[   27.561704] R10: 0000000000001000 R11: 0000000000000000 R12: 0000000000000000 
[   27.569668] R13: 0000000000000001 R14: ffffa9a15c91fef0 R15: ffff9a33f8575c80 
[   27.577633] FS:  00007f9940e90740(0000) GS:ffff9a7086cc0000(0000) knlGS:0000000000000000 
[   27.586663] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
[   27.593077] CR2: 0000000000000000 CR3: 000000bd0552e000 CR4: 00000000001406e0 
[   27.601043] Call Trace: 
[   27.603784]  kernfs_seq_show+0x21/0x30 
[   27.607977]  seq_read+0x116/0x3b0 
[   27.611689]  ? do_mmap+0x405/0x4e0 
[   27.615486]  kernfs_fop_read+0xff/0x180 
[   27.619780]  __vfs_read+0x37/0x160 
[   27.623587]  ? security_file_permission+0x9d/0xc0 
[   27.628837]  vfs_read+0x8c/0x130 
[   27.632440]  SyS_read+0x55/0xc0 
[   27.635951]  do_syscall_64+0x67/0x150 
[   27.640048]  entry_SYSCALL64_slow_path+0x25/0x25 
[   27.645196] RIP: 0033:0x7f99405827e0 
[   27.649186] RSP: 002b:00007ffc5698d418 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 
[   27.657636] RAX: ffffffffffffffda RBX: 0000000000f037c0 RCX: 00007f99405827e0 
[   27.665601] RDX: 0000000000001000 RSI: 00007f9940e9e000 RDI: 0000000000000004 
[   27.673564] RBP: 000000000000000a R08: ffffffffffffffff R09: 0000000000000000 
[   27.681530] R10: 0000000000000022 R11: 0000000000000246 R12: 0000000000000000 
[   27.689486] R13: 0000000000000000 R14: 0000000000f037c0 R15: 00000000000000ff 
[   27.697452] Code: d9 00 00 00 40 f6 c7 04 0f 85 e2 00 00 00 44 89 c9 31 c0 c1 e9 03 41 f6 c1 04 f3 48 ab 75 77 41 f6 c1 02 75 5f 41 83 e1 01 75 48 <49> 8b 04 24 48 85 c0 74 4b 48 8b 0e 4c 89 c7 48 8b 71 60 ff d0  
[   27.718545] RIP: sysfs_kf_seq_show+0xaa/0x1a0 RSP: ffffa9a15c91fd50 
[   27.725540] CR2: 0000000000000000 
[   27.729326] ---[ end trace 411375212e21d327 ]--- 
[   27.734515] Kernel panic - not syncing: Fatal exception 
[   27.740396] Kernel Offset: 0x1e200000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) 
[   27.752446] ---[ end Kernel panic - not syncing: Fatal exception 
[   27.759172] sched: Unexpected reschedule of offline CPU#12! 
[   27.765405] ------------[ cut here ]------------ 
[   27.770570] WARNING: CPU: 23 PID: 2077 at arch/x86/kernel/smp.c:128 native_smp_send_reschedule+0x3c/0x40 
[   27.781154] Modules linked in: intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm vfat fat irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel ipmi_si(+) crypto_simd iTCO_wdt ipmi_devintf glue_helper iTCO_vendor_support nfsd cryptd sg joydev ipmi_msghandler pcspkr ioatdma shpchp i2c_i801 lpc_ich wmi auth_rpcgss nfs_acl lockd grace sunrpc ip_tables xfs libcrc32c sr_mod cdrom raid0 sd_mod mgag200 drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops ttm igb drm ahci ptp libahci crc32c_intel pps_core libata dca i2c_algo_bit i2c_core uas usb_storage dm_mirror dm_region_hash dm_log dm_mod 
[   27.844056] CPU: 23 PID: 2077 Comm: lspci Tainted: G      D         4.13.0-rc3 #1 
[   27.852408] Hardware name: SGI UV300/UV300, BIOS SGI UV 300 series BIOS 05/25/2016 
[   27.860856] task: ffff9a7083ff5d00 task.stack: ffffa9a15c91c000 
[   27.867468] RIP: 0010:native_smp_send_reschedule+0x3c/0x40 
[   27.873590] RSP: 0018:ffff9a7086cc3c18 EFLAGS: 00010046 
[   27.879418] RAX: 000000000000002f RBX: 000000000000000c RCX: 0000000000000000 
[   27.887385] RDX: 0000000000000000 RSI: ffff9a7086cce018 RDI: ffff9a7086cce018 
[   27.895349] RBP: ffff9a7086cc3c18 R08: 00000000fffffffe R09: 0000000000000914 
[   27.903316] R10: 0000000000000005 R11: 0000000000000913 R12: ffff9a7086a1bc80 
[   27.911279] R13: ffff9a7083511740 R14: ffff9a7086cc3cd0 R15: ffff9a7086a1bc80 
[   27.919246] FS:  00007f9940e90740(0000) GS:ffff9a7086cc0000(0000) knlGS:0000000000000000 
[   27.928277] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
[   27.934690] CR2: 0000000000000000 CR3: 000000bd0552e000 CR4: 00000000001406e0 
[   27.942655] Call Trace: 
[   27.945388]  <IRQ> 
[   27.947649]  resched_curr+0xa1/0xc0 
[   27.951543]  check_preempt_curr+0x79/0x90 
[   27.956019]  ttwu_do_wakeup+0x1e/0x160 
[   27.960196]  ttwu_do_activate+0x7a/0x90 
[   27.964471]  try_to_wake_up+0x1e1/0x470 
[   27.968754]  default_wake_function+0x12/0x20 
[   27.973531]  __wake_up_common+0x55/0x90 
[   27.977804]  __wake_up_locked+0x13/0x20 
[   27.982097]  ep_poll_callback+0xd3/0x2a0 
[   27.986474]  __wake_up_common+0x55/0x90 
[   27.990756]  __wake_up+0x39/0x50 
[   27.994366]  wake_up_klogd_work_func+0x40/0x60 
[   27.999343]  irq_work_run_list+0x4d/0x70 
[   28.003733]  ? tick_sched_do_timer+0x70/0x70 
[   28.008500]  irq_work_tick+0x40/0x50 
[   28.012495]  update_process_times+0x42/0x60 
[   28.017166]  tick_sched_handle+0x2d/0x60 
[   28.021544]  tick_sched_timer+0x39/0x70 
[   28.025826]  __hrtimer_run_queues+0xe5/0x230 
[   28.030594]  hrtimer_interrupt+0xa8/0x1a0 
[   28.035078]  local_apic_timer_interrupt+0x35/0x60 
[   28.040334]  smp_apic_timer_interrupt+0x38/0x50 
[   28.045392]  apic_timer_interrupt+0x93/0xa0 
[   28.050060] RIP: 0010:panic+0x1fd/0x245 
[   28.054340] RSP: 0018:ffffa9a15c91fa88 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff10 
[   28.062792] RAX: 0000000000000034 RBX: 0000000000000200 RCX: 0000000000000006 
[   28.070756] RDX: 0000000000000000 RSI: 0000000000000082 RDI: ffff9a7086cce010 
[   28.078721] RBP: ffffa9a15c91faf8 R08: 00000000fffffffe R09: 0000000000000913 
[   28.086685] R10: 0000000000000005 R11: 0000000000000912 R12: ffffffff9fc330c8 
[   28.094650] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000246 
[   28.102615]  </IRQ> 
[   28.104959]  ? panic+0x1f6/0x245 
[   28.108573]  oops_end+0xb8/0xd0 
[   28.112087]  no_context+0x1a8/0x400 
[   28.115972]  __bad_area_nosemaphore+0xee/0x1d0 
[   28.120934]  bad_area+0x46/0x4d 
[   28.124431]  __do_page_fault+0x3f3/0x4a0 
[   28.128814]  ? down_write+0x12/0x40 
[   28.132712]  ? anon_vma_interval_tree_insert+0x84/0x90 
[   28.138449]  do_page_fault+0x30/0x80 
[   28.142432]  page_fault+0x28/0x30 
[   28.146125] RIP: 0010:sysfs_kf_seq_show+0xaa/0x1a0 
[   28.151471] RSP: 0018:ffffa9a15c91fd50 EFLAGS: 00010246 
[   28.157305] RAX: 0000000000000000 RBX: ffff9a33f8575c80 RCX: 0000000000000000 
[   28.165270] RDX: ffff9a708462a000 RSI: ffff9a7086bb1c80 RDI: ffff9a708462b000 
[   28.173236] RBP: ffffa9a15c91fd60 R08: ffff99f3ffdf70b0 R09: 0000000000000000 
[   28.181202] R10: 0000000000001000 R11: 0000000000000000 R12: 0000000000000000 
[   28.189167] R13: 0000000000000001 R14: ffffa9a15c91fef0 R15: ffff9a33f8575c80 
[   28.197134]  kernfs_seq_show+0x21/0x30 
[   28.201317]  seq_read+0x116/0x3b0 
[   28.205019]  ? do_mmap+0x405/0x4e0 
[   28.208817]  kernfs_fop_read+0xff/0x180 
[   28.213101]  __vfs_read+0x37/0x160 
[   28.216898]  ? security_file_permission+0x9d/0xc0 
[   28.222151]  vfs_read+0x8c/0x130 
[   28.225753]  SyS_read+0x55/0xc0 
[   28.229260]  do_syscall_64+0x67/0x150 
[   28.233339]  entry_SYSCALL64_slow_path+0x25/0x25 
[   28.238494] RIP: 0033:0x7f99405827e0 
[   28.242482] RSP: 002b:00007ffc5698d418 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 
[   28.250934] RAX: ffffffffffffffda RBX: 0000000000f037c0 RCX: 00007f99405827e0 
[   28.258900] RDX: 0000000000001000 RSI: 00007f9940e9e000 RDI: 0000000000000004 
[   28.266865] RBP: 000000000000000a R08: ffffffffffffffff R09: 0000000000000000 
[   28.274831] R10: 0000000000000022 R11: 0000000000000246 R12: 0000000000000000 
[   28.282798] R13: 0000000000000000 R14: 0000000000f037c0 R15: 00000000000000ff 
[   28.290763] Code: dd 00 0f 92 c0 84 c0 74 14 48 8b 05 5f f8 a9 00 be fd 00 00 00 ff 90 a0 00 00 00 5d c3 89 fe 48 c7 c7 10 a2 c3 9f e8 c7 d6 09 00 <0f> ff 5d c3 0f 1f 44 00 00 55 48 89 e5 48 83 ec 20 65 48 8b 04  
[   28.311863] ---[ end trace 411375212e21d328 ]--- 
[   28.317031] sched: Unexpected reschedule of offline CPU#0! 
[   28.323155] ------------[ cut here ]------------ 
[   28.328311] WARNING: CPU: 23 PID: 2077 at arch/x86/kernel/smp.c:128 native_smp_send_reschedule+0x3c/0x40 
[   28.338895] Modules linked in: intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm vfat fat irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel ipmi_si(+) crypto_simd iTCO_wdt ipmi_devintf glue_helper iTCO_vendor_support nfsd cryptd sg joydev ipmi_msghandler pcspkr ioatdma shpchp i2c_i801 lpc_ich wmi auth_rpcgss nfs_acl lockd grace sunrpc ip_tables xfs libcrc32c sr_mod cdrom raid0 sd_mod mgag200 drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops ttm igb drm ahci ptp libahci crc32c_intel pps_core libata dca i2c_algo_bit i2c_core uas usb_storage dm_mirror dm_region_hash dm_log dm_mod 
[   28.401793] CPU: 23 PID: 2077 Comm: lspci Tainted: G      D W       4.13.0-rc3 #1 
[   28.410146] Hardware name: SGI UV300/UV300, BIOS SGI UV 300 series BIOS 05/25/2016 
[   28.418596] task: ffff9a7083ff5d00 task.stack: ffffa9a15c91c000 
[   28.425207] RIP: 0010:native_smp_send_reschedule+0x3c/0x40 
[   28.431329] RSP: 0018:ffff9a7086cc3e50 EFLAGS: 00010046 
[   28.437161] RAX: 000000000000002e RBX: 0000000000000000 RCX: 0000000000000006 
[   28.445127] RDX: 0000000000000000 RSI: 0000000000000096 RDI: ffff9a7086cce010 
[   28.453094] RBP: ffff9a7086cc3e50 R08: 00000000fffffffe R09: 000000000000096a 
[   28.461060] R10: 0000000000000005 R11: 0000000000000969 R12: 0000000000000017 
[   28.469024] R13: 00000000fffbd890 R14: ffff9a7083ff5d00 R15: ffff9a7086cd4728 
[   28.476989] FS:  00007f9940e90740(0000) GS:ffff9a7086cc0000(0000) knlGS:0000000000000000 
[   28.486020] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 
[   28.492434] CR2: 0000000000000000 CR3: 000000bd0552e000 CR4: 00000000001406e0 
[   28.500400] Call Trace: 
[   28.503127]  <IRQ> 
[   28.505380]  trigger_load_balance+0x10e/0x1f0 
[   28.510243]  scheduler_tick+0xab/0xe0 
[   28.514330]  ? tick_sched_do_timer+0x70/0x70 
[   28.519095]  update_process_times+0x47/0x60 
[   28.523764]  tick_sched_handle+0x2d/0x60 
[   28.528143]  tick_sched_timer+0x39/0x70 
[   28.532423]  __hrtimer_run_queues+0xe5/0x230 
[   28.537189]  hrtimer_interrupt+0xa8/0x1a0 
[   28.541666]  local_apic_timer_interrupt+0x35/0x60 
[   28.546908]  smp_apic_timer_interrupt+0x38/0x50 
[   28.551963]  apic_timer_interrupt+0x93/0xa0 
[   28.556631] RIP: 0010:panic+0x1fd/0x245 
[   28.560909] RSP: 0018:ffffa9a15c91fa88 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff10 
[   28.569361] RAX: 0000000000000034 RBX: 0000000000000200 RCX: 0000000000000006 
[   28.577325] RDX: 0000000000000000 RSI: 0000000000000082 RDI: ffff9a7086cce010 
[   28.585288] RBP: ffffa9a15c91faf8 R08: 00000000fffffffe R09: 0000000000000913 
[   28.593252] R10: 0000000000000005 R11: 0000000000000912 R12: ffffffff9fc330c8 
[   28.601215] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000246 
[   28.609181]  </IRQ> 
[   28.611523]  ? panic+0x1f6/0x245 
[   28.615127]  oops_end+0xb8/0xd0 
[   28.618622]  no_context+0x1a8/0x400 
[   28.622515]  __bad_area_nosemaphore+0xee/0x1d0 
[   28.627475]  bad_area+0x46/0x4d 
[   28.630981]  __do_page_fault+0x3f3/0x4a0 
[   28.635359]  ? down_write+0x12/0x40 
[   28.639253]  ? anon_vma_interval_tree_insert+0x84/0x90 
[   28.644989]  do_page_fault+0x30/0x80 
[   28.648981]  page_fault+0x28/0x30 
[   28.652672] RIP: 0010:sysfs_kf_seq_show+0xaa/0x1a0 
[   28.658017] RSP: 0018:ffffa9a15c91fd50 EFLAGS: 00010246 
[   28.663850] RAX: 0000000000000000 RBX: ffff9a33f8575c80 RCX: 0000000000000000 
[   28.671815] RDX: ffff9a708462a000 RSI: ffff9a7086bb1c80 RDI: ffff9a708462b000 
[   28.679781] RBP: ffffa9a15c91fd60 R08: ffff99f3ffdf70b0 R09: 0000000000000000 
[   28.687745] R10: 0000000000001000 R11: 0000000000000000 R12: 0000000000000000 
[   28.695709] R13: 0000000000000001 R14: ffffa9a15c91fef0 R15: ffff9a33f8575c80 
[   28.703681]  kernfs_seq_show+0x21/0x30 
[   28.707865]  seq_read+0x116/0x3b0 
[   28.711566]  ? do_mmap+0x405/0x4e0 
[   28.715365]  kernfs_fop_read+0xff/0x180 
[   28.719648]  __vfs_read+0x37/0x160 
[   28.723437]  ? security_file_permission+0x9d/0xc0 
[   28.728690]  vfs_read+0x8c/0x130 
[   28.732293]  SyS_read+0x55/0xc0 
[   28.735800]  do_syscall_64+0x67/0x150 
[   28.739890]  entry_SYSCALL64_slow_path+0x25/0x25 
[   28.745043] RIP: 0033:0x7f99405827e0 
[   28.749032] RSP: 002b:00007ffc5698d418 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 
[   28.757484] RAX: ffffffffffffffda RBX: 0000000000f037c0 RCX: 00007f99405827e0 
[   28.765449] RDX: 0000000000001000 RSI: 00007f9940e9e000 RDI: 0000000000000004 
[   28.773414] RBP: 000000000000000a R08: ffffffffffffffff R09: 0000000000000000 
[   28.781380] R10: 0000000000000022 R11: 0000000000000246 R12: 0000000000000000 
[   28.789344] R13: 0000000000000000 R14: 0000000000f037c0 R15: 00000000000000ff 
[   28.797311] Code: dd 00 0f 92 c0 84 c0 74 14 48 8b 05 5f f8 a9 00 be fd 00 00 00 ff 90 a0 00 00 00 5d c3 89 fe 48 c7 c7 10 a2 c3 9f e8 c7 d6 09 00 <0f> ff 5d c3 0f 1f 44 00 00 55 48 89 e5 48 83 ec 20 65 48 8b 04  
[   28.818408] ---[ end trace 411375212e21d329 ]--- 
[-- MARK -- Wed Aug  2 08:00:00 2017] 
[-- MARK -- Wed Aug  2 08:05:00 2017] 
'''
Comment 1 JianhongYin 2017-08-02 09:11:50 UTC
Created attachment 257797 [details]
full console log

Note You need to log in before you can comment on or make changes to this bug.