NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/53674: kASAN: Unauthorized Access in file_ctor



>Number:         53674
>Category:       kern
>Synopsis:       kASAN: Unauthorized Access in file_ctor
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 18 18:10:00 +0000 2018
>Originator:     Thomas Klausner
>Release:        NetBSD 8.99.25
>Organization:
Curiosity is the very basis of education and if you tell me that 
curiosity killed the cat, I say only that the cat died nobly.
- Arnold Edinborough
>Environment:
	
	
Architecture: x86_64
Machine: amd64
>Description:
When running a kernel with
        makeoptions     KASAN=1         # Kernel Address Sanitizer                                 
        options         KASAN                                            
        no options      SVS                                          
I got multiple kASAN warnings in file_ctor with similar backtraces.

kASan: Unauthorized Access In 0xffffffff80e92a80: Addr 0xffffbf0044d791e8 [8 bytes, write]
#0 0xffffffff80e92a80 in file_ctor <netbsd>
#1 0xffffffff80f18d60 in pool_cache_get_slow <netbsd>
#2 0xffffffff80f1ade2 in pool_cache_get_paddr <netbsd>
#3 0xffffffff80e958c2 in fd_allocfile <netbsd>
#4 0xffffffff80f7004d in fsocreate <netbsd>
#5 0xffffffff80f7807c in sys___socket30 <netbsd>
#6 0xffffffff80265278 in syscall <netbsd>


kASan: Unauthorized Access In 0xffffffff80e92a80: Addr 0xffffbf0121ef9228 [8 bytes, write]
#0 0xffffffff80e92a80 in file_ctor <netbsd>
#1 0xffffffff80f18d60 in pool_cache_get_slow <netbsd>
#2 0xffffffff80f1ade2 in pool_cache_get_paddr <netbsd>
#3 0xffffffff80e958c2 in fd_allocfile <netbsd>
#4 0xffffffff80f78446 in do_sys_accept <netbsd>
#5 0xffffffff80f7b3bd in sys_accept <netbsd>
#6 0xffffffff80265278 in syscall <netbsd>

kASan: Unauthorized Access In 0xffffffff80e92a80: Addr 0xffffbf004e2a69e8 [8 bytes, write]
#0 0xffffffff80e92a80 in file_ctor <netbsd>
#1 0xffffffff80f18d60 in pool_cache_get_slow <netbsd>
#2 0xffffffff80f1ade2 in pool_cache_get_paddr <netbsd>
#3 0xffffffff80e958c2 in fd_allocfile <netbsd>
#4 0xffffffff80fa1eb9 in do_open <netbsd>
#5 0xffffffff80fa2229 in do_sys_openat <netbsd>
#6 0xffffffff80fa23b4 in sys_open <netbsd>
#7 0xffffffff80265278 in syscall <netbsd>

kASan: Unauthorized Access In 0xffffffff80e92a80: Addr 0xffffbf00e1640d68 [8 bytes, write]
#0 0xffffffff80e92a80 in file_ctor <netbsd>
#1 0xffffffff80f18d60 in pool_cache_get_slow <netbsd>
#2 0xffffffff80f1ade2 in pool_cache_get_paddr <netbsd>
#3 0xffffffff80e958c2 in fd_allocfile <netbsd>
#4 0xffffffff80f3922f in pipe1 <netbsd>
#5 0xffffffff80f2f7d3 in sys_pipe <netbsd>
#6 0xffffffff80265278 in syscall <netbsd>

>How-To-Repeat:
Run a KASAN kernel, wait (with my usual load).
>Fix:
not provided.

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index