Re: [PATCH] ptrace: clear TIF_SYSCALL_TRACE on ptrace detach

2016-09-01 Thread Ales Novak
On Thu, Sep 01, 2016 at 06:46:13PM +0200, Oleg Nesterov wrote: > On 09/01, Ales Novak wrote: > > > > On ptrace_detach(), the TIF_SYSCALL_TRACE in thread->flags of the tracee > > is not cleared up. This results in the tracehook_report_syscall_* being > > called (tho

[PATCH] ptrace: clear TIF_SYSCALL_TRACE on ptrace detach

2016-09-01 Thread Ales Novak
to that) upon its further syscalls. Example scenario - attach "strace" to a running process and kill it (the strace) with SIGKILL. You'll see that the syscall trace hooks are still being called. The clearing of this flag should be moved from ptrace_detach() to __ptrace_detach(). Sig

[PATCH] ptrace: clear TIF_SYSCALL_TRACE on ptrace detach

2016-09-01 Thread Ales Novak
g process and kill it (the strace) with SIGKILL. You'll see that the syscall trace hooks are still being called. Signed-off-by: Ales Novak Cc: Jiri Kosina --- kernel/ptrace.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/ptrace.c b/kernel/ptrace.c index 1d3b766..634740f 10064

[PATCH] fix: print ext4 mountopt data_err=abort correctly

2016-03-09 Thread Ales Novak
tted, handling these 'data_err=' options in other way than MOPT_SET. Signed-off-by: Ales Novak --- fs/ext4/super.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 3ed01ec..19e589c 100644 --- a/fs/ext4/super.c +++ b/fs/e

[no subject]

2016-03-09 Thread Ales Novak
This is alternative patch to the previous one, taking maybe more logical approach.

[PATCH] fix: print ext4 mountopt data_err=abort correctly

2016-03-09 Thread Ales Novak
and former ext3 way resembling. Signed-off-by: Ales Novak --- fs/ext4/super.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 3ed01ec..58c203a 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -1860,7 +1860,8 @@ static int _ext4

[PATCH] fix: lpfc_send_rscn_event sends bigger buffer size

2015-08-20 Thread Ales Novak
lpfc_send_rscn_event() allocates data for sizeof(struct lpfc_rscn_event_header) + payload_len, but claims that the data has size of sizeof(struct lpfc_els_event_header) + payload_len. That leads to buffer overruns. Signed-off-by: Ales Novak --- drivers/scsi/lpfc/lpfc_els.c | 2 +- 1 file

[PATCH] xfs: fix in the setting of logbsize

2015-06-05 Thread Ales Novak
ld be checked during the mount. Signed-off-by: Ales Novak --- fs/xfs/xfs_super.c | 5 + 1 file changed, 5 insertions(+) diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index 8fcc4cc..1a3766d 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c @@ -1352,6 +1352,11 @@ xfs

[PATCH] drivers/rtc/interface.c: fix for fix of alarm initialization

2014-05-08 Thread Ales Novak
ned-off-by: Ales Novak --- Fix for patch drivers-rtc-interfacec-fix-infinite-loop-in-initializing-the-alarm drivers/rtc/interface.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/rtc/interface.c b/drivers/rtc/interface.c index a2df283..bd6314a 100644 --- a/d

[PATCH] RTC: Fix infinite loop in initializing the alarm.

2014-04-07 Thread Ales Novak
reduces the loop to the leap years and adds final validity check. Signed-off-by: Ales Novak --- drivers/rtc/interface.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers/rtc/interface.c b/drivers/rtc/interface.c index 544be72..a2df283 100644 --- a/drivers

[PATCH] scsi: storvsc_device_destroy NULL pointer fix

2014-02-27 Thread Ales Novak
ata now the host allocation fails __scsi_remove_device(sdev) calls sdev->host->hostt->slave_destroy() == storvsc_device_destroy(sdev) access of sdev->hostdata->request_mempool Signed-off-by: Ales Novak Signed-off-by: Thomas Abraham Ack

[PATCH] rtc: fix chardev initialization races

2014-02-26 Thread Ales Novak
he rtc_device_unregister will try to delete the files only if RTC_DEV_FILES_EXIST is set in rtc_device->flags. Acked-by: Jiri Kosina Signed-off-by: Ales Novak --- drivers/rtc/class.c| 47 -- drivers/rtc/rtc-ab8500.c | 1 + drivers/rtc/rtc-