====================================== | [ 21.531554][ T308] ================================================================== | [ 21.531829][ T308] BUG: KASAN: global-out-of-bounds in snmp6_seq_show_item64.constprop.0 (net/ipv6/proc.c:211) | [ 21.532122][ T308] Read of size 8 at addr ffffffff98ee3970 by task nstat/308 | [ 21.532360][ T308] [ 21.532450][ T308] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 21.532453][ T308] Call Trace: [ 21.532455][ T308] [ 21.532458][ T308] dump_stack_lvl (lib/dump_stack.c:123) [ 21.532467][ T308] print_address_description.constprop.0 (mm/kasan/report.c:379) [ 21.532474][ T308] ? snmp6_seq_show_item64.constprop.0 (net/ipv6/proc.c:211) [ 21.532478][ T308] print_report (mm/kasan/report.c:483) [ 21.532481][ T308] ? snmp6_seq_show_item64.constprop.0 (net/ipv6/proc.c:211) [ 21.532485][ T308] ? kasan_addr_to_slab (./include/linux/mm.h:1180 mm/kasan/../slab.h:187 mm/kasan/common.c:38) [ 21.532488][ T308] ? snmp6_seq_show_item64.constprop.0 (net/ipv6/proc.c:211) [ 21.532491][ T308] kasan_report (mm/kasan/report.c:597) [ 21.532495][ T308] ? snmp6_seq_show_item64.constprop.0 (net/ipv6/proc.c:211) [ 21.532501][ T308] snmp6_seq_show_item64.constprop.0 (net/ipv6/proc.c:211) [ 21.532507][ T308] ? sockstat6_seq_show (net/ipv6/proc.c:202) [ 21.532519][ T308] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 21.532526][ T308] ? trace_kmalloc (./include/trace/events/kmem.h:54 (discriminator 21)) [ 21.532532][ T308] ? __kvmalloc_node_noprof (mm/slub.c:5055) [ 21.532537][ T308] snmp6_seq_show (net/ipv6/proc.c:224) [ 21.532541][ T308] seq_read_iter (fs/seq_file.c:231) [ 21.532551][ T308] seq_read (fs/seq_file.c:163) [ 21.532554][ T308] ? seq_read_iter (fs/seq_file.c:152) [ 21.532558][ T308] ? __might_fault (mm/memory.c:6958 mm/memory.c:6952) [ 21.532565][ T308] ? __might_fault (mm/memory.c:6958 mm/memory.c:6952) [ 21.532569][ T308] ? cp_new_stat (fs/stat.c:471) [ 21.532573][ T308] ? inode_set_bytes (fs/stat.c:471) [ 21.532577][ T308] proc_reg_read (fs/proc/inode.c:308 fs/proc/inode.c:320) [ 21.532584][ T308] vfs_read (fs/read_write.c:570) [ 21.532589][ T308] ? vfs_getattr_nosec (fs/stat.c:218) [ 21.532592][ T308] ? kernel_read (fs/read_write.c:553) [ 21.532595][ T308] ? vfs_fstat (./include/linux/file.h:62 ./include/linux/file.h:84 fs/stat.c:278) [ 21.532598][ T308] ? __do_sys_newfstat (fs/stat.c:551) [ 21.532601][ T308] ? __do_sys_fstat (fs/stat.c:551) [ 21.532607][ T308] ksys_read (fs/read_write.c:715) [ 21.532610][ T308] ? vfs_write (fs/read_write.c:705) [ 21.532616][ T308] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 21.532624][ T308] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 21.532628][ T308] RIP: 0033:0x7ff552628292 [ 21.532632][ T308] 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 [ 21.532635][ T308] RSP: 002b:00007ffcbb2fb348 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 [ 21.532640][ T308] RAX: ffffffffffffffda RBX: 0000000032b80910 RCX: 00007ff552628292 [ 21.532642][ T308] RDX: 0000000000000400 RSI: 0000000032b80500 RDI: 0000000000000006 [ 21.532644][ T308] RBP: 00007ff5527205c0 R08: 0000000000000006 R09: 0000000000000000 [ 21.532647][ T308] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000032b80910 Finger prints: print_report:kasan_report:snmp6_seq_show:seq_read_iter:seq_read