====================================== | xx__-> [ 1169.487211][ T6946] ================================================================== | [ 1169.487489][ T6946] BUG: KASAN: global-out-of-bounds in snmp6_seq_show_item64.constprop.0 (net/ipv6/proc.c:211) | [ 1169.487810][ T6946] Read of size 8 at addr ffffffff9e0db9f0 by task cat/6946 | [ 1169.488060][ T6946] [ 1169.488160][ T6946] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 1169.488166][ T6946] Call Trace: [ 1169.488170][ T6946] [ 1169.488172][ T6946] dump_stack_lvl (lib/dump_stack.c:123) [ 1169.488181][ T6946] print_address_description.constprop.0 (mm/kasan/report.c:379) [ 1169.488201][ T6946] ? snmp6_seq_show_item64.constprop.0 (net/ipv6/proc.c:211) [ 1169.488205][ T6946] print_report (mm/kasan/report.c:483) [ 1169.488209][ T6946] ? snmp6_seq_show_item64.constprop.0 (net/ipv6/proc.c:211) [ 1169.488213][ T6946] ? kasan_addr_to_slab (./include/linux/mm.h:1180 mm/kasan/../slab.h:187 mm/kasan/common.c:38) [ 1169.488217][ T6946] ? snmp6_seq_show_item64.constprop.0 (net/ipv6/proc.c:211) [ 1169.488220][ T6946] kasan_report (mm/kasan/report.c:597) [ 1169.488225][ T6946] ? snmp6_seq_show_item64.constprop.0 (net/ipv6/proc.c:211) [ 1169.488230][ T6946] snmp6_seq_show_item64.constprop.0 (net/ipv6/proc.c:211) [ 1169.488236][ T6946] ? sockstat6_seq_show (net/ipv6/proc.c:202) [ 1169.488248][ T6946] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 1169.488262][ T6946] ? __kvmalloc_node_noprof (mm/slub.c:5055) [ 1169.488271][ T6946] snmp6_dev_seq_show (net/ipv6/proc.c:248) [ 1169.488274][ T6946] seq_read_iter (fs/seq_file.c:231) [ 1169.488286][ T6946] proc_reg_read_iter (./include/linux/instrumented.h:96 ./include/linux/atomic/atomic-instrumented.h:610 fs/proc/inode.c:205 fs/proc/inode.c:300) [ 1169.488300][ T6946] vfs_read (fs/read_write.c:492 fs/read_write.c:572) [ 1169.488307][ T6946] ? kernel_read (fs/read_write.c:553) [ 1169.488310][ T6946] ? lock_vma_under_rcu (./include/linux/rcupdate.h:874 mm/mmap_lock.c:170) [ 1169.488318][ T6946] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 1169.488331][ T6946] ksys_read (fs/read_write.c:715) [ 1169.488334][ T6946] ? vfs_write (fs/read_write.c:705) [ 1169.488336][ T6946] ? do_user_addr_fault (./arch/x86/include/asm/atomic.h:93 ./include/linux/atomic/atomic-arch-fallback.h:949 ./include/linux/atomic/atomic-instrumented.h:401 ./include/linux/refcount.h:389 ./include/linux/refcount.h:432 ./include/linux/mmap_lock.h:143 ./include/linux/mmap_lock.h:267 arch/x86/mm/fault.c:1338) [ 1169.488355][ T6946] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 1169.488362][ T6946] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 1169.488372][ T6946] RIP: 0033:0x7f64b9e0c292 [ 1169.488377][ T6946] 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 [ 1169.488380][ T6946] RSP: 002b:00007ffd8fbc3ee8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 [ 1169.488387][ T6946] RAX: ffffffffffffffda RBX: 0000000000020000 RCX: 00007f64b9e0c292 [ 1169.488389][ T6946] RDX: 0000000000020000 RSI: 00007f64b9cea000 RDI: 0000000000000005 [ 1169.488392][ T6946] RBP: 00007f64b9cea000 R08: 00007f64b9ce9010 R09: 0000000000000000 [ 1169.488393][ T6946] R10: 0000000000000022 R11: 0000000000000246 R12: 0000000000022000 Finger prints: print_report:kasan_report:snmp6_dev_seq_show:seq_read_iter:proc_reg_read_iter