{"push_id":2313711388,"size":2,"distinct_size":2,"ref":"refs/heads/stable/11","head":"1ede748859fa1d5cb4fb1b0158abc223132a74b3","before":"05838a6b4890b2538cc78d295be35fdf7d56e237","commits":[{"sha":"bd24e4c9801d494472a0f74844547f5acfe38627","author":{"name":"hselasky","email":"68e47392eacdfef802e6086c338e57194b8dc970@FreeBSD.org"},"message":"MFC r328436 and r328731:\nDecouple Linux files from the belonging character device right after open\nin the LinuxKPI. This is done by calling finit() just before returning a magic\nvalue of ENXIO in the \"linux_dev_fdopen\" function.\n\nThe Linux file structure should mimic the BSD file structure as much as\npossible. This patch decouples the Linux file structure from the belonging\ncharacter device right after the \"linux_dev_fdopen\" function has returned.\nThis fixes an issue which allows a Linux file handle to exist after a\ncharacter device has been destroyed and removed from the directory index\nof /dev. Only when the reference count of the BSD file handle reaches zero,\nthe Linux file handle is destroyed. This fixes use-after-free issues related\nto accessing the Linux file structure after the character device has been\ndestroyed.\n\nWhile at it add a missing NULL check for non-present file operation.\nCalling a NULL pointer will result in a segmentation fault.\n\nFix some recent regressions after r328436 in the LinuxKPI:\n\n1) The OPW() function macro should have the same return type like the\nfunction it executes.\n2) The DEVFS I/O-limit should be enforced for all character device reads\nand writes.\n3) The character device file handle should be passable, same as for\nDEVFS based file handles.\n\nReviewed by:\tkib @\nReported by:\tjbeich @\nSponsored by:\tMellanox Technologies","distinct":true,"url":"https://api.github.com/repos/pfsense/FreeBSD-src/commits/bd24e4c9801d494472a0f74844547f5acfe38627"},{"sha":"1ede748859fa1d5cb4fb1b0158abc223132a74b3","author":{"name":"hselasky","email":"68e47392eacdfef802e6086c338e57194b8dc970@FreeBSD.org"},"message":"MFC r328694:\nMake sure the LinuxKPI's internal ERESTARTSYS error code gets translated\ninto ERESTART for mmap and page fault calls aswell.\n\nSponsored by:\tMellanox Technologies","distinct":true,"url":"https://api.github.com/repos/pfsense/FreeBSD-src/commits/1ede748859fa1d5cb4fb1b0158abc223132a74b3"}]}
{"actor":{"display_login":"pfSense-git-updates"}}