diff --git a/adapter/syscall/ff_hook_syscall.c b/adapter/syscall/ff_hook_syscall.c index 165471a1d..b4f11e2c0 100644 --- a/adapter/syscall/ff_hook_syscall.c +++ b/adapter/syscall/ff_hook_syscall.c @@ -795,7 +795,7 @@ ff_hook_recv(int fd, void *buf, size_t len, int flags) } ssize_t -ff_hook___recv_chk(int fd, void *buf, size_t buflen, size_t len, int flags) +ff_hook___recv_chk(int fd, void *buf, size_t len, size_t buflen, int flags) { DEBUG_LOG("ff_hook___recv_chk, fd:%d, buf:%p, len:%lu, flags:%d\n", fd, buf, len, flags); @@ -1430,7 +1430,7 @@ ff_hook___read_chk(int fd, void *buf, size_t nbytes, size_t len) { DEBUG_LOG("ff_hook___read_chk, fd:%d, buf:%p, len:%lu\n", fd, buf, len); - if (buflen < nbytes) + if (len < nbytes) __chk_fail(); if (buf == NULL || len == 0) { diff --git a/config.ini b/config.ini index 0219ae624..a265a6388 100644 --- a/config.ini +++ b/config.ini @@ -45,9 +45,9 @@ symmetric_rss=0 # PCI device enable list. # And driver options -#allow=02:00.0 +#pci_whitelist=02:00.0 # for multiple PCI devices -#allow=02:00.0,03:00.0 +#pci_whitelist=02:00.0,03:00.0 # enabled port list #