“c4a2c4f7d2ffd91b83e3ad07d8a8d70879dbc54a”上不存在“git@gitcode.net:weixin_38519739/gpt-vue.git”
  • E
    signal: Guard against negative signal numbers in copy_siginfo_from_user32 · a3670058
    Eric W. Biederman 提交于
    While fixing an out of bounds array access in known_siginfo_layout
    reported by the kernel test robot it became apparent that the same bug
    exists in siginfo_layout and affects copy_siginfo_from_user32.
    
    The straight forward fix that makes guards against making this mistake
    in the future and should keep the code size small is to just take an
    unsigned signal number instead of a signed signal number, as I did to
    fix known_siginfo_layout.
    
    Cc: stable@vger.kernel.org
    Fixes: cc731525 ("signal: Remove kernel interal si_code magic")
    Signed-off-by: N"Eric W. Biederman" <ebiederm@xmission.com>
    a3670058
signal.h 12.4 KB