Re: signal handling: kernel-to-user info leak

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

 



These issues are separate, and I'd prefer to keep separate issues in
separate threads.

> Somewhat related, the kernel leaks ["garbage"] data from the
> kernel stack when placing the struct siginfo onto the user stack.
> In arch/i386/kernel/signal.c, subroutine do_signal() declares
> an on-stack automatic local
>     siginfo_t info;
> The routine fills in portions without clearing the whole struct,
> then copies the entire struct onto the user stack.

That's inaccurate.  It uses copy_siginfo_to_user (in setup_rt_frame), which
copies only the initialized fields.


Thanks,
Roland

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux