Commit Graph

22 Commits

Author SHA1 Message Date
Igor Pečovnik
1d512229ab Merge pull request #8 from zhangn1985/sun8i
fs/file_table: split fget_light
2019-01-31 09:46:31 +01:00
Zhang Ning
ca925a740a fs/file_table: split fget_light
due to systemd updated, sun8i kernel doesn't compact to new systemd.
after check systemd code, it return -EBADF in below code:

https://github.com/systemd/systemd/blob/master/src/basic/fs-util.c#L804-L815

fstat on path fds (open with O_PATH).

after check sun8i kernel code, in fstat path, fget_light rectly returns
NULL on path fds (file->f_mode & FMODE_PATH).

on mainline kernel, fget_light is wraper function of __fget_light.
on fstat path, it uses __fget_light, doesn't check FMODE_PATH.

so follow mainline kernel, change the behavior of sun8i kernel.

test case:

int main(int argc, char **argv)
{
    int fd;
    struct stat previous_stat;

    fd =  open("/", O_CLOEXEC|O_NOFOLLOW|O_PATH);
    if (fd < 0) {
        printf("%d, %s\n", __LINE__,  strerror(errno));
         return -errno;
    }

    if(fstat(fd, &previous_stat) < 0) {

        printf("%d, %s\n", __LINE__, strerror(errno));
        return -errno;
    }
}

expect no error.

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>
2019-01-27 18:48:12 +08:00
Igor Pečovnik
002a60c148 Merge pull request #7 from omonar/sun8i
crypto: arm-aes - fix encryption of unaligned data
2017-10-23 19:28:01 +02:00
Omonar
5ac1263542 crypto: arm-aes - fix encryption of unaligned data
Fix the same alignment bug as in arm64 - we need to pass residue
unprocessed bytes as the last argument to blkcipher_walk_done.

See https://patchwork.kernel.org/patch/4701551/ for details.
2017-10-21 09:49:41 +03:00
Igor Pečovnik
7933030b48 Merge pull request #6 from omonar/sun8i
ARM/NEON optimized crypto routines from kernel 3.13.y
2017-10-13 07:55:15 +02:00
Omonar
6a01e2ff18 Backported ARM/NEON optimized crypto routines from kernel 3.13.y 2017-10-12 21:41:45 +03:00
zador-blood-stained
e4daaacfe7 Import rtl8189fs driver 2017-08-06 18:39:49 +03:00
zador-blood-stained
a130c6f951 Import new rtl8189es driver 2017-08-06 18:37:18 +03:00
zador-blood-stained
545859668c Remove old rtl8192cu driver 2017-08-06 18:27:11 +03:00
zador-blood-stained
da9b668e87 Import rtl8192cu driver 2017-08-06 18:19:23 +03:00
Igor Pečovnik
c9a57d64c8 Merge pull request #4 from sov1178/patch-1
Patch 1
2017-07-28 13:46:39 +02:00
sov1178
ea3d7f4bcc Corrected line mistake with endings 2017-07-28 13:33:33 +03:00
sov1178
2df0f11d8f Module info correction 2017-07-28 13:25:24 +03:00
sov1178
5961400922 Added per master temp conversion trigger
Now each master has 'w1_master_therm_convert_all' file. Its functionality is the 
same as the 'w1_therm_convert_all' (located in '/sys/bus/w1'), but reading will start
temperature conversion on sensors connected to this master only.
2017-07-28 13:23:54 +03:00
zador-blood-stained
ab8ef7fe13 Bump version to 3.4.113 2017-04-29 11:16:49 +03:00
sov1178
e0a8ecfd40 Update w1_therm.c
Moved 'w1_convert_all' to bus node (now it's functionality implemented in the 'wire' module, w1.c file). It is the right place for it, also now it will work across multiple w1 masters.
2017-01-20 09:41:31 +03:00
sov1178
512aa7ba45 Update w1.c
Added new feature ( by Oleg Skydan <sov1178@gmail.com> ):  

Reading the 'w1_therm_convert_all' file (located in '/sys/bus/w1') will start
temperature conversion on all sensors in the w1 net and wait 750ms to finish 
conversion.

Then you can use the 'w1_read' on the slave devices (see modified w1_therm module) to 
read converted temperatures. So you will not need to wait 750ms reading each sensor 
(using 'w1_slave').
2017-01-20 09:36:36 +03:00
sov1178
3775c35068 Modified w1_term.c
Added new features:  
 1. Read sensor memory without triggering temperature conversion. Just read 'w1_read' 
     file instead of usual 'w1_slave' file.
 2. Ability to simultaneously trigger temperature conversion on all sensors in the network.
     Reading the 'w1_convert_all' file on any temperature sensor in the w1 net will start
     temperature conversion on all sensors in the w1 net.

So it is possible to greatly speed up sensors reading on the big 1wire nets by starting simultaneously temperature conversion on all sensors and then reading results from the sensors memory.
2017-01-19 13:29:49 +03:00
Igor Pečovnik
4075887a50 Merge pull request #1 from ingamedeo/sun8i
Security vulnerability fix
We are solving this with a patch anyway.
2016-06-02 06:57:24 +02:00
Amedeo Arch
c609d53a3c Update sunxi-debug.c 2016-06-01 23:42:00 +02:00
igorpecovnik
1bbb331aab sun8i init 2016-04-12 12:21:19 +02:00
Igor Pečovnik
652a774557 Create README.md 2016-04-12 12:07:32 +02:00