====================================== | xx__-> [ 403.891067][ T3670] ================================================================== | [ 403.891364][ T3670] BUG: KASAN: global-out-of-bounds in snmp6_seq_show_item64.constprop.0 (net/ipv6/proc.c:211) | [ 403.891665][ T3670] Read of size 8 at addr ffffffff878e84b0 by task nstat/3670 | [ 403.891917][ T3670] [ 403.892027][ T3670] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 403.892030][ T3670] Call Trace: [ 403.892032][ T3670] [ 403.892034][ T3670] dump_stack_lvl (lib/dump_stack.c:123) [ 403.892043][ T3670] print_address_description.constprop.0 (mm/kasan/report.c:379) [ 403.892051][ T3670] ? snmp6_seq_show_item64.constprop.0 (net/ipv6/proc.c:211) [ 403.892055][ T3670] print_report (mm/kasan/report.c:483) [ 403.892058][ T3670] ? snmp6_seq_show_item64.constprop.0 (net/ipv6/proc.c:211) [ 403.892060][ T3670] ? kasan_addr_to_slab (./include/linux/mm.h:1180 mm/kasan/../slab.h:187 mm/kasan/common.c:38) [ 403.892064][ T3670] ? snmp6_seq_show_item64.constprop.0 (net/ipv6/proc.c:211) [ 403.892067][ T3670] kasan_report (mm/kasan/report.c:597) [ 403.892071][ T3670] ? snmp6_seq_show_item64.constprop.0 (net/ipv6/proc.c:211) [ 403.892076][ T3670] snmp6_seq_show_item64.constprop.0 (net/ipv6/proc.c:211) [ 403.892081][ T3670] ? sockstat6_seq_show (net/ipv6/proc.c:202) [ 403.892091][ T3670] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 403.892099][ T3670] ? trace_kmalloc (./include/trace/events/kmem.h:54 (discriminator 21)) [ 403.892105][ T3670] ? __kvmalloc_node_noprof (mm/slub.c:5055) [ 403.892110][ T3670] snmp6_seq_show (net/ipv6/proc.c:224) [ 403.892113][ T3670] seq_read_iter (fs/seq_file.c:231) [ 403.892122][ T3670] seq_read (fs/seq_file.c:163) [ 403.892125][ T3670] ? seq_read_iter (fs/seq_file.c:152) [ 403.892129][ T3670] ? __might_fault (mm/memory.c:6958 mm/memory.c:6952) [ 403.892134][ T3670] ? __lock_release (kernel/locking/lockdep.c:5536) [ 403.892140][ T3670] ? __might_fault (mm/memory.c:6958 mm/memory.c:6952) [ 403.892145][ T3670] ? cp_old_stat (fs/stat.c:471) [ 403.892151][ T3670] proc_reg_read (fs/proc/inode.c:308 fs/proc/inode.c:320) [ 403.892158][ T3670] vfs_read (fs/read_write.c:570) [ 403.892163][ T3670] ? vfs_getattr_nosec (fs/stat.c:218) [ 403.892166][ T3670] ? kernel_read (fs/read_write.c:553) [ 403.892170][ T3670] ? __do_sys_newfstat (fs/stat.c:551) [ 403.892173][ T3670] ? __do_sys_fstat (fs/stat.c:551) [ 403.892179][ T3670] ksys_read (fs/read_write.c:715) [ 403.892182][ T3670] ? vfs_write (fs/read_write.c:705) [ 403.892188][ T3670] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 403.892193][ T3670] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 403.892196][ T3670] RIP: 0033:0x7f565ed1c292 [ 403.892201][ T3670] Code: c0 e9 b2 fe ff ff 50 48 8d 3d 6a 15 0c 00 e8 65 e1 01 00 0f 1f 44 00 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 0f 05 <48> 3d 00 f0 ff ff 77 56 c3 0f 1f 44 00 00 48 83 ec 28 48 89 54 24 All code ======== 0: c0 e9 b2 shr $0xb2,%cl 3: fe (bad) 4: ff (bad) 5: ff 50 48 call *0x48(%rax) 8: 8d 3d 6a 15 0c 00 lea 0xc156a(%rip),%edi # 0xc1578 e: e8 65 e1 01 00 call 0x1e178 13: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 18: f3 0f 1e fa endbr64 1c: 64 8b 04 25 18 00 00 mov %fs:0x18,%eax 23: 00 24: 85 c0 test %eax,%eax 26: 75 10 jne 0x38 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 56 ja 0x88 32: c3 ret 33: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 38: 48 83 ec 28 sub $0x28,%rsp 3c: 48 rex.W 3d: 89 .byte 0x89 3e: 54 push %rsp 3f: 24 .byte 0x24 Code starting with the faulting instruction =========================================== 0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 56 ja 0x5e 8: c3 ret 9: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) e: 48 83 ec 28 sub $0x28,%rsp 12: 48 rex.W 13: 89 .byte 0x89 14: 54 push %rsp 15: 24 .byte 0x24 [ 403.892204][ T3670] RSP: 002b:00007fffa3687038 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 [ 403.892211][ T3670] RAX: ffffffffffffffda RBX: 0000000034607920 RCX: 00007f565ed1c292 [ 403.892213][ T3670] RDX: 0000000000000400 RSI: 0000000034606500 RDI: 0000000000000006 [ 403.892215][ T3670] RBP: 00007f565ee145c0 R08: 0000000000000006 R09: 0000000000000000 [ 403.892216][ T3670] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000034607920 Finger prints: print_report:kasan_report:snmp6_seq_show:seq_read_iter:seq_read