====================================== | xx__-> [ 24.857564][ T339] ================================================================== | [ 24.857892][ T339] BUG: KASAN: global-out-of-bounds in snmp6_seq_show_item64.constprop.0 (net/ipv6/proc.c:211) | [ 24.858162][ T339] Read of size 8 at addr ffffffff8cae3970 by task nstat/339 | [ 24.858389][ T339] [ 24.858474][ T339] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 24.858476][ T339] Call Trace: [ 24.858478][ T339] [ 24.858480][ T339] dump_stack_lvl (lib/dump_stack.c:123) [ 24.858486][ T339] print_address_description.constprop.0 (mm/kasan/report.c:379) [ 24.858491][ T339] ? snmp6_seq_show_item64.constprop.0 (net/ipv6/proc.c:211) [ 24.858496][ T339] print_report (mm/kasan/report.c:483) [ 24.858499][ T339] ? snmp6_seq_show_item64.constprop.0 (net/ipv6/proc.c:211) [ 24.858502][ T339] ? kasan_addr_to_slab (./include/linux/mm.h:1180 mm/kasan/../slab.h:187 mm/kasan/common.c:38) [ 24.858505][ T339] ? snmp6_seq_show_item64.constprop.0 (net/ipv6/proc.c:211) [ 24.858508][ T339] kasan_report (mm/kasan/report.c:597) [ 24.858512][ T339] ? snmp6_seq_show_item64.constprop.0 (net/ipv6/proc.c:211) [ 24.858518][ T339] snmp6_seq_show_item64.constprop.0 (net/ipv6/proc.c:211) [ 24.858523][ T339] ? sockstat6_seq_show (net/ipv6/proc.c:202) [ 24.858535][ T339] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 24.858541][ T339] ? trace_kmalloc (./include/trace/events/kmem.h:54 (discriminator 21)) [ 24.858545][ T339] ? __kvmalloc_node_noprof (mm/slub.c:5055) [ 24.858550][ T339] snmp6_seq_show (net/ipv6/proc.c:224) [ 24.858554][ T339] seq_read_iter (fs/seq_file.c:231) [ 24.858562][ T339] seq_read (fs/seq_file.c:163) [ 24.858565][ T339] ? seq_read_iter (fs/seq_file.c:152) [ 24.858569][ T339] ? __might_fault (mm/memory.c:6958 mm/memory.c:6952) [ 24.858573][ T339] ? rcu_read_unlock.cold (./include/linux/rcupdate.h:869) [ 24.858579][ T339] ? __might_fault (mm/memory.c:6958 mm/memory.c:6952) [ 24.858583][ T339] ? cp_new_stat (fs/stat.c:471) [ 24.858586][ T339] ? inode_set_bytes (fs/stat.c:471) [ 24.858591][ T339] proc_reg_read (fs/proc/inode.c:308 fs/proc/inode.c:320) [ 24.858596][ T339] vfs_read (fs/read_write.c:570) [ 24.858600][ T339] ? vfs_getattr_nosec (fs/stat.c:218) [ 24.858603][ T339] ? kernel_read (fs/read_write.c:553) [ 24.858606][ T339] ? vfs_fstat (./include/linux/file.h:62 ./include/linux/file.h:84 fs/stat.c:278) [ 24.858609][ T339] ? __do_sys_newfstat (fs/stat.c:551) [ 24.858612][ T339] ? __do_sys_fstat (fs/stat.c:551) [ 24.858618][ T339] ksys_read (fs/read_write.c:715) [ 24.858622][ T339] ? vfs_write (fs/read_write.c:705) [ 24.858627][ T339] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 24.858633][ T339] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 24.858636][ T339] RIP: 0033:0x7f17265ac292 [ 24.858640][ T339] 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 [ 24.858643][ T339] RSP: 002b:00007ffc4d17fe88 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 [ 24.858647][ T339] RAX: ffffffffffffffda RBX: 00000000131ef910 RCX: 00007f17265ac292 [ 24.858649][ T339] RDX: 0000000000000400 RSI: 00000000131ef500 RDI: 0000000000000006 [ 24.858651][ T339] RBP: 00007f17266a45c0 R08: 0000000000000006 R09: 0000000000000000 [ 24.858652][ T339] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000131ef910 Finger prints: print_report:kasan_report:snmp6_seq_show:seq_read_iter:seq_read